/* ============================================================
   Lifetime Home Services — Home Visualizer
   Design tokens from the live site (Manrope, teal #33BEBF, navy #0A2540)
   ============================================================ */

:root {
  --teal: #33BEBF;
  --teal-dark: #2AA6A7;
  --teal-ink: #17696A;   /* 6.43:1 on white, 5.84:1 on --teal-soft */
  --teal-soft: #E8F7F7;
  --navy: #0A2540;
  --navy-header: #172950;
  --ink: #16324f;
  --body: #5a6b7b;
  --muted: #5F7080;
  --line: #e3ecf0;
  --tint: #F4FBFC;
  --white: #fff;
  --warn: #b4531f;
  --danger: #b3261e;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(10,37,64,.06), 0 2px 8px rgba(10,37,64,.04);
  --sh: 0 4px 12px rgba(10,37,64,.07), 0 12px 32px rgba(10,37,64,.06);
  --sh-lg: 0 12px 28px rgba(10,37,64,.10), 0 32px 64px rgba(10,37,64,.10);

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 5.2vw, 52px); }
h2 { font-size: clamp(23px, 3.4vw, 34px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }
p { margin: 0; }
a { color: var(--teal-ink); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.stack > * + * { margin-top: 12px; }

/* ---------------- header ---------------- */
.site-header {
  background: var(--navy-header);
  position: sticky; top: 0; z-index: 60;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand-mark {
  background: var(--teal); color: var(--navy); font-weight: 800; font-size: 12px;
  padding: 6px 9px; border-radius: 7px; letter-spacing: .6px; flex: none;
}
.brand-name { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name strong { font-weight: 800; }
.header-right { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
  white-space: nowrap; padding: 7px 12px; border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,.28); transition: background .18s var(--ease);
}
.header-phone:hover { background: rgba(255,255,255,.1); }
.gear-btn {
  background: none; border: none; color: rgba(255,255,255,.6); font-size: 17px;
  cursor: pointer; padding: 6px; line-height: 1; border-radius: 8px;
}
.gear-btn:hover { color: #fff; background: rgba(255,255,255,.08); }

/* progress rail under header */
.progress-rail {
  position: sticky; top: var(--header-h); z-index: 55;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.progress-inner { display: flex; align-items: center; gap: 6px; height: 46px; overflow-x: auto; scrollbar-width: none; }
.progress-inner::-webkit-scrollbar { display: none; }
.pstep {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-size: 13px; font-weight: 700; color: var(--muted);
  padding: 5px 11px; border-radius: var(--r-pill); background: transparent;
  border: none; cursor: default; font-family: inherit; white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.pstep .dot {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: var(--line); color: var(--ink);
  transition: all .2s var(--ease);
}
.pstep.active { color: var(--navy); background: var(--teal-soft); }
.pstep.active .dot { background: var(--teal); color: var(--navy); }
.pstep.done { color: var(--ink); cursor: pointer; }
.pstep.done .dot { background: var(--navy); color: #fff; }
.pstep.done:hover { background: var(--tint); }
.psep { color: var(--muted); flex: none; font-size: 12px; }

/* ---------------- hero ---------------- */
.hero {
  background:
    radial-gradient(1000px 380px at 50% -12%, #dff4f5 0%, transparent 62%),
    linear-gradient(178deg, var(--tint) 0%, #eef9fa 100%);
  padding: clamp(34px, 6vw, 62px) 0 clamp(28px, 4.5vw, 44px);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); color: var(--teal-ink);
  font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 15px; border-radius: var(--r-pill); box-shadow: var(--sh-sm);
  margin-bottom: 16px;
}
.hero .lead { max-width: 580px; margin: 16px auto 0; font-size: clamp(15px, 1.7vw, 18px); }
.hero-trust {
  margin-top: 22px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.trust-chip {
  background: rgba(255,255,255,.85); border: 1px solid var(--line); color: var(--ink);
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: var(--r-pill);
}

/* ---------------- steps ---------------- */
.step { padding: clamp(30px, 4.6vw, 52px) 0 4px; scroll-margin-top: calc(var(--header-h) + 58px); }
.step[data-revealing] { animation: rise .38s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
.step-head { display: flex; align-items: center; gap: 13px; margin-bottom: 7px; }
.step-num {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--teal); color: var(--navy); font-weight: 800; font-size: 15px;
  display: grid; place-items: center; box-shadow: 0 3px 10px rgba(51,190,191,.35);
}
.step-num.done { background: var(--navy); color: #fff; box-shadow: none; }
.step-sub { margin: 4px 0 22px; max-width: 660px; font-size: 15.5px; }
.muted { color: var(--muted); font-size: 14px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; text-decoration: none; font-family: inherit;
  font-size: 15px; font-weight: 800; letter-spacing: .02em;
  padding: 14px 26px; border-radius: var(--r-pill);
  transition: transform .12s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  text-align: center; line-height: 1.2;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--teal); color: var(--navy); box-shadow: 0 4px 14px rgba(51,190,191,.4); }
.btn-primary:hover { background: var(--teal-dark); color: var(--navy); box-shadow: 0 6px 20px rgba(51,190,191,.5); }
.btn-secondary { background: var(--white); color: var(--navy); border: 1.5px solid var(--line); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-ink); }
.btn-dark { background: var(--navy-header); color: #fff; }
.btn-dark:hover { background: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-ghost-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-ghost-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { font-size: 16px; padding: 17px 34px; }
.btn-sm { font-size: 13.5px; padding: 10px 18px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-reason { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

.btn-mini {
  border: 1.5px solid var(--line); background: #fff; color: var(--navy);
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 7px 13px; border-radius: var(--r-pill); white-space: nowrap;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.btn-mini:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-mini.danger { color: var(--danger); }
.btn-mini.danger:hover { border-color: var(--danger); }

/* ---------------- generic card grids ---------------- */
.grid { display: grid; gap: 14px; }
.grid-rooms { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); max-width: 760px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-swatches { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.grid-finishes { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); max-width: 900px; }

.card {
  position: relative; background: var(--white); border: 2px solid transparent;
  border-radius: var(--r-lg); box-shadow: var(--sh-sm); cursor: pointer;
  overflow: hidden; text-align: left;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
  font-family: inherit; width: 100%; display: block; padding: 0;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.card.selected { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(51,190,191,.14), var(--sh); }
.card:focus-visible, .btn:focus-visible, .btn-mini:focus-visible, .sample-thumb:focus-visible,
.var-item:focus-visible, .gear-btn:focus-visible, .header-phone:focus-visible,
.pstep:focus-visible, .coll-tab:focus-visible, .lead-card input:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 3px;
}
.card.selected::after {
  content: '✓'; position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: var(--navy);
  font-size: 13px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(10,37,64,.3);
}
.card-body { padding: 13px 15px 15px; }
.card-title { font-weight: 800; color: var(--navy); font-size: 15.5px; line-height: 1.25; }
.card-sub { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.card-icon { font-size: 30px; line-height: 1; margin-bottom: 8px; display: block; }
.card-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--tint); }

/* room cards get a taller feel */
.grid-rooms .card-body { padding: 18px; }
.grid-rooms .card-icon { font-size: 34px; }

/* swatches */
.swatch-preview { width: 100%; aspect-ratio: 1 / 1; height: auto; display: block; }
.coll-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.coll-tab {
  font-family: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer;
  padding: 9px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); transition: all .16s var(--ease);
}
.coll-tab.active { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.popular-pill {
  position: absolute; top: 8px; left: 8px; z-index: 3; background: var(--teal); color: var(--navy);
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--r-pill);
}
.swatch-code { font-size: 11px; font-weight: 800; letter-spacing: .05em; color: var(--muted); margin-top: 2px; }
.collection-head {
  grid-column: 1 / -1; font-size: 12px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  padding: 12px 2px 6px; border-bottom: 1px solid var(--line); margin-bottom: 2px;
}
.collection-head:first-child { padding-top: 0; }

/* finish chips */
.finish { display: flex; flex-direction: column; gap: 0; }
.finish-sw { width: 100%; height: 54px; }
.finish .card-body { padding: 9px 11px 11px; }
.finish .card-title { font-size: 13.5px; }
.finish .card-sub { font-size: 11.5px; }

/* ---------------- photo stage ---------------- */
.photo-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sample-strip { margin-top: 20px; }
.sample-label { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 8px; display: block; }
.sample-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sample-thumb {
  border: 2px solid transparent; border-radius: var(--r); padding: 0; background: none;
  cursor: pointer; overflow: hidden; box-shadow: var(--sh-sm); width: 132px;
  transition: transform .16s var(--ease), border-color .16s var(--ease);
}
.sample-thumb:hover { border-color: var(--teal); transform: translateY(-2px); }
.sample-thumb img { width: 100%; height: 84px; object-fit: cover; display: block; }
.sample-thumb span { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink); padding: 6px 8px; text-align: left; line-height: 1.3; }

.photo-stage { margin-top: 22px; max-width: 780px; }
.canvas-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); }
#photoCanvas { width: 100%; display: block; cursor: crosshair; }
.mark-banner {
  position: absolute; top: 10px; left: 10px; right: 10px; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(10,37,64,.9); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 10px 13px; border-radius: var(--r); backdrop-filter: blur(6px);
}
.mark-banner .btn-mini { pointer-events: auto; border-color: rgba(255,255,255,.35); background: transparent; color: #fff; }
.mark-banner .btn-mini:hover { background: rgba(255,255,255,.14); color: #fff; }
.photo-toolbar {
  margin-top: 12px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.photo-note { font-size: 13.5px; color: var(--muted); }
.toolbar-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* photo tips popover */
.tips {
  margin-top: 14px; background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px; max-width: 620px;
}
.tips h4 { font-size: 14px; margin-bottom: 8px; }
.tips ul { list-style: none; display: grid; gap: 7px; }
.tips li { font-size: 13.5px; display: flex; gap: 9px; align-items: flex-start; line-height: 1.45; }
.tips li b { color: var(--ink); }
.tips .tip-ico { flex: none; }

/* ---------------- mode badge ---------------- */
.mode-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: .05em;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: #eef2f5; color: #61707d; margin-bottom: 14px;
}
.mode-badge.ai { background: var(--teal-soft); color: var(--teal-ink); }
.mode-badge .bdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------------- render ---------------- */
.render-loading {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 15px;
  background: var(--tint); border: 1px solid #d8ecee; border-radius: var(--r-lg);
  padding: 22px 24px; margin-top: 18px; max-width: 860px; min-height: 120px;
}
.render-loading .lp-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(7px) saturate(.7) brightness(.92); opacity: .55;
}
.render-loading .lp-scan {
  position: absolute; left: 0; right: 0; height: 34%;
  background: linear-gradient(180deg, transparent, rgba(51,190,191,.45), transparent);
  animation: scan 2.2s var(--ease) infinite;
}
@keyframes scan { 0% { top: -34% } 100% { top: 100% } }
.render-loading > .spinner, .render-loading > div { position: relative; z-index: 2; }
.spinner {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  border: 3px solid #cbe9ea; border-top-color: var(--teal);
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg { color: var(--navy); font-weight: 700; font-size: 15px; }
.loading-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.render-status {
  margin-top: 16px; max-width: 660px; font-size: 14.5px;
  padding: 13px 16px; border-radius: var(--r); background: var(--tint);
  border: 1px solid var(--line);
}
.render-status.error { background: #fdf1ee; border-color: #f3d5cc; color: #8a3b1d; }
.render-status .btn-mini { margin-left: 10px; }

.compare-wrap { margin-top: 22px; }
.compare {
  position: relative; max-width: 860px; margin-inline: auto; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: var(--ar, 4 / 3);
  box-shadow: var(--sh-lg); touch-action: pan-y; user-select: none; cursor: ew-resize;
}
.compare:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.compare.reveal .compare-after { transition: width .9s var(--ease); }
.compare-after { will-change: width; }
/* dim the stale render when a selection changes after rendering */
.compare.stale .compare-after img, .compare.stale > img { filter: grayscale(.55) opacity(.6); }
.stale-cta {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 5;
  background: rgba(10,37,64,.18); backdrop-filter: blur(1px);
}
.compare img { display: block; width: 100%; height: 100%; object-fit: cover; }
.compare-after { position: absolute; inset: 0 0 0 auto; width: 50%; overflow: hidden; }
/* pinned to the frame's right edge and given the FULL frame width, so the
   visible slice always registers pixel-for-pixel with the before image */
.compare-after img { position: absolute; top: 0; right: 0; width: var(--cw, 100%); max-width: none; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: rgba(255,255,255,.95); transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(10,37,64,.35);
}
.handle-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy);
  display: grid; place-items: center; font-size: 17px; font-weight: 800;
  box-shadow: 0 4px 16px rgba(10,37,64,.3);
}
.compare-tag {
  position: absolute; top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(10,37,64,.72); color: #fff; backdrop-filter: blur(4px);
}
.tag-before { left: 12px; }
.tag-after { right: 12px; background: rgba(51,190,191,.96); color: var(--navy); }
.compare-hint { margin-top: 12px; font-size: 14px; max-width: 660px; }
.rerender-row { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.disclaimer { margin-top: 14px; font-size: 12.5px; color: var(--muted); max-width: 660px; line-height: 1.5; }

/* variations strip */
.variations { margin-top: 22px; }
.variations h4 { font-size: 14px; margin-bottom: 10px; }
.var-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.var-item {
  flex: none; width: 150px; border-radius: var(--r); overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: #fff; box-shadow: var(--sh-sm); padding: 0;
}
.var-item.selected { border-color: var(--teal); }
.var-item img { width: 100%; height: 100px; object-fit: cover; display: block; }
.var-item span { display: block; font-size: 11.5px; font-weight: 700; padding: 6px; color: var(--ink); }

/* ---------------- offers ---------------- */
.offers { display: grid; gap: 10px; margin: 4px 0 20px; max-width: 660px; }
.offer {
  display: flex; gap: 12px; align-items: flex-start; border-left: 3px solid var(--teal);
  background: linear-gradient(180deg, #fffdf6, #fff8e8);
  border: 1px solid #f0e0b8; border-radius: var(--r); padding: 13px 15px;
}
.offer-ico { flex: none; font-size: 18px; line-height: 1.3; }
.offer-text { font-weight: 800; color: #7a5a12; font-size: 14.5px; line-height: 1.35; }
.offer-fine { font-size: 12px; color: #7A5F24; margin-top: 3px; line-height: 1.4; }

/* ---------------- final CTA + lead form ---------------- */
.cta-band {
  background: linear-gradient(140deg, var(--navy-header), var(--navy));
  border-radius: var(--r-lg); padding: clamp(24px, 3.6vw, 40px);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 3vw, 36px);
  align-items: start; box-shadow: var(--sh-lg);
}
.cta-band > .cta-copy h2, .cta-band > .cta-copy h3 { color: #fff; }
.lead-card h3, .lead-ok h3 { color: var(--navy); }
.cta-copy p { color: rgba(255,255,255,.78); font-size: 15px; }
.pill-on-dark { background: rgba(255,255,255,.13); color: #fff; box-shadow: none; }
.design-summary {
  margin-top: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r); padding: 13px 15px;
}
.design-summary dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.62); font-weight: 800; }
.design-summary dd { color: #fff; font-weight: 700; font-size: 15px; margin: 2px 0 9px; }
.design-summary dd:last-child { margin-bottom: 0; }

/* lead form */
.lead-card { background: #fff; border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh); }
.lead-card h3 { font-size: 18px; }
.lead-thumb { width: 100%; height: 108px; object-fit: cover; border-radius: var(--r); margin-bottom: 13px; }
.ok-check {
  width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: var(--navy);
  display: grid; place-items: center; font-size: 26px; font-weight: 800; margin: 0 auto;
}
.lead-card .lead-sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.field { margin-top: 13px; }
.field label { display: block; font-size: 12.5px; font-weight: 800; color: var(--ink); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--navy);
  padding: 12px 13px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(51,190,191,.16);
}
.field input.invalid { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-err { font-size: 12px; color: var(--danger); margin-top: 4px; }
.consent { display: flex; gap: 9px; align-items: flex-start; margin-top: 13px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--teal); }
.lead-ok { text-align: center; padding: 16px 4px; }
.lead-ok .big { font-size: 40px; line-height: 1; }
.lead-ok h3 { margin: 10px 0 6px; }

/* ---------------- modal ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,37,64,.55);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  backdrop-filter: blur(3px); animation: fade .18s var(--ease);
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: #fff; border-radius: var(--r-lg); padding: 24px; width: 100%; max-width: 460px;
  box-shadow: var(--sh-lg); max-height: 88vh; overflow-y: auto;
  animation: pop .22s var(--ease);
}
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: 0 } to { transform: none; opacity: 1 } }
.modal h3 { font-size: 19px; }
.modal-sub { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.55; }
.modal-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.modal-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.modal code { background: var(--tint); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* ---------------- footer ---------------- */
.site-footer { margin-top: 56px; background: var(--navy); color: rgba(255,255,255,.62); padding: 26px 0; font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }
.footer-row a { color: rgba(255,255,255,.85); }
.footer-proto { font-size: 11.5px; color: rgba(255,255,255,.72); }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 54px; }
  .container { padding: 0 16px; }
  .hero { padding: 30px 0 26px; }
  .step { padding: 28px 0 4px; }
  .header-phone { padding: 7px 11px; }
  .grid-rooms { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: 1fr 1fr; }
  .grid-swatches { grid-template-columns: 1fr 1fr; }
  .grid-finishes { grid-template-columns: repeat(3, 1fr); }
  .card-title { font-size: 14.5px; }
  .btn-lg { width: 100%; }
  .photo-actions { flex-direction: column; align-items: stretch; }
  .photo-actions .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .handle-grip { width: 40px; height: 40px; }
  .compare { margin-inline: -16px; border-radius: 0; max-width: none; }
  .brand-name { display: inline; font-size: 12px; }
  .pstep { padding: 9px 12px; }
  .footer-row { flex-direction: column; text-align: center; }
  .rerender-row .btn { flex: 1 1 46%; }
}
@media (max-width: 380px) {
  .grid-finishes { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ---------------- hero demo — a real render this app produced ---------------- */
.hero-demo { margin: 26px auto 0; max-width: 620px; }
.hd-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-lg); aspect-ratio: 16 / 10; background: var(--line);
}
.hd-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* clip-path, not a width-clipped wrapper: the after frame stays pixel-aligned
   with the before frame at every viewport width, with no JS sizing. */
.hd-after {
  position: absolute; inset: 0;
  animation: wipe 7s var(--ease) infinite;
}
@keyframes wipe {
  0%, 8%    { clip-path: inset(0 0 0 96%); }
  42%, 58%  { clip-path: inset(0 0 0 4%); }
  92%, 100% { clip-path: inset(0 0 0 96%); }
}
.hd-tag {
  position: absolute; bottom: 12px; z-index: 3;
  font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-pill); backdrop-filter: blur(6px);
}
.hd-tag-b { left: 12px; background: rgba(10,37,64,.72); color: #fff; }
.hd-tag-a { right: 12px; background: rgba(51,190,191,.96); color: var(--navy); }
@media (prefers-reduced-motion: reduce) {
  .hd-after { animation: none; clip-path: inset(0 0 0 50%); }
}
@media (max-width: 720px) { .hero-demo { max-width: 100%; } }

/* ---------------- swatch density ----------------
   18 coatings is a long scroll on a phone. Square previews read the colour
   better but doubled the page height, so on mobile the swatch is a short
   band and the description line drops — name + code carry it. */
@media (max-width: 720px) {
  .grid-swatches .swatch-preview { aspect-ratio: 3 / 2; }
  .grid-swatches .card-sub { display: none; }
  .grid-swatches .card-body { padding: 9px 11px 11px; }
  .grid-swatches .card-title { font-size: 14px; }
  .grid-swatches .swatch-code { font-size: 11px; }
  .coll-tabs { position: sticky; top: calc(var(--header-h) + 46px); z-index: 40;
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
    padding: 10px 0; margin-bottom: 10px; }
}

/* ---------------- storage cards ----------------
   These sit beside real-photo product cards, so they need comparable visual
   weight. Real garage-storage install photos are still outstanding — until
   they arrive this is a designed panel, not invented product photography. */
.icon-panel {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--teal-soft) 0%, #dff1f2 100%);
  border-bottom: 1px solid var(--line); position: relative; overflow: hidden;
}
.icon-panel::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(10,37,64,.05) 0 1px, transparent 1px 14px);
}
.icon-panel span { font-size: 34px; line-height: 1; position: relative; z-index: 2; filter: saturate(.9); }
.card.selected .icon-panel { background: linear-gradient(150deg, #d6f2f2 0%, #c6ebec 100%); }
