/* muuse.stream design system
   One file, no framework. Mobile-first. Dark theme (the app is dark too).
   Tokens -> base -> layout -> components -> sections -> utilities -> motion. */

:root {
  --bg: #05060a;
  --bg-2: #090b11;
  --surface: #0e1118;
  --surface-2: #141824;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.17);
  --text: #f2f4fa;
  --muted: #a8b1c6; /* 9:1 on --bg */
  --faint: #8590a8; /* 6:1 on --bg: fine print only */
  --accent: #67e8f9;
  --accent-ink: #03161b; /* text on accent fills: 13:1 */
  --accent-2: #a78bfa;
  --warm: #fbbf77;
  --ok: #6ee7a8;
  --warn-bg: rgba(251, 191, 119, 0.08);
  --warn-line: rgba(251, 191, 119, 0.38);
  --radius: 16px;
  --radius-lg: 24px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 64px;
  --accent-fg: #67e8f9; /* accent used as text/icon colour (darker in the light theme) */
  --tint: rgba(103, 232, 249, 0.14);
  --warm-fg: #fbbf77;
  --statement-dim: #6f7a93;
  --prose: #cdd3e2;
  --header-bg: rgba(5, 6, 10, 0.78);
  --code-bg: #06080d;
  --callout-text: #f6e1c3;
  color-scheme: dark;
}

