:root {
  --ink: #14181F;
  --slate: #232C3A;
  --limestone: #E9E3D6;
  --cream: #F6F2E9;
  --ember: #C4552D;
  --ember-deep: #A8431F;
  --line: rgba(20, 24, 31, 0.12);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.js [data-fade] { opacity: 0; }

/* Global noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; transition: transform 0.25s var(--ease); }
a:hover { transform: translateY(-1px); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

.serif { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
.mono { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 7rem 0; }
.eyebrow { color: var(--ember); margin-bottom: 1rem; display: block; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.lead { font-size: 1.15rem; max-width: 40rem; color: rgba(20, 24, 31, 0.75); margin: 1.2rem 0 0; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease);
}
.btn:hover { transform: scale(1.03); }
.btn-bg {
  position: absolute;
  inset: 0;
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}
.btn:hover .btn-bg { transform: translateY(0); }
.btn-label { position: relative; z-index: 1; }
.btn-ember { background: var(--ember); color: #fff; }
.btn-ember .btn-bg { background: var(--ember-deep); }
.btn-ghost { border-color: rgba(246, 242, 233, 0.4); color: var(--cream); }
.btn-ghost .btn-bg { background: rgba(246, 242, 233, 0.14); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink .btn-bg { background: var(--slate); }

/* Navbar */
.nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(960px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.6rem 0.6rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--cream);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(246, 242, 233, 0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--ink);
  border-color: var(--line);
}
.nav .logo { font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.nav .btn { padding: 0.7rem 1.3rem; font-size: 0.92rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 4.5rem;
  color: var(--cream);
  background:
    radial-gradient(60% 55% at 12% 100%, rgba(196, 85, 45, 0.55), transparent 70%),
    linear-gradient(180deg, var(--slate) 0%, var(--ink) 100%);
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(233, 227, 214, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 227, 214, 0.5) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
}
.hero h1 { font-size: clamp(2.8rem, 8vw, 6.4rem); max-width: 14ch; }
.hero h1 .serif { display: block; font-size: 1.35em; line-height: 0.95; color: #F0B79F; }
.hero p.sub { font-size: 1.25rem; max-width: 34rem; margin: 1.6rem 0 2rem; color: rgba(246, 242, 233, 0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-note { margin-top: 1.2rem; color: rgba(246, 242, 233, 0.6); }
.proof-row { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(246, 242, 233, 0.18); }
.proof-row strong { display: block; font-size: 2rem; letter-spacing: -0.03em; }
.proof-row span { color: rgba(246, 242, 233, 0.65); font-size: 0.9rem; }

/* Feature cards */
.cards { display: grid; gap: 1.5rem; margin-top: 3.5rem; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--limestone);
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 18px 40px -22px rgba(20, 24, 31, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card .say { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.35rem; line-height: 1.2; }
.card p { margin: 0; color: rgba(20, 24, 31, 0.75); }
.micro {
  height: 210px;
  border-radius: 1.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

/* Shuffler */
.shuffle-card {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 22px;
  height: 110px;
  border-radius: 1.2rem;
  background: var(--slate);
  color: var(--cream);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.7s, background 0.7s;
}
.shuffle-card b { font-size: 1.05rem; }
.shuffle-card span { font-size: 0.85rem; opacity: 0.75; }
.shuffle-card[data-pos="0"] { transform: translateY(70px) scale(1); opacity: 1; z-index: 3; background: var(--ink); }
.shuffle-card[data-pos="1"] { transform: translateY(40px) scale(0.94); opacity: 0.75; z-index: 2; }
.shuffle-card[data-pos="2"] { transform: translateY(14px) scale(0.88); opacity: 0.5; z-index: 1; }
.shuffle-card[data-pos="3"] { transform: translateY(0) scale(0.82); opacity: 0; z-index: 0; }

/* Typewriter */
.feed { padding: 1rem 1.2rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; line-height: 1.7; color: var(--ink); }
.feed-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; color: var(--ember); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); animation: pulse 1.6s infinite; display: inline-block; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(1.5); } }
.cursor { display: inline-block; width: 7px; height: 1em; background: var(--ember); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Scheduler */
.sched { padding: 1rem 1.1rem; }
.sched-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 0.4rem; }
.day {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  transition: background 0.3s, color 0.3s;
}
.day.on { background: var(--ember); color: #fff; border-color: var(--ember); }
.sched-save {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.8rem;
  transition: background 0.3s;
}
.sched-save.done { background: var(--ember); }
.fake-cursor { position: absolute; width: 22px; height: 22px; left: 0; top: 0; opacity: 0; pointer-events: none; z-index: 5; }

/* Offer detail */
.start-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: 3rem;
  padding: 3rem;
  margin-top: 3.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  background-image: radial-gradient(70% 90% at 100% 100%, rgba(196, 85, 45, 0.4), transparent 70%);
}
.start-card h3 { font-size: 2.1rem; }
.start-card p { color: rgba(246, 242, 233, 0.8); margin: 0.8rem 0 0; }
.start-meta { display: grid; gap: 0.6rem; }
.start-meta div { border-top: 1px solid rgba(246, 242, 233, 0.2); padding-top: 0.6rem; }
.start-meta b { font-size: 1.4rem; display: block; }
.offers { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; }
.offer {
  background: var(--limestone);
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 2rem;
}
.offer .tag { color: var(--ember); }
.offer h3 { margin: 0.5rem 0 1rem; }
.offer dl { margin: 1.2rem 0 0; display: grid; gap: 0.9rem; }
.offer dt { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(20, 24, 31, 0.55); }
.offer dd { margin: 0.15rem 0 0; }
.founding { margin-top: 1.5rem; padding: 1.2rem 1.6rem; border-radius: 1.5rem; border: 1px dashed rgba(20, 24, 31, 0.3); }

/* Manifesto */
.manifesto { position: relative; background: var(--ink); color: var(--cream); overflow: hidden; padding: 9rem 0; }
.manifesto-bg {
  position: absolute;
  inset: -20% 0;
  opacity: 0.1;
  background-image: repeating-linear-gradient(115deg, transparent 0 46px, rgba(233, 227, 214, 0.7) 46px 47px);
}
.manifesto small { display: block; font-size: 1.3rem; color: rgba(246, 242, 233, 0.65); margin-bottom: 1.5rem; }
.manifesto .big { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1; max-width: 16ch; }
.manifesto .big em { color: var(--ember); font-style: italic; }
.verse { margin-top: 2.5rem; color: rgba(246, 242, 233, 0.6); }

/* Method stack */
.stack { position: relative; margin-top: 3rem; }
.step {
  position: relative;
  min-height: 78vh;
  border-radius: 3rem;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  background: var(--limestone);
  border: 1px solid var(--line);
  transform-origin: top center;
  will-change: transform, filter, opacity;
}
.step:nth-child(even) { background: var(--slate); color: var(--cream); }
.step .num { font-family: 'IBM Plex Mono', monospace; color: var(--ember); font-size: 1rem; }
.step h3 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0.8rem 0 1rem; }
.step p { font-size: 1.15rem; max-width: 28rem; margin: 0; opacity: 0.85; }
.step svg { width: 100%; max-width: 340px; justify-self: center; }

/* Fit and about */
.two { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; margin-top: 3rem; }
.panel { border-radius: 2rem; padding: 2.2rem; border: 1px solid var(--line); background: var(--limestone); }
.panel.dark { background: var(--slate); color: var(--cream); }
.panel ul { margin: 1.2rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.7rem; }
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  border-radius: 3rem;
  padding: 3rem;
  background:
    radial-gradient(70% 60% at 15% 100%, rgba(196, 85, 45, 0.6), transparent 70%),
    linear-gradient(160deg, var(--slate), var(--ink));
  color: var(--cream);
}
.about .eyebrow { color: #F0B79F; }
.about .lead { color: rgba(246, 242, 233, 0.82); }
.about .portrait { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.about .portrait img { width: min(78%, 280px); height: auto; border-radius: 50%; align-self: center; }
.about .portrait .serif { font-size: 2.4rem; line-height: 1; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 1.4rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 1.25rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ember); font-size: 1.6rem; line-height: 1; transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 1rem 0 0; max-width: 44rem; color: rgba(20, 24, 31, 0.75); }

/* CTA + footer */
.cta { text-align: center; }
.cta h2 { max-width: 16ch; margin: 0 auto; }
.cta .lead { margin: 1.4rem auto 2rem; }
footer {
  background: var(--ink);
  color: var(--cream);
  border-radius: 4rem 4rem 0 0;
  padding: 5rem 0 2.5rem;
}
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr; }
.foot-grid a { display: block; margin: 0.5rem 0; color: rgba(246, 242, 233, 0.75); }
.foot-grid a.foot-badge { display: block; width: fit-content; margin-top: 1.5rem; }
.foot-badge img { display: block; max-width: 100%; height: auto; }
.status { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.2rem; color: rgba(246, 242, 233, 0.8); }
.legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(246, 242, 233, 0.15); color: rgba(246, 242, 233, 0.55); font-size: 0.85rem; display: grid; gap: 0.4rem; }

