/* MonsiQuote ("the job site"). IBM Plex Sans + Mono self-hosted, light + dark via prefers-color-scheme.
   Tokens first; contrast figures for every pair are recorded in DESIGN.md. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }
:root {
  color-scheme: light dark;
  --surface: #f3f4f6;      /* concrete */
  --raised: #ffffff;
  --ink: #1a2930;         /* family slate */
  --muted: #4a525e;
  --line: #d9dde3;
  --tonal: #e6e9ed;        /* secondary button fill */
  --field-line: #7b8691;
  --accent: #e2580b;       /* safety orange: stripes, marks, numerals (decorative) */
  --accent-fill: #c64a06;  /* button fill, white text 4.79:1 */
  --on-accent: #ffffff;
  --accent-hover: #a83d04;
  --link: #b44508;
  --band: #1a2930;         /* family slate band */
  --band-ink: #f2f4f7;
  --band-muted: #b4bcc8;
  --band-line: rgba(255, 255, 255, 0.14);
  --band-tonal: rgba(255, 255, 255, 0.12);
  --focus: #1d4ed8;
  --focus-band: #8ab4ff;
  --danger: #b42318;
  --ok: #1a7f37;
  --warn: #8a4b08;
  --notice-bg: #fff4e5;
  --notice-line: #e0b068;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px -8px rgb(0 0 0 / 0.18);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.08), 0 24px 56px -16px rgb(0 0 0 / 0.38);
  --brand: #c2410c;        /* estimator accent, set from the URL by ui.js */
  --brand-ink: #ffffff;
  --radius: 12px;
  --radius-lg: 16px;
  --measure: 66ch;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --header-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0d1117;
    --raised: #161c24;
    --ink: #eef1f3;
    --muted: #a1a9b5;
    --line: #2a323d;
    --tonal: #222b36;
    --field-line: #7a8798;
    --accent: #ff7a2e;
    --accent-fill: #ff7a2e;
    --on-accent: #12161c;
    --accent-hover: #ff9355;
    --link: #ff8f4d;
    --band: #1a2930;
    --band-ink: #f2f4f7;
    --band-muted: #b4bcc8;
    --focus: #8ab4ff;
    --danger: #ff8a7a;
    --ok: #5fd08a;
    --warn: #f2b35c;
    --notice-bg: #2a2012;
    --notice-line: #6b4d1f;
    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -8px rgb(0 0 0 / 0.6);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.5), 0 24px 56px -16px rgb(0 0 0 / 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--surface); display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.on-band :focus-visible, .band :focus-visible { outline-color: var(--focus-band); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--surface); padding: 10px 14px; z-index: 30; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Type */
