:root {
  --bg: #0a0a0b;
  --panel: #131316;
  --panel-2: #1a1a1f;
  --line: #2a2a31;
  --hair: rgba(255,255,255,0.06);
  --ink: #f4f4f6;
  --muted: #9a9aa6;
  --faint: #5d5d68;
  --accent: #3d7bfd;
  --accent-fill: #2f6cf0;   /* white text on it passes AA */
  --accent-ink: #7aa4ff;    /* accent-coloured text on --bg */
  --accent-glow: rgba(61,123,253,0.16);
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", -apple-system, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  /* Plex Mono has no ⇧ ⌥ ⌃ glyphs; fall back to the system font, which draws them at a readable size. */
  --keys: "IBM Plex Mono", -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", "Apple Symbols", monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; max-width: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
.wrap { max-width: 1168px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); min-width: 0; }
main { overflow-x: clip; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
kbd, .cap { font-family: var(--keys) !important; }
.nw { white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 999px; padding: 0 22px; font: 600 15px var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--ink); color: #0a0a0b; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 8px 24px -8px rgba(255,255,255,.25); }
.btn.primary:hover { background: #ffffff; }
.btn.ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.btn.ghost:hover { border-color: #3c3c46; background: rgba(255,255,255,.05); }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn .ver { font: 500 12px var(--mono); padding: 2px 7px; border-radius: 999px; background: rgba(10,10,11,.08); color: #3b3b44; }
.btn.small .ver { display: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(10,10,11,.78); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--hair); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--display); letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 4px; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-link { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--muted); }
.icon-link:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.icon-link svg { width: 19px; height: 19px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 18px; height: 18px; }
.menu[open] summary { background: var(--panel-2); }
.menu-panel { position: absolute; right: 0; top: 46px; width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px; box-shadow: 0 24px 48px -12px rgba(0,0,0,.7); display: grid; }
.menu-panel a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 15px; }
.menu-panel a:hover { background: rgba(255,255,255,.05); }

