:root {
  --dusk0: #131024;
  --dusk1: #181430;
  --dusk2: #241d4e;
  --mid1: #2c2260;
  --mid2: #4a3670;
  --dawn1: #5a3d6e;
  --dawn2: #b06a5f;
  --light1: #c97f63;
  --light2: #f0c9a2;
  --ink: #f5eede;
  --ink-dim: rgba(245, 238, 222, 0.65);
  --done-ink: #3a2418;
  --done-ink-dim: rgba(58, 36, 24, 0.7);
  --peach: #e8a87c;
  --on-peach: #2a1a10;
  --sage: #9bd4c0;
  --sage-dark: #3d6e5c;
  --line: rgba(245, 238, 222, 0.16);
  --line-dark: rgba(58, 36, 24, 0.22);
  --bezel: #0c0a18;
  --serif: "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--dusk0);
  color: var(--ink);
  line-height: 1.65;
}

body.subpage {
  background: linear-gradient(170deg, var(--dusk0), var(--dusk1) 45%, var(--dusk2));
  min-height: 100vh;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

::selection { background: var(--peach); color: var(--on-peach); }

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

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(20px, 3vw, 30px) 0;
}
header.site img { width: 40px; height: 40px; border-radius: 10px; }
header.site .name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
header.site a { text-decoration: none; color: inherit; }
header.site nav { margin-left: auto; display: flex; gap: clamp(14px, 2.5vw, 26px); }
header.site nav a { color: var(--ink-dim); font-size: 0.88rem; }
header.site nav a:hover { color: var(--peach); }

/* ---------- Hero (dusk) ---------- */

.hero-phase { background: linear-gradient(180deg, var(--dusk0), var(--dusk1)); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
  padding: clamp(40px, 7vh, 90px) 0 clamp(60px, 9vh, 110px);
}

.eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--peach);
  margin-bottom: 26px;
}

.old-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--ink-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(232, 168, 124, 0.85);
  text-decoration-thickness: 2px;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.6vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin-bottom: 10px;
}
.hero h1 .turn { color: var(--peach); }

.hero .lead {
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  line-height: 1.75;
  max-width: 33em;
  margin: 18px 0 34px;
}

.badge-soon {
  display: inline-block;
  background: var(--peach);
  color: var(--on-peach);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
}
.badge-note { display: block; margin-top: 12px; font-size: 0.84rem; color: var(--ink-dim); }
.quiet-link { color: var(--ink-dim); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }
.quiet-link:hover { color: var(--peach); }
.hero .after-cta { margin-top: 26px; }

/* Device + orb */

.hero-stage { position: relative; display: flex; justify-content: center; }

.orb {
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, rgba(244, 199, 155, 0.5), rgba(232, 168, 124, 0.22) 45%, rgba(232, 168, 124, 0) 70%);
  animation: breathe 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  33% { transform: translate(-50%, -50%) scale(1.14); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.14); opacity: 1; }
}

.device {
  position: relative;
  background: var(--bezel);
  padding: 11px;
  border-radius: 50px;
  border: 1px solid var(--line);
  box-shadow: 0 34px 90px rgba(6, 4, 16, 0.65);
  width: 100%;
}
.device img { display: block; width: 100%; height: auto; border-radius: 39px; }
.hero-stage .device { max-width: min(310px, 78vw); }

/* Load reveal */

.reveal { animation: rise 0.9s var(--ease-out) both; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.3s; }
.reveal.d4 { animation-delay: 0.44s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  .reveal { animation: none; }
}

/* ---------- Section scaffolding ---------- */

section { padding: clamp(64px, 10vh, 120px) 0; }

.section-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--peach);
  margin-bottom: 14px;
}

section h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.2;
  max-width: 20em;
  margin-bottom: 14px;
}

.section-sub { color: var(--ink-dim); max-width: 40em; font-size: 1.02rem; }

/* ---------- The journey (rewire violet) ---------- */

.steps-phase { background: linear-gradient(180deg, var(--dusk1), var(--mid1) 45%, var(--mid2)); }

