:root {
  --bg: #f5f4ec;               /* warm cream — matches finianadvisory.com */
  --paper: #ffffff;
  --ink: #1a1a1a;              /* near-black */
  --muted: #6b6b6b;
  --line: #e0dfd5;             /* warm line */
  --accent: #5fd8a3;           /* mint green — brand accent */
  --accent-deep: #142e22;      /* dark forest green — primary button */
  --accent-soft: #e3f7ec;      /* pale mint */
  --pass: #047857;
  --fail: #b91c1c;
  --warn: #f59e0b;
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.brand-strip {
  height: 6px;
  background: var(--accent);
}

.display-italic {
  font-family: "Inter", -apple-system, sans-serif;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.02em;
}

a { color: var(--accent); }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  background: var(--bg);
}
.brand-wordmark a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 28px; height: 28px;
}
.brand-name {
  font-weight: 600;
  letter-spacing: -0.2px;
  font-size: 18px;
}
.brand-name em { font-style: normal; font-weight: 600; }
.topnav { display: flex; gap: 28px; align-items: center; }
.topnav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.topnav a:hover { color: var(--accent-deep); }
.topnav .topnav-cta {
  background: var(--accent-deep);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  transition: background 160ms;
}
.topnav .topnav-cta:hover {
  background: #0a1d13;
  color: white;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.footer {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 24px;
  border-top: 1px solid var(--line);
}

h1 { font-size: 32px; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.5px; }
h2 { font-size: 22px; margin: 32px 0 12px; }
h3 { font-size: 16px; margin: 20px 0 8px; }

.lede { font-size: 17px; color: var(--muted); margin: 0 0 28px; }
.small { font-size: 12px; color: var(--muted); }

.hero .card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
}
.card h3 { margin-top: 0; }
.card ul, .card ol { padding-left: 18px; margin: 8px 0 0; }
.card li { margin-bottom: 4px; font-size: 14px; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
}
.cta:hover { background: #1e40af; }

.formwrap { max-width: 560px; }
.apply-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}
.apply-form input[type=text],
.apply-form input[type=email],
.apply-form input[type=url],
.apply-form input[type=number],
.apply-form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #c4c4c4;
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: white;
}
.apply-form fieldset {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 16px;
  margin: 16px 0;
}
.apply-form legend { font-size: 12px; color: var(--muted); padding: 0 6px; }
.apply-form .check { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--ink); }
.apply-form .check input { margin: 0; }
.apply-form button { margin-top: 8px; }

.callout {
  background: #fffbeb;
  border: 1px solid var(--warn);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 20px 0;
}
.apikey {
  background: var(--ink);
  color: #d1fae5;
  padding: 10px 12px;
  border-radius: 3px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  margin: 10px 0 8px;
  overflow-x: auto;
}

.brief pre.sample,
.brief code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12.5px;
}
.brief pre.sample {
  background: #f3f4f6;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 3px;
  overflow-x: auto;
  white-space: pre;
}
.brief code {
  background: #f3f4f6;
  padding: 1px 5px;
  border-radius: 2px;
}

.msg { max-width: 600px; }
.msg h1 { font-size: 28px; }

.result .score-block {
  display: flex; align-items: center; gap: 20px; margin: 16px 0 28px;
}
.result .score {
  font-size: 56px; font-weight: 800; letter-spacing: -1px;
}
.result .score small { font-size: 18px; color: var(--muted); font-weight: 500; }
.result .bd { padding-left: 18px; }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.badge.pass { background: #d1fae5; color: var(--pass); }
.badge.fail { background: #fee2e2; color: var(--fail); }

.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.grid th, .grid td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.grid th { background: #f3f4f6; font-weight: 600; font-size: 12px; }
.grid.small { font-size: 12px; }
.grid .empty { color: var(--muted); text-align: center; padding: 16px; }

.big-score { font-size: 18px; margin: 8px 0 24px; }

/* =================== Perspective funnel =================== */
.funnel {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  min-height: 420px;
}

.funnel-progress {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-bottom: 56px;
  overflow: hidden;
}
.funnel-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--accent-deep), var(--accent));
  transition: width 380ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.step {
  display: none;
  animation: fadeSlideIn 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
.step.active { display: block; }
.step.leave-fwd  { animation: fadeSlideOutFwd 380ms cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.step.leave-back { animation: fadeSlideOutBack 380ms cubic-bezier(0.4, 0, 0.2, 1) forwards; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideOutFwd {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-14px); display: none; }
}
@keyframes fadeSlideOutBack {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(14px); display: none; }
}

.kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
}

