/* MAC Terminal landing page.
   The Fey look, back on the founder's call (2026-10-08): "all the look, the
   visuals, that's what I liked about the fey version." Graphite and bone, the
   app's own palette, so the site and the terminal read as one thing. Not flat
   black (founder, 2026-09-29): the dark has depth, a lit top, a vignette and
   raised graphite slabs, and the product sits on deep shadows under one soft
   light. The copy stays short. Every picture is a capture of the app on real
   data (scripts/capture-landing.mjs). Chartreuse is reserved for the trial and
   for pointing at the panel being described. */

:root {
  --ink: #060708;
  --ink-2: #0c0d10;
  --bg: #0b0c0f;
  --graphite: #121419;
  --graphite-2: #181b21;
  --bone: #ece9e1;
  --bone-2: #e4e0d6;
  --bone-ink: #101114;
  --bone-ink-2: #34363b;
  --ash: #9a9ea5;
  --rule: rgba(236, 233, 225, 0.1);
  --rule-strong: rgba(236, 233, 225, 0.14);
  --accent: #e6e7a3;
  --accent-hover: #d6d876;
  --accent-rgb: 230, 231, 163;
  --up: #4ebe96;
  --warming: #d88036;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1240px;
  --gutter: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --deep: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 50px 120px -30px rgba(0, 0, 0, 0.9);
  --slab: linear-gradient(180deg, #15171c 0%, #0e0f13 100%);
  color-scheme: dark;
}

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

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

/* Graphite, lit from above, never a flat black. */
body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(90% 1100px at 50% -160px, rgba(236, 233, 225, 0.075), rgba(236, 233, 225, 0) 70%),
    linear-gradient(180deg, #111217 0, var(--bg) 1100px);
  background-repeat: no-repeat;
  color: var(--bone);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A vignette on the room, behind everything on the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(130% 95% at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.42) 100%);
  pointer-events: none;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}

.display .line { display: block; }

/* Bone type with a little light falling down each line. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .display .line,
  .hero .word {
    background: linear-gradient(180deg, #f6f3ec 0%, var(--bone) 48%, #b7b4ac 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* The clip ends at the box; let it reach the descenders. */
    padding-bottom: 0.16em;
    margin-bottom: -0.16em;
  }

  .hero .line.is-split { background: none; -webkit-text-fill-color: currentColor; }
}

.section-title { font-size: clamp(2.5rem, 5.2vw, 4.6rem); }

/* ── Buttons ─────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15.5px/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.3s var(--ease), transform 0.2s var(--ease);
}

/* The trial, and the brief: the one chartreuse fill on the page. */
.button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0c0e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 32px -14px rgba(var(--accent-rgb), 0.55);
}

.button--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 16px 40px -14px rgba(var(--accent-rgb), 0.7);
}

.button:active { transform: translateY(1px); }

/* ── Header ──────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  height: 62px;
  margin: 0 auto;
  padding: 0 7px 0 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(12, 13, 16, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule-strong);
  border-radius: 9px;
  background: linear-gradient(180deg, #1d2026, #121419);
  color: var(--bone);
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a:not(.button) {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--ash);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-links a:not(.button):hover { color: var(--bone); background: rgba(236, 233, 225, 0.06); }

.nav-trial { margin-left: 6px; padding: 0 20px; font-size: 14.5px; }

.nav-menu {
  display: none;
  place-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(236, 233, 225, 0.06);
  cursor: pointer;
}

.nav-menu span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--bone);
  transition: transform 0.25s var(--ease);
}

.nav-menu[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-menu[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-navigation {
  display: grid;
  gap: 4px;
  max-width: var(--wrap);
  margin: 8px auto 0;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: rgba(12, 13, 16, 0.94);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.mobile-navigation[hidden] { display: none; }

.mobile-navigation a:not(.button) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--bone);
  font-size: 16px;
  text-decoration: none;
}

.mobile-navigation .button { margin-top: 6px; }

/* ── Hero ────────────────────────────────────────────────── */

.hero { padding: clamp(132px, 19vh, 188px) 0 clamp(80px, 11vh, 128px); }

.hero .display { font-size: clamp(3.4rem, 8.6vw, 8.4rem); }

.hero-side { --d: 0.4s; margin-top: clamp(22px, 3vh, 34px); }

