/* Otherpath — a studio building software for things people find hard to
   practise. The site is dark, quiet and mostly empty: near-black with a
   blue→purple accent that belongs to the hero signal and its branching route,
   and is spent sparingly everywhere else — the active route, one headline
   fragment, the primary CTA. The one moving thing on the page stays the loudest.

   The exception is the product panels, which are deliberately light: both apps
   have light UIs, and a real light surface inside the dark page is the
   strongest proof the product is real. Each panel wears its own app's palette
   — Noum's blue on white, Runway's teal on warm cream — because a shared
   site-coloured card would prove nothing about either.

   Eight pages share this sheet: home, noum, runway, about, privacy, and
   Runway's three legal pages (privacy, terms, support). */

/* ---------- faces (self-hosted; no third-party request) ---------- */

@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "PublicSans";
  src: url("fonts/publicsans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PublicSans";
  src: url("fonts/publicsans-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PlexMono";
  src: url("fonts/plexmono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* ---- colour ----
     Contrast measured against --bg (#0a0b10). Every foreground clears WCAG AA
     for body text (4.5:1); --rule is a border, not text, and is exempt. */
  --bg: #0a0b10;
  --surface: #13151f;
  --surface-hi: #181b27;
  --ink: #eef1f8;        /* 17.39:1 */
  --ink-soft: #a9b0c6;   /*  9.09:1 */
  --ink-faint: #8990a8;  /*  6.20:1 */
  --ink-muted: #787f95;  /*  4.93:1 — the quietest text on the site. A step
                            below --ink-faint for the copyright line, set as a
                            colour rather than an opacity: .75 on --ink-faint
                            computed to 3.93:1, which fails AA at 11.5px. */
  --rule: #1e2230;
  --rule-hi: #2b3142;
  --blue: #6b9bff;       /*  7.26:1 */
  --purple: #b07cff;     /*  6.71:1 */
  --signal: var(--blue);

  --grad: linear-gradient(100deg, var(--blue), var(--purple));

  /* ---- type ---- */
  --font-display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --font-body: "PublicSans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "PlexMono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-2xs: .72rem;
  --fs-xs: .78rem;
  --fs-sm: .86rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.16rem;
  --fs-lg: 1.42rem;
  --fs-xl: clamp(1.6rem, 3.4vw, 2.3rem);
  --fs-2xl: clamp(2rem, 5vw, 3.1rem);
  --fs-display: clamp(2.5rem, 7.4vw, 5.4rem);

  /* ---- space ---- */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;

  --measure: 34rem;
  --shell: 68rem;
  --gutter: clamp(1.4rem, 5vw, 4rem);
  --step: clamp(4.5rem, 12vh, 9rem);

  --ease: cubic-bezier(.2, .7, .3, 1);
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* A baseline every link inherits, so that a link written outside one of the
   styled scopes below is still legible rather than falling back to the user
   agent's #0000EE — which is 2.09:1 on this background, a WCAG failure, and
   exactly what happened to one mailto: in a .lede. Specificity 0,0,1, so every
   class and scope further down still wins; this only catches what they miss. */
a {
  color: var(--ink);
  text-decoration-color: var(--rule-hi);
  text-underline-offset: 3px;
}
a:hover { color: var(--blue); }

/* Hidden until focused. Positioned with transform rather than a large negative
   left, so the off-screen state does not extend the scroll box and inflate the
   page width on narrow viewports. */
.skip {
  position: fixed;
  top: var(--sp-3);
  left: var(--sp-3);
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--bg);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 6px;
  z-index: 40;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  transition: transform .18s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- layout ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--step); }

.section + .section { border-top: 1px solid var(--rule); }

/* A label / body pair. Stacks on narrow screens, splits to a rail on wide. */
.split { display: grid; gap: var(--sp-5); }

@media (min-width: 60rem) {
  .split {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: var(--sp-8);
    align-items: start;
  }
}

/* Used on both <p> and <h2>. The explicit line-height and max-width override
   the <h2> rule further down, which would otherwise leave a display line-height
   and a 20ch cap on a one-word label. */
.section-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  max-width: none;
}

/* On wide screens the rail label aligns with the first line of body text it
   labels, rather than floating above it. */
@media (min-width: 60rem) {
  .split > .section-label { padding-top: .45rem; }
}

.measure { max-width: var(--measure); }

/* ---------- nav ---------- */

.site {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}

/* Set by site.js once the page has scrolled, so the bar only separates itself
   from the page when there is something underneath it to separate from. */
.site.is-stuck { border-bottom-color: var(--rule); }

.site-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

/* Trajectory mark: an incoming route that splits into a subdued default route
   and an accented alternative that lifts away. Stroke weights are tuned so the
   two routes still separate at favicon size. */
.mark-glyph { width: 24px; height: 24px; overflow: visible; flex: none; }
.mark-glyph path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mark-in { stroke: currentColor; stroke-width: 2.8; }
.mark-default { stroke: currentColor; stroke-opacity: .38; stroke-width: 2.6; }
.mark-alt { stroke: var(--purple); stroke-width: 2.8; }

.mark-word {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  font-variation-settings: "wdth" 90;
  letter-spacing: -.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-4), 3vw, var(--sp-6));
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.nav-link:hover { color: var(--ink); }
/* "page" marks the page itself; "true" marks its section, on a page that sits
   under it (Noum's privacy, support and coaching pages). */
