:root {
  --navy: #013871;
  --ink: #011A3A;
  --teal: #0A9AA0;
  --teal-dark: #087F84;
  --teal-light: #5ED0D4;
  --bg: #F5F7F9;
  --surface: #FFFFFF;
  --line: #DDE3EA;
  --muted: #5A6878;
  --text: #13233A;
  --radius: 14px;
  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Header */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { color: var(--navy); display: block; }
.logo { height: 56px; width: auto; display: block; }
.call { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; color: var(--navy); padding: 10px 16px; border: 1.5px solid var(--navy); border-radius: 999px; font-size: 15px; transition: background .2s, color .2s; }
.call:hover { background: var(--navy); color: #fff; }

/* Intro */
.intro { padding-top: 48px; padding-bottom: 32px; }
.eyebrow { margin: 0 0 10px; color: var(--teal-dark); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.light { color: var(--teal-light); }
h1 { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: clamp(32px, 4.4vw, 50px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 14px; max-width: 18ch; }
.lede { color: var(--muted); font-size: 18px; max-width: 56ch; margin: 0; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding-bottom: 64px; }
.steps { display: grid; gap: 20px; }
.step { margin: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 24px; min-width: 0; }
legend { float: left; width: 100%; padding: 0; margin: 0 0 18px; font-weight: 700; font-size: 19px; color: var(--ink); display: flex; align-items: center; gap: 12px; }
legend + * { clear: both; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; flex: none; }
.hint { margin: -8px 0 16px; color: var(--muted); font-size: 14px; clear: both; }
.sub + .sub { margin-top: 22px; }
.sub-title { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; }

/* Option cards */
.options { display: grid; gap: 12px; clear: both; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opt { position: relative; cursor: pointer; display: block; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s, box-shadow .15s; }
.opt:hover .opt-body { border-color: #AFC0D3; }
.opt input:checked + .opt-body { border-color: var(--teal); background: #EEF9F9; box-shadow: inset 0 0 0 1px var(--teal); }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--teal-light); outline-offset: 2px; }
.opt-title { font-weight: 700; color: var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: baseline; }
.opt-desc { color: var(--muted); font-size: 14px; line-height: 1.4; }
.incl { display: block; margin-top: 8px; font-size: 13px; color: var(--teal-dark); font-weight: 600; }
.price-tag { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); margin-top: 6px; }
.from { font-size: 13px; font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
.compact .opt-body { padding: 12px 14px; }

/* Checkboxes */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.check { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; position: relative; transition: border-color .15s, background .15s; }
.check:hover { border-color: #AFC0D3; }
.check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.box { width: 20px; height: 20px; border: 2px solid #9AABBE; border-radius: 5px; display: grid; place-items: center; transition: all .15s; }
.check input:checked ~ .box { background: var(--teal); border-color: var(--teal); }
.check input:checked ~ .box::after { content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check:has(input:checked) { border-color: var(--teal); background: #EEF9F9; }
.check input:focus-visible ~ .box { outline: 3px solid var(--teal-light); outline-offset: 2px; }
.check-label { font-size: 15px; font-weight: 500; color: var(--ink); }
.check-price { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.check.is-included { cursor: default; background: #F3F6F8; }
.check.is-included input { cursor: default; }
.check.is-included .check-price { color: var(--teal-dark); font-weight: 700; }

/* Summary */
.summary { position: sticky; top: 92px; }
.summary-card { background: var(--ink); color: #E8EEF5; border-radius: 18px; padding: 28px; box-shadow: 0 20px 40px -24px rgba(1, 26, 58, .6); }
.summary-label { margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-light); font-weight: 700; }
.range { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.1; color: #fff; margin: 8px 0 6px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.range.pulse { animation: pulse .45s ease; }
@keyframes pulse { 0% { color: var(--teal-light); } 100% { color: #fff; } }
.typical { margin: 0 0 18px; font-size: 15px; color: #B9C6D6; }
.typical strong { color: #fff; }
.facts { margin: 0 0 16px; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.facts dt { color: #9FB0C4; }
.facts dd { margin: 0; font-weight: 700; color: #fff; text-align: right; }
.breakdown { margin-bottom: 20px; font-size: 14px; }
.breakdown summary { cursor: pointer; font-weight: 700; color: #fff; padding: 4px 0 8px; }
.breakdown ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; color: #C9D4E1; }
.breakdown li .v { white-space: nowrap; font-variant-numeric: tabular-nums; color: #fff; }
.breakdown li.note { color: var(--teal-light); font-size: 13px; margin-top: -4px; }

.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; font-size: 16px; padding: 14px 20px; border-radius: 12px; border: 0; cursor: pointer; font-family: inherit; transition: background .2s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-dark); }
.btn.ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.3); margin-top: 10px; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.wide { width: 100%; }
.btn.small { padding: 10px 14px; font-size: 14px; }
.fine { font-size: 12.5px; color: #93A5BA; margin: 16px 0 0; line-height: 1.45; }
.fine.dark { color: var(--muted); text-align: center; }

/* Quote */
.quote { padding-bottom: 72px; scroll-margin-top: 90px; }
.quote-inner { background: var(--navy); border-radius: 22px; padding: 48px; display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; color: #E2EAF3; }
.quote h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; color: #fff; margin: 0 0 14px; letter-spacing: -0.01em; }
.quote-copy p { margin: 0 0 20px; max-width: 46ch; color: #C9D6E5; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.perks li { padding-left: 28px; position: relative; font-weight: 500; color: #fff; }
.perks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); box-shadow: inset 0 0 0 4px var(--teal), inset 0 0 0 8px #fff; }
.lead { background: var(--surface); border-radius: 16px; padding: 28px; color: var(--text); display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field input, .field select { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10,154,160,.18); }
.field input[aria-invalid="true"] { border-color: #C2413A; }
.err { display: none; color: #B4362F; font-size: 13px; margin: 6px 0 0; }
.err.show { display: block; }
.done { background: #EEF9F9; border: 1.5px solid var(--teal); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.done p { margin: 0; }
.done-title { font-weight: 700; color: var(--ink); margin-bottom: 4px !important; }
.done a { color: var(--teal-dark); font-weight: 700; }

.foot { border-top: 1px solid var(--line); padding: 24px 0 28px; font-size: 14px; color: var(--muted); background: var(--surface); }
.foot a { color: var(--navy); text-decoration: none; font-weight: 500; }

.mobilebar { display: none; }

@media (max-width: 1100px) and (min-width: 681px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .quote-inner { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .topbar-inner { height: 60px; }
  .logo { height: 40px; }
  .call span { display: none; }
  .call { padding: 10px; }
  .intro { padding-top: 28px; padding-bottom: 20px; }
  .lede { font-size: 16px; }
  .step { padding: 18px 16px; }
  legend { font-size: 17px; }
  .cols-2, .cols-3, .checks { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact.cols-3 { grid-template-columns: 1fr; }
  .summary-card { padding: 22px; }
  .range { font-size: 30px; }
  .quote-inner { padding: 24px 18px; border-radius: 18px; }
  .lead { padding: 20px; }
  body { padding-bottom: 72px; }
  .mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); color: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -8px 20px rgba(1,26,58,.25); }
  .mobilebar > div { display: flex; flex-direction: column; line-height: 1.2; }
  .mb-label { font-size: 12px; color: var(--teal-light); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
  .mb-range { font-family: var(--font-display); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .range.pulse { animation: none; } }

/* Monterey gallery */
.gallery { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); clear: both; }
.gallery[hidden] { display: none; }
.gallery-head .eyebrow { margin-bottom: 4px; }
.gallery-title { font-weight: 700; font-size: 17px; color: var(--ink); margin: 0 0 10px; }
.gallery-head .hint { margin: 0 0 14px; }
.gallery-photo { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: #EEF1F4; aspect-ratio: 4 / 3; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-photo figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(1, 26, 58, .82); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.swatches { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.swatch { position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch img { width: 100%; max-width: 64px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.swatch span { font-size: 12px; color: var(--muted); line-height: 1.2; }
.swatch:hover img { border-color: #AFC0D3; }
.swatch input:checked ~ img { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-light); }
.swatch input:checked ~ span { color: var(--ink); font-weight: 700; }
.swatch input:focus-visible ~ img { outline: 3px solid var(--teal-light); outline-offset: 3px; }
@media (max-width: 640px) { .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.opt-body > .from { margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.from + .price-tag { margin-top: 0; }

/* Acrylic color preview */
.shower-preview { aspect-ratio: 4 / 3; }
#showerSvg { width: 100%; height: 100%; }
.swatches-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 280px; }
.swatch .dot { width: 100%; max-width: 64px; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); box-shadow: inset 0 -6px 10px rgba(0,0,0,.06); transition: border-color .15s, box-shadow .15s; }
.swatch:hover .dot { border-color: #AFC0D3; }
.swatch input:checked ~ .dot { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-light); }
.swatch input:focus-visible ~ .dot { outline: 3px solid var(--teal-light); outline-offset: 3px; }
@media (max-width: 640px) { .swatches-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tier-options { margin-bottom: 14px; }
.swatch-note { margin: 10px 0 4px; }
#premiumPicker .sub-title { margin: 14px 0 10px; }
.swatch img.pat { border-radius: 10px; }
.group-note { margin: -4px 0 0; }
