/* Design Theory Option 5 — Option 2 layout, HostHero Plus palette, Liquid Glass */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #050505;
  --page-alt: #090909;
  --surface: #0d0d0d;
  --surface-alt: #111111;
  --surface-soft: #151515;
  --ink: #f6f6f6;
  --muted: #9a9a9a;
  --line: #262626;
  --line-strong: #2e2e2e;
  --accent: #ff5a4f;
  --accent-strong: #ff7a70;
  --accent-dim: rgba(255, 90, 79, 0.14);
  --accent-ring: rgba(255, 90, 79, 0.5);
  --accent-ink: #111111;
  --success: #35c46a;
  --success-dim: rgba(53, 196, 106, 0.12);
  --danger: #ff6b61;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  --field: #0a0a0a;
  --track: #1e1e1e;
  --glow: rgba(255, 90, 79, 0.08);
  --wallpaper: url("../img/wallpaper-dark.jpg");

  --lg-tint: rgba(20, 20, 20, 0.28);
  --lg-tint-clear: rgba(255, 255, 255, 0.04);
  --lg-ink: #f6f6f6;
  --lg-rim: rgba(255, 255, 255, 0.42);
  --lg-rim-soft: rgba(255, 255, 255, 0.04);
  --lg-inset: inset 0 1px 0.5px rgba(255, 255, 255, 0.26), inset 0 -1px 0.5px rgba(255, 255, 255, 0.08);
  --lg-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.4);
  --lg-fallback-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  --lg-solid: rgba(17, 17, 17, 0.96);

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f8fafc;
  --page-alt: #eef2ff;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-soft: #e2e8f0;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-dim: rgba(37, 99, 235, 0.09);
  --accent-ring: rgba(37, 99, 235, 0.45);
  --accent-ink: #ffffff;
  --success: #16a34a;
  --success-dim: rgba(22, 163, 74, 0.08);
  --danger: #dc2626;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --field: #ffffff;
  --track: #e2e8f0;
  --glow: rgba(37, 99, 235, 0.12);
  --wallpaper: url("../img/wallpaper-light.jpg");

  --lg-tint: rgba(255, 255, 255, 0.2);
  --lg-tint-clear: rgba(255, 255, 255, 0.1);
  --lg-ink: #0f172a;
  --lg-rim: rgba(255, 255, 255, 0.95);
  --lg-rim-soft: rgba(255, 255, 255, 0.3);
  --lg-inset: inset 0 1px 0.5px rgba(255, 255, 255, 0.8), inset 0 -1px 0.5px rgba(255, 255, 255, 0.25);
  --lg-shadow: 0 8px 28px rgba(15, 23, 42, 0.1), 0 1px 4px rgba(15, 23, 42, 0.06);
  --lg-fallback-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.24));
  --lg-solid: rgba(255, 255, 255, 0.95);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 16px/1.5 var(--font);
  letter-spacing: -0.012em;
  color: var(--ink);
  background: linear-gradient(180deg, var(--page) 0%, var(--page) 40%, var(--page-alt) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Liquid Glass material ---------- */

.lg {
  position: relative;
  isolation: isolate;
  color: var(--lg-ink);
  background: var(--lg-tint);
  box-shadow: var(--lg-inset), var(--lg-shadow);
  --lx: 30%;
  --ly: 0%;
}
.lg--clear { background: var(--lg-tint-clear); }
.lg::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(155deg, var(--lg-rim), var(--lg-rim-soft) 26%, transparent 50%, var(--lg-rim-soft) 74%, var(--lg-rim));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none; z-index: 0; opacity: 0.85;
}
.lg::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 90% at var(--lx) var(--ly), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 46%);
  mix-blend-mode: plus-lighter;
  pointer-events: none; z-index: 0;
}
:root[data-theme="light"] .lg::after { background: radial-gradient(120% 90% at var(--lx) var(--ly), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 46%); }
.lg > * { position: relative; z-index: 1; }

html.lg-fallback .lg {
  background: var(--lg-fallback-fill);
  -webkit-backdrop-filter: blur(5px) saturate(160%) brightness(1.04);
  backdrop-filter: blur(5px) saturate(160%) brightness(1.04);
  box-shadow: var(--lg-inset), inset 0 10px 18px -12px rgba(255, 255, 255, 0.4), inset 0 -12px 20px -14px rgba(0, 0, 0, 0.18), var(--lg-shadow);
}
html.lg-solid .lg { background: var(--lg-solid); }

.lg > .lg-bg {
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; background-repeat: no-repeat; pointer-events: none;
}
html.lg-fallback .lg.lg-cloned {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: var(--lg-clone-tint, var(--lg-tint-clear));
  box-shadow: var(--lg-inset), var(--lg-shadow);
}