.nav-link[aria-current="page"],
.nav-link[aria-current="true"] { color: var(--ink); }

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

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 11vh, 7rem) 0;
  isolation: isolate;
  /* Clips the wider-than-viewport background wash below, which would otherwise
     extend the page scroll box and register as horizontal overflow on mobile.
     clip (not hidden) so it never introduces a scroll container of its own. */
  overflow: clip;
}

/* A wide, very low-contrast wash centred behind the headline, so the hero has
   some depth behind the type instead of type sitting flat on black. It sits at
   z-index -1 inside the hero's own stacking context, which is what isolation
   above guarantees — without it the wash could escape and land behind the page
   background on some compositors. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -12%;
  width: min(120rem, 190%);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 44% 52% at 32% 42%, color-mix(in srgb, var(--blue) 13%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 46% at 68% 58%, color-mix(in srgb, var(--purple) 12%, transparent), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 620;
  font-variation-settings: "wdth" 88;
  font-size: var(--fs-display);
  line-height: 1.03;
  letter-spacing: -.038em;
  max-width: 18ch;
}

h1 .line { display: block; }

/* The one place the waveform's colour appears in type. Falls back to a flat
   blue anywhere background-clip: text is unavailable. */
.grad {
  color: var(--blue);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .grad { color: transparent; }
}

/* The compact hero has no signal beneath it, so it needs a lower bottom pad and
   the section border sits closer. */
.hero--compact { padding-bottom: clamp(2.5rem, 6vw, 4rem); }

.lede {
  margin: var(--sp-6) 0 0;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: var(--fs-md);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-6);
  margin: var(--sp-7) 0 0;
}
.hero-alt { font-size: var(--fs-sm); }

@media (prefers-reduced-motion: no-preference) {
  h1 .line {
    opacity: 0;
    transform: translateY(.3em);
    animation: rise .9s var(--ease) forwards;
  }
  h1 .line:nth-child(1) { animation-delay: .05s; }
  h1 .line:nth-child(2) { animation-delay: .14s; }
  h1 .line:nth-child(3) { animation-delay: .23s; }

  .hero .eyebrow { opacity: 0; animation: rise .9s var(--ease) forwards; }
  .hero .lede { opacity: 0; animation: rise .9s var(--ease) .42s forwards; }
  .hero-actions { opacity: 0; animation: rise .9s var(--ease) .54s forwards; }
}

@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- signature: signal → path ----------
   An audio signal on the left, fixed horizontally, whose amplitude changes in
   place; it tapers into a junction and becomes two routes — a subdued default
   continuing almost flat, and an accent route lifting away. The branch echoes
   the logo mark: input → rehearsal → a changed trajectory.

   site.js redraws only the signal path, ~26fps, and pauses it offscreen and
   when the tab is hidden. The routes never move. The markup already contains a
   complete frame-zero waveform (generated by tools/gen-signal.py, which the
   script mirrors exactly), so with no JS, a frozen clock, or reduced motion the
   visual is a finished still — never an empty box, and never a snap when the
   script takes over. */

