/* Onest Variable, self-hosted under SIL OFL 1.1. */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/fonts/onest-cyrillic-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/fonts/onest-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --subscription-bg: #071022;
  --subscription-surface: #070b17;
  --subscription-accent: #3658df;
  --subscription-text: #f7f8fb;
  --subscription-muted: #9aa5ba;
  --subscription-line: rgba(255, 255, 255, .12);
  font-family: "Onest", "Montserrat", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: clip; background: var(--subscription-bg); }
.subscription-body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--subscription-bg); color: var(--subscription-text); -webkit-font-smoothing: antialiased; }
.subscription-body button,
.subscription-body input { font: inherit; }
.subscription-body button,
.subscription-body a { -webkit-tap-highlight-color: transparent; }
.subscription-body a { color: inherit; }
.subscription-body ::selection { background: var(--subscription-accent); color: #fff; }
.subscription-body :focus-visible { outline: 2px solid #5f7cff; outline-offset: 4px; }

.skip-link { position: fixed; z-index: 500; top: 10px; left: 10px; translate: 0 -160%; padding: 10px 16px; border-radius: 999px; background: #fff; color: #071022 !important; text-decoration: none; transition: translate .18s ease; }
.skip-link:focus { translate: 0; }
.subscription-page { min-height: 100vh; overflow: clip; background: var(--subscription-bg); color: var(--subscription-text); }
.subscription-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.checkout-section { position: relative; min-height: calc(100svh - 94px); padding: 80px 0 64px; }
.checkout-section::before { position: absolute; z-index: 0; inset: 0; background-image: linear-gradient(rgba(255,255,255,.034) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.034) 1px, transparent 1px); background-size: 64px 64px; content: ""; mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%); pointer-events: none; }
.checkout-section > .subscription-shell { position: relative; z-index: 1; }
.checkout-intro { display: grid; grid-template-columns: 1fr 1.05fr; align-items: end; gap: 72px; margin-bottom: 52px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #9ca8c0; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.kicker i { width: 8px; height: 8px; border-radius: 999px; background: #4767ef; }
.checkout-intro h1 { margin: 0; font-size: clamp(52px, 5vw, 72px); font-weight: 800; letter-spacing: -.055em; line-height: .9; text-transform: uppercase; }
.checkout-intro > p { max-width: 440px; margin: 0 0 2px; color: #a9b3c7; font-size: 15px; line-height: 1.6; }

.checkout-grid { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 18px; align-items: start; }
.order-card,
.checkout-state { border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: var(--subscription-surface); box-shadow: 0 28px 70px rgba(0,0,0,.18); }
.order-card { padding: 30px; }
.order-eyebrow { min-height: 36px; margin: 0; color: #9ba6ba; font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.55; text-transform: uppercase; }
.subscription-price { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 11px; margin: 27px 0 28px; padding-bottom: 28px; border-bottom: 1px solid var(--subscription-line); }
.subscription-price strong { font-size: 43px; font-weight: 750; letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.subscription-price span { color: #8994aa; font-size: 12px; }
.terms-summary { display: grid; }
.terms-summary p { display: grid; grid-template-columns: 9px 1fr; gap: 10px; margin: 0; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.09); color: #9aa5ba; font-size: 12px; line-height: 1.55; }
.terms-summary i { width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: #4767ef; }
.cancel-note { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 12px; margin-top: 22px; padding: 17px 18px; border: 1px solid rgba(71,103,239,.48); border-radius: 14px; background: rgba(36,65,180,.18); }
.cancel-note > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #3658df; color: #fff; font-size: 16px; font-weight: 800; }
.cancel-note p { display: grid; gap: 4px; margin: 0; }
.cancel-note strong { display: block; font-size: 12px; line-height: 1.45; }
.cancel-note small { color: #a8b2c8; font-size: 11px; font-weight: 400; line-height: 1.55; }

.checkout-state { min-width: 0; padding: 34px; }
.checkout-form { display: grid; gap: 27px; }
.form-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--subscription-line); }
.form-heading > span { font-size: 22px; font-weight: 750; }
.form-heading small { color: #69758e; font-size: 11px; }
.fields { display: grid; gap: 15px; }
.field { display: grid; gap: 8px; }
.field > span { color: #aab4c8; font-size: 12px; font-weight: 650; }
.field input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; outline: 0; background: rgba(255,255,255,.045); color: #fff; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.field input::placeholder { color: #59647a; }
.field input:hover { background: rgba(255,255,255,.065); }
.field input:focus { border-color: #4767ef; box-shadow: 0 0 0 3px rgba(71,103,239,.18); }
.consents { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; }
.consents legend { margin-bottom: 13px; color: #aab4c8; font-size: 12px; font-weight: 650; }
.consent { display: grid; grid-template-columns: 21px 1fr; gap: 12px; align-items: start; color: #919cb1; cursor: pointer; font-size: 12px; font-weight: 400; line-height: 1.55; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: #3859e3; }
.consent a { color: #dce1ec; text-decoration-color: #657089; text-underline-offset: 3px; }
.consent a:hover { color: #fff; text-decoration-color: #fff; }
.payment-acceptance { margin: 0; color: #7f8ba2; font-size: 11px; font-weight: 400; line-height: 1.6; }
.payment-acceptance a { color: #cbd3e2; text-decoration-color: #657089; text-underline-offset: 3px; }
.payment-acceptance a:hover { color: #fff; text-decoration-color: #fff; }
.form-error { padding: 12px 14px; border: 1px solid rgba(255,110,110,.34); border-radius: 12px; background: rgba(255,110,110,.1); color: #ffb2b2; font-size: 13px; line-height: 1.5; }

.pay-button,
.primary-button,
.secondary-button,
.danger-button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 700; text-decoration: none; }
.pay-button,
.primary-button { border: 0; background: #3658df; color: #fff; }
.pay-button { width: 100%; }
.pay-button:hover,
.primary-button:hover { background: #4668ef; }
.secondary-button,
.danger-button { padding: 0 20px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: #fff; }

.state-card,
.manage-card { min-height: 510px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 30px max(10px, 8%); }
.status-mark { display: grid; width: 58px; height: 58px; margin-bottom: 26px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; font-size: 21px; font-weight: 800; }
.status-mark.success { border-color: rgba(78,190,139,.36); background: rgba(78,190,139,.12); color: #87dbb2; }
.status-mark.error { border-color: rgba(255,110,110,.34); background: rgba(255,110,110,.1); color: #ff9696; }
.status-mark.pending { border-color: rgba(71,103,239,.4); background: rgba(71,103,239,.13); color: #9aabff; letter-spacing: 2px; }
.state-eyebrow { margin: 0 0 13px; color: #7b8bb1; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.state-card h1,
.state-card h2,
.manage-card h1,
.manage-card h2 { max-width: 600px; margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; text-transform: uppercase; }
.state-card > p:not(.state-eyebrow) { max-width: 560px; margin: 24px 0 30px; color: #919cb1; font-size: 15px; line-height: 1.62; }
.state-actions { display: flex; gap: 10px; }
.state-actions .primary-button { padding: 0 22px; }

.subscription-footer { padding: 26px 0 34px; border-top: 1px solid rgba(255,255,255,.1); background: #050914; }
.subscription-footer .subscription-shell { display: grid; gap: 20px; }
.subscription-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.subscription-footer a,
.subscription-footer summary { color: #8792a8; font-size: 11px; text-underline-offset: 4px; }
.subscription-footer a:hover,
.subscription-footer summary:hover { color: #fff; }
.legal-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.legal-meta details { max-width: 620px; }
.legal-meta summary { width: fit-content; cursor: pointer; }
.legal-meta p { margin: 12px 0 0; color: #747f94; font-size: 11px; line-height: 1.65; }

.standalone-section { min-height: 100svh; display: grid; place-items: center; position: relative; padding: 40px 0; }
.standalone-section::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.034) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.034) 1px, transparent 1px); background-size: 64px 64px; content: ""; mask-image: linear-gradient(to bottom, #000, transparent); pointer-events: none; }
.standalone-card { position: relative; z-index: 1; width: min(760px, calc(100% - 28px)); min-height: 520px; padding: 48px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: var(--subscription-surface); box-shadow: 0 28px 70px rgba(0,0,0,.22); }
.standalone-card .state-card,
.standalone-card .manage-card { min-height: 420px; padding: 0; }
.standalone-links { display: flex; flex-wrap: wrap; gap: 12px; }
.standalone-links .primary-button,
.standalone-links .secondary-button { padding-inline: 22px; }
[hidden] { display: none !important; }

.manage-card { justify-content: flex-start; padding-top: 10px; }
.manage-heading { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 30px; border-bottom: 1px solid var(--subscription-line); }
.manage-heading h1,
.manage-heading h2 { font-size: clamp(28px, 3.2vw, 40px); }
.active-badge,
.neutral-badge { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.active-badge { border: 1px solid rgba(78,190,139,.32); background: rgba(78,190,139,.11); color: #8ce0b7; }
.neutral-badge { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #aab4c8; }
.manage-facts { width: 100%; margin: 14px 0 28px; }
.manage-facts div { display: grid; grid-template-columns: 155px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.manage-facts dt { color: #6f7a91; font-size: 12px; }
.manage-facts dd { margin: 0; color: #e2e6ef; font-size: 13px; text-align: right; }
.danger-button { border-color: rgba(255,110,110,.28); background: rgba(255,110,110,.07); color: #ffb0b0; }
.cancel-panel { width: 100%; margin-top: 14px; padding: 20px; border: 1px solid rgba(255,110,110,.28); border-radius: 16px; background: rgba(255,110,110,.07); }
.cancel-panel summary { width: fit-content; list-style: none; }
.cancel-panel summary::-webkit-details-marker { display: none; }
.cancel-panel p { margin: 8px 0 17px; color: #9ca6b8; font-size: 12px; }
.cancelled-notice { margin: 14px 0 0; padding: 13px 15px; border: 1px solid rgba(71,103,239,.34); border-radius: 12px; background: rgba(71,103,239,.1); color: #b4bed0; font-size: 12px; line-height: 1.5; }
.support-link { margin-top: auto; padding-top: 26px; color: #939db1; font-size: 12px; text-underline-offset: 4px; }

.spinner { width: 44px; height: 44px; margin: 0 0 28px; border: 3px solid rgba(255,255,255,.12); border-top-color: #4767ef; border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 920px) {
  .checkout-intro { grid-template-columns: 1fr; gap: 24px; }
  .checkout-intro > p { max-width: 620px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-eyebrow { min-height: 0; }
}

@media (max-width: 560px) {
  .subscription-shell { width: min(100% - 28px, 1180px); }
  .checkout-section { padding: 48px 0 44px; }
  .checkout-section::before,
  .standalone-section::before { background-size: 42px 42px; }
  .checkout-intro { margin-bottom: 32px; }
  .kicker { margin-bottom: 17px; font-size: 9px; }
  .checkout-intro h1 { font-size: clamp(44px, 14vw, 62px); }
  .checkout-intro > p { font-size: 14px; }
  .checkout-grid { gap: 12px; }
  .order-card,
  .checkout-state,
  .standalone-card { border-radius: 18px; }
  .order-card { padding: 24px 20px; }
  .subscription-price { grid-template-columns: 1fr; gap: 7px; }
  .subscription-price strong { font-size: 39px; }
  .checkout-state { min-height: 0; padding: 24px 20px; }
  .form-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .form-heading > span { font-size: 19px; }
  .checkout-form { gap: 24px; }
  .consent { font-size: 11px; }
  .state-card,
  .manage-card { min-height: 430px; padding: 20px 2px; }
  .state-card h1,
  .state-card h2,
  .manage-card h1,
  .manage-card h2 { font-size: 32px; }
  .state-actions,
  .legal-meta { align-items: stretch; flex-direction: column; width: 100%; }
  .state-actions .primary-button,
  .state-actions .secondary-button { width: 100%; }
  .subscription-footer nav { align-items: flex-start; flex-direction: column; gap: 12px; }
  .standalone-card { min-height: 0; padding: 30px 22px; }
  .manage-heading { align-items: flex-start; flex-direction: column; }
  .manage-facts div { grid-template-columns: 1fr; gap: 7px; }
  .manage-facts dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .subscription-page *,
  .subscription-page *::before,
  .subscription-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
