/* MOAT — brand tokens lifted from backendbag.com (site/index.html) so this
   reads as the same company without being part of the same product. */

:root {
  --bg: #0a0a0c;
  --bg-elev: #141417;
  --card: #151519;
  --card-hi: #1b1b21;
  --border: #26262e;
  --border-hi: #33333d;
  --text: #f4f4f5;
  --dim: #a1a1aa;
  --dimmer: #71717a;
  --accent: #ff6b1a;
  --accent-2: #ff9d4d;
  --glow: rgba(255, 107, 26, .22);
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --maxw: 760px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.accent { color: var(--accent); }
.dim { color: var(--dim); }
.fine { color: var(--dimmer); font-size: 13.5px; line-height: 1.55; }

.kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}

/* ── top bar ───────────────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 12, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px;
  letter-spacing: -.01em; color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #0a0a0c; font-weight: 700; font-size: 13px;
}
.brand small { color: var(--dimmer); font-weight: 500; font-size: 12.5px; letter-spacing: 0; }

/* ── persistent MOAT stage rail ─────────────────────────────────────────── */

.stagerail { border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.stagerail-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.stage {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 9px;
  border: 1px solid transparent; min-width: 0;
  transition: background .2s ease, border-color .2s ease;
}
.stage .letter {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
  background: #202028; color: var(--dimmer);
}
.stage .name {
  font-size: 12.5px; color: var(--dimmer); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stage.done .letter { background: #2a2a33; color: var(--dim); }
.stage.done .name { color: var(--dim); }
.stage.active { background: rgba(255, 107, 26, .09); border-color: rgba(255, 107, 26, .3); }
.stage.active .letter { background: var(--accent); color: #0a0a0c; }
.stage.active .name { color: var(--text); font-weight: 600; }

@media (max-width: 620px) {
  /* The tagline and the "by Backend Bag" suffix both wrap at this width and
     double the header height — drop them rather than let the bar grow. */
  .topbar-inner > .fine, .brand small { display: none; }
  .topbar-inner { height: 54px; padding: 0 16px; }

  .stagerail-inner { gap: 5px; padding: 11px 14px; }
  .stage { flex-direction: column; gap: 5px; padding: 6px 3px; text-align: center; }
  .stage .name { font-size: 10.5px; white-space: normal; line-height: 1.25; }
}

/* ── progress bar ──────────────────────────────────────────────────────── */

.progress { height: 3px; background: #1c1c22; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .35s cubic-bezier(.4, 0, .2, 1); }

/* ── screens ───────────────────────────────────────────────────────────── */

main { padding: 44px 0 96px; }
.screen { animation: rise .34s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.screen-head { margin-bottom: 30px; }
.screen-head h1 { font-size: clamp(27px, 4.4vw, 38px); margin: 10px 0 12px; }
.screen-head p { color: var(--dim); max-width: 60ch; }

/* ── question card ─────────────────────────────────────────────────────── */

.qcount { font-size: 13px; color: var(--dimmer); font-family: 'Space Grotesk', sans-serif; letter-spacing: .04em; }
.qprompt { font-size: clamp(23px, 3.6vw, 31px); margin: 12px 0 0; }
.qwhy {
  margin: 16px 0 26px; padding: 13px 15px;
  background: rgba(255, 107, 26, .06);
  border-left: 2px solid var(--accent);
  border-radius: 0 9px 9px 0;
  color: var(--dim); font-size: 14.5px; line-height: 1.55;
}
.qwhy b { color: var(--accent); font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 5px; }

.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 13px; width: 100%; text-align: left;
  padding: 15px 17px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 16px; line-height: 1.45;
  cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.opt:hover { border-color: var(--border-hi); background: var(--card-hi); transform: translateX(2px); }
.opt.sel { border-color: var(--accent); background: rgba(255, 107, 26, .08); }
.opt .box {
  flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px;
  border: 1.5px solid var(--border-hi); display: grid; place-items: center;
  font-size: 12px; color: #0a0a0c; transition: all .16s ease;
}
.opt.sel .box { background: var(--accent); border-color: var(--accent); }
.opt .box::after { content: "✓"; opacity: 0; font-weight: 700; }
.opt.sel .box::after { opacity: 1; }
.opt .otext { min-width: 0; }
.opt .ohint { display: block; color: var(--dimmer); font-size: 13.5px; margin-top: 3px; line-height: 1.45; }

textarea.answer, input.answer {
  width: 100%; padding: 15px 17px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 16px; line-height: 1.5;
  resize: vertical; min-height: 116px;
}
textarea.answer:focus, input.answer:focus { outline: none; border-color: var(--accent); }
textarea.answer::placeholder, input.answer::placeholder { color: var(--dimmer); }

.navrow { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.navrow .spacer { flex: 1; }

/* ── buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #0a0a0c; box-shadow: 0 8px 30px -10px var(--glow); }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--glow); }
.btn-ghost { background: #161619; color: var(--text); border-color: var(--border-hi); }
.btn-ghost:hover:not(:disabled) { background: var(--card-hi); border-color: #454550; transform: translateY(-2px); }
.btn-quiet { background: transparent; color: var(--dim); padding: 13px 8px; }
.btn-quiet:hover:not(:disabled) { color: var(--text); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-lg { font-size: 16.5px; padding: 16px 30px; }

/* ── the framework, drawn ──────────────────────────────────────────────── */
/* Four stages in sequence, with the rule that gets you from each one to the
   next written on the connector — the sequence IS the framework, so the
   diagram has to show the gates, not just the four words. */

.moat-map { margin: 26px 0 6px; }
.moat-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: stretch; }
.moat-node {
  position: relative; padding: 18px 16px 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 13px; min-width: 0;
}
.moat-node + .moat-node { margin-left: 26px; }
.moat-node .badge {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px;
  background: #202028; color: var(--dim); margin-bottom: 11px;
  transition: background .3s ease, color .3s ease;
}
.moat-node:nth-child(1) .badge { background: var(--accent); color: #0a0a0c; }
.moat-node h4 { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; line-height: 1.25; margin-bottom: 6px; }
.moat-node p { font-size: 13px; color: var(--dimmer); line-height: 1.5; }

/* the connector, carrying the sequencing rule */
.moat-node + .moat-node::before {
  content: ""; position: absolute; left: -26px; top: 32px;
  width: 26px; height: 1px; background: linear-gradient(90deg, var(--border-hi), var(--accent));
}
.moat-node + .moat-node::after {
  content: ""; position: absolute; left: -8px; top: 28px;
  border: 4px solid transparent; border-left-color: var(--accent);
}
.moat-gates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; padding-left: 12.5%; }
.moat-gates div {
  font-size: 12px; color: var(--dimmer); line-height: 1.45;
  padding-left: 11px; border-left: 2px solid rgba(255, 107, 26, .35);
}
.moat-gates b { color: var(--accent); font-family: 'Space Grotesk', sans-serif; font-weight: 600; }

@media (max-width: 700px) {
  .moat-flow { grid-template-columns: 1fr; gap: 26px; }
  .moat-node + .moat-node { margin-left: 0; }
  .moat-node + .moat-node::before { left: 26px; top: -26px; width: 1px; height: 26px; background: linear-gradient(180deg, var(--border-hi), var(--accent)); }
  .moat-node + .moat-node::after { left: 22px; top: -8px; border-color: transparent; border-top-color: var(--accent); }
  .moat-gates { grid-template-columns: 1fr; padding-left: 0; margin-top: 18px; }
}

/* ── pricing / gate ────────────────────────────────────────────────────── */

.pricebox {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 4px 0 14px;
}
.pricebox .amt { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 38px; letter-spacing: -.02em; }
.pricebox .per { color: var(--dim); font-size: 15px; }
.pricebox .free {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 107, 26, .13); color: var(--accent);
  padding: 5px 11px; border-radius: 999px;
}
.terms { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 4px 0 18px; }
.terms li { display: flex; gap: 10px; color: var(--dim); font-size: 14.5px; line-height: 1.5; }
.terms li::before { content: "→"; color: var(--accent); flex: none; }
.statusbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--dim);
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px; margin-bottom: 16px;
}
.statusbar .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--ok); flex: none; }
.statusbar .dot.warn { background: var(--warn); }
.statusbar a { margin-left: auto; font-size: 13px; }

.prompt-hint {
  color: var(--dim); font-size: 15px; line-height: 1.55;
  margin: -6px 0 16px; max-width: 60ch;
}

.whofor {
  margin-top: 26px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev);
}
.whofor > b {
  display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--dimmer); margin-bottom: 11px;
}
.whorow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
.whorow span {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 107, 26, .1); color: var(--accent);
  border: 1px solid rgba(255, 107, 26, .22);
}

