/* Selenar's original lunar page. Brown ground, serif voice, native controls. */

@font-face {
  font-family: "Selenar Newsreader";
  src: url("film/media/fonts/Newsreader.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Selenar Newsreader";
  src: url("film/media/fonts/Newsreader-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Warm ground ladder — the steps are meant to be READ: a panel/ground
     split near 3x luminance holds; so a whisper of a step just reads as one black slab. */
  --ground: #0d0a07;
  --ground-raised: #201810;
  --ground-pad: #251b12;
  --ground-deep: #060403;

  /* Warm text remains distinct from the app captures. */
  --ink-pri: #f3eee5;
  --ink-sec: #ada9a3;
  --ink-ter: #a49e96;
  --ink-body: #cec9c0;

  /* The one accent: the app's move teal. Text weight and button weight are different
     swatches because the button fill has to carry a white label at 4.5:1. */
  --teal: #34d8c4;
  --teal-button: #0e8373;
  --teal-button-hover: #12a08c;

  --rule: rgba(242, 247, 248, 0.12);
  --rule-soft: rgba(242, 247, 248, 0.07);

  --shadow-warm: 20, 14, 8;

  --font-ui: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Selenar Newsreader", ui-serif, "New York", "Iowan Old Style", "Source Serif 4", Charter, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-xs: 0.82rem;
  --text-sm: 0.92rem;
  --text-base: 1rem;
  --text-md: clamp(1.06rem, 1rem + 0.3vw, 1.22rem);
  --text-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --text-xl: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --text-2xl: clamp(1.85rem, 1.5rem + 1.6vw, 2.7rem);
  --text-3xl: clamp(2.25rem, 1.75rem + 2.1vw, 3.4rem);
  /* The hero headline alone. About 64px on a desktop, falling to phone size on its own, floored where a nine-word
     line still holds three readable rows at 320px. */
  --text-hero: clamp(2.6rem, 1.2rem + 4.4vw, 4.6rem);

  --measure: 58ch;
  --container: 74rem;
  --radius: 0.75rem;
  --radius-pad: 1rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --section-pad: clamp(4.5rem, 8vw, 7.5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--ground);
  overflow-x: clip;
}

html.anchor-scroll {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-sec);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.1;
  color: var(--ink-pri);
  text-wrap: balance;
  margin: 0;
}

h3,
h4 {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink-pri);
  margin: 0;
}

p {
  margin: 0;
  max-width: var(--measure);
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: #6ee7c8;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

strong {
  color: var(--ink-pri);
  font-weight: 600;
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  z-index: 60;
  padding: var(--space-3) var(--space-4);
  background: var(--ground-pad);
  color: var(--ink-pri);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 160ms var(--ease);
}

.skip-link:focus-visible {
  top: var(--space-4);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ---------------------------------------------------------------- header

   A Mac-native floating pill: content-width, centred, blurred, over the sky rather than
   on a bar of its own. It carries the app's real icon (the bundle's AppIcon, not the
   line-art favicon), three section links and one button-shaped CTA whose label script.js
   swaps with the publication state in config.js. */

.site-header {
  position: fixed;
  top: clamp(0.6rem, 1.6vw, 1.1rem);
  /* Centred by auto margins between two zero insets, not by a 50% offset: a fixed box
     positioned from one edge shrinks to fit HALF the viewport, which is what wrapped the
     CTA onto its own row on a phone. */
  left: 0;
  right: 0;
  width: fit-content;
  margin-inline: auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.75rem);
  max-width: calc(100vw - clamp(1rem, 4vw, 2rem));
  padding: 0.4rem 0.4rem 0.4rem 0.95rem;
  background: rgba(13, 10, 7, 0.66);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid rgba(242, 247, 248, 0.11);
  border-radius: 999px;
  box-shadow: 0 12px 34px -14px rgba(var(--shadow-warm), 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-pri);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.brand img {
  border-radius: 8px;
}

.brand-name {
  font-size: var(--text-base);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-pri);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
}

.nav-toggle-lines {
  display: grid;
  gap: 3px;
}

.nav-toggle-lines i {
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  font-size: var(--text-sm);
}

.primary-nav a {
  color: var(--ink-sec);
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--ink-pri);
}

.nav-cta {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms var(--ease), color 140ms var(--ease),
    border-color 140ms var(--ease), transform 140ms var(--ease);
}

