/* ==========================================================================
   Compass — styles
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License — see /fonts/LICENSE.txt).
   Newsreader only renders our own copy, so it is subset to the characters that copy uses. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/fonts/newsreader.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00B7, U+00D7, U+00E9, U+2013-2014, U+2018-201D, U+2022, U+2026, U+2032-2033;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00B7, U+00D7, U+00E9, U+2013-2014, U+2018-201D, U+2022, U+2026, U+2032-2033;
}

:root {
  --paper: #f5f3ee;
  --paper-deep: #ece9e2;
  --surface: #fbfaf7;
  --ink: #161513;
  --ink-2: #47453f;
  --ink-3: #6b6862;
  --rule: rgba(22, 21, 19, 0.12);
  --rule-strong: rgba(22, 21, 19, 0.24);
  --control: #86837d; /* form control borders: ≥3:1 against every light surface */
  --accent: #b5462b;

  --night: #121210;
  --night-2: #1c1b19;
  --on-night: #f3f1eb;
  --on-night-2: #aeaaa1;
  --on-night-3: #8a867e;
  --night-rule: rgba(243, 241, 235, 0.14);
  --accent-night: #e27a5c;

  --error: #a3321f;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1160px;
  --section-space: clamp(96px, 14vw, 180px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --needle-north: var(--accent);
  --needle-south: currentColor;

  color-scheme: light;
}

