/* Home page. Colours are the app's tokens (src/App.css) and follow the OS theme. */
@font-face { font-family: "Geist Variable"; src: url("assets/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono Variable"; src: url("assets/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #F3F4F6; --surface: #FFFFFF; --ink: #13171E; --muted: #5E6877; --line: #E0E3E8;
  --hover: #F6F7F9; --selected: #EEF0F8; --action: #13171E; --on-action: #FFFFFF; --focus: #3F51F0; --danger: #C8313A;
  --indigo: #5568E8; --amber: #E0A030; --teal: #22A094; --coral: #E26A52; --azure: #3F96E0; --magenta: #C25A9C; --green: #6CAA48;
  /* Pro, as in the app's paywall. */
  --accent: #4352D6; --on-accent: #FFFFFF; --accent-soft: #E6E9FD; --accent-ink: #3442B8; --accent-bg: #F5F6FE;
  --teal-ink: #13776D; --teal-tile: #DDF3F0; --teal-tint: #F7FCFB; --amber-ink: #8F5F0C; --amber-tile: #FBEFD6; --amber-tint: #FFFCF5;
  --mono: "Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1115; --surface: #161A20; --ink: #E8EBEF; --muted: #8D97A5; --line: #262C35;
    --hover: #1A1F26; --selected: #1D232D; --action: #E8EBEF; --on-action: #0E1115; --focus: #8C98FF; --danger: #D93D42;
    --indigo: #8C98FF; --amber: #F2B84B; --teal: #45C7B6; --coral: #FF8C70; --azure: #63B7FF; --magenta: #EB86C2; --green: #8FCB6C;
    --accent: #8C98FF; --on-accent: #0E1115; --accent-soft: rgba(140,152,255,.16); --accent-ink: #B4BCFF; --accent-bg: rgba(140,152,255,.08);
    --teal-ink: #45C7B6; --teal-tile: rgba(69,199,182,.16); --teal-tint: rgba(69,199,182,.05); --amber-ink: #F2B84B; --amber-tile: rgba(242,184,75,.16); --amber-tint: rgba(242,184,75,.05);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Geist Variable", system-ui, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a.btn:hover, .brand:hover, .opt:hover { text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
[id] { scroll-margin-top: 16px; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 800px; }
.band { border-top: 1px solid var(--line); background: var(--bg); }
.band-surface { background: var(--surface); }
.band > .wrap { padding-top: 88px; padding-bottom: 88px; }
.stack { display: flex; flex-direction: column; gap: 40px; }
.stack-sm { display: flex; flex-direction: column; gap: 32px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.col { display: flex; flex-direction: column; font-size: .875rem; line-height: 1.25rem; }
.strong, strong { font-weight: 600; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.small { font-size: .8125rem; }
.center { text-align: center; }
.fine { font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.body { font-size: 1.0625rem; line-height: 1.55; color: var(--muted); max-width: 30em; text-wrap: pretty; }
.body-sm { font-size: .875rem; }
.eyebrow { display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.eyebrow-sm { font-size: .6875rem; }
.text-link { align-self: flex-start; font-size: .9375rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-align: center; }
.btn-primary { background: var(--action); color: var(--on-action); border: 0; }
.btn-primary:hover { opacity: .88; }
.btn-secondary { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 500; }
.btn-secondary:hover { background: var(--hover); }
.btn-sm { min-height: 36px; padding: 0 14px; border-radius: 6px; gap: 8px; }
.btn-md { min-height: 48px; padding: 8px 16px; width: 100%; }
.btn-lg { min-height: 52px; padding: 8px 24px; font-size: 1rem; }
.btn-quiet { padding: 8px 20px; font-size: .9375rem; }
.btn-primary[aria-disabled="true"] { opacity: .65; }
.i { flex-shrink: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.nav { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.02em; }
.brand img { display: block; }
.nav-links { display: flex; align-items: center; gap: 4px 24px; flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
.nav-links .btn { color: var(--ink); }

/* Hero */
.hero { padding-top: 80px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 64px; }
.hero-main { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; }
.lead { font-size: 1.1875rem; line-height: 1.53; color: var(--muted); max-width: 30em; text-wrap: pretty; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero-art { flex: 1 1 460px; min-width: 0; margin: 0; display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: 100%; max-width: 480px; height: auto; display: block; overflow: visible; }
.arc { fill: var(--l); stroke: var(--bg); stroke-width: 3; stroke-linejoin: round; transform-box: view-box; transform-origin: 50% 50%; animation: dn-in .4s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-color-scheme: dark) { .arc { fill: var(--d); } }
.arc:hover { filter: brightness(1.15); }
/* Ninja head colours match src/assets/mark-light.svg and mark-dark.svg. */
.ninja { --head: #3F51F0; --band: #141A2E; }
@media (prefers-color-scheme: dark) { .ninja { --head: #6F7DFF; --band: #12172A; } }
.ninja-head { fill: var(--head); }
.ninja-band { fill: var(--band); }
.ninja-eyes { stroke: var(--band); }
@keyframes dn-in { from { opacity: 0; transform: scale(.9) rotate(-6deg); } to { opacity: 1; transform: none; } }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
.pillar { display: flex; gap: 14px; align-items: flex-start; }
.pillar > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.pillar strong { font-size: 1.0625rem; }
.pillar strong + span { font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.icon-box { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Two-column sections */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.split-reverse { flex-direction: row-reverse; gap: 56px; }
.split-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.h2-xl { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.035em; }

.suggestions { flex: 1 1 520px; min-width: 0; margin: 0; display: flex; justify-content: center; }
.suggestions-list { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 12px; padding: 24px 0; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--action); color: var(--on-action); font-size: .875rem; font-weight: 600; }
.suggestion { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin-left: min(var(--offset), 8%); }
.suggestion-top { display: flex; align-items: flex-start; gap: 12px; }
.suggestion-name { flex: 1 1 auto; min-width: 0; font-size: .9375rem; line-height: 1.25rem; font-weight: 600; }
.suggestion-top .mono { line-height: 1.25rem; }
.suggestion-bottom { display: flex; align-items: center; gap: 10px; padding-left: 24px; flex-wrap: wrap; }
.suggestion-reason { flex: 1 1 160px; min-width: 0; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; margin-top: 4px; }
.swatch-sm { width: 10px; height: 10px; margin-top: 0; }
.tag { flex-shrink: 0; font-size: .75rem; line-height: 1rem; font-weight: 500; padding: 3px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.tag-safe { background: var(--selected); color: var(--ink); border-color: transparent; }

.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; }
.checks svg { flex-shrink: 0; margin-top: 3px; }
.ask-demo { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ask-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: .9375rem; }
.ask-row .swatch { margin-top: 0; }
.ask-q { width: 26px; height: 26px; border-radius: 999px; background: var(--action); color: var(--on-action); display: flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 700; flex-shrink: 0; }
.ask-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.ask-card p { font-size: 1.0625rem; line-height: 1.55; }

.speed { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.speed-item { display: flex; flex-direction: column; gap: 8px; }
.speed-label { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > div { height: 100%; border-radius: 999px; background: var(--action); }
.bar-slow > div { background: var(--muted); }

/* Features */
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 20px; background: var(--surface); }
.card-art { min-height: 132px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.card-art-wrap { flex-direction: row; flex-wrap: wrap; align-content: center; }
.card-copy { display: flex; flex-direction: column; gap: 6px; }
.card-copy p { font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: .875rem; }
.mini-row-lg { justify-content: space-between; gap: 12px; padding: 10px 12px; flex-wrap: wrap; }
.mini-row .grow { font-weight: 500; }
.danger-btn { font-size: .8125rem; font-weight: 600; padding: 7px 12px; border-radius: 6px; background: var(--danger); color: #FFFFFF; white-space: nowrap; }
.selected-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; background: var(--selected); font-size: .875rem; }
.kbd-hint { align-self: flex-start; display: flex; align-items: center; gap: 6px; }
kbd { font-family: inherit; padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; background: var(--bg); }
.chip-plain { border-color: transparent; background: none; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); white-space: normal; }
.crumb-current { color: var(--ink); padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.stripe { display: flex; gap: 3px; height: 14px; border-radius: 4px; overflow: hidden; }

.price-free { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }

/* The tour video (App Store preview). */
.tour { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0E1115; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.tour video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

.link-row { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.link-row .text-link { display: inline-flex; align-items: center; gap: 6px; }

/* Pricing */
.buy-page { display: flex; flex-direction: column; gap: 16px; }
.buy-page .fine { max-width: 720px; margin: 0 auto; }
.thanks .key { margin: 0; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; font: 600 1.25rem/1.2 "Geist Mono Variable", ui-monospace, Menlo, monospace; letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 20px; background: var(--bg); }
.plan-pro { border: 2px solid var(--accent); padding: 27px; }
.plan-head { display: flex; flex-direction: column; gap: 4px; }
.price { font-size: 2.5rem; line-height: 1.1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price-line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-line .muted { font-size: .9375rem; }
.plan-note { font-size: .875rem; color: var(--muted); }
.plan-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: .9375rem; flex-grow: 1; }
.plan-buy { display: flex; flex-direction: column; gap: 10px; }
.pro-head { gap: 8px; }
.pro-pill { align-self: flex-start; display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .75rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.pro-title { font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; }
.pro-title .accent { color: var(--accent); }
.pro-features { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pro-feature { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.pro-feature > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pro-feature strong { font-size: .9375rem; font-weight: 600; }
.pro-feature strong + span { font-size: .875rem; line-height: 1.4; color: var(--muted); }
.pro-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.is-explain { background: var(--teal-tint); } .is-explain .pro-icon { background: var(--teal-tile); color: var(--teal-ink); }
.is-suggest { background: var(--amber-tint); } .is-suggest .pro-icon { background: var(--amber-tile); color: var(--amber-ink); }
/* Learn more (website/pro.mjs), as in the app's paywall. The card lays out
   in two columns when it's wide, as on /buy/. */
.plan-pro { container-type: inline-size; }
.pro-plans, .pro-learn { display: flex; flex-direction: column; gap: 20px; }
.pro-plans[hidden], .pro-learn[hidden] { display: none; }
.pro-learn-link { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto; padding: 4px 0; border: 0; background: none; font: inherit; font-size: .875rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.is-explain .pro-learn-link { color: var(--teal-ink); } .is-suggest .pro-learn-link { color: var(--amber-ink); }
.pro-learn-link:hover { opacity: .8; }
.pro-learn-top { display: flex; align-items: center; gap: 12px; }
.pro-back { width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.pro-back:hover, .pro-see-plans:hover { background: var(--hover); }
.pro-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 10px; background: var(--surface); }
.pro-tabs button { padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.pro-tabs button[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pro-clip { position: relative; margin: 0; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.pro-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pro-clip-buttons { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; }
.pro-clip-button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.pro-clip-button:hover { background: rgba(0,0,0,.75); }
.pro-learn-body { display: flex; flex-direction: column; gap: 20px; }
.pro-learn-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pro-learn-text h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.pro-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: .9375rem; line-height: 1.45; }
.pro-points li { display: flex; align-items: flex-start; gap: 10px; }
.pro-tick { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; }
.pro-points.is-explain { background: none; } .pro-points.is-explain .pro-tick { background: var(--teal-tile); color: var(--teal-ink); }
.pro-points.is-suggest { background: none; } .pro-points.is-suggest .pro-tick { background: var(--amber-tile); color: var(--amber-ink); }
.pro-see-plans { align-self: center; padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@container (max-width: 480px) {
  .pro-feature { flex-wrap: wrap; row-gap: 4px; }
  .pro-learn-link { margin-left: 52px; flex-basis: calc(100% - 52px); }
}
@container (min-width: 860px) {
  .pro-plans { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "head tiers" "features tiers" "features buy"; column-gap: 48px; row-gap: 20px; align-items: start; }
  .pro-plans > .pro-head { grid-area: head; } .pro-plans > .pro-features { grid-area: features; }
  .pro-plans > .tiers { grid-area: tiers; padding-top: 14px; } .pro-plans > .plan-buy { grid-area: buy; }
  .pro-learn-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
}

/* Yearly first and picked; the billed amount is always the biggest number. */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 18px 10px; padding-top: 10px; flex-grow: 1; align-content: start; }
.tier { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 14px 14px; margin: 1px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.tier:hover { background: var(--hover); }
.tier[aria-pressed="true"] { margin: 0; border: 2px solid var(--accent); background: var(--accent-bg); }
.tier-ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.tier-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.tier-name { font-size: .875rem; font-weight: 600; color: var(--muted); }
.tier-check { width: 20px; height: 20px; border-radius: 999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); color: transparent; }
.tier[aria-pressed="true"] .tier-check { border: 0; background: var(--accent); color: var(--on-accent); }
.tier-price { font-size: 1.75rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tier .plan-note { font-size: .8125rem; }
.tier-chip { margin-top: 2px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-size: .8125rem; font-weight: 600; }
#buy:disabled { cursor: wait; opacity: .6; }

/* Download */
.download-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.download-head .section-head { max-width: 560px; }
.download-main { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.platform { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.platform.is-current { border: 2px solid var(--ink); padding: 23px; }
.platform-pick { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.platform-pick .icon-box { background: none; }
.platform-name { display: flex; flex-direction: column; }
.platform-name > span:first-child { font-size: 1.125rem; font-weight: 600; }
.platform-name > span:last-child { font-size: .8125rem; color: var(--muted); }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
a.opt:hover { background: var(--hover); }
.opt > span:first-child { display: flex; flex-direction: column; flex: 1 1 8em; min-width: 0; line-height: 1.25rem; }
.opt-label { font-size: .9375rem; font-weight: 500; }
.opt-meta { font-size: .75rem; line-height: 1rem; color: var(--muted); }
.opt.is-soon .opt-label { color: var(--muted); }
.soon { font-size: .75rem; font-weight: 500; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; font-size: 1.0625rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { padding: 0 40px 20px 0; font-size: .9375rem; line-height: 1.53; color: var(--muted); }
.plus { flex-shrink: 0; transition: transform .16s ease-out; }
details[open] .plus { transform: rotate(45deg); }

/* Closing and footer */
.band > .closing { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.closing h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; max-width: 18em; }
.site-footer { border-top: 1px solid var(--line); }
.footer { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: .875rem; color: var(--muted); }
.footer nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }

/* Narrow screens: logo and Download on the first line, all section links on the second. */
@media (max-width: 680px) {
  .nav { gap: 10px 12px; }
  .nav-links { display: contents; }
  .brand { flex: 1 1 auto; }
  .nav::after { content: ""; order: 2; flex-basis: 100%; }
  .nav-links a:not(.btn) { order: 3; padding: 4px 0; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 48px; padding-bottom: 56px; gap: 48px; }
  .band > .wrap { padding-top: 64px; padding-bottom: 64px; }
  .plan { padding: 20px; }
  .plan-pro { padding: 19px; }
  .faq p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .arc { animation: none; } .plus { transition: none; } }

/* Seasonal offer banner above the header (hidden by nav.mjs once the offer ends). */
.offer-banner { background: var(--accent); color: var(--on-accent); font-size: .875rem; line-height: 1.4; }
.offer-banner a { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding: 10px 16px; min-height: 44px; text-align: center; }
.offer-banner a:hover { text-decoration: none; }
.offer-banner a:hover .offer-cta { text-decoration: underline; text-underline-offset: 3px; }
.offer-cta { font-weight: 600; white-space: nowrap; }
.offer-banner a:focus-visible { outline-color: var(--on-accent); outline-offset: -4px; }

/* Menu button: only on narrow screens, and only when nav.mjs has run. */
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -4px -8px -4px 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle:hover { background: var(--hover); }
@media (max-width: 680px) {
  .nav.has-menu::after { display: none; }
  .nav.has-menu .menu-toggle { display: inline-flex; }
  .nav.has-menu .nav-links { display: none; }
  .nav.has-menu.open .nav-links { display: flex; flex-direction: column; align-items: stretch; flex-basis: 100%; gap: 0; padding-bottom: 6px; }
  .nav.has-menu.open .nav-links a:not(.btn) { order: 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: 1rem; color: var(--ink); }
  .nav.has-menu.open .nav-links .btn { margin-top: 10px; min-height: 44px; }
}