/* Light theme ("Day"): chosen with the theme switch, or by the system when the switch is on Auto (or JavaScript is off). */
:root[data-theme="light"] {
  --bg: #f6f8fb; --bg-2: #edf1f6; --surface: #ffffff; --surface-2: #f2f5f9;
  --line: rgba(12, 22, 44, 0.1); --line-2: rgba(12, 22, 44, 0.2);
  --text: #0b1220; --muted: #465268; --faint: #5d6a82;
  --accent-fg: #07677a; --tint: rgba(7, 103, 122, 0.1); --accent-2: #6a45d4;
  --ok: #0a7446; --warm-fg: #8f5200; --warn-bg: rgba(200, 120, 20, 0.09); --warn-line: rgba(160, 90, 0, 0.4);
  --statement-dim: #7b869c; --prose: #2a3448; --header-bg: rgba(246, 248, 251, 0.82);
  --code-bg: #e9eef5; --callout-text: #5a3a08; color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f6f8fb; --bg-2: #edf1f6; --surface: #ffffff; --surface-2: #f2f5f9;
  --line: rgba(12, 22, 44, 0.1); --line-2: rgba(12, 22, 44, 0.2);
  --text: #0b1220; --muted: #465268; --faint: #5d6a82;
  --accent-fg: #07677a; --tint: rgba(7, 103, 122, 0.1); --accent-2: #6a45d4;
  --ok: #0a7446; --warm-fg: #8f5200; --warn-bg: rgba(200, 120, 20, 0.09); --warn-line: rgba(160, 90, 0, 0.4);
  --statement-dim: #7b869c; --prose: #2a3448; --header-bg: rgba(246, 248, 251, 0.82);
  --code-bg: #e9eef5; --callout-text: #5a3a08; color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.62 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-fg); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(103, 232, 249, 0.3); }
code, kbd, .mono { font-family: var(--mono); font-size: 0.9em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section.tight { padding-block: clamp(40px, 6vw, 72px); }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.stack > * + * { margin-top: var(--stack, 16px); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-fg);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.center .eyebrow::before { display: none; }
.h-display { font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -0.035em; line-height: 1.04; font-weight: 700; }
.h-1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.032em; font-weight: 700; }
.h-2 { font-size: clamp(1.75rem, 3.8vw, 2.7rem); letter-spacing: -0.028em; font-weight: 700; }
.h-3 { font-size: 1.2rem; letter-spacing: -0.015em; font-weight: 650; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; line-height: 1.6; }
.grad { background: linear-gradient(100deg, var(--accent-fg) 5%, var(--accent-2) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 0.9rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; height: 100%; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.brand-tile { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2), 0 6px 18px rgba(103, 232, 249, 0.12); }
.brand-word { display: block; height: 15px; aspect-ratio: 596 / 134; background: currentColor; -webkit-mask: url(/img/logo-wordmark.svg) center / contain no-repeat; mask: url(/img/logo-wordmark.svg) center / contain no-repeat; }
.site-nav { margin-left: auto; display: none; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 0.95rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.site-nav a[aria-current="page"] { color: var(--text); }
.menu-btn { margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; display: inline-grid; place-items: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform 0.2s, background 0.2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.nav-open .site-nav {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  position: absolute; left: 0; right: 0; top: var(--header-h); padding: 12px var(--gutter) 20px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav-open .site-nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
.nav-open .site-nav .btn { margin-top: 10px; }
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .menu-btn { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  --_bg: var(--surface-2); --_fg: var(--text); --_bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 22px; border-radius: 999px;
  background: var(--_bg); color: var(--_fg); border: 1px solid var(--_bd);
  font-weight: 650; font-size: 0.98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { text-decoration: none; border-color: rgba(103, 232, 249, 0.55); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --_bg: var(--accent); --_fg: var(--accent-ink); --_bd: transparent; box-shadow: 0 10px 30px -8px rgba(103, 232, 249, 0.45); }
.btn-primary:hover { background: #8df0fc; border-color: transparent; box-shadow: 0 14px 38px -8px rgba(103, 232, 249, 0.6); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.btn[aria-disabled="true"], .btn:disabled { --_bg: transparent; --_fg: var(--muted); --_bd: var(--line-2); box-shadow: none; cursor: not-allowed; transform: none; border-style: dashed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); position: relative; isolation: isolate; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -140px -10% auto; height: 820px; z-index: -1;
  background:
    radial-gradient(520px 340px at 24% 28%, rgba(103, 232, 249, 0.17), transparent 70%),
    radial-gradient(560px 360px at 78% 18%, rgba(167, 139, 250, 0.16), transparent 70%),
    radial-gradient(500px 300px at 52% 60%, rgba(251, 191, 119, 0.06), transparent 70%);
}
.hero .eyebrow { margin-bottom: 22px; }
.hero .lede { margin: 24px auto 0; }
.hero .btn-row { margin-top: 34px; justify-content: center; }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: var(--faint); max-width: 58ch; margin-inline: auto; }
.hero-stage { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.hero-stage .frame { max-width: 1060px; margin-inline: auto; }
.hero .eyebrow::before { display: none; }
.hero-stage .frame { display: none; }
.hero-phone { display: block; width: min(66%, 300px); margin: 0 auto; }
.hero-card { display: none; }
@media (min-width: 700px) { .hero-stage .frame { display: block; } .hero-phone { display: none; } }
@media (min-width: 1000px) {
  .hero-phone { display: block; position: absolute; margin: 0; right: -2%; bottom: -7%; width: 16%; z-index: 2; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6)); }
  .hero-card { display: block; position: absolute; left: -2%; bottom: 4%; width: 22%; z-index: 2; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6)); }
}

.trust { border-block: 1px solid var(--line); background: var(--bg-2); }
.trust ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; padding-block: 22px; }
.trust li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.trust svg { width: 18px; height: 18px; color: var(--accent-fg); flex: none; }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(5, 1fr); } }