/* --- Base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

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

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.needle-north { fill: var(--needle-north); }
.needle-south { fill: var(--needle-south); }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* --- Type ---------------------------------------------------------------- */

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
  text-wrap: balance;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-lede {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.section { padding-block: var(--section-space); }
.section-head { max-width: 760px; margin-bottom: clamp(56px, 8vw, 96px); }

/* --- Buttons ------------------------------------------------------------- */

.button {
  --button-bg: transparent;
  --button-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.button:active { transform: scale(0.98); }

.button--primary { --button-bg: var(--ink); --button-fg: var(--paper); }

.button--quiet { padding-inline: 12px; }
.button--quiet .arrow { transition: transform 0.3s var(--ease); }

.button--outline { border-color: var(--rule-strong); }

@media (hover: hover) {
  .button--primary:hover { --button-bg: #2e2c28; }
  .button--quiet:hover .arrow { transform: translateX(3px); }
  .button--outline:hover { border-color: var(--ink); }
}

.button--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.button--wide { width: 100%; }

/* Shiny CTA: a light that travels around the border (port of ShinyButton).
   @property lets the gradient's angle, width and colour animate; without it
   the button simply shows a static edge. */
@property --shine-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --shine-offset { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --shine-percent { syntax: "<percentage>"; initial-value: 6%; inherits: false; }
@property --shine-color { syntax: "<color>"; initial-value: #ffffff; inherits: false; }

.button--shiny {
  --shine-fill: var(--ink);
  --shine-inset: #2c2a26;
  --shine-accent: var(--accent);
  --shine-accent-soft: var(--accent-night);
  --shine-duration: 4s;
  --shine-ease: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--shine-fill), var(--shine-fill)) padding-box,
    conic-gradient(
      from calc(var(--shine-angle) - var(--shine-offset)),
      transparent,
      var(--shine-accent) var(--shine-percent),
      var(--shine-color) calc(var(--shine-percent) * 2),
      var(--shine-accent) calc(var(--shine-percent) * 3),
      transparent calc(var(--shine-percent) * 4)
    ) border-box;
  box-shadow: inset 0 0 0 1px var(--shine-inset);
  transition:
    --shine-offset var(--shine-ease),
    --shine-percent var(--shine-ease),
    --shine-color var(--shine-ease),
    transform 0.25s var(--ease);
}
.button--shiny::before,
.button--shiny::after,
.button--shiny > span::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  z-index: -1;
  pointer-events: none;
}
/* Fine speckle that follows the light. */
.button--shiny::before {
  --size: calc(100% - 6px);
  width: var(--size);
  height: var(--size);
  border-radius: inherit;
  background: radial-gradient(circle at 2px 2px, #fff 0.5px, transparent 0) padding-box;
  background-size: 4px 4px;
  background-repeat: space;
  -webkit-mask-image: conic-gradient(from calc(var(--shine-angle) + 45deg), #000, transparent 10% 90%, #000);
  mask-image: conic-gradient(from calc(var(--shine-angle) + 45deg), #000, transparent 10% 90%, #000);
  opacity: 0.35;
}
/* Soft sheen that turns inside the button. */
.button--shiny::after {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, var(--shine-accent), transparent);
  -webkit-mask-image: radial-gradient(circle at bottom, transparent 40%, #000);
  mask-image: radial-gradient(circle at bottom, transparent 40%, #000);
  opacity: 0.45;
}
.button--shiny > span { position: relative; z-index: 1; }
/* Warm glow that breathes on hover and focus. */
.button--shiny > span::before {
  --size: calc(100% + 1rem);
  width: var(--size);
  height: var(--size);
  box-shadow: inset 0 -1ex 2rem 4px var(--shine-accent);
  opacity: 0;
  transition: opacity var(--shine-ease);
}
.button--shiny:is(:hover, :focus-visible) {
  --shine-percent: 20%;
  --shine-offset: 95deg;
  --shine-color: var(--shine-accent-soft);
}
.button--shiny:is(:hover, :focus-visible) > span::before { opacity: 0.55; }

@media (prefers-reduced-motion: no-preference) {
  .button--shiny,
  .button--shiny::before {
    animation:
      shine-angle var(--shine-duration) linear infinite,
      shine-angle calc(var(--shine-duration) / 0.4) linear infinite reverse paused;
    animation-composition: add;
  }
  .button--shiny::after {
    animation:
      shine-turn var(--shine-duration) linear infinite,
      shine-turn calc(var(--shine-duration) / 0.4) linear infinite reverse paused;
    animation-composition: add;
  }
  .button--shiny > span::before { animation: shine-breathe calc(var(--shine-duration) * 1.5) linear infinite; }
  .button--shiny:is(:hover, :focus-visible),
  .button--shiny:is(:hover, :focus-visible)::before,
  .button--shiny:is(:hover, :focus-visible)::after { animation-play-state: running; }
}
@media (prefers-reduced-motion: reduce) {
  /* Without the moving light, the sheen and speckle read as stray marks. */
  .button--shiny::before,
  .button--shiny::after { display: none; }
  .button--shiny:not(:hover, :focus-visible) { --shine-percent: 0%; }
}
@keyframes shine-angle { to { --shine-angle: 360deg; } }
@keyframes shine-turn { to { rotate: 360deg; } }
@keyframes shine-breathe { 50% { scale: 1.2; } }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-mark circle,
.bearing circle,
.success-mark circle { fill: none; stroke: currentColor; stroke-width: 1.2; }

.nav-links { display: none; gap: 36px; font-size: 14px; }
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="true"] { color: var(--ink); }

@media (min-width: 760px) {
  .nav-links { display: flex; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding-top: clamp(40px, 8vh, 104px);
  padding-bottom: clamp(88px, 10vw, 128px);
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 42% at 50% 80%, rgba(181, 70, 43, 0.07), transparent 70%), var(--paper);
}

.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero-title {
  max-width: 13em;
  font-family: var(--font-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(2.75rem, 8.4vw, 6.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-lede {
  margin-top: 28px;
  max-width: 26em;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 40px;
}

/* Hero product visual: the Compass app itself. */
.hero-visual {
  position: relative;
  width: min(100%, 880px);
  margin: clamp(44px, 6vw, 72px) auto 0;
  padding-inline: var(--gutter);
  text-align: left;
}

.signal-card {
  position: absolute;
  right: max(var(--gutter), calc(var(--gutter) - 40px));
  bottom: -40px;
  width: min(340px, 72%);
  padding: 22px 24px 24px;
  border-radius: 16px;
  background: var(--night);
  color: var(--on-night);
  box-shadow: 0 24px 48px -16px rgba(22, 21, 19, 0.45), 0 2px 6px rgba(22, 21, 19, 0.2);
}
.signal-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-night);
}
.signal-label::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.signal-text {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.35;
}

@media (min-width: 1100px) {
  .signal-card { right: -32px; }
}
@media (max-width: 639px) {
  .signal-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -28px 12px 0 auto;
    max-width: 88%;
  }
  .signal-text { font-size: 17px; }
}

@media (prefers-reduced-motion: no-preference) {
  .window--hero { animation: rise 1s var(--ease) 0.15s both; }
  .window--hero .is-chosen { animation: choose-text 0.5s var(--ease) 1.5s both; }
  .window--hero .is-chosen .ui-letter { animation: choose-letter 0.5s var(--ease) 1.5s both; }
  .hero-visual .signal-card { animation: rise 0.9s var(--ease) 2.1s both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(32px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes choose-text { from { color: var(--ink-2); } }
@keyframes choose-letter { from { background-color: transparent; border-color: var(--control); color: var(--ink-3); } }

/* The dial: three paths and a needle, used in the Decide visual. */
.dial {
  --size: 224px;
  width: var(--size);
  color: var(--ink);
}

.dial-face {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--rule);
}

.dial-ticks {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -0.3deg, var(--rule-strong) 0 0.6deg, transparent 0.6deg 30deg),
    repeating-conic-gradient(from -0.15deg, var(--rule) 0 0.3deg, transparent 0.3deg 5deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 8px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 8px));
}

.dial-label {
  --angle: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  white-space: nowrap;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(calc(var(--size) * -0.26))
    rotate(calc(var(--angle) * -1));
}
.dial-label--left { --angle: -48deg; color: var(--ink); }
.dial-label--right { --angle: 48deg; }

.dial-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: 46%;
  translate: -50% -50%;
  transform-origin: 50% 50%;
  rotate: -48deg;
  --needle-south: var(--ink);
}

.dial-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--ink);
}

@keyframes dial-settle {
  0% { rotate: 40deg; }
  45% { rotate: -58deg; }
  70% { rotate: -42deg; }
  85% { rotate: -50deg; }
  100% { rotate: -48deg; }
}

/* --- Problem ------------------------------------------------------------- */

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

.problem-grid {
  display: grid;
  gap: 48px;
}
.problem-grid .section-title { max-width: 11em; }

.done-list { border-top: 1px solid var(--rule); align-self: end; }
.done-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  color: var(--ink-2);
}
.tick {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  position: relative;
}
.tick::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 3.5px;
  width: 4px;
  height: 7px;
  border: solid var(--ink-2);
  border-width: 0 1.25px 1.25px 0;
  transform: rotate(45deg);
}

