:root {
  --ink: #14242b;
  --ink-soft: #46616a;
  --navy: #10272f;
  --navy-2: #1b3940;
  --paper: #f4f0e8;
  --card: #fffdf8;
  --line: #d8d6cc;
  --muted: #718187;
  --copper: #e47b45;
  --copper-dark: #b9582c;
  --mint: #d9eadb;
  --shadow: 0 22px 70px rgba(16, 39, 47, .14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 80% 10%, rgba(228,123,69,.11), transparent 28rem), var(--paper); }
button, input, textarea { font: inherit; }
a { color: inherit; }
.site-shell { display: grid; grid-template-columns: minmax(260px, 31vw) minmax(0, 1fr); min-height: 100vh; }
.brand-rail { display: flex; flex-direction: column; justify-content: space-between; padding: 38px clamp(26px, 4.5vw, 72px); background: var(--navy); color: #f7f2e9; position: relative; overflow: hidden; }
.brand-rail::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; right: -210px; bottom: -170px; box-shadow: 0 0 0 34px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.02); pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; position: relative; z-index: 1; }
.rail-copy { max-width: 340px; position: relative; z-index: 1; margin: auto 0; padding: 90px 0 70px; }
.kicker, .eyebrow, .step-index { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 750; }
.kicker { color: var(--copper); }
.rail-copy h1 { font-size: clamp(2.5rem, 4.1vw, 5.2rem); line-height: .98; letter-spacing: -.065em; margin: 0 0 25px; font-weight: 760; }
.rail-copy p:not(.kicker) { color: #c3d4d0; font-size: .95rem; line-height: 1.65; max-width: 300px; }
.rail-note { display: flex; gap: 10px; align-items: center; color: #b4c9c7; font-size: .73rem; line-height: 1.35; max-width: 220px; position: relative; z-index: 1; }
.note-dot { width: 8px; height: 8px; background: var(--copper); border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 5px rgba(228,123,69,.12); }
.phone-link { display: grid; gap: 4px; text-decoration: none; margin-top: 46px; position: relative; z-index: 1; }
.phone-link span { color: #9bb5b1; text-transform: uppercase; letter-spacing: .14em; font-size: .62rem; }
.phone-link strong { font-size: 1.05rem; letter-spacing: .03em; }
.content-column { padding: 35px clamp(22px, 5vw, 90px) 24px; display: flex; flex-direction: column; min-width: 0; }
.topbar, .progress-row { display: flex; align-items: center; gap: 16px; }
.topbar { max-width: 850px; width: 100%; margin: 0 auto 44px; color: var(--muted); }
.topbar-rule { height: 1px; background: var(--line); flex: 1; }
.eyebrow { font-size: .66rem; margin: 0; color: var(--navy-2); white-space: nowrap; }
.eyebrow.copper { color: var(--copper-dark); }
.step-context, .progress-caption { text-transform: uppercase; letter-spacing: .13em; font-size: .61rem; color: var(--muted); white-space: nowrap; }
.estimate-card { width: 100%; max-width: 850px; margin: 0 auto; padding: clamp(26px, 5vw, 65px); background: var(--card); box-shadow: var(--shadow); border: 1px solid rgba(20,36,43,.07); position: relative; overflow: hidden; }
.estimate-card::before { content: ""; position: absolute; top: 0; left: 0; width: 115px; height: 6px; background: var(--copper); transform: skewX(-35deg) translateX(-22px); }
.card-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 48px; }
.lead { font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.55; color: var(--ink-soft); max-width: 530px; margin: 12px 0 0; }
.estimate-tag { color: var(--copper-dark); border: 1px solid rgba(228,123,69,.42); border-radius: 50%; width: 74px; height: 74px; display: grid; place-content: center; text-align: center; font-size: .55rem; line-height: 1.3; letter-spacing: .1em; font-weight: 800; flex: 0 0 auto; transform: rotate(8deg); }
.progress-row { justify-content: space-between; margin-bottom: 10px; }
.progress-row span:first-child { font-size: .74rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
progress { width: 100%; height: 7px; margin: 0 0 52px; border: 0; border-radius: 0; background: #e4e2d8; appearance: none; }
progress::-webkit-progress-bar { background: #e4e2d8; }
progress::-webkit-progress-value { background: var(--copper); }
progress::-moz-progress-bar { background: var(--copper); }
.question-step { animation: rise .25s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.step-index { color: var(--copper-dark); margin-bottom: 13px; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); line-height: .98; letter-spacing: -.06em; max-width: 670px; margin: 0 0 18px; }
.question-help { color: var(--ink-soft); line-height: 1.65; max-width: 620px; margin: 0 0 36px; }
.field { display: grid; gap: 10px; max-width: 640px; }
.field label, .choice-field legend { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field label span { font-weight: 500; letter-spacing: .01em; text-transform: none; color: var(--muted); }
input[type="text"], input[type="tel"], textarea { width: 100%; border: 1px solid #c9cec8; border-radius: 0; background: #fff; color: var(--ink); padding: 16px 17px; outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
input[type="text"], input[type="tel"] { min-height: 59px; font-size: 1.08rem; }
textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
input:focus, textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 4px rgba(228,123,69,.16); }
input:user-invalid, textarea:user-invalid { border-color: #b34b43; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 75px; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.input-suffix span { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .8rem; font-weight: 750; }
small { display: block; color: var(--muted); line-height: 1.5; font-size: .78rem; }
.area-slider { appearance: none; width: 100%; height: 4px; margin: 45px 0 12px; border-radius: 0; background: linear-gradient(to right, var(--copper) 0%, var(--copper) 0%, #dedfd7 0%, #dedfd7 100%); cursor: pointer; }
.area-slider::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); border: 5px solid var(--copper); box-shadow: 0 2px 8px rgba(16,39,47,.2); }
.area-slider::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--navy); border: 5px solid var(--copper); }
.range-labels { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.choice-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-field legend { margin-bottom: 14px; }
.choice-grid, .choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-list { grid-template-columns: 1fr; max-width: 640px; }
.choice-card { display: flex; align-items: center; gap: 15px; padding: 18px 18px; border: 1px solid #c9cec8; background: #fff; cursor: pointer; min-height: 72px; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.choice-card:hover { border-color: var(--copper); transform: translateY(-2px); }
.choice-card:has(input:checked) { border-color: var(--copper); background: #fff7ef; box-shadow: inset 4px 0 0 var(--copper); }
.choice-card input { accent-color: var(--copper); width: 18px; height: 18px; flex: 0 0 auto; }
.choice-card span { display: grid; gap: 4px; flex: 1; }
.choice-card strong { font-size: .94rem; }
.choice-card b { color: var(--copper-dark); font-size: 1.1rem; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 52px; }
.button { border: 0; min-height: 53px; padding: 0 22px; cursor: pointer; font-weight: 800; letter-spacing: .04em; transition: background .18s ease, color .18s ease, transform .18s ease, opacity .18s ease; }
.button:focus-visible { outline: 3px solid rgba(228,123,69,.45); outline-offset: 3px; }
.button-primary { background: var(--navy); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--copper-dark); transform: translateY(-2px); }
.button-quiet { background: transparent; color: var(--ink-soft); padding-left: 0; }
.button-quiet:hover:not(:disabled) { color: var(--copper-dark); }
.button:disabled { cursor: wait; opacity: .52; }
.privacy-note { max-width: 620px; color: var(--muted); font-size: .73rem; line-height: 1.55; margin: 38px 0 0; }
.privacy-note a { color: var(--ink-soft); font-weight: 750; }
.form-error { background: #fff0ed; border-left: 4px solid #b34b43; color: #71332f; padding: 12px 14px; margin: 25px 0 -25px; line-height: 1.45; font-size: .85rem; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.page-footer { width: 100%; max-width: 850px; margin: auto auto 0; padding-top: 25px; display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.page-footer a { text-decoration: none; }
.page-footer a:hover { color: var(--copper-dark); }
.report-card { min-height: 600px; }
.report-loading { display: grid; place-items: center; min-height: 480px; color: var(--muted); gap: 12px; }
.loading-bar { width: 120px; height: 5px; background: linear-gradient(90deg, var(--copper), #f4d9c8, var(--copper)); background-size: 200% 100%; animation: loading 1s linear infinite; }
@keyframes loading { to { background-position: -200% 0; } }
.report-eyebrow { color: var(--copper-dark); margin: 0 0 15px; text-transform: uppercase; letter-spacing: .15em; font-size: .68rem; font-weight: 800; }
.report-card h2 { max-width: 700px; }
.receipt { display: inline-flex; gap: 8px; align-items: center; color: #32613d; background: var(--mint); padding: 9px 12px; font-weight: 750; font-size: .78rem; margin: 8px 0 12px; }
.receipt::before { content: "✓"; font-weight: 900; }
.prepared { color: var(--muted); font-size: .8rem; margin: 0 0 34px; }
.roof-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin: 0 0 26px; gap: 16px; }
.roof-facts span { font-size: .8rem; color: var(--ink-soft); }
.roof-facts strong { display: block; color: var(--ink); font-size: 1.05rem; margin-top: 4px; }
.costs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 0 0 30px; }
.cost-card { background: var(--navy); color: #fff; padding: 24px; min-height: 155px; position: relative; }
.cost-card:nth-child(2) { background: #e9ddd0; color: var(--ink); }
.cost-card h3 { margin: 0 0 15px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.amount { font-size: clamp(1.65rem, 3vw, 2.65rem); line-height: 1; letter-spacing: -.06em; font-weight: 770; margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.cost-card p:last-child { margin: 0; font-size: .74rem; opacity: .72; }
.report-copy { color: var(--ink-soft); line-height: 1.65; max-width: 690px; }
.report-copy strong { color: var(--ink); }
.next-step { border-left: 4px solid var(--copper); padding: 17px 20px; background: #fbf4eb; margin-top: 29px; color: var(--ink-soft); line-height: 1.6; }
.next-step h3 { margin: 0 0 8px; color: var(--ink); font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; }
.restart { display: inline-flex; margin-top: 25px; color: var(--copper-dark); font-weight: 800; text-decoration: none; }
.restart:hover { text-decoration: underline; }
@media (max-width: 850px) {
  .site-shell { grid-template-columns: 1fr; }
  .brand-rail { min-height: 360px; padding: 27px 24px 30px; }
  .rail-copy { padding: 55px 0 32px; margin: 0; }
  .rail-copy h1 { font-size: clamp(2.35rem, 9vw, 4.5rem); max-width: 600px; }
  .rail-copy p:not(.kicker) { max-width: 500px; }
  .phone-link { position: absolute; right: 25px; bottom: 29px; margin: 0; text-align: right; }
  .content-column { padding: 25px 18px 20px; }
  .topbar { margin-bottom: 24px; }
  .estimate-card { padding: 27px 21px 31px; }
  .page-footer { padding: 22px 2px 0; flex-wrap: wrap; }
}
@media (max-width: 550px) {
  .brand-rail { min-height: 425px; }
  .rail-copy { padding-top: 66px; }
  .rail-copy h1 { font-size: 2.75rem; }
  .phone-link { position: static; text-align: left; margin-top: 25px; }
  .topbar .step-context { display: none; }
  .card-heading { margin-bottom: 34px; }
  .estimate-tag { width: 64px; height: 64px; font-size: .48rem; }
  .progress-caption { display: none; }
  progress { margin-bottom: 39px; }
  h2 { font-size: 2.45rem; }
  .choice-grid, .costs { grid-template-columns: 1fr; }
  .roof-facts { grid-template-columns: 1fr; gap: 11px; }
  .form-actions { justify-content: stretch; }
  .form-actions .button-primary { flex: 1; }
  .page-footer { font-size: .58rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.rail-image{width:100%;max-width:340px;margin:0 0 22px;position:relative;z-index:1}.rail-image img{display:block;width:100%;height:170px;object-fit:cover;border:1px solid rgba(255,255,255,.2);opacity:.92}.rail-image figcaption{background:rgba(228,123,69,.92);color:#fff;padding:9px 11px;font-size:.68rem;line-height:1.35;letter-spacing:.03em}.rail-image figcaption::first-line{font-weight:800}@media (max-width:850px){.rail-image{max-width:520px;margin-top:2px}.rail-image img{height:150px}}
/* The supplied logo replaces the text-only calculator/report mark. */
.brand-logo-image{display:block;width:min(280px,100%);height:auto;background:#fff;padding:9px;object-fit:contain}.brand{display:block;width:min(280px,100%)}
@media (max-width:850px){.brand-logo-image{width:min(300px,100%)}}

/* Visual choice cards for the estimate flow. The native radio remains in the DOM for keyboard and screen-reader access. */
.choice-card{position:relative;align-items:flex-start;min-height:104px;padding:20px 18px}.choice-card input{position:absolute;opacity:0;width:1px;height:1px;margin:0}.choice-card .choice-icon{display:grid;place-items:center;flex:0 0 auto;width:48px;height:48px;border:1px solid #c9cec8;background:#f7f6f0;color:var(--muted);transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}.choice-card .choice-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.choice-card .choice-content{display:grid;gap:5px;flex:1;padding-top:2px}.choice-card:has(input:checked) .choice-icon{background:var(--copper);border-color:var(--copper);color:#fff;transform:translateY(-1px)}.choice-card:has(input:focus-visible){outline:3px solid rgba(228,123,69,.42);outline-offset:3px}.choice-card:has(input:checked) b{transform:translateX(2px);color:var(--copper-dark)}.choice-card b{transition:transform .18s ease}@media (max-width:550px){.choice-card{min-height:92px;padding:17px 15px}.choice-card .choice-icon{width:43px;height:43px}.choice-card .choice-icon svg{width:22px;height:22px}}

/* Report-first submission states. */
.receipt.pending{background:#fff2df;color:#87502d}.receipt.failed{background:#fff0ed;color:#71332f}
.submission-state{margin-top:22px;padding:13px 15px;border-left:4px solid var(--copper);background:#fbf4eb;color:var(--ink-soft);font-size:.82rem;line-height:1.5}
.submission-state:empty{display:none}.retry-submission{border:0;background:transparent;padding:0;margin-top:18px;color:var(--copper-dark);font-weight:800;cursor:pointer;font-size:.85rem}.retry-submission:hover{text-decoration:underline}.retry-submission:disabled{opacity:.55;cursor:wait}
