/* =========================================================================
   Site pages: reseller program, API reference, support and account.
   Builds on checkout.css (tokens, buttons, forms). Header and footer follow
   the storefront so moving between pages feels like one site.
   ========================================================================= */
.pg { background: var(--bg); }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); }
.lead { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
code { font-size: .9em; }
:not(pre) > code { padding: 1px 5px; border-radius: 5px; background: var(--card-hi); color: #ddd0fb; }
pre code, .pb-v code, .rows code, .cs-label code { padding: 0; background: none; color: inherit; }

/* ---------- header (same as the storefront) ---------- */
.site-top {
  position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.st-in { max-width: 1160px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.site-top .brand { font-size: 20px; }
.st-links { display: flex; gap: 2px; margin-right: auto; }
.st-links a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .15s, background .15s; }
.st-links a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.st-links a[aria-current] { color: var(--text); }
.st-cta { height: 38px; padding: 0 16px; font-size: 14px; }
.st-menu { display: none; position: relative; }
.st-menu summary {
  list-style: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-hi); cursor: pointer;
}
.st-menu summary::-webkit-details-marker { display: none; }
.st-menu summary svg { width: 18px; height: 18px; }
.st-menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); width: 220px; display: grid; padding: 6px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line-hi); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .8);
}
.st-menu nav a { padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: 15px; }
.st-menu nav a:hover { background: var(--card); text-decoration: none; }
.st-menu nav a[aria-current] { color: var(--accent); }

/* ---------- footer (same columns as the storefront) ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; }
.sf-in { max-width: 1160px; margin: 0 auto; padding: 48px 24px 28px; display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.sf-brand p { margin-top: 12px; max-width: 34ch; color: var(--muted); font-size: 14px; }
.sf-col { display: grid; gap: 10px; align-content: start; }
.sf-col b { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.sf-col a { color: var(--muted); font-size: 14px; }
.sf-col a:hover { color: var(--text); text-decoration: none; }
.sf-legal { position: relative; max-width: 1160px; margin: 0 auto; padding: 18px 24px 32px; font-size: 12.5px; color: var(--faint); }
.sf-legal::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: var(--line); }

/* ---------- page hero + sections ---------- */
.hero {
  padding: 80px 0 72px;
  background:
    radial-gradient(800px 420px at 20% -180px, rgba(161, 98, 248, .13), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, .05) 1px, transparent 1.2px) 0 0 / 24px 24px;
}
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.04em; margin: 14px 0 18px; }
.sec { padding: 80px 0; border-top: 1px solid var(--line); }
.sec-h { display: grid; gap: 12px; max-width: 680px; margin-bottom: 36px; }
.sec-h h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -0.035em; }
.sec-h .lead { font-size: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: start; }
.split .sec-h { margin-bottom: 0; }