.lede {
  max-width: 34em;
  margin: 0;
  color: var(--ash);
  font-size: clamp(1.18rem, 1.6vw, 1.4rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}

.hero-actions p { margin: 0; color: var(--ash); font-size: 14.5px; }

.hero-stage {
  position: relative;
  margin-top: clamp(56px, 8vh, 88px);
  perspective: 1800px;
}

/* One light behind the product, the way a studio lights an object. */
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 2% 10% auto;
  height: 72%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.15), transparent);
  filter: blur(48px);
  pointer-events: none;
}

/* The product: a dark screen on a deep shadow. */
.screen,
.frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  background: #0b0b0f;
  box-shadow: var(--deep);
}

.screen > img,
.frame img { width: 100%; }

.hero-frame {
  border-radius: 18px;
  transform-origin: 50% 0;
  transform: rotateX(calc(var(--tilt, 0) * 1deg)) scale(calc(1 - var(--shrink, 0)));
  will-change: transform;
}

/* Tilted from the first paint, so landing.js picks it up without a jump;
   flat for phones, reduced motion and a page without its script. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js .hero-frame { --tilt: 12; --shrink: 0.045; }
}

/* ── Top down: the camera over the Cockpit ──────────────── */

.steps { padding: clamp(40px, 6vh, 72px) 0 clamp(96px, 13vh, 150px); }

.story-copy .section-title { margin-bottom: clamp(40px, 6vh, 64px); }

/* Without the camera (phones, reduced motion, no script): four reads, each
   with the app's own phone panel. */
.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step { display: flex; flex-direction: column; min-width: 0; }

.phone {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 24px;
  background: #0b0b0f;
  box-shadow: var(--deep);
}

.phone img {
  width: 100%;
  max-height: 100%;
  border-radius: 14px;
  object-fit: cover;
  object-position: top;
}

.step h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 26px 0 8px;
  color: var(--bone);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.step-num {
  flex: none;
  min-width: 14px;
  color: var(--ash);
  font: 500 14px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  transition: color 0.5s var(--ease);
}

.step p { margin: 0; color: var(--ash); line-height: 1.5; }

.story-stage { display: none; }

/* With the camera: the reads scroll by on the left while the Cockpit holds
   still on the right and frames the panel each one describes. */
@media (min-width: 901px) {
  .has-camera .story-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
  }

  .has-camera .steps { padding-bottom: clamp(24px, 4vh, 48px); }

  /* The title sits beside the stage, so the Cockpit is in view from the
     section's first line. */
  .has-camera .story-copy { padding-top: clamp(64px, 12vh, 120px); }
  .has-camera .story-copy .section-title { margin-bottom: 0; }
  .has-camera .step-list { display: block; }

  .has-camera .step {
    justify-content: center;
    min-height: 74vh;
    padding: 24px 0;
    opacity: 0.36;
    transition: opacity 0.5s var(--ease);
  }

  .has-camera .step:first-child { min-height: 64vh; }
  .has-camera .step.is-active { opacity: 1; }
  .has-camera .step .phone { display: none; }

  .has-camera .step h3 {
    gap: 16px;
    margin: 0;
    font-size: clamp(2.1rem, 3.1vw, 2.9rem);
    line-height: 1.05;
  }

  .has-camera .step-num { font-size: 15px; }
  .has-camera .step.is-active .step-num { color: var(--accent); }

  .has-camera .step p {
    max-width: 24em;
    margin: 18px 0 0 30px;
    font-size: 1.12rem;
    line-height: 1.55;
  }

  .has-camera .story-stage {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    height: 100vh;
    padding-top: 48px;
  }
}

.story-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
}

/* The light behind the stage, as behind the hero. */
.story-stage::before {
  content: "";
  position: absolute;
  inset: 22% 8%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.09), transparent);
  filter: blur(48px);
  pointer-events: none;
}

.story-camera {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  transform: translate(var(--tx, 0%), var(--ty, 0%)) scale(var(--s, 1));
  transition: transform 1.1s var(--ease);
}

