/* Roof Estimate Calculator: neutral baseline styles.
   Every color, font, and radius is a --calc-* variable. Map them to the site's own tokens in the site stylesheet, e.g.
     .roof-calc { --calc-accent: var(--cta-bg); --calc-font-head: var(--head); }
   Restyle freely (layout, spacing, card shapes, choice-card look), but keep these working:
   - hidden steps stay hidden ([hidden]), the honeypot stays off-screen, focus rings stay visible,
   - receipt states stay distinguishable without color alone (text changes too),
   - text contrast 4.5:1, control boundaries 3:1 (design.md 7.4).
   All rules are scoped to .roof-calc so they never leak into marketing pages. */

.roof-calc {
  --calc-font-head: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --calc-font-body: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --calc-text: #1b1f22;
  --calc-muted: #555c63;
  --calc-surface: #ffffff;
  --calc-surface-alt: #f3f4f5;
  --calc-border: #c9ced2;
  --calc-accent: #1b1f22;
  --calc-accent-text: #ffffff;
  --calc-accent-hover: #000000;
  --calc-track: #dfe2e5;
  --calc-focus: #1b1f22;
  --calc-success-bg: #e6f2ea;
  --calc-success-text: #1d5b33;
  --calc-pending-bg: #f1f3f5;
  --calc-pending-text: #2e3438;
  --calc-error-bg: #fbeceb;
  --calc-error-text: #8e1a11;
  --calc-radius: 10px;
  font-family: var(--calc-font-body);
  color: var(--calc-text);
  line-height: 1.55;
}
.roof-calc *, .roof-calc *::before, .roof-calc *::after { box-sizing: border-box; }
.roof-calc [hidden] { display: none !important; }
.roof-calc :focus-visible { outline: 3px solid var(--calc-focus); outline-offset: 3px; }

.roof-calc .calc-card { background: var(--calc-surface); border: 1px solid var(--calc-border); border-radius: var(--calc-radius); padding: clamp(20px, 4vw, 40px); max-width: 760px; margin: 0 auto; }

/* Progress */
.roof-calc .progress-row { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; color: var(--calc-muted); margin-bottom: 8px; }
.roof-calc #form-progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 99px; background: var(--calc-track); overflow: hidden; margin-bottom: 28px; }
.roof-calc #form-progress::-webkit-progress-bar { background: var(--calc-track); }
.roof-calc #form-progress::-webkit-progress-value { background: var(--calc-accent); }
.roof-calc #form-progress::-moz-progress-bar { background: var(--calc-accent); }

/* Steps */
.roof-calc .step-index { font-size: .85rem; letter-spacing: .06em; color: var(--calc-muted); margin: 0 0 6px; }
.roof-calc .question-step h2 { font-family: var(--calc-font-head); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.2; margin: 0 0 8px; }
.roof-calc .question-step h2:focus { outline: none; }
.roof-calc .question-help { color: var(--calc-muted); margin: 0 0 20px; }
.roof-calc .field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0 0 16px; }
.roof-calc .field label, .roof-calc .field legend { font-weight: 700; }
.roof-calc .field small { color: var(--calc-muted); }
.roof-calc input[type=text], .roof-calc input[type=tel], .roof-calc textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--calc-text); background: var(--calc-surface);
  border: 2px solid var(--calc-border); border-radius: 8px; padding: 12px 14px; min-height: 48px;
}
.roof-calc input[aria-invalid=true], .roof-calc textarea[aria-invalid=true] { border-color: var(--calc-error-text); }
.roof-calc .input-suffix { display: flex; align-items: center; gap: 10px; }
.roof-calc .input-suffix input { max-width: 220px; }
.roof-calc .area-slider { width: 100%; height: 8px; border-radius: 99px; appearance: none; background: var(--calc-track); margin: 8px 0; }
.roof-calc .area-slider::-webkit-slider-thumb { appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--calc-accent); border: 3px solid var(--calc-surface); box-shadow: 0 0 0 1px var(--calc-border); cursor: pointer; }
.roof-calc .area-slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--calc-accent); border: 3px solid var(--calc-surface); cursor: pointer; }
.roof-calc .range-labels { display: flex; justify-content: space-between; font-size: .88rem; color: var(--calc-muted); }

/* Choice cards */
.roof-calc .choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.roof-calc .choice-list { display: grid; gap: 12px; }
@media (max-width: 560px) { .roof-calc .choice-grid { grid-template-columns: 1fr; } }
.roof-calc .choice-card { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--calc-border); border-radius: var(--calc-radius); background: var(--calc-surface); cursor: pointer; min-height: 64px; }
.roof-calc .choice-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.roof-calc .choice-card:has(input:checked) { border-color: var(--calc-accent); background: var(--calc-surface-alt); }
.roof-calc .choice-card:has(input:focus-visible) { outline: 3px solid var(--calc-focus); outline-offset: 2px; }
.roof-calc .choice-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--calc-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.roof-calc .choice-content strong { display: block; }
.roof-calc .choice-content small { color: var(--calc-muted); }

