/* Navi website. Built on the app's own tokens (tokens.css, copied from ui/css): the Mist lilac
   palette, Poppins, the elevation ladder and the six colours. Light paper throughout; depth from
   small tonal steps, hairlines and quiet shadows, never dark panels or blurred blobs. */

:root {
  --font: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 44px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dot: color-mix(in oklab, var(--ink) 9%, transparent);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- type */
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 18px; }
.label::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--ink); }
.h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }
.lede { font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.6; color: var(--ink-quiet); max-width: 58ch; margin: 18px 0 0; text-wrap: pretty; }
p { margin: 0; text-wrap: pretty; }
.quiet { color: var(--ink-quiet); }
.faint { color: var(--ink-faint); }
.small { font-size: 14px; line-height: 1.6; }
.accent-word { color: var(--accent-ink); }
kbd, .key { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 9px; background: var(--card-strong); border: 1px solid var(--rule-strong); border-bottom-width: 2px; box-shadow: inset 0 1px 0 var(--kbd-shine); font: 600 13px/1 var(--font); color: var(--ink); white-space: nowrap; }
.plus { color: var(--ink-faint); font-weight: 500; margin: 0 2px; }

/* ---------------------------------------------------------------- buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: var(--r-pill); border: 1px solid var(--rule-strong); background: var(--card-strong); color: var(--ink); font: 500 15.5px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn:hover { background: var(--paper); border-color: color-mix(in oklab, var(--ink) 30%, var(--rule-strong)); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: var(--e2); }
.btn-ink:hover { background: color-mix(in oklab, var(--ink) 86%, var(--accent)); border-color: transparent; transform: translateY(-1px); box-shadow: var(--e3); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-quiet); }
.btn-ghost:hover { background: var(--hover); border-color: transparent; color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn-sm svg { width: 16px; height: 16px; }
.arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: var(--r-pill); background: var(--well); color: var(--ink-quiet); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip.accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip.line { background: transparent; border: 1px solid var(--rule-strong); }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in oklab, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line-soft); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -.035em; }
.logo-tile { width: 32px; height: 32px; border-radius: 22%; background: var(--tile); position: relative; flex: none; box-shadow: var(--e1); transition: background .5s; }
.logo-tile::after { content: ""; position: absolute; inset: 0; background: var(--tile-mark); -webkit-mask: url("../img/firefly-mark.png") center / 100% 100% no-repeat; mask: url("../img/firefly-mark.png") center / 100% 100% no-repeat; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-quiet); padding: 8px 14px; border-radius: var(--r-pill); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--hover); }
.nav .btn-sm { margin-left: 4px; }
@media (max-width: 720px) {
  .nav-links a:not(.keep) { display: none; }
  .nav .wrap { gap: 12px; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + 40px) 0 120px; }
.dots { position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(var(--dot) 1.1px, transparent 1.3px); background-size: 30px 30px; background-position: 15px 15px; -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 46%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse 70% 62% at 50% 46%, #000 30%, transparent 78%); }
.hero-inner { text-align: center; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 5px 16px 5px 8px; text-align: left; line-height: 1.35; border-radius: var(--r-pill); background: color-mix(in oklab, var(--paper) 70%, transparent); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink-quiet); box-shadow: var(--e1); }
.kicker .pip { width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.kicker .pip::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent); }
.wordmark { font-size: clamp(132px, 23vw, 312px); line-height: .82; letter-spacing: -.065em; font-weight: 600; margin: 34px 0 6px; padding-right: .04em; color: var(--ink); user-select: none; }
.wordmark .i { position: relative; }
.hero .lede { text-align: center; margin: 26px auto 0; max-width: 40ch; font-size: clamp(18px, 1.8vw, 22px); color: var(--ink-quiet); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.hero-meta { margin-top: 22px; font-size: 13.5px; color: var(--ink-faint); display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--accent-ink); }
.scroll-cue { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--rule-strong), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent-ink); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* The firefly, flying about the hero. Its wings and glow use the app's own animations. */
.sky { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sky .navi-firefly { position: absolute; left: 0; top: 0; bottom: auto; margin: 0; width: 150px; height: 150px; opacity: 1; visibility: visible; will-change: transform; filter: drop-shadow(0 8px 18px color-mix(in oklab, var(--accent) 30%, transparent)); }
.sky .navi-firefly .ff-flight, .sky .navi-firefly .ff-hover, .sky .navi-firefly svg { width: 100%; height: 100%; }
.sky .navi-firefly .ff-glow { transform-origin: 134px 122px; animation: fireflyGlow 3.2s ease-in-out infinite; }
.sky .navi-firefly .ff-wing { transform-box: view-box; transform-origin: 124px 116px; animation: fireflyFlap .14s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .sky .navi-firefly .ff-wing, .sky .navi-firefly .ff-glow { animation: none; } }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(84px, 11vw, 150px) 0; position: relative; }
.section.tint { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.sec-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .label { justify-content: center; }
.sec-head.center .lede { margin-left: auto; margin-right: auto; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.card { background: var(--card-strong); border: 1px solid var(--line-soft); border-radius: var(--r-xl); box-shadow: var(--e1); }

/* ---------------------------------------------------------------- how it works (demo) */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid transparent; transition: background .4s, border-color .4s, box-shadow .4s; }
.step .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: var(--ink-faint); border: 1px solid var(--rule-strong); transition: all .4s; }
.step h3 { font-size: 19px; letter-spacing: -.02em; margin: 2px 0 4px; }
.step p { color: var(--ink-quiet); font-size: 15px; }
.step.on { background: var(--card-strong); border-color: var(--line-soft); box-shadow: var(--e2); }
.step.on .num { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stage { position: relative; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-soft); padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px) 150px; overflow: hidden; box-shadow: var(--e1); }
.stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 22px 22px; opacity: .8; }
.win { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--e2); overflow: hidden; }
.win-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); background: var(--card); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-strong); }
.win-bar b { font-size: 12.5px; font-weight: 500; color: var(--ink-faint); margin-left: 8px; }
.win-body { padding: 20px 22px 26px; min-height: 196px; }
.field-row { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-faint); padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.field-row b { color: var(--ink-quiet); font-weight: 500; }
.typed { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--ink); min-height: 192px; white-space: pre-wrap; }
.caret { display: inline-block; width: 2px; height: 1.15em; vertical-align: -3px; background: var(--accent-ink); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.step h3 .key { transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; }
.held.down .key, h3.down .key { transform: translateY(2px); border-bottom-width: 1px; background: var(--accent-soft); border-color: var(--accent-light); box-shadow: none; }
.bubble-host { position: absolute; left: 0; right: 0; bottom: 26px; height: 120px; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.bubble-host .bubble { position: relative; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- features */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; }
.feature + .feature { border-top: 1px solid var(--line-soft); }
.feature.flip .feature-copy { order: 2; }
.feature-copy .h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.035em; line-height: 1.15; }
.feature-copy p { margin-top: 16px; color: var(--ink-quiet); font-size: 16.5px; }
.feature-copy .small { margin-top: 14px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-copy { order: 0; } }

/* app -> mode table */
.routes { padding: 10px; }
.route { display: grid; grid-template-columns: minmax(0, 1fr) 30px 86px; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); transition: background .3s; }
.route + .route { border-top: 1px solid var(--line-soft); }
.route .app { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15.5px; }
.route .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--well); display: grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--ink-quiet); flex: none; }
.route .to { color: var(--ink-faint); justify-self: center; }
.route .to svg { width: 18px; height: 18px; }
.route .chip { justify-self: start; }
.route .sub { display: block; font-size: 13px; color: var(--ink-faint); font-weight: 400; }
.route.lit { background: var(--accent-wash); }