/* questions and answers: hairlines, no boxes */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 17px 2px; font-weight: 600; font-size: 15.5px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease);
}
.qa details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.qa summary:hover { color: var(--accent); }
.qa details > p { padding: 0 32px 18px 2px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.qa details[open] > p { animation: rise .25s var(--ease); }

/* ---------- reseller program ---------- */
.rs-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.rs-copy .cta-row { margin-top: 30px; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 14.5px; }
.ticks li::before { content: ""; flex: none; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-2px); }
.code-win { margin: 0; border-radius: 12px; border: 1px solid var(--line-hi); background: #0c0b0e; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.cw-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.cw-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2f2e33; }
.cw-bar span { margin-left: 8px; font-size: 12.5px; color: var(--faint); font-weight: 500; }
.code-win pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 12.5px; line-height: 1.7; color: #d9d6e0; }
.cw-sep { padding: 7px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 600 11.5px var(--font-mono); }
.t-c { color: #6e6d74; } .t-s { color: #c9b3fc; } .t-n { color: #f0c27b; } .t-k { color: #9fd5ff; } .t-ok { color: var(--good); }

.rate-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-hi); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; padding: 12px 18px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--panel); border-bottom: 1px solid var(--line-hi); }
td { padding: 13px 18px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:first-child td { border-top: 0; }
.rate td { font-variant-numeric: tabular-nums; }
.rate td:last-child { font-weight: 600; }
.rate tr.top td:last-child { color: var(--accent); }
.rate-note h3 { font-size: 17px; margin-bottom: 10px; }
.rate-note p { color: var(--muted); line-height: 1.7; }

.feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.feat > div { padding-top: 22px; border-top: 1px solid var(--line-hi); }
.feat svg { width: 22px; height: 22px; color: var(--accent); }
.feat h3 { font-size: 16px; margin: 14px 0 8px; }
.feat p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.timeline li { counter-increment: t; position: relative; padding-top: 44px; }
.timeline li::before {
  content: counter(t); position: absolute; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: var(--bg); border: 1.5px solid var(--primary); color: var(--text); z-index: 1;
}
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: 36px; right: -24px; height: 1.5px; background: var(--line-hi); }
.timeline b { display: block; font-size: 16px; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

.band { border-top: 1px solid var(--line); background: var(--bg-2); }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.band h2 { font-size: 26px; letter-spacing: -0.03em; }
.band p { margin-top: 6px; }

/* ---------- API reference ---------- */
.docs { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.d-nav { position: sticky; top: 63px; align-self: start; max-height: calc(100vh - 63px); overflow-y: auto; padding: 36px 16px 36px 24px; display: grid; gap: 1px; }
.d-nav-h { margin: 18px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.d-nav-h:first-child { margin-top: 0; }
.d-nav a { padding: 6px 10px; border-radius: 7px; color: var(--muted); font-size: 14px; }
.d-nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.d-nav a[aria-current] { color: var(--text); background: var(--card-hi); }
.d-main { min-width: 0; border-left: 1px solid var(--line); }
.d-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; padding: 48px 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
.d-sec:last-child { border-bottom: 0; }
.d-text { min-width: 0; }
.d-text h1 { font-size: 38px; letter-spacing: -0.035em; margin: 10px 0 14px; }
.d-text h2 { font-size: 24px; letter-spacing: -0.03em; margin-bottom: 12px; }
.d-text h3 { font-size: 14.5px; margin: 26px 0 10px; }
.d-text > p { color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.d-text > p b { color: var(--text); }
.d-code { min-width: 0; display: grid; gap: 14px; align-content: start; position: sticky; top: 88px; align-self: start; }
.ep-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ep-h code { padding: 0; background: none; color: var(--text); font-size: 14px; }
.m { display: inline-block; min-width: 44px; padding: 2px 7px; border-radius: 5px; text-align: center; font: 700 11px var(--font-mono); }
.m.get { color: #9fd5ff; background: rgba(159, 213, 255, .1); }
.m.post { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.facts-dl { margin: 24px 0 0; border-top: 1px solid var(--line); }
.facts-dl div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts-dl dt { color: var(--muted); }
.facts-dl dd { margin: 0; overflow-wrap: anywhere; }
.facts-dl dd code { padding: 0; background: none; color: var(--text); }
.code { border-radius: 12px; border: 1px solid var(--line-hi); background: #0c0b0e; overflow: hidden; }
.code-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; height: 40px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); font-weight: 500; }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.7; color: #d9d6e0; }
.copy-code { border: 0; background: none; color: var(--faint); font-size: 12.5px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.copy-code:hover { color: var(--text); background: var(--card-hi); }
.tabs { display: flex; gap: 2px; align-self: stretch; }
.tabs button { border: 0; background: none; color: var(--faint); font-size: 12.5px; font-weight: 600; padding: 0 8px; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--primary); }
.ep-list { display: grid; }
.ep-list a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--text); }
.ep-list a:first-child { border-top: 0; }
.ep-list a:hover { background: var(--card); text-decoration: none; }
.ep-list code { font-size: 12.5px; padding: 0; background: none; color: var(--text); }
.params { margin: 0; border-top: 1px solid var(--line); }
.params > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.params dt { margin-bottom: 5px; line-height: 1.6; }
.params dt code { padding: 0; background: none; color: var(--text); font-weight: 600; font-size: 13.5px; }
.params .type { margin-left: 10px; font-size: 12.5px; color: var(--faint); }
.params .req { margin-left: 10px; font-size: 12px; font-weight: 600; color: #ffb38a; }
.params .opt { margin-left: 10px; font-size: 12px; font-weight: 600; color: var(--faint); }
.params dd { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.ref td, .ref th { padding: 11px 14px; font-size: 14px; }
.ref td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ref td { color: var(--muted); }
.ref td:first-child, .ref td:nth-child(2) { color: var(--text); }
.pill { display: inline-block; margin: 1px 0; padding: 2px 8px; border-radius: 999px; font: 600 12px var(--font-mono); }
.pill.wait { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
.pill.ok { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }
.pill.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.pill.dim { background: var(--card-hi); color: var(--muted); }
.docs-page .site-foot { margin-top: 0; }

/* ---------- support (help center) ---------- */
.hc-hero { padding-bottom: 56px; }
.hc-hero h1 { margin-bottom: 14px; }
.hc-topics { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; }
.hc-topics a { color: var(--text); font-size: 14.5px; font-weight: 500; padding-bottom: 3px; border-bottom: 1px solid var(--line-hi); }
.hc-topics a:hover { border-color: var(--accent); text-decoration: none; }
.hc { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; padding-top: 56px; padding-bottom: 32px; }
.hc-main { display: grid; gap: 52px; min-width: 0; }
.hc-sec { scroll-margin-top: 80px; }
.hc-sec h2 { font-size: 22px; margin-bottom: 14px; }
.hc-side { position: sticky; top: 88px; display: grid; gap: 28px; scroll-margin-top: 80px; }
.hc-card { padding: 22px; border-radius: 14px; border: 1px solid var(--line-hi); background: var(--panel); }
.hc-card h2 { font-size: 19px; }
.hc-card > .muted { margin-top: 6px; font-size: 14px; }
.ch-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; }
.ch { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.ch:first-child { border-top: 0; padding-top: 4px; }
.ch .rc-icon { width: 34px; height: 34px; border-radius: 8px; }
.ch-text { display: grid; min-width: 0; }
.ch-text b { font-size: 14px; font-weight: 600; }
.ch-val { font-size: 13px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-note { font-size: 12.5px; color: var(--faint); line-height: 1.45; margin-top: 2px; }
.ch-loading { padding: 8px 0; }
.hc-tips h3 { font-size: 15px; margin-bottom: 10px; }
.hc-tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hc-tips li { color: var(--muted); font-size: 14px; line-height: 1.6; padding-left: 16px; position: relative; }
.hc-tips li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.hc-tips b { color: var(--text); font-weight: 600; }

/* ---------- account ---------- */
.acct { max-width: 1160px; margin: 0 auto; padding: 48px 24px 24px; min-height: 60vh; }
.acct-msg { max-width: 460px; margin: 40px auto; text-align: center; display: grid; gap: 12px; justify-items: center; }
.auth { display: grid; place-items: start center; padding: 24px 0 40px; }
.auth-box { width: min(400px, 100%); display: grid; gap: 18px; }
.auth-box h1 { font-size: 28px; }
.auth-box > .muted { margin-top: -10px; font-size: 14.5px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line-hi); }
.seg button { border: 0; background: none; padding: 10px 4px; margin-bottom: -1px; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; }
.seg button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--primary); }
.auth form { gap: 16px; }
.auth-foot { font-size: 13.5px; color: var(--muted); text-align: center; }

.dash { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
.dash-nav { position: sticky; top: 88px; display: grid; gap: 1px; }
.dash-nav a { padding: 7px 10px; border-radius: 7px; color: var(--muted); font-size: 14.5px; }
.dash-nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.dash-nav a[aria-current] { color: var(--text); background: var(--card-hi); }
body:has(#resPanel[hidden]) .only-res { display: none; }
.dash-main { min-width: 0; }
.dash-head { padding-bottom: 36px; scroll-margin-top: 80px; }
.dh-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.dh-label { margin-top: 18px; font-size: 14px; color: var(--muted); }
.bal { margin: 4px 0 6px; font-size: clamp(40px, 5vw, 52px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dash-head .cta-row { margin-top: 22px; }
.dsec { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.dsec > header h2 { font-size: 17px; letter-spacing: -0.015em; }
.dsec > header p { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.dsec-body { min-width: 0; }
.dsec-body form { max-width: 560px; }
.lg { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: rgba(161, 98, 248, .14); color: var(--accent);
}
.badge.ok { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }
.badge.wait { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
.badge.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.badge.dim { background: var(--card-hi); color: var(--muted); }
.amount-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.amount-in { position: relative; width: 150px; flex: none; }
.amount-in .cur-sign { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.amount-in input { padding-left: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button {
  height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-hi); background: transparent; color: var(--text);
  font-size: 13.5px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; transition: background .15s, border-color .15s;
}
.quick button:hover { background: var(--card); border-color: #3a3940; }
.plan-name { font-weight: 600; font-size: 16px; }
.progress { height: 6px; margin: 12px 0 8px; border-radius: 999px; background: var(--card-hi); overflow: hidden; max-width: 560px; }
.progress i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--primary); transition: width .6s var(--ease); }
.api-box { margin-top: 22px; display: grid; gap: 8px; max-width: 560px; }
.api-box code { font-size: 13px; }
.warn-line { font-size: 13px; color: #f3d79a; }
.list { display: grid; border-top: 1px solid var(--line); }
.list .row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none; transition: background .15s;
}
.list a.row:hover { background: var(--panel); text-decoration: none; }
.list a.row:hover .r-title { color: var(--accent); }
.r-title { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-sub { font-size: 12.5px; color: var(--faint); }
.r-right { display: grid; gap: 4px; justify-items: end; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.plus { color: var(--good); }
.empty { padding: 22px 4px; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); }
.more { margin-top: 14px; }

/* ---------- motion ---------- */

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .d-sec { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .d-code { position: static; }
  .d-code-empty { display: none; }
}
@media (max-width: 980px) {
  .rs-hero-in, .rate-wrap, .split, .hc { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hc-side { position: static; }
  .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-brand { grid-column: 1 / -1; }
  .dash { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dash-nav { position: static; display: flex; overflow-x: auto; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 10px; scrollbar-width: none; }
  .dash-nav a { flex: none; }
  .dsec { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 860px) {
  .st-links, .st-cta { display: none; }
  .st-menu { display: block; margin-left: auto; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .d-nav {
    top: 63px; z-index: 5; max-height: none; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding: 12px 20px;
    border-bottom: 1px solid var(--line); scrollbar-width: none;
    background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .d-nav::-webkit-scrollbar { display: none; }
  .d-nav-h { display: none; }
  .d-nav a { flex: none; border: 1px solid var(--line); }
  .d-nav a[aria-current] { border-color: var(--line-hi); }
  .d-main { border-left: 0; }
  .d-sec { padding: 36px 20px; scroll-margin-top: 124px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .st-in { padding: 12px 16px; }
  .hero { padding: 52px 0 48px; }
  .sec { padding: 56px 0; }
  .feat, .timeline { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .timeline li:not(:last-child)::after { display: none; }
  .sf-in { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 40px 16px 24px; }
  .sf-legal { padding: 16px 16px 28px; }
  .sf-legal::before { left: 16px; right: 16px; }
  .facts-dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hc { padding-top: 40px; }
  .acct { padding: 28px 16px 16px; }
  .list .row { grid-template-columns: minmax(0, 1fr); }
  .r-right { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; align-items: center; }
  .band-in { padding-top: 36px; padding-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

.sf-legal a { color: var(--muted); }

/* ---------- motion (motion.js): things ease in as they scroll into view ---------- */
.motion .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .hero .player.rv, .motion .hero .code-win.rv { transform: translateY(26px) scale(.98); }
.motion .hero .player.rv.in, .motion .hero .code-win.rv.in { transform: none; }
.site-top { transition: box-shadow .25s, background .25s; }
.site-top.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .9); }
/* small touches */
.btn { transition: background .15s, border-color .15s, transform .15s var(--ease), box-shadow .2s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn:not(.ghost):hover:not(:disabled) { box-shadow: 0 10px 26px -12px rgba(161, 98, 248, .8); }
.feat > div, .pay-way, .hc-card, .rd-box { transition: border-color .2s, transform .25s var(--ease), background .2s; }
.feat > div:hover { transform: translateY(-3px); }
.qa details[open] summary { color: var(--accent); }
.move .mock { transition: transform .35s var(--ease), border-color .25s, box-shadow .35s; }
.move:hover .mock { transform: translateY(-4px) rotate(-.4deg); border-color: color-mix(in srgb, var(--primary) 45%, var(--line-hi)); box-shadow: 0 30px 60px -36px rgba(161, 98, 248, .7); }
.hero h1 .hl, .hc-hero h1 .hl { animation: wiggle 5s ease-in-out 1.2s infinite; }
@keyframes wiggle { 0%, 90%, 100% { transform: rotate(-2deg); } 94% { transform: rotate(2deg) scale(1.04); } 97% { transform: rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .motion .rv { opacity: 1; transform: none; } }