.signal-wrap {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  width: 100%;
  max-width: 640px;
}

.signal {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.signal-line   { fill: none; stroke: url(#sigGrad); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.signal-echo   { fill: none; stroke: url(#sigGrad); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .16; }
.route-default { fill: none; stroke: var(--ink-faint); stroke-opacity: .5; stroke-width: 2.2; stroke-linecap: round; }
.route-alt     { fill: none; stroke: url(#altGrad); stroke-width: 2.8; stroke-linecap: round; }
.route-alt-glow{ fill: none; stroke: url(#altGrad); stroke-width: 7; stroke-linecap: round; }

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}

.btn-primary {
  background: var(--grad);
  color: #0a0b10;
  font-weight: 500;
}
.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--rule-hi);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink-faint); background: var(--surface); }

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-hi);
  text-underline-offset: 4px;
  transition: text-decoration-color .25s var(--ease), color .25s var(--ease);
}
.text-link:hover { color: var(--blue); text-decoration-color: var(--blue); }

.arrow { transition: transform .25s var(--ease); }
a:hover .arrow { transform: translateX(3px); }

/* ---------- prose ---------- */

h2 {
  margin: 0 0 var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 620;
  font-variation-settings: "wdth" 90;
  line-height: 1.1;
  letter-spacing: -.032em;
  max-width: 20ch;
}

h3 {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  font-variation-settings: "wdth" 92;
  letter-spacing: -.02em;
}

.body-text {
  margin: 0 0 var(--sp-4);
  max-width: var(--measure);
  color: var(--ink-soft);
}
.body-text:last-child { margin-bottom: 0; }
.body-text strong { color: var(--ink); font-weight: 500; }

.lead-text {
  font-size: var(--fs-md);
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---------- numbered capability list (noum) ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-7);
}

.step {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .15rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--purple);
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---------- signup (noum) ---------- */

.signup { margin: var(--sp-6) 0 0; }

.signup-label {
  display: block;
  margin-bottom: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  max-width: 30rem;
}

.signup-input {
  flex: 1 1 15rem;
  min-width: 0;
  padding: .8rem 1rem;
  border: 1px solid var(--rule-hi);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: border-color .25s var(--ease);
}
.signup-input::placeholder { color: var(--ink-faint); }
.signup-input:focus { border-color: var(--blue); }

.signup-button {
  flex: none;
  padding: .8rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #0a0b10;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .25s var(--ease);
}
.signup-button:hover { transform: translateY(-1px); }

.signup-note,
.signup-alt {
  margin: var(--sp-4) 0 0;
  max-width: var(--measure);
  font-size: var(--fs-sm);
  color: var(--ink-faint);
}
.signup-note a,
.signup-alt a { color: var(--ink-soft); }

/* Honeypot. Positioned off-screen rather than display:none, which some bots
   test for before deciding whether to fill a field. aria-hidden and
   tabindex="-1" in the markup keep it away from assistive tech and the tab
   order, so nobody using the page can reach it by accident. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Reserves its line height while empty, so resolving a submit does not shift
   the block underneath it. */
