/* Checkout, account and return pages — the main site's neutral system:
   one ink, hairlines, pill buttons, no accent colour, compact spacing. */
:root { color-scheme: dark; --bg:#090a0c; --panel:#121317; --panel-soft:#0e0f12; --line:rgba(190,205,255,.09); --line-2:rgba(190,205,255,.17); --text:#f4f3f0; --body:#c9c7c2; --muted:#a3a09a; --dim:#6f6c66; --ok:#34c759; --warn:#ffb224; --danger:#ff6b63; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:var(--bg); color:var(--text); font:15px/1.55 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
a { color:var(--text); text-decoration:underline; text-decoration-color:var(--line-2); text-underline-offset:3px; }
a:hover { text-decoration-color:var(--text); }
button,input { font:inherit; }
[hidden],.hidden { display:none !important; }
.shell { width:min(980px,calc(100% - 40px)); margin:0 auto; }

.site-header { display:flex; align-items:center; justify-content:space-between; height:60px; border-bottom:1px solid var(--line); }
.brand { display:inline-flex; align-items:center; gap:9px; color:var(--text); text-decoration:none; font-weight:600; font-size:15px; letter-spacing:-.02em; }
.brand-mark { width:22px; height:22px; font-size:0; color:transparent; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 1.4 16.2 5.4v7.2L9 16.6 1.8 12.6V5.4L9 1.4Z' fill='%23f4f3f0'/%3E%3Cpath d='M9 1.4 16.2 5.4 9 9.2 1.8 5.4 9 1.4Z' fill='%23090a0c' fill-opacity='.22'/%3E%3C/svg%3E") center/contain no-repeat; }
.site-header nav { display:flex; gap:20px; font-size:13px; color:var(--muted); }
.site-header nav a { color:inherit; text-decoration:none; }
.site-header nav a:hover { color:var(--text); }

.page { padding:52px 0 72px; }
.eyebrow { color:var(--dim); font:12px ui-monospace,"Geist Mono","JetBrains Mono",monospace; letter-spacing:.1em; text-transform:uppercase; }
h1 { margin:10px 0 12px; font-size:clamp(28px,3.6vw,40px); font-weight:500; line-height:1.1; letter-spacing:-.035em; }
h2 { margin:0 0 6px; font-size:19px; font-weight:500; line-height:1.25; letter-spacing:-.02em; }
h3 { margin:0 0 6px; font-size:15px; font-weight:500; }
p { margin:0 0 14px; }
.muted { color:var(--muted); }
.lede { max-width:540px; color:var(--muted); font-size:15.5px; }
.split { display:grid; grid-template-columns:minmax(0,1fr) minmax(340px,.9fr); gap:48px; align-items:start; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:24px; }
.card.soft { background:var(--panel-soft); }

.steps { margin:28px 0 0; padding:0; list-style:none; display:grid; gap:16px; }
.steps li { display:flex; gap:12px; align-items:flex-start; color:var(--body); }
.step-number { display:grid; place-items:center; flex:none; width:22px; height:22px; border:1px solid var(--line-2); border-radius:50%; color:var(--muted); font:12px ui-monospace,monospace; }
.steps strong { display:block; color:var(--text); font-weight:500; }
.steps small { display:block; color:var(--muted); }

label { display:block; margin:16px 0 6px; font-size:12.5px; font-weight:500; color:var(--muted); }
input { width:100%; height:40px; padding:0 13px; background:var(--bg); color:var(--text); border:1px solid var(--line-2); border-radius:10px; outline:none; transition:border-color .2s; }
input::placeholder { color:var(--dim); }
input:focus { border-color:rgba(244,243,240,.5); }
.button:focus-visible,button:focus-visible,a:focus-visible { outline:1.5px solid var(--line-2); outline-offset:3px; }

.button { display:inline-flex; align-items:center; justify-content:center; height:40px; padding:0 18px; border-radius:999px; border:1px solid var(--line-2); background:transparent; color:var(--text); text-decoration:none; font-size:14px; font-weight:500; cursor:pointer; transition:background .2s,border-color .2s; }
.button:hover { background:rgba(255,255,255,.07); }
.button.full { width:100%; }
.button.primary { background:var(--text); border-color:var(--text); color:#111; }
.button.primary:hover { background:#fff; }
.button.secondary { background:transparent; }
.button.tertiary { border-color:var(--line); color:var(--muted); }
.button.tertiary:hover { color:var(--danger); border-color:rgba(255,107,99,.4); background:transparent; }
.button:disabled { opacity:.45; cursor:not-allowed; }
.button:disabled:hover { background:transparent; }
.button.primary:disabled:hover { background:var(--text); }
.stack { display:grid; gap:10px; }
.divider { display:flex; align-items:center; gap:12px; margin:18px 0 2px; color:var(--dim); font-size:11.5px; text-transform:uppercase; letter-spacing:.1em; }
.divider:before,.divider:after { content:""; height:1px; background:var(--line); flex:1; }

.notice { padding:12px 14px; background:var(--panel); border:1px solid var(--line-2); border-radius:10px; color:var(--body); font-size:14px; }
.notice.ok { border-color:rgba(52,199,89,.35); }
.notice.error { border-color:rgba(255,107,99,.4); color:#ffd7d4; }

.status { display:inline-flex; align-items:center; gap:7px; padding:4px 11px; border:1px solid var(--line-2); border-radius:99px; color:var(--muted); font-size:12px; font-weight:500; }
.status:before { content:""; width:6px; height:6px; border-radius:50%; background:var(--warn); }
.status.ok { color:var(--text); }
.status.ok:before { background:var(--ok); }
.account-head { display:flex; justify-content:space-between; gap:16px; align-items:start; margin-bottom:24px; }
.account-head h1 { margin:6px 0 4px; font-size:30px; }
.identity { overflow-wrap:anywhere; }
.grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; }
.price { margin:0 0 6px; font-size:40px; font-weight:500; letter-spacing:-.05em; line-height:1.15; }
.price small { color:var(--muted); font-size:14px; font-weight:400; letter-spacing:0; }
.line { display:flex; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid var(--line); font-size:14px; }
.line:last-child { border-bottom:0; }
.line span:first-child { color:var(--muted); }
.line strong { text-align:right; font-weight:500; }
.list { margin:18px 0 0; padding-left:18px; color:var(--body); font-size:14px; }
.list li { margin:6px 0; }
.list li::marker { color:var(--dim); }
.fine { color:var(--dim); font-size:12.5px; }
.fine a { color:var(--muted); }
.actions { display:grid; gap:8px; margin-top:20px; }
.site-footer { display:flex; flex-wrap:wrap; gap:6px 18px; padding:22px 0 34px; border-top:1px solid var(--line); color:var(--dim); font-size:12.5px; }
.site-footer a { color:var(--muted); text-decoration:none; }
.site-footer a:hover { color:var(--text); }

/* Return page (step 3): a waiting ring that becomes a tick once access is active. */
.page > .eyebrow + h1::before { content:""; display:block; width:36px; height:36px; margin-bottom:20px; border-radius:50%; border:1.5px solid var(--line-2); border-top-color:var(--text); animation:spin .9s linear infinite; }
.page:has(#downloadLink:not([hidden])) > .eyebrow + h1::before { animation:none; border-color:var(--ok); background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334c759' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/20px no-repeat; }
.account-head h1::before, .split h1::before { content:none !important; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .page > .eyebrow + h1::before { animation:none; } }

@media(max-width:760px) { .page{padding:34px 0 56px} .split,.grid{grid-template-columns:1fr;gap:20px} #authCard>.card{order:-1} .card{padding:20px} .site-header nav{gap:14px} .account-head{display:block} .account-head .status{margin-top:8px} }
@media(max-width:400px) { .site-header nav a:last-child{display:none} }
