/* Sibilus LPの既存トーンに合わせた、ステージング購入・完了画面専用CSS */

:root {
  --purchase-blue: #0068b7;
  --purchase-cyan: #00aebb;
  --purchase-ink: #1a1a1c;
  --purchase-muted: #64748b;
  --purchase-line: #dbe4ee;
  --purchase-pale: #f3f9fc;
  --purchase-success: #087f67;
}

.purchase-page {
  min-width: 0;
  color: var(--purchase-ink);
  background: #f6f9fb;
  font-family: "Noto Sans JP", "游ゴシック", "メイリオ", sans-serif;
  font-size: 1.6rem;
  line-height: 1.75;
}

.purchase-page [hidden] {
  display: none !important;
}

.purchase-page button,
.purchase-page input,
.purchase-page textarea {
  font: inherit;
}

.staging-bar {
  padding: 6px 16px;
  color: #fff;
  background: #1a1a1c;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.purchase-page header {
  top: 0;
}

.purchase-page .header__logo {
  color: inherit;
}

.purchase-page .header__nav {
  align-items: center;
}

.purchase-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 64px;
  color: #fff;
  text-align: center;
}

.purchase-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.12), transparent 26%);
}

.purchase-hero .inner {
  position: relative;
}

.purchase-hero__logo {
  width: 154px;
  margin: 0 auto 22px;
}

.purchase-hero__label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.purchase-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 4.5vw, 5rem);
  font-weight: 800;
  line-height: 1.3;
}

.purchase-hero p:last-child {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.8;
}

.purchase-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 90px;
}

.mock-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin: 0 auto 24px;
  padding: 11px 18px;
  border: 1px solid #e7c171;
  border-radius: 8px;
  color: #744900;
  background: #fff9e9;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
}

.environment-banner {
  border-color: #9bc8e5;
  color: #315b75;
  background: #eef8fc;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.62fr);
  gap: 24px;
  align-items: start;
}

.checkout-card,
.order-summary,
.success-card {
  border: 1px solid var(--purchase-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.checkout-card {
  padding: 36px;
}

.purchase-form {
  display: block;
}

.checkout-step + .checkout-step {
  margin-top: 38px;
  padding-top: 36px;
  border-top: 1px solid var(--purchase-line);
}

.checkout-step.is-locked {
  opacity: 0.45;
  pointer-events: none;
}

.checkout-step__title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
}

.checkout-step__title > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--purchase-blue), var(--purchase-cyan));
  font-size: 1.3rem;
  font-weight: 900;
}

.checkout-step__title h2 {
  margin: 0;
  color: #1e293b;
  font-size: 2.1rem;
  font-weight: 850;
  line-height: 1.4;
}

.field {
  display: grid;
  gap: 7px;
}

.field + .field {
  margin-top: 17px;
}

.field label,
.field-label {
  display: block;
  color: #334155;
  font-size: 1.3rem;
  font-weight: 850;
}

.field-label {
  margin: 20px 0 9px;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #bfcddb;
  border-radius: 7px;
  color: #1e293b;
  background: #fff;
  font-size: 1.4rem;
  line-height: 1.6;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field textarea[readonly] {
  resize: none;
  cursor: default;
  color: #31475b;
  border-color: #c9dce9;
  background: #f5f9fc;
}

.field textarea[readonly]::placeholder {
  color: #718096;
  opacity: 1;
}

.field input:focus,
.field textarea:focus,
.duration-stepper input:focus,
.duration-range:focus-visible {
  outline: 3px solid rgba(0, 104, 183, 0.18);
  border-color: var(--purchase-blue);
}

.field-hint {
  margin: 0;
  color: #718096;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.7;
}

.field-error {
  min-height: 0;
  margin: 10px 0 0;
  color: #b42318;
  font-size: 1.25rem;
  font-weight: 750;
}

.field-warning {
  min-height: 0;
  margin: 8px 0 0;
  color: #8a5700;
  font-size: 1.2rem;
  font-weight: 750;
}

.manual-mode-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #efb653;
  color: #6d4b0b;
  background: #fff8e8;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.65;
}

