/* DelayBuster — one committed look: warm paper, ink, one hot signal colour.
   Hard edges and offset shadows; nothing floats, nothing glows. */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #f4efe4;
  --paper-2: #eae3d2;
  --card: #fffdf8;
  --ink: #17140f;
  --ink-2: #4d463b;
  --signal: #ff5b2e;
  --signal-soft: #ffd9cc;
  --go: #1c6a48;
  --go-soft: #d5ecdf;
  --warn: #a32a0c;
  --line: 2px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --r: 14px;
  --display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--signal); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn:focus-visible, .slip input:focus-visible { outline-color: var(--signal); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7.4vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h3 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.02em; }
.lede { font-size: clamp(1.06rem, 1.5vw, 1.25rem); line-height: 1.45; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.lede strong { color: var(--ink); }
.tag {
  font: 600 0.75rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mark { background: linear-gradient(transparent 58%, var(--signal) 58%, var(--signal) 92%, transparent 92%); padding-inline: 0.06em; margin-inline: -0.06em; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }

/* ---------- header ---------- */
.top { padding: 14px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 800 1.2rem/1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.top-link { font-size: 0.92rem; font-weight: 600; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  background: var(--signal); color: var(--ink);
  border: var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
  font: 700 1.08rem/1 var(--body); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .arr { font-family: var(--mono); transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--signal); }
.btn-ink:hover { box-shadow: 7px 7px 0 var(--signal); }
.btn-ink:active { box-shadow: 2px 2px 0 var(--signal); }
.btn-ghost { background: var(--card); box-shadow: none; font-weight: 600; }
.btn-ghost:hover { box-shadow: var(--shadow); }
.btn-sm { min-height: 46px; padding: 0 18px; font-size: 0.97rem; }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; padding: 6px 2px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.linkish:hover { text-decoration-color: var(--signal); }

/* ---------- the slip: the one input that matters ---------- */
.slip { display: grid; gap: 12px; }
.slip label { font: 700 1.02rem/1.2 var(--body); }
.slip-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.slip input[type="text"], .slip input[type="email"], .field {
  width: 100%; min-height: 56px; padding: 0 18px;
  background: var(--card); border: var(--line); border-radius: var(--r);
  font-size: 1.08rem; /* ≥16px: no iOS zoom */
  box-shadow: inset 3px 3px 0 var(--paper-2);
}
.slip input::placeholder, .field::placeholder { color: #7b7365; }
.slip input:focus, .field:focus { outline: 3px solid var(--signal); outline-offset: 2px; }
.assure { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; color: var(--ink-2); }
.assure li { display: inline-flex; align-items: center; gap: 6px; }
.assure li::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--go); clip-path: polygon(14% 52%, 0 67%, 38% 100%, 100% 22%, 84% 8%, 37% 68%); }
.err { color: var(--warn); font-weight: 600; font-size: 0.93rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 13px;
  background: transparent; border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: 0.93rem; font-weight: 500;
  transition: background .12s ease, transform .12s ease;
}
.chip:hover, .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip:active { transform: scale(.97); }

/* ---------- hero ---------- */
.hero { padding: clamp(10px, 2.2vw, 30px) 0 clamp(36px, 6vw, 72px); }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--ink); flex: none; }
.alt-paths { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.95rem; }
.alt-paths a { font-weight: 600; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr); }
}
@media (max-width: 560px) {
  .slip-row { grid-template-columns: 1fr; }
  .hero .chips .chip:nth-child(n+4) { display: none; }
}
@media (max-height: 700px) and (max-width: 560px) {
  .hero .display { font-size: 2.25rem; }
  .hero .chips { display: none; }
}