/* ---------- Floating nav ---------- */

.topbar {
  position: fixed;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  z-index: 60;
  width: min(1100px, 100% - 24px);
  height: 60px;
  padding: 0 8px 0 10px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800; font-size: 13px; letter-spacing: -0.03em;
}
.brand-copy strong, .brand-copy span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy strong { font-size: 15px; font-weight: 600; }
.brand-copy span { margin-top: 1px; color: color-mix(in srgb, var(--lg-ink) 62%, transparent); font-size: 12px; }

.topbar-links { display: flex; gap: 6px; align-items: center; }
.topbar-links a, .theme-toggle {
  text-decoration: none;
  height: 44px;
  padding: 0 18px;
  display: inline-flex; align-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.4s var(--ease-spring);
}
.topbar-links a:hover, .theme-toggle:hover { background: color-mix(in srgb, var(--lg-ink) 8%, transparent); }
.topbar-links a:active, .theme-toggle:active { transform: scale(1.08); }
.topbar-links .topbar-cta { background: var(--accent); color: var(--accent-ink); }
.topbar-links .topbar-cta:hover { background: var(--accent-strong); }
.theme-toggle { width: 44px; padding: 0; justify-content: center; }
.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }

/* ---------- Hero over wallpaper ---------- */

.hero5 {
  position: relative;
  overflow: hidden;
  padding: 150px 18px 120px;
}
.hero5-wallpaper {
  position: absolute; inset: 0;
  background: var(--wallpaper) 60% 75% / cover no-repeat;
}
.hero5-wallpaper::after {
  content: "";
  position: absolute; inset: auto 0 0; height: 180px;
  background: linear-gradient(transparent, var(--page));
}
.hero-banner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  text-align: center;
}
.eyebrow {
  justify-self: center;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--muted);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow.lg { border: 0; color: var(--lg-ink); }