.followup { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.followup .flabel {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px;
  margin-bottom: 12px; line-height: 1.35;
}

/* ── intake: parts, receipts, checkpoints ──────────────────────────────── */

.partbar { display: flex; gap: 7px; margin-bottom: 18px; }
.partseg { flex: 1; min-width: 0; }
.segtrack { height: 4px; border-radius: 999px; background: #1e1e25; overflow: hidden; }
.segfill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .45s cubic-bezier(.22, 1, .36, 1);
}
.segname {
  font-size: 10.5px; color: var(--dimmer); margin-top: 6px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.partseg.on .segname { color: var(--accent); font-weight: 600; }
.partseg.done .segname { color: var(--dim); }
.partseg.done .segfill { background: #3a3a45; }
@media (max-width: 560px) { .segname { display: none; } .partbar { margin-bottom: 14px; } }

/* the receipt: one line acknowledging the answer just given */
.reflect {
  margin-top: 16px; padding: 0 0 0 13px;
  border-left: 2px solid var(--accent);
  color: var(--dim); font-size: 14.5px; line-height: 1.55;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .35s ease, opacity .3s ease, margin .35s ease;
}
.reflect.show { max-height: 90px; opacity: 1; }

/* the checkpoint between parts */
.checkpoint {
  background: var(--card); border: 1px solid var(--border-hi);
  border-radius: 16px; padding: 34px 30px;
}
.checkpoint h1 { font-size: clamp(24px, 4vw, 32px); margin: 10px 0 14px; }
.checkpoint .dim { font-size: 15.5px; max-width: 58ch; }
.established { list-style: none; margin: 20px 0 4px; display: flex; flex-direction: column; gap: 10px; }
.established li {
  display: flex; gap: 11px; font-size: 15px; color: var(--text); line-height: 1.5;
  animation: slideIn .4s cubic-bezier(.22, 1, .36, 1) both;
}
.established li::before { content: "✓"; color: var(--ok); font-weight: 700; flex: none; }
.established li:nth-child(2) { animation-delay: .07s; }
.established li:nth-child(3) { animation-delay: .14s; }
.established li:nth-child(4) { animation-delay: .21s; }
.established li:nth-child(5) { animation-delay: .28s; }
.established li:nth-child(n+6) { animation-delay: .35s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.nextpart {
  margin-top: 24px; padding: 14px 16px; border-radius: 11px;
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--dim); font-size: 14.5px; line-height: 1.55;
}
.nextpart b {
  display: block; color: var(--text); font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 15px; margin-bottom: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .established li { animation: none; }
  .segfill, .reflect { transition: none; }
}

/* ── describe-and-confirm ──────────────────────────────────────────────── */

.describe-input { min-height: 0; height: auto; }
.matched {
  display: flex; gap: 11px; align-items: flex-start; margin-top: 16px;
  padding: 13px 15px; border-radius: 11px;
  background: rgba(52, 199, 123, .07); border: 1px solid rgba(52, 199, 123, .25);
  font-size: 15px; line-height: 1.5;
}
.matched .mtick { color: var(--ok); font-weight: 700; flex: none; }
.matched b { color: var(--text); }
.linkbtn {
  background: none; border: 0; padding: 0; margin-left: 8px; cursor: pointer;
  color: var(--accent); font-family: inherit; font-size: 14px; text-decoration: underline;
  text-underline-offset: 3px;
}
.pickwrap { margin-top: 18px; }
.pickhead { font-size: 14.5px; color: var(--dim); margin-bottom: 14px; }
.pickgroup { margin-bottom: 14px; }
.pickgname {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 10.5px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--dimmer); margin-bottom: 7px;
}
.pickopt {
  display: inline-block; margin: 0 7px 7px 0; padding: 9px 14px;
  border-radius: 999px; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 14px; line-height: 1.3;
  transition: border-color .15s ease, background .15s ease;
}
.pickopt:hover { border-color: var(--border-hi); background: var(--card-hi); }
.pickopt.sel { border-color: var(--accent); background: rgba(255, 107, 26, .1); color: var(--accent); }

/* ── move queue ────────────────────────────────────────────────────────── */
/* Locked entries are deliberately quiet. They exist to show the sequence
   continues, not to hand out four moves at once. */

.completebar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 22px; padding: 18px 20px;
  background: var(--card); border: 1px solid var(--border-hi); border-radius: 13px;
}
.completebar h3 { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.completebar .fine { margin: 0; }
.completebar > div:first-child { flex: 1 1 260px; }
.completebar.done { border-color: rgba(52, 199, 123, .35); background: rgba(52, 199, 123, .06); }

.queue { margin-top: 22px; }
.queue-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.queue-head > div:first-child { flex: 1 1 200px; }
.queue-head .fine { margin-top: 3px; }
.qprogress {
  flex: 1 1 160px; height: 7px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border); overflow: hidden;
}
.qprogress-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .55s cubic-bezier(.22, 1, .36, 1);
}

