/* QuoteFlow Studio. System fonts, one accent, light theme only. */
:root {
  --ink: #1c2127;
  --slate: #39434d;
  --muted: #55606b;
  --line: #d5dae0;
  --panel: #f3f4f6;
  --bg: #ffffff;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --stripe: #f59e0b;
  --brand: #c2410c;
  --brand-ink: #ffffff;
  --radius: 4px;
  --measure: 68ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); }
body.embed { background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #9a3412; }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 0; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Header */
.topbar { border-top: 5px solid var(--stripe); border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { font-weight: 800; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.logo span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--slate); text-decoration: none; font-size: 0.95rem; padding: 6px 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--stripe); }

/* Type */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
.prose { max-width: var(--measure); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.lede { font-size: 1.2rem; color: var(--slate); max-width: 60ch; }
.muted { color: var(--muted); }
code, .code { font-family: var(--mono); font-size: 0.9em; }

/* Sections */
section.block { padding: 48px 0; border-top: 1px solid var(--line); }
section.block:first-of-type { border-top: 0; }
.hero { padding: 48px 0 40px; }
.hero-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.shot { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); }
.shot-cap { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; font: inherit; font-weight: 700; border-radius: var(--radius); border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer; }
.btn:hover { background: #9a3412; border-color: #9a3412; color: #fff; }
.btn-quiet { background: var(--bg); color: var(--ink); border-color: var(--slate); }
.btn-quiet:hover { background: var(--panel); color: var(--ink); border-color: var(--ink); }
.btn[disabled] { cursor: not-allowed; background: var(--panel); border-color: var(--line); color: #5b6670; }
.est .btn:not(.btn-quiet):not([disabled]) { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* Tables and lists */
.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); }
thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 2px solid var(--ink); }
.deliver td:first-child, .deliver th:first-child { width: 50%; }
.list-plain { padding-left: 1.2em; margin: 0 0 1em; }
.list-plain li { margin-bottom: 0.4em; }
.cols { display: grid; gap: 28px; }
@media (min-width: 760px) { .cols-2 { grid-template-columns: 1fr 1fr; gap: 48px; } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 0; max-width: 760px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font-weight: 800; font-size: 1.5rem; color: var(--accent); line-height: 1.2; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--slate); }
.callout { border-left: 5px solid var(--stripe); background: var(--panel); padding: 14px 18px; max-width: var(--measure); margin: 0 0 1.2em; }
.callout p:last-child { margin-bottom: 0; }
details.faq { border-bottom: 1px solid var(--line); max-width: 760px; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details.faq p { color: var(--slate); }
pre.snippet { background: #12161b; color: #f3f4f6; padding: 16px; overflow-x: auto; border-radius: var(--radius); font: 0.88rem/1.5 var(--mono); max-width: 100%; white-space: pre-wrap; word-break: break-word; }

/* Forms */
.field { margin: 0 0 16px; }
.field label, fieldset legend { display: block; font-weight: 700; margin-bottom: 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea { width: 100%; max-width: 560px; min-height: 46px; padding: 9px 12px; font: inherit; color: var(--ink); background: #fff; border: 2px solid #7b8691; border-radius: var(--radius); }
textarea { min-height: 110px; resize: vertical; }
input:disabled, textarea:disabled, select:disabled { background: var(--panel); border-color: var(--line); color: #5b6670; cursor: not-allowed; }
input[aria-invalid="true"] { border-color: #b42318; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 0 0 6px; }
.error { color: #b42318; font-size: 0.92rem; font-weight: 600; margin: 4px 0 0; min-height: 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-left: 5px solid var(--slate); background: var(--panel); max-width: 560px; }
.form-status.ok { border-color: #1a7f37; }
.form-status.bad { border-color: #b42318; }
.form-status:empty { display: none; }
.fine { font-size: 0.9rem; color: var(--muted); max-width: 560px; }

/* Estimator */
.est { max-width: 1040px; margin: 0 auto; }
.demo-banner { background: var(--ink); color: #fff; font-weight: 700; padding: 10px 14px; margin: 0 0 20px; font-size: 0.95rem; border-left: 6px solid var(--stripe); }
.est-head { border-top: 6px solid var(--brand); padding-top: 14px; margin-bottom: 18px; }
.est-head h2 { margin-bottom: 2px; overflow-wrap: anywhere; }
.est-head .sub { color: var(--muted); margin: 0; }
.est-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .est-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } .est-output { position: sticky; top: 16px; } }
.step-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.step-label:first-child { margin-top: 0; }
fieldset.choices { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.choice-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.choice-row input { margin-top: 5px; width: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.choice { display: block; font-weight: 400 !important; margin: 0 !important; cursor: pointer; }
.choice-main { display: block; font-weight: 600; }
.choice-note { display: block; font-size: 0.88rem; color: var(--muted); }
.helper { margin: -4px 0 18px; }
.helper summary { cursor: pointer; font-size: 0.93rem; color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.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; }
.result-box { border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; background: #fff; }
.result-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.range { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.1; overflow-wrap: anywhere; }
.placeholder { color: var(--muted); margin: 0; }
.note { border-left: 5px solid var(--brand); padding: 8px 12px; background: var(--panel); font-size: 0.95rem; }
.note.warn { border-color: #b45309; }
.breakdown { font-size: 0.9rem; margin: 14px 0; }
.breakdown th[scope="row"] { font-weight: 600; }
.breakdown th, .breakdown td { padding: 8px 8px; }
.breakdown .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.breakdown tr.sum th, .breakdown tr.sum td { border-top: 2px solid var(--ink); font-weight: 800; }
.lists { display: grid; gap: 0 24px; font-size: 0.9rem; }
@media (min-width: 560px) { .lists { grid-template-columns: 1fr 1fr; } }
.lists ul { padding-left: 1.1em; margin: 0 0 1em; }
.notice { background: #fff4e5; border: 1px solid #f0c27b; padding: 10px 14px; font-size: 0.93rem; }
.meta { font-size: 0.82rem; color: var(--muted); margin: 10px 0 0; font-family: var(--mono); overflow-wrap: anywhere; }
.lead { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.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: #fff; font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 2px; margin: 0 0 10px; }
.brand-warn { margin: -8px 0 12px; }
.try-brand { font-size: 0.95rem; color: var(--slate); margin-bottom: 18px; }

/* Footer */
.foot { background: var(--ink); color: #dfe3e8; margin-top: 56px; padding: 32px 0; font-size: 0.93rem; }
.foot a { color: #fff; }
.foot p { margin: 0 0 8px; }
.foot .sister a { margin-right: 4px; }
.foot nav a { margin-right: 18px; }

/* Embed mode */
body.embed .wrap { padding: 12px; max-width: none; }
body.embed .est { max-width: none; }
body.embed .est-grid { grid-template-columns: 1fr; }
@media (min-width: 760px) { body.embed .est-grid { grid-template-columns: 1fr 1fr; } body.embed .est-output { position: static; } }
body.embed .lead { margin-top: 28px; }

/* Small layout helpers (no inline styles, so the CSP can stay strict) */
.fig { margin: 0; }
.mt-s { margin-top: 12px; }
.pt-md { padding-top: 28px; }
.pt-lg { padding-top: 36px; }
.pt-xl { padding-top: 48px; }
.h1-sm { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.lede-sm { font-size: 1.05rem; }
.frame { border: 1px solid var(--line); max-width: 1000px; display: block; width: 100%; }
.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; }
.hero-grid > *, .est-grid > *, .cols > * { min-width: 0; }

/* Compact range bar for narrow screens, so the result stays visible while the form is edited */
.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: 24px -16px 0; padding: 10px 16px; background: var(--ink); color: #fff; font-weight: 800; z-index: 5; }
  .sticky-range a { color: #fff; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
  body.embed .sticky-range.on { margin: 16px -12px 0; }
}
.li-label { display: block; }
.li-basis { display: block; font-weight: 400; font-size: 0.82rem; color: var(--muted); }
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; width: 100%; }
.foot { margin-top: 56px; }
.foot .sister a { margin-right: 0; }
