:root {
  /* v3 palette */
  --bg: #F6F2EA;      /* canvas */
  --sand: #DED5C8;    /* bands and borders */
  --pine: #28352E;    /* buttons, logo */
  --clay: #9C735F;    /* accent: links, numbers */
  --ink: #252525;     /* text */
  --clay-600: #856251; /* buttons, logo */
  --clay-700: #6F5244; /* hover */
  --soft: #676259;
  --faint: #9F988C;
  --line: #E4DCD0;
  --wine: var(--clay);
  --validated: #5B7A8A;
  --invalidated: #A65D4E;
  --nuanced: #8A7E5A;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
header .wrap { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.logo svg { width: 24px; height: 24px; flex: none; }
.logo { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.logo i { width: 18px; height: 6px; border-radius: 3px; background: var(--wine); }
.nav-link { font-size: 15px; color: var(--soft); text-decoration: none; transition: color .2s; }
.nav-link:hover { color: var(--ink); }

/* Hero */
.hero { text-align: center; padding: 112px 0 0; }
h1 {
  font-weight: 500;
  font-size: clamp(46px, 8vw, 104px);
  line-height: .98;
  letter-spacing: -0.02em;
  margin: 0 auto 28px;
  max-width: none;
}
h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
h1 .w > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--out) forwards; }
.kicker { font-size: clamp(21px, 2.4vw, 26px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; margin: 0 auto 12px; opacity: 0; animation: fade .9s var(--out) .45s forwards; }
.label { font-size: 13px; color: var(--faint); margin: 0 0 6px; }
.how-title { font-weight: 500; font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.025em; line-height: 1.15; text-align: center; margin: 0 auto 56px; max-width: 18em; text-wrap: balance; }
.steps p { max-width: 22em; margin-left: auto; margin-right: auto; }
.lede { color: var(--soft); font-size: 19px; max-width: 30em; margin: 0 auto 48px; opacity: 0; animation: fade .9s var(--out) .55s forwards; }

.join {
  display: flex; align-items: center; max-width: 420px; margin: 0 auto;
  padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  box-shadow: 0 1px 2px rgba(26,26,26,.04), 0 10px 28px -14px rgba(60,35,25,.18);
  transition: border-color .2s, box-shadow .2s;
  opacity: 0; animation: fade .9s var(--out) .7s forwards;
}
.join:focus-within { border-color: #CFC4B4; box-shadow: 0 0 0 4px rgba(156,115,95,.08), 0 10px 28px -14px rgba(60,35,25,.18); }
.join button { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 6px -2px rgba(26,26,26,.4); }
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 520px; width: min(1100px, 100vw); height: 640px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(156,115,95,.09), rgba(156,115,95,.03) 55%, transparent);
  pointer-events: none;
}
main { position: relative; z-index: 0; }
.join input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; padding: 10px 8px 10px 18px; color: var(--ink); outline: none; }
.join input::placeholder { color: var(--faint); }
.join button {
  border: 0; border-radius: 999px; background: var(--clay-600); color: #fff;
  font: inherit; font-size: 15px; font-weight: 500; padding: 11px 20px; cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .2s var(--out);
}
.join button:hover { background: var(--clay-700); }
.join button:active { transform: scale(.97); }
.join button:disabled { opacity: .6; cursor: default; }
.note { font-size: 14px; color: var(--soft); margin: 14px 0 0; min-height: 1.6em; text-align: center; }
.note.ok { color: var(--validated); }
.note.err { color: var(--invalidated); }

