/* WisprRam landing page. Warm light theme first, warm dark via prefers-color-scheme. No build step. */

:root {
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --surface-2: #F1EFEB;
  --line: #ECEAE6;
  --line-strong: #DEDBD5;
  --text: #1C1B1A;
  --muted: #6B6862;
  --btn-bg: #1C1B1A;
  --btn-text: #FFFFFF;
  --accent: #5B5BD6;
  --accent-2: #8B5CF6;
  --focus: #5B5BD6;
  --shadow: 0 1px 2px rgba(28, 27, 26, .04), 0 8px 30px rgba(28, 27, 26, .06);
  --shadow-lg: 0 2px 4px rgba(28, 27, 26, .05), 0 30px 80px rgba(28, 27, 26, .12);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --r: 22px;
  --nav-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --surface: #1C1B19;
    --surface-2: #232220;
    --line: #2A2826;
    --line-strong: #3A3835;
    --text: #F3F1EC;
    --muted: #A8A39A;
    --btn-bg: #F3F1EC;
    --btn-text: #141312;
    --accent: #8B8BF0;
    --accent-2: #B79CFF;
    --focus: #A5A5FF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 30px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 80px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
code, kbd { font-family: var(--mono); }
code { font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: .08em .38em; border-radius: 6px; }
kbd {
  font-size: .8em; padding: .12em .5em; border-radius: 7px; background: var(--surface);
  border: 1px solid var(--line-strong); border-bottom-width: 2px; white-space: nowrap;
}
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.center { text-align: center; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 28px; } }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-text); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 16px/1 var(--sans); padding: 13px 20px; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 24px rgba(28,27,26,.18); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 14px 30px rgba(28,27,26,.24); }
.btn-secondary, .btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover, .btn-ghost:hover { border-color: color-mix(in srgb, var(--text) 40%, transparent); transform: translateY(-1px); }
.btn-light { background: #fff; color: #1C1B1A; }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.22); }
.btn-lg { padding: 16px 24px; font-size: 17px; }
.btn-sm { padding: 9px 14px; font-size: 14.5px; border-radius: 10px; }

/* ------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.nav-links { display: none; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15.5px; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
@media (min-width: 820px) { .nav-links { display: flex; } }
.stars b { font-weight: 600; padding-left: 9px; margin-left: 2px; border-left: 1px solid var(--line-strong); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ hero */
.hero { padding-top: clamp(40px, 8vw, 88px); text-align: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 7px 14px 7px 12px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
h1, .h2, .banner h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(46px, 11.4vw, 92px); line-height: .98; }
h1 em, .h2 em, .banner h3 em { font-style: italic; }
h1 em { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: inline; } }
.lead { max-width: 640px; margin: 24px auto 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.cta-note { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); }

/* ------------------------------------------------------------ demo */
.demo { position: relative; max-width: 760px; margin: clamp(40px, 6vw, 64px) auto 0; padding-bottom: 38px; }
.win { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl.r { background: #FF5F57; } .tl.y { background: #FEBC2E; } .tl.g { background: #28C840; }
.win-title { margin-left: 10px; font-size: 13.5px; color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-body { padding: 8px 20px 24px; min-height: 250px; }
.field { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.field span:first-child { color: var(--muted); width: 58px; flex: none; }
.editor { margin: 20px 0 0; font-size: clamp(17px, 2.4vw, 21px); line-height: 1.55; min-height: 5.2em; }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--text); vertical-align: -.2em; margin-left: 1px; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.heard {
  position: absolute; left: 50%; bottom: 66px; transform: translate(-50%, 8px); width: min(88%, 520px);
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow); text-align: left; font-size: 14.5px; color: var(--muted);
  opacity: 0; transition: opacity .35s ease, transform .35s ease; pointer-events: none;
}
.heard span { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; color: var(--muted); opacity: .8; }
.heard q { quotes: none; font-style: italic; font-family: var(--serif); font-size: 19px; color: var(--text); line-height: 1.3; }
.demo[data-phase="listening"] .heard { opacity: 1; transform: translate(-50%, 0); }

/* the overlay pill: small solid black capsule, white bars */
.pill {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) scale(.9); height: 38px; min-width: 76px; padding: 0 16px;
  display: flex; align-items: center; justify-content: center; border-radius: 999px; background: #0B0B0B; color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.35); opacity: .0; transition: opacity .3s, transform .3s, min-width .3s;
}
.demo:not([data-phase="idle"]) .pill { opacity: 1; transform: translateX(-50%) scale(1); }
.demo[data-phase="listening"] .pill { min-width: 148px; }
.bars { display: flex; align-items: center; gap: 3px; height: 20px; }
.bars i { display: block; width: 3px; height: 3px; border-radius: 3px; background: #fff; transition: height .25s ease; }
.demo[data-phase="listening"] .bars i { animation: bar 0.9s ease-in-out infinite; }
.demo[data-phase="listening"] .bars i:nth-child(3n) { animation-duration: 0.7s; }
.demo[data-phase="listening"] .bars i:nth-child(4n+1) { animation-duration: 1.1s; }
.demo[data-phase="listening"] .bars i:nth-child(2) { animation-delay: -.2s; } .demo[data-phase="listening"] .bars i:nth-child(5) { animation-delay: -.45s; }
.demo[data-phase="listening"] .bars i:nth-child(7) { animation-delay: -.1s; } .demo[data-phase="listening"] .bars i:nth-child(9) { animation-delay: -.6s; }
.demo[data-phase="listening"] .bars i:nth-child(11) { animation-delay: -.3s; } .demo[data-phase="listening"] .bars i:nth-child(12) { animation-delay: -.7s; }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 20px; } }
.demo[data-phase="thinking"] .bars i { animation: dot 1s ease-in-out infinite; width: 4px; height: 4px; border-radius: 50%; opacity: .9; }
.demo[data-phase="thinking"] .bars i:nth-child(n+4) { display: none; }
.demo[data-phase="thinking"] .bars i:nth-child(2) { animation-delay: .15s; } .demo[data-phase="thinking"] .bars i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.demo[data-phase="done"] .bars i { height: 3px; opacity: .6; }

