/* ==========================================================================
   NAUTIX · landing page v3
   Plain CSS, no build. Sections below match the comment banners in index.html.
   ========================================================================== */

/* ===== TOKENS ===== */
:root {
  /* Surfaces */
  --cream:   #FAF9F5;   /* page base (same warm off-white Anthropic uses) */
  --cream-2: #F1EDE2;   /* alternate cream band */
  --navy:    #0A1E33;   /* deep-water section */
  --ink:     #14130F;   /* text, buttons, footer */

  /* Brand */
  --pink:    #F2B5D4;   /* CTAs, waitlist block */
  --cyan:    #12E1FF;   /* live data: flat block, or numerals on navy only */
  --teal:    #0A6B7C;   /* deeper cyan for text/lines on cream (5.9:1 on --cream) */
  --teal-wash: #CFEAEE; /* chart fill */

  /* Text */
  --text:    #2B2A25;   /* body on cream */
  --muted:   #6A675C;   /* captions on cream (5.2:1) */
  --on-navy: #E9ECEF;
  --rule:    #D9D3C3;

  /* Type */
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Scale */
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1280px;
  --section: clamp(80px, 11vw, 160px);   /* vertical section padding (Anthropic: 128px) */
  --radius: 18px;
}

/* ===== FONTS ===== */
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