/* Hero */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -60px 0 auto; height: 720px; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 46% at 72% 34%, var(--accent-glow), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
h1 { font-weight: 800; font-size: clamp(50px, 6.6vw, 82px); line-height: .96; letter-spacing: -0.045em; margin: 22px 0 22px; }
h1 span { color: var(--muted); }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 30em; }
.lede b { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
/* Each item carries its separator in front of it; the list is pulled left by one
   separator's width and clipped, so a separator that starts a new line is hidden. */
.meta { margin-top: 18px; font-size: 14px; color: var(--muted); overflow: hidden; }
.meta ul { list-style: none; padding: 0; margin: 0 0 0 -22px; display: flex; flex-wrap: wrap; row-gap: 4px; }
.meta li { white-space: nowrap; }
.meta li::before { content: "·"; display: inline-block; width: 22px; text-align: center; }
.news { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-size: 13.5px; text-decoration: none; transition: border-color .15s, color .15s; }
.news:hover { border-color: #3c3c46; color: var(--ink); }
.news b { font: 500 11.5px var(--mono); letter-spacing: .04em; color: #fff; background: var(--accent-fill); padding: 2px 8px; border-radius: 999px; }
.news[hidden] { display: none; }
.news:not([hidden]) + .eyebrow { display: none; }

/* Demo */
.demo { position: relative; }
.stage { position: relative; height: 520px; border-radius: 26px; border: 1px solid var(--line); overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  background:
    radial-gradient(60% 50% at 50% 48%, rgba(255,255,255,.035), transparent 70%),
    radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.3px) 0 0 / 22px 22px,
    linear-gradient(180deg, #141418, #0f0f12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 40px 80px -40px rgba(0,0,0,.9); }
.stage-top { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: flex; align-items: center; justify-content: center; padding: 0 20px; border-bottom: 1px solid var(--hair); background: rgba(10,10,11,.35); }
.try { position: absolute; left: 18px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hint { font-size: 14px; color: var(--ink); text-align: center; line-height: 1.4; }
.hint kbd, .kc { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; margin: 0 1px; border-radius: 6px; font: 500 15px/1 var(--mono); color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px; vertical-align: 1px; }
.hint .alt { color: var(--muted); }
.home { position: absolute; left: 0; top: 0; width: 86px; height: 66px; border-radius: 10px; border: 1.5px dashed rgba(255,255,255,.12); opacity: 0; transition: opacity .2s; pointer-events: none; }
.stage.lifted .home { opacity: 1; }
.file { position: absolute; left: 0; top: 0; width: 78px; height: 58px; z-index: 3; cursor: grab; touch-action: none; border-radius: 6px; will-change: transform; }
.file.returning { transition: transform .32s var(--ease); }
.file svg.thumb { width: 100%; height: 100%; display: block; border-radius: 6px; box-shadow: 0 0 0 3px #f4f4f6, 0 10px 24px -6px rgba(0,0,0,.7); transition: box-shadow .2s, transform .2s var(--ease); }
.fname { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); font: 600 12px var(--body); color: var(--ink); padding: 2px 8px; border-radius: 5px; white-space: nowrap; transition: opacity .15s; }
.file:focus-visible { outline-offset: 6px; }
.file:focus-visible .fname, .file.held .fname { background: var(--accent-fill); }
.file.lifted { cursor: grabbing; }
.file.lifted svg.thumb { transform: rotate(-4deg) scale(1.05); box-shadow: 0 0 0 3px #f4f4f6, 0 26px 40px -10px rgba(0,0,0,.85); }
.file.lifted .fname { opacity: 0; }
.file.held .fname { opacity: 1; }
.stage.wheel-open .fname { opacity: 0; }
.stage.wheel-open .file svg.thumb { transform: scale(.8); }
.stage.wheel-open .file.lifted:not(.held) svg.thumb { transform: rotate(-4deg) scale(.72); opacity: .88; }
.ring { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; border: 1px solid rgba(255,255,255,.055); transition: opacity .2s; }
.ring.inner { border-style: dashed; border-color: rgba(255,255,255,.07); }
.stage.wheel-open .ring, .stage.lifted .ring { opacity: 0; }
#wheel { position: absolute; left: 0; top: 0; z-index: 2; overflow: visible; opacity: 0; pointer-events: none; transform-origin: 50% 54.8%; transition: opacity .14s ease, transform .2s var(--ease); transform: scale(.7); }
#wheel.open { opacity: 1; transform: none; }
#wheel .disc { filter: drop-shadow(0 22px 34px rgba(0,0,0,.6)); }
#wheel .petal path.shape { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.38); stroke-width: .8; transition: fill .12s; }
#wheel .petal path.gloss { fill: url(#wheel-gloss); pointer-events: none; opacity: .3; }
#wheel .lab text { font: 700 13px var(--body); letter-spacing: .4px; fill: rgba(255,255,255,.86); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
#wheel .lab text.small { font-size: 9.5px; }
#wheel .lab .ico { fill: none; stroke: rgba(255,255,255,.86); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
#wheel .petal.on { filter: drop-shadow(0 3px 10px rgba(61,123,253,.5)); }
#wheel .petal.on path.shape { fill: url(#wheel-lit); stroke: rgba(255,255,255,.55); }
#wheel .petal.on path.gloss { opacity: 1; }
#wheel .petal.empty { opacity: .3; }
#wheel .lab .ico.pg { stroke-width: 3.6; }
#wheel .lab .track { fill: none; stroke: rgba(255,255,255,.86); stroke-width: 2; opacity: .25; }
#wheel .lab .prog { fill: none; stroke: rgba(255,255,255,.95); stroke-width: 2; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .12s ease-out; }
#wheel .lab.dwell .prog { stroke-dashoffset: 0; transition: stroke-dashoffset .35s linear; }
#wheel .lab .dot { fill: rgba(255,255,255,.86); opacity: .35; }
#wheel .lab .dot.cur { opacity: 1; }
#wheel .lab.on text, #wheel .lab.on .dot { fill: #fff; }
#wheel .lab.on .ico, #wheel .lab.on .track, #wheel .lab.on .prog { stroke: #fff; }
/* Page turn: labels cross-fade with a slight turn about the wheel's centre (user-space origin). */
#wheel .labels { pointer-events: none; transition: opacity .18s ease, transform .18s ease; transform-box: view-box; transform-origin: 0 0; }
#wheel .labels.enter { opacity: 0; transform: rotate(-10deg); }
#wheel .labels.leave { opacity: 0; transform: rotate(10deg); }
#wheel .hub { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.5); stroke-width: .8; transition: fill .12s; }
#wheel.has-on .hub { fill: rgba(61,123,253,.9); }
#wheel .pill rect { fill: rgba(44,44,50,.96); stroke: rgba(255,255,255,.35); stroke-width: .8; }
#wheel .pill text { font: 600 12px var(--body); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
#wheel.has-on .pill rect { fill: var(--accent-fill); stroke: rgba(255,255,255,.45); }
#wheel.has-on .pill text { fill: #fff; }
.toast { position: absolute; left: 50%; top: 72px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; min-width: 230px; max-width: calc(100% - 32px);
  background: rgba(30,30,35,.94); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.8);
  transform: translate(-50%, -8px); opacity: 0; transition: opacity .2s, transform .25s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); }
.toast .tick svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.toast b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.toast small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.stage-keys { position: absolute; left: 0; right: 0; bottom: 0; height: 68px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border-top: 1px solid var(--hair); background: rgba(10,10,11,.35); }
.stage-keys .lbl { font-size: 13px; color: var(--muted); margin-right: 6px; }
.wkey { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px 0 8px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: 600 14px var(--body); cursor: pointer; transition: border-color .15s, background .15s; }
.wkey kbd { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 5px; border-radius: 7px; background: #26262d; border: 1px solid #34343c; font: 500 16px/1 var(--mono); }
.wkey:hover { border-color: #3c3c46; }
.wkey[aria-pressed="true"] { border-color: var(--accent); background: rgba(61,123,253,.12); }
.wkey[aria-pressed="true"] kbd { background: var(--accent-fill); border-color: transparent; color: #fff; }
.demo-caption { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* Sections */
section { padding-block: 96px; }
.sec-head { max-width: 640px; }
.sec-head.center { margin: 0 auto; text-align: center; }
h2 { font-weight: 800; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -0.035em; margin: 16px 0 16px; }
.sec-lede { color: var(--muted); font-size: 18px; line-height: 1.6; }
.card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 50%), var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
h3 { font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: 15.5px; }
.plate { border-radius: var(--r-md); border: 1px solid var(--hair); background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.055), transparent 62%), #0e0e11; }
code { font: 13.5px var(--mono); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); overflow-wrap: anywhere; }

/* Steps */
.steps { list-style: none; padding: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; counter-reset: step; }
.step { padding: 12px 12px 26px; }
.step .art { height: 176px; display: grid; place-items: center; position: relative; overflow: hidden; }
.step .num { display: block; margin: 22px 14px 8px; font: 500 12px var(--mono); color: var(--accent-ink); letter-spacing: .08em; }
.step h3, .step p { margin-left: 14px; margin-right: 14px; }
.step p { margin-top: 6px; }
.art svg { overflow: visible; }
.caps { display: flex; gap: 10px; }
.cap { display: grid; place-items: center; min-width: 54px; height: 54px; padding: 0 12px; border-radius: 12px; font: 500 24px/1 var(--mono); color: var(--ink); background: linear-gradient(180deg, #24242b, #1b1b21); border: 1px solid #34343d; border-bottom-width: 3px; }
.cap.on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(61,123,253,.15), 0 0 26px rgba(61,123,253,.3); }
.cap small { display: block; font: 600 10px var(--body); color: var(--muted); letter-spacing: .02em; margin-top: -4px; }

/* Wheels tabs */
.tabs { margin-top: 48px; }
.tablist { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px 0 10px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: 600 15px var(--body); cursor: pointer; white-space: nowrap; }
.tab kbd { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 5px; border-radius: 7px; border: 1px solid var(--line); font: 500 16px/1 var(--mono); color: var(--ink); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px #34343c; }
.tab[aria-selected="true"] kbd { background: var(--accent-fill); border-color: transparent; color: #fff; }
.tabpanel { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; overflow: hidden; }
.tabpanel[hidden] { display: none; }
.tabpanel .shot { padding: 40px; display: grid; place-items: center; border-right: 1px solid var(--line); background: radial-gradient(closest-side, rgba(61,123,253,.13), transparent 85%), radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.04), transparent 60%), #0e0e11; }
.tabpanel .shot img { width: min(100%, 380px); }
.tabpanel .copy { padding: 48px 48px 44px; display: flex; flex-direction: column; }
.tabpanel h3 { font-size: 30px; letter-spacing: -0.025em; display: flex; align-items: center; gap: 14px; }
.tabpanel h3 .kc { height: 34px; min-width: 40px; font-size: 17px; border-radius: 9px; }
.tabpanel .copy > p { margin-top: 14px; font-size: 16.5px; }
.examples { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--hair); }
.examples li { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--hair); font-size: 15.5px; }
.examples li svg { width: 18px; height: 18px; flex: none; stroke: var(--accent-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.examples .to { color: var(--accent-ink); margin: 0 2px; }
.examples small { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.tabpanel .note { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--muted); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.tile { padding: 28px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.tile .tag { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.tile .media { margin-top: 18px; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.span-6 { grid-column: span 6; }
.editors { display: grid; grid-template-columns: 0.95fr 1.16fr 1fr; gap: 12px; align-items: end; padding: 26px 22px 0; height: 330px; overflow: hidden; }
.editors img { width: 100%; }
.editors img:nth-child(2) { transform: translateY(-14px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { font: 500 12.5px var(--mono); padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); }
.shelf-media { padding: 22px 16px 10px; display: grid; place-items: center; }
.shelf-media img { width: min(100%, 300px); }
.keys-media { padding: 34px 12px; display: grid; place-items: center; }
.keys-media .caps { gap: 8px; }
.keys-media .cap { height: 50px; min-width: 50px; font-size: 18px; }
.keys-media .cap.wide { min-width: 132px; font: 600 14px var(--body); color: var(--muted); }
.keys-media .plus { color: var(--faint); align-self: center; font-size: 16px; }
.toast-media { padding: 30px 16px; display: grid; place-items: center; }
.toast-media img { width: min(100%, 300px); }
.video-media { padding: 14px 14px 0; height: 196px; overflow: hidden; display: grid; justify-items: center; align-items: start; }
.video-media img { width: min(100%, 300px); }
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 22px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r-md); overflow: hidden; }
.fmt { background: #111114; padding: 18px 18px 20px; }
.fmt b { display: block; font: 700 16px var(--display); letter-spacing: -0.01em; margin-bottom: 6px; }
.fmt span { display: block; font: 13px/1.6 var(--mono); color: var(--muted); }
.fmt i { font-style: normal; color: var(--accent-ink); }
.fnote { margin-top: 16px; font-size: 14px; color: var(--muted); }
.fnote i { font-style: normal; color: var(--accent-ink); }
.mock { padding: 16px; display: grid; gap: 8px; margin-top: auto; }
.tile .media.mock, .tile .media.ocr-lines, .tile .media.watch-media { margin-top: auto; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--hair); font-size: 13.5px; color: var(--ink); }
.mock-row span { color: var(--muted); font: 500 12.5px var(--mono); white-space: nowrap; }
.mock-row span.ok { color: var(--accent-ink); }
.ocr-lines { padding: 18px 18px 16px; display: grid; gap: 7px; margin-top: auto; }
.ocr-lines i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.12); }
.ocr-lines i.hl { background: rgba(61,123,253,.45); box-shadow: 0 0 0 3px rgba(61,123,253,.12); }
.ocr-lines .out { margin-top: 8px; font: 500 12.5px var(--mono); color: var(--muted); }
.ocr-lines .out code { font-size: 12px; }
.watch-media { padding: 16px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.watch-media .arrow { color: var(--faint); font-size: 18px; }
.watch-media img { width: min(100%, 220px); }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.trust .card { padding: 30px; }
.trust .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--panel-2); margin-bottom: 22px; }
.trust .ic svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.trust h3 { margin-bottom: 8px; }
.trust a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; stroke: var(--accent-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Install */
.install { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-top: 56px; overflow: hidden; }
.install-steps { padding: 40px; }
.install-steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; counter-reset: s; }
.install-steps > ol > li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; }
.install-steps > ol > li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 500 14px var(--mono); border: 1px solid var(--line); background: var(--panel-2); }
.install-steps > ol > li b { display: block; font-weight: 600; color: var(--ink); }
.install-steps > ol > li span { color: var(--muted); font-size: 15.5px; }
.install-get { padding: 40px; border-left: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(70% 60% at 50% 30%, rgba(61,123,253,.12), transparent 75%), #0f0f12; }
.install-get img { width: 88px; height: 88px; }
.install-get h3 { margin-top: 14px; font-size: 24px; }
.install-get p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.install-get .reqs { list-style: none; padding: 0; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; display: grid; gap: 2px; }
.install-get .btn { margin-top: 22px; }
.install-get .sub { margin-top: 14px; font-size: 14px; }
.install-get .sub a { color: var(--muted); text-underline-offset: 3px; }
.install-get .sub a:hover { color: var(--ink); }
details.firstrun { margin-top: 30px; border: 1px solid var(--line); border-radius: var(--r-md); background: #0f0f12; }
details.firstrun summary { padding: 14px 16px; }
details.firstrun .body { padding: 0 16px 18px 46px; color: var(--muted); font-size: 15px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
details.firstrun .body b { color: var(--ink); font-weight: 600; }
details.firstrun ul { margin: 0; padding-left: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
details.firstrun li { line-height: 1.55; }
details.firstrun code { display: block; margin-top: 6px; overflow-x: auto; white-space: nowrap; font: 13px var(--mono); color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }

/* Disclosure summary (shared) */
summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary .chev { flex: none; width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
details[open] > summary .chev { transform: rotate(90deg); }
summary .sumnote { margin-left: auto; font-weight: 400; font-size: 13px; color: var(--muted); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq .sec-head a { color: var(--ink); text-underline-offset: 3px; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { padding: 22px 4px; font: 600 18px var(--body); justify-content: space-between; }
.qa summary .plus { flex: none; width: 22px; height: 22px; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; transition: transform .2s var(--ease); }
.qa details[open] summary .plus { transform: rotate(45deg); }
.qa summary:hover .plus { stroke: var(--ink); }
.qa .ans { padding: 0 44px 24px 4px; color: var(--muted); font-size: 16px; display: grid; gap: 10px; }
.qa .ans b { color: var(--ink); font-weight: 600; }

/* Closing + footer */
.closing { text-align: center; padding-block: 104px 96px; border-top: 1px solid var(--hair); position: relative; isolation: isolate; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(36% 60% at 50% 30%, rgba(61,123,253,.1), transparent 70%); }
.closing img { width: 76px; height: 76px; margin: 0 auto 8px; }
.closing h2 { margin-top: 10px; }
.closing .cta { justify-content: center; margin-top: 30px; }
footer { border-top: 1px solid var(--hair); padding-block: 36px 44px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 16px var(--display); text-decoration: none; flex: none; }
.foot-brand img { width: 24px; height: 24px; }
.foot-links { flex: 1 1 280px; min-width: min(100%, 280px); max-width: 100%; }
.foot-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; width: 100%; }
.foot-group-label { margin: 0 0 6px; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.foot-group-links { display: flex; flex-direction: column; gap: 2px; }
.foot-group-links a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 4px 0; }
.foot-group-links a:hover { color: var(--ink); }
.foot-meta { display: flex; gap: 14px; }
.foot-badge img { display: block; width: 150px; height: auto; filter: brightness(0) invert(1); opacity: .7; transition: opacity .2s; }
.foot-badge:hover img { opacity: 1; }

/* Reveal on enter (desktop only; mobile + reduced motion stay visible to avoid scroll gaps) */
@media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  #wheel .labels { transition: opacity .15s ease !important; }
  #wheel .labels.enter, #wheel .labels.leave { transform: none !important; }
  #wheel .lab.dwell .prog { transition: stroke-dashoffset .35s linear !important; }
}

/* Responsive */
@media (max-width: 1040px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 56px; }
  .hero .intro { max-width: 640px; }
  .demo { max-width: 620px; width: 100%; margin: 0 auto; }
  .nav-links { display: none; }
  .menu { display: block; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-4, .span-6 { grid-column: span 2; }
  .span-2, .span-3 { grid-column: span 1; }
  .tile.fill-row { grid-column: span 2; }
  .tile.fill-row .mock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 860px) {
  .steps, .trust { grid-template-columns: minmax(0, 1fr); }
  .step .art { height: 150px; }
  .tabpanel, .install { grid-template-columns: minmax(0, 1fr); }
  .tabpanel .shot { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px; }
  .tabpanel .shot img { width: min(100%, 300px); }
  .tabpanel .copy { padding: 28px 24px; }
  .install-get { border-left: 0; border-top: 1px solid var(--line); }
  .install-steps, .install-get { padding: 28px 24px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  section { padding-block: 80px; }
  footer .foot-links { width: 100%; }
  .foot-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 16px; }
  .lede { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; }
  .nav .btn.small { display: none; }
  .stage { height: 500px; border-radius: 22px; }
  .stage-keys .lbl, .try { display: none; }
  .wkey { padding: 0 10px 0 6px; gap: 6px; font-size: 13px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .span-4, .span-6, .span-2, .span-3 { grid-column: span 1; }
  .tile.fill-row { grid-column: span 1; }
  .tile.fill-row .mock { grid-template-columns: minmax(0, 1fr); }
  .tile { padding: 22px; }
  .editors { height: auto; padding: 18px 12px 0; gap: 8px; align-items: end; }
  .editors img:nth-child(2) { transform: none; }
  .formats { grid-template-columns: minmax(0, 1fr); }
  .tablist { display: flex; }
  .tab { flex: 1; justify-content: center; padding: 0 8px; font-size: 14px; gap: 6px; }
  .tab kbd { min-width: 24px; font-size: 12px; }
  .tabpanel h3 { font-size: 26px; }
  .examples small { display: none; }
  .qa summary { font-size: 17px; padding: 18px 2px; }
  .qa .ans { padding-right: 8px; }
  details.firstrun .body { padding-left: 16px; }
  summary .sumnote { display: none; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .wkey { font-size: 12.5px; padding: 0 8px 0 5px; }
  .wkey kbd { min-width: 24px; padding: 0 3px; }
  .caps { gap: 6px; }
}

.foot-meta a { color: inherit; text-underline-offset: 3px; }
.foot-meta a:hover { color: var(--ink); }

/* Comparison pages. The home page does not use these. */
.hero.single .wrap { grid-template-columns: minmax(0, 1fr); padding-bottom: 28px; }
.hero.single h1 { font-size: clamp(36px, 5vw, 64px); max-width: 16em; }
.hero.single .lede { max-width: 42em; }
.lede a, .sources a, .compare a { color: var(--accent-ink); text-underline-offset: 3px; }
.sources { margin-top: 22px; font-size: 14px; color: var(--muted); }
.compare-scroll { overflow-x: auto; max-width: 100%; width: 100%; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.compare { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14.5px; line-height: 1.55; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { color: var(--ink); font-weight: 600; background: rgba(255,255,255,.03); }
.compare tbody th { color: var(--ink); font-weight: 600; width: 9.5em; }
.compare td { color: var(--muted); }
.compare td.os { color: var(--ink); background: rgba(61,123,253,.04); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare-brief { margin: 0; max-width: 42em; }
.compare-more { margin-top: 10px; }
.compare-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 13px var(--body);
  color: var(--accent-ink);
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  padding: 8px 0;
}
.compare-more summary::-webkit-details-marker { display: none; }
.compare-more[open] summary { margin-bottom: 4px; }
.compare-more p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.section-follow { padding-top: 24px; }

.hero-kicker { font-size: clamp(18px, 2.5vw, 22px); line-height: 1.45; color: var(--accent-ink); max-width: 28em; margin: -8px 0 18px; }
.hero-kicker b { color: var(--ink); font-weight: 600; }

.guide-steps { margin: 32px 0 0; padding-left: 1.25em; display: grid; gap: 12px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.guide-steps b { color: var(--ink); }
.guide-list { margin: 24px 0 0; padding-left: 1.25em; display: grid; gap: 10px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.guide-list b { color: var(--ink); }

.page-shots { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.page-shots figure { margin: 0; max-width: 608px; }
.page-shots img { border-radius: var(--r-md); border: 1px solid var(--line); width: 100%; max-width: 608px; height: auto; }
.page-shots figcaption { margin-top: 8px; font-size: 13px; color: var(--faint); }

.guide-related { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--hair); }
.guide-related h2 { font-size: 20px; margin-bottom: 14px; }
.related-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.related-chips a:hover { border-color: var(--accent); background: rgba(61,123,253,.08); }

.legal-main { padding-block: 48px 80px; }
.legal { max-width: 42em; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal h2:first-of-type { margin-top: 28px; }
.legal h3 { font-size: 18px; margin: 28px 0 10px; color: var(--ink); font-family: var(--body); font-weight: 600; }
.legal p, .legal li { color: var(--muted); font-size: 16px; line-height: 1.65; margin-top: 12px; }
.legal p + h2, .legal ul + h2, .legal ol + h2 { margin-top: 44px; }
.legal p + h3, .legal ul + h3, .legal ol + h3 { margin-top: 32px; }
.legal h2 + h3 { margin-top: 24px; }
.legal ul { padding-left: 1.2em; margin-top: 12px; }
.legal-note { padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.license-text { margin-top: 24px; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); font: 15px/1.65 var(--body); color: var(--muted); }
.license-text p { margin: 0 0 12px; }
.license-text p:last-child { margin-bottom: 0; }

.foot-meta { flex-wrap: wrap; row-gap: 8px; }
.foot-badge picture, .foot-badge img { width: 150px; max-width: 100%; height: auto; }

@media (max-width: 900px) {
  .compare-scroll {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    margin-inline: 0;
  }
  .compare {
    min-width: 0;
    display: block;
    font-size: 15px;
  }
  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .compare tbody {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .compare tr {
    display: block;
    margin: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 40%), var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    overflow: hidden;
  }
  .compare tbody th {
    display: block;
    width: auto;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    letter-spacing: -0.01em;
    background: rgba(255,255,255,.03);
  }
  .compare td {
    display: block;
    padding: 14px 18px 16px;
    border-bottom: 1px solid var(--hair);
  }
  .compare td:last-child { border-bottom: 0; }
  .compare td::before {
    display: block;
    margin-bottom: 8px;
    font: 600 11px var(--mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-ink);
  }
  .compare.cols-3 td:nth-child(2)::before { content: "OpenShelf"; }
  .compare.cols-3 td:nth-child(3)::before { content: "Tangerine"; }
  .compare.cols-4 td:nth-child(2)::before { content: "OpenShelf"; }
  .compare.cols-4 td:nth-child(3)::before { content: "Dropover"; }
  .compare.cols-4 td:nth-child(4)::before { content: "Yoink"; }
  .compare td.os {
    background: rgba(61,123,253,.08);
    box-shadow: inset 3px 0 0 var(--accent-fill);
  }
  .compare-more summary { min-height: 40px; padding: 4px 0; }
  .section-follow { padding-top: 8px; }
  .section-follow .sec-head { margin-bottom: 8px; }
  .hero.single .wrap { padding-bottom: 20px; }
  .hero.single h1 { font-size: clamp(32px, 8.5vw, 48px); }
  .hero.single .lede { font-size: 17px; line-height: 1.6; }
  .sources { font-size: 13.5px; line-height: 1.55; }
}

@media (max-width: 640px) {
  body { padding-bottom: env(safe-area-inset-bottom, 0); }
  footer {
    padding-bottom: max(44px, calc(36px + env(safe-area-inset-bottom, 0)));
  }
  .nav .wrap { height: 56px; gap: 12px; }
  .menu summary {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .icon-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .menu-panel {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    top: calc(56px + env(safe-area-inset-top, 0));
    width: auto;
    max-height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0));
    overflow-y: auto;
    padding: 8px;
    z-index: 40;
  }
  .menu-panel a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    font-size: 16px;
  }
  .menu[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(0, 0, 0, .55);
  }
  .menu[open] summary { position: relative; z-index: 41; }
  .menu[open] .menu-panel { z-index: 41; }
  .qa summary {
    min-height: 48px;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .foot-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 0;
  }
  .news {
    flex-wrap: wrap;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.45;
  }
  .sec-lede { font-size: 17px; }
  .closing { padding-bottom: max(96px, calc(80px + env(safe-area-inset-bottom, 0))); }
  section#faq { padding-bottom: max(80px, calc(64px + env(safe-area-inset-bottom, 0))); }
  .page-shots { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 641px) and (max-width: 1040px) {
  .nav-links { display: none; }
  .menu { display: block; }
}