/* ---------- window frame (screenshots) ---------- */
.frame {
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-2); overflow: hidden;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 120px -30px rgba(103, 232, 249, 0.18);
}
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: #0a0d14; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.frame-bar span { margin-left: 12px; font: 500 0.74rem var(--mono); color: var(--faint); background: rgba(255, 255, 255, 0.05); padding: 4px 12px; border-radius: 999px; }
.frame img { width: 100%; }
.frame.plain { border-radius: var(--radius); }
.shot { border-radius: var(--radius); border: 1px solid var(--line-2); overflow: hidden; background: var(--surface); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8); }
.shot img { width: 100%; }
.phone { border-radius: 34px; border: 7px solid #1a1e2a; outline: 1px solid var(--line-2); overflow: hidden; background: #000; }
.phone img { width: 100%; }
.cap { margin-top: 12px; font-size: 0.85rem; color: var(--faint); text-align: center; }
.cap.left { text-align: left; }

/* ---------- section heads ---------- */
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head .lede { margin-top: 18px; }
.statement { font-size: clamp(1.6rem, 3.6vw, 2.7rem); line-height: 1.25; letter-spacing: -0.03em; font-weight: 650; max-width: 28em; text-wrap: balance; }
.statement .muted { color: var(--statement-dim); }

/* ---------- feature rows ---------- */
.feature { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 130px); }
.feature-copy .eyebrow { margin-bottom: 14px; }
.feature-copy p { color: var(--muted); margin-top: 16px; max-width: 52ch; }
.feature-copy .checklist { margin-top: 22px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 0.82fr 1.18fr; }
  .feature.flip { grid-template-columns: 1.18fr 0.82fr; }
  .feature.flip .feature-copy { order: 2; }
}
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text); font-size: 0.98rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%; background: var(--tint); }
.checklist li::after { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; background: var(--accent-fg); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 10.5 3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 10.5 3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.checklist li small { display: block; color: var(--faint); font-size: 0.86rem; margin-top: 2px; }
.stage { position: relative; }
.stage .float { position: absolute; z-index: 2; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.65)); }
.stage .float.br { right: -3%; bottom: -9%; width: 32%; }
.stage .float.bl { left: -3%; bottom: -9%; width: 44%; }
@media (max-width: 899px) { .stage .float { position: static; width: auto; max-width: 340px; margin: 18px auto 0; } .stage .float.br, .stage .float.bl { width: auto; } }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px); position: relative;
}
.card h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin-top: 8px; font-size: 0.97rem; }
.card .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--tint); color: var(--accent-fg); border: 1px solid var(--line); }
.card .icon svg { width: 22px; height: 22px; }
.card .tag { display: inline-block; margin-top: 14px; font-size: 0.78rem; font-weight: 600; color: var(--warm-fg); border: 1px solid var(--warn-line); background: var(--warn-bg); padding: 3px 10px; border-radius: 999px; }
.card.hl { border-color: rgba(103, 232, 249, 0.35); background: linear-gradient(180deg, rgba(103, 232, 249, 0.07), var(--surface) 60%); }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 800; background: var(--accent); color: var(--accent-ink); margin-bottom: 18px; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin-top: 8px; font-size: 0.97rem; }

/* ---------- privacy band ---------- */
.split { display: grid; gap: 16px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); background: var(--surface); }
.panel h3 { font-size: 1.2rem; margin-bottom: 14px; }
.panel.stays { border-color: rgba(110, 231, 168, 0.3); background: linear-gradient(180deg, rgba(110, 231, 168, 0.06), var(--surface) 55%); }
.panel.stays .checklist li::before { background: rgba(110, 231, 168, 0.16); }
.panel.stays .checklist li::after { background: var(--ok); }
.dotlist { list-style: none; display: grid; gap: 12px; }
.dotlist li { position: relative; padding-left: 22px; color: var(--muted); }
.dotlist li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.dotlist strong { color: var(--text); font-weight: 600; }