.install-id-missing {
  padding: 17px 18px;
  border: 1px solid #efb653;
  border-radius: 8px;
  color: #5f4514;
  background: #fffaf0;
}

.install-id-missing > strong {
  display: block;
  color: #6d4b0b;
  font-size: 1.32rem;
  font-weight: 850;
}

.install-id-missing > p {
  margin: 6px 0 0;
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.7;
}

.install-id-missing .inline-actions {
  align-items: center;
  margin-top: 13px;
}

.support-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  color: var(--purchase-blue);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-link:hover {
  color: #004e89;
}

.field--spaced {
  margin-top: 22px !important;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(to right, var(--purchase-blue), var(--purchase-cyan));
  box-shadow: 0 6px 16px rgba(0, 104, 183, 0.24);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.button:hover {
  color: #fff;
  opacity: 1;
  filter: brightness(1.04);
}

.button:focus-visible,
.duration-preset:focus-visible,
.duration-stepper button:focus-visible {
  outline: 3px solid rgba(0, 104, 183, 0.28);
  outline-offset: 3px;
}

.button--small {
  min-height: 44px;
  padding: 9px 18px;
  font-size: 1.2rem;
}

.button--secondary,
.button--ghost {
  color: var(--purchase-blue);
  background: #fff;
  border-color: #9bc8e5;
  box-shadow: none;
}

.button--ghost {
  color: #475569;
  border-color: var(--purchase-line);
}

.button--secondary:hover,
.button--ghost:hover {
  color: var(--purchase-blue);
  background: #f1f8fc;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
  filter: none;
}

.validation-result {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #9ed7c8;
  border-radius: 8px;
  background: #f0fbf7;
}

.validation-result.is-visible {
  display: grid;
}

.validation-result small {
  display: block;
  color: #527267;
  font-size: 1.05rem;
  font-weight: 800;
}

.validation-result strong {
  display: block;
  margin-top: 4px;
  color: #12624a;
  font-size: 1.28rem;
  font-weight: 850;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  position: relative;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card__body {
  display: block;
  height: 100%;
  padding: 17px;
  border: 2px solid var(--purchase-line);
  border-radius: 9px;
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.choice-card input:checked + .choice-card__body {
  border-color: var(--purchase-blue);
  background: #f1f8fc;
  box-shadow: 0 7px 18px rgba(0, 104, 183, 0.1);
}

.choice-card__body strong,
.choice-card__body span {
  display: block;
}

.choice-card__body strong {
  color: #1e293b;
  font-size: 1.55rem;
  font-weight: 850;
}

.choice-card__body span {
  margin-top: 4px;
  color: var(--purchase-muted);
  font-size: 1.18rem;
  font-weight: 650;
}

.duration-picker {
  padding: 18px;
  border: 1px solid var(--purchase-line);
  border-radius: 10px;
  background: #f8fbfd;
}

.duration-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.duration-preset {
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #c8d6e2;
  border-radius: 7px;
  color: #40556a;
  background: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
}

.duration-preset span {
  display: block;
  color: var(--purchase-success);
  font-size: 0.95rem;
}

.duration-preset.is-active {
  color: #fff;
  border-color: var(--purchase-blue);
  background: linear-gradient(135deg, var(--purchase-blue), #0788c4);
}

.duration-preset.is-active span {
  color: #fff;
}

.duration-stepper {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: stretch;
  gap: 10px;
  margin-top: 16px;
}

.duration-stepper > button {
  border: 1px solid #aac8dd;
  border-radius: 8px;
  color: var(--purchase-blue);
  background: #fff;
  cursor: pointer;
  font-size: 2.3rem;
  font-weight: 700;
}

.duration-stepper > button:hover {
  background: #eef8fc;
}

.duration-stepper label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 8px 14px;
  border: 1px solid #aac8dd;
  border-radius: 8px;
  background: #fff;
  color: #52667a;
  font-size: 1.2rem;
  font-weight: 800;
}

.duration-stepper__value {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.duration-stepper input {
  width: 82px;
  min-height: 42px;
  padding: 4px 8px;
  border: 0;
  border-bottom: 2px solid var(--purchase-blue);
  color: var(--purchase-blue);
  background: transparent;
  font-size: 2.2rem;
  font-weight: 900;
  text-align: right;
}

.duration-stepper__value strong {
  color: #334155;
  font-size: 1.4rem;
}

.duration-range {
  width: 100%;
  margin: 19px 0 0;
  accent-color: var(--purchase-blue);
  cursor: pointer;
}

.duration-scale {
  display: flex;
  justify-content: space-between;
  color: #8291a2;
  font-size: 1rem;
  font-weight: 700;
}

.duration-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--purchase-cyan);
  border-radius: 5px;
  background: #edf9fa;
}

.duration-preview > div span {
  display: block;
  color: #587081;
  font-size: 1.05rem;
  font-weight: 800;
}

.duration-preview > div strong {
  display: block;
  margin-top: 3px;
  color: var(--purchase-blue);
  font-size: 2rem;
  font-weight: 900;
  white-space: nowrap;
}

.duration-preview p {
  max-width: 310px;
  margin: 0;
  color: #3d665f;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.55;
  text-align: right;
}

.card-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.card-fields .field {
  margin-top: 0;
}

.card-fields .field:first-child,
.card-fields .field:last-child {
  grid-column: 1 / -1;
}

.form-status {
  display: none;
  padding: 14px 16px;
  border: 1px solid #9ed7c8;
  border-radius: 8px;
  color: #12624a;
  background: #f0fbf7;
  font-size: 1.25rem;
  font-weight: 750;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-warning {
  border-color: #efb653;
  color: #6d4b0b;
  background: #fff8e8;
}

.form-status.is-error {
  border-color: #e6a19a;
  color: #8f241b;
  background: #fff2f0;
}

.form-status.is-pending {
  border-color: #9bc8e5;
  color: #315b75;
  background: #eef8fc;
}

.stripe-checkout-guide {
  padding: 18px 20px;
  border: 1px solid #9bc8e5;
  border-radius: 9px;
  color: #315b75;
  background: #f1f8fc;
}

.stripe-checkout-guide strong {
  display: block;
  color: #1e3a55;
  font-size: 1.4rem;
  font-weight: 850;
}

.stripe-checkout-guide p {
  margin: 7px 0 0;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.7;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  color: #405166;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.7;
}

.checkbox-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--purchase-blue);
}

.checkbox-row a {
  color: var(--purchase-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.order-summary {
  position: sticky;
  top: 100px;
  padding: 28px;
}

.order-summary h2 {
  margin: 0 0 21px;
  color: #1e293b;
  font-size: 2rem;
  font-weight: 850;
}

.summary-list {
  display: grid;
  gap: 13px;
  margin: 0;
}

.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.summary-list dt {
  color: var(--purchase-muted);
  font-size: 1.2rem;
  font-weight: 700;
}

.summary-list dd {
  min-width: 0;
  margin: 0;
  color: #263b51;
  font-size: 1.25rem;
  font-weight: 850;
  overflow-wrap: anywhere;
  text-align: right;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 21px;
  padding-top: 19px;
  border-top: 1px solid var(--purchase-line);
}

.summary-total span {
  color: #334155;
  font-size: 1.3rem;
  font-weight: 850;
}

.summary-total strong {
  color: var(--purchase-blue);
  font-size: 2.6rem;
  font-weight: 900;
  white-space: nowrap;
}

.summary-caption {
  margin: 16px 0 0;
  color: #718096;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.7;
}

.success-card {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.success-card__head {
  padding: 44px 34px;
  color: #fff;
  background: linear-gradient(to right, var(--purchase-blue), var(--purchase-cyan));
  text-align: center;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: var(--purchase-success);
  background: #fff;
  font-size: 3.1rem;
  font-weight: 900;
}

.success-card__head h1,
.success-card__head h2 {
  margin: 18px 0 0;
  color: #fff;
  font-size: 3.2rem;
  font-weight: 850;
}

.success-card__head p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.35rem;
  font-weight: 650;
}

.success-card__body {
  padding: 38px;
}

.success-processing {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px 12px;
  color: #315b75;
  text-align: center;
}

.success-processing strong {
  font-size: 1.6rem;
  font-weight: 850;
}

.success-processing p {
  margin: 0;
  color: var(--purchase-muted);
  font-size: 1.2rem;
}

.processing-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #cfe8f5;
  border-top-color: var(--purchase-blue);
  border-radius: 50%;
  animation: purchase-spin 0.9s linear infinite;
}

@keyframes purchase-spin {
  to {
    transform: rotate(360deg);
  }
}

#success-result-body > h2 {
  margin-top: 28px;
  color: #1e293b;
  font-size: 2rem;
  font-weight: 850;
}

#result-email-status,
#trial-email-status,
#purchase-notice {
  margin: 0 0 22px;
}

