/* Decision Review #1 — design system. Calm, trustworthy, public-facing. */
:root {
  --ink: #1a2233;
  --ink-soft: #4a5568;
  --ink-faint: #6b7585;
  --line: #e3e7ee;
  --line-soft: #eef1f6;
  --bg: #f7f5f0;        /* warm off-white */
  --card: #ffffff;
  --navy: #1a3a5c;
  --navy-deep: #0f2438;
  --accent: #c8772e;    /* terracotta — the "checkpoint" / human-gate color */
  --accent-soft: #f4e7d6;
  --good: #1f7a4d;
  --good-soft: #e7f4ec;
  --warn: #9a6a12;
  --bad: #b03a2e;
  --ai: #6b46c1;
  --ai-soft: #efeaf9;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(20, 30, 50, 0.04), 0 8px 30px -12px rgba(20, 30, 50, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.6); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { font-weight: 700; letter-spacing: -0.01em; color: var(--navy-deep); display: flex; align-items: center; gap: 6px; }
.brand-dot { color: var(--accent); }
.brand-sub { font-weight: 500; color: var(--ink-faint); font-size: 0.86rem; }
.header-note { font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.01em; }
@media (max-width: 560px) { .header-note { display: none; } }

.site-footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 26px 0 60px; }
.site-footer p { font-size: 0.82rem; color: var(--ink-faint); max-width: 620px; }

/* Steps */
.step { padding: 44px 0 8px; animation: fade 0.35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-head { margin-bottom: 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.72rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.step-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--navy-deep); letter-spacing: -0.01em; }

/* Intro */
.hook { font-family: var(--serif); font-weight: 600; font-size: 2.5rem; line-height: 1.12; letter-spacing: -0.02em; color: var(--navy-deep); margin-bottom: 18px; }
.hook-accent { color: var(--accent); font-style: italic; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 640px; margin-bottom: 30px; }
.lede strong { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .hook { font-size: 1.95rem; } .lede { font-size: 1rem; } }

.field-label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; color: var(--ink); }
.field-help { font-size: 0.86rem; color: var(--ink-faint); margin-bottom: 12px; }
.freetext {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  background: var(--card); resize: vertical; line-height: 1.55; transition: border-color 0.15s;
}
.freetext:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,92,0.08); }
.microcopy { font-size: 0.8rem; color: var(--ink-faint); margin-top: 14px; }

/* Buttons */
.actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.actions.center { justify-content: center; }
.btn {
  font-family: var(--font); font-size: 0.96rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; border-radius: 10px; padding: 12px 20px; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); color: var(--ink); }
.btn-confirm { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(200,119,46,0.7); }
.btn-confirm:hover { background: #b06a26; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* Questions */
.questions { display: flex; flex-direction: column; gap: 4px; }
.q {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 10px;
}
.q-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.q-label { font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.q-help { font-size: 0.83rem; color: var(--ink-faint); margin-top: 2px; }
.q-proposed { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ai); background: var(--ai-soft); padding: 3px 8px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.q-input-row { margin-top: 11px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inp, .sel {
  font-family: var(--font); font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 12px; transition: border-color 0.15s;
}
.inp:focus, .sel:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,92,0.08); }
.inp-money { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; transition: border-color 0.15s; }
.inp-money:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,92,0.08); }
.inp-money .cur { padding: 10px 4px 10px 12px; color: var(--ink-faint); font-weight: 600; }
.inp-money .inp { border: none; box-shadow: none; padding-left: 4px; width: 130px; }
.inp-money .inp:focus { box-shadow: none; }
.inp-pct { width: 90px; }
.inp-suffix { color: var(--ink-faint); font-size: 0.92rem; }
.sel { min-width: 220px; cursor: pointer; }
.inp-text { width: 100%; }

.form-errors {
  background: #fdf3f1; border: 1px solid #f3c9c2; color: var(--bad);
  border-radius: var(--radius); padding: 14px 16px; margin-top: 14px; font-size: 0.9rem;
}
.form-errors ul { margin: 6px 0 0 18px; }