/* ---------- pricing ---------- */
.price-wrap { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .price-wrap { grid-template-columns: 1.1fr 0.9fr; } }
.price-card { border: 1px solid rgba(103, 232, 249, 0.4); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 40px); background: linear-gradient(180deg, rgba(103, 232, 249, 0.08), var(--surface) 50%); box-shadow: 0 40px 100px -40px rgba(103, 232, 249, 0.3); }
.price-card .label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-fg); }
.price-amount { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 750; letter-spacing: -0.03em; margin: 10px 0 4px; line-height: 1.1; }
.price-amount.pending { font-size: clamp(1.5rem, 3.2vw, 2.1rem); color: var(--text); }
.price-sub { color: var(--muted); font-size: 0.95rem; }
.price-card hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.buy-state { margin-top: 16px; font-size: 0.95rem; color: var(--muted); min-height: 1.4em; }
.buy-state strong { color: var(--text); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.97rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.compare caption { text-align: left; padding: 0 0 12px; font-weight: 650; color: var(--muted); caption-side: top; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--surface-2); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.compare tbody th { font-weight: 550; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare td.yes { color: var(--ok); font-weight: 600; white-space: nowrap; }
.compare td.no { color: var(--faint); white-space: nowrap; }
.compare td small { display: block; color: var(--faint); font-weight: 400; }
@media (max-width: 560px) { .compare th, .compare td { padding: 12px 12px; font-size: 0.92rem; } }

/* ---------- download ---------- */
.dl-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .dl-grid { grid-template-columns: repeat(3, 1fr); } }
.dl { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 30px); background: var(--surface); }
.dl.primary { border-color: rgba(103, 232, 249, 0.45); background: linear-gradient(180deg, rgba(103, 232, 249, 0.07), var(--surface) 55%); }
.dl h3 { font-size: 1.25rem; margin-top: 10px; }
.dl .badge { align-self: flex-start; }
.dl p { color: var(--muted); font-size: 0.96rem; margin-top: 8px; }
.dl .meta { margin: 18px 0 20px; display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.dl .meta div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.dl .meta dt { color: var(--faint); } .dl .meta dd { margin: 0; text-align: right; }
.dl > .btn { margin-top: auto; width: 100%; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.badge.rec { color: var(--accent-fg); border-color: rgba(103, 232, 249, 0.5); background: rgba(103, 232, 249, 0.08); }
.badge.soon { color: var(--warm-fg); border-color: var(--warn-line); background: var(--warn-bg); }
.hash { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.hash code { flex: 1; min-width: 0; font-size: 0.72rem; color: var(--muted); background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; overflow-wrap: anywhere; line-height: 1.35; }
.hash button { flex: none; }
.callout { border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: var(--radius); padding: 18px 20px; color: var(--callout-text); font-size: 0.97rem; }
.callout.info { border-color: rgba(103, 232, 249, 0.3); background: rgba(103, 232, 249, 0.06); color: var(--text); }
.callout strong { color: var(--text); }
.callout p + p { margin-top: 10px; }
.callout ol { padding-left: 20px; margin-top: 10px; display: grid; gap: 6px; }
pre.code { margin: 14px 0 0; padding: 16px 18px; border-radius: 12px; background: #06080d; border: 1px solid var(--line); overflow-x: auto; font: 0.84rem/1.55 var(--mono); color: #d9f6ff; }
.reqs { display: grid; gap: 16px; }
@media (min-width: 760px) { .reqs { grid-template-columns: repeat(2, 1fr); } }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-2); background: var(--surface-2); }
.faq summary { cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 1.02rem; list-style: none; position: relative; border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }

/* ---------- final CTA ---------- */
.cta-band { position: relative; isolation: isolate; text-align: center; padding-block: clamp(72px, 10vw, 140px); overflow: hidden; border-top: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 360px at 50% 100%, rgba(103, 232, 249, 0.16), transparent 70%), radial-gradient(500px 300px at 85% 20%, rgba(167, 139, 250, 0.12), transparent 70%); }
.cta-band .lede { margin: 18px auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: 30px; }

/* ---------- prose (terms, privacy, support) ---------- */
.page-head { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(24px, 4vw, 48px); position: relative; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: -80px 0 auto; height: 420px; z-index: -1; background: radial-gradient(520px 260px at 20% 30%, rgba(103, 232, 249, 0.1), transparent 70%), radial-gradient(520px 260px at 80% 10%, rgba(167, 139, 250, 0.09), transparent 70%); }
.page-head .lede { margin-top: 18px; }
.page-head .meta { margin-top: 14px; color: var(--faint); font-size: 0.92rem; }
.prose { max-width: 740px; padding-bottom: var(--section); }
.prose h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 44px 0 10px; }
.prose h3 { font-size: 1.08rem; margin: 26px 0 6px; }
.prose p, .prose li { color: var(--prose); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; margin-top: 10px; }
.prose .callout { margin-top: 28px; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.contact-card h2 { margin: 0; font-size: 1.3rem; }
.contact-card p { margin-top: 6px; color: var(--muted); max-width: 52ch; }

/* licence key box (success page) */
textarea.key { width: 100%; min-height: 170px; background: #06080d; color: #d9f6ff; border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; font: 0.8rem/1.5 var(--mono); resize: vertical; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; background: var(--bg-2); color: var(--muted); font-size: 0.93rem; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-blurb { max-width: 34ch; margin-top: 16px; }
.footer-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--faint); font-size: 0.86rem; }