.qitem {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 13px 16px; border-radius: 11px; margin-bottom: 8px;
  border: 1px solid var(--border); background: var(--card);
}
.qitem .qmark {
  flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12.5px;
}
.qitem .qlabel {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 10.5px;
  letter-spacing: .11em; text-transform: uppercase; color: var(--dimmer); margin-bottom: 3px;
}
.qitem p { font-size: 14.5px; line-height: 1.5; }
.qhint { display: block; font-size: 12.5px; color: var(--dimmer); margin-top: 3px; }

.qitem.done { border-color: rgba(52, 199, 123, .3); background: rgba(52, 199, 123, .05); }
.qitem.done .qmark { background: var(--ok); color: #0a0a0c; }
.qitem.done p { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(161,161,170,.4); }
.qitem.active { border-color: rgba(255, 107, 26, .45); background: var(--card-hi); }
.qitem.active .qmark { background: var(--accent); color: #0a0a0c; }
.qitem.locked { opacity: .62; }
.qitem.locked .qmark { background: #202028; }
.qitem.locked p { color: var(--dimmer); }

/* the reward: the bar fills and the freshly-done row settles in */
@keyframes lockIn {
  0% { transform: scale(.985); box-shadow: 0 0 0 0 rgba(52,199,123,.42); }
  55% { transform: scale(1.006); box-shadow: 0 0 0 12px rgba(52,199,123,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52,199,123,0); }
}
.queue.just-locked .qitem.done:last-of-type,
.queue.just-locked .qitem.done { animation: lockIn .85s cubic-bezier(.22,1,.36,1); }
.queue.just-locked .qitem.active { animation: lockIn .85s .18s cubic-bezier(.22,1,.36,1) backwards; }
@media (prefers-reduced-motion: reduce) {
  .queue.just-locked .qitem { animation: none; }
  .qprogress-fill { transition: none; }
}

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 18px; }
.plan {
  text-align: left; cursor: pointer; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; transition: border-color .16s ease, background .16s ease;
}
.plan:hover { border-color: var(--border-hi); }
.plan.sel { border-color: var(--accent); background: rgba(255, 107, 26, .08); }
.plan b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 17px; margin-bottom: 3px; }
.plan span { font-size: 13px; color: var(--dim); line-height: 1.4; }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

/* ── promo code ────────────────────────────────────────────────────────── */

.promo { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 16px; }
.promo-toggle {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px;
  color: var(--dim); display: inline-flex; align-items: center; gap: 7px;
}
.promo-toggle::before { content: "+"; color: var(--accent); font-size: 16px; line-height: 1; }
.promo-toggle.open::before { content: "\2212"; }
.promo-toggle:hover { color: var(--text); }
.promo-row { display: flex; gap: 9px; margin-top: 13px; flex-wrap: wrap; }
.promo-row input {
  flex: 1 1 190px; min-width: 0;
  background: var(--bg-elev); border: 1px solid var(--border-hi); color: var(--text);
  border-radius: 10px; padding: 12px 14px; font-family: inherit; font-size: 15px;
  letter-spacing: .06em; text-transform: uppercase;
}
.promo-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ── support fork ──────────────────────────────────────────────────────── */

.forkrow { display: grid; gap: 10px; margin: 16px 0 20px; }
.fork {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 14px 16px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--bg-elev);
  transition: border-color .16s ease, background .16s ease;
}
.fork:hover { border-color: var(--border-hi); }
.fork.selected { border-color: rgba(255, 107, 26, .5); background: var(--card-hi); }
.fork input { margin-top: 4px; accent-color: var(--accent); flex: none; }
.fork b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.fork span { font-size: 13.5px; color: var(--dim); line-height: 1.5; }