.question {
  margin-top: clamp(96px, 14vw, 168px);
  text-align: center;
}
.question-lead {
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  color: var(--ink-3);
}
.question-text p {
  margin: 20px auto 0;
  max-width: 14em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 7.6vw, 5.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.problem-close {
  margin: clamp(64px, 9vw, 112px) auto 0;
  max-width: 34em;
  text-align: center;
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  color: var(--ink-2);
  text-wrap: balance;
}
.problem-close em { font-family: var(--font-serif); font-size: 1.12em; }
.statement {
  margin-top: 16px;
  color: var(--ink);
  font-weight: 500;
}

@media (min-width: 860px) {
  .problem-grid { grid-template-columns: 1.1fr 1fr; gap: 80px; }
}

/* --- Every path, laid out (port of StackSpread) ------------------------- */
/* --p is spread progress (0 = stacked, 1 = spread) and --raw is scroll progress
   through the section. Both default to 1, so without JavaScript or with reduced
   motion the paths simply appear laid out. */

.spread {
  --p: 1;
  --raw: 1;
  --mx: 0;
  --my: 0;
  --header: 64px;
  position: relative;
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
}
.spread.is-live { height: 260vh; }
.spread-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.spread.is-live .spread-stage { position: sticky; top: 0; }

.spread-copy,
.spread-cards {
  position: absolute;
  inset: var(--header) 0 0;
}
.spread-copy {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
  pointer-events: none;
  opacity: clamp(0, (var(--p) - 0.3) / 0.35, 1);
  scale: calc(0.88 + 0.12 * clamp(0, (var(--p) - 0.3) / 0.6, 1));
}
.spread-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.spread-title span { font-style: italic; font-weight: 300; }
.spread-sub {
  margin-top: 18px;
  max-width: 30em;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--ink-2);
  text-wrap: balance;
}

