/* VocalForge Checkout — presentation only. PHP/Stripe flow remains unchanged. */
.checkout-page {
  --co-bg: #080e19;
  --co-surface: #111a2a;
  --co-surface-2: #162237;
  --co-surface-3: #1b2941;
  --co-outline: #28374f;
  --co-outline-soft: #233047;
  --co-ink: #f2f6ff;
  --co-muted: #a5b3c9;
  --co-faint: #7e8da6;
  --co-blue: #5996ff;
  --co-blue-strong: #397df5;
  --co-blue-tint: rgba(73, 132, 255, .115);
  --co-green: #43d6a5;
  --co-error-border: rgba(255, 118, 122, .45);
  --co-error-bg: rgba(234, 71, 89, .10);
  --co-focus: rgba(82, 153, 255, .40);
  --co-shadow: 0 18px 60px rgba(0, 0, 0, .16);
  margin: 0;
  min-height: 100vh;
  color: var(--co-ink);
  background: radial-gradient(ellipse 660px 350px at 12% 0%, rgba(34, 95, 194, .14), transparent 75%), var(--co-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] .checkout-page {
  --co-bg: #f5f7fb;
  --co-surface: #fff;
  --co-surface-2: #f4f7fd;
  --co-surface-3: #eaf0fb;
  --co-outline: #d7e0ee;
  --co-outline-soft: #e7ebf3;
  --co-ink: #13223c;
  --co-muted: #536480;
  --co-faint: #697c98;
  --co-blue: #2566d8;
  --co-blue-strong: #2768dc;
  --co-blue-tint: rgba(43, 109, 228, .075);
  --co-green: #0d946d;
  --co-error-border: rgba(200, 45, 70, .30);
  --co-error-bg: rgba(221, 54, 71, .06);
  --co-focus: rgba(44, 113, 244, .24);
  --co-shadow: 0 18px 64px rgba(26, 53, 95, .06);
  background: radial-gradient(ellipse 720px 400px at 12% 0%, rgba(83, 148, 255, .085), transparent 80%), var(--co-bg);
}
.checkout-page *, .checkout-page *::before, .checkout-page *::after { box-sizing: border-box; }
.checkout-page a { color: inherit; }
.checkout-page button, .checkout-page input { font: inherit; }
.checkout-header { height: 76px; border-bottom: 1px solid var(--co-outline-soft); background: rgba(13, 22, 37, .54); }
:root[data-theme="light"] .checkout-header { background: rgba(255, 255, 255, .75); }
.checkout-header-inner { max-width: 1190px; width: calc(100% - 52px); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.checkout-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--co-ink) !important; font-size: 16px; font-weight: 760; letter-spacing: -.025em; }
.checkout-brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #3c84fc, #64b3ff); box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 5px 18px rgba(55,126,252,.20); }
.checkout-brand:hover { opacity: .92; }
.checkout-header-trust { display: inline-flex; align-items: center; gap: 9px; color: var(--co-muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
.checkout-header-trust svg { color: var(--co-green); }
.checkout-main { padding: 42px 26px 54px; }
.checkout-shell { max-width: 1160px; margin: 0 auto; }
.checkout-intro { margin: 0 0 29px; }
.checkout-eyebrow { display: inline-flex; gap: 10px; align-items: center; font-size: 10px; letter-spacing: .17em; font-weight: 800; color: var(--co-blue); }
.checkout-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--co-green); box-shadow: 0 0 0 4px rgba(41, 196, 142, .13); }
.checkout-intro h1 { margin: 9px 0 8px; font-size: clamp(30px, 3.25vw, 43px); line-height: 1.12; letter-spacing: -.045em; font-weight: 790; color: var(--co-ink); }
.checkout-title-period { color: var(--co-blue); }
.checkout-intro > p { margin: 0; max-width: 740px; color: var(--co-muted); font-size: 14px; line-height: 1.65; }
.checkout-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; list-style: none; margin: 24px 0 0; padding: 0; }
.checkout-progress li { display: flex; align-items: center; gap: 9px; color: var(--co-muted); font-size: 12px; font-weight: 610; }
.checkout-progress-number { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(82, 145, 255, .48); background: var(--co-blue-tint); color: var(--co-blue); font-size: 11px; font-weight: 800; }
.checkout-progress-number-last { border-color: var(--co-outline); background: var(--co-surface-2); color: var(--co-faint); }
.checkout-progress-connector { display: block; width: 24px; height: 1px; margin-right: 3px; background: var(--co-outline); }
.checkout-form-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(315px, 1fr); grid-template-areas: "license order" "account order"; gap: 19px 23px; align-items: start; }
.checkout-section { border: 1px solid var(--co-outline); border-radius: 17px; padding: 29px 31px 30px; background: var(--co-surface); box-shadow: var(--co-shadow); min-width: 0; }
.checkout-license-panel { grid-area: license; }
.checkout-account-panel { grid-area: account; }
.checkout-section-top { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 23px; }
.checkout-section-marker { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: var(--co-blue-tint); color: var(--co-blue); font-size: 12px; font-weight: 820; border: 1px solid rgba(87, 152, 255, .18); }
.checkout-section-top h2 { margin: 0 0 3px; color: var(--co-ink); font-size: 18px; font-weight: 760; letter-spacing: -.025em; line-height: 1.35; }
.checkout-section-top p { margin: 0; color: var(--co-muted); font-size: 12.5px; }
.checkout-offer-fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.checkout-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.checkout-offers { display: grid; gap: 12px; }
.checkout-offer { position: relative; min-width: 0; }
.checkout-offer input { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; cursor: pointer; margin: 0; }
.checkout-offer-label { display: flex; align-items: center; gap: 13px; min-height: 101px; padding: 18px 19px; border: 1.5px solid var(--co-outline); border-radius: 13px; background: var(--co-surface-2); cursor: pointer; transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.checkout-offer input:hover + .checkout-offer-label { border-color: var(--co-blue); }
.checkout-offer input:focus-visible + .checkout-offer-label { outline: 3px solid var(--co-focus); outline-offset: 3px; }
.checkout-offer input:checked + .checkout-offer-label { border-color: var(--co-blue); background: var(--co-blue-tint); box-shadow: inset 0 0 0 .5px var(--co-blue), 0 0 0 3px rgba(70, 129, 241, .075); }
.checkout-offer-selector { position: relative; display: block; flex: 0 0 21px; width: 21px; height: 21px; border-radius: 50%; border: 1.8px solid var(--co-faint); }
.checkout-offer input:checked + .checkout-offer-label .checkout-offer-selector { border: 6px solid var(--co-blue); background: var(--co-surface); }
.checkout-offer-copy { min-width: 0; flex: 1 1 auto; }
.checkout-offer-name { display: block; color: var(--co-ink); font-size: 17px; line-height: 1.34; font-weight: 760; }
.checkout-offer-meta { display: block; margin-top: 3px; color: var(--co-muted); font-size: 12px; font-weight: 570; }
.checkout-offer-description { display: block; margin-top: 6px; color: var(--co-faint); font-size: 11.5px; line-height: 1.4; }
.checkout-offer-cost { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; gap: 5px; margin-left: auto; padding-left: 6px; }
.checkout-offer-price { display: block; white-space: nowrap; color: var(--co-ink); font-size: clamp(18px, 1.8vw, 23px); line-height: 1.2; letter-spacing: -.05em; font-weight: 820; }
.checkout-offer-billing { font-size: 10.5px; color: var(--co-muted); white-space: nowrap; }
.checkout-license-footnote { display: flex; align-items: flex-start; gap: 9px; margin-top: 17px; color: var(--co-muted); font-size: 12px; line-height: 1.55; }
.checkout-license-footnote svg { flex: 0 0 auto; margin-top: 1px; color: var(--co-blue); }
.checkout-field { margin: 0 0 17px; }
.checkout-label { display: block; margin-bottom: 8px; font-weight: 710; font-size: 13px; color: var(--co-ink); }
.checkout-input { display: block; width: 100%; height: 52px; margin: 0; padding: 12px 15px; border: 1px solid var(--co-outline); border-radius: 10px; background: var(--co-bg); color: var(--co-ink); font-size: 15px; line-height: 1.4; outline: none; transition: border-color .16s ease, box-shadow .16s ease; }
.checkout-input::placeholder { color: var(--co-faint); opacity: .82; }
.checkout-input:hover { border-color: var(--co-faint); }
.checkout-input:focus { border-color: var(--co-blue); box-shadow: 0 0 0 3px var(--co-focus); }
.checkout-field-help { margin: 7px 0 0; color: var(--co-faint); font-size: 11.5px; line-height: 1.55; }
.checkout-password-wrapper { position: relative; }
.checkout-password-input { padding-right: 76px; }
.checkout-password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; color: var(--co-blue); border: 0; border-radius: 6px; padding: 7px 8px; font-size: 12px !important; font-weight: 730; cursor: pointer; }
.checkout-password-toggle:hover { background: var(--co-blue-tint); }
.checkout-password-toggle:focus-visible { outline: 2px solid var(--co-blue); outline-offset: 2px; }
.checkout-consents { display: grid; gap: 11px; margin-top: 23px; }
.checkout-confirmation { display: flex; align-items: flex-start; gap: 11px; padding: 14px 15px; border: 1px solid var(--co-outline-soft); border-radius: 11px; background: var(--co-surface-2); }
.checkout-confirmation input { appearance: auto; accent-color: var(--co-blue-strong); width: 19px; height: 19px; flex: 0 0 19px; margin: 1px 0 0; cursor: pointer; }
.checkout-confirmation input:focus-visible { outline: 3px solid var(--co-focus); outline-offset: 3px; }
.checkout-confirmation label { color: var(--co-muted); font-size: 12px; line-height: 1.55; cursor: pointer; }
.checkout-confirmation strong { display: block; margin-bottom: 3px; color: var(--co-ink); font-size: 12px; font-weight: 760; }
.checkout-confirmation label span { display: block; }
.checkout-confirmation a { color: var(--co-blue) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.checkout-submit { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 20px; padding: 13px 18px; color: #fff; background: linear-gradient(108deg, #3079ed 0%, #418bf7 55%, #53a2ff 100%); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; box-shadow: 0 7px 20px rgba(41, 109, 232, .22); font-size: 14px; font-weight: 780; line-height: 1.3; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.checkout-submit:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.checkout-submit:focus-visible { outline: 3px solid var(--co-focus); outline-offset: 3px; }
.checkout-submit:disabled { cursor: progress; opacity: .78; }
.checkout-submit svg { flex: 0 0 auto; }
.checkout-submit.is-loading svg { display: none; }
.checkout-spinner { display: none; width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid rgba(255,255,255,.28); border-top-color: #fff; border-radius: 50%; animation: checkout-rotate .8s linear infinite; }
.checkout-submit.is-loading .checkout-spinner { display: block; }
@keyframes checkout-rotate { to { transform: rotate(360deg); } }
.checkout-submit-note { display: flex; gap: 7px; align-items: center; justify-content: center; margin-top: 13px; color: var(--co-faint); font-size: 11.5px; text-align: center; line-height: 1.4; }
.checkout-submit-note svg { flex: 0 0 auto; color: var(--co-green); }
.checkout-order-panel { grid-area: order; align-self: start; position: sticky; top: 22px; min-width: 0; }
.checkout-order-card { overflow: hidden; background: var(--co-surface); border: 1px solid var(--co-outline); border-radius: 17px; padding: 25px 25px 23px; box-shadow: var(--co-shadow); }
.checkout-order-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 21px; }
.checkout-order-heading h2 { margin: 0; color: var(--co-ink); font-size: 17px; line-height: 1.3; font-weight: 760; letter-spacing: -.02em; }
.checkout-order-secure { display: flex; align-items: center; gap: 5px; color: var(--co-green); font-size: 10px; font-weight: 830; letter-spacing: .08em; }
.checkout-product-tile { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--co-outline-soft); border-radius: 11px; background: var(--co-surface-2); }
.checkout-product-icon { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #3676df, #64b7ff); }
.checkout-product-tile strong { display: block; color: var(--co-ink); font-size: 13px; font-weight: 750; line-height: 1.45; }
.checkout-product-tile span { display: block; margin-top: 2px; color: var(--co-faint); font-size: 11px; }
.checkout-order-description { margin: 13px 1px 16px; color: var(--co-muted); font-size: 11.5px; line-height: 1.6; }
.checkout-order-details { display: grid; gap: 15px; margin: 21px 0; }
.checkout-order-line { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; font-size: 12px; line-height: 1.4; }
.checkout-order-line > span { flex: 0 0 auto; color: var(--co-muted); }
.checkout-order-line > strong { color: var(--co-ink); font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.checkout-order-total { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding-top: 18px; border-top: 1px solid var(--co-outline); }
.checkout-order-total > div { min-width: 0; }
.checkout-order-total-caption { display: block; color: var(--co-muted); font-size: 11.5px; font-weight: 620; }
.checkout-order-total strong { display: block; margin-top: 5px; color: var(--co-ink); font-size: clamp(25px, 2.7vw, 32px); font-weight: 820; letter-spacing: -.05em; line-height: 1.15; overflow-wrap: anywhere; }
.checkout-order-total-note { max-width: 124px; margin-bottom: 2px; padding: 5px 7px; border-radius: 6px; background: var(--co-blue-tint); color: var(--co-blue); font-size: 10px; font-weight: 750; line-height: 1.3; text-align: center; }
.checkout-tax-note { margin: 10px 0 0; color: var(--co-faint); font-size: 10.5px; line-height: 1.5; }
.checkout-assurances { display: grid; gap: 12px; margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--co-outline); }
.checkout-assurances > div { display: flex; align-items: flex-start; gap: 9px; color: var(--co-muted); font-size: 11.5px; line-height: 1.5; }
.checkout-assurances svg { flex: 0 0 auto; margin-top: 1px; color: var(--co-green); }
.checkout-requirements { margin-top: 21px; padding: 14px; border: 1px solid var(--co-outline-soft); border-radius: 10px; background: var(--co-surface-2); }
.checkout-requirements-title { display: flex; align-items: center; gap: 8px; color: var(--co-ink); font-size: 11.5px; }
.checkout-requirements-title svg { color: var(--co-blue); }
.checkout-requirements p { margin: 7px 0 0; color: var(--co-muted); font-size: 11px; line-height: 1.6; }
.checkout-order-bottom { display: flex; align-items: flex-start; justify-content: center; gap: 8px; padding: 1px 10px; margin: 14px 0 0; color: var(--co-faint); font-size: 11px; line-height: 1.6; text-align: center; }
.checkout-order-bottom svg { color: var(--co-green); flex: 0 0 auto; margin-top: 1px; }
.checkout-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 33px 2px 0; color: var(--co-faint); font-size: 11px; }
.checkout-return { display: inline-flex; align-items: center; gap: 4px; color: var(--co-muted) !important; text-decoration: none; font-size: 12px; font-weight: 650; }
.checkout-return:hover { color: var(--co-blue) !important; }
.checkout-error { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 17px; padding: 15px 18px; border: 1px solid var(--co-error-border); border-radius: 11px; color: var(--co-ink); background: var(--co-error-bg); font-size: 13px; }
.checkout-error svg { flex: 0 0 auto; color: #ef7180; }
.checkout-not-found { max-width: 600px; padding: 90px 18px 70px; margin: auto; text-align: center; }
.checkout-not-found-code { margin-bottom: 12px; color: var(--co-blue); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.checkout-not-found h1 { margin: 0 0 14px; color: var(--co-ink); font-size: clamp(25px, 4vw, 36px); line-height: 1.2; }
.checkout-not-found p { margin: 0 auto 28px; max-width: 430px; color: var(--co-muted); font-size: 14px; line-height: 1.6; }
.checkout-back { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 11px 18px; border-radius: 9px; background: var(--co-blue-strong); color: #fff !important; text-decoration: none; font-weight: 750; font-size: 13px; }
@media (max-width: 1050px) {
  .checkout-form-grid { grid-template-columns: minmax(0, 1.4fr) minmax(290px, 1fr); gap: 17px; }
  .checkout-section { padding: 25px; }
  .checkout-order-card { padding: 23px 19px; }
  .checkout-offer-label { padding: 16px; }
}
@media (max-width: 810px) {
  .checkout-main { padding-top: 31px; }
  .checkout-form-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "license" "order" "account"; gap: 17px; }
  .checkout-order-panel { position: static; }
  .checkout-order-card { padding: 25px; }
  .checkout-order-bottom { margin-top: 12px; }
  /* The requirements and trust points are already present in the account step/header. */
  .checkout-assurances, .checkout-requirements, .checkout-order-description { display: none; }
  .checkout-order-details { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
}
@media (max-width: 560px) {
  .checkout-header { height: 66px; }
  .checkout-header-inner { width: calc(100% - 30px); }
  .checkout-brand { font-size: 13px; gap: 8px; }
  .checkout-brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .checkout-header-trust { font-size: 10.5px; gap: 5px; }
  .checkout-header-trust svg { width: 14px; height: 14px; }
  .checkout-main { padding: 25px 14px 32px; }
  .checkout-intro { margin-bottom: 22px; }
  .checkout-intro h1 { font-size: clamp(29px, 7vw, 35px); margin-top: 11px; }
  .checkout-intro > p { font-size: 12.5px; }
  .checkout-progress { gap: 6px; margin-top: 17px; }
  .checkout-progress li { font-size: 10px; gap: 5px; }
  .checkout-progress-number { height: 20px; width: 20px; font-size: 10px; }
  .checkout-progress-connector { width: 8px; margin-right: 0; }
  .checkout-form-grid { gap: 13px; }
  .checkout-section, .checkout-order-card { padding: 21px 17px; border-radius: 13px; }
  .checkout-section-top { gap: 10px; margin-bottom: 18px; }
  .checkout-section-marker { width: 32px; height: 32px; flex-basis: 32px; font-size: 11px; }
  .checkout-section-top h2 { font-size: 16px; }
  .checkout-section-top p { font-size: 11.5px; }
  .checkout-offer-label { gap: 10px; padding: 15px 12px; min-height: 90px; }
  .checkout-offer-selector { flex-basis: 18px; width: 18px; height: 18px; }
  .checkout-offer input:checked + .checkout-offer-label .checkout-offer-selector { border-width: 5px; }
  .checkout-offer-name { font-size: 15px; }
  .checkout-offer-meta { font-size: 11px; }
  .checkout-offer-description { font-size: 10.5px; }
  .checkout-offer-price { font-size: 19px; }
  .checkout-offer-billing { font-size: 10px; }
  .checkout-order-card { padding: 21px 18px; }
  .checkout-order-details { display: grid; grid-template-columns: 1fr; gap: 13px; }
  .checkout-order-total strong { font-size: 28px; }
  .checkout-confirmation { padding: 13px 12px; }
  .checkout-submit { min-height: 54px; font-size: 13px; }
  .checkout-bottom { padding-top: 24px; }
}
@media (max-width: 380px) {
  .checkout-header-trust { font-size: 0; gap: 0; }
  .checkout-header-trust svg { width: 17px; height: 17px; }
  .checkout-progress li { font-size: 9px; }
  .checkout-progress-connector { width: 5px; }
  .checkout-offer-label { flex-wrap: wrap; }
  .checkout-offer-cost { margin-left: 28px; align-items: flex-start; flex-basis: 100%; padding-left: 0; }
  .checkout-offer-price { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-page *, .checkout-page *::before, .checkout-page *::after { transition-duration: 0s !important; animation-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .checkout-offer input:checked + .checkout-offer-label { outline: 2px solid Highlight; }
  .checkout-offer input:checked + .checkout-offer-label .checkout-offer-selector { border-color: Highlight; }
  .checkout-input:focus { outline: 2px solid Highlight; }
}