/* ── testimonial modal ─────────────────────────────────────────────────── */

.modal-wrap {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 22px; background: rgba(6, 6, 8, .72); backdrop-filter: blur(4px);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal {
  width: min(520px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border-hi);
  border-radius: 16px; padding: 28px;
  animation: riseIn .3s cubic-bezier(.22, 1, .36, 1);
}
@keyframes riseIn { from { transform: translateY(14px); opacity: 0 } to { transform: none; opacity: 1 } }
.modal h2 { font-size: 25px; margin: 8px 0 10px; }
.modal p { color: var(--dim); font-size: 15px; margin-bottom: 18px; }
.modal textarea, .modal input[type=text] {
  width: 100%; background: var(--bg-elev); border: 1px solid var(--border-hi);
  color: var(--text); border-radius: 10px; padding: 12px 14px;
  font-family: inherit; font-size: 15px; resize: vertical;
}
.checkline { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--dim); margin-bottom: 18px; cursor: pointer; }
.checkline input { accent-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .modal, .modal-wrap { animation: none; } }

/* ── what's working / never tried ──────────────────────────────────────── */

.strengths, .nevertried { margin-top: 28px; }
.strength, .untried {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 15px 17px; margin-bottom: 10px;
}
.strength { border-left: 3px solid var(--ok); }
.strength .tick { color: var(--ok); font-weight: 700; flex: none; line-height: 1.5; }
.strength h4, .untried h4 {
  font-family: 'Space Grotesk', sans-serif; font-size: 15.5px; font-weight: 600; margin-bottom: 4px;
}
.strength p, .untried p { font-size: 14.5px; color: var(--dim); line-height: 1.55; }