h1, h2, h3, h4 { margin: 0 0 0.5em; color: inherit; font-family: var(--font); }
h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.prose { max-width: var(--measure); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
code, .code { font-family: var(--mono); font-size: 0.9em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header: sticky, logo + nav + one clear CTA. Two rows on phones (nav scrolls sideways). */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--raised); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgb(0 0 0 / 0.02); }
.bar { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo cta" "nav nav"; align-items: center; gap: 0 12px; }
.logo { grid-area: logo; display: inline-flex; align-items: center; height: 52px; text-decoration: none; }
.logo img { width: 150px; height: 36px; }
.topbar nav { grid-area: nav; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
.topbar nav::-webkit-scrollbar { display: none; }
.nav { display: flex; gap: 4px 22px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; font-size: 0.93rem; font-weight: 600; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.topbar .btn { grid-area: cta; }
@media (max-width: 479px) {
  .logo { min-width: 0; }
  .logo img { width: 133px; height: 32px; }
  .topbar .btn-sm { padding: 8px 12px; font-size: 0.86rem; }
}
@media (min-width: 760px) {
  :root { --header-h: 68px; }
  .bar { grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav cta"; gap: 0 32px; }
  .logo { height: 68px; }
  .topbar nav { margin: 0; padding: 0; border: 0; overflow: visible; justify-self: end; }
  .nav a { min-height: 68px; font-size: 0.97rem; }
}

/* Buttons: solid primary, tonal secondary, 44px+ tall */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; font: inherit; font-weight: 650; letter-spacing: -0.005em; line-height: 1.2; border-radius: 10px; border: 0; background: var(--accent-fill); color: var(--on-accent); text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgb(0 0 0 / 0.25), inset 0 1px 0 rgb(255 255 255 / 0.18); transition: background-color 150ms, transform 150ms, box-shadow 150ms; }
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn:active { transform: translateY(1px); box-shadow: 0 0 0 rgb(0 0 0 / 0); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 0.93rem; white-space: nowrap; }
.btn-quiet { background: var(--tonal); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { background: var(--line); color: var(--ink); }
.band .btn-quiet { background: var(--band-tonal); color: var(--band-ink); box-shadow: inset 0 0 0 1px var(--band-line); }
.band .btn-quiet:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.btn[disabled] { cursor: not-allowed; background: var(--tonal); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.est .btn:not(.btn-quiet):not([disabled]) { background: var(--brand); color: var(--brand-ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }

/* Bands: concrete / raised / slate with blueprint grid. Dark bands only in the hero and the closing CTA. */
.tone-surface { background: var(--surface); }
.tone-raised { background: var(--raised); border-block: 1px solid var(--line); }
.band { position: relative; isolation: isolate; background: var(--band); color: var(--band-ink); overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 32px), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 32px); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.band .lede, .band .band-muted { color: var(--band-muted); }
.band a:not(.btn) { color: #ffb88a; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-bottom: 0.4em; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Hero + the browser frame (signature) */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin-bottom: 0.35em; font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.hero .lede { margin-bottom: 0; }
.hero-note { font-size: 0.93rem; color: var(--band-muted); max-width: 46ch; margin: 0; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 5fr 7fr; gap: 56px; } }
.browser { margin: 0; border-radius: 14px; background: var(--raised); box-shadow: var(--shadow-lift), 0 0 0 1px rgb(255 255 255 / 0.1); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--tonal); border-bottom: 1px solid var(--line); }
.dots { flex: none; width: 46px; height: 10px; background: radial-gradient(circle at 5px 5px, var(--field-line) 0 4.5px, transparent 5px), radial-gradient(circle at 23px 5px, var(--field-line) 0 4.5px, transparent 5px), radial-gradient(circle at 41px 5px, var(--field-line) 0 4.5px, transparent 5px); opacity: 0.55; }
.url { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 0.82rem/1.2 var(--mono); color: var(--muted); background: var(--raised); border-radius: 8px; padding: 7px 12px; }
.chip { flex: none; font-size: 0.74rem; font-weight: 700; color: var(--on-accent); background: var(--accent-fill); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.browser-view { display: block; width: 100%; height: 640px; border: 0; background: var(--surface); }
@media (min-width: 1000px) { .browser-view { height: 600px; } }
.browser-cap { font-size: 0.85rem; color: var(--band-muted); margin: 12px 4px 0; }
@media (max-width: 479px) { .chip { display: none; } .dots { display: none; } .browser-view { height: 680px; } }

/* Homeowner strip: one panel, three cells (a real sequence, so numbers stay) */
.strip { list-style: none; margin: 0; padding: 0; display: grid; background: var(--raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.strip li { padding: 28px 28px 32px; border-top: 1px solid var(--line); }
.strip li:first-child { border-top: 0; }
.strip .n { display: block; font: 600 2.6rem/1 var(--mono); letter-spacing: -0.04em; color: var(--accent); margin-bottom: 14px; }
.strip h3 { margin-bottom: 8px; font-size: 1.25rem; }
.strip p { margin: 0; color: var(--muted); }
@media (min-width: 820px) { .strip { grid-template-columns: repeat(3, 1fr); } .strip li { border-top: 0; border-left: 1px solid var(--line); } .strip li:first-child { border-left: 0; } }
.after-strip { max-width: var(--measure); margin: 28px 0 0; color: var(--muted); }

/* Included / not included */
.pair { display: grid; gap: 20px; align-items: start; }
@media (min-width: 820px) { .pair { grid-template-columns: 1.1fr 0.9fr; gap: 28px; } }
.pair > * { min-width: 0; }
.panel { border-radius: var(--radius-lg); padding: 28px; }
.panel h3 { font-size: 1.4rem; font-weight: 850; letter-spacing: -0.02em; margin-bottom: 18px; }
.panel-yes { background: var(--raised); box-shadow: var(--shadow-card); border-top: 6px solid var(--accent); }
.panel-no { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before, .ticks li::after { content: ""; position: absolute; }
.panel-yes .ticks li::before { left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-fill); }
.panel-yes .ticks li::after { left: 7px; top: 6px; width: 6px; height: 10px; border: solid var(--on-accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.panel-no .ticks li::before { left: 3px; top: 12px; width: 14px; height: 2.5px; background: var(--muted); border-radius: 2px; }
.fine-print { margin: 24px 0 0; max-width: var(--measure); color: var(--muted); font-size: 0.95rem; }

/* Process: horizontal rail on wide screens, vertical timeline below */
.rail { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0; }
.rail li { counter-increment: s; position: relative; padding: 0 0 28px 56px; }
.rail li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-fill); color: var(--on-accent); font: 800 0.95rem/36px var(--mono); text-align: center; z-index: 1; }
.rail li::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--field-line) 0 6px, transparent 6px 11px); }
.rail li:last-child { padding-bottom: 0; }
.rail li:last-child::after { display: none; }
.rail h3 { font-size: 1.05rem; margin-bottom: 4px; padding-top: 6px; }
.rail p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (min-width: 1080px) {
  .rail { grid-template-columns: repeat(6, 1fr); gap: 0 24px; }
  .rail li { padding: 56px 0 0; }
  .rail li::after { left: 36px; right: -24px; top: 17px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--field-line) 0 6px, transparent 6px 11px); }
  .rail h3 { padding-top: 0; }
}

/* Not for + FAQ */
.split { display: grid; gap: 48px; }
.split > * { min-width: 0; }
@media (min-width: 920px) { .split { grid-template-columns: 5fr 6fr; gap: 72px; } }
.nots { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.nots li { position: relative; padding-left: 32px; }
.nots li::before, .nots li::after { content: ""; position: absolute; left: 3px; top: 11px; width: 14px; height: 2.5px; background: var(--danger); border-radius: 2px; }
.nots li::before { transform: rotate(45deg); }
.nots li::after { transform: rotate(-45deg); }
details.faq { border-bottom: 1px solid var(--line); }
details.faq:first-of-type { border-top: 1px solid var(--line); }
details.faq summary { position: relative; cursor: pointer; font-weight: 700; padding: 18px 40px 18px 0; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before, details.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2.5px; margin-top: -1px; background: var(--accent); border-radius: 2px; transition: transform 150ms; }
details.faq summary::after { transform: rotate(90deg); }
details.faq[open] summary::after { transform: rotate(0); }
details.faq p { color: var(--muted); margin: 0 0 18px; max-width: 58ch; }

/* Closing CTA band */
.cta-grid { display: grid; gap: 40px; align-items: start; }
.cta-grid > * { min-width: 0; }
@media (min-width: 960px) { .cta-grid { grid-template-columns: 5fr 6fr; gap: 72px; } }
.cta-copy h2 { margin-bottom: 0.4em; }
.cta-copy p { color: var(--band-muted); font-size: 1.1rem; max-width: 38ch; }
.cta-copy .direct { font-size: 1rem; }
.card { background: var(--raised); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow-lift); }

/* Page heads on inner pages */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(8px, 2vw, 24px); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; margin-bottom: 0.3em; }
.page-head .lede { margin-bottom: 0; }
.page-head.compact h1 { max-width: none; }
.callout { border-radius: var(--radius); background: var(--raised); box-shadow: inset 4px 0 0 var(--accent), var(--shadow-card); padding: 16px 20px; max-width: var(--measure); margin: 0 0 1.4em; }
.callout p:last-child { margin-bottom: 0; }
.legal { padding-block: 8px clamp(56px, 8vw, 96px); }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.how-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; max-width: 760px; }
.how-steps li { counter-increment: s; position: relative; padding: 0 0 26px 60px; }
.how-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-fill); color: var(--on-accent); font: 800 1rem/38px var(--mono); text-align: center; }
.how-steps li::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 2px; width: 2px; background: repeating-linear-gradient(180deg, var(--field-line) 0 6px, transparent 6px 11px); }
.how-steps li:last-child::after { display: none; }
.how-steps h3 { margin-bottom: 4px; padding-top: 6px; }
.how-steps p { margin: 0; color: var(--muted); }
.list-plain { padding-left: 1.2em; margin: 0 0 1em; }
.list-plain li { margin-bottom: 0.55em; }
pre.snippet { background: #10151b; color: #e9ecf0; padding: 18px 20px; overflow-x: auto; border-radius: var(--radius); font: 0.88rem/1.55 var(--mono); max-width: 100%; white-space: pre-wrap; word-break: break-word; box-shadow: var(--shadow-card); }
.frame { display: block; width: 100%; max-width: 1000px; height: 640px; border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lift); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.empty-page { padding-block: clamp(56px, 10vw, 120px); }

/* Forms */
.field { margin: 0 0 18px; }
.field label, fieldset legend { display: block; font-weight: 650; margin-bottom: 6px; font-size: 0.97rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea { width: 100%; max-width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--raised); border: 1.5px solid var(--field-line); border-radius: 10px; transition: border-color 150ms, box-shadow 150ms; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
textarea { min-height: 120px; resize: vertical; }
input:disabled, textarea:disabled, select:disabled { background: var(--tonal); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.hint { color: var(--muted); font-size: 0.9rem; margin: 0 0 6px; }
.error { color: var(--danger); font-size: 0.92rem; font-weight: 650; margin: 6px 0 0; }
.error:empty { display: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 10px; box-shadow: inset 4px 0 0 var(--muted); background: var(--surface); }
.form-status.ok { box-shadow: inset 4px 0 0 var(--ok); }
.form-status.bad { box-shadow: inset 4px 0 0 var(--danger); }
.form-status:empty { display: none; }
.fine { font-size: 0.9rem; color: var(--muted); }
.mt-s { margin-top: 14px; }
.card .btn[type="submit"] { width: 100%; }
@media (min-width: 480px) { .card .btn[type="submit"] { width: auto; min-width: 160px; } }

/* Estimator (demo page, embed, hero iframe) */
.est { max-width: 1100px; margin: 0 auto; }
.demo-banner { display: flex; align-items: center; gap: 10px; background: var(--band); color: var(--band-ink); font-weight: 650; padding: 9px 14px; margin: 0 0 20px; font-size: 0.88rem; border-radius: 10px; }
.demo-banner::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 4px; background: repeating-linear-gradient(-45deg, var(--accent) 0 4px, var(--band) 4px 8px); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.3); }
.est-head { margin-bottom: 20px; }
.est-head h2 { margin-bottom: 4px; font-size: clamp(1.4rem, 3vw, 1.9rem); overflow-wrap: anywhere; }
.est-head .sub { color: var(--muted); margin: 0; font-size: 0.97rem; }
.est-grid { display: grid; gap: 24px; }
.est-grid > * { min-width: 0; }
@media (min-width: 860px) { .est-grid { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; } .est-output { position: sticky; top: calc(var(--header-h) + 16px); } }
.est-inputs { background: var(--raised); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-card); }
.step-label { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.step-label:first-child { margin-top: 0; }
fieldset.choices { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.choice-row { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; padding: 12px 14px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 150ms, background-color 150ms; }
.choice-row:hover { box-shadow: inset 0 0 0 1px var(--field-line); }
.choice-row:has(input:checked) { background: var(--raised); box-shadow: inset 0 0 0 2px var(--brand); }
.choice-row:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-row input { position: relative; z-index: 1; margin: 3px 0 0; width: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.choice { display: block; font-weight: 400 !important; margin: 0 !important; cursor: pointer; }
.choice::before { content: ""; position: absolute; inset: 0; }
.choice-main { display: block; font-weight: 650; line-height: 1.35; }
.choice-note { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 2px; }
.helper { margin: -6px 0 18px; }
.helper summary { cursor: pointer; font-size: 0.93rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.helper-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding-top: 12px; }
.helper-row .field { margin: 0; flex: 1 1 110px; }
.actions { margin-top: 8px; }

/* The job ticket */
.result-box { position: relative; background: var(--raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 0 clamp(18px, 3vw, 26px) clamp(18px, 3vw, 26px); overflow: hidden; }
.result-box::before { content: ""; display: block; height: 10px; margin: 0 calc(-1 * clamp(18px, 3vw, 26px)) 20px; background: repeating-linear-gradient(-45deg, var(--brand) 0 12px, var(--ink) 12px 24px); }
.result-label { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 6px; }
.range { font: 600 clamp(1.7rem, 5.2vw, 2.7rem)/1.05 var(--mono); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; margin: 0 0 18px; overflow-wrap: anywhere; }
.result-head { padding-bottom: 6px; border-bottom: 2px dashed var(--line); margin-bottom: 14px; }
.placeholder { color: var(--muted); margin: 0 0 8px; }
.note { border-radius: 8px; padding: 10px 14px; background: var(--surface); box-shadow: inset 4px 0 0 var(--brand); font-size: 0.95rem; }
.note.warn { box-shadow: inset 4px 0 0 var(--warn); }
.breakdown { font-size: 0.9rem; margin: 14px 0; }
.breakdown caption { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); }
.breakdown th[scope="col"] { font-size: 0.78rem; color: var(--muted); font-weight: 650; border-bottom: 1px solid var(--field-line); }
.breakdown th[scope="row"] { font-weight: 600; }
.breakdown th, .breakdown td { padding: 9px 6px; }
.breakdown .num { text-align: right; white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.88rem; }
.breakdown tr.sum th, .breakdown tr.sum td { border-top: 2px solid var(--ink); font-weight: 800; }
.li-label { display: block; }
.li-basis { display: block; font-weight: 400; font-size: 0.82rem; color: var(--muted); }
.lists { display: grid; gap: 0 24px; font-size: 0.9rem; color: var(--muted); }
@media (min-width: 560px) { .lists { grid-template-columns: 1fr 1fr; } }
.lists h4 { color: var(--ink); margin-bottom: 4px; }
.lists ul { padding-left: 1.1em; margin: 0 0 1em; }
.notice { background: var(--notice-bg); box-shadow: inset 0 0 0 1px var(--notice-line); border-radius: 10px; padding: 11px 14px; font-size: 0.93rem; }
.meta { font-size: 0.8rem; color: var(--muted); margin: 12px 0 0; font-family: var(--mono); overflow-wrap: anywhere; }
.lead { margin-top: 32px; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius-lg); background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.lead h3 { color: var(--ink); }
.lead-grid { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .lead-grid { grid-template-columns: 1fr 1fr; } }
.badge { display: inline-block; background: var(--ink); color: var(--surface); font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin: 0 0 10px; }
.brand-warn { margin: -8px 0 14px; }
.try-brand { font-size: 0.95rem; color: var(--muted); margin-bottom: 24px; max-width: 70ch; }

/* Compact range bar for narrow viewports (also inside the hero iframe) */
.sticky-range { display: none; }
@media (max-width: 859px) {
  .sticky-range.on { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; bottom: 0; margin: 20px -16px 0; padding: 12px 16px; background: var(--band); color: var(--band-ink); font: 800 1.05rem/1.2 var(--mono); letter-spacing: -0.03em; z-index: 5; box-shadow: 0 -8px 24px -8px rgb(0 0 0 / 0.35); }
  .sticky-range a { color: #ffb88a; font: 650 0.9rem var(--font); letter-spacing: 0; white-space: nowrap; }
  body.embed .sticky-range.on { margin: 16px -12px 0; }
}

/* Embed mode: tighter, two columns once the frame is wide enough, result stays in view while the form scrolls */
body.embed { background: var(--surface); }
body.embed .wrap { padding: 12px; max-width: none; }
body.embed .est { max-width: none; }
body.embed .est-grid { grid-template-columns: 1fr; }
body.embed .est-inputs { padding: 16px; }
body.embed .est-output { position: static; }
@media (min-width: 600px) { body.embed .est-grid { grid-template-columns: 1fr 1fr; gap: 16px; } body.embed .est-output { position: sticky; top: 12px; } }
@media (min-width: 600px) { body.embed .sticky-range.on { display: none; } }
body.embed .lead { margin-top: 20px; }
body.embed .demo-banner { margin-bottom: 14px; }
body.embed .est-head { margin-bottom: 14px; }

/* Footer: light, after the dark CTA band */
.foot { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); padding: 40px 0 48px; font-size: 0.93rem; }
.foot-grid { display: grid; gap: 24px 48px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr 1fr; } }
.foot p { margin: 0 0 8px; max-width: 62ch; }
.foot a { color: var(--ink); }
.foot a:hover { color: var(--link); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; align-content: start; }
.foot nav a { min-height: 32px; display: inline-flex; align-items: center; }
.foot .brand-line { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.foot .brand-line img { width: 28px; height: 28px; flex: none; }
.wordmark { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); }
.wordmark b { font-weight: 700; color: var(--link); }

@media (forced-colors: active) { .btn, .chip, .choice-row { border: 1px solid ButtonText; } }

/* Facts block, guides, breadcrumbs, article styles */
.facts { display: grid; gap: 0; margin: 0; }
.facts > div { padding: 18px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--muted); max-width: 52ch; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); gap: 0 32px; } .facts > div { border-top: 0; padding: 0; } }
.glance { padding: clamp(32px, 5vw, 56px) 0; }
.guide-links { display: grid; gap: 16px; }
@media (min-width: 820px) { .guide-links { grid-template-columns: 1fr 1fr; gap: 24px; } }
.guide-card { display: block; padding: 24px 26px; border-radius: var(--radius-lg); background: var(--raised); box-shadow: var(--shadow-card); text-decoration: none; color: var(--ink); transition: transform 150ms, box-shadow 150ms; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--ink); }
.guide-title { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.guide-sub { display: block; color: var(--muted); }
.crumbs { margin: 0 0 20px; font-size: 0.9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--field-line); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.byline { margin: 16px 0 0; color: var(--muted); font-size: 0.93rem; }
.article { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.article .prose { max-width: 70ch; font-size: 1.05rem; line-height: 1.65; }
.article h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 2.2em 0 0.5em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: 0.6em; }
.answer { border-radius: var(--radius-lg); background: var(--raised); box-shadow: inset 5px 0 0 var(--accent), var(--shadow-card); padding: 20px 24px; margin: 0 0 8px; }
.answer p { margin: 0; font-size: 1.1rem; }
.article .table-wrap { margin: 0 0 1.4em; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); background: var(--raised); }
.cmp { font-size: 0.93rem; min-width: 640px; }
.cmp thead th { font-size: 0.8rem; color: var(--muted); font-weight: 650; border-bottom: 2px solid var(--ink); }
.cmp tbody th { font-weight: 700; }
.formula { background: #10151b; color: #e9ecf0; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; font: 0.88rem/1.6 var(--mono); box-shadow: var(--shadow-card); margin: 0 0 1.2em; }
.faq-list { margin: 0 0 1em; }
.next-steps { margin-top: 2em; }
.article details.faq p { max-width: none; }
.page-head .byline a { color: var(--link); }