.button-primary {
  background: var(--teal-button);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--teal-button-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  border-color: var(--rule);
  color: var(--ink-pri);
}

.button-secondary:hover {
  border-color: rgba(242, 247, 248, 0.32);
  color: var(--ink-pri);
}

.button-offer {
  background: var(--teal-button);
  color: #ffffff;
  padding: 0.95rem 1.9rem;
  font-size: var(--text-base);
}

.button-offer[disabled] {
  background: transparent;
  border-color: var(--rule);
  color: var(--ink-ter);
  cursor: not-allowed;
}

.text-link {
  color: var(--teal);
  font-size: var(--text-sm);
  text-decoration: none;
  border-bottom: 1px solid rgba(52, 216, 196, 0.35);
  padding-bottom: 1px;
}

.text-link:hover {
  border-bottom-color: var(--teal);
}

/* ---------------------------------------------------------------- capture frames */

.pad {
  position: relative;
  border-radius: var(--radius-pad);
  background: var(--ground-pad);
  /* The rim must survive a dark capture on a dark ground: below ~0.14 a night
     shot's edge melts into the page and the pad reads as a shadow, not an object. */
  border: 1px solid rgba(243, 238, 229, 0.14);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 48px -16px rgba(var(--shadow-warm), 0.64);
}

.pad > img {
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- original lunar hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  /* One column of a stated width rather than an auto track: an auto track sizes itself
     from the headline's own wrapping, which is the thing the headline is supposed to be
     measured against. */
  grid-template-columns: min(100%, 64rem);
  justify-content: center;
  align-content: end;
  text-align: center;
  padding: clamp(7rem, 16vh, 11rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vh, 5rem);
  overflow: hidden;
}

/* On a desktop window the copy is anchored to the bottom, and the moon sits a
   quarter down the sky — that left a full breath of dead air between the disc
   and the headline. Raise the stack on tall, wide viewports so the gap under
   the moon is one beat (roughly one line of the headline), while a
   phone keeps its own already-tight rhythm: the moon renders larger there, so
   the small padding stays. */
@media (min-width: 48rem) and (min-height: 46rem) {
  .hero {
    padding-bottom: clamp(4rem, 11vh, 8rem);
  }
}

.hero-sky,
.hero-sky-gl,
.hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-sky {
  z-index: 0;
  object-fit: cover;
  /* The moon is a third of the way down the render, so the same fraction is held here
     at every width: cover crops the sides on a phone and the height on a desktop, and
     the disc stays centred over the copy through both. */
  object-position: 50% 28%;
  transition: opacity 1.1s var(--ease);
}

/* The live sky (sky.js): the app's HeroSky.metal running in WebGL2 from the still's
   own t=37, so the crossfade lands on the same clouds. Same box as the still, which
   stays the answer without WebGL2, under Reduce Motion and with script off. */
.hero-sky-gl {
  z-index: 1;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}

.hero-sky-live .hero-sky {
  opacity: 0;
}

.hero-sky-live .hero-sky-gl {
  opacity: 1;
}

/* The wash that puts the type in the clear: the ground rising into the sky under the
   copy, and nothing above the moon. */
.hero-wash {
  z-index: 2;
  background: linear-gradient(
    to top,
    rgb(13, 10, 7) 0%,
    rgba(13, 10, 7, 0.92) 15%,
    rgba(13, 10, 7, 0.55) 34%,
    rgba(13, 10, 7, 0) 62%
  );
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  /* Full-width track keeps the text measure independent of its wrapping. */
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: var(--space-6);
  width: 100%;
}

.hero-copy > *,
.offer-action > * {
  max-width: 100%;
}

.hero-copy h1 {
  font-size: var(--text-hero);
  line-height: 1.06;
  /* Two lines on a desktop: the measure is set so the promise breaks where a person
     would break it, and so it never grows into the moon above it. */
  max-width: 30ch;
}

/* One word carries the italic — inside the page's own voice: the headline stays full serif (the moon's line), and only the verb
   that names the product's whole thesis leans. */
.hero-copy h1 em {
  font-style: italic;
}

.hero-sub {
  font-size: var(--text-md);
  /* Same ink as the headline, one step smaller — size,
     not dimming, separates the promise from the mechanism. */
  color: var(--ink-pri);
  max-width: 54ch;
}