/* Notes, errors, actions */
.roof-calc .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.roof-calc .privacy-note { font-size: .9rem; color: var(--calc-muted); margin: 20px 0 8px; }
.roof-calc .form-error { background: var(--calc-error-bg); color: var(--calc-error-text); border-left: 5px solid var(--calc-error-text); padding: 12px 14px; border-radius: 6px; font-weight: 600; }
.roof-calc .form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 16px; }
.roof-calc .calc-btn, .roof-calc .restart { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border-radius: 8px; font: 700 1rem var(--calc-font-head); text-decoration: none; cursor: pointer; border: 2px solid var(--calc-accent); }
.roof-calc .calc-btn-primary, .roof-calc .restart { background: var(--calc-accent); color: var(--calc-accent-text); margin-left: auto; }
.roof-calc .calc-btn-primary:hover, .roof-calc .restart:hover { background: var(--calc-accent-hover); border-color: var(--calc-accent-hover); }
.roof-calc .calc-btn-quiet { background: transparent; color: var(--calc-text); border-color: var(--calc-border); }
.roof-calc .calc-btn:disabled { opacity: .6; cursor: wait; }
@media (max-width: 560px) { .roof-calc .form-actions .calc-btn { flex: 1 1 100%; margin-left: 0; } }

/* Report */
.roof-calc .report-card:focus, .roof-calc .report-panel:focus { outline: none; }
.roof-calc .report-loading { display: grid; gap: 12px; color: var(--calc-muted); }
.roof-calc .loading-bar { display: block; height: 6px; border-radius: 99px; background: var(--calc-track); }
.roof-calc .report-eyebrow { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--calc-muted); margin: 0 0 6px; }
.roof-calc .report-card h2, .roof-calc .report-panel h2 { font-family: var(--calc-font-head); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 0 0 14px; }
.roof-calc .receipt { padding: 12px 14px; border-radius: 8px; font-weight: 700; background: var(--calc-success-bg); color: var(--calc-success-text); border-left: 5px solid var(--calc-success-text); }
.roof-calc .receipt.pending { background: var(--calc-pending-bg); color: var(--calc-pending-text); border-left-color: var(--calc-pending-text); }
.roof-calc .receipt.failed { background: var(--calc-error-bg); color: var(--calc-error-text); border-left-color: var(--calc-error-text); }
.roof-calc .prepared { color: var(--calc-muted); font-size: .92rem; }
.roof-calc .roof-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.roof-calc .roof-facts span { background: var(--calc-surface-alt); border-radius: 8px; padding: 12px; color: var(--calc-muted); font-size: .9rem; }
.roof-calc .roof-facts strong { display: block; color: var(--calc-text); font-size: 1.05rem; }
.roof-calc .costs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.roof-calc .cost-card { border: 1px solid var(--calc-border); border-radius: var(--calc-radius); padding: 18px; }
.roof-calc .cost-card h3, .roof-calc .next-step h3 { font-family: var(--calc-font-head); margin: 0 0 6px; font-size: 1.1rem; }
.roof-calc .amount { font-family: var(--calc-font-head); font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); font-weight: 800; margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.roof-calc .report-copy p, .roof-calc .next-step p { margin: 0 0 10px; }
.roof-calc .next-step { background: var(--calc-surface-alt); border-radius: var(--calc-radius); padding: 18px; margin: 18px 0; }
.roof-calc .submission-state { position: absolute; left: -10000px; }
@media (max-width: 640px) { .roof-calc .roof-facts, .roof-calc .costs { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .roof-calc * { transition: none !important; } }

/* Tempe Commercial Roof Coating skin: behavior and wording remain kit-locked. */
.roof-calc{--calc-font-head:"IBM Plex Sans",Arial,sans-serif;--calc-font-body:"Source Sans 3",Arial,sans-serif;--calc-text:#15191d;--calc-muted:#536b7b;--calc-surface:#fff;--calc-surface-alt:#eef4d0;--calc-border:#aeb8bf;--calc-accent:#c4e600;--calc-accent-text:#15191d;--calc-accent-hover:#a8c300;--calc-track:#d8dde0;--calc-focus:#20252b;--calc-success-bg:#e8f4c7;--calc-success-text:#385100;--calc-pending-bg:#e3e5e7;--calc-pending-text:#20252b;--calc-error-bg:#ffe1e1;--calc-error-text:#7b1818;--calc-radius:12px}.roof-calc .calc-card{border:2px solid #d2d8dc;box-shadow:0 18px 48px rgba(21,25,29,.1)}.roof-calc #form-progress{height:10px}.roof-calc .question-step h2,.roof-calc .report-card h2,.roof-calc .report-panel h2{letter-spacing:-.025em}.roof-calc .choice-card{transition:border-color .15s ease,background .15s ease,transform .15s ease}.roof-calc .choice-card:hover{border-color:#536b7b;transform:translateY(-1px)}.roof-calc .choice-icon svg{stroke:#536b7b}.roof-calc .choice-card:has(input:checked) .choice-icon svg{stroke:#20252b}.roof-calc .calc-btn-primary,.roof-calc .restart{box-shadow:0 4px 0 #7f9800}.roof-calc .calc-btn-primary:hover,.roof-calc .restart:hover{box-shadow:0 3px 0 #718800}.roof-calc .report-card{border-top:6px solid var(--calc-accent)}.roof-calc .cost-card{border-top:4px solid #c4e600}.roof-calc .amount{color:#20252b}.roof-calc .privacy-note a{color:#20252b;font-weight:700}