/* voice commands */
.commands { padding: 8px; }
.cmd { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: var(--r-md); }
.cmd + .cmd { border-top: 1px solid var(--line-soft); }
.cmd b { font-weight: 500; font-size: 15.5px; display: block; }
.cmd b::before { content: "“"; color: var(--accent); }
.cmd b::after { content: "”"; color: var(--accent); }
.cmd span.what { display: block; font-size: 13.5px; color: var(--ink-faint); margin-top: 2px; }

/* framed screenshot */
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--e3); background: var(--paper); }
.shot img { width: 100%; height: auto; }
.shot-crop { aspect-ratio: 16 / 11; overflow: hidden; }
.shot-crop img { object-fit: cover; object-position: top left; width: 100%; height: 100%; }

/* bento of smaller features */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.tile { padding: 28px; border-radius: var(--r-xl); background: var(--card-strong); border: 1px solid var(--line-soft); box-shadow: var(--e1); display: flex; flex-direction: column; gap: 10px; transition: transform .35s var(--ease), box-shadow .35s; min-width: 0; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--e2); }
.tile h3 { font-size: 19px; letter-spacing: -.02em; }
.tile p { color: var(--ink-quiet); font-size: 15px; }
.tile .art { margin-bottom: 8px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 980px) { .span-4, .span-5, .span-7, .span-8 { grid-column: span 6; } }
@media (max-width: 640px) { .bento > * { grid-column: span 12 !important; } }
.fix { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; font-weight: 500; }
.fix s { color: var(--ink-faint); text-decoration-color: var(--blue); text-decoration-thickness: 1.5px; font-weight: 400; }
.fix .to { color: var(--ink-faint); }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.big-num { font-size: 56px; font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.big-num small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--ink-faint); margin-left: 6px; }

