/* Nightbrain — night-sky palette, serif = your voice, mono = the model's voice */
:root {
  --ink: #101322;
  --surface: #181c30;
  --surface-2: #1f2440;
  --line: #2a3052;
  --paper: #e9eaf2;
  --fog: #a8aec4;
  --faint: #6d7492;
  --dawn: #e8b15c;
  --interval: #7d93e0;
  --max: 1060px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: "Fraunces", Georgia, serif; }
.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

a { color: var(--paper); text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--dawn); }
a:focus-visible { outline: 2px solid var(--dawn); outline-offset: 3px; border-radius: 2px; }

/* Header */
header { padding: 28px 0; }
header .wrap { display: flex; justify-content: space-between; align-items: baseline; }
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.wordmark span { color: var(--dawn); }
nav a { margin-left: 22px; font-size: 0.9rem; color: var(--fog); text-decoration: none; }
nav a:hover { color: var(--paper); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 550;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--dawn); }
.hero .lede { margin-top: 22px; color: var(--fog); font-size: 1.06rem; max-width: 34em; }
.hero .beta { margin-top: 26px; }

/* Insight cards — the signature: honesty rendered */
.cards { display: grid; gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px 20px;
}
.card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 550;
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 8px 0 16px;
}
.card .mono.earned { color: var(--dawn); }

.interval { position: relative; height: 34px; margin: 4px 0 6px; }
.interval .track {
  position: absolute; top: 15px; left: 0; right: 0; height: 4px;
  background: var(--surface-2); border-radius: 2px;
}
.interval .zero {
  position: absolute; top: 6px; left: 68%; width: 1px; height: 22px;
  background: var(--faint);
}
.interval .zero::after {
  content: "0"; position: absolute; top: -16px; left: -3px;
  font-family: "IBM Plex Mono", monospace; font-size: 0.65rem; color: var(--faint);
}
.interval .band {
  position: absolute; top: 12px; left: 14%; width: 38%; height: 10px;
  background: color-mix(in srgb, var(--interval) 38%, transparent);
  border: 1px solid var(--interval);
  border-radius: 5px;
}
.interval .estimate {
  position: absolute; top: 8px; left: calc(14% + 19%); width: 2px; height: 18px;
  background: var(--interval); border-radius: 1px;
}
.card figcaption, .card .reading { font-family: "IBM Plex Mono", monospace; font-size: 0.74rem; color: var(--faint); letter-spacing: 0.02em; }

.progress { height: 4px; background: var(--surface-2); border-radius: 2px; margin: 14px 0 8px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 61%; background: var(--faint); border-radius: 2px; }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
.eyebrow { display: block; margin-bottom: 14px; }
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 550;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  max-width: 22em;
}
.section-body { margin-top: 18px; color: var(--fog); max-width: 44em; }
.section-body + .section-body { margin-top: 14px; }

/* Steps — a real sequence: the order is the product rule */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.step .mono { color: var(--dawn); }
.step h3 { font-family: "Fraunces", Georgia, serif; font-weight: 550; font-size: 1.2rem; margin: 10px 0 8px; }
.step p { color: var(--fog); font-size: 0.97rem; }

/* Devices */
.devices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.device {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 0.9rem; color: var(--fog);
}
.device.now { border-color: var(--dawn); color: var(--paper); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--faint); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--fog); }

/* Legal pages */
.legal { padding: 40px 0 80px; }
.legal h1 { font-family: "Fraunces", Georgia, serif; font-weight: 550; font-size: 2rem; margin-bottom: 6px; }
.legal .effective { color: var(--faint); margin-bottom: 32px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; max-width: none; }
.legal p, .legal li { color: var(--fog); max-width: 44em; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin: 6px 0; }

@media (max-width: 820px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