.step h2 {
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.8px;
  font-weight: 800;
}
.step .lede {
  font-size: 16px;
  margin: 0 0 28px;
}

.big-input {
  display: block;
  width: 100%;
  font-size: 22px;
  padding: 14px 0;
  border: none;
  border-bottom: 2px solid var(--line);
  background: transparent;
  outline: none;
  font-family: inherit;
  color: var(--ink);
  margin-bottom: 16px;
  transition: border-color 200ms;
}
.big-input:focus {
  border-bottom-color: var(--accent);
}
textarea.big-input {
  font-size: 16px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 6px;
  resize: vertical;
}
textarea.big-input:focus {
  border: 1px solid var(--accent);
  border-bottom-color: var(--accent);
}
.big-input.shake {
  animation: shake 360ms;
  border-bottom-color: var(--fail);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.big-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 120ms, box-shadow 200ms, background 200ms;
}
.big-btn.primary {
  background: var(--accent-deep);
  color: white;
  box-shadow: 0 4px 14px rgba(20, 46, 34, 0.18);
}
.big-btn.primary:hover {
  background: #0a1d13;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20, 46, 34, 0.28);
}
.big-btn.primary:active { transform: translateY(0); }
.big-btn.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.big-btn.ghost:hover {
  border-color: var(--muted);
  color: var(--ink);
}

.row {
  display: flex; align-items: center; gap: 16px; margin-top: 8px;
}

.microcopy {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* big choice buttons */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.choice-grid.two   { grid-template-columns: repeat(2, 1fr); max-width: 420px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice-grid.four  { grid-template-columns: repeat(4, 1fr); }

.choice.flash { animation: flashPulse 600ms; }
@keyframes flashPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 103, 184, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(0, 103, 184, 0.25); }
}