.untried .when {
  flex: none; font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; margin-top: 2px; white-space: nowrap;
}
.untried.now .when { background: rgba(255, 107, 26, .14); color: var(--accent); }
.untried.later .when { background: #202028; color: var(--dimmer); }
.untried.later { opacity: .82; }

/* ── move: metric, deliberate not-yet, what's next ─────────────────────── */

.metricbox, .notyetbox { border-radius: 11px; padding: 15px 17px; margin-top: 16px; }
.metricbox { background: rgba(52, 199, 123, .07); border: 1px solid rgba(52, 199, 123, .22); }
.notyetbox { background: var(--bg-elev); border: 1px solid var(--border); }
.metricbox h3, .notyetbox h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 7px;
}
.metricbox h3 { color: var(--ok); }
.notyetbox h3 { color: var(--dimmer); }
.metricbox p, .notyetbox p { font-size: 14.5px; color: var(--dim); line-height: 1.6; }

.nextbox {
  margin-top: 18px; padding: 16px 18px;
  border: 1px dashed var(--border-hi); border-radius: 12px; background: transparent;
}
.nextbox p { font-size: 15px; color: var(--dim); line-height: 1.6; }
.nextbox b { color: var(--text); }
.nextbox .fine { margin-top: 7px; }

/* ── findings ──────────────────────────────────────────────────────────── */

