:root {
  --red: #ee3a43; --red-dark: #c92830; --red-soft: #fcf2f2;
  --ink: #1c1917; --ink-2: #44403c; --muted: #78716c;
  --line: #e7e5e4; --bg: #faf9f7; --card: #ffffff;
  --ok: #15803d; --radius: 14px;
  --shadow: 0 1px 2px rgba(28,25,23,.06), 0 4px 14px rgba(28,25,23,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.45; font-size: 16px;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

.top { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; gap: 12px; }
.logo { height: 40px; width: auto; }
.top-call { color: var(--red); font-weight: 700; font-size: .85rem; text-decoration: none; border: 1.5px solid var(--red); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.progress { height: 4px; background: var(--line); }
.progress-bar { height: 100%; width: 0; background: var(--red); transition: width .25s ease; }

.wrap { max-width: 640px; margin: 0 auto; padding: 18px 16px 8px; outline: none; }
.eyebrow { display: flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.eyebrow img { width: 16px; height: 16px; }
h1 { font-size: 1.55rem; line-height: 1.2; margin-bottom: 6px; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 22px 0 10px; }
.lead { color: var(--ink-2); margin-bottom: 16px; }
.sub-progress { color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .02em; margin: -2px 0 12px; }
.place-note { margin: 0 0 12px; font-size: .9rem; color: var(--ink-2); }
.note { color: var(--muted); font-size: .85rem; margin-top: 10px; }
.door-tag { display: inline-block; background: var(--red-soft); color: var(--red-dark); font-weight: 700; font-size: .75rem; border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }

/* choice cards */
.choices { display: grid; gap: 10px; }
.choices.cols-2 { grid-template-columns: repeat(2, 1fr); }
.choices.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 560px) { .choices.cols-3.wide-4 { grid-template-columns: repeat(4, 1fr); } }
.choice {
  position: relative; display: flex; gap: 12px; align-items: center; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 14px 36px 14px 14px; cursor: pointer; box-shadow: var(--shadow); width: 100%;
  transition: border-color .12s, box-shadow .12s, transform .05s;
}
.choice:active { transform: scale(.99); }
.choice[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(238,58,67,.15); }
.choice[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center;
}
.choice .title { font-weight: 700; font-size: 1rem; }
.choice .sub { color: var(--muted); font-size: .85rem; }
.choice .desc { color: var(--ink-2); font-size: .88rem; margin-top: 4px; }
.choice.stack { flex-direction: column; align-items: stretch; text-align: center; padding: 10px 8px 12px; gap: 8px; }
.choice.stack .title { font-size: .9rem; }
.choice .art { background: #fff; border-radius: 8px; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; }
.choice .art img { width: 100%; height: 100%; object-fit: contain; }
.choice.big { padding: 18px 36px 18px 18px; align-items: flex-start; }
.choice .badge { display: inline-block; margin-left: 6px; font-size: .7rem; font-weight: 700; color: var(--red-dark); background: var(--red-soft); border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }
.choice .pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pill { font-size: .72rem; font-weight: 600; color: var(--ink-2); background: #f5f5f4; border-radius: 999px; padding: 3px 8px; }
.ins-art { flex: 0 0 64px; height: 64px; border-radius: 12px; background: var(--red-soft); display: grid; place-items: center; }
.ins-art svg { width: 44px; height: 44px; }
.opener-art { flex: 0 0 64px; height: 64px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.opener-art img, .opener-art svg { width: 56px; height: 56px; object-fit: contain; }

/* sizes */
.size-group-label { font-weight: 700; color: var(--ink-2); font-size: .85rem; margin: 14px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 14px; cursor: pointer;
  font-weight: 700; min-width: 92px; text-align: center; box-shadow: var(--shadow);
}
.chip small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.chip[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); }
.chip.wide { width: 100%; }

/* color swatches */
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 560px) { .swatches { grid-template-columns: repeat(4, 1fr); } }
.swatch { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; text-align: center; box-shadow: var(--shadow); position: relative; }
.swatch .sw { aspect-ratio: 1/1; border-radius: 50%; overflow: hidden; border: 1px solid rgba(0,0,0,.12); margin: 2px auto 6px; width: 64px; height: 64px; }
.swatch .sw img { width: 100%; height: 100%; object-fit: cover; }
.swatch .nm { font-size: .8rem; font-weight: 600; line-height: 1.2; }
.swatch[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(238,58,67,.15); }
.swatch[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }

/* forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field label .opt { color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(238,58,67,.15); }
.field textarea { min-height: 96px; resize: vertical; }
.field .err { color: var(--red-dark); font-size: .8rem; margin-top: 4px; display: none; }
.field.invalid input { border-color: var(--red); }
.field.invalid .err { display: block; }
.seg { display: flex; gap: 8px; }
.seg .chip { flex: 1; min-width: 0; }

.toggle-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-top: 14px; box-shadow: var(--shadow); cursor: pointer; }
.toggle-card input { width: 22px; height: 22px; accent-color: var(--red); }
.toggle-card img { width: 40px; height: 40px; }

.stepper { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 18px 0; }
.stepper button { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.6rem; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
.stepper .val { font-size: 2.4rem; font-weight: 800; min-width: 48px; text-align: center; }

/* summary */
.sum-door { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.sum-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.sum-head .t { font-weight: 800; }
.sum-head span { display: flex; gap: 14px; }
.sum-head button { background: none; border: none; color: var(--red); font-weight: 700; cursor: pointer; font-size: .85rem; }
.sum-icons { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.sum-icons figure { width: 64px; text-align: center; }
.sum-icons img { width: 64px; height: 52px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sum-icons figcaption { font-size: .66rem; color: var(--muted); margin-top: 3px; line-height: 1.15; }
.sum-rows { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .9rem; }
.sum-rows dt { color: var(--muted); }
.sum-rows dd { font-weight: 600; }
.sum-contact { font-size: .9rem; }

.send-box { background: #fff; border: 1.5px solid var(--red); border-radius: var(--radius); padding: 16px; margin: 16px 0; box-shadow: var(--shadow); }
.send-box .to { font-size: .88rem; color: var(--ink-2); margin-bottom: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 13px 18px; font-weight: 700; cursor: pointer; border: 1.5px solid transparent; text-decoration: none; font-size: 1rem; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); }
.btn.primary:disabled { background: #e7c3c5; cursor: not-allowed; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.block { width: 100%; }
.btn-col { display: grid; gap: 10px; }
.btn svg { width: 20px; height: 20px; }
.copied { color: var(--ok); font-weight: 700; font-size: .85rem; text-align: center; min-height: 1.2em; }
.privacy { display: flex; gap: 10px; background: #f5f5f4; border-radius: 12px; padding: 12px; font-size: .82rem; color: var(--ink-2); margin-top: 14px; }
.privacy svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--ok); }

.welcome-hero { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; position: relative; overflow: hidden; }
.welcome-hero .wm { position: absolute; right: -30px; bottom: -30px; width: 160px; opacity: .07; }
.steps-list { list-style: none; display: grid; gap: 8px; margin: 12px 0 4px; }
.steps-list li { display: flex; gap: 10px; align-items: center; font-size: .92rem; }
.steps-list .n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--red-soft); color: var(--red-dark); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.rep-card { display: flex; gap: 12px; align-items: center; background: var(--red-soft); border-radius: 12px; padding: 12px; margin-top: 12px; font-size: .9rem; }
.rep-card .av { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center; }

.nav { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); z-index: 10; }
.nav-inner { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; }
.nav .btn { flex: 1; }
.nav .btn.ghost { flex: 0 0 32%; }
.nav.hidden { display: none; }

.site-foot { max-width: 640px; margin: 18px auto 0; padding: 0 16px 16px; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .72rem; }
.hidden { display: none !important; }

/* recommended line (5740) */
.choice.recommended { border: 2px solid var(--red); box-shadow: 0 0 0 3px rgba(238,58,67,.12), var(--shadow); padding-top: 34px; }
.rec-badge { position: absolute; top: 0; left: 0; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .03em; padding: 5px 12px; border-radius: 12px 0 12px 0; text-transform: uppercase; }
.formerly { font-weight: 500; color: var(--muted); font-size: .85rem; }

/* how to measure */
.measure { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); margin: 4px 0 6px; box-shadow: var(--shadow); }
.measure summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: .92rem; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.measure summary::-webkit-details-marker { display: none; }
.measure summary span { color: var(--red); }
.measure[open] summary span { visibility: hidden; }
.measure-body { padding: 0 14px 14px; }
.measure-body svg { width: 100%; height: auto; max-width: 360px; display: block; margin: 0 auto 8px; }
.measure-body ol { margin: 0 0 0 18px; font-size: .88rem; color: var(--ink-2); display: grid; gap: 4px; }

/* copied door */
.copied-banner { background: var(--red-soft); border-radius: 12px; padding: 12px; font-size: .86rem; margin-bottom: 12px; }
.copied-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); }
.copied-actions button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 700; color: var(--red-dark); cursor: pointer; }

/* opener photos */
.opener-art.photo { flex: 0 0 96px; height: 64px; background: #fff; }
.opener-art.photo img { width: 94px; height: 60px; object-fit: contain; }

/* Window inserts (official Overhead Door window-style drawings, very wide) */
.choice.insert .art.insert-art { aspect-ratio: 3/1; padding: 6px; background: #fff; }
.choice.insert .title { font-size: .92rem; }

/* GB-15: thermal ratings and customer notes */
.badge-dasma {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .01em;
  color: #0d5c5c; background: #e7f4f3; border: 1px solid #9dcecb;
  border-radius: 999px; padding: 2px 8px; vertical-align: middle;
}
.dasma-note { margin-top: 14px; }
.callout {
  background: #fff; border: 1.5px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 12px 14px; margin: 16px 0 8px; box-shadow: var(--shadow);
}
.callout .t { font-weight: 800; margin-bottom: 4px; }
.callout p { margin: 0; color: var(--ink-2); font-size: .95rem; }