.hero-banner h1 {
  margin: 0;
  font: 600 clamp(2.6rem, 6.4vw, 4.8rem)/1.04 var(--font-display);
  letter-spacing: -0.03em;
}
.hero-banner p {
  margin: 0 auto;
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hero-actions .primary-button { width: auto; margin: 0; }

/* ---------- Layout ---------- */

.page-shell { max-width: 1380px; margin: 0 auto; padding: 0 18px 120px; }

.hero-sticky { width: min(100%, 420px); margin: 0 auto 36px; position: sticky; top: 84px; z-index: 20; }
.hero-progress {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 24px;
  border-radius: 30px;
}
.hero-progress-copy {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: color-mix(in srgb, var(--lg-ink) 62%, transparent);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-progress-title { display: flex; flex-direction: column; align-items: center; }
.hero-progress-copy strong {
  color: var(--lg-ink);
  font: 600 2.1rem/1 var(--font-display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-transform: none;
}
#stickyEstimate { display: none; }
.hero-progress-rail { display: flex; justify-content: center; align-items: stretch; padding: 4px 0; flex: 1 1 auto; min-height: 0; }
.progress-track {
  position: relative;
  width: 8px; height: 180px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lg-ink) 12%, transparent);
  overflow: hidden;
}
.progress-fill {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: var(--progress, 0%);
  border-radius: inherit;
  background: var(--accent);
  transition: height 0.5s var(--ease-spring), width 0.5s var(--ease-spring);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.builder-panel, .estimate-card, .form-card, .city-card, .service-mini {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
:root[data-theme="light"] .builder-panel,
:root[data-theme="light"] .estimate-card,
:root[data-theme="light"] .form-card,
:root[data-theme="light"] .city-card,
:root[data-theme="light"] .service-mini { border-color: transparent; }

.builder-panel, .estimate-card { padding: 28px; }
.form-card, .city-card, .service-mini { padding: 24px; }

.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 20px; }
.panel-title { display: grid; gap: 6px; }
.panel-kicker { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: -0.005em; }
.panel-title h2, .panel-title h3 { margin: 0; font: 600 1.45rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.panel-title p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.step-pill {
  white-space: nowrap; align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px; font-weight: 600;
}

.section-shell { display: grid; gap: 20px; }
.field-label { margin: 0 0 -6px 4px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* iOS inset grouped choices */
.choice-stack {
  display: grid;
  gap: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  overflow: hidden;
}
.choice-stack > * + * { border-top: 0.5px solid var(--line-strong); }
.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.radio-card, .addon-card {
  width: 100%;
  appearance: none;
  text-align: left;
  cursor: pointer;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 16px 18px;
  color: inherit;
  font: inherit;
  transition: background-color 0.2s;
}
.choice-row .radio-card {
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.4s var(--ease-spring);
}
.choice-row .radio-card:active { transform: scale(0.98); }
.radio-card:hover, .addon-card:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.choice-row .radio-card:hover { background: color-mix(in srgb, var(--ink) 4%, var(--surface-alt)); }
.radio-card[aria-pressed="true"], .addon-card[aria-pressed="true"] { background: var(--accent-dim); }
.choice-row .radio-card[aria-pressed="true"] { background: var(--accent-dim); box-shadow: inset 0 0 0 1.5px var(--accent-ring); }

.radio-card-top, .addon-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.radio-card-label { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; }

.radio-marker, .checkbox-marker {
  width: 22px; height: 22px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.2s, border-color 0.2s, transform 0.4s var(--ease-spring);
}
.checkbox-marker { border-radius: 7px; }
.radio-dot {
  width: 12px; height: 12px;
  background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.3 2.3 2.2 4.7-5' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.3 2.3 2.2 4.7-5' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scale(0);
  transition: transform 0.35s var(--ease-spring);
}
.radio-card[aria-pressed="true"] .radio-marker,
.sitetype-btn[aria-pressed="true"] .radio-marker,
.addon-card[aria-pressed="true"] .checkbox-marker { background: var(--accent); border-color: var(--accent); transform: scale(1.05); }
.radio-card[aria-pressed="true"] .radio-dot,
.sitetype-btn[aria-pressed="true"] .radio-dot { transform: scale(1); }
.checkbox-icon { width: 13px; height: 13px; opacity: 0; color: var(--accent-ink); transition: opacity 0.2s; }
.addon-card[aria-pressed="true"] .checkbox-icon { opacity: 1; }

.price-chip { font-size: 15px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.radio-card p, .addon-copy span { margin: 6px 0 0 34px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.addon-copy { display: grid; gap: 2px; }
.addon-copy span { margin-left: 0; }
.addon-copy strong { display: block; font-size: 16px; font-weight: 600; }

.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.slider-value { color: var(--accent); font: 600 1.25rem var(--font-display); font-variant-numeric: tabular-nums; }

.calculator-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
.calculator-slider::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--progress, 16%), var(--track) var(--progress, 16%), var(--track) 100%);
}
.calculator-slider::-moz-range-track { height: 6px; border-radius: 999px; background: var(--track); }
.calculator-slider::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
.calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  margin-top: -11px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s var(--ease-spring);
}
.calculator-slider:active::-webkit-slider-thumb { transform: scale(1.18); }
.calculator-slider::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); }
.slider-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }

/* ---------- Estimate ---------- */

.estimate-card { position: sticky; top: 96px; align-self: start; }
.estimate-compare { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 0.5px solid var(--line-strong); }
.estimate-compare p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.estimate-compare strong { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.agency-price { font: 600 1.8rem/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 10px 0 0; }
#agency-price { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); color: var(--muted); }

.line-list { display: grid; gap: 14px; margin: 0 0 18px; padding: 0; list-style: none; }
.line-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.line-list li[hidden] { display: none; }
.line-list span { color: var(--muted); font-size: 13px; }
.line-list b { font-weight: 600; font-size: 15px; color: var(--ink); }
.line-list em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.totals { display: grid; gap: 10px; padding-top: 16px; border-top: 0.5px solid var(--line-strong); }
.total-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.total-row.emphasis { padding: 16px 18px; border-radius: var(--radius-lg); background: var(--success-dim); }
.dt-price, .total-row.emphasis .mono { color: var(--success); }
.mono { font-weight: 600; font-variant-numeric: tabular-nums; }
.total-row.emphasis .mono { font: 600 1.15rem var(--font-display); }
.notes { margin: 18px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---------- Buttons ---------- */

.primary-button, .ghost-button, .glass-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 0 26px;
  font: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 0;
  transition: transform 0.4s var(--ease-spring), background-color 0.2s, filter 0.2s;
}
.primary-button { background: var(--accent); color: var(--accent-ink); width: 100%; margin-top: 18px; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent); }
.primary-button:hover { background: var(--accent-strong); }
.primary-button:active, .glass-button:active { transform: scale(1.04); }
.glass-button { color: var(--lg-ink); }
.ghost-button { background: var(--surface-soft); color: var(--ink); }

/* ---------- Form ---------- */