.journey { list-style: none; margin-top: clamp(40px, 6vh, 64px); max-width: 760px; }

.journey li {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(28px, 4.5vh, 40px) 0;
  border-top: 1px solid var(--line);
}
.journey li:last-child { border-bottom: 1px solid var(--line); }

.journey .marker { padding-top: 6px; }
.journey .segments { display: flex; gap: 5px; margin-bottom: 12px; }
.journey .segments span { width: 17px; height: 3px; border-radius: 2px; background: var(--line); }
.journey .segments span.on { background: var(--peach); }
.journey .phase-name {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}

.journey h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin-bottom: 8px;
}
.journey p { color: var(--ink-dim); max-width: 34em; }

/* ---------- Screens (violet to dawn) ---------- */

.screens-phase { background: linear-gradient(180deg, var(--mid2), var(--dawn1)); }

.screens {
  display: flex;
  gap: clamp(20px, 4vw, 44px);
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: clamp(40px, 6vh, 60px);
}
.screens figure { flex: 0 1 235px; min-width: 190px; }
.screens figure.lifted { transform: translateY(-26px); }
.screens figcaption {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-dim);
  margin-top: 16px;
}

/* ---------- Privacy (dawn) ---------- */

.privacy-phase { background: linear-gradient(180deg, var(--dawn1), var(--dawn2)); }

.vows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(36px, 5vh, 56px);
  max-width: 880px;
}
.vows div { border-top: 1px solid var(--line); padding-top: 18px; }
.vows h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sage);
  margin-bottom: 10px;
  font-weight: 600;
}
.vows p { color: var(--ink-dim); font-size: 0.95rem; }

.free-line {
  margin-top: clamp(44px, 6vh, 64px);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  max-width: 34em;
}

/* ---------- Disclaimer + footer (done light) ---------- */

.done-phase {
  background: linear-gradient(180deg, var(--dawn2), var(--light1) 45%, var(--light2));
  color: var(--done-ink);
}

.done-phase section { padding-bottom: clamp(30px, 5vh, 60px); }

.done-phase .section-label { color: #8a4b2e; }

.disclaimer-band {
  border: 1px dashed var(--line-dark);
  border-radius: 16px;
  padding: clamp(22px, 3.5vw, 34px);
  max-width: 780px;
}
.disclaimer-band p { color: var(--done-ink-dim); font-size: 0.95rem; max-width: 62em; }
.disclaimer-band strong { color: var(--done-ink); }
.disclaimer-band a { color: #8a4b2e; }

footer {
  padding: 20px 0 70px;
  font-size: 0.86rem;
}
footer .links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; }

/* Landing footer sits on the light phase */
.done-phase footer { color: var(--done-ink-dim); }
.done-phase footer a { color: #8a4b2e; text-decoration: none; }
.done-phase footer a:hover { text-decoration: underline; }

/* Subpage footer sits on dusk */
body.subpage footer { color: var(--ink-dim); border-top: 1px solid var(--line); margin-top: 40px; padding-top: 30px; }
body.subpage footer a { color: var(--peach); text-decoration: none; }
body.subpage footer a:hover { text-decoration: underline; }

/* ---------- Legal doc pages ---------- */

article.doc { max-width: 700px; padding: 24px 0 60px; }
article.doc h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.4rem); margin-bottom: 8px; }
article.doc .updated { color: var(--ink-dim); font-size: 0.85rem; margin-bottom: 34px; }
article.doc h2 { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; margin: 32px 0 10px; }
article.doc p, article.doc li { color: var(--ink-dim); margin-bottom: 12px; }
article.doc ul { padding-left: 22px; }
article.doc strong { color: var(--ink); }
article.doc a { color: var(--peach); }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero-stage { order: 2; margin-top: 10px; }
  .hero-stage .device { max-width: 240px; }
  .journey li { grid-template-columns: 1fr; gap: 14px; }
  .journey .marker { display: flex; align-items: baseline; gap: 14px; padding-top: 0; }
  .journey .segments { margin-bottom: 0; }
  .screens figure.lifted { transform: none; }
}