/* ------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: clamp(48px, 8vw, 88px); }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px 18px; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 6vw, 48px); letter-spacing: -.02em; line-height: 1.05; }
.stat b small { font-size: .5em; letter-spacing: 0; margin-left: 2px; color: var(--muted); font-family: var(--sans); }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.4; }

/* ------------------------------------------------------------ film */
.film .sub { margin-bottom: 36px; }
.film-frame { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #0A0812; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0A0812; }
.film-frame video:not([controls]) { cursor: pointer; }
.film-play {
  position: absolute; left: clamp(12px, 3vw, 28px); bottom: clamp(12px, 3vw, 28px);
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 22px 8px 8px; border: 0; border-radius: 999px;
  background: #fff; color: #1C1B1A; font: 600 16px/1.2 var(--sans); text-align: left; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .15s ease, box-shadow .2s ease;
}
.film-play[hidden] { display: none; }
.film-play:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(0, 0, 0, .5); }
.film-play:active { transform: translateY(1px); }
.film-play .disc { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #1C1B1A; color: #fff; flex: none; }
.film-play .disc .ic { width: 20px; height: 20px; margin-left: 2px; }
.film-play small { display: block; margin-top: 2px; font-weight: 500; font-size: 13px; color: #6B6862; }
@media (max-width: 560px) {
  .film-play { gap: 9px; padding: 6px 16px 6px 6px; font-size: 14.5px; }
  .film-play .disc { width: 34px; height: 34px; }
  .film-play .disc .ic { width: 16px; height: 16px; }
  .film-play small { display: none; }
}

/* ------------------------------------------------------------ sections */
.section { padding-top: clamp(72px, 11vw, 128px); }
.h2 { font-size: clamp(36px, 7vw, 60px); line-height: 1.02; text-align: center; text-wrap: balance; }
.sub { text-align: center; color: var(--muted); margin: 14px auto 44px; max-width: 560px; font-size: 18px; }
.narrow { max-width: 820px; }
.on-dark { color: #fff; text-align: left; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 14px 0; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.ico { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.ico .ic { width: 20px; height: 20px; }

/* dark, blurred multi-colour banners */
.banner {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; color: #fff; margin: 14px 0;
  background: #101217; padding: clamp(26px, 5vw, 56px); display: grid; gap: 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 10px 28px rgba(20, 20, 30, .10);
}
.banner::before {
  content: ""; position: absolute; inset: -30%; z-index: -2; filter: blur(46px) saturate(1.15);
  background:
    radial-gradient(38% 46% at 14% 18%, rgba(63, 124, 196, .95), transparent 70%),
    radial-gradient(34% 40% at 58% 8%, rgba(70, 90, 160, .7), transparent 70%),
    radial-gradient(36% 46% at 88% 22%, rgba(214, 150, 70, .85), transparent 70%),
    radial-gradient(40% 48% at 82% 88%, rgba(196, 84, 112, .85), transparent 70%),
    radial-gradient(40% 50% at 22% 92%, rgba(38, 70, 120, .9), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
.banner::after { /* grain */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }
.banner-a::before { transform: none; }
.banner-b::before { background:
    radial-gradient(40% 50% at 10% 85%, rgba(80, 70, 170, .9), transparent 70%),
    radial-gradient(36% 46% at 50% 0%, rgba(54, 112, 170, .85), transparent 70%),
    radial-gradient(40% 50% at 95% 40%, rgba(204, 100, 120, .85), transparent 70%),
    radial-gradient(34% 40% at 70% 100%, rgba(210, 150, 74, .75), transparent 70%); }
.banner-c::before { background:
    radial-gradient(40% 50% at 85% 10%, rgba(96, 90, 210, .9), transparent 70%),
    radial-gradient(40% 50% at 10% 20%, rgba(44, 110, 160, .85), transparent 70%),
    radial-gradient(40% 50% at 40% 100%, rgba(200, 90, 130, .7), transparent 70%); }
.banner-d::before { background:
    radial-gradient(40% 50% at 15% 20%, rgba(214, 150, 70, .8), transparent 70%),
    radial-gradient(40% 50% at 85% 20%, rgba(196, 84, 112, .85), transparent 70%),
    radial-gradient(50% 60% at 50% 100%, rgba(60, 110, 190, .9), transparent 70%); }
.banner h3 { font-size: clamp(34px, 6vw, 56px); line-height: 1.02; text-wrap: balance; }
.banner-copy p { margin: 16px 0 0; max-width: 560px; color: rgba(255,255,255,.86); font-size: 17.5px; }
.banner-copy .fine { font-size: 14.5px; color: rgba(255,255,255,.72); }
.banner-copy a { color: #fff; }
.chips { display: grid; gap: 10px; margin-top: 28px; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chip-row .ic { width: 16px; height: 16px; opacity: .8; }
.chip {
  display: inline-block; padding: 11px 16px; border-radius: 12px; font-size: 16px; line-height: 1.25;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  max-width: 100%; overflow-wrap: anywhere;
}
.chip.say { font-style: italic; background: rgba(255,255,255,.1); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: rgba(255,255,255,.9); font-size: 16.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 14px; height: 8px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.tree { background: rgba(10, 11, 16, .5); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 18px 18px; min-width: 0; align-self: center; }
.tree pre { margin: 0; overflow-x: auto; font: 13.5px/1.7 var(--mono); color: rgba(255,255,255,.9); tab-size: 2; }
.tree code { background: none; border: 0; padding: 0; font-size: inherit; }
.tree b { color: #fff; font-weight: 600; }
.tree span { color: rgba(255,255,255,.55); }
@media (min-width: 900px) { .banner-c { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.ledger { margin: 0; background: rgba(10, 11, 16, .45); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 6px 20px; }
.ledger > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 15.5px; }
.ledger > div:first-child { border-top: 0; }
.ledger dt { color: rgba(255,255,255,.65); }
.ledger dd { margin: 0; font-weight: 600; text-align: right; }
@media (min-width: 900px) { .banner-b { grid-template-columns: 1.05fr 1fr; align-items: center; } }
.final { text-align: center; justify-items: center; padding-block: clamp(48px, 9vw, 96px); }
.final .h2 { text-align: center; font-size: clamp(40px, 8vw, 72px); }
.final p { margin: 0; font-size: 19px; color: rgba(255,255,255,.85); }
.final .cta { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .banner::before { animation: none; }
}

/* screenshots */
.shots .sub { margin-bottom: 36px; }
.shot { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); }
.shot img { width: 100%; }
.shot-row { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 760px) { .shot-row { grid-template-columns: 1fr 1fr; } }

/* how it works */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; align-items: stretch; }
.flow-arrow { display: none; color: var(--muted); align-self: center; }
@media (min-width: 900px) { .flow { grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; } .flow-arrow { display: block; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.step h3 { margin: 6px 0 0; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; flex: 1; }
.num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.tag { margin-top: 12px; align-self: flex-start; font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.latency { margin-top: 16px; padding: 28px; }
.latency > p { margin-top: 4px; }
.bars-chart { margin: 24px 0 0; display: grid; gap: 14px; }
.bars-chart > div { display: grid; gap: 6px; }
@media (min-width: 640px) { .bars-chart > div { grid-template-columns: 200px 1fr; align-items: center; gap: 16px; } }
.bars-chart dt { font-size: 15px; font-weight: 500; }
.bars-chart dd { margin: 0; display: flex; align-items: center; gap: 12px; }
.bars-chart dd i { display: block; height: 12px; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; }
.bars-chart dd i.slow { background: var(--line-strong); }
.bars-chart dd b { font-variant-numeric: tabular-nums; font-size: 15px; min-width: 52px; }
.reveal-ready .bars-chart dd i { transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal-ready .latency.in .bars-chart dd i { transform: scaleX(1); }

/* download */
.dl-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .dl-grid { grid-template-columns: repeat(4, 1fr); } }
.dl { display: flex; flex-direction: column; gap: 4px; }
.dl .btn { margin-top: 16px; width: 100%; }
.dl .meta { margin-top: 10px; color: var(--muted); font-size: 13.5px; min-height: 1.4em; }
.dl.is-yours { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }

/* setup */
.tablist { display: inline-flex; padding: 5px; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; margin: 0 auto 18px; }
.tabs { text-align: center; }
.tabs > .card { text-align: left; }
.tablist button { font: 600 15.5px var(--sans); padding: 10px 20px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.tablist button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.panel { padding: clamp(20px, 4vw, 36px); }
.panel h3 { font-size: 20px; margin-bottom: 14px; }
.two { display: grid; gap: 32px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1.25fr; gap: 44px; } }
.three { display: grid; gap: 28px; margin-bottom: 22px; }
@media (min-width: 900px) { .three { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.req { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.req li { position: relative; padding-left: 24px; color: var(--muted); font-size: 16px; }
.req li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.req b { color: var(--text); font-weight: 600; }
.step-l { margin: 18px 0 8px !important; font-weight: 600; color: var(--text) !important; font-size: 15px !important; }
.step-l:first-of-type { margin-top: 0 !important; }
.code { position: relative; margin: 0; }
.code + p { margin-top: 14px; }
.code pre { margin: 0; padding: 14px 52px 14px 16px; background: #181716; color: #F0EEE9; border-radius: 12px; overflow-x: auto; font: 13.5px/1.65 var(--mono); border: 1px solid #2A2826; }
.code code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.copy { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #F0EEE9; cursor: pointer; }
.copy:hover { background: rgba(255,255,255,.14); }
.copy.done { color: #7BE0A0; border-color: #7BE0A0; }
.os ol { margin: 0; padding-left: 20px; display: grid; gap: 12px; color: var(--muted); font-size: 16px; }
.os li::marker { color: var(--text); font-weight: 600; }
.os li b { color: var(--text); font-weight: 600; }
.os .code { margin: 10px 0 4px; }
.keys { margin-top: 16px; }
.keytable { display: grid; margin-top: 8px; }
.keytable [role="row"] { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.keytable [role="row"]:first-child { border-top: 0; }
@media (min-width: 640px) { .keytable [role="row"] { grid-template-columns: 220px 1fr; gap: 16px; align-items: center; } }
.keytable [role="cell"]:first-child { font-weight: 600; }
.keytable [role="cell"]:last-child { color: var(--muted); }

/* faq */
.faq { display: grid; gap: 10px; margin-top: 36px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 19px 28px 19px 0; font-weight: 600; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary:focus-visible { outline-offset: 4px; }

/* footer */
.foot { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); padding: 44px 0 32px; }
.foot-in { display: grid; gap: 36px; }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1.2fr 2fr; } }
.foot-brand p { margin: 14px 0 0; }
.foot-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
@media (min-width: 520px) { .foot-links { grid-template-columns: repeat(3, 1fr); } }
.foot-links h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.foot-links a { display: block; padding: 5px 0; text-decoration: none; font-size: 15.5px; }
.foot-links a:hover { text-decoration: underline; }
.foot-fine { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.foot-fine p { margin: 0; max-width: 760px; }

/* scroll reveal (only when JS has added .reveal-ready) */
.reveal-ready .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-ready .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready .rv { opacity: 1; transform: none; transition: none; }
  .reveal-ready .bars-chart dd i { transform: none; transition: none; }
  .caret { animation: none; }
  .demo[data-phase="listening"] .bars i { animation: none; height: 12px; }
}

/* grid children may shrink below their content (long code lines scroll inside <pre>) */
.two > *, .three > *, .banner > *, .grid > *, .flow > *, .dl-grid > *, .foot-in > * { min-width: 0; }
.two, .three { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1.25fr; } .three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 520px) {
  .chip-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .chip-row .ic { transform: rotate(90deg); margin-left: 14px; }
}
.copy { background: #2A2826; }
.copy:hover { background: #3A3835; }

.shot-row .shot img { aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; }

/* Setup → App panel: grid list items default to min-width:auto, so a long command (the xattr line)
   stretched its column into the next one. Let items shrink, scroll long commands inside their box,
   wrap inline code, and only use three columns when there is room for them. */
.os { min-width: 0; }
.os ol { grid-template-columns: minmax(0, 1fr); }
.os ol > li { min-width: 0; }
.os .code, .os .code pre { max-width: 100%; }
.os li > code, .os li > kbd, .os p code { white-space: normal; overflow-wrap: anywhere; }
#panel-app .three { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) and (max-width: 1179px) { #panel-app .three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { #panel-app .three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Narrow columns: wrap long commands instead of hiding them under the copy button. */
.os .code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Hero tagline under the slogan */
.hero-tag { margin: 14px auto 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3.4vw, 32px); color: var(--muted); letter-spacing: -.01em; }