/* The trust line as the hero's eyebrow pill. The moon's crown sits against the nav, so the badge's
   corresponding place in this stack is between the moon and the headline, where
   it also bridges the two. A fact, not a flourish: system-ui at fact size, one
   hairline, and the one teal mark the instrument language allows where a state
   is asserted. No blur — the header is the page's only frosted surface. */
.hero-local {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(155, 170, 178, 0.3);
  border-radius: 999px;
  background: rgba(13, 10, 7, 0.42);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-pri);
}

.hero-local::before {
  content: "";
  flex: none;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--teal);
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-ter);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.hero-meta span {
  white-space: nowrap;
}

/* On a portrait screen the sky would scale to the full height and put a large moon
   behind the words. The sky keeps its own box, the top of the hero, and fades out
   into the ground under the copy, so the moon sits above the pill, not behind it. */
@media (max-aspect-ratio: 4 / 5) {
  /* The sky starts under the nav pill, not behind it, and fades in from the ground
     above, so the moon never slides under the nav. */
  .hero-sky,
  .hero-sky-gl {
    top: 4.5rem;
    height: min(60%, 112vw);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 58%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 58%, transparent 100%);
  }

  /* When the copy is taller than a short phone's screen the hero grows, and the copy
     starts at the top padding: keep that below the moon's disc. */
  .hero {
    padding-top: calc(4.5rem + 50vw);
  }
}

@media (max-width: 30rem) {
  .meta-sep {
    display: none;
  }

  .hero-actions .hero-status {
    order: 0;
  }

  .hero-actions .hero-film-link {
    order: 1;
  }

  .hero-meta > span:not(.meta-sep) {
    display: block;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
}

.button-lg {
  padding: 0.95rem 1.75rem;
  font-size: var(--text-base);
}

/* Until the offer opens, the hero says so right under its button, in the same words
   the offer uses. script.js hides it once the download is live. */
.hero-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* Under the button row on a wide screen, directly under the button on a phone. */
  order: 3;
  flex-basis: 100%;
  max-width: none;
  font-size: var(--text-sm);
  color: var(--ink-sec);
}

.hero-status::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink-ter);
}

.hero-status[hidden] {
  display: none;
}

/* The film is the second way in, so it is a quiet text link beside the one button,
   not a second button competing with it. */
.hero-film-link {
  color: var(--ink-pri);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 247, 248, 0.3);
  padding-bottom: 2px;
}

.hero-film-link:hover {
  color: var(--ink-pri);
  border-bottom-color: var(--ink-pri);
}

.hero-film-link span {
  color: var(--ink-ter);
  font-weight: 400;
}

/* ---------------------------------------------------------------- film

   The launch film's slot: a poster frame from the film itself and one play triangle at
   its centre, above the frame's own line of type. Without script the
   control is a link to the video file; with script the poster is replaced in place by
   the video, and nothing of it loads before that click. */

.film {
  position: relative;
  margin: 0 auto;
  max-width: 60rem;
  display: grid;
  gap: var(--space-4);
}

.film-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.film-frame > picture {
  display: contents;
}

.film-frame > img,
.film-frame > picture > img,
.film-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  background: var(--ground-deep);
}

.film-frame > video {
  object-fit: contain;
  background: #000;
}

.film-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(4.5rem, 11vw, 6.5rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  color: #ffffff;
  opacity: 0.92;
  transition: opacity 160ms var(--ease), scale 160ms var(--ease);
}

.film-play svg {
  width: 62%;
  height: 62%;
  fill: currentColor;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.55));
}

.film-play:hover {
  color: #ffffff;
  opacity: 1;
  scale: 1.06;
}

.film-play:focus-visible {
  outline: 2px solid var(--ink-pri);
  outline-offset: 2px;
  border-radius: 50%;
}

.film-len {
  margin-left: 0.35rem;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--ink-sec);
}

.film figcaption {
  font-size: var(--text-sm);
  color: var(--ink-ter);
  text-align: center;
  max-width: none;
}

/* The film's halo, in the same family as the capture halos. */
.film::before {
  content: "";
  position: absolute;
  inset: -14% -10%;
  pointer-events: none;
  background: radial-gradient(
    56% 50% at 50% 44%,
    rgba(52, 216, 196, 0.1),
    rgba(178, 108, 44, 0.05) 46%,
    transparent 72%
  );
}