/* sound sets */
.sounds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.snd { position: relative; text-align: left; padding: 12px 12px 12px 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font: 500 14px/1.2 var(--font); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.snd::before { content: ""; position: absolute; left: 12px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--accent-soft); }
.snd::after { content: ""; position: absolute; left: 21px; top: 50%; margin-top: -4px; border-left: 6px solid var(--accent-ink); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.snd:hover { border-color: var(--accent-light); }
.snd.playing { background: var(--accent-wash); border-color: var(--accent); transform: scale(.98); }
.snd.default { border-color: var(--accent-light); }
@media (max-width: 1100px) { .sounds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* colours */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 14px; border: 0; cursor: pointer; position: relative; background: var(--sw); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 10%, transparent); transition: transform .25s var(--ease); }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: 18px; border: 2px solid var(--sw); }
.swatch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.say { font-size: 14px; color: var(--ink-faint); margin-top: 12px; }
.say b { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------------- privacy */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.fact { padding: 30px 26px 8px 0; }
.fact + .fact { padding-left: 26px; border-left: 1px solid var(--line-soft); }
.fact .n { font-size: 13px; font-weight: 600; color: var(--accent-ink); letter-spacing: .1em; }
.fact h3 { font-size: 19px; letter-spacing: -.02em; margin: 14px 0 10px; }
.fact p { color: var(--ink-quiet); font-size: 15px; }
@media (max-width: 980px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } .fact, .fact + .fact { padding-left: 0; border-left: 0; } .fact + .fact { border-top: 1px solid var(--line-soft); } }