/* The stage: one assumption at a time, tested live */
.stage {
  max-width: 1024px; margin: 104px auto 0; padding: 112px 138px;
  border: 1px solid var(--line); border-radius: 24px; background: #fff;
  text-align: left; position: relative;
  box-shadow:
    0 1px 2px rgba(26,26,26,.04),
    0 12px 28px -14px rgba(60,35,25,.14),
    0 48px 96px -48px rgba(156,115,95,.28);
  opacity: 0; transform: translateY(16px);
  animation: lift 1.1s var(--out) .95s forwards;
}
.stage-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; font-size: 14px; color: var(--faint); margin-bottom: 40px; }
.stage-top span { white-space: nowrap; }
/* Pull the header up and the dots down by the same amount; card height stays the same */
.stage { --nudge: 56px; display: flex; flex-direction: column; }
.stage .dots { margin-top: auto; padding-top: 28px; }
.stage-top { position: relative; top: calc(var(--nudge) * -1); }
.stage .dots { position: relative; top: var(--nudge); }
.slot { position: relative; min-height: 2.6em; }
.assumption {
  font-size: clamp(22px, 3vw, 30px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 500;
  margin: 0;
  transition: opacity .5s var(--out), transform .5s var(--out), filter .5s var(--out);
}
.swap .assumption, .swap .quote, .swap .verdict { opacity: 0; transform: translateY(8px); filter: blur(4px); }

.meter { position: relative; height: 6px; border-radius: 3px; background: var(--line); margin: 30px 0 18px; overflow: hidden; }
.fill { position: absolute; inset: 0; border-radius: 3px; transform: scaleX(0); transform-origin: left; background: var(--c, var(--ink)); }
.stage.run .fill { transform: scaleX(1); transition: transform 1.3s var(--ease); }

.result { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; min-height: 28px; }
.verdict {
  font-weight: 500; font-size: 16px; color: var(--c, var(--ink));
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity .4s var(--out), transform .4s var(--out), filter .4s var(--out);
}
.verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.checking { font-size: 14px; color: var(--faint); }
.quote {
  margin: 28px 0 0; min-height: 5.6em;
  font-family: "DM Serif Text", Georgia, serif; font-style: italic; font-size: 19px; line-height: 1.55; color: #3B3A36;
  transition: opacity .6s var(--out) .1s, transform .6s var(--out) .1s, filter .6s var(--out) .1s;
}
.quote cite { display: block; font: normal 14px "DM Sans", sans-serif; color: var(--faint); margin-top: 8px; }
.pending .verdict, .pending .quote { opacity: 0; transform: translateY(8px); filter: blur(4px); }

.dots { display: flex; gap: 8px; justify-content: center; }
.dot { all: unset; cursor: pointer; width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .5s var(--out), background .3s; }
.dot[aria-current="true"] { width: 28px; background: var(--pine); }
.dot:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

/* Steps: a real sequence, drawn as a connected track */
.how {
  margin-top: 104px; padding: 88px 0;
  background: var(--sand);
  border-top: 1px solid #D3C9BA;
}
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 960px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; text-align: center; }
.steps::before {
  content: ""; position: absolute; top: 24px; left: 16.66%; right: 16.66%; height: 1px;
  background: linear-gradient(to right, #D6CCBE, #B89482, #D6CCBE);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .15s;
}
.steps.in::before { transform: none; }
.steps li { position: relative; z-index: 1; }
.num {
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 22px;
  border-radius: 50%; background: #fff; border: 1px solid var(--line);
  font-size: 17px; font-weight: 500; color: var(--wine); font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgba(26,26,26,.05), 0 6px 16px -6px rgba(156,115,95,.25);
}
.steps h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; line-height: 1.3; }
.steps p { margin: 0; color: var(--soft); font-size: 16px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--out), transform .9s var(--out); }
.reveal.in { opacity: 1; transform: none; }

footer { background: var(--bg); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; height: 76px; font-size: 14px; color: var(--soft); }


/* v2: nav, demo links, videos */
.nav { display: flex; align-items: center; gap: 22px; }
.nav-btn {
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 1px 2px rgba(26,26,26,.04); transition: border-color .2s, background .2s;
}
.nav-btn:hover { border-color: #CFC4B4; background: #FBF9F5; }
.alt { font-size: 15px; color: var(--soft); margin: 2px 0 0; opacity: 0; animation: fade .9s var(--out) .8s forwards; }
.alt a { color: var(--wine); text-decoration: none; border-bottom: 1px solid rgba(156,115,95,.3); transition: border-color .2s; }
.alt a:hover { border-color: var(--wine); }

.watch { background: var(--sand); padding: 96px 0 104px; text-align: center; border-top: 1px solid #D3C9BA; }
.watch h2 { font-weight: 500; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 40px; }
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; text-align: left; }
.video { margin: 0; min-width: 0; }
.frame {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(26,26,26,.04), 0 20px 40px -24px rgba(60,35,25,.25);
}
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame .empty {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px;
  color: var(--faint); font-size: 14px; background: linear-gradient(135deg, #FFFFFF, #F7F3EC);
}
.frame .play { width: 56px; height: 56px; border-radius: 50%; background: var(--clay-600); display: grid; place-items: center; }
.frame .play::after { content: ""; margin-left: 4px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
figcaption { padding: 16px 4px 0; }
figcaption strong { display: block; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
figcaption span { color: var(--soft); font-size: 15px; }
.how-cta { text-align: center; }
.demo-cta {
  display: inline-block; margin-top: 48px; padding: 13px 24px; border-radius: 999px;
  background: var(--clay-600); color: #fff; text-decoration: none; font-size: 15px; font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 16px -8px rgba(26,26,26,.5);
  transition: background .2s, transform .2s var(--out);
}
.demo-cta:hover { background: var(--clay-700); }
.demo-cta:active { transform: scale(.97); }
@media (max-width: 1100px) { .stage { padding: 64px; --nudge: 24px; } }
@media (max-width: 760px) { .stage { --nudge: 0px; } }
@media (max-width: 760px) {
  .videos { grid-template-columns: 1fr; gap: 32px; }
  .watch { padding: 64px 0 72px; }
  .nav { gap: 14px; }
  .nav-link { display: none; }
}

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

@media (max-width: 760px) {
  .hero { padding: 64px 0 0; }
  .stage { margin-top: 72px; padding: 36px 24px 28px; border-radius: 18px; }
  .how { margin-top: 72px; padding: 64px 0; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .join { flex-direction: column; border-radius: 20px; padding: 6px; }
  .join input { width: 100%; padding: 12px 14px; text-align: center; }
  .join button { width: 100%; padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Waitlist form additions */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { display: flex; justify-content: center; margin: 14px 0 0; }
.turnstile:empty { display: none; }
.privacy { font-size: 13px; color: var(--faint); margin: 4px auto 14px; max-width: 30em; text-align: center; opacity: 0; animation: fade .9s var(--out) .75s forwards; }
.privacy a { color: var(--soft); }
