/* ================================================================
   ROOUNE — editorial landing page
   Light mode only. Monochrome. Typography-first.
   ================================================================ */

:root {
  --bg: #FAF8F4;
  --ink: #141412;
  --muted: #6F6A62;
  --hairline: #E4E1DA;

  --font-sans: "Switzer", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell-max: 1360px;
  --shell-pad: clamp(1.25rem, 5vw, 4.5rem);

  --section-gap: clamp(7rem, 16vw, 13rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Without this, an inflexible nowrap element (the header's "Join the
     Waitlist" button at very narrow widths) can force html/body to grow
     wider than the viewport to fit its minimum content width — and every
     100%-width section on the page (hero-app-stage included) inherits
     that wider box, even though nothing in that section itself overflows.
     This clips the offending element locally instead of widening the
     whole document. */
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

/* ================================================================
   Type roles
   ================================================================ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.headline {
  font-size: clamp(2.125rem, 4.6vw, 4.25rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.statement {
  font-size: clamp(2.25rem, 5.6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.support {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
}

/* ================================================================
   Header
   ================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 4.25rem;
}

.wordmark {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  line-height: 0;
}

.logo-img {
  height: 1.25rem;
  width: auto;
  display: block;
}

.logo-img--footer {
  height: 1.375rem;
}

.site-nav {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.site-nav a,
.header-cta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover {
  opacity: 0.55;
}

.header-cta {
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.625rem 1.125rem;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.header-cta:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ================================================================
   Hero
   ================================================================ */

.hero {
  padding-top: clamp(5rem, 11vw, 9rem);
  padding-bottom: var(--section-gap);
}

.prologue {
  border-left: 1px solid var(--hairline);
  padding-left: clamp(1.25rem, 2.5vw, 2.5rem);
}

.prologue-line {
  font-size: clamp(1.125rem, 2.1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.prologue-line--quiet {
  color: var(--muted);
  font-weight: 400;
}

/* The scattered lines step across the grid — typography performing
   the copy. Steps are 1/12 of the shell so they stay on-grid. */
.prologue-step-1 { margin-left: 8.333%; }
.prologue-step-2 { margin-left: 16.666%; }
.prologue-step-3 { margin-left: 25%; }
.prologue-step-4 { margin-left: 33.333%; }

.prologue-verdict {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.hero-main {
  margin-top: clamp(4.5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-main .eyebrow {
  color: var(--ink);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Sized down from 10.5vw/9.5rem when the headline gained a neighbor —
   the phone composition shares the row (approved trade-off). */
.hero-headline {
  font-size: clamp(2.75rem, 6vw, 6.25rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* ================================================================
   Hero app mockup — "The app — coming soon."
   ================================================================ */

.hero-app {
  min-width: 0;
}

.hero-app-caption {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* The stage is a size container so screen typography scales with it
   via cqw units (px fallbacks cover pre-2023 browsers). */
.hero-app-stage {
  position: relative;
  container-type: inline-size;
  /* Tall enough that the left/right phones — pushed down via `top` to
     keep their rotated top corner clear of this box's own edge (see
     .phone--left/.phone--right below) — still have room for their full
     height plus rotation growth before hitting the bottom edge too.
     1.18 was too short and clipped the bottom of both tilted phones. */
  aspect-ratio: 1 / 1.5;
  /* The rotated left/right phones' bounding boxes exceed this box's
     unrotated edges; without clipping, that bleed can widen the page
     itself and cause horizontal scroll at narrow widths. */
  overflow: hidden;
}

/* Device frames. Rounded corners here are a deliberate exception to the
   sharp-corner rule — phones are physical objects, not page UI. Padding
   is thin (a real bezel), not the old inset-content padding — the
   screenshot now fills the screen edge-to-edge like a real device. A
   power button (right) and volume rocker (left) are drawn as pseudo-
   elements protruding from the frame, like a real iPhone's edge — flat
   tones only, no gradients, to stay inside the monochrome brief. */
.phone {
  position: absolute;
  width: 46%;
  background: #1B1A18;
  border: 1px solid var(--hairline);
  border-radius: 2.2em;
  padding: 0.26em;
  font-size: 9px;
  font-size: clamp(7px, 2cqw, 11px);
  opacity: 0;
  scale: 0.85;
  /* Grayscale-only elevation, extending the same "phones are physical
     objects, not page UI" exception already used for the rounded corners
     above — gives the frames real-device depth instead of sitting flat
     against the page. */
  box-shadow: 0 1.8em 3.2em -1.4em rgba(20, 20, 18, 0.4),
    0 0.6em 1.2em -0.5em rgba(20, 20, 18, 0.28);
}

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  background: #1B1A18;
  border: 1px solid var(--hairline);
}

/* Volume rocker — left edge. */
.phone::before {
  left: -0.2em;
  top: 24%;
  width: 0.25em;
  height: 11%;
  border-radius: 0.2em;
}

/* Power button — right edge. */
.phone::after {
  right: -0.2em;
  top: 20%;
  width: 0.25em;
  height: 8%;
  border-radius: 0.2em;
}

/* Rotation grows each phone's bounding box beyond its unrotated edges —
   the stage clips at its own boundary (see .hero-app-stage above), so
   left/top/right insets have to absorb that bleed or the rotated corner
   gets cropped by the clip. Verified empirically: at this width/aspect,
   anything below ~20% top on the tilted phones clips the top corner.
   Rotation lives on the standalone `rotate` property (not the `transform`
   shorthand) so the pop-in keyframes can animate `scale`/`opacity`
   independently without restating rotation inside the keyframes. */
@keyframes phone-pop {
  from { opacity: 0; scale: 0.85; }
  to   { opacity: 1; scale: 1; }
}

/* Idle bob once a phone has settled — keeps the composition feeling alive
   without repeating the entrance. Runs on the standalone `translate`
   property so it layers under `scale`/`rotate` without restating them. */
@keyframes phone-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -0.6em; }
}

/* Positioning only here — the pop-in/float animation itself is gated
   below behind `.hero-app-stage.is-in`, set by JS once the stage scrolls
   into view (main.js), so the entrance plays when it's actually seen
   instead of firing off-screen on page load. */
.phone--left   { left: 7%;  top: 22%; rotate: -8deg; z-index: 1; }
.phone--right  { right: 7%; top: 24%; rotate: 8deg;  z-index: 2; }
.phone--center { left: 27%; top: 9%;  z-index: 3; }

/* Spring pop-in, staggered left, then right, then center (center lands on
   top last, reinforcing its z-index). Delay gaps (0.45s) are tighter than
   the pop's own duration (0.55s), so each phone starts before its
   predecessor fully settles — a quick cascade rather than a fully
   sequential reveal. Each phone then hands off into its own idle float,
   timed to start the instant its pop-in finishes (delay + 0.55s) — and
   given a slightly different duration than its siblings so the three
   don't bob in unison. */
.hero-app-stage.is-in .phone--left {
  animation:
    phone-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.4s,
    phone-float 7s ease-in-out infinite 0.95s;
}
.hero-app-stage.is-in .phone--right {
  animation:
    phone-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.85s,
    phone-float 7.6s ease-in-out infinite 1.4s;
}
.hero-app-stage.is-in .phone--center {
  animation:
    phone-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 1.3s,
    phone-float 6.6s ease-in-out infinite 1.85s;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 2.05em;
  aspect-ratio: 738 / 1600;
}

.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dynamic-Island-style pill — narrower and fully rounded, sitting on top
   of the screenshot's own status bar, not a full-width notch. */
.phone-notch {
  position: absolute;
  z-index: 2;
  top: 0.9em;
  left: 50%;
  transform: translateX(-50%);
  width: 24%;
  height: 1.4em;
  border-radius: 999px;
  background: #060605;
  border: 1px solid rgba(250, 248, 244, 0.16);
}

/* Prologue and the runners share the top of the hero, side by side. */
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

/* Two runners moving together — the right people to run with. A short
   line-art loop of the pair running; its light background is dropped with
   mix-blend-mode so only the ink survives onto the warm page. */
.hero-figure {
  line-height: 0;
}

.figure-pair {
  position: relative;
  width: 100%;
  height: clamp(300px, 34vw, 460px);
  border-bottom: 1px solid var(--hairline);
  /* Paint the page colour directly behind the video and give the pair its
     own isolation group, so the video's multiply always blends against
     #FAF8F4 here — even though the hero intro animation isolates this
     subtree in a stacking context of its own. Without this the clip's
     baked-in light background stays opaque (a white box). */
  background: var(--bg);
  isolation: isolate;
}

/* The loop fills the figure area; multiply melts its off-white ground into
   the page (#FAF8F4), leaving the runners as clean ink. object-fit: contain
   keeps the pair uncropped — the melted margins are invisible anyway. */
.figure-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: multiply;
}

/* ================================================================
   Buttons
   ================================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 1.125rem 2rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn--solid {
  background: var(--ink);
  color: var(--bg);
}

.btn--solid:hover {
  background: transparent;
  color: var(--ink);
}

.btn:disabled,
.btn:disabled:hover {
  cursor: default;
  opacity: 0.5;
  background: var(--ink);
  color: var(--bg);
}

/* ================================================================
   Sections
   ================================================================ */

.section {
  padding-bottom: var(--section-gap);
}

.section--last {
  padding-bottom: clamp(6rem, 12vw, 10rem);
}

/* headline + support side by side, editorially offset */
.split {
  display: grid;
  grid-template-columns: 7fr 4fr;
  column-gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.split .support {
  padding-bottom: 0.5em;
}

/* ================================================================
   The Path — five hairline panels
   ================================================================ */

.panel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.panel {
  background: var(--bg);
  padding: clamp(1.5rem, 2.2vw, 2.25rem);
  min-height: clamp(13rem, 18vw, 16rem);
  display: flex;
  flex-direction: column;
}

/* Number sits at the top; a fixed gap below it drops every title onto the
   same line, so titles and copy align across all five cards regardless of
   how many lines each description runs. */
.panel-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: clamp(3rem, 7vw, 6.5rem);
}

.panel-title {
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.875rem;
}

.panel-copy {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ================================================================
   One Home for Running — column trio
   ================================================================ */

.column-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: 4rem;
}

.column {
  border-top: 1px solid var(--ink);
  padding-top: 1.75rem;
}

.column-title {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.column-copy {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 26em;
}

/* ================================================================
   Coming Soon
   ================================================================ */

.statement-support {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  margin-left: auto;
  max-width: 62rem;
}

/* ================================================================
   Pricing — editorial ledger
   ================================================================ */

.ledger {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--ink);
}

.tier {
  display: grid;
  grid-template-columns: 3fr 4fr 5fr;
  column-gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 4.5vw, 4rem);
  border-bottom: 1px solid var(--hairline);
}

.tier:last-child {
  border-bottom: 1px solid var(--ink);
}

.tier-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.tier-price {
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.tier-per {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.tier-tag {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 16em;
}

.tier-offer {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}

.tier-features {
  list-style: none;
}

.tier-features li {
  font-size: 0.9375rem;
  color: var(--muted);
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--hairline);
}

.tier-features li:first-child {
  padding-top: 0.125rem;
}

.tier-features li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ================================================================
   Manifesto
   ================================================================ */

.manifesto p {
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.manifesto p.manifesto-close {
  color: var(--ink);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

/* ================================================================
   Waitlist
   ================================================================ */

.waitlist {
  margin-top: clamp(3rem, 6vw, 5rem);
  max-width: 40rem;
}

.waitlist-form {
  display: flex;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.waitlist-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 1rem 0;
}

.waitlist-input::placeholder {
  color: var(--muted);
}

.waitlist-input:focus {
  outline: none;
}

.waitlist-input:focus-visible {
  outline: none;
  border-bottom-color: var(--ink);
}

.waitlist-note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.5rem;
}

.waitlist-error {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 1rem;
}

.waitlist-confirm {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 500;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.waitlist-registered {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.875rem;
}

/* ================================================================
   Footer
   ================================================================ */

.site-footer {
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 2.5rem;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ================================================================
   Motion — restrained: opacity + small translateY only
   ================================================================ */

.intro-seq {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.intro-seq.is-in {
  opacity: 1;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .intro-seq,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .phone {
    opacity: 1;
    scale: 1;
    animation: none;
  }
  /* The runner loop is paused in JS for reduced motion; the poster still shows. */
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 1080px) {
  .panel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .panel:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero-top {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 7vw, 4rem);
  }
  .hero-main {
    grid-template-columns: 1fr;
  }
  /* Flatten the copy wrapper so its children become direct grid items of
     .hero-main, letting `order` interleave the mockup between the
     headline and the CTA buttons on mobile/tablet (desktop keeps its
     two-column layout untouched, unaffected by this order override). */
  .hero-main-copy {
    display: contents;
  }
  .hero-main .eyebrow {
    order: 1;
  }
  .hero-headline {
    order: 2;
    font-size: clamp(3rem, 10.5vw, 9.5rem);
  }
  .hero-app {
    order: 3;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    margin-top: clamp(2rem, 6vw, 3.5rem);
  }
  .hero-actions {
    order: 4;
  }
  .figure-pair {
    height: clamp(300px, 60vw, 440px);
  }
  .split {
    grid-template-columns: 1fr;
    row-gap: 2rem;
    align-items: start;
  }
  .split .support {
    padding-bottom: 0;
  }
  .column-trio {
    grid-template-columns: 1fr;
  }
  .column-copy {
    max-width: 30em;
  }
  .statement-support {
    grid-template-columns: 1fr;
    max-width: 34rem;
    margin-left: 0;
  }
  .tier {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
  .tier-tag {
    max-width: 26em;
  }
  .site-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --section-gap: clamp(6rem, 22vw, 8rem);
  }
  .hero {
    padding-top: 4rem;
  }
  .prologue-step-1 { margin-left: 6%; }
  .prologue-step-2 { margin-left: 12%; }
  .prologue-step-3 { margin-left: 18%; }
  .prologue-step-4 { margin-left: 24%; }
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .panel,
  .panel:last-child {
    min-height: 0;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    text-align: center;
  }
  .waitlist-form {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
  }
}

/* ================================================================
   404 page
   ================================================================ */

.error-page {
  padding-top: clamp(5rem, 11vw, 9rem);
  min-height: 60vh;
}

.error-page .support {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* ================================================================
   Legal page
   ================================================================ */

.legal-page {
  padding-top: clamp(5rem, 11vw, 9rem);
}

.legal-content {
  max-width: 44rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.legal-content h2 {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: clamp(3rem, 5vw, 4rem);
  margin-bottom: 1.25rem;
}

.legal-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: opacity 0.25s ease;
}

.legal-content a:hover {
  opacity: 0.55;
}

.legal-toc {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.legal-toc li {
  margin-bottom: 0.625rem;
}