@font-face {
  font-family: "Reenie Beanie";
  src: url("fonts/reenie-beanie-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
b { font-weight: 600; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; overflow-x: clip; padding-block: var(--section); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.night :focus-visible { outline-color: var(--cyan); }
.final :focus-visible, .live :focus-visible { outline-color: var(--ink); }

/* Headline voice: one big tight serif, reused everywhere */
.title, .display, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); }
.title {
  font-size: clamp(2.9rem, 7.4vw, 7rem);
  line-height: 0.95; letter-spacing: -0.025em; text-wrap: balance;
}
.kicker { font-weight: 600; font-size: 0.95rem; margin-bottom: 20px; }

/* ===== BUTTONS + FORM ===== */
.btn {
  font: 600 17px/1 var(--sans);
  padding: 18px 26px; border-radius: 999px; border: 2px solid var(--ink);
  cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-pink { background: var(--pink); color: var(--ink); }
.btn-ink  { background: var(--ink); color: var(--cream); }
.btn-sm { padding: 12px 20px; font-size: 15px; }

.join { margin-top: 36px; max-width: 560px; }
.join-row { display: flex; gap: 10px; flex-wrap: wrap; }
.join input {
  flex: 1 1 240px; min-width: 0;
  font: 400 18px/1 var(--sans); color: var(--ink);
  padding: 18px 22px; border-radius: 999px; border: 2px solid var(--ink); background: #fff;
}
.join input::placeholder { color: #6A675C; }
.join input[aria-invalid="true"] { border-color: #A3120F; }
.join-msg { min-height: 1.6em; margin-top: 10px; font-size: 16px; color: #A3120F; font-weight: 500; }
.final .join-msg { color: #7A0E0B; }
.fine { font-size: 16px; color: var(--muted); }
.final .fine { color: var(--ink); }
.join[data-state="loading"] .btn { opacity: .7; cursor: progress; }
.join[data-state="success"] .join-row,
.join[data-state="success"] .fine,
.join[data-state="success"] .join-msg { display: none; }
.join-done { margin-top: 4px; }
.done-title { font: 400 clamp(2.4rem, 5vw, 3.6rem)/1 var(--serif); color: var(--ink); }
.done-sub { margin-top: 8px; color: var(--ink); }

/* ===== NAV ===== */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; }
.wordmark { font: 400 2rem/1 var(--serif); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }

/* ===== HERO + WAITLIST ===== */
.hero { padding-top: clamp(120px, 14vw, 190px); padding-bottom: clamp(70px, 8vw, 120px); z-index: 3; }
.display {
  font-size: clamp(3.5rem, 10.8vw, 10.5rem);
  line-height: 0.9; letter-spacing: -0.035em; text-wrap: balance;
}
.teal { color: var(--teal); }
.hero-copy { margin-top: clamp(28px, 4vw, 56px); max-width: 560px; }
.lede { font-size: 1.2rem; line-height: 1.55; max-width: 34em; }
.gus {
  position: absolute; z-index: 4;
  right: -2vw; bottom: calc(-1 * clamp(80px, 11vw, 190px));
  width: clamp(300px, 46vw, 700px); pointer-events: none;
  animation: drift 9s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-1.5deg); }
  50%      { transform: translate(-14px, 10px) rotate(1deg); }
}

/* ===== LIVE READINGS ===== */
.live { background: var(--cyan); color: var(--ink); padding-top: calc(var(--section) + clamp(30px, 6vw, 100px)); z-index: 1; }
.live .title { max-width: 9em; }
.readings {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(40px, 7vw, 100px);
}
.reading { border-top: 3px solid var(--ink); padding-top: 14px; }
.num {
  font: 400 clamp(5rem, 13vw, 12.5rem)/0.85 var(--serif); letter-spacing: -0.04em; color: var(--ink);
  font-variant-numeric: lining-nums;
}
.unit { font-size: 0.55em; vertical-align: 0.5em; letter-spacing: 0; margin-left: 0.04em; }
.cap { margin-top: 18px; font-weight: 500; max-width: 16em; }

/* ===== HARDWARE ===== */
.hw-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.hw-head { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.kit { width: 100%; height: auto; border-radius: var(--radius); }
.parts { counter-reset: p; border-top: 2px solid var(--ink); }
.parts li {
  counter-increment: p; padding: 18px 0 18px 64px; border-bottom: 1px solid var(--rule); position: relative; font-size: 1.1rem;
}
.parts li::before {
  content: counter(p); position: absolute; left: 0; top: 10px; font: 400 2.2rem/1.2 var(--serif); color: var(--teal);
}
.parts b { color: var(--ink); }
.specs { border-top: 2px solid var(--ink); font-size: 1rem; }
.specs div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.specs dt { color: var(--muted); }
.specs dd { text-align: right; color: var(--ink); font-weight: 500; }

/* ===== FEATURES ===== */
.features { background: var(--cream-2); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.feature + .feature { margin-top: clamp(70px, 10vw, 150px); }
.feature.flip .photo { order: 2; }
.photo { position: relative; }
.photo img { width: 100%; border-radius: var(--radius); background: var(--navy); }
.photo.tall img { aspect-ratio: 4 / 4.6; object-fit: cover; }
.photo figcaption { margin-top: 12px; font-size: 1rem; color: var(--muted); }
.feature h3 { font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; }
.feature p { max-width: 30em; }
.feature h3 + p { margin-top: 24px; }
.status { margin-top: 20px; font-size: 1rem; font-weight: 600; color: var(--teal); }

/* ===== CHART ===== */
.chart-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: end; }
.chart-head .body { max-width: 30em; }
.chart { margin-top: clamp(44px, 6vw, 80px); }
.plot { position: relative; aspect-ratio: 1000 / 400; margin: 12px 40px 44px 52px; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot .grid line { stroke: var(--rule); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.plot .area { fill: var(--teal-wash); }
.plot .line { fill: none; stroke: var(--teal); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.plot .flow { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 8 8; vector-effect: non-scaling-stroke; }
.plot .worry { stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.lab { position: absolute; font-size: 14px; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.lab.y { left: -12px; transform: translate(-100%, -50%); }
.lab.x { top: calc(100% + 14px); transform: translateX(-50%); }
.lab.x:first-of-type { transform: none; }
.lab.worry-l { right: 0; transform: translateY(-120%); color: var(--ink); font-weight: 600; }
.lab.flow-l { transform: translateY(-130%); }
.dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--pink); border: 3px solid var(--ink); }
.lab.event { white-space: normal; width: 15em; color: var(--text); font-size: 15px; }
.lab.event b { display: block; color: var(--ink); font-size: 16px; }
.lab.end { transform: translate(14px, -50%); color: var(--teal); font-weight: 600; font-size: 15px; }
.chart figcaption { color: var(--muted); font-size: 1rem; }
.note { position: absolute; margin: 0; font: 400 clamp(1.2rem, 2.4vw, 2rem)/1 "Reenie Beanie", cursive; color: var(--ink); white-space: nowrap; }
.note svg { display: block; width: 4em; height: auto; margin: 2px 0 0 -0.5em; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.note span { display: block; }
.chart figcaption em { font: 400 1.5rem/1 var(--serif); margin-left: 10px; color: var(--ink); }

/* ===== KEEPER'S LOG ===== */
.log-sec { background: var(--cream-2); }
.log-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.log-head { position: sticky; top: 40px; }
.meta { margin-top: 24px; color: var(--muted); }
.log li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.log li:last-child { border-bottom: 1px solid var(--rule); }
.log time { font-weight: 600; font-size: 0.95rem; color: var(--teal); text-transform: uppercase; letter-spacing: 0.04em; }
.log p { font: 400 clamp(1.5rem, 2.4vw, 2.1rem)/1.15 var(--serif); color: var(--ink); }
.log b { font-weight: 400; background: var(--pink); padding: 0 .18em; border-radius: 4px; }
.log .now p { color: var(--teal); }
.log .now b { background: none; padding: 0; }

/* ===== NIGHT + ALERTS ===== */
.night { background: var(--navy); color: var(--on-navy); }
.night .title, .night h3 { color: #fff; }
.night .title { max-width: 11em; font-size: clamp(3.2rem, 9vw, 8.5rem); }
.night .kicker { color: var(--cyan); }
.night-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 7vw, 120px); margin-top: clamp(48px, 7vw, 100px); align-items: end; }
.night .photo figcaption { color: #AEB8C4; }
.clock { font: 400 clamp(6rem, 17vw, 16rem)/0.8 var(--serif); letter-spacing: -0.04em; color: var(--cyan); margin-bottom: 28px; }
.alert h3 { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.015em; max-width: 15em; text-wrap: balance; }
.alert p:not(.clock):not(.status) { margin-top: 22px; max-width: 30em; }
.night .status { color: var(--cyan); }

/* ===== SETUP ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(48px, 7vw, 96px); }
.steps li { border-top: 2px solid var(--ink); padding-top: 12px; }
.step-n { display: block; font: 400 clamp(6rem, 12vw, 11rem)/0.9 var(--serif); color: var(--teal); letter-spacing: -0.04em; }
.steps h3 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; margin: 8px 0 14px; }
.steps p { max-width: 20em; }

/* ===== FAQ ===== */
.faq { background: var(--cream-2); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.faq .title { position: sticky; top: 40px; }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary {
  list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative;
  font: 400 clamp(1.6rem, 2.6vw, 2.3rem)/1.1 var(--serif); color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font: 400 2.4rem/1 var(--sans); color: var(--teal);
}
details[open] summary::after { content: "\2212"; }
details p { padding: 0 56px 28px 0; max-width: 34em; }

/* ===== FINAL WAITLIST ===== */
.final { background: var(--pink); color: var(--ink); overflow: hidden; padding-block: calc(var(--section) * 1.15); }
.final .title { font-size: clamp(3.4rem, 11vw, 10.5rem); line-height: 0.88; max-width: 8em; }
.final .kicker { color: var(--ink); }
.final .wrap { position: relative; z-index: 2; }
.fin {
  position: absolute; z-index: 1; right: -9vw; bottom: 0; width: clamp(280px, 40vw, 620px);
  transform: rotate(-8deg); pointer-events: none;
}

/* ===== FOOTER ===== */
.foot { background: var(--ink); color: #D8D5CA; padding-block: clamp(56px, 8vw, 110px) 40px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: end; }
.foot-mark { grid-column: 1 / -1; font: 400 clamp(5rem, 22vw, 20rem)/0.8 var(--serif); letter-spacing: -0.04em; color: var(--cream); }
.foot-copy { margin-top: 40px; font-size: 1rem; }
.foot-nav { display: flex; gap: 24px; font-size: 1rem; }
.foot-nav a { color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .readings { grid-template-columns: 1fr; gap: 36px; }
  .reading { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; align-items: end; }
  .num { font-size: clamp(5rem, 24vw, 9rem); }
  .cap { margin: 0 0 8px; }
  .hw-grid, .hw-head, .feature, .chart-head, .log-grid, .night-grid, .faq-grid { grid-template-columns: 1fr; }
  .hw-head { grid-column: auto; }
  .feature.flip .photo { order: 0; }
  .log-head, .faq .title { position: static; }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 5.2rem 1fr; column-gap: 20px; }
  .step-n { grid-row: span 2; font-size: 6rem; }
  .steps h3 { margin: 6px 0 6px; }
  .night-grid { align-items: start; }
  .fin { right: -18vw; bottom: 24px; width: 78vw; }
  .final .title { max-width: 6em; }
  .final { padding-bottom: 310px; }
}
@media (max-width: 600px) {
  .nav-in { padding-block: 16px; }
  .wordmark { font-size: 1.7rem; }
  .hero { padding-bottom: 170px; }
  .gus { width: 66vw; right: -3vw; bottom: -90px; }
  .join-row { flex-direction: column; }
  .join input { flex: none; width: 100%; }
  .join .btn { width: 100%; text-align: center; }
  .plot { margin: 8px 34px 40px 38px; aspect-ratio: 1000 / 560; }
  .lab { font-size: 12px; }
  .hide-sm { display: none; }
  .note { display: none; }
  .note svg { width: 2.6em; }
  .lab.event { width: 12em; font-size: 12px; left: 2% !important; top: 46% !important; }
  .lab.event b { font-size: 13px; }
  .lab.flow-l { display: none; }
  .log li { grid-template-columns: 1fr; gap: 4px; }
  .specs div { flex-direction: column; gap: 2px; }
  .specs dd { text-align: left; }
  .parts li { padding-left: 52px; }
  .foot-in { grid-template-columns: 1fr; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