/* Responsive */
@media (max-width: 1080px) {
  .cards, .offers { grid-template-columns: 1fr; }
  .start-card, .step, .about, .two, .foot-grid { grid-template-columns: 1fr; }
  .step { min-height: auto; }
}
@media (max-width: 768px) {
  .nav ul { display: none; }
  .section { padding: 5rem 0; }
  .start-card, .step, .about { padding: 2rem; border-radius: 2rem; }
  .proof-row { gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .js [data-fade] { opacity: 1; }
}

/* Utilities */
[hidden] { display: none !important; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button { font-family: inherit; font-size: inherit; color: inherit; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn-wide { width: 100%; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); transition: transform 0.35s var(--ease), color 0.35s var(--ease); }
.btn-outline .btn-bg { background: var(--ink); }
.btn-outline:hover { color: var(--cream); }
.inline-link { color: var(--ember-deep); font-weight: 600; border-bottom: 1px solid currentColor; }
:where(.test-shell, .burden) :where(p, h3, h4, h5, dl, dd, ol, fieldset) { margin: 0; }

/* Forms on dark cards */
.request-form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.45rem; }
.field-label { font-size: 0.82rem; font-weight: 600; color: rgba(246, 242, 233, 0.85); }
.request-form input[type="text"], .request-form input[type="email"] {
  width: 100%;
  background: rgba(246, 242, 233, 0.06);
  border: 1px solid rgba(246, 242, 233, 0.2);
  color: var(--cream);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  font: inherit;
  transition: border-color 0.25s, background 0.25s;
}
.request-form input:focus { outline: none; border-color: #F0B79F; background: rgba(246, 242, 233, 0.1); }
.field-hint { font-size: 0.8rem; color: rgba(246, 242, 233, 0.6); }
.field-err { font-size: 0.8rem; color: #F0B79F; min-height: 1em; }
.form-success { background: rgba(196, 85, 45, 0.16); border: 1px solid var(--ember); border-radius: 1.5rem; padding: 1.5rem; display: grid; gap: 0.6rem; }
.success-title { font-size: 2rem; line-height: 1; color: #F0B79F; }
.form-success .btn { justify-self: start; margin-top: 0.4rem; }
.send-title { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 2rem; line-height: 1.1; letter-spacing: -0.01em; margin-top: 0.6rem; }

/* Burden Page download */
.burden {
  scroll-margin-top: 6rem;
  margin-top: 1rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 3rem;
  padding: 3rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  background-image: radial-gradient(70% 90% at 0% 100%, rgba(196, 85, 45, 0.35), transparent 70%);
}
.burden > div > p { margin-top: 0.8rem; color: rgba(246, 242, 233, 0.8); }

/* Two-Week Test */
.test { scroll-margin-top: 5rem; }
.test-shell {
  margin-top: 2.5rem;
  background: var(--limestone);
  border: 1px solid var(--line);
  border-radius: 3rem;
  padding: 3rem;
  box-shadow: 0 40px 80px -50px rgba(20, 24, 31, 0.45);
}
.test-steps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; counter-reset: step; }
.test-steps li { padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid rgba(20, 24, 31, 0.2); color: rgba(20, 24, 31, 0.55); counter-increment: step; }
.test-steps li::before { content: counter(step) ". "; }
.test-steps li.is-current { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.test-steps li.is-done { color: var(--ember-deep); border-color: var(--ember); }
.stage-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); text-wrap: balance; }
.stage-hint { margin-top: 0.4rem; color: rgba(20, 24, 31, 0.65); }
.stage-err { margin-top: 1rem; min-height: 1.2em; font-size: 0.92rem; color: var(--ember-deep); font-weight: 600; }
.stage-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.chip-grid { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  cursor: pointer;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 24, 31, 0.25);
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.chip:hover { transform: translateY(-1px); border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip[aria-pressed="true"]::before { content: "\2713  "; color: #F0B79F; }
.add-row { margin-top: 1rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.add-row input { flex: 1 1 220px; min-width: 0; }
.stage-fields { margin-top: 2rem; display: grid; gap: 1.25rem; max-width: 40rem; }
.field-light { display: grid; gap: 0.45rem; }
.field-light label { font-size: 0.88rem; font-weight: 600; }
.optional { font-weight: 400; color: rgba(20, 24, 31, 0.55); }
.test-shell input[type="text"], .test-shell input[type="number"] {
  width: 100%;
  background: var(--cream);
  border: 1px solid rgba(20, 24, 31, 0.22);
  color: var(--ink);
  border-radius: 1rem;
  padding: 0.8rem 1rem;
  font: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.test-shell input[type="text"]:focus, .test-shell input[type="number"]:focus { outline: none; border-color: var(--ember); background: #fff; }
.test-shell .request-form input[type="text"], .test-shell .request-form input[type="email"] { background: rgba(246, 242, 233, 0.06); border-color: rgba(246, 242, 233, 0.2); color: var(--cream); }
.test-shell .request-form input:focus { border-color: #F0B79F; background: rgba(246, 242, 233, 0.1); }
.check-light { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; color: rgba(20, 24, 31, 0.8); cursor: pointer; }
.check-light input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--ember); flex: none; }

.wf-rows { margin-top: 1.5rem; display: grid; gap: 1rem; }
.wf-card { border: 1px solid var(--line); background: var(--cream); border-radius: 2rem; padding: 1.4rem; display: grid; gap: 1.1rem; transition: border-color 0.25s, box-shadow 0.25s; }
.wf-card.missing { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(196, 85, 45, 0.18); }
.owner-q { margin-top: 1rem; }
.wf-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.q { border: 0; padding: 0; min-width: 0; display: grid; gap: 0.5rem; }
.q-legend { font-size: 0.85rem; font-weight: 600; color: rgba(20, 24, 31, 0.8); padding: 0; }
.hours-q input { max-width: 9rem; }
.seg { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { cursor: pointer; padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid rgba(20, 24, 31, 0.22); background: var(--limestone); font-size: 0.88rem; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.seg label:hover { border-color: var(--ink); }
.seg input:checked + label { background: var(--ember); border-color: var(--ember); color: #fff; font-weight: 600; }
.seg input:focus-visible + label { outline: 3px solid var(--ember); outline-offset: 2px; }

.result-title { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; color: var(--ember-deep); outline: none; text-wrap: balance; }
.stat-row { margin-top: 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--ink); color: var(--cream); border-radius: 1.5rem; padding: 1.3rem 1.4rem; display: grid; gap: 0.35rem; align-content: start; }
.stat-num { font-family: 'IBM Plex Mono', monospace; font-size: 2rem; color: #F0B79F; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.88rem; color: rgba(246, 242, 233, 0.75); line-height: 1.4; }
.result-block { margin-top: 2.5rem; }
.block-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.block-hint { margin-top: 0.3rem; font-size: 0.9rem; color: rgba(20, 24, 31, 0.6); }
.map-bars { margin-top: 1.2rem; display: grid; gap: 1.1rem; }
.bar-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.bar-name { font-weight: 600; }
.bar-row.is-top .bar-name { color: var(--ember-deep); }
.bar-track { margin-top: 0.45rem; height: 12px; border-radius: 999px; background: rgba(20, 24, 31, 0.08); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--slate); transition: width 0.9s var(--ease); }
.bar-row.is-top .bar-fill { background: var(--ember); }
.bar-meta { margin-top: 0.35rem; font-size: 0.72rem; color: rgba(20, 24, 31, 0.6); }
.wf-status { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; }
.wf-status-stops { background: rgba(196, 85, 45, 0.18); color: var(--ember-deep); }
.wf-status-slows { background: rgba(20, 24, 31, 0.08); color: rgba(20, 24, 31, 0.75); }
.wf-status-runs { background: rgba(35, 44, 58, 0.12); color: var(--slate); }
.first-step { background: var(--cream); border-radius: 2rem; padding: 1.5rem 1.6rem; }
.first-step p { margin-top: 0.6rem; line-height: 1.65; font-size: 1.05rem; }
.verdict p { margin-top: 0.6rem; line-height: 1.65; max-width: 44rem; color: rgba(20, 24, 31, 0.85); }
.verdict .btn { margin-top: 1.2rem; }
.test-shell .finance-note { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: 1.2rem; background: rgba(196, 85, 45, 0.1); font-size: 0.94rem; }

.board { margin-top: 1rem; background: #FFFDF8; border: 1px solid var(--line); border-radius: 1.5rem; padding: 1.75rem; max-width: 46rem; box-shadow: 0 20px 40px -30px rgba(20, 24, 31, 0.4); }
.board-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: rgba(20, 24, 31, 0.55); border-bottom: 1px solid var(--line); padding-bottom: 0.8rem; }
.board-title { margin-top: 1rem; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.8rem; font-weight: 600; }
.board-list { margin-top: 1rem; display: grid; gap: 0.3rem; }
.board-list dt { margin-top: 0.8rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember-deep); }
.board-list dd { line-height: 1.6; font-size: 0.96rem; }
.board-foot { margin-top: 1.4rem; padding-top: 0.8rem; border-top: 1px solid var(--line); color: rgba(20, 24, 31, 0.5); font-size: 0.68rem; }
.board-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.copy-status { font-size: 0.82rem; color: var(--ember-deep); }

.send-card { margin-top: 2.5rem; background: var(--ink); color: var(--cream); border-radius: 2.5rem; padding: 2.5rem; display: grid; gap: 1.75rem; grid-template-columns: 1fr 1fr; }
.send-card > div > p { margin-top: 0.8rem; line-height: 1.6; color: rgba(246, 242, 233, 0.8); }
.send-alt a { color: #F0B79F; border-bottom: 1px solid currentColor; }
.restart { margin-top: 2rem; padding: 0; background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; font-size: 0.92rem; font-weight: 600; color: var(--ember-deep); }

@media (min-width: 900px) {
  .wf-card:not(.owner-q) { grid-template-columns: 1fr 1fr; }
  .wf-name { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .burden, .send-card, .stat-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .test-shell { padding: 1.5rem; border-radius: 2rem; }
  .burden, .send-card { padding: 1.75rem; border-radius: 2rem; }
}

/* Print: board summary only */
@media print {
  body::before, .nav { display: none !important; }
  body * { visibility: hidden !important; }
  #boardSummary, #boardSummary * { visibility: visible !important; }
  #boardSummary { position: absolute; left: 0; top: 0; width: 100%; max-width: none; border: 0; box-shadow: none; }
}

/* Restructure additions */
.card dl { margin: 0; display: grid; gap: 0.9rem; }
.card dt { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(20, 24, 31, 0.55); }
.card dd { margin: 0.15rem 0 0; }
.convictions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.convictions div { border-top: 1px solid rgba(246, 242, 233, 0.25); padding-top: 1rem; }
.convictions b { display: block; font-size: 1.2rem; margin-bottom: 0.4rem; }
.convictions span { color: rgba(246, 242, 233, 0.75); }
.manifesto .eyebrow { margin-bottom: 1.5rem; }
@media (max-width: 1080px) { .convictions { grid-template-columns: 1fr; } .nav ul { gap: 1rem; font-size: 0.88rem; } }
