/* Transcripts — one stylesheet, no framework. The site is seven static pages;
   a build pipeline for that is a liability, not an asset. */

:root {
  --bg: #ffffff;
  --fg: #16161a;
  --muted: #6b6b76;
  --line: #e6e6ec;
  --accent: #5b46e5;
  --accent-2: #7c3aed;
  --code-bg: #f5f5f8;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101014;
    --fg: #ececf1;
    --muted: #9a9aa8;
    --line: #26262e;
    --accent: #8b7cf6;
    --accent-2: #a78bfa;
    --code-bg: #1a1a21;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- chrome --------------------------------------------------------------- */

.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 10;
}
.wordmark {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 650; color: var(--fg); letter-spacing: -.01em;
}
.wordmark img { border-radius: 7px; }
.top nav { display: flex; gap: 1.25rem; font-size: .95rem; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem; padding: 2rem 1.5rem;
  color: var(--muted); font-size: .9rem;
}
footer p { max-width: var(--max); margin: 0 auto; }

main { padding: 0 1.5rem; }

/* --- landing -------------------------------------------------------------- */

.hero {
  --hero-top: 4.5rem;               /* one value: the padding AND the wave's offset */
  max-width: var(--max); margin: 0 auto; padding: var(--hero-top) 0 3rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1.08;
  letter-spacing: -.03em; margin: 0 0 1rem;
}
.hero .sub { font-size: 1.2rem; color: var(--muted); margin: 0 auto 2rem; max-width: 34rem; }

/* Block, not inline. As inline elements the mark and the beta pill shared a
   line box and were centred together — mark left of centre, pill right of it,
   sitting on the mark's baseline rather than under it. */
.hero .mark { display: block; width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 1.5rem; }

.badges { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .7rem 1.35rem; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600;
}
.btn:hover { background: var(--accent-2); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.beta {
  display: inline-block; margin-bottom: 1.25rem; padding: .3rem .7rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .8rem; color: var(--muted); letter-spacing: .02em;
}

.claims {
  max-width: var(--max); margin: 4rem auto; display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.claim h3 { margin: 0 0 .4rem; font-size: 1.05rem; letter-spacing: -.01em; }
.claim p { margin: 0; color: var(--muted); font-size: .95rem; }

.shots { max-width: 62rem; margin: 4rem auto; display: grid; gap: 1.25rem;
         grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.shots img { width: 100%; border: 1px solid var(--line); border-radius: 12px; }

.note {
  max-width: var(--max); margin: 3rem auto; padding: 1.1rem 1.25rem;
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--muted); font-size: .93rem;
}

/* --- guide ---------------------------------------------------------------- */

.guide-nav {
  max-width: var(--max); margin: 2rem auto 0;
  display: flex; flex-wrap: wrap; gap: .4rem .9rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
  font-size: .93rem;
}

.guide main > h1, .guide main > h2, .guide main > h3, .guide main > h4,
.guide main > p, .guide main > ul, .guide main > pre, .guide main > hr,
.guide main > img {
  max-width: var(--max); margin-left: auto; margin-right: auto;
}
.guide h1 { font-size: 2rem; letter-spacing: -.025em; margin: 2.25rem auto 1rem; }
.guide h2 { font-size: 1.3rem; letter-spacing: -.015em; margin: 2.5rem auto .6rem; }
.guide h3 { font-size: 1.05rem; margin: 1.75rem auto .4rem; }
.guide ul { padding-left: 1.2rem; }
.guide li { margin: .3rem 0; }
.guide img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; margin: 1.5rem auto; }
.guide hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem auto; }

code {
  background: var(--code-bg); padding: .12em .38em; border-radius: 5px;
  font: .88em ui-monospace, SFMono-Regular, Menlo, monospace;
}
pre {
  background: var(--code-bg); padding: .9rem 1.1rem; border-radius: 10px;
  overflow-x: auto; max-width: var(--max); margin: 1.25rem auto;
}
pre code { background: none; padding: 0; }

@media (max-width: 34rem) {
  .top { padding: .85rem 1rem; }
  main { padding: 0 1rem; }
  .hero { --hero-top: 3rem; }
}

.hero .brew {
  margin: 1.5rem auto 0; color: var(--muted); font-size: .9rem;
}
.hero .brew code { font-size: .95em; }

/* Temporary — removed once builds are notarized. Deliberately conspicuous:
   a Gatekeeper refusal with no warning reads as "this app is broken or
   malicious", which is a worse first impression than an honest caveat. */
.hero .unsigned {
  max-width: 34rem; margin: 2rem auto 0; padding: .9rem 1.1rem;
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--muted); font-size: .85rem; line-height: 1.55; text-align: left;
}
.hero .unsigned code { display: inline-block; margin: .35rem 0; font-size: .95em; }

/* --- hero waveform -------------------------------------------------------- */

/* Deliberately plain. An earlier version faded the wave with two CSS mask
   layers composited by `mask-composite`, and used 100vw for full bleed — both
   diverge in Safari, where the composite is ignored (so the clear centre never
   appears) and vw counts the scrollbar (so the wave sits off-centre). The
   fading is arithmetic the canvas already does per bar, so none of it needed to
   be CSS in the first place.

   Width comes from a positioned full-bleed box rather than viewport units, so
   it never disagrees with the scrollbar. */
.hero { position: relative; --mark: 96px; --wave-h: 340px; }
#wave {
  position: absolute;
  /* Centred on the mark rather than aligned to its top: at twice the mark's
     height, top-alignment would hang the wave down over the version pill. The
     offset is derived from the two heights, so changing either keeps them
     concentric. */
  top: calc(var(--hero-top) - (var(--wave-h) - var(--mark)) / 2);
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 92vw);
  height: var(--wave-h);
  pointer-events: none;
  z-index: 0;
}
.hero > *:not(#wave) { position: relative; z-index: 1; }

@media (max-width: 40rem) {
  .hero { --wave-h: 260px; }
}
