/* Reclux website. Dark, one accent: record red. Motion comes from the logo: light at the R's 45-degree angle.
   Fonts are self-hosted so the page itself makes no third-party requests. */

@font-face { font-family: 'Google Sans Flex'; src: url('fonts/google-sans-flex.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('fonts/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/geist-mono.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }

:root {
  --bg: #0a0a0c;
  --bg-2: #101013;
  --card: #131316;
  --ink: #f4f2ee;
  --ink-2: #aeadb5;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.2);
  --red: #d7263d;
  --red-hi: #ff6b7c;
  --sans: 'Google Sans Flex', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, Consolas, monospace;
  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r: 1.25rem;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #6ea1ff; outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: 0.75rem 1rem; background: var(--ink); color: var(--bg); border-radius: 0.5rem; }
.skip:focus { top: 1rem; }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.01em; }
.label { color: var(--red-hi); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.rec { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 2.75rem; padding: 0 1.15rem; border-radius: 0.8rem; border: 1px solid transparent; font-weight: 600; font-size: 0.975rem; text-decoration: none; touch-action: manipulation; transition: background-color 160ms, border-color 160ms, transform 160ms var(--out); }
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn:active { transform: scale(0.98); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #bf1f35; }
.btn-white { background: var(--ink); color: #0a0a0c; }
.btn-white:hover { background: #fff; }
.btn-line { border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); }
.btn-line:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.34); }
.btn-lg { min-height: 3.25rem; padding: 0 1.5rem; font-size: 1.05rem; }
.btn-sm { min-height: 2.5rem; padding: 0 1rem; font-size: 0.9rem; border-radius: 0.65rem; }
.btn-block { width: 100%; min-height: 3.25rem; font-size: 1.025rem; }

/* Navigation: a floating bar */
.top { position: fixed; inset: 0.75rem 0 auto; z-index: 50; padding-inline: var(--gutter); pointer-events: none; }
.top-in { pointer-events: auto; display: flex; align-items: center; gap: 0.75rem; width: min(100%, 62rem); margin-inline: auto; padding: 0.5rem 0.5rem 0.5rem 1rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(16, 16, 19, 0.84); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.brand { display: block; margin-right: auto; padding-block: 0.6rem; color: var(--ink); border-radius: 4px; }
.brand svg { height: 1.5rem; width: calc(1.5rem * 4.57); }
.nav { display: none; gap: 0.25rem; }
.nav a { padding: 0.5rem 0.8rem; min-height: 2.5rem; display: flex; align-items: center; border-radius: 0.6rem; color: var(--ink-2); text-decoration: none; font-size: 0.95rem; transition: color 160ms, background-color 160ms; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.menu { position: relative; }
.menu summary { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.65rem; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 1.4rem; height: 1.4rem; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 0.75rem); min-width: 11rem; padding: 0.4rem; display: grid; border: 1px solid var(--line-2); border-radius: 0.9rem; background: #16161a; }
.menu-panel a { padding: 0.75rem 0.9rem; border-radius: 0.6rem; text-decoration: none; }
.menu-panel a:hover { background: rgba(255, 255, 255, 0.08); }

/* Hero. The CSS glow is the fallback when WebGL is not available. */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(7rem, 16vh, 10rem) 0 clamp(3rem, 7vw, 6rem); text-align: center; background: radial-gradient(60rem 34rem at 50% 30%, rgba(215, 38, 61, 0.26), transparent 70%), var(--bg); }
#light { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
#light.on { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; z-index: -1; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
/* Keeps the words readable wherever a beam passes behind them. */
.hero-copy { position: relative; }
.hero-copy::before { content: ''; position: absolute; z-index: -1; inset: -12% -8%; background: radial-gradient(closest-side, rgba(10, 10, 12, 0.72), rgba(10, 10, 12, 0.5) 62%, transparent); pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.35rem 0.8rem; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(10, 10, 12, 0.7); color: var(--ink); }
.hero h1 { margin-top: 1.25rem; font-size: clamp(2.75rem, 8.2vw, 6.25rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; text-shadow: 0 2px 40px rgba(10, 10, 12, 0.55); }
.hero h1 .serif { font-size: 1.08em; letter-spacing: -0.02em; }
.w { display: inline-block; }
.lede { max-width: 40rem; margin: 1.5rem auto 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink); text-shadow: 0 1px 18px rgba(10, 10, 12, 0.7); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.cta-meta { display: inline-block; margin-top: 1rem; padding: 0.15rem 0.7rem; border-radius: 99px; background: rgba(10, 10, 12, 0.66); color: var(--ink); }

/* The recorder picture */
.stage { width: min(100% - 2 * var(--gutter), 60rem); margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; perspective: 1400px; }
.panel { text-align: left; border: 1px solid var(--line-2); border-radius: 1.25rem; background: linear-gradient(#17171b, #101013); box-shadow: 0 40px 120px -20px rgba(215, 38, 61, 0.35), 0 20px 60px rgba(0, 0, 0, 0.6); overflow: hidden; transform-origin: 50% 0; }
.panel-top { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.panel-logo { height: 1.1rem; width: calc(1.1rem * 4.57); color: var(--ink); }
.panel-safe { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-2); font-size: 0.75rem; }
.panel-safe svg { width: 0.95rem; height: 0.95rem; }
.screen { position: relative; margin: 0.8rem; aspect-ratio: 16 / 7; border-radius: 0.75rem; background: #0c0c0f; overflow: hidden; }
.corner { position: absolute; width: 1.5rem; height: 1.5rem; border: 2px solid var(--red); z-index: 2; }
.c1 { left: 0.6rem; top: 0.6rem; border-right: 0; border-bottom: 0; border-top-left-radius: 0.5rem; }
.c2 { right: 0.6rem; top: 0.6rem; border-left: 0; border-bottom: 0; border-top-right-radius: 0.5rem; }
.c3 { right: 0.6rem; bottom: 0.6rem; border-left: 0; border-top: 0; border-bottom-right-radius: 0.5rem; }
.c4 { left: 0.6rem; bottom: 0.6rem; border-right: 0; border-top: 0; border-bottom-left-radius: 0.5rem; }
.doc { position: absolute; inset: 7% 5%; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 0.6rem; background: #17171b; overflow: hidden; }
.doc-bar { display: flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line); }
.doc-bar u { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.doc-bar s { flex: 0 1 40%; height: 0.8rem; margin-left: 0.6rem; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.doc-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.25fr; gap: 5%; align-items: center; padding: 3% 5%; }
.doc-text { display: grid; gap: clamp(0.25rem, 1vw, 0.65rem); }
.doc-text b { height: clamp(0.5rem, 1.5vw, 1rem); width: 74%; border-radius: 4px; background: rgba(255, 255, 255, 0.8); }
.doc-text i { height: clamp(0.2rem, 0.7vw, 0.45rem); border-radius: 3px; background: rgba(255, 255, 255, 0.24); }
.doc-text i:nth-child(3) { width: 88%; }
.doc-text i:nth-child(5) { width: 62%; }
.doc-text em { width: 38%; height: clamp(0.6rem, 2vw, 1.5rem); margin-top: 0.3rem; border-radius: 0.35rem; background: var(--red); }
.doc-video { position: relative; aspect-ratio: 16 / 9; max-height: 100%; justify-self: end; width: 100%; border-radius: 0.4rem; overflow: hidden; background: linear-gradient(135deg, #3a1219, #16161c); display: grid; place-items: center; }
.doc-video span { position: absolute; inset: -60% -20%; background: repeating-linear-gradient(135deg, transparent 0 9%, rgba(215, 38, 61, 0.34) 9% 13%, transparent 13% 22%); }
.doc-video svg { position: relative; width: clamp(1rem, 3.5vw, 2.5rem); height: clamp(1rem, 3.5vw, 2.5rem); }
.cursor { position: absolute; left: 30%; top: 58%; width: 1.25rem; height: 1.25rem; z-index: 3; }
.bar { display: grid; gap: 0.75rem; margin: 0 0.8rem 0.8rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: 0.75rem; background: rgba(255, 255, 255, 0.025); }
.bar-state { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.9rem; }
.bar-rec { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--red-hi); font-weight: 500; }
.bar-time { font-size: clamp(1.05rem, 2.2vw, 1.5rem); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip { padding: 0.15rem 0.55rem; border-radius: 99px; background: rgba(255, 255, 255, 0.08); color: var(--ink-2); font-size: 0.75rem; }
.bar-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.bar-btns span { display: grid; place-items: center; min-height: 2.5rem; border: 1px solid var(--line-2); border-radius: 0.6rem; font-size: 0.9rem; font-weight: 600; }
.bar-btns .stop { background: var(--red); border-color: var(--red); color: #fff; }

/* Sound bars, used in the recorder and in the sound card. main.js adds the bars. */
.waves { display: inline-flex; align-items: center; gap: 2px; height: 1.4rem; flex: 1 1 4rem; min-width: 3rem; max-width: 10rem; overflow: hidden; }
.waves i { flex: 1 0 2px; max-width: 3px; height: 100%; border-radius: 2px; background: var(--red); transform: scaleY(var(--h, 0.3)); transform-origin: center; }

/* Sections */
section:not(.hero) { padding-block: clamp(3rem, 5.5vw, 5rem); }
.head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.head h2 { margin-top: 0.75rem; font-size: clamp(2rem, 4.8vw, 3.5rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; }
.head h2 .serif { font-size: 1.06em; }
.head > p:not(.label) { margin-top: 1rem; color: var(--ink-2); font-size: 1.125rem; }

/* Feature cards */
.bento { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.card { position: relative; display: flex; flex-direction: column; padding: 1.25rem 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; transition: border-color 200ms; }
.card::before { content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 240ms; background: radial-gradient(22rem circle at var(--x, 50%) var(--y, 0%), rgba(215, 38, 61, 0.16), transparent 70%); }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card h3 { position: relative; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.card p { position: relative; }
.card > p { margin-top: 0.4rem; color: var(--ink-2); font-size: 0.975rem; line-height: 1.55; }
.vis { position: relative; height: 10.5rem; margin-bottom: 1.25rem; border-radius: 0.85rem; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 1rem; }

.vis-local { padding: 0.5rem 1rem; }
.vis-local svg { width: 100%; height: 100%; }
.vis-local text { fill: var(--ink-2); font: 400 12px var(--mono); }
.ln { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.ln.dim { stroke: rgba(255, 255, 255, 0.28); }
.red-ln { fill: none; stroke: var(--red-hi); stroke-width: 2.2; stroke-linecap: round; }
.red-fill { fill: var(--red); }
.flow { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 3 11; stroke-linecap: round; }
.pulse { transform-box: fill-box; transform-origin: center; }

.rates { display: flex; align-items: baseline; gap: 0.9rem; font-size: 1.5rem; color: rgba(255, 255, 255, 0.4); }
.rates span:last-of-type { color: var(--ink); }
.rates em { font-style: normal; font-size: 0.8rem; color: var(--ink-2); }
.strip { position: relative; margin-top: 1rem; height: 3.25rem; border-block: 1px solid var(--line-2); overflow: hidden; }
.strip i { position: absolute; inset: 0.4rem -3rem; background: repeating-linear-gradient(90deg, rgba(215, 38, 61, 0.85) 0 1.25rem, transparent 1.25rem 1.5rem); border-radius: 2px; }
.strip::after { content: ''; position: absolute; inset: 0 auto 0 50%; width: 2px; background: #fff; }

.vis-source { padding: 0.8rem; }
.frame { position: relative; flex: 1; display: flex; flex-direction: column; border: 1.5px solid var(--line-2); border-radius: 0.5rem; padding: 1.4rem 0.7rem 0.7rem; }
.frame > span { position: absolute; left: 0.5rem; top: 0.25rem; font-size: 0.7rem; color: var(--ink-2); }
.f-screen { height: 100%; }
.f-window { width: 80%; }
.f-tab { width: 70%; min-height: 1rem; }

.vis-duck { gap: 0.55rem; }
.track { display: flex; align-items: center; gap: 0.75rem; }
.track-name { width: 2.75rem; flex: none; font-size: 0.75rem; color: var(--ink-2); }
.track .waves { flex: 1; max-width: none; height: 2.25rem; justify-content: space-between; gap: 0; }
.track .waves i { flex: 0 0 3px; max-width: none; }
.voice i { background: #fff; }
.duck-chip, .crash-chip { position: relative; display: grid; margin-top: 0.4rem; color: var(--ink); font-size: 0.75rem; }
.duck-chip span, .crash-chip span { grid-area: 1 / 1; }
.duck-chip .b { color: var(--red-hi); opacity: 0; }

.blocks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.35rem; }
.blocks i { height: 1.65rem; border-radius: 0.3rem; background: var(--red); }
.crash-chip { margin-top: 0.8rem; color: var(--ink-2); }
.crash-chip .b, .crash-chip .c { opacity: 0; }
.crash-chip .b { color: var(--red-hi); }
.crash-chip .c { color: #6fdc92; }

.sharp-text { position: relative; font-size: 1.2rem; font-weight: 500; line-height: 1.35; display: grid; }
.sharp-text span { grid-area: 1 / 1; }
.soft { filter: blur(2.2px); color: var(--ink-2); }
.crisp { clip-path: inset(-10% 0 -10% 0); }

.meter { height: 0.5rem; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-bottom: 0.9rem; }
.meter i { display: block; height: 100%; width: 38%; border-radius: inherit; background: #6fdc92; transform-origin: left; }
.warn-row { display: flex; justify-content: space-between; padding: 0.35rem 0; color: var(--ink-2); border-top: 1px solid var(--line); }
.warn-row b { font-weight: 500; color: #6fdc92; }

/* Download */
.download { background: linear-gradient(var(--bg), var(--bg-2) 18%, var(--bg-2) 82%, var(--bg)); }
.dl-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.dl { display: flex; flex-direction: column; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
.dl h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.dl-sub { margin: 0.35rem 0 1.25rem; color: var(--ink-2); }
.hash { margin-top: 0.7rem; color: var(--ink-2); font-size: 0.75rem; line-height: 1.55; overflow-wrap: anywhere; }
.pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; margin-top: 1.25rem; padding: 0.25rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--bg-2); }
.pick button { min-height: 2.75rem; padding: 0 0.25rem; border: 0; border-radius: 0.55rem; background: transparent; color: var(--ink-2); font-size: 0.9rem; font-weight: 500; touch-action: manipulation; transition: background-color 160ms, color 160ms; }
.pick button:hover { color: var(--ink); }
.pick button[aria-pressed='true'] { background: rgba(255, 255, 255, 0.12); color: var(--ink); }
.steps { display: grid; gap: 1rem; margin-top: 1.5rem; counter-reset: s; }
.steps li { position: relative; padding-left: 2.6rem; counter-increment: s; color: var(--ink-2); font-size: 0.975rem; line-height: 1.55; min-height: 1.85rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -0.05rem; display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); font: 500 0.8rem var(--mono); }
.steps strong { color: var(--ink); font-weight: 600; }
.addr { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; padding: 0.3rem 0.3rem 0.3rem 0.75rem; border: 1px solid var(--line-2); border-radius: 0.6rem; background: var(--bg-2); }
kbd { flex: 1; min-width: 0; font: 400 0.84rem var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.copy { flex: none; min-height: 2.5rem; min-width: 4.5rem; padding: 0 0.75rem; border: 1px solid var(--line-2); border-radius: 0.45rem; background: rgba(255, 255, 255, 0.05); font-size: 0.85rem; touch-action: manipulation; transition: background-color 160ms; }
.copy:hover { background: rgba(255, 255, 255, 0.12); }

/* Firefox info card and its tooltip */
.note { position: relative; display: flex; gap: 0.75rem; margin-top: auto; padding: 1rem; border: 1px solid rgba(255, 107, 124, 0.38); border-radius: 0.85rem; background: rgba(215, 38, 61, 0.09); }
.dl .steps:has(+ .note) { margin-bottom: 1.5rem; }
.note > svg { flex: none; width: 1.35rem; height: 1.35rem; margin-top: 0.1rem; color: var(--red-hi); }
.note h4 { font-size: 0.975rem; font-weight: 600; }
.note p { margin-top: 0.2rem; font-size: 0.925rem; line-height: 1.55; color: #d8d6d4; }
.learn { padding: 0.25rem 0; margin: -0.25rem 0; border: 0; background: none; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; touch-action: manipulation; }
.learn:hover { color: var(--red-hi); }
.tip { position: absolute; z-index: 30; left: 0; right: 0; bottom: calc(100% + 0.6rem); display: grid; gap: 0.6rem; padding: 1rem; border: 1px solid var(--line-2); border-radius: 0.85rem; background: #1f1f24; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); font-size: 0.875rem; line-height: 1.5; color: #dedcda; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 160ms, transform 200ms var(--out), visibility 160ms; }
/* Bridges the gap, so the pointer can move from the link into the tooltip without closing it. */
.tip::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 0.8rem; }
.tip b { color: var(--ink); font-weight: 600; }
.tip-row { display: block; }
.tip-wrap.below .tip { top: calc(100% + 0.6rem); bottom: auto; }
.tip-wrap.below .tip::after { top: auto; bottom: 100%; }
.tip-wrap.open .tip { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
  .tip-wrap:not(.closed):hover .tip { opacity: 1; visibility: visible; transform: none; }
}
.tip-wrap:not(.closed):focus-within .tip { opacity: 1; visibility: visible; transform: none; }

/* FAQ */
.faq-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: flex; align-items: center; min-height: 3.5rem; padding: 0.85rem 2.5rem 0.85rem 0; cursor: pointer; font-weight: 500; list-style: none; transition: color 160ms; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red-hi); }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 0.4rem; top: 50%; width: 0.9rem; height: 1.5px; background: currentColor; transition: transform 240ms var(--out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 2.5rem 1.15rem 0; color: var(--ink-2); }
.faq details a { color: var(--ink); }

/* Footer */
footer { padding: 2.5rem 0 5.5rem; border-top: 1px solid var(--line); }
.foot { display: grid; gap: 1.5rem; }
.foot-brand p { margin-top: 0.6rem; color: var(--ink-2); max-width: 22rem; }
.foot-brand .brand { width: fit-content; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink-2); text-decoration: none; transition: color 160ms; }
footer nav a:hover { color: var(--ink); }
.foot-legal { color: var(--ink-2); font-size: 0.85rem; }

/* Narrow screens: a full-width layer, because the words run close to the edges. */
@media (max-width: 63.99rem) {
  .hero-copy::before { inset: -5% calc(-1 * var(--gutter)); background: linear-gradient(transparent, rgba(10, 10, 12, 0.68) 9%, rgba(10, 10, 12, 0.68) 91%, transparent); }
}
/* Tablet */
@media (min-width: 48rem) {
  .nav { display: flex; }
  .menu { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.wide, .card:last-child { grid-column: span 2; }
  .bar { grid-template-columns: 1fr auto; align-items: center; }
  .bar-btns { grid-template-columns: repeat(3, 5.25rem); }
  .foot { grid-template-columns: 1fr auto; align-items: start; }
  .foot-legal { grid-column: 1 / -1; }
}
/* Desktop */
@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card:last-child { grid-column: auto; }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 22rem minmax(0, 1fr); gap: 3rem; }
}

/* Motion. Everything above is the finished, still page: this only adds movement. */
@media (prefers-reduced-motion: no-preference) {
  .w { animation: wordIn 900ms var(--out) both; animation-delay: calc(120ms + var(--i) * 70ms); }
  .rise { animation: riseIn 800ms var(--out) both; animation-delay: calc(120ms + var(--i, 0) * 70ms); }
  @keyframes wordIn { from { opacity: 0; transform: translateY(0.35em); filter: blur(10px); } }
  @keyframes riseIn { from { opacity: 0; transform: translateY(14px); } }

  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 800ms var(--out), transform 800ms var(--out), border-color 200ms; transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0ms; }
  .js [data-reveal].in { opacity: 1; transform: none; }

  /* The recorder lies back, then flattens as you scroll. Browsers without scroll timelines just show it flat. */
  @supports (animation-timeline: scroll()) {
    .panel { animation: flatten linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    @keyframes flatten { from { transform: rotateX(16deg) scale(0.96); } to { transform: none; } }
  }

  .rec { animation: blink 1.6s ease-in-out infinite; }
  @keyframes blink { 50% { opacity: 0.35; } }
  .corner { animation: blink 1.6s ease-in-out infinite; }
  .doc-video span { animation: stripes 5s linear infinite; }
  @keyframes stripes { to { transform: translate(-12%, -12%); } }
  .cursor { animation: drift 9s var(--out) infinite; }
  @keyframes drift { 0%, 100% { transform: none; } 30% { transform: translate(180px, -40px); } 60% { transform: translate(90px, 34px); } }
  .waves i { animation: level 1100ms ease-in-out infinite alternate; animation-delay: calc(var(--n) * -130ms); }
  @keyframes level { from { transform: scaleY(calc(var(--h, 0.3) * 0.45)); } to { transform: scaleY(var(--h, 0.3)); } }

  .flow { animation: flow 900ms steps(14) infinite; }
  @keyframes flow { to { stroke-dashoffset: -14; } }
  .pulse { animation: pulse 1.6s steps(16) infinite; }
  @keyframes pulse { 50% { transform: scale(0.82); } }

  .rates span { animation: rate 6s steps(1) infinite; color: rgba(255, 255, 255, 0.4); }
  .rates span:nth-child(1) { animation-delay: -4s; }
  .rates span:nth-child(2) { animation-delay: -2s; }
  .rates span:last-of-type { color: rgba(255, 255, 255, 0.4); }
  @keyframes rate { 0% { color: var(--ink); } 33.34% { color: rgba(255, 255, 255, 0.4); } }
  .strip i { animation: frames 720ms linear infinite; }
  @keyframes frames { to { transform: translateX(-1.5rem); } }

  .f-screen { animation: pickFrame 7.5s steps(1) infinite; }
  .f-window { animation: pickFrame 7.5s steps(1) -5s infinite; }
  .f-tab { animation: pickFrame 7.5s steps(1) -2.5s infinite; }
  @keyframes pickFrame { 0% { border-color: var(--red-hi); background: rgba(215, 38, 61, 0.13); } 33.34% { border-color: var(--line-2); background: transparent; } }

  /* Eight-second story: voice starts, music dips to 48%, voice stops, music returns. */
  .voice { animation: voice 8s var(--out) infinite; }
  @keyframes voice { 0%, 18% { opacity: 0.15; } 24%, 70% { opacity: 1; } 76%, 100% { opacity: 0.15; } }
  .music { animation: duck 8s ease-in-out infinite; }
  @keyframes duck { 0%, 20% { transform: scaleY(1); } 25%, 70% { transform: scaleY(0.48); } 78%, 100% { transform: scaleY(1); } }
  .duck-chip .a { animation: chipA 8s steps(1) infinite; }
  .duck-chip .b { animation: chipB 8s steps(1) infinite; }
  @keyframes chipA { 0% { opacity: 1; } 23% { opacity: 0; } 72% { opacity: 1; } }
  @keyframes chipB { 0% { opacity: 0; } 23% { opacity: 1; } 72% { opacity: 0; } }

  /* Nine-second story: blocks fill, the browser closes, then the recording comes back. */
  .blocks i { animation: block 9s steps(1) infinite; animation-delay: calc(var(--n) * 0.32s); }
  @keyframes block { 0% { background: var(--red); } 62% { background: rgba(255, 255, 255, 0.1); } }
  .blocks { animation: lost 9s steps(1) infinite; }
  @keyframes lost { 0% { opacity: 1; } 44% { opacity: 0.35; } 58% { opacity: 1; } }
  .crash-chip .a { animation: cA 9s steps(1) infinite; }
  .crash-chip .b { animation: cB 9s steps(1) infinite; }
  .crash-chip .c { animation: cC 9s steps(1) infinite; }
  @keyframes cA { 0% { opacity: 1; } 44% { opacity: 0; } }
  @keyframes cB { 0% { opacity: 0; } 44% { opacity: 1; } 58% { opacity: 0; } }
  @keyframes cC { 0% { opacity: 0; } 58% { opacity: 1; } }

  .crisp { animation: wipe 6s steps(80) infinite alternate; }
  @keyframes wipe { 0%, 12% { clip-path: inset(-10% 100% -10% 0); } 88%, 100% { clip-path: inset(-10% 0 -10% 0); } }
  .meter i { animation: meter 6s ease-in-out infinite alternate; }
  @keyframes meter { from { transform: scaleX(0.7); } to { transform: scaleX(1); } }

  /* Save battery: card pictures only move while on screen. */
  .js .card:not(.live) .vis *, .js .card:not(.live) .vis, .js .hero:not(.live) .stage * { animation-play-state: paused; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tip, .card, .card::before { transition: none; }
}