@media (max-width: 34rem) {
  .film::before {
    inset: -14% 0;
  }
}

/* ---------------------------------------------------------------- sections */

.section {
  padding-block: var(--section-pad);
  scroll-margin-top: 5.5rem;
}

.section[data-band="raised"] {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse at 92% 22%, rgba(97, 119, 132, 0.025), transparent 54%),
    radial-gradient(ellipse at 8% 78%, rgba(139, 94, 49, 0.035), transparent 58%),
    var(--ground-raised);
  border-block: 1px solid var(--rule-soft);
}

.section[data-band="raised"] > .container {
  position: relative;
  z-index: 1;
}

.section-intro {
  display: grid;
  gap: var(--space-4);
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-intro-center {
  max-width: 40rem;
  justify-items: center;
  text-align: center;
  margin-inline: auto;
}

.section-intro h2 {
  font-size: var(--text-3xl);
}

.section-intro p {
  font-size: var(--text-md);
}


.notice-controls button {
  color: var(--ink-pri);
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
}

.notice-controls button:hover {
  background: rgba(243, 238, 229, 0.06);
}

.notice-controls button:active,
.button:active {
  transform: translateY(1px);
}

.film-status {
  font-size: var(--text-sm);
  color: var(--ink-sec);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.notice-exhibit {
  display: grid;
  justify-items: center;
  gap: var(--space-6);
  width: 100%;
  max-width: 60rem;
}

.notice-controls {
  display: inline-flex;
  gap: var(--space-2);
}

.notice-controls button[aria-pressed="true"] {
  background: rgba(52, 216, 196, 0.09);
  border-color: rgba(52, 216, 196, 0.45);
  color: var(--teal);
}

[hidden] {
  display: none !important;
}

/* Native 2240 × 1520 Rules capture. Desktop crop is x675, y170, 1370 × 1255. */
.shot-rules .pad {
  aspect-ratio: 1370 / 1255;
}

.shot-rules .pad > img {
  position: absolute;
  width: 163.503650%;
  max-width: none;
  left: -49.270073%;
  top: -13.545817%;
}

@media (max-width: 48rem) {
  .notice-capture {
    aspect-ratio: 1.12;
  }

  .notice-capture > img {
    position: absolute;
    width: 250%;
    max-width: none;
    left: -20%;
    top: -12%;
  }

  .shot-rules .pad {
    aspect-ratio: 1;
  }

  .shot-rules .pad > img {
    position: absolute;
    width: 145%;
    max-width: none;
    left: -33%;
    top: -5%;
  }

  .shot-home .pad {
    aspect-ratio: 1.15;
  }

  .shot-home .pad > img {
    position: absolute;
    width: 170%;
    max-width: none;
    left: -35%;
    top: -10%;
  }
}

/* ---------------------------------------------------------------- why

   Recognition first: one evening in three timestamps, the gap before the last one
   left as space. Then the no-fault line beside the founder's own note, in his voice
   and signed, set in the serif with no quote marks, photo or rating. */

.moment {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  max-width: none;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.moment h2 {
  font-size: var(--text-3xl);
}

.evening {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
}

.evening li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-4);
  align-items: baseline;
}

.evening time {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-ter);
  font-variant-numeric: tabular-nums;
}

.evening p {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--ink-pri);
}

/* The lost two hours are the space before the last line. */
.evening .evening-late {
  margin-top: clamp(1.75rem, 4vw, 3rem);
}

.why {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
}

.why-copy {
  display: grid;
  gap: var(--space-4);
  align-content: start;
  max-width: 34rem;
}

.why-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.why-copy p {
  font-size: var(--text-md);
  color: var(--ink-body);
}

.founder {
  margin: 0;
  display: grid;
  gap: var(--space-4);
  align-content: start;
  padding: var(--space-2) 0 var(--space-2) clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(191, 163, 129, 0.35);
}

.founder blockquote {
  margin: 0;
  display: grid;
  gap: var(--space-4);
}

.founder blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.08rem + 0.3vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-pri);
}

.founder figcaption {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-sec);
}

.founder figcaption::before {
  content: "";
  font-weight: 400;
}

@media (min-width: 60rem) {
  .moment {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }

  .moment h2 {
    max-width: 9ch;
  }

  .why {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  }
}