.finding {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; margin-bottom: 16px;
}
.finding-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.finding .area {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 11.5px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--dim);
}
.pill {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 11px;
  letter-spacing: .07em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.pill.critical { background: rgba(248, 113, 113, .14); color: var(--bad); }
.pill.watch { background: rgba(251, 191, 36, .14); color: var(--warn); }
.pill.solid { background: rgba(74, 222, 128, .13); color: var(--ok); }

.finding h3 { font-size: 20px; margin: 6px 0 12px; }
.finding p { color: var(--dim); font-size: 15.5px; line-height: 1.62; }

.gauge { margin: 16px 0 4px; }
.gauge-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--dimmer); margin-bottom: 6px; font-family: 'Space Grotesk', sans-serif; letter-spacing: .04em; }
.gauge-track { height: 8px; border-radius: 999px; background: #1e1e25; overflow: hidden; }
.gauge-fill { height: 100%; border-radius: 999px; transition: width .8s cubic-bezier(.3, .9, .3, 1); }
.gauge-fill.critical { background: linear-gradient(90deg, #b91c1c, var(--bad)); }
.gauge-fill.watch { background: linear-gradient(90deg, #b45309, var(--warn)); }
.gauge-fill.solid { background: linear-gradient(90deg, #15803d, var(--ok)); }
.gauge-cap { font-size: 12.5px; color: var(--dimmer); margin-top: 7px; }

.evidence { margin-top: 15px; border-top: 1px solid var(--border); padding-top: 13px; }
.evidence summary {
  list-style: none; cursor: pointer; font-size: 12.5px; color: var(--dimmer);
  font-family: 'Space Grotesk', sans-serif; letter-spacing: .05em; text-transform: uppercase;
}
.evidence summary::-webkit-details-marker { display: none; }
.evidence summary::before { content: "▸ "; color: var(--accent); }
.evidence[open] summary::before { content: "▾ "; }
.evidence ul { margin: 11px 0 0 2px; list-style: none; }
.evidence li { font-size: 13.5px; color: var(--dim); padding: 3px 0 3px 14px; position: relative; }
.evidence li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 999px; background: var(--border-hi); }

/* ── the One Move centrepiece ──────────────────────────────────────────── */

.movecard {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 107, 26, .1), rgba(255, 107, 26, .02) 55%, transparent);
  border: 1px solid rgba(255, 107, 26, .34);
  border-radius: 18px; padding: 34px 30px;
}
.movecard::before {
  content: ""; position: absolute; inset: -60% 0 auto 0; height: 260px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255, 107, 26, .16), transparent 70%);
  pointer-events: none;
}
.movecard > * { position: relative; }
.movetext {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(24px, 3.9vw, 35px); line-height: 1.2; letter-spacing: -.02em;
  margin: 14px 0 0;
}
.whybox { margin-top: 28px; }
.whybox h3 {
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px; font-weight: 600;
}
.whybox p { color: var(--dim); font-size: 16px; line-height: 1.68; }

.steps { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 20px; }
.steps h3 {
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 14px; font-weight: 600;
}
.steps ol { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 13px; color: var(--dim); font-size: 15px; line-height: 1.55; }
.steps li::before {
  content: counter(s); flex: none;
  width: 23px; height: 23px; border-radius: 7px; margin-top: 1px;
  background: #202028; color: var(--accent);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12.5px;
  display: grid; place-items: center;
}

/* ── action lists (Amplify / Target) ───────────────────────────────────── */

.action {
  display: flex; gap: 15px; padding: 19px 20px; margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 13px;
}
.action .n {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(255, 107, 26, .13); color: var(--accent);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
  display: grid; place-items: center;
}
.action h4 { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
.action p { color: var(--dim); font-size: 15px; line-height: 1.6; }

.notice {
  background: rgba(251, 191, 36, .07); border: 1px solid rgba(251, 191, 36, .28);
  border-radius: 12px; padding: 17px 19px; margin-bottom: 22px;
  color: var(--dim); font-size: 15px; line-height: 1.6;
}
.notice b { color: var(--warn); font-family: 'Space Grotesk', sans-serif; display: block; margin-bottom: 5px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* ── report ────────────────────────────────────────────────────────────── */

.report-sec { margin: 40px 0; padding-top: 30px; border-top: 1px solid var(--border); }
.report-sec:first-of-type { border-top: 0; padding-top: 0; }
.seclabel { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; }
.seclabel .letter {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--accent); color: #0a0a0c;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px;
  display: grid; place-items: center;
}
.seclabel .t { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.seclabel .b { font-size: 13px; color: var(--dimmer); }
.subhead {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dimmer);
  margin: 22px 0 10px;
}

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 6px; }

.answers-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.answers-table td { padding: 9px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.answers-table td:first-child { color: var(--dimmer); width: 45%; padding-right: 18px; }
.answers-table td:last-child { color: var(--dim); }

/* ── gate / escape hatch / misc ────────────────────────────────────────── */

.panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.panel h2 { font-size: 21px; margin-bottom: 10px; }
.panel p { color: var(--dim); font-size: 15.5px; line-height: 1.6; }
.panel + .panel { margin-top: 14px; }

.checklist { list-style: none; margin: 16px 0; display: flex; flex-direction: column; gap: 9px; }
.checklist li { display: flex; gap: 10px; color: var(--dim); font-size: 15px; line-height: 1.5; }
.checklist li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }

.field { margin-top: 16px; }
.field label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 7px; font-family: 'Space Grotesk', sans-serif; letter-spacing: .04em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 11px;
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 15.5px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }

.msg { margin-top: 14px; font-size: 14.5px; padding: 12px 15px; border-radius: 10px; display: none; }
.msg.show { display: block; }
.msg.ok { background: rgba(74, 222, 128, .1); color: var(--ok); border: 1px solid rgba(74, 222, 128, .25); }
.msg.err { background: rgba(248, 113, 113, .1); color: var(--bad); border: 1px solid rgba(248, 113, 113, .25); }

.center { text-align: center; }
.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(10, 10, 12, .3); border-top-color: #0a0a0c; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--dimmer); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── print: the report should be a real deliverable on paper too ───────── */

@media print {
  :root { --bg: #fff; --card: #fff; --text: #111; --dim: #333; --dimmer: #666; --border: #ddd; }
  body { background: #fff; color: #111; font-size: 11.5pt; }
  .topbar, .stagerail, .progress, .toolbar, footer, .no-print { display: none !important; }
  main { padding: 0; }
  .wrap { max-width: 100%; padding: 0; }
  .movecard { background: #fff8f3; border: 1px solid #ffb27a; }
  .movecard::before { display: none; }
  .finding, .action, .panel { border: 1px solid #ddd; break-inside: avoid; }
  .report-sec { break-inside: avoid-page; }
  .seclabel .letter { background: #ff6b1a !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .gauge-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .evidence[open] summary { color: #666; }
  a { color: #111; }
}