/* ---------- motion ---------- */
.reveal.pre { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pre { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}
@media (forced-colors: active) {
  .btn, .card, .panel, .dl, .frame { border: 1px solid CanvasText; }
  .btn-primary { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
@media print { .site-header, .site-footer, .cta-band, .hero-stage { display: none; } body { background: #fff; color: #000; } a { color: #000; } }

/* ---------- utilities ---------- */
.mt-sm { margin-top: 14px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: clamp(28px, 4vw, 48px); }
.w-full { width: 100%; }
.wide { max-width: 1100px; margin-inline: auto; }
.prose-wide { max-width: 940px; }
.faq-left { margin-inline: 0; }
@media (min-width: 900px) {
  .nav-open .site-nav { position: static; flex-direction: row; padding: 0; background: none; border: 0; }
  .nav-open .site-nav a:not(.btn) { padding: 8px 12px; font-size: 0.95rem; }
  .nav-open .site-nav .btn { margin-top: 0; }
}
.hero, .page-head, .section, .cta-band { overflow-x: clip; }

/* ---------- theme switch (Day / Auto / Night) ---------- */
.theme-switch { display: none; position: relative; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); --i: 1; margin-left: 8px; flex: none; }
.js .theme-switch { display: inline-grid; }
html[data-pref="day"] .theme-switch { --i: 0; }
html[data-pref="night"] .theme-switch { --i: 2; }
.theme-switch::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 999px; background: var(--text); transform: translateX(calc(var(--i) * 100%)); transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
.theme-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.theme-switch label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; min-height: 32px; padding: 0 10px; border-radius: 999px; cursor: pointer; color: var(--muted); font-size: 0.8rem; font-weight: 600; transition: color 0.2s; }
.theme-switch label svg { width: 15px; height: 15px; flex: none; }
.theme-switch input:checked + label { color: var(--bg); }
.theme-switch input:focus-visible + label { outline: 3px solid var(--accent-fg); outline-offset: 2px; }
.theme-switch .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1200px) { .theme-switch .t { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }
.nav-open .theme-switch { align-self: flex-start; margin: 12px 0 0 12px; }
.nav-open .theme-switch .t { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
@media (min-width: 900px) { .nav-open .theme-switch { margin: 0 0 0 8px; align-self: auto; } }

:root[data-theme="light"] .hero::before, :root[data-theme="light"] .page-head::before, :root[data-theme="light"] .cta-band::before { opacity: 0.55; }
:root[data-theme="light"] .frame { box-shadow: 0 40px 90px -30px rgba(15, 30, 60, 0.35), 0 0 0 1px rgba(12, 22, 44, 0.06); }
:root[data-theme="light"] .shot { box-shadow: 0 24px 60px -20px rgba(15, 30, 60, 0.35); }
:root[data-theme="light"] .btn-primary { box-shadow: 0 10px 26px -10px rgba(7, 103, 122, 0.55); }
:root[data-theme="light"] .card, :root[data-theme="light"] .dl, :root[data-theme="light"] .panel, :root[data-theme="light"] .steps li { box-shadow: 0 1px 2px rgba(15, 30, 60, 0.04); }
:root[data-theme="light"] .site-footer, :root[data-theme="light"] .trust, :root[data-theme="light"] .section.alt { background: var(--bg-2); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .hero::before, :root:not([data-theme]) .page-head::before, :root:not([data-theme]) .cta-band::before { opacity: 0.55; }
  :root:not([data-theme]) .site-footer, :root:not([data-theme]) .trust, :root:not([data-theme]) .section.alt { background: var(--bg-2); }
}
@media (forced-colors: active) { .theme-switch::before { background: Highlight; } .theme-switch input:checked + label { color: HighlightText; } }

/* ---------- account pages ---------- */
.account-page { min-height: 60vh; }
.auth-card { max-width: 480px; margin: clamp(8px, 4vw, 48px) auto 0; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: 0 40px 100px -50px rgba(103, 232, 249, 0.25); }
.auth-card > * + * { margin-top: 16px; }
.auth-card .h-2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
.socials { display: grid; gap: 10px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-weight: 600; text-decoration: none; transition: border-color 0.18s, transform 0.18s; }
.social-btn:hover { border-color: var(--accent-fg); text-decoration: none; transform: translateY(-1px); }
.glyph { width: 20px; height: 20px; flex: none; display: inline-grid; place-items: center; }
.glyph.g { background: #fff; color: #4285f4; border-radius: 50%; font: 800 0.95rem/20px var(--font); }
.glyph.ms { grid-template-columns: 1fr 1fr; gap: 2px; }
.glyph.ms i { display: block; width: 9px; height: 9px; }
.glyph.ms i:nth-child(1) { background: #f25022; } .glyph.ms i:nth-child(2) { background: #7fba00; }
.glyph.ms i:nth-child(3) { background: #00a4ef; } .glyph.ms i:nth-child(4) { background: #ffb900; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 0.85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); }
.seg button { min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; }
.input:focus-visible { outline: 3px solid var(--accent-fg); outline-offset: 1px; border-color: transparent; }
.input::placeholder { color: var(--faint); }
.codeinput { font: 700 1.6rem/1 var(--mono); letter-spacing: 0.35em; text-align: center; }
.usercodeinput { letter-spacing: 0.2em; text-transform: uppercase; }
.hint { margin-top: 6px; font-size: 0.85rem; color: var(--faint); }
.row-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.row-links.center { justify-content: center; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--accent-fg); font-size: 0.92rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:disabled { color: var(--faint); cursor: default; text-decoration: none; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 0.93rem; }
.alert.error { border: 1px solid rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.09); color: var(--text); }
.alert.ok { border: 1px solid rgba(110, 231, 168, 0.45); background: rgba(110, 231, 168, 0.09); color: var(--text); }
.turnstile:empty { display: none; }
.qr-box { text-align: center; }
.qr-box .qr { width: 220px; height: 220px; margin: 0 auto; border-radius: 14px; border: 8px solid #fff; background: #fff; }
.usercode { text-align: center; font: 800 2rem/1.2 var(--mono); letter-spacing: 0.18em; }
.dash { max-width: 1020px; margin-inline: auto; }
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.card.acct > h2 { margin-bottom: 8px; }
.card.acct .stack { margin-top: 14px; display: grid; gap: 12px; }
.card.acct .btn-row { margin-top: 12px; }
.rowline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rowline:first-child { border-top: 0; }
.licence { padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg); }
.licence p + p { margin-top: 4px; }
.pill { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: var(--accent-fg); border: 1px solid var(--line-2); }
.mini { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin-top: 8px; }
.btn.danger { --_fg: #f87171; --_bd: rgba(248, 113, 113, 0.5); }
.nav-account { font-weight: 600; }
[hidden] { display: none !important; }