/* ---------------------------------------------------------------- how it works

   Three numbered steps, each a short claim beside the real screen that proves it.
   Side by side on a wide screen, alternating sides, so the eye runs claim → proof →
   claim; stacked, copy first, on a narrow one. */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(3.5rem, 8vw, 6.5rem);
}

.step {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: center;
}

.step-copy {
  display: grid;
  gap: var(--space-4);
  max-width: 34rem;
}

.step-num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(52, 216, 196, 0.35);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.step-copy h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.step-copy > p:not(.step-num) {
  font-size: var(--text-md);
}

/* The notice's three answers, named exactly as the app names them. */
.choices {
  margin: var(--space-2) 0 0;
  display: grid;
  border-top: 1px solid var(--rule-soft);
}

.choices > div {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--rule-soft);
}

.choices dt {
  font-weight: 600;
  color: var(--ink-pri);
}

.choices div:first-child dt {
  color: var(--teal);
}

.choices dd {
  margin: 0;
  font-size: var(--text-sm);
}

.shot {
  position: relative;
  margin: 0;
  width: 100%;
  display: grid;
  gap: var(--space-3);
}

.shot figcaption {
  font-size: var(--text-sm);
  color: var(--ink-ter);
  max-width: none;
}

/* Every capture sits in its own pool of moonlight — the halo behind each screenshot,
   in the page's own palette. The pad (positioned, later in paint order) covers the
   centre, so only the spill reads. */
.shot::before {
  content: "";
  position: absolute;
  inset: -14% -10%;
  pointer-events: none;
  background: radial-gradient(
    56% 50% at 50% 44%,
    rgba(52, 216, 196, 0.1),
    rgba(178, 108, 44, 0.05) 46%,
    transparent 72%
  );
}

/* Narrow screens: the figure nearly fills the viewport, so the halo bleeds vertically
   only — a sideways spill would open horizontal scroll. */
@media (max-width: 34rem) {
  .shot::before {
    inset: -14% 0;
  }
}

@media (min-width: 60rem) {
  .step {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .step.step-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .step:last-child:not(.step-stage) .step-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .step:last-child:not(.step-stage) .shot {
    grid-column: 1;
    grid-row: 1;
  }
}

/* The notice is the product's core moment, so it gets the full width: the claim
   centred above, the capture at reading size, the three answers in a row beneath. */
.step-stage {
  justify-items: center;
}

.step-stage .step-copy {
  justify-items: center;
  text-align: center;
  max-width: 40rem;
}

.shot-stage {
  max-width: 60rem;
}

.shot-stage figcaption {
  text-align: center;
}

.step-stage .choices {
  width: 100%;
  max-width: 60rem;
  margin: 0;
}

@media (min-width: 48rem) {
  .step-stage .choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
    border-top: 0;
  }

  .step-stage .choices > div {
    border-bottom: 0;
    border-top: 1px solid var(--rule);
    padding-top: var(--space-4);
  }
}

/* An app string quoted as the step's definition. */
.app-quote {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--ink-pri);
}

/* ---------------------------------------------------------------- privacy ledger */

.privacy {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.shot-strip {
  max-width: 52rem;
}

.section-link {
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ---------------------------------------------------------------- ledgers */

.ledger {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--rule-soft);
}

.ledger > div {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--rule-soft);
}

.ledger dt {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-pri);
}

.ledger dd {
  margin: 0;
  font-size: var(--text-base);
  color: var(--ink-body);
  max-width: var(--measure);
}

@media (min-width: 46rem) {
  .ledger > div {
    grid-template-columns: 16rem 1fr;
    gap: var(--space-8);
    align-items: baseline;
  }
}

/* ---------------------------------------------------------------- questions

   Answers are on the page, not behind disclosure triangles: a sceptic scanning for
   "what's the catch" should find every answer without a click. */

.qa {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--rule-soft);
}

.qa > div {
  display: grid;
  gap: var(--space-2);
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--rule-soft);
}

.qa dt {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.3;
  color: var(--ink-pri);
}

.qa dd {
  color: var(--ink-body);
  margin: 0;
  max-width: var(--measure);
}

.qa dd > p {
  max-width: none;
}

.fit {
  margin: 0 0 var(--space-4);
  display: grid;
  max-width: 30rem;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(242, 247, 248, 0.03);
}

.fit > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-2);
  font-size: var(--text-sm);
}

.fit > div + div {
  border-top: 1px solid var(--rule-soft);
}