.success-card__body > h1,
.success-card__body > h2 {
  color: #1e293b;
  font-weight: 850;
}

.success-card__body > h1 {
  font-size: 2.8rem;
}

.success-card__body > h2 {
  margin-top: 28px;
  font-size: 2rem;
}

.license-box {
  margin: 26px 0;
  padding: 21px;
  border: 1px solid #9bc8e5;
  border-radius: 9px;
  background: #f1f8fc;
}

.license-box > strong {
  color: #1e3a55;
  font-weight: 850;
}

.license-box code {
  display: block;
  margin: 12px 0;
  padding: 15px;
  border-radius: 7px;
  color: #e6f5ff;
  background: #142b43;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.25rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.license-actions,
.result-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
}

.result-actions {
  margin-top: 28px;
}

.trial-condition-list,
.trial-help ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 1.4em;
  color: #405166;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.7;
}

.trial-direct-purchase-link {
  width: 100%;
  margin-top: 12px;
}

.trial-help ol {
  margin-bottom: 22px;
}

.download-help {
  padding-top: 18px;
  border-top: 1px solid var(--purchase-line);
}

.download-help summary {
  color: var(--purchase-blue);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 850;
}

.download-help p {
  margin: 13px 0 10px;
  color: var(--purchase-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.download-help .button {
  width: 100%;
  margin-top: 8px;
}

.trial-license-result {
  margin-top: 24px;
}

.subpage-footer {
  padding: 28px 0;
  border-top: 1px solid var(--purchase-line);
  background: #fff;
}

.subpage-footer .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.subpage-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.subpage-footer a,
.subpage-footer p {
  color: #52667a;
  font-size: 1.2rem;
  font-weight: 700;
}

.subpage-footer a:hover {
  color: var(--purchase-blue);
}

.subpage-footer p {
  margin: 0;
  white-space: nowrap;
}

.legal-hero {
  padding-block: 62px;
}

.legal-container {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: 52px 0 90px;
}

.legal-draft-note,
.legal-warning {
  padding: 18px 22px;
  border: 1px solid #efb653;
  border-radius: 10px;
  color: #6d4b0b;
  background: #fff8e8;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.7;
}

.legal-draft-note strong {
  display: block;
  color: #8a5700;
  font-size: 1.4rem;
  font-weight: 900;
}

.legal-draft-note p {
  margin: 4px 0 0;
}

.legal-local-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0;
  padding: 10px;
  border: 1px solid var(--purchase-line);
  border-radius: 12px;
  background: #fff;
}

.legal-local-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--purchase-blue);
  background: #f1f8fc;
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
}