.story-camera img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The panel being described stays lit; the rest of the Cockpit steps back. */
.story-spot {
  position: absolute;
  left: var(--sx, 0%);
  top: var(--sy, 0%);
  width: var(--sw, 100%);
  height: var(--sh, 100%);
  border-radius: calc(6px / var(--s, 1));
  box-shadow:
    0 0 0 calc(1.5px / var(--s, 1)) rgba(var(--accent-rgb), 0.8),
    0 0 calc(24px / var(--s, 1)) 0 rgba(var(--accent-rgb), 0.18),
    0 0 0 200vmax rgba(6, 7, 8, 0.6);
  opacity: 0;
  transition: opacity 0.6s var(--ease), left 1.1s var(--ease), top 1.1s var(--ease), width 1.1s var(--ease), height 1.1s var(--ease);
  pointer-events: none;
}

.story-camera.is-framed .story-spot { opacity: 1; }

/* ── The tour: one minute on live data ───────────────────── */

.tour { padding: clamp(72px, 10vh, 120px) 0 clamp(40px, 6vh, 72px); }
.tour .section-title { margin-bottom: clamp(28px, 4vh, 44px); }
.tour-frame { aspect-ratio: 16 / 9; max-width: 100%; }
.tour-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0b0b0f; }
.tour-script { max-width: 46rem; margin-top: 22px; color: var(--ash); font-size: 0.98rem; line-height: 1.6; }
.tour-script summary { cursor: pointer; color: var(--bone); font-weight: 500; width: fit-content; }
.tour-script summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.tour-script p { margin: 10px 0 0; }

/* ── The Market Map, on a raised slab ────────────────────── */

.stage {
  position: relative;
  margin: 0 12px;
  padding: clamp(88px, 12vh, 140px) 0;
  border: 1px solid rgba(236, 233, 225, 0.07);
  border-radius: 32px;
  background:
    radial-gradient(70% 520px at 50% 0, rgba(236, 233, 225, 0.06), rgba(236, 233, 225, 0) 75%),
    var(--slab);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 60px 120px -60px rgba(0, 0, 0, 0.9);
}

.stage-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 20px 48px;
  margin-bottom: clamp(40px, 6vh, 64px);
}

.stage-head p {
  max-width: 26em;
  margin: 0;
  color: var(--ash);
  font-size: 1.2rem;
  line-height: 1.5;
}

.stage-caption {
  margin: 64px 0 22px;
  color: var(--bone);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.02em;
}

/* ── The rest of the desk ───────────────────────────────── */

.desk { padding: clamp(96px, 13vh, 150px) 0; }

.desk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 6vh, 64px);
  border-top: 1px solid var(--rule);
}

.desk-tool {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 40px 32px 0;
  border-left: 1px solid var(--rule);
}

.desk-tool:first-child { padding-left: 0; border-left: 0; }
.desk-tool:last-child { padding-right: 0; }
.desk-tool:nth-child(2) { --d: 0.12s; }
.desk-tool:nth-child(3) { --d: 0.24s; }

.desk-tool > :first-child { height: 380px; }

.desk-tool h3 {
  margin: 32px 0 10px;
  color: var(--bone);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.desk-tool > p { margin: 0; color: var(--ash); line-height: 1.55; }

.desk-shot > img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.sizing,
.journal-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--slab);
  color: var(--bone);
}

.sizing { padding: 28px; }

.sizing-title {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.sizing dl { display: grid; gap: 0; margin: 0; }

.sizing dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
}

.sizing dt { color: var(--ash); font-size: 14.5px; }

.sizing dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.sizing .is-total dd { color: var(--accent); }

.journal-list {
  margin: 0;
  padding: 12px 28px;
  list-style: none;
}

.journal-list li {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-size: 1.02rem;
}

.journal-list li:first-child { border-top: 0; }

/* ── Who it is for: the one light card ──────────────────── */

