/* Apprvl landing pages: shared styles
   Warm, calm, mobile-first. System font, size-specific tracking, translucent chrome. */

:root {
  --bg: #fbf8f3;
  --bg-soft: #f4eee4;
  --surface: #ffffff;
  --ink: #1c2a27;
  --muted: #5d6b67;
  --line: #e6ddcf;
  --brand: #0f5c4d;
  --brand-ink: #0a4439;
  --brand-tint: #e3f0ec;
  --warm: #f2a33a;
  --warm-tint: #fdecd0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(28, 42, 39, .05), 0 12px 36px rgba(28, 42, 39, .09);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 52px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 100%/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- Header: translucent material ---------- */
header.site {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251, 248, 243, .78);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(230, 221, 207, .7);
}
header.site .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--warm); }
.call { font-weight: 600; font-size: .95rem; color: var(--brand); text-decoration: none; white-space: nowrap; }

/* ---------- Touch behavior: no tap delay, controls aren't text ---------- */
a, button, summary, label.option, .option span { touch-action: manipulation; }
button, .btn, .play, .option span, summary, .back, .close {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 1.05rem/1 inherit; letter-spacing: -0.01em; text-decoration: none;
  color: #fff; background: var(--brand);
  box-shadow: 0 6px 18px rgba(15, 92, 77, .28);
  transition: transform 120ms var(--ease), background-color 160ms, box-shadow 160ms;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible, .option input:focus-visible + span, .play:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: none; border: 1.5px solid var(--line); min-height: 48px; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero { padding: 22px 0 28px; text-align: center; background: radial-gradient(900px 420px at 50% -80px, var(--warm-tint), transparent 70%); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: .84rem; font-weight: 600; color: var(--brand);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 4px rgba(47, 191, 113, .18); }
h1 {
  margin: 0 0 12px; font-size: clamp(2.05rem, 8vw, 3.5rem);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance;
}
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--warm-tint) 62%, var(--warm) 62%, var(--warm) 90%, transparent 90%); padding: 0 .08em; }
.sub { font-size: 1.08rem; color: var(--muted); margin: 0 auto 18px; max-width: 34em; text-wrap: pretty; }
.micro { margin: 10px 0 0; font-size: .86rem; color: var(--muted); }

/* ---------- Video slot ---------- */
.video {
  position: relative; margin: 0 auto 18px; max-width: 640px; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(135deg, #17463c, #0f5c4d 55%, #2c7a68);
  color: #fff; display: grid; place-items: center;
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  display: grid; place-items: center; align-content: center; gap: 14px; border: 0; background: none; color: #fff; cursor: pointer; font: 600 .95rem/1.3 inherit;
  width: 100%; height: 100%; padding: 16px;
}
.play .disc {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 200ms var(--ease);
}
.play:active .disc { transform: scale(.95); }
.play .cap { opacity: .9; }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { color: var(--brand); flex: none; }

/* ---------- Sections ---------- */
section.block { padding: 36px 0; }
section.soft { background: var(--bg-soft); }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .76rem; font-weight: 700; color: var(--brand); margin: 0 0 8px; }
h2 { margin: 0 0 10px; font-size: clamp(1.65rem, 5.5vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.lead { color: var(--muted); font-size: 1.02rem; margin: 0 0 18px; max-width: 36em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.tile .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 10px; }
.tile h3 { margin: 0 0 4px; font-size: 1.08rem; letter-spacing: -0.015em; }
.tile p { margin: 0; color: var(--muted); font-size: .96rem; }
.tile .n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 10px; }
.tile.quote p.q { color: var(--ink); font-size: 1rem; margin-bottom: 12px; }
.tile.quote p.by { font-size: .86rem; color: var(--muted); }

/* ---------- Popup: bottom sheet on phones, centered modal on desktop ---------- */
html.modal-open { overflow: hidden; }
dialog.sheet {
  border: 0; padding: 0; background: transparent; color: inherit;
  width: 100%; max-width: 560px; max-height: 100dvh; overflow: visible;
  margin: auto auto 0; /* phones: pinned to the bottom */
}
dialog.sheet::backdrop { background: rgba(20, 32, 29, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.sheet[open] { animation: sheetUp 380ms var(--ease); }
dialog.sheet[open]::backdrop { animation: fadeIn 260ms ease-out; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 640px) { dialog.sheet { margin: auto; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px 24px 0 0; padding: 20px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--shadow);
}
@media (min-width: 640px) { .card { border-radius: 24px; padding: 26px 28px 22px; max-height: 90dvh; } }
.close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--bg-soft); color: var(--muted); cursor: pointer;
  transition: transform 120ms var(--ease);
}
.close:active { transform: scale(.92); }
.close:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }

.progress { margin: 0 44px 14px 0; }
.progress .top { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.progress .bar { height: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.progress .fill { height: 100%; width: 25%; border-radius: 99px; background: var(--brand); transition: width 420ms var(--ease); }

.step { display: none; }
.step.on { display: block; animation: stepIn 320ms var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.step h3 { margin: 0 0 4px; font-size: 1.4rem; line-height: 1.15; letter-spacing: -0.025em; }
.step .hint { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }

.slider-row { margin: 0 0 22px; }
.slider-row .lab { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.slider-row output { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--brand); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0; background: transparent; outline: none; cursor: pointer; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--p, 40%), var(--bg-soft) var(--p, 40%)); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--bg-soft); }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--brand); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform 120ms var(--ease); }
input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type=range]:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }

.result { margin: 4px 0 20px; padding: 18px; border-radius: var(--radius-sm); background: var(--brand-tint); text-align: center; }
.result .small { font-size: .84rem; color: var(--muted); }
.result .big { display: block; font-size: clamp(2rem, 9vw, 2.7rem); font-weight: 800; letter-spacing: -0.035em; color: var(--brand-ink); line-height: 1.1; margin: 2px 0; }
.result .fine { margin: 8px 0 0; font-size: .74rem; color: var(--muted); line-height: 1.4; }

.options { display: grid; gap: 8px; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; inset: 0; }
.option span {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 600; cursor: pointer;
  transition: border-color 140ms, background-color 140ms, transform 120ms var(--ease);
}
.option span small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.option:active span { transform: scale(.98); }
.option input:checked + span { border-color: var(--brand); background: var(--brand-tint); }

label.f { display: block; font-weight: 600; font-size: .9rem; margin: 8px 0 5px; }
input[type=text], input[type=email], input[type=tel] {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; /* 16px stops iOS zoom */
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }

.consent { margin-top: 6px; font-size: .76rem; color: var(--muted); line-height: 1.45; }
.consent label { display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.back { margin-top: 6px; background: none; border: 0; color: var(--muted); font: 600 .9rem inherit; cursor: pointer; padding: 8px 0; }
.secure { margin-top: 10px; display: flex; gap: 8px; justify-content: center; align-items: center; font-size: .8rem; color: var(--muted); }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font-weight: 700; padding: 13px 28px 13px 0; list-style: none; position: relative; letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); transition: transform 200ms var(--ease); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0 0 12px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final { text-align: center; background: var(--brand); color: #fff; border-radius: 28px; padding: 44px 22px; }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, .82); margin: 0 auto 24px; max-width: 30em; }
.final .btn { background: var(--warm); color: #2a1d05; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(251, 248, 243, .82); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  border-top: 1px solid rgba(230, 221, 207, .8);
  transform: translateY(110%); transition: transform 380ms var(--ease);
}
.sticky-cta.show { transform: none; }
@media (min-width: 880px) { .sticky-cta { display: none; } }

/* ---------- Footer ---------- */
footer.site { background: #14201d; color: #b9c6c1; padding: 26px 0 calc(22px + env(safe-area-inset-bottom, 0px)); font-size: .78rem; line-height: 1.65; }
footer.site a { color: #fff; }
footer.site .legal p { margin: 0 0 10px; }
footer.site .logo { color: #fff; display: inline-block; margin-bottom: 14px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Thank-you page ---------- */
.thanks { text-align: center; padding: 56px 16px 28px; max-width: 560px; margin: 0 auto; }
.thanks h1 { font-size: 2.2rem; }
.thanks .check { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }

/* ---------- Hover: only on devices that can really hover ---------- */
@media (hover: hover) and (pointer: fine) {
  .close:hover { color: var(--ink); }
  .btn:hover { background: var(--brand-ink); }
  .final .btn:hover { background: #f6b255; }
  .play:hover .disc { transform: scale(1.06); }
  .back:hover { color: var(--ink); }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 200ms; }
  .step.on { animation: none; }
  dialog.sheet[open], dialog.sheet[open]::backdrop { animation: none; }
  .sticky-cta { transition: opacity 200ms; transform: none; opacity: 0; pointer-events: none; }
  .sticky-cta.show { opacity: 1; pointer-events: auto; }
  .btn, .option span, .play .disc { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  header.site, .sticky-cta { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #8c8473; --muted: #3d4a46; }
}

/* ---------- Field errors + email suggestion ---------- */
.slot { display: grid; min-height: 1.1em; margin-top: 1px; }  /* reserved space: messages never shift the layout under a thumb */
.slot > * { grid-area: 1 / 1; margin: 0 2px !important; }
.err[hidden], .suggest[hidden] { display: block; visibility: hidden; }
.err { margin: 6px 2px 0; font-size: .8rem; line-height: 1.3; font-weight: 600; color: #b3261e; }
.suggest { margin: 6px 2px 0; font-size: .85rem; line-height: 1.3; color: var(--muted); }
.suggest button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--brand); text-decoration: underline; cursor: pointer; }
input[aria-invalid="true"] { border-color: #b3261e !important; box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Survey page (inline card, not a popup) ---------- */
.survey { padding: 32px 0 72px; background: linear-gradient(180deg, var(--bg), var(--brand-tint)); min-height: 70dvh; }
.survey .head { text-align: center; max-width: 560px; margin: 0 auto 22px; padding: 0 16px; }
.survey .head h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
.survey .head p { color: var(--muted); margin: 0; }
.card.inline { border-radius: 24px; max-height: none; overflow: visible; width: calc(100% - 32px); max-width: 560px; margin: 0 auto; padding: 26px 20px 22px; }
@media (min-width: 640px) { .card.inline { padding: 34px 34px 28px; } }
.card.inline .progress { margin-right: 0; }

/* ---------- Footer (centered, like the ad-funnel style) ---------- */
footer.site .legal { text-align: center; max-width: 760px; }
footer.site .logo { margin-bottom: 10px; }
.foot-links { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 0 0 14px; font-size: 1rem; }
.foot-links a { color: #d6dfdb; text-decoration: none; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-links .sep { color: rgba(255, 255, 255, .35); }
footer.site .copy { margin-top: 12px; color: #d6dfdb; }

/* ---------- Legal pages ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-left, 0px)) 40px; }
.doc h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin-bottom: 6px; }
.doc .meta { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.doc h2 { font-size: 1.2rem; letter-spacing: -0.02em; margin: 22px 0 6px; }
.doc h3 { font-size: 1rem; margin: 14px 0 4px; }
.doc p, .doc li { color: #34423e; line-height: 1.65; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }

/* ---------- Page 3: calculator ---------- */
.calc { padding: 8px 0 72px; }
.card.inline .kicker { margin-bottom: 6px; }
.card.inline h3 { margin: 0 0 6px; font-size: 1.4rem; line-height: 1.15; letter-spacing: -0.025em; }
.card.inline .hint { margin: 0 0 20px; color: var(--muted); font-size: .95rem; }

/* ---------- Address form bits ---------- */
select {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; /* 16px stops iOS zoom */
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b67' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
select[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
dialog .card h3 { padding-right: 44px; }

/* ---------- Page 3: stacked buttons ---------- */
.cta-stack { display: grid; gap: 10px; max-width: 420px; margin: 0 auto; }
@media (min-width: 520px) { .cta-stack { grid-template-columns: 1fr 1fr; max-width: 560px; } }
.cta-stack .btn { width: 100%; text-align: center; }
.btn.ghost { min-height: 52px; font-size: 1.05rem; }

/* ---------- Funnel header: just the logo, centered ---------- */
header.site .wrap.solo { justify-content: center; }

/* ---------- Room under the footer only where the floating button exists ---------- */
@media (max-width: 879px) { body:has(.sticky-cta) footer.site { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Equal Housing Opportunity logo ---------- */
.eho-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin: 4px 0 12px; color: #fff; }
.eho-logo span { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.25; }
footer.site .legal .eho-logo { display: flex; margin-left: auto; margin-right: auto; width: fit-content; }

/* ---------- small helper line under a field ---------- */
.hint-line { margin: 0 2px 2px; font-size: .78rem; color: var(--muted); line-height: 1.35; }

/* ---------- One-question screens (income / credit) ---------- */
.qtitle { margin: 0 0 12px; font-size: clamp(1.5rem, 6.2vw, 1.9rem); line-height: 1.25; font-weight: 400; letter-spacing: -0.02em; }
.qtitle strong { font-weight: 800; }
.qtitle .req { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 6px; border-radius: 50%; background: var(--bg-soft); color: var(--muted); font-size: .9rem; font-weight: 700; vertical-align: middle; }
.qnote { margin: 0 0 22px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.qnote strong { color: var(--ink); }
input.line {
  width: 100%; border: 0; border-bottom: 2px solid var(--brand); border-radius: 0; background: transparent; box-shadow: none; outline: none;
  padding: 10px 0 8px; font: inherit; font-size: 1.6rem; font-weight: 600; color: var(--ink);
}
input.line::placeholder { color: #b7b0a2; font-weight: 400; }
input.line:focus { border-bottom-color: var(--brand-ink); box-shadow: 0 2px 0 0 var(--brand-ink); }
input.line[aria-invalid="true"] { border-bottom-color: #b3261e; box-shadow: 0 2px 0 0 #b3261e; }
.step.q .btn { margin-top: 18px; }
.step.q .options { margin: 4px 0 2px; }
.back.top { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 20px; padding: 4px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Page 3: free guide button sits on its own row above the other two ---------- */
.cta-stack .guide-btn { grid-column: 1 / -1; }