/* live preview card */
.demo {
  background: var(--card); border: var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 20px; display: grid; gap: 14px;
  transform: rotate(1.6deg);
  max-width: 420px; justify-self: center; width: 100%;
}
.demo-head { display: flex; justify-content: space-between; align-items: center; }
.demo-row { border-top: 1.5px dashed var(--ink); padding-top: 12px; display: grid; gap: 4px; }
.demo-row p { font-weight: 600; line-height: 1.3; }
.demo-row .strike { text-decoration: line-through; text-decoration-color: var(--signal); color: var(--ink-2); font-weight: 500; }
.demo-clock { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 12px 16px; }
.demo-clock b { font: 800 2.6rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.demo-clock span { font-size: 0.85rem; opacity: .85; text-align: right; }
.live { display: inline-flex; align-items: center; gap: 7px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- sections ---------- */
.band { padding: clamp(52px, 8vw, 104px) 0; }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink .muted, .band-ink .lede { color: #cfc7b6; }
.band-ink .lede strong { color: var(--paper); }
.band-2 { background: var(--paper-2); }
.rule { border-top: var(--line); }
.stack { display: grid; gap: clamp(22px, 3vw, 36px); }
.head { display: grid; gap: 14px; max-width: 46rem; }

/* timeline */
.steps { display: grid; gap: 0; border: var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.step { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding: 22px clamp(16px, 3vw, 28px); border-top: var(--line); }
.step:first-child { border-top: 0; }
.step-t { font: 800 1.5rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.step-t small { display: block; font: 600 0.68rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }
.step p { color: var(--ink-2); margin-top: 4px; max-width: 44em; }
.step.is-go { background: var(--signal-soft); }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: 6px; } }

/* rather-than table */
.versus { display: grid; gap: 0; border-top: 1.5px solid #5a5347; }
.versus li { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px 28px; padding: 18px 0; border-bottom: 1.5px solid #5a5347; }
.versus b { font: 700 1.2rem/1.2 var(--display); letter-spacing: -0.02em; }
.versus .win { border: 0; background: var(--signal); color: var(--ink); margin-top: 14px; padding: 20px; border-radius: var(--r); }
.versus .win span { color: var(--ink); }
.versus span { color: #cfc7b6; }
@media (max-width: 640px) { .versus li { grid-template-columns: 1fr; } }

/* path cards */
.paths { display: grid; gap: 18px; }
@media (min-width: 820px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path {
  display: grid; gap: 10px; align-content: start;
  background: var(--card); border: var(--line); border-radius: 18px; padding: 24px;
  text-decoration: none; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.path:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.path p { color: var(--ink-2); }
.path .go { font-weight: 700; margin-top: 6px; }
.path .tag { color: var(--ink-2); }

/* evidence */
.proof { display: grid; gap: 18px; }
@media (min-width: 760px) { .proof { grid-template-columns: repeat(2, 1fr); } }
.cite { border-left: 6px solid var(--signal); background: var(--card); padding: 18px 20px; border-radius: 0 var(--r) var(--r) 0; display: grid; gap: 8px; }
.cite p { color: var(--ink-2); }
.cite cite { font: 500 0.78rem/1.4 var(--mono); font-style: normal; color: var(--ink-2); }
.maker { display: grid; gap: 16px; border: var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); background: var(--card); }
.maker ul { display: flex; flex-wrap: wrap; gap: 8px; }
.maker li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 0.88rem; font-weight: 500; }

/* faq */
.faq { border-top: var(--line); }
.faq details { border-bottom: var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font: 700 1.15rem/1.25 var(--display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--mono); flex: none; transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 46em; }
.faq details p + p { margin-top: -10px; }

/* final */
.final { text-align: left; }
.final .slip { max-width: 720px; }

/* footer */
.foot { padding: 34px 0 110px; font-size: 0.88rem; color: var(--ink-2); border-top: var(--line); }
.foot .wrap { display: grid; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* sticky nudge (mobile + desktop, after hero leaves) */
.nudge {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--ink); color: var(--paper);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transform: translateY(110%); transition: transform .25s ease;
}
.nudge.on { transform: none; }
.nudge p { font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.nudge p span { display: block; font-weight: 400; opacity: .8; font-size: 0.85rem; }
.nudge .btn { box-shadow: none; border-color: var(--paper); }
@media (max-width: 420px) { .nudge p span { display: none; } }

/* ---------- app stage (start + quiz) ---------- */
.app { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.app-top { padding: 14px 0; }
.app-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.progress { flex: 1; max-width: 300px; height: 8px; border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; background: var(--card); }
.progress i { display: block; height: 100%; width: 0; background: var(--signal); transition: width .35s ease; }
.stage { width: min(680px, 100% - 2 * var(--gutter)); margin: clamp(8px, 4vh, 48px) auto 56px; }
.screen { display: grid; gap: 20px; animation: rise .32s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.screen .h2 { font-size: clamp(1.8rem, 5vw, 2.7rem); }
.screen:focus { outline: none; }
.task-echo { display: inline-flex; max-width: 100%; align-items: center; gap: 8px; background: var(--paper-2); border-radius: 8px; padding: 6px 10px; font-size: 0.92rem; }
.task-echo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  min-height: 58px; padding: 12px 18px;
  background: var(--card); border: var(--line); border-radius: var(--r);
  font-weight: 600; font-size: 1.02rem; line-height: 1.3;
  transition: transform .1s ease, box-shadow .1s ease, background .1s ease;
}
.opt:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.opt:active, .opt.picked { transform: none; box-shadow: none; background: var(--signal-soft); }
.opt kbd { font: 600 0.78rem/1 var(--mono); border: 1.5px solid var(--ink); border-radius: 6px; padding: 5px 7px; flex: none; background: var(--paper); }
@media (hover: none) { .opt kbd { display: none; } }
.coach { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.coach-av { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.coach-av svg { width: 22px; height: 22px; }
.coach-say { background: var(--card); border: var(--line); border-radius: 4px var(--r) var(--r) var(--r); padding: 16px 18px; font-size: 1.08rem; line-height: 1.45; }
.coach-say p + p { margin-top: 10px; }
.dots { display: inline-flex; gap: 5px; padding: 6px 0; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: bop 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bop { 50% { transform: translateY(-5px); opacity: .4; } }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.seg { display: inline-flex; border: var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: transparent; min-height: 44px; padding: 0 14px; white-space: nowrap; font-weight: 600; border-left: 1.5px solid var(--ink); }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pledge { border: var(--line); border-radius: var(--r); background: var(--card); padding: 18px; display: grid; gap: 6px; }
.pledge b { font: 700 1.3rem/1.25 var(--display); letter-spacing: -0.02em; }

/* timer */
.timer { text-align: center; display: grid; gap: 18px; justify-items: center; }
.clock { font: 800 clamp(5.5rem, 26vw, 11rem)/0.9 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.bar { width: 100%; height: 14px; border: var(--line); border-radius: 99px; overflow: hidden; background: var(--card); }
.bar i { display: block; height: 100%; background: var(--signal); width: 0; transition: width 1s linear; }
.now { border: var(--line); border-radius: var(--r); background: var(--card); padding: 16px 18px; width: 100%; text-align: left; }
.now b { display: block; font: 700 1.25rem/1.25 var(--display); letter-spacing: -0.02em; margin-top: 4px; }
.whisper { min-height: 3.2em; font-size: 1.08rem; color: var(--ink-2); max-width: 30em; transition: opacity .4s ease; }

/* done */
.stamp { display: inline-block; justify-self: start; border: 3px solid var(--go); color: var(--go); border-radius: 10px; padding: 8px 14px; font: 800 1.1rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; transform: rotate(-3deg); animation: thud .35s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes thud { from { transform: rotate(-3deg) scale(2.2); opacity: 0; } }
.save { border: var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-lg); padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.save ul.gets { display: grid; gap: 8px; }
.save ul.gets li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.save ul.gets li::before { content: ""; width: 16px; height: 16px; margin-top: 5px; background: var(--go); clip-path: polygon(14% 52%, 0 67%, 38% 100%, 100% 22%, 84% 8%, 37% 68%); }
.note { background: var(--go-soft); border-radius: var(--r); padding: 16px 18px; }
.crisis { background: var(--signal-soft); border: var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 10px; }

/* quiz result */
.result { border: var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-lg); padding: clamp(20px, 3.5vw, 34px); display: grid; gap: 16px; }
.result dl { display: grid; gap: 14px; margin: 0; }
.result dt { font: 600 0.75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.result dd { margin: 4px 0 0; }

/* legal */
.prose { max-width: 44rem; display: grid; gap: 16px; padding: 24px 0 72px; }
.prose h1 { font: 800 clamp(2rem, 5vw, 3rem)/1 var(--display); letter-spacing: -0.035em; }
.prose h2 { font: 700 1.3rem/1.2 var(--display); margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .demo { transform: none; }
}