.who {
  margin: 0 12px;
  padding: clamp(80px, 11vh, 128px) 0;
  border-radius: 32px;
  background: linear-gradient(180deg, #f1eee6 0%, var(--bone-2) 100%);
  color: var(--bone-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 60px 120px -50px rgba(0, 0, 0, 0.85);
}

.who-grid { display: grid; gap: 36px; }

.who .section-title { font-size: clamp(2.2rem, 4.4vw, 4rem); }

.who .display .line {
  background: none;
  color: var(--bone-ink);
  -webkit-text-fill-color: currentColor;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 10px 16px;
  border: 1px solid rgba(16, 17, 20, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--bone-ink-2);
  font-size: 15px;
  font-weight: 500;
}

/* ── Pricing ────────────────────────────────────────────── */

.pricing-section {
  padding: clamp(112px, 15vh, 170px) 0 clamp(96px, 13vh, 150px);
  outline: none;
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: center;
  gap: 48px 72px;
}

.pricing-copy p {
  margin: 22px 0 0;
  color: var(--ash);
  font-size: 1.2rem;
}

.pricing-card {
  position: relative;
  z-index: 1;
  padding: 34px;
  border: 1px solid var(--rule-strong);
  border-radius: 26px;
  background: linear-gradient(180deg, #181a20 0%, #111317 100%);
  box-shadow: var(--deep);
}

/* The trial is the light in this room. */
@media (min-width: 1001px) {
  .pricing-grid { position: relative; }

  .pricing-grid::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 560px;
    height: 680px;
    transform: translate(40px, -50%);
    background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.1), transparent);
    filter: blur(40px);
    pointer-events: none;
  }
}

.pricing-badge {
  position: absolute;
  top: 26px;
  right: 26px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.pricing-card-head p { margin: 0; color: var(--ash); font-weight: 500; }

.pricing-card-head .pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 6px;
  color: var(--bone);
}

.pricing-price strong {
  font-family: var(--serif);
  font-size: 4.2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-price span,
.pricing-card-head > span { color: var(--ash); font-size: 14.5px; }

.pricing-features {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.pricing-features li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  color: var(--ash);
  font-size: 15px;
  line-height: 1.5;
}

.pricing-features li > span:first-child { color: var(--accent); font-weight: 600; }
.pricing-features b { color: var(--bone); font-weight: 600; }

.pricing-actions .button { width: 100%; }

.pricing-note {
  margin: 16px 0 0;
  color: var(--ash);
  font-size: 13px;
  line-height: 1.55;
}

/* ── Questions ──────────────────────────────────────────── */

.faq { padding: clamp(72px, 10vh, 120px) 0 clamp(96px, 13vh, 150px); }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 32px 72px;
  align-items: start;
}

.faq-list { border-top: 1px solid var(--rule); }

.faq-list details { border-bottom: 1px solid var(--rule); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 16px 0;
  color: var(--bone);
  font-size: 1.15rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  flex: none;
  color: var(--ash);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.faq-list details[open] summary::after { content: "\2212"; }

.faq-list details p {
  max-width: 34em;
  margin: 0;
  padding: 0 0 22px;
  color: var(--ash);
  line-height: 1.55;
}

/* ── The brief and the footer: one raised slab to close ─── */

.brief,
.site-footer {
  margin: 0 12px;
  background: var(--graphite);
  color: var(--bone);
}

.brief {
  padding: clamp(72px, 10vh, 112px) 0 clamp(56px, 8vh, 88px);
  border: 1px solid rgba(236, 233, 225, 0.07);
  border-bottom: 0;
  border-radius: 32px 32px 0 0;
  background:
    radial-gradient(60% 420px at 50% 0, rgba(236, 233, 225, 0.06), rgba(236, 233, 225, 0) 75%),
    var(--graphite);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  align-items: center;
  gap: 32px 64px;
}

.brief h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brief-copy p { margin: 12px 0 0; color: var(--ash); font-size: 1.1rem; }

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

.brief-form > div { display: flex; gap: 10px; }

.brief-form input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(236, 233, 225, 0.16);
  border-radius: 999px;
  background: var(--ink-2);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
  color: var(--bone);
  font: 500 15.5px var(--sans);
}