.qa .fit dt {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--ink-ter);
  white-space: nowrap;
}

.qa .fit dd {
  margin: 0;
  color: var(--ink-pri);
  text-align: right;
}

.qa dd .text-link {
  margin-left: 0.3rem;
  white-space: nowrap;
}

@media (min-width: 52rem) {
  .qa > div {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-8);
    align-items: baseline;
  }
}

/* ---------------------------------------------------------------- offer

   The close echoes the opening: one quiet pool of moonlight behind the offer, the
   same warm light the sky carries at night, so the page ends where the app lives. */

.offer {
  position: relative;
  overflow: clip;
}

.offer-pool {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    56% 42% at 50% 26%,
    rgba(229, 192, 138, 0.075),
    rgba(229, 192, 138, 0.022) 52%,
    transparent 76%
  );
}

.offer .container {
  position: relative;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  justify-items: center;
  text-align: center;
}

.offer-headline {
  display: grid;
  gap: var(--space-4);
  justify-items: center;
}

.offer-headline h2 {
  font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.2rem);
}

.offer-then {
  font-size: var(--text-lg);
  color: var(--ink-sec);
}

.offer-action {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
}

.offer-action p {
  font-size: var(--text-sm);
  color: var(--ink-ter);
}

.offer-action p[hidden] {
  display: none;
}

.offer-facts {
  list-style: none;
  margin: 0;
  padding: var(--space-6) 0 0;
  border-top: 1px solid var(--rule-soft);
  display: grid;
  gap: var(--space-3) var(--space-8);
  width: 100%;
  max-width: 44rem;
  text-align: left;
  font-size: var(--text-sm);
}

.offer-facts li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: var(--space-2);
  color: var(--ink-sec);
}

.offer-facts li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--teal);
}

.offer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
}

.offer-links a {
  color: var(--ink-sec);
}

.offer-links a:hover {
  color: var(--ink-pri);
}

@media (max-width: 48rem) {
  .offer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: fit-content;
    margin-inline: auto;
  }
}

@media (min-width: 40rem) {
  .offer-facts {
    grid-template-columns: 1fr 1fr;
  }
}

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

.site-footer {
  border-top: 1px solid var(--rule-soft);
  background: var(--ground-deep);
  padding-block: var(--space-12);
}

.site-footer .container {
  display: grid;
  gap: var(--space-6);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
}

.site-footer nav a {
  color: var(--ink-sec);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--ink-pri);
}

/* ---------------------------------------------------------------- legal and
   secondary pages — same chrome, same ground, same type. */

.legal-body {
  min-height: 100vh;
  background: var(--ground);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule-soft);
}

.back-link {
  font-size: var(--text-sm);
  color: var(--ink-sec);
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink-pri);
}

.draft-banner {
  margin: 0;
  padding: var(--space-3) clamp(1.25rem, 4vw, 3rem);
  background: rgba(52, 216, 196, 0.07);
  border-bottom: 1px solid var(--rule-soft);
  font-size: var(--text-sm);
  color: var(--ink-sec);
  max-width: none;
}

.legal-main {
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) var(--space-16);
  display: grid;
  gap: var(--space-8);
}

.legal-main h1 {
  font-size: var(--text-2xl);
}

.legal-lede {
  font-size: var(--text-md);
  color: var(--ink-sec);
  max-width: none;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
  color: var(--ink-ter);
  padding-block: var(--space-3);
  border-block: 1px solid var(--rule-soft);
}

.legal-section {
  display: grid;
  gap: var(--space-4);
}

.legal-section h2 {
  font-size: var(--text-lg);
}

.legal-section p,
.legal-section li {
  max-width: none;
  color: var(--ink-sec);
}

.legal-section ul,
.legal-section ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: var(--space-2);
}

.article-main,
.article-main .legal-section {
  min-width: 0;
}

.article-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.article-table {
  min-width: 36rem;
}

.article-scroll-cue {
  display: none;
}