.spread-cards { z-index: 2; }
.spread-card {
  --x: calc(var(--sx) + (var(--tx) - var(--sx)) * var(--p));
  --y: calc(var(--sy) + (var(--ty) - var(--sy)) * var(--p));
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: var(--z);
  display: flex;
  flex-direction: column;
  width: calc(var(--w) * 1vw);
  height: calc(var(--h) * 1vh);
  padding: clamp(12px, 1.4vw, 22px);
  overflow: hidden;
  border-radius: clamp(12px, 1.2vw, 18px);
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(22, 21, 19, 0.06), 0 22px 44px -20px rgba(22, 21, 19, 0.4);
  translate:
    calc(-50% + var(--x) * 1vw - var(--mx) * 2.6vw * var(--d) * var(--p))
    calc(-50% + var(--y) * 1vh - var(--my) * 2.2vh * var(--d) * var(--p));
  rotate: calc(var(--sr) * (1 - var(--p)) * 1deg);
  scale: calc(0.82 + (var(--s) - 0.82) * var(--p));
}
.spread.is-live .spread-card { will-change: translate, rotate, scale; }
.spread-kicker {
  margin-bottom: auto;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.spread-name {
  font-family: var(--font-serif);
  font-size: clamp(20px, min(2.3vw, 3.8vh), 36px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.spread-line {
  margin-top: 6px;
  font-size: clamp(12px, min(1vw, 1.7vh), 15px);
  line-height: 1.35;
  color: var(--muted);
}
.spread-card:nth-child(1) { --sx: -8; --sy: -10; --sr: -18; --tx: -20; --ty: -34; --w: 17; --h: 22; --s: .88; --z: 2; --txs: -22; --tys: -34.5; --d: 0.55; --bg: var(--surface); --fg: var(--ink); --muted: var(--ink-2); }
.spread-card:nth-child(2) { --sx: 14; --sy: -10; --sr: 20; --tx: 32; --ty: -30; --w: 18; --h: 26; --s: .85; --z: 3; --txs: 22; --tys: -34.5; --d: 0.66; --bg: var(--night); --fg: var(--on-night); --muted: var(--on-night-2); }
.spread-card:nth-child(3) { --sx: -16; --sy: 0; --sr: -4; --tx: -36; --ty: -2; --w: 15; --h: 28; --s: .9; --z: 4; --txs: -22; --tys: -18.5; --d: 0.76; --bg: #e4ddd1; --fg: var(--ink); --muted: var(--ink-2); }
.spread-card:nth-child(4) { --sx: 1; --sy: -10; --sr: -2; --tx: 6; --ty: -32; --w: 22; --h: 24; --s: .85; --z: 5; --txs: 22; --tys: -18.5; --d: 0.87; --bg: var(--accent); --fg: #ffffff; --muted: #ffffff; }
.spread-card:nth-child(5) { --sx: 18; --sy: 1; --sr: 6; --tx: 37; --ty: 6; --w: 18; --h: 28; --s: .88; --z: 6; --txs: -22; --tys: 18.5; --d: 0.98; --bg: #2b2a27; --fg: var(--on-night); --muted: var(--on-night-2); }
.spread-card:nth-child(6) { --sx: -6; --sy: 10; --sr: 6; --tx: -24; --ty: 30; --w: 20; --h: 22; --s: .9; --z: 7; --txs: 22; --tys: 18.5; --d: 1.09; --bg: var(--surface); --fg: var(--ink); --muted: var(--ink-2); }
.spread-card:nth-child(7) { --sx: 8; --sy: 7; --sr: 3; --tx: 2; --ty: 32; --w: 20; --h: 22; --s: .85; --z: 8; --txs: -22; --tys: 34.5; --d: 1.19; --bg: #d8d2c7; --fg: var(--ink); --muted: var(--ink-2); }
.spread-card:nth-child(8) { --sx: 20; --sy: 12; --sr: -7; --tx: 30; --ty: 30; --w: 17; --h: 21; --s: .9; --z: 9; --txs: 22; --tys: 34.5; --d: 1.30; --bg: #efe9df; --fg: var(--ink); --muted: var(--ink-2); }

/* Phones and portrait tablets: a tidy two-column grid around the headline. */
@media (max-width: 700px), (max-width: 1100px) and (orientation: portrait) {
  /* Higher specificity than the per-card :nth-child rules it overrides. */
  .spread .spread-cards .spread-card {
    --tx: var(--txs);
    --ty: var(--tys);
    --w: 42;
    --h: 16.5;
    --s: 0.9;
    justify-content: flex-end;
    padding: 14px 16px;
  }
  .spread-kicker { display: none; }
  .spread-name { font-size: clamp(20px, 5.4vw, 30px); }
  .spread-line { font-size: clamp(13px, 2.4vw, 15px); }
  .spread-title { font-size: clamp(2.25rem, 9vw, 4rem); }
  .spread-sub { font-size: 15px; max-width: 22em; }
}

/* Short screens (landscape phones, small older phones): no room for a floating
   spread, so the paths sit in a simple grid under the headline. */
@media (max-height: 600px) {
  .spread-stage { height: auto; min-height: 0; overflow: visible; padding: clamp(64px, 12vh, 96px) var(--gutter); }
  .spread-copy,
  .spread-cards { position: static; }
  .spread-copy { padding: 0; opacity: 1; scale: none; }
  .spread-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
    max-width: var(--max);
    margin: 36px auto 0;
  }
  .spread .spread-cards .spread-card {
    position: static;
    width: auto;
    height: auto;
    min-height: 124px;
    translate: none;
    rotate: none;
    scale: none;
    justify-content: flex-end;
  }
  .spread-name { font-size: 22px; }
  .spread-line { font-size: 13px; }
}

.spread-hint {
  position: absolute;
  inset-inline: 0;
  bottom: 3vh;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: clamp(0, 1 - var(--raw) / 0.12, 1);
  pointer-events: none;
}
.spread:not(.is-live) .spread-hint { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .spread-hint svg { animation: hint-bounce 1.6s var(--ease) infinite; }
}
@keyframes hint-bounce { 50% { translate: 0 4px; } }

/* --- Product windows (sample Compass UI) ------------------------------- */

.window {
  overflow: hidden;
  border: 1px solid rgba(22, 21, 19, 0.08);
  border-radius: 20px;
  background: var(--surface);
  box-shadow:
    0 1px 2px rgba(22, 21, 19, 0.04),
    0 12px 32px -12px rgba(22, 21, 19, 0.14),
    0 48px 96px -32px rgba(22, 21, 19, 0.22);
  text-align: left;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(var(--surface), #f7f5f0);
  font-size: 13px;
  color: var(--ink-3);
}
.window-mark { width: 18px; height: 18px; color: var(--ink); flex: none; }
.window-mark circle { fill: none; stroke: currentColor; stroke-width: 1.4; }
.window-title { font-weight: 500; color: var(--ink); }
.window-steps { display: flex; gap: 16px; margin-left: auto; }
.window-steps span { display: inline-flex; align-items: center; gap: 6px; }
.window-steps .is-done { color: var(--ink-2); }
.window-steps .is-current { color: var(--ink); font-weight: 500; }
.window-steps .is-current::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.window-tag {
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.window-body { padding: clamp(22px, 4vw, 40px); }

.ui-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ui-title {
  margin-top: 12px;
  max-width: 22em;
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.ui-options { margin-top: 24px; border-top: 1px solid var(--rule); }
.ui-options li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(15px, 1.6vw, 16.5px);
  color: var(--ink-2);
}
.ui-letter {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--control);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}
.ui-options .is-chosen { color: var(--ink); font-weight: 500; }
.ui-options .is-chosen .ui-letter { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 639px) {
  .window-steps span:not(.is-current) { display: none; }
  .window-bar { padding: 0 16px; }
}

/* Compare */
.compare { display: grid; gap: 20px; margin-top: 20px; }
.compare-path { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.compare-col ul { margin-top: 10px; border-top: 1px solid var(--rule); }
.compare-col li { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-2); }
@media (min-width: 560px) {
  .compare { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Reflect */
.ui-feelings { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ui-feelings span {
  padding: 9px 16px;
  border: 1px solid var(--control);
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.ui-feelings .is-chosen { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ui-signal {
  margin-top: 28px;
  padding: 22px 24px 24px;
  border-radius: 16px;
  background: var(--night);
  color: var(--on-night);
}
.ui-signal-text { margin-top: 12px; font-family: var(--font-serif); font-weight: 300; font-size: clamp(18px, 2vw, 21px); line-height: 1.35; }

/* Decide */
.decide { display: grid; gap: 28px; justify-items: center; }
.decide-summary { width: 100%; }
.ui-noticed { margin: 14px 0 0; border-top: 1px solid var(--rule); }
.ui-noticed div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.ui-noticed dt { font-weight: 500; }
.ui-noticed dd { margin: 0; color: var(--ink-2); }
.ui-next {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--paper-deep);
  font-size: 15px;
  font-weight: 500;
}
.ui-next span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 560px) {
  .decide { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 40px; }
}

/* --- How it works: scroll story ------------------------------------------ */

.how { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.bearing { width: 22px; height: 22px; color: var(--ink); flex: none; }
.bearing use { transform-origin: 12px 12px; }
.bearing--e use { transform: rotate(90deg); }
.bearing--s use { transform: rotate(180deg); }
.bearing--w use { transform: rotate(270deg); }

.story-step + .story-step { margin-top: clamp(88px, 14vw, 140px); }
.story-number {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.story-title {
  margin: 18px 0 14px;
  max-width: 14em;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.story-copy > p:last-child { max-width: 26em; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--ink-2); }
.story-visual { margin-top: 36px; }

/* Tablet and no-JS desktop: copy and visual side by side, one step at a time. */
@media (min-width: 760px) {
  .story-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
  .story-visual { margin-top: 0; }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .story-step { grid-template-columns: 1fr; gap: 36px; }
}

/* Desktop with JavaScript: one sticky product window that changes as each step reaches the middle. */
@media (min-width: 1024px) {
  .story.is-enhanced {
    --story-h: min(560px, 72vh);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 80px;
  }
  .story.is-enhanced .story-step { display: contents; }
  .story.is-enhanced .story-step + .story-step { margin-top: 0; }
  .story.is-enhanced .story-copy {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80vh;
  }
  .story.is-enhanced .story-step:nth-child(1) .story-copy { grid-row: 1; }
  .story.is-enhanced .story-step:nth-child(2) .story-copy { grid-row: 2; }
  .story.is-enhanced .story-step:nth-child(3) .story-copy { grid-row: 3; }
  .story.is-enhanced .story-step:nth-child(4) .story-copy { grid-row: 4; }
  .story.is-enhanced .story-visual {
    grid-column: 2;
    grid-row: 1 / span 4;
    position: sticky;
    top: calc(50vh - var(--story-h) / 2 + 32px);
    align-self: start;
    display: flex;
    align-items: center;
    height: var(--story-h);
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), visibility 0s linear 0.6s;
  }
  .story.is-enhanced .story-visual .window { width: 100%; }
  .story.is-enhanced .is-active .story-visual {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.6s var(--ease) 0.1s, transform 0.8s var(--ease) 0.1s, visibility 0s;
  }
  .story.is-enhanced .story-copy { transition: color 0.4s var(--ease); }
  .story.is-enhanced .story-step:not(.is-active) .story-title,
  .story.is-enhanced .story-step:not(.is-active) .story-copy > p:last-child { color: var(--ink-3); }
  .story.is-enhanced .is-active .dial-needle { animation: dial-settle 1.6s var(--ease) 0.3s both; }
}

/* --- Honest by design ---------------------------------------------------- */

.principles { display: grid; border-top: 1px solid var(--rule); }
.principles li { padding: 28px 0 32px; border-bottom: 1px solid var(--rule); }
.principles h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.principles p { margin-top: 10px; max-width: 24em; color: var(--ink-2); }
@media (min-width: 860px) {
  .principles { grid-template-columns: repeat(3, 1fr); column-gap: 48px; border-bottom: 0; }
  .principles li { border-bottom: 0; }
}
.honest { border-top: 1px solid var(--rule); }

/* --- Founding pilot (the paid offer) ------------------------------------ */

.pilot-offer {
  display: grid;
  gap: 28px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.pilot-price {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pilot-price small {
  display: block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
  color: var(--ink-3);
}
.pilot-terms { display: grid; gap: 10px; color: var(--ink-2); }
.pilot-terms li { position: relative; padding-left: 20px; }
.pilot-terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.pilot-cta { display: grid; gap: 14px; justify-items: start; }
.pilot-cta .fine-print { margin-top: 0; max-width: 24em; }
@media (min-width: 960px) {
  .pilot-offer { grid-template-columns: auto 1fr auto; align-items: center; gap: 56px; }
}

/* --- Preview (dark) ------------------------------------------------------ */

.preview {
  background: var(--night);
  color: var(--on-night);
  --needle-north: var(--accent-night);
}
.preview .eyebrow { color: var(--on-night-3); }
.preview .section-lede { color: var(--on-night-2); }
.preview :focus-visible { outline-color: var(--accent-night); }
.preview ::selection { background: var(--on-night); color: var(--night); }

.experience {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--night-rule);
}

.experience-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--night-rule);
}

.path-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
}
.path-tabs-label { color: var(--on-night-3); margin-right: 8px; }
.path-tabs .dot { color: var(--on-night-3); }
.path-tab {
  appearance: none;
  border: 0;
  background: none;
  padding: 8px 10px;
  min-height: 44px;
  color: var(--on-night-2);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color 0.2s var(--ease);
}
.path-tab::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
@media (hover: hover) {
  .path-tab:hover { color: var(--on-night); }
}
.path-tab[aria-selected="true"] { color: var(--on-night); }
.path-tab[aria-selected="true"]::after { transform: scaleX(1); }

.stages {
  display: flex;
  gap: 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--on-night-3);
}
.stage { display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s var(--ease); }
.stage::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition: background-color 0.3s var(--ease);
}
.stage[aria-current="step"],
.stage.is-done { color: var(--on-night); }
.stage[aria-current="step"]::before { background: var(--accent-night); border-color: var(--accent-night); }
.stage.is-done::before { background: var(--on-night); border-color: var(--on-night); }

.experience-panel { padding-top: clamp(40px, 6vw, 64px); }
.experience-panel.is-entering { animation: panel-in 0.5s var(--ease); }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.scenario-role {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-night-3);
}
.scenario-title {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.scenario-context {
  margin-top: 24px;
  max-width: 36em;
  color: var(--on-night-2);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}
.scenario-question {
  margin-top: 36px;
  font-size: clamp(1.1875rem, 2vw, 1.4375rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 30em;
}

.choices {
  margin-top: 28px;
  border-top: 1px solid var(--night-rule);
}
.choice {
  appearance: none;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 4px 18px;
  width: 100%;
  padding: 22px 4px;
  border: 0;
  border-bottom: 1px solid var(--night-rule);
  background: none;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.4s var(--ease), background-color 0.25s var(--ease);
}
.choice-letter {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: -2px;
  border: 1px solid var(--night-rule);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
  color: var(--on-night-2);
  transition: all 0.25s var(--ease);
}
.choice-title {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  font-weight: 500;
  color: var(--on-night);
}
.choice-detail { font-size: 15px; color: var(--on-night-2); }

@media (hover: hover) {
  .choices:not(.is-answered) .choice:hover .choice-letter { border-color: var(--on-night); color: var(--on-night); }
}
.choice:focus-visible .choice-letter { border-color: var(--on-night); color: var(--on-night); }
.choice:focus-visible { outline-offset: -2px; }

.choices.is-answered .choice { cursor: default; }
.choices.is-answered .choice:not([aria-pressed="true"]) { opacity: 0.4; }
.choice[aria-pressed="true"] .choice-letter {
  background: var(--accent-night);
  border-color: var(--accent-night);
  color: var(--night);
}

/* The insight */
.insight {
  margin-top: clamp(48px, 7vw, 72px);
  animation: panel-in 0.6s var(--ease);
}
.insight:focus { outline: none; }
.insight-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-night);
}
.insight-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.insight-sample {
  margin-left: auto;
  color: var(--on-night-3);
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 400;
}
.insight-text {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.insight-role {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--night-rule);
  font-size: 15px;
  color: var(--on-night-2);
  max-width: 40em;
}
.insight-role strong { color: var(--on-night); font-weight: 500; }

.reflect { margin-top: clamp(48px, 7vw, 64px); animation: panel-in 0.6s var(--ease); }
.reflect-question {
  font-size: clamp(1.1875rem, 2vw, 1.4375rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.feelings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.feeling {
  appearance: none;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--night-rule);
  border-radius: 999px;
  background: none;
  color: var(--on-night);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
@media (hover: hover) {
  .feeling:hover { border-color: var(--on-night-2); }
}
.feeling[aria-pressed="true"] { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.feelings.is-answered .feeling:not([aria-pressed="true"]) { opacity: 0.55; }

.reflect-response {
  margin-top: 28px;
  max-width: 36em;
  color: var(--on-night-2);
  font-size: 17px;
  animation: panel-in 0.5s var(--ease);
}
.reflect-response strong { color: var(--on-night); font-weight: 500; }

.experience-outro {
  margin-top: clamp(40px, 6vw, 56px);
  padding-top: 32px;
  border-top: 1px solid var(--night-rule);
  animation: panel-in 0.6s var(--ease);
}
.experience-outro p { max-width: 34em; color: var(--on-night-2); }
.outro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.preview .button--primary { --button-bg: var(--on-night); --button-fg: var(--night); }
.preview .button--outline { --button-fg: var(--on-night); border-color: var(--night-rule); }
.preview .button--quiet { --button-fg: var(--on-night-2); }
@media (hover: hover) {
  .preview .button--primary:hover { --button-bg: #ffffff; }
  .preview .button--outline:hover { border-color: var(--on-night-2); }
  .preview .button--quiet:hover { --button-fg: var(--on-night); }
}

.noscript { color: var(--on-night-2); }

/* --- Vision -------------------------------------------------------------- */

/* Inline (not flex) so the line can be balanced instead of stranding the last word. */
.journey {
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 4.4vw, 3.25rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  text-wrap: balance;
}
.journey li { display: inline; white-space: nowrap; }
.journey li + li::before {
  content: "→" / "";
  display: inline-block;
  margin: 0 0.4em;
  font-family: var(--font-sans);
  font-size: 0.55em;
  color: var(--rule-strong);
  vertical-align: 0.2em;
}
.journey-next { color: var(--ink); font-style: italic; }
.journey-next::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 0.35em;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.3em;
}

.horizon {
  display: grid;
  margin-top: clamp(56px, 8vw, 88px);
  border-top: 1px solid var(--rule);
}
.horizon li {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--rule);
}
.horizon h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.horizon p { margin-top: 6px; color: var(--ink-2); max-width: 26em; }

@media (min-width: 760px) {
  .horizon { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
}
@media (min-width: 1040px) {
  .horizon { grid-template-columns: repeat(4, 1fr); column-gap: 32px; border-bottom: 0; }
  .horizon li { border-bottom: 0; }
}

/* --- Join ---------------------------------------------------------------- */

.join { background: var(--paper-deep); }

.join-grid {
  display: grid;
  gap: 56px;
}
.join-intro .section-title { max-width: 10em; }
.fine-print {
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-3);
  max-width: 30em;
}

@media (min-width: 960px) {
  .join-grid { grid-template-columns: 5fr 7fr; gap: 96px; align-items: start; }
  .join-intro { position: sticky; top: 112px; }
}

.signup { display: grid; gap: 28px; }

.consent { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.consent input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.field-row { display: grid; gap: 28px; }
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; gap: 20px; }
}

.field { display: grid; gap: 8px; min-width: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }

.field label,
.field legend {
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.field legend { margin-bottom: 8px; }
.optional { margin-left: 6px; font-weight: 400; color: var(--ink-3); }

.field-hint {
  margin-top: -8px;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--ink-3);
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--control);
  border-radius: 12px;
  background: var(--surface);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ink-2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(22, 21, 19, 0.08);
}

.select { position: relative; }
.select select { appearance: none; padding-right: 44px; cursor: pointer; }
.select select:invalid { color: var(--ink-3); }
.select option { color: var(--ink); }
.select::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: solid var(--ink-2);
  border-width: 0 1.25px 1.25px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip,
.option { position: relative; cursor: pointer; }
.option { display: flex; }
.option span { flex: 1; }
.chip input,
.option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--control);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  transition: all 0.2s var(--ease);
  user-select: none;
}
@media (hover: hover) {
  .chip:hover input:not(:disabled) + span { border-color: var(--ink); }
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span,
.option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip input:disabled + span { opacity: 0.4; cursor: not-allowed; }

.options {
  display: grid;
  border-top: 1px solid var(--rule);
}
.option span {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
  font-size: 15.5px;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.option span::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--control);
  border-radius: 50%;
  background: var(--surface);
  transition: all 0.2s var(--ease);
}
@media (hover: hover) {
  .option:hover span { color: var(--ink); }
}
.option input:checked + span { color: var(--ink); }
.option input:checked + span::before {
  border-color: var(--ink);
  background: radial-gradient(circle, var(--ink) 0 4px, var(--surface) 4.5px);
}
.option input:focus-visible + span { outline-offset: -2px; border-radius: 6px; }

@media (min-width: 600px) {
  .options { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

/* "Something else" path: only shown when that chip is ticked (works without JS). */
.signup:has([data-other-toggle]:not(:checked)) [data-other-field] { display: none; }

.field-error {
  display: none;
  font-size: 14px;
  color: var(--error);
}
.field.is-invalid .field-error { display: block; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--error); }
.field.is-invalid .chip span,
.field.is-invalid .option span::before { border-color: rgba(163, 50, 31, 0.55); }

.form-alert {
  padding: 14px 18px;
  border-left: 2px solid var(--error);
  background: rgba(163, 50, 31, 0.06);
  color: var(--error);
  font-size: 15px;
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-submit { padding-top: 8px; }
.button[aria-busy="true"] { cursor: progress; }
.button[aria-busy="true"] .button-label::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.signup-success {
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--rule-strong);
  animation: panel-in 0.6s var(--ease);
}
.signup-success:focus { outline: none; }
.signup-success p { color: var(--ink-2); font-size: 18px; max-width: 26em; }
.success-mark {
  width: 48px;
  height: 48px;
  margin-bottom: 32px;
}
.success-mark use {
  transform-origin: 12px 12px;
  animation: needle-settle 2.4s var(--ease) both;
}
@keyframes needle-settle {
  0% { transform: rotate(-70deg); }
  35% { transform: rotate(24deg); }
  60% { transform: rotate(-9deg); }
  80% { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}
.success-title {
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.success-meta:empty { display: none; }
.success-meta { margin-top: 20px; font-size: 15px !important; color: var(--ink-3) !important; }

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 40px calc(40px + env(safe-area-inset-bottom));
  font-size: 14px;
  color: var(--ink-3);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}
.footer-inner .brand { color: var(--ink); font-size: 15px; }
.footer-inner .brand-mark svg { width: 20px; height: 20px; }
.footer-copy { margin-left: auto; }
.footer-link { color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { .footer-link:hover { color: var(--ink); } }
@media (max-width: 599px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { margin-left: 0; }
}

/* --- Product spec page (/spec) ------------------------------------------ */

.spec-page .site-header { border-bottom-color: var(--rule); }

.spec-hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--rule);
  background: radial-gradient(ellipse 60% 60% at 85% 0%, rgba(181, 70, 43, 0.06), transparent 70%), var(--paper);
}
.spec-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.spec-lede {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(1.125rem, 2vw, 1.4375rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.spec-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px 32px;
  margin: 44px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.spec-meta dt { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.spec-meta dd { margin: 6px 0 0; font-weight: 500; }
.spec-meta a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.spec-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.spec-section { padding-block: clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--rule); }
.spec-section:nth-of-type(odd) { background: var(--surface); }
.spec-grid { display: grid; gap: 28px; }
@media (min-width: 960px) {
  .spec-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
  .spec-grid .spec-head { position: sticky; top: 104px; align-self: start; }
}
.spec-number {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.spec-h2 {
  margin-top: 12px;
  max-width: 12em;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.spec-head--wide { margin-bottom: clamp(36px, 5vw, 56px); }
.spec-head--wide .spec-h2 { max-width: none; }
.spec-intro { margin-top: 16px; max-width: 40em; color: var(--ink-2); }

.spec-body { max-width: 760px; }
.spec-body > p { color: var(--ink-2); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.spec-body > * + * { margin-top: 24px; }
.spec-quote p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.625rem, 3.2vw, 2.375rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.spec-body em { font-family: var(--font-serif); font-size: 1.08em; color: var(--ink); }

.spec-label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.spec-cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .spec-cards { grid-template-columns: 1fr 1fr; } }
.spec-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--paper);
}
.spec-section:nth-of-type(even) .spec-card { background: var(--surface); }
.spec-card h3 {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.spec-card > p:last-child { margin-top: 12px; color: var(--ink-2); }
.spec-note { padding-top: 20px; border-top: 1px solid var(--rule); font-size: 16px !important; color: var(--ink-2); }
.spec-note strong { color: var(--ink); font-weight: 600; }

.spec-moments { border-top: 1px solid var(--rule); }
.spec-moments li {
  position: relative;
  padding: 18px 0 18px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--ink-2);
}
.spec-moments li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(18px + 0.62em);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.spec-moments strong { color: var(--ink); font-weight: 600; }

.spec-outcomes { display: grid; gap: 16px; counter-reset: outcome; }
@media (min-width: 700px) { .spec-outcomes { grid-template-columns: 1fr 1fr; } }
.spec-outcomes li {
  padding: 24px 26px 26px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--surface);
}
.spec-outcomes h3 {
  margin-top: 10px;
  text-wrap: balance;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.spec-outcomes p:last-child { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.done { font-weight: 600; color: var(--ink); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.15em;
  white-space: nowrap;
}
.status--live { background: var(--ink); color: var(--paper); }
.status--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-night); }
.status--next { border: 1px solid var(--ink); color: var(--ink); }
.status--later { border: 1px solid var(--control); color: var(--ink-2); }
.status--design { background: var(--paper-deep); color: var(--ink-2); }

.feature-group + .feature-group { margin-top: clamp(40px, 5vw, 56px); }
.feature-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.features { margin: 16px 0 0; border-top: 1px solid var(--rule); }
.features > div { display: grid; gap: 4px 32px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.features dt { font-weight: 600; }
.features dd { margin: 0; color: var(--ink-2); }
@media (min-width: 700px) { .features > div { grid-template-columns: minmax(0, 13em) minmax(0, 1fr); } }

.screens { display: grid; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 760px) {
  .screens { grid-template-columns: 1fr 1fr; }
  .screen--wide { grid-column: 1 / -1; }
}
.screens--phones { margin-top: clamp(20px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 760px) { .screens--phones { grid-template-columns: repeat(3, 1fr); } }
.screen img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--paper-deep);
  box-shadow: 0 1px 2px rgba(22, 21, 19, 0.04), 0 24px 48px -28px rgba(22, 21, 19, 0.3);
}
.screens--phones .screen img { border-radius: 28px; max-width: 360px; margin-inline: auto; }
.screen figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.screens--phones .screen figcaption { justify-content: center; text-align: center; }

.spec-bullets li { padding: 10px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.spec-bullets li:first-child { margin-top: 12px; }
.spec-bullets strong { color: var(--ink); font-weight: 600; }

.spec-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 16px; }

/* Print / PDF: one calm document, no navigation or sticky elements. */
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .skip-link, .spec-actions, .spec-cta, .site-footer { display: none !important; }
  .spec-hero, .spec-section { background: #fff !important; padding-block: 6mm; border-bottom: 0; }
  .spec-section + .spec-section { border-top: 1px solid var(--rule); }
  .spec-grid { display: block; }
  .spec-grid .spec-head { position: static; margin-bottom: 6mm; }
  /* Keep headings with what follows, and short sections on one page. */
  .spec-head, .spec-number, .spec-h2, .feature-heading { break-after: avoid; page-break-after: avoid; }
  .spec-section:not(#features):not(#screens) { break-inside: avoid; page-break-inside: avoid; }
  .spec-card, .spec-outcomes li, .features > div, .screen, .spec-moments li { break-inside: avoid; }
  .spec-section { break-before: auto; }
  #screens { break-before: page; }
  .screen img { box-shadow: none; }
  .spec-meta a[href^="http"]::after { content: " (" attr(href) ")"; color: var(--ink-3); }
  .status { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* --- Standalone pages ---------------------------------------------------- */

.fallback {
  max-width: 560px;
  margin: 0 auto;
  padding: 18vh var(--gutter) 80px;
}
.fallback h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.fallback p { color: var(--ink-2); margin-bottom: 24px; font-size: 18px; }
.fallback ul { margin: 0 0 28px; color: var(--error); }
.fallback li { padding: 4px 0; }
.fallback .success-mark { color: var(--ink); }

/* --- Scroll reveal (progressive; content is always visible without support) */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(24px); }
      to { opacity: 1; transform: none; }
    }
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .window--hero,
  .window--hero .is-chosen,
  .window--hero .is-chosen .ui-letter,
  .hero-visual .signal-card,
  .dial-needle { animation: none !important; }
}