.brief-form input::placeholder { color: #7a7e85; }
.brief-form input:focus-visible { outline-offset: 2px; }

.brief-status { min-height: 1.5em; margin: 10px 0 0 20px; color: var(--ash); font-size: 14px; }
.brief-status[data-tone="good"] { color: var(--up); }
.brief-status[data-tone="warn"] { color: var(--warming); }

.site-footer {
  margin-bottom: 12px;
  padding: 8px 0 44px;
  border: 1px solid rgba(236, 233, 225, 0.07);
  border-top: 0;
  border-radius: 0 0 32px 32px;
  color: var(--ash);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}

/* The page closes on the name, set large and barely lit. */
.wordmark {
  margin: 0 0 12px -0.03em;
  color: #2b2d32;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 13.4vw, 12rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .wordmark {
    background: linear-gradient(180deg, rgba(236, 233, 225, 0.2) 0%, rgba(236, 233, 225, 0.03) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.footer-line { margin: 0; color: var(--bone); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ash);
  text-decoration: none;
}

.footer-links a:hover { color: var(--bone); }
.footer-legal { margin: 0; font-size: 13px; }

@media (forced-colors: active) {
  .display .line,
  .hero .word,
  .wordmark { background: none; -webkit-text-fill-color: currentColor; }
}

/* ── Motion ─────────────────────────────────────────────────
   One orchestrated moment on load (the hero's words, then its line, then the
   light behind the Cockpit) and two replies to scrolling: the Cockpit leveling
   out, and the camera framing each panel of the top-down read. Headlines and
   blocks further down rise once when they arrive. Nothing loops, so there is
   nothing to pause. */

.js .hero [data-lines] .line,
.motion [data-lines] .line {
  opacity: 0;
  transform: translateY(0.42em);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}

/* landing.js splits the hero's one line into its three words, which rise
   one after another. */
.hero .word { display: inline-block; }

.js .hero [data-lines] .line.is-split { opacity: 1; transform: none; }

.js .hero [data-lines] .word {
  opacity: 0;
  transform: translateY(0.42em);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}

.js .hero [data-rise],
.motion [data-rise] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-lines].is-in .line,
.js [data-lines].is-in .word,
.js [data-rise].is-in {
  opacity: 1;
  transform: none;
}

/* If the script never runs, the hero shows itself anyway. */
.js .hero [data-lines]:not(.is-in) .line,
.js .hero [data-rise]:not(.is-in) { animation: reveal-anyway 0s 2.4s forwards; }

.js .hero [data-lines]:not(.is-in) .word { animation: reveal-anyway 0s 2.4s forwards; }

@keyframes reveal-anyway { to { opacity: 1; transform: none; } }

/* The light behind the Cockpit comes up once the words are in. */
@media (prefers-reduced-motion: no-preference) {
  .hero-stage::before { animation: light-up 1.8s var(--ease) 0.35s both; }
}

@keyframes light-up { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero [data-lines] .line,
  .js .hero [data-lines] .word,
  .js .hero [data-rise],
  .motion [data-lines] .line,
  .motion [data-rise] { opacity: 1; transform: none; transition: none; animation: none; }
  .story-camera,
  .story-spot,
  .step,
  .step-num { transition: none; }
}

/* ── Narrow screens ─────────────────────────────────────── */

@media (max-width: 1100px) {
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
}

@media (max-width: 1000px) {
  .desk-grid { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .desk-tool,
  .desk-tool:first-child,
  .desk-tool:last-child { padding: 40px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .desk-tool + .desk-tool { margin-top: 40px; }
  .desk-tool > :first-child { height: auto; }
  .desk-tool > .desk-shot { height: 420px; }
  .pricing-grid,
  .brief-grid,
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .stage-head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-menu { display: grid; }
  .hero { padding-top: 128px; }
  .hero-actions .button { width: 100%; }
  .stage,
  .who,
  .brief,
  .site-footer { margin-inline: 8px; }
  .stage,
  .who { border-radius: 24px; }
  .brief { border-radius: 24px 24px 0 0; }
  .site-footer { border-radius: 0 0 24px 24px; margin-bottom: 8px; }
  .stage-caption { margin-top: 40px; }
}

@media (max-width: 640px) {
  .step-list { grid-template-columns: minmax(0, 1fr); }
  /* One column: each phone hugs its panel instead of sharing a height. */
  .phone { aspect-ratio: auto; }
  .phone img { max-height: 520px; }
  .who .display .line { display: inline; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .brand { min-height: 44px; }
  .nav-menu { width: 44px; height: 44px; }
  .site-nav { height: 58px; }
  .pricing-card { padding: 26px 22px; }
  .pricing-badge { position: static; display: inline-block; margin-bottom: 18px; }
  .brief-form > div { flex-direction: column; }
  .footer-links a { min-width: 44px; min-height: 44px; }
}