.article-figure {
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.article-figure img {
  width: 100%;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
}

.article-figure figcaption {
  font-size: var(--text-sm);
  color: var(--ink-ter);
}

.article-capture-inspection {
  min-width: 0;
  max-width: 100%;
}

.article-capture {
  display: block;
}

@media (max-width: 30rem) {
  .article-scroll-cue {
    display: block;
    color: var(--ink-pri);
    font-size: var(--text-sm);
  }

  .article-capture-inspection {
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .article-capture {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rule-soft);
    border-radius: var(--radius);
  }

  .article-capture > img {
    position: absolute;
    max-width: none;
    border: 0;
    border-radius: 0;
  }

  /* Keep the native Rules labels readable; its complete switch rows can be swiped. */
  .article-capture--rules {
    width: 42rem;
    aspect-ratio: 1340 / 1100;
  }

  .article-capture--rules > img {
    width: 167.164179%;
    left: -51.865672%;
    top: -16.363636%;
  }

  /* Native notice crop x440,y660,960×800 retains the heading and every choice. */
  .article-capture--notice {
    aspect-ratio: 960 / 800;
  }

  .article-capture--notice > img {
    width: 360%;
    left: -45.833333%;
    top: -82.5%;
  }

  /* Native Home crop x700,y140,880×680 includes the moon and its start prompt. */
  .article-capture--home {
    aspect-ratio: 880 / 680;
  }

  .article-capture--home > img {
    width: 254.545455%;
    left: -79.545455%;
    top: -20.588235%;
  }
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.status-table th,
.status-table td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: 1px solid var(--rule-soft);
}

.status-table th {
  color: var(--ink-pri);
  font-weight: 600;
}

.status-table td {
  color: var(--ink-sec);
}

.review-needed {
  color: var(--ink-pri);
}

.beta-state {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-ter);
}

.beta-state span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.success-locked,
.success-ready {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  padding: var(--space-8);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-pad);
  background: var(--ground-raised);
}

.checksum {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--text-sm);
  color: var(--ink-sec);
  word-break: break-all;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-8) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--rule-soft);
  font-size: var(--text-sm);
  color: var(--ink-ter);
}

.legal-footer a {
  color: var(--ink-sec);
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--ink-pri);
}

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

@media (max-width: 48rem) {
  .nav-toggle {
    display: none;
    order: 2;
  }

  .primary-nav {
    display: grid;
    width: 100%;
    grid-auto-flow: row;
    gap: var(--space-3);
    order: 4;
  }

  /* The pill keeps its shape on one row and softens into a rounded panel when the
     links are on the page under it. */
  .site-header {
    flex-wrap: wrap;
    gap: var(--space-3);
    border-radius: 1.4rem;
  }

  /* On a phone the pill is narrower than the screen: a band of ground behind it, so
     scrolled text never shows cut off on either side of the nav. */
  body.workroom-page::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 5.25rem;
    z-index: 39;
    pointer-events: none;
    background: linear-gradient(to bottom, rgb(13, 10, 7) 0%, rgba(13, 10, 7, 0.94) 70%, rgba(13, 10, 7, 0) 100%);
  }

  .nav-cta {
    order: 3;
  }

  /* With JavaScript the nav collapses behind its button; without it the links stay
     on the page rather than becoming unreachable. */
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .primary-nav {
    display: none;
  }

  .js .primary-nav[data-open="true"] {
    display: grid;
    padding-top: var(--space-3);
    border-top: 1px solid var(--rule-soft);
  }

  .hero-copy h1 {
    max-width: 22ch;
  }

}

@media (max-width: 24rem) {
  .hero-actions .button {
    width: 100%;
  }

  .hero-meta {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  /* At 320 the pill tightens rather than stacks: the icon, the menu and the CTA still
     read as one row, which is the whole point of a pill. */
  .site-header {
    gap: 0.35rem;
    padding: 0.35rem 0.35rem 0.35rem 0.45rem;
  }

  .nav-cta {
    padding: 0.45rem 0.8rem;
  }

  .nav-toggle {
    padding: var(--space-2);
  }
}

/* Under 480 the pill keeps the app's icon and drops the wordmark: the icon IS the mark,
   and the row it saves is what keeps the menu and the CTA beside it instead of stacked
   under it. */
@media (max-width: 30rem) {
  .site-header .brand-name {
    display: none;
  }
}

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

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

  .hero-sky-gl {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-delay: 0s !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------- website analytics note */

.analytics-note {
  margin: 0;
  flex-basis: 100%;
  font-size: var(--text-xs);
  color: var(--ink-ter);
}

.analytics-toggle {
  margin-left: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink-sec);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.analytics-toggle:hover {
  color: var(--ink-pri);
}