.form-stack { display: grid; gap: 16px; max-width: 1100px; margin: 36px auto 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field, .field-full { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 600; }
.required { color: var(--danger); }
.optional { color: var(--muted); font-weight: 400; }

input, select, textarea {
  width: 100%;
  appearance: none;
  background: var(--surface-alt);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 15px 16px;
  font: inherit; font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23999' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.7; }
input:focus, select:focus, textarea:focus { background: var(--field); border-color: var(--accent-ring); box-shadow: 0 0 0 4px var(--accent-dim); }

.check { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface-alt); }
.check input { width: 20px; height: 20px; margin-top: 1px; padding: 0; appearance: auto; accent-color: var(--accent); }
.check:has(input:checked) { background: var(--accent-dim); }

.form-status { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; font-weight: 600; text-align: center; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--success); }

/* ---------- Cities / services ---------- */

.services-grid, .cities-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1100px; margin: 18px auto 0; }
.city-card, .service-mini { transition: transform 0.5s var(--ease-spring); }
.city-card:hover, .service-mini:hover { transform: translateY(-3px); }
.service-mini a, .city-card a { text-decoration: none; display: grid; gap: 6px; }
.service-mini h3, .city-card h3 { margin: 0; font: 600 17px/1.3 var(--font-display); }
.city-card h3::after { content: " ›"; color: var(--accent); }
.service-mini p, .city-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.section-intro { max-width: 1100px; margin: 64px auto 0; }
.section-intro .eyebrow { justify-self: start; }
.section-intro h2 { margin: 12px 0 0; font: 600 clamp(1.8rem, 3.4vw, 2.6rem)/1.1 var(--font-display); letter-spacing: -0.025em; }

.contact-inline { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.contact-inline a { font-weight: 600; text-decoration: none; color: var(--accent); }

.site-footer {
  max-width: 1100px; margin: 56px auto 0; padding-top: 24px;
  border-top: 0.5px solid var(--line-strong);
  color: var(--muted); font-size: 13px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- Option switch ---------- */

.dt-option-switch {
  position: fixed; left: 16px; bottom: 16px; z-index: 9999;
  display: flex; gap: 2px; padding: 4px;
  border-radius: 999px;
}
.dt-option-switch a {
  display: grid; place-items: center;
  min-width: 34px; height: 34px;
  border-radius: 999px;
  color: var(--lg-ink);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.dt-option-switch a:hover { background: color-mix(in srgb, var(--lg-ink) 8%, transparent); }
.dt-option-switch a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

.flash { animation: priceFlash 1.1s ease-out; }
@keyframes priceFlash { 0% { color: var(--success); transform: scale(1.04); } 100% { color: inherit; transform: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 1599px) {
  .hero-sticky {
    position: fixed;
    top: auto;
    bottom: calc(18px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 28px), 440px);
    z-index: 100;
    margin: 0;
  }
  .hero-progress { flex-direction: row; justify-content: space-between; padding: 0 22px; height: 64px; border-radius: 32px; gap: 16px; }
  .hero-progress-copy { flex-direction: row; gap: 12px; align-items: baseline; }
  .hero-progress-title { display: none; }
  .hero-progress-copy strong { font-size: 1.3rem; }
  #stickyEstimate { display: inline; color: var(--success); letter-spacing: 0; text-transform: none; font-size: 1rem; font-weight: 600; }
  .hero-progress-rail { width: 120px; align-items: center; padding: 0; flex: none; }
  .progress-track { width: 100%; height: 8px; }
  .progress-fill { height: 100%; width: var(--progress, 0%); }
  .page-shell { padding-bottom: 140px; }
}

@media (min-width: 1600px) {
  .hero-sticky {
    position: fixed;
    top: 50%;
    right: max(24px, calc((100vw - 1380px) / 4 - 48px));
    transform: translateY(-50%);
    width: 96px;
    margin: 0;
  }
  .hero-progress { padding: 18px 10px 22px; gap: 14px; }
  .hero-progress-copy strong { font-size: 1.5rem; }
  .progress-track { height: 220px; }
}

@media (max-width: 980px) {
  .workspace, .services-grid, .cities-grid { grid-template-columns: 1fr; }
  .estimate-card { position: static; }
}

@media (max-width: 820px) {
  .choice-row, .grid { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; align-items: stretch; }
  .brand-copy span, .topbar-links > a:first-child { display: none; }
  .topbar { height: 56px; }
  .hero5 { padding: 120px 14px 90px; }
  .page-shell { padding-inline: 14px; padding-bottom: 140px; }
  .builder-panel, .estimate-card { padding: 20px; }
  .hero-sticky { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .dt-option-switch { left: auto; right: 12px; bottom: auto; top: 76px; }
  .dt-option-switch a { min-width: 28px; height: 28px; font-size: 12px; }
}

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