/* ---------------------------------------------------------------- AI options */
.options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.opt { padding: 26px; }
.opt .tag { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.opt h3 { font-size: 20px; letter-spacing: -.02em; margin: 10px 0 8px; }
.opt p { color: var(--ink-quiet); font-size: 14.5px; }
.opt.featured { background: var(--accent-wash); border-color: var(--accent-soft); }
.note { margin-top: 26px; font-size: 14px; color: var(--ink-faint); max-width: 80ch; }
@media (max-width: 980px) { .options { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .options { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- get started */
.start { text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.start .dots { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 75%); }
.start-tile { width: 88px; height: 88px; margin: 0 auto 30px; border-radius: 22%; }
.start .lede { margin: 18px auto 0; text-align: center; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 56px auto 0; max-width: 980px; text-align: left; }
.how-steps .card { padding: 24px; }
.how-steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.how-steps h3 { font-size: 17px; }
.how-steps p { font-size: 14.5px; color: var(--ink-quiet); margin-top: 6px; }
.reqs { margin: 34px auto 0; display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-faint); max-width: 860px; }
@media (max-width: 760px) { .how-steps { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- FAQ (accordion) */
.faq-group + .faq-group { margin-top: 56px; }
.faq-group > h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-of-type { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 4px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rule-strong); flex: none; position: relative; transition: transform .35s var(--ease), background .2s; }
.qa summary .pm::before, .qa summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; background: var(--ink-quiet); border-radius: 2px; }
.qa summary .pm::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.qa[open] summary .pm { background: var(--accent-soft); border-color: var(--accent-light); }
.qa[open] summary .pm::after { transform: rotate(0deg); }
.qa summary:hover .pm { border-color: var(--accent); }
.qa .ans { padding: 0 64px 24px 4px; color: var(--ink-quiet); font-size: 16px; }
.qa .ans p + p { margin-top: 10px; }
.qa .ans code { font: 500 14px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--well); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.faq-wrap { max-width: 860px; }
.faq-teaser .qa summary { font-size: 17px; }

/* ---------------------------------------------------------------- page header (manual, FAQ) */
.page-head { padding: calc(var(--nav-h) + clamp(56px, 8vw, 96px)) 0 clamp(36px, 5vw, 56px); position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line-soft); }
.page-head .dots { -webkit-mask-image: radial-gradient(ellipse 60% 90% at 70% 10%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 90% at 70% 10%, #000 10%, transparent 70%); }
.page-head h1 { font-size: clamp(44px, 6.5vw, 84px); letter-spacing: -.055em; line-height: .98; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line-soft); padding: 56px 0 46px; background: var(--surface); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot p { font-size: 14px; color: var(--ink-faint); margin-top: 14px; max-width: 42ch; }
.foot h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--ink-quiet); font-size: 14.5px; }
.foot a:hover { color: var(--ink); }
.legal { grid-column: 1 / -1; padding-top: 26px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-faint); }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .nav .btn-sm .lbl { display: none; } .nav .btn-sm { padding: 0 11px; } .nav-links a { padding: 8px 10px; } }

/* ---------------------------------------------------------------- install with one prompt */
.install { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.mini-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.mini-steps li { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 16px; }
.mini-steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 13.5px; display: grid; place-items: center; flex: none; }
.diy { margin-top: 26px; }
.diy a { color: var(--accent-ink); }
.prompt-card { border-radius: var(--r-xl); background: var(--card-strong); border: 1px solid var(--line); box-shadow: var(--e3); overflow: hidden; }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line-soft); background: var(--card); }
.prompt-who { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-quiet); }
.prompt-who .spark { width: 17px; height: 17px; color: var(--accent-ink); }
.copy.done { background: var(--accent-soft); border-color: var(--accent-light); color: var(--accent-ink); }
.prompt-text { margin: 0; padding: 22px 24px 26px; font: 400 15px/1.7 var(--font); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 900px) { .install { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- the film */
.film { position: relative; max-width: 1100px; margin: 0 auto; border-radius: 22px; overflow: hidden; box-shadow: var(--e3); border: 1px solid var(--line); background: #0f0d1a; aspect-ratio: 16 / 9; }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 26px 0 22px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .25); background: rgba(251, 250, 253, .94); color: var(--ink); font: 500 16px var(--font); cursor: pointer; box-shadow: 0 10px 30px rgba(15, 13, 26, .35); transition: transform .25s var(--ease), background .2s; }
.film-play:hover { transform: translate(-50%, -50%) scale(1.04); background: #fff; }
.film-play svg { width: 22px; height: 22px; color: var(--accent-ink); }
.film.playing .film-play { opacity: 0; pointer-events: none; }