.signup-status {
  margin: var(--sp-4) 0 0;
  min-height: 1.5em;
  max-width: var(--measure);
  font-size: var(--fs-sm);
  color: var(--ink-faint);
}
.signup-status.is-ok { color: var(--ink); }
.signup-status.is-error { color: #ff9b9b; }   /* 8.44:1 on --bg */

/* The pre-endpoint state, and any other standing note. */
.notice {
  margin: var(--sp-6) 0 0;
  padding: var(--sp-4) var(--sp-5);
  max-width: var(--measure);
  border: 1px solid var(--rule-hi);
  border-left: 2px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}
.notice strong { color: var(--ink); font-weight: 500; }
.notice a { color: var(--ink); text-underline-offset: 3px; }
.notice a:hover { color: var(--blue); }

/* A link on its own line after a lead paragraph. */
.after-lead { margin: var(--sp-5) 0 0; }

/* ---------- product panel base ----------
   Both apps have light UIs; the site is dark. Showing a real light surface
   inside the dark page is the strongest available proof the product exists,
   and the contrast does the work no gradient card could. Tokens (surface,
   radius, shadow tint, text colours) are lifted from each app's own design
   system so the fragment is faithful rather than approximate.

   The base below is Noum's — white cards on its blue-tinted gradient. Runway
   overrides the palette further down; it is the same construction in the other
   app's colours, not a second construction. */

.product {
  margin: var(--sp-7) 0 0;
  max-width: 24rem;
}

.product-surface {
  padding: clamp(1.1rem, 3.5vw, 1.6rem);
  border-radius: 20px;
  /* Noum's own light gradient surface (#F7F7FF → #EDF2FF). */
  background: linear-gradient(150deg, #f7f7ff, #edf2ff);
  box-shadow: 0 18px 40px rgba(4, 6, 12, .5), 0 1px 0 rgba(255, 255, 255, .5) inset;
}

.product-card {
  padding: clamp(1rem, 3vw, 1.35rem);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(51, 120, 245, .10);
}

.product-caption {
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-2xs);
  color: var(--ink-faint);
  max-width: 30rem;
}

/* ---------- product panel: Runway ----------
   Runway's ground is warm cream (#f4f2ec) rather than Noum's cool blue, and
   its ink is a near-black teal. Flat, not a gradient: the app's background is
   a flat fill, and inventing a gradient here would be the one part of the
   fragment that is not the product.

   Every colour below is a Runway token: background #f4f2ec, card #ffffff,
   surfaceSunken #e9e6df, foreground #142329, mutedForeground #4f5b61,
   primary #005f61, primaryTint #daf1f0, and the on-track status pair
   #1c5332 on #e0f5e5. Contrast on the white card: ink 16.13:1, muted 7.00:1,
   status pill 7.87:1 — all clear AA, as the app's own measurements say. */

.product--runway { max-width: 26rem; }

.product--runway .product-surface {
  background: #f4f2ec;
  box-shadow: 0 18px 40px rgba(4, 6, 12, .5), 0 1px 0 rgba(255, 255, 255, .6) inset;
}

.product--runway .product-card {
  box-shadow: 0 8px 24px rgba(20, 35, 41, .10);
}

.rw-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* The signature pie: a filled teal wedge from twelve o'clock inside a tinted
   disc, drawn with the same maths as the app's ProgressPie. 6.34:1 of wedge
   against disc, so the share is readable as a shape and not only as a hue. */
.rw-pie { flex: none; width: 30px; height: 30px; }
.rw-pie-disc { fill: #daf1f0; }
.rw-pie-wedge { fill: #005f61; }

.rw-head-label {
  flex: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #4f5b61;
}

.rw-status {
  flex: none;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: #e0f5e5;
  color: #1c5332;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* One figure, large: the money actually saved. The target underneath it stays
   plain — the app is deliberate that the number a reader has *not* got is
   never the warm or the loud one. */
.rw-figure {
  margin: var(--sp-4) 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  color: #142329;
}

.rw-target {
  margin: var(--sp-1) 0 0;
  font-size: .9rem;
  color: #4f5b61;
}

/* Two rows of identical, neutral weight: ranked by position, named by their
   labels, neither tinted. Colouring one and not the other is what made them
   read as two contradictory answers to one question. */
.rw-rows {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
}

/* The row sets the dark ink itself rather than leaving it to the two spans.
   Everything inside a light panel sits on white while the page colour is
   near-white, so an unspanned word here would be invisible; this makes the
   safe colour the inherited one. */
.rw-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: .55rem 0;
  border-top: 1px solid #e9e6df;
  font-size: .92rem;
  color: #142329;
}

.rw-key { color: #4f5b61; }
.rw-val { color: #142329; }

/* ---------- investor panel (about) ---------- */

.panel {
  padding: clamp(var(--sp-6), 5vw, var(--sp-8));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel h2 { margin-bottom: var(--sp-4); }

/* A quieter, lower panel — investor contact is secondary to studio and product. */
.panel--compact {
  margin-top: var(--sp-7);
  padding: clamp(var(--sp-5), 4vw, var(--sp-6));
}
.panel-title {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.fact-list {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
}

.fact-list li {
  display: grid;
  gap: var(--sp-1);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--rule);
}

.fact-key {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.fact-val { color: var(--ink-soft); font-size: var(--fs-sm); }

@media (min-width: 44rem) {
  .fact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
}

/* ---------- document pages (privacy) ---------- */

.doc-title {
  font-size: var(--fs-2xl);
  max-width: none;
}

.doc-meta {
  margin: var(--sp-4) 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}

/* ---------- long legal documents (the Runway pages) ----------
   privacy.html is short enough to read straight through. Runway's policy is
   fifteen sections, because it is a policy App Store Connect points at and it
   names every processor — so it gets a contents list, and term/detail pairs for
   the parts that are really a table. */

.doc-toc {
  list-style: none;
  margin: var(--sp-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}

@media (min-width: 44rem) {
  .doc-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-5); }
}

.doc-toc a {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  text-decoration-color: var(--rule-hi);
  text-underline-offset: 3px;
}
.doc-toc a:hover { color: var(--blue); }

/* A term and the sentence that explains it. Stacked, not a two-column grid:
   these details run to three lines, which .fact-list's columns cannot hold. */
.def-list {
  list-style: none;
  margin: var(--sp-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
  max-width: var(--measure);
}

.def-list > li {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--rule);
}

.def-term {
  margin: 0 0 var(--sp-1);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.def-detail { margin: 0; color: var(--ink-soft); }

/* Scroll-margin so an in-page jump does not park its target under the sticky
   header. Three selectors because they cover different moments: .doc-anchor is
   the explicit per-heading hook the legal pages use, .section[id] catches a
   whole section used as a jump target (runway.html's "How it is built", which
   otherwise puts its top edge and the first 5rem of its padding behind the
   bar), and :target catches anything else reachable by fragment — the skip
   link's #main, and #investors if it is ever linked from outside. */
.doc-anchor,
.section[id],
:target { scroll-margin-top: 5rem; }

/* A titled callout in the prose — the LegalCallout of Runway's own policy,
   which sets the load-bearing sentence ("Not stored:", "No event ever leaves
   your device") apart from the paragraph explaining it. Reuses .notice for the
   box and only adds the label. */
.notice-title {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.doc-body .notice { margin: var(--sp-5) 0; }
.doc-body .notice p { max-width: none; font-size: inherit; }
.doc-body .notice p:first-of-type { margin-top: 0; }
.doc-body .notice p:last-child { margin-bottom: 0; }

.doc-body p,
.doc-body li { color: var(--ink-soft); max-width: var(--measure); }
.doc-body a { color: var(--ink); text-decoration-color: var(--rule-hi); text-underline-offset: 3px; }
.doc-body a:hover { color: var(--blue); }
.doc-body ul { padding-left: 1.1rem; }
.doc-body li { margin-bottom: var(--sp-2); }
.doc-body strong { color: var(--ink); font-weight: 500; }

/* ---------- footer ---------- */

.site-footer {
  padding-block: var(--step) var(--sp-8);
  border-top: 1px solid var(--rule);
}

.footer-grid { display: grid; gap: var(--sp-6); }

@media (min-width: 52rem) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .footer-legal { text-align: right; }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  list-style: none;
  margin: 0 0 var(--sp-6);
  padding: 0;
}
/* A product's own pages, as a second row tucked under the site's row. */
.footer-nav--product { margin-top: calc(var(--sp-3) - var(--sp-6)); }

.legal {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  line-height: 1.75;
  color: var(--ink-faint);
}
.legal a { color: var(--ink-soft); text-decoration: none; }
.legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal.muted { margin-top: var(--sp-4); color: var(--ink-muted); }

/* ---------- reveals ----------
   Native scroll-driven where it exists, JS-driven where it does not. Safari
   and Firefox ship no timelines, so without the fallback every block on an
   iPhone would sit at its start state. Nothing here hides by default: the
   .js-reveal hook is set by script, so no-JS and unsupported browsers both
   land on plain visible content. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 6% cover 26%;
    }
  }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .js-reveal .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
  h1 .line, .lede, .eyebrow, .hero-actions { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  /* The signal holds its frame-zero shape: a complete waveform, just not moving.
     site.js also checks the same query and never starts the loop. */
}

/* ---------- narrow ---------- */

@media (max-width: 34rem) {
  .signup-row { flex-direction: column; }
  .signup-button { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

#beta-data { scroll-margin-top: 6rem; }
