/* 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;
  --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;
  }
}

* { 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; }

/* Pricing */
.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(--ink); padding: 27px; }
.plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.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; }
.toggle { display: flex; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.toggle button { min-height: 36px; padding: 0 14px; border-radius: 6px; border: 0; font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; background: transparent; color: var(--muted); }
.toggle button[aria-pressed="true"] { background: var(--action); color: var(--on-action); 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; }

@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; } }