.legal-section {
  margin-top: 22px;
  padding: 34px 38px;
  border: 1px solid var(--purchase-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--purchase-shadow);
  scroll-margin-top: 100px;
}

.legal-section__eyebrow {
  margin: 0;
  color: var(--purchase-cyan);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.legal-section h2 {
  margin: 6px 0 24px;
  color: #1e293b;
  font-size: 2.5rem;
  font-weight: 900;
}

.legal-section h3 {
  margin: 24px 0 7px;
  color: #27445e;
  font-size: 1.55rem;
  font-weight: 850;
}

.legal-section p,
.legal-section li,
.commerce-list dt,
.commerce-list dd {
  color: #405166;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.85;
}

.legal-section ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 1.5em;
}

.legal-section a {
  color: var(--purchase-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.commerce-list {
  margin: 0;
  border-top: 1px solid var(--purchase-line);
}

.commerce-list > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  border-bottom: 1px solid var(--purchase-line);
}

.commerce-list dt,
.commerce-list dd {
  margin: 0;
  padding: 15px 16px;
}

.commerce-list dt {
  color: #27445e;
  background: #f4f8fb;
  font-weight: 850;
}

.commerce-list .is-pending dd {
  color: #8a5700;
  background: #fffaf0;
  font-weight: 800;
}

.legal-warning {
  margin-bottom: 18px;
}

.next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.next-step {
  padding: 18px;
  border: 1px solid var(--purchase-line);
  border-radius: 8px;
  background: #fff;
}

.next-step strong {
  display: block;
  color: var(--purchase-blue);
  font-size: 1.3rem;
  font-weight: 850;
}

.next-step p {
  margin-top: 6px;
  color: var(--purchase-muted);
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.65;
}

.pricing-note {
  margin: 25px 0;
  padding: 17px 20px;
  border: 1px solid #c8ddeb;
  border-radius: 8px;
  color: #40586c;
  background: #f7fbfd;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 767px) {
  .purchase-page {
    font-size: 1.5rem;
  }

  .purchase-page .header__contact:last-child {
    display: none;
  }

  .purchase-hero {
    padding: 42px 0 47px;
  }

  .purchase-hero__logo {
    width: 128px;
    margin-bottom: 16px;
  }

  .purchase-hero h1 {
    font-size: 3rem;
  }

  .purchase-hero p:last-child {
    font-size: 1.35rem;
  }

  .purchase-container {
    width: min(100% - 28px, 1180px);
    padding: 28px 0 68px;
  }

  .mock-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
  }

  .checkout-card,
  .order-summary,
  .success-card__body,
  .success-card__head {
    padding: 23px 20px;
  }

  .choice-grid,
  .card-fields,
  .validation-result,
  .next-steps {
    grid-template-columns: 1fr;
  }

  .card-fields .field:first-child,
  .card-fields .field:last-child {
    grid-column: auto;
  }

  .duration-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duration-stepper {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .duration-stepper label {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .duration-stepper input {
    width: 70px;
  }

  .duration-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .duration-preview p {
    max-width: none;
    text-align: left;
  }

  .inline-actions .button,
  #complete-order {
    width: 100%;
  }

  .summary-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .success-card__head h1,
  .success-card__head h2 {
    font-size: 2.7rem;
  }

  .license-actions,
  .result-actions {
    flex-direction: column;
  }

  .license-actions .button,
  .result-actions .button {
    width: 100%;
  }

  .subpage-footer .inner {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .subpage-footer nav {
    justify-content: center;
  }

  .legal-container {
    width: min(100% - 28px, 980px);
    padding: 30px 0 64px;
  }

  .legal-local-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-section {
    padding: 24px 20px;
    scroll-margin-top: 68px;
  }

  .legal-section h2 {
    font-size: 2.1rem;
  }

  .commerce-list > div {
    grid-template-columns: 1fr;
  }

  .commerce-list dt,
  .commerce-list dd {
    padding: 12px 14px;
  }
}

@media (max-width: 359px) {
  .purchase-page .header__contact:first-child a {
    font-size: 1rem;
  }

  .duration-picker {
    padding: 14px;
  }

  .duration-stepper {
    gap: 6px;
  }
}