/* Confirm gate */
.gate {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--accent-soft); border: 1.5px solid #e7c79f; border-left: 5px solid var(--accent);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px;
}
.gate-mark {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem;
}
.gate-lead { font-weight: 700; color: #7a4818; margin-bottom: 3px; }
.gate-text { font-size: 0.92rem; color: #6e4a26; }
.gate-text strong { color: #5a3411; }

.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 560px) { .review-grid { grid-template-columns: 1fr; } }
.review-item { background: var(--card); padding: 13px 16px; }
.review-k { font-size: 0.76rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.review-v { font-size: 1rem; color: var(--ink); margin-top: 3px; font-weight: 500; }

/* Loading */
.loading { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 0.95rem; padding: 30px 0; }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Report */
.report { animation: fade 0.4s ease; }
.report-eyebrow { text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.72rem; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.verdict {
  border-radius: var(--radius-lg); padding: 28px 28px 26px; margin-bottom: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.verdict.charge { background: linear-gradient(180deg, #f0f6ff, #fff); border-color: #cfe0f3; }
.verdict.fold { background: linear-gradient(180deg, #f3f0fb, #fff); border-color: #ddd2f1; }
.verdict.defend { background: linear-gradient(180deg, #fef3ec, #fff); border-color: #f1d6c2; }
.verdict-call { font-family: var(--serif); font-size: 2rem; font-weight: 600; letter-spacing: -0.015em; color: var(--navy-deep); line-height: 1.15; }
.verdict-sub { font-size: 1.05rem; color: var(--ink-soft); margin-top: 8px; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr 1fr; } }
.card-cell { background: var(--card); padding: 14px 15px; }
.card-cell .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); font-weight: 600; }
.card-cell .v { font-size: 1.15rem; font-weight: 700; color: var(--navy-deep); margin-top: 4px; line-height: 1.2; }
.card-cell .v.small { font-size: 0.98rem; }
.card-note { font-size: 0.78rem; color: var(--ink-faint); margin: 6px 2px 24px; }

.section { margin-bottom: 22px; }
.section h3 { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--navy-deep); margin-bottom: 8px; }
.section p { color: var(--ink-soft); }
.section.flip { background: var(--card); border: 1px solid #e7c79f; border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; }
.section.flip h3 { color: #7a4818; }
.section.flip p { color: #6e4a26; }
/* "How close is this?" — the marginal / knife-edge callout (shown only when close) */
.section.close { background: #fbf6ec; border: 1px solid #e7d8ae; border-left: 4px solid var(--warn); border-radius: var(--radius); padding: 18px 20px; }
.section.close h3 { color: #7a5a12; }
.section.close p { color: #6b5320; }
.section.limits { background: var(--line-soft); border-radius: var(--radius); padding: 16px 20px; }
.section.limits h3 { font-size: 1rem; }
.section.limits p { font-size: 0.88rem; color: var(--ink-faint); }
.tests { list-style: none; }
.tests li { position: relative; padding-left: 24px; margin-bottom: 8px; color: var(--ink-soft); }
.tests li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Market-practice section — the four monetization models + the engine's pick */
.market-models { list-style: none; display: grid; gap: 8px; margin: 4px 0 14px; }
.market-models li { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 10px 14px; background: var(--card); }
.market-models li.is-pick { border-color: var(--accent); border-left: 4px solid var(--accent); background: #fdf7ef; }
.market-models li.is-alt { border-left: 4px solid #cdd5e0; }
.market-label { font-weight: 600; color: var(--navy-deep); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.market-blurb { font-size: 0.86rem; color: var(--ink-soft); margin-top: 3px; }
.market-tag { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 20px; }
.market-tag.pick { background: var(--accent); color: #fff; }
.market-tag.alt { background: var(--line-soft); color: var(--ink-faint); }
.market-pick-line { font-weight: 500; color: var(--navy-deep) !important; }

.authored { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 18px; }
.authored .ai-tag { font-size: 0.64rem; }

/* AI tags / banners */
.ai-tag { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; color: #fff; background: var(--ai); padding: 2px 7px; border-radius: 5px; }
.ai-proposed-banner {
  display: flex; align-items: center; gap: 11px; background: var(--ai-soft); border: 1px solid #ddd2f1;
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; font-size: 0.9rem; color: #4a3578;
}
.ai-proposed-banner strong { color: #38245f; }

/* Email keep */
.email-keep { margin-top: 36px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow); }
.email-keep h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--navy-deep); margin-bottom: 4px; }
.email-keep > p { color: var(--ink-faint); font-size: 0.92rem; margin-bottom: 16px; }
.email-form { display: flex; gap: 10px; flex-wrap: wrap; }
.email-form .inp { flex: 1; min-width: 160px; }
.email-status { margin-top: 12px; font-size: 0.9rem; }
.email-status.ok { color: var(--good); }
.email-status.err { color: var(--bad); }

/* Email gate (step 3a) */
.unlock-lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 560px; margin-bottom: 20px; }
.unlock-form { margin-bottom: 12px; }
.unlock-form .inp { flex: 1; min-width: 150px; }
.consent { font-size: 0.82rem; color: var(--ink-faint); max-width: 560px; margin-top: 4px; }

/* Report delivery confirmation */
.deliver-note { margin: 6px 0 22px; padding: 11px 16px; border-radius: var(--radius); font-size: 0.9rem; background: var(--good-soft); border: 1px solid #bfe3cd; color: #155f3b; }
.deliver-note.muted { background: var(--line-soft); border-color: var(--line); color: var(--ink-faint); }

/* Convert screen (step 3c) */
.convert { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow); }
.convert .step-title { margin-top: 4px; }
.convert-lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 600px; margin: 12px 0 22px; }
.btn-book { background: var(--accent); color: #fff; }
.btn-book:hover { background: #b06a26; }

/* Input guidance (landing) — persistent hint + worked examples, muted register */
.input-hint { margin: 14px 0 4px; font-size: 0.88rem; color: var(--ink-faint); }
.input-hint-lead { font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.input-hint ul { margin: 0 0 10px; padding-left: 18px; }
.input-hint li { margin-bottom: 3px; }
.input-hint-foot { color: var(--ink-faint); margin-bottom: 16px; }
.examples-lead { font-weight: 600; color: var(--ink-soft); font-size: 0.86rem; margin-bottom: 8px; }
.examples { display: flex; gap: 8px; flex-wrap: wrap; }
.example-btn {
  font-family: var(--font); font-size: 0.82rem; font-weight: 500; cursor: pointer;
  background: var(--card); color: var(--ink-soft); border: 1.5px solid var(--line);
  border-radius: 20px; padding: 7px 14px; transition: all 0.15s;
}
.example-btn:hover { border-color: var(--navy); color: var(--ink); }

/* On-demand "email me this one" link on a silent re-run */
.deliver-link { color: var(--navy); font-weight: 500; }
.deliver-link:hover { color: var(--navy-deep); }

.center { text-align: center; }
[hidden] { display: none !important; }