.field-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.choice {
  background: white;
  border: 2px solid var(--line);
  padding: 22px 18px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: all 180ms;
  text-align: center;
}
.choice:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 103, 184, 0.12);
}
.choice.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* chips */
.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 8px 0 24px;
}
.chip {
  background: white;
  border: 1.5px solid var(--line);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: all 160ms;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.name-token { color: var(--accent); }

.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
  margin: 24px 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =================== Landing v2 (Finian Advisory brand) =================== */
.hero-v2 {
  padding: 48px 0 56px;
  text-align: center;
}
.hero-v2 .kicker {
  margin-bottom: 22px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 3px;
}
.hero-v2 h1 {
  font-family: "Inter", -apple-system, sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 72px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 auto 28px;
  max-width: 920px;
  color: var(--ink);
}
.hero-v2 h1 .accent { color: var(--ink); }   /* keep all-italic in single tone — brand uses no colour split */
.hero-v2 h1 { overflow-wrap: break-word; }
.lede.big {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
  font-style: normal;
}
.big-btn.xl {
  font-size: 15px;
  padding: 16px 30px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.mt-12 { margin-top: 12px; }
.kicker.centered { text-align: center; color: var(--accent); }

.hero-cta-row {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.big-btn.ghost.xl {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.big-btn.ghost.xl:hover {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
}

.hero-v2 h1 em {
  font-style: italic;
  color: var(--accent-deep);
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 48px;
}
.card-lite {
  background: white;
  border: 1px solid var(--line);
  padding: 24px 22px 20px;
  border-radius: 10px;
}
.card-lite .num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.card-lite h3 { font-size: 17px; margin: 0 0 8px; }
.card-lite p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

.meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.meta-row .meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.meta-row .meta-val { font-size: 14px; font-weight: 500; }

.cta-strip {
  text-align: center;
  padding: 40px 0 20px;
}
.cta-strip h2 { font-size: 32px; margin: 0 0 20px; }

/* =================== Rates =================== */
.rates {
  padding: 32px 0 56px;
  text-align: center;
}
.rates .kicker.centered { text-align: center; }
.rates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0 14px;
}
.rate-card {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: left;
  transition: border-color 200ms, transform 200ms;
}
.rate-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.rate-card.feature {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), white 90%);
}
.rate-num {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.rate-num small { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.rate-num .placeholder {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0 6px;
  border-radius: 4px;
}
.rate-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.rate-card p { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.5; }
.rates-foot { font-size: 13px; color: var(--muted); margin-top: 8px; }

.rate-banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--ink);
}
.rate-banner strong { color: var(--accent-deep); font-weight: 700; }
.rate-banner .placeholder {
  color: var(--accent);
  background: white;
  padding: 0 6px;
  border-radius: 3px;
  font-weight: 700;
}
.rate-banner .dot { color: var(--muted); }

/* =================== Brief page — clearer layout =================== */
.brief h1 {
  font-family: "Inter", sans-serif;
  font-size: 44px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.025em;
  margin: 8px 0 18px;
  line-height: 1.1;
}
.brief h1 em { color: var(--accent-deep); font-style: italic; }
.brief h2 {
  font-size: 24px;
  margin: 40px 0 14px;
  font-weight: 700;
}

.tldr {
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.tldr h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-weight: 700;
}
.tldr-list { padding-left: 22px; margin: 0 0 12px; }
.tldr-list li { margin-bottom: 8px; font-size: 15px; line-height: 1.5; }
.tldr-list code { background: white; padding: 1px 6px; border-radius: 3px; font-size: 13px; }
.tldr-foot { margin: 0; font-size: 13px; color: var(--accent-deep); }

.callout { background: #fefce8; border-color: #ca8a04; }

.step-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 12px;
}
.step-card .step-num {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.step-card h3 { font-size: 17px; margin: 0 0 6px; }
.step-card p { margin: 0 0 8px; font-size: 14.5px; }
.step-card .label-list,
.step-card .sub-steps { margin: 8px 0 0; padding-left: 20px; }
.step-card .label-list li,
.step-card .sub-steps li { margin-bottom: 6px; font-size: 14px; }

.walkthrough {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 24px;
}
.wt-step { margin-bottom: 8px; }
.wt-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.wt-block {
  background: #f8f7ef;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.wt-arrow { text-align: center; color: var(--muted); font-size: 20px; margin: 6px 0; }

.endpoint {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 6px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 10px;
  align-items: start;
}
.ep-method {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 3px;
  text-align: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  align-self: start;
}
.ep-method.get  { background: #e0f2fe; color: #0c4a6e; }
.ep-method.post { background: #fef3c7; color: #92400e; }
.ep-path {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
  align-self: center;
}
.ep-body { grid-column: 1 / -1; margin-top: 8px; }
.ep-body p { margin: 0 0 8px; font-size: 14px; }
.param-list { padding-left: 18px; margin: 4px 0; font-size: 13.5px; }
.param-list li { margin-bottom: 3px; }

.scoring { margin: 16px 0 24px; }
.score-block-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.score-row-num {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 24px;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}
.score-row-body { font-size: 14px; }
.score-row-body strong { display: block; margin-bottom: 4px; font-size: 15px; }
.score-row-body span { color: var(--muted); }
.score-total {
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 14px;
}
.score-total strong { display: block; font-size: 17px; color: var(--accent-deep); margin-bottom: 2px; }
.score-total span { font-size: 13px; color: var(--accent-deep); }

.fine-print { margin-top: 24px; color: var(--muted); }

/* =================== Submit done (no score) =================== */
.result-clean {
  max-width: 560px;
  margin: 24px auto 0;
  text-align: center;
}
.result-clean .checkmark {
  margin: 0 auto 24px;
  width: 64px; height: 64px;
}
.result-clean h1 {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.result-clean h1 em { color: var(--accent-deep); font-style: italic; }
.result-clean .lede { max-width: 480px; margin: 0 auto 16px; color: var(--muted); font-size: 16px; }
.post-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.post-meta .meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.post-meta .meta-val { font-size: 13px; word-break: break-all; }

@media (max-width: 600px) {
  .result-clean h1 { font-size: 30px; }
  .post-meta { grid-template-columns: 1fr; gap: 12px; }
}

/* =================== MOBILE =================== */
@media (max-width: 900px) {
  .container { padding: 32px 20px 60px; }
  .topbar { padding: 14px 20px; }
  .topnav { gap: 16px; }
  .topnav a:not(.topnav-cta) { display: none; }   /* hide About on tablet */

  .hero-v2 { padding: 24px 0 32px; }
  .hero-v2 h1 { font-size: 44px; line-height: 1.12; }
  .lede.big { font-size: 16px; }

  .rates-grid,
  .three-col,
  .meta-row { grid-template-columns: 1fr; gap: 12px; }
  .meta-row { padding: 20px 0; }

  .brief h1 { font-size: 32px; }
  .endpoint { grid-template-columns: 60px 1fr; }
  .step-card { grid-template-columns: 48px 1fr; padding: 16px; }
  .step-card .step-num { font-size: 28px; }

  .funnel { min-height: 0; }
  .step h2 { font-size: 26px; }
  .choice-grid.four { grid-template-columns: repeat(2, 1fr); }
  .choice-grid.three { grid-template-columns: 1fr; }

  .grid { font-size: 12px; }
  .grid th, .grid td { padding: 5px 7px; }
}

@media (max-width: 600px) {
  body { line-height: 1.5; }
  .container { padding: 24px 16px 48px; }
  .topbar { padding: 12px 16px; }
  .brand-name { font-size: 16px; }

  .hero-v2 h1 { font-size: 32px; letter-spacing: -0.02em; }
  .hb { display: none; }   /* drop forced line breaks on phones — let the headline wrap naturally */
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta-row .big-btn { justify-content: center; }
  .big-btn.xl { width: 100%; padding: 14px 20px; font-size: 14px; }

  .rate-num { font-size: 40px; }
  .rate-card { padding: 22px 18px; }

  .funnel-progress { margin-bottom: 36px; }
  .step h2 { font-size: 24px; line-height: 1.2; }
  .big-input { font-size: 18px; padding: 12px 0; }
  textarea.big-input { font-size: 16px; }   /* >=16px stops iOS auto-zoom on focus */
  .choice { padding: 16px 12px; font-size: 16px; }
  .choice-grid.four,
  .choice-grid.three,
  .choice-grid.two { grid-template-columns: 1fr 1fr; gap: 8px; }
  .chips { gap: 6px; }
  .chip { padding: 8px 14px; font-size: 13px; }

  .brief h1 { font-size: 26px; }
  .rate-banner { font-size: 13px; padding: 12px 14px; gap: 6px; }
  .rate-banner .dot { display: none; }
  .tldr { padding: 16px 18px; }
  .tldr-list li { font-size: 14px; }
  .step-card { grid-template-columns: 40px 1fr; gap: 10px; padding: 14px; }
  .step-card .step-num { font-size: 24px; }
  .step-card h3 { font-size: 15px; }
  .endpoint { grid-template-columns: 52px 1fr; padding: 12px 14px; }
  .ep-path { font-size: 12.5px; word-break: break-all; }
  .sample, .wt-block { font-size: 11.5px; }

  .score-block-row { grid-template-columns: 48px 1fr; gap: 10px; padding: 12px 0; }
  .score-row-num { font-size: 20px; }

  table.grid { display: block; overflow-x: auto; }

  /* admin can scroll horizontally on mobile */
  section { overflow-x: hidden; }
}

