[hidden] { display: none !important; }

/* ==========================================================================
   The Tub & Shower Sealing Specialist
   Mobile-first, minimal, premium.
   ========================================================================== */

:root {
  --white: #ffffff;
  --bg-soft: #f6faf9;
  --charcoal: #1f2427;
  --charcoal-2: #3a4247;
  --muted: #6b757b;
  --line: #e6ecea;

  --accent: #2bb3a3;        /* seafoam */
  --accent-deep: #17897c;
  --accent-soft: #e6f6f3;
  --sky: #5ab8e8;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(20, 30, 35, .06);
  --shadow: 0 8px 30px rgba(20, 40, 45, .08);
  --shadow-lg: 0 24px 60px rgba(15, 30, 35, .18);

  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.muted { color: var(--muted); font-weight: 400; }
.accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid rgba(43, 179, 163, .35); outline-offset: 2px; }

.btn--primary {
  color: var(--white);
  background: var(--charcoal);
  box-shadow: 0 6px 20px rgba(31, 36, 39, .18);
}
.btn--primary:hover { background: #12171a; box-shadow: 0 10px 28px rgba(31, 36, 39, .24); transform: translateY(-1px); }

.btn--ghost {
  color: var(--charcoal);
  background: var(--white);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 16px 26px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(230, 236, 234, .7);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--sky));
  flex-shrink: 0;
}
.brand__name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.brand__name strong { font-weight: 800; color: var(--accent-deep); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.eyebrow--muted { background: none; padding: 0; color: var(--accent-deep); }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(43, 179, 163, .18);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 100%);
}
.hero__glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 520px;
  background:
    radial-gradient(closest-side, rgba(43, 179, 163, .16), transparent 70%) 20% 40% / 60% 100% no-repeat,
    radial-gradient(closest-side, rgba(90, 184, 232, .14), transparent 70%) 85% 30% / 55% 90% no-repeat;
  pointer-events: none;
}
.hero__inner { position: relative; text-align: center; }
.hero__title {
  margin: 20px auto 16px;
  max-width: 14ch;
  font-size: clamp(2.25rem, 9vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero__sub {
  max-width: 36ch;
  margin: 0 auto;
  font-size: clamp(1.02rem, 3.8vw, 1.2rem);
  color: var(--charcoal-2);
}
.hero__sub span,
.hero__note span { display: block; text-wrap: balance; }
.hero__cta { margin-top: 32px; }
.hero__cta .btn { width: 100%; max-width: 380px; }
.hero__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 460px;
  margin: 40px auto 0;
  padding: 16px 8px;
  list-style: none;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.hero__stats li + li { border-left: 1px solid var(--line); }
.hero__stats strong { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.hero__stats span { font-size: 12px; color: var(--muted); }

/* ---------- Why section ---------- */
.why { padding: 72px 0 80px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-title {
  margin-top: 10px;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 800;
}
/* Phones: one phrase per line. Desktop: one line (reset in the 640px query) */
.section-title--stack span { display: block; }

.why__grid {
  display: grid;
  gap: 16px;
}
.card {
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3e9e5; }
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--charcoal-2); font-size: 15px; }
.why__cta { margin-top: 36px; text-align: center; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  text-align: center;
  font-size: 14px;
}
.footer__brand { font-weight: 600; color: var(--charcoal); }
.footer__area { max-width: 52ch; margin: 8px auto 0; color: var(--muted); }
.footer__contact { margin-top: 12px; color: var(--charcoal-2); }
.footer__contact a,
.form__fine a {
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__copy { margin-top: 18px; font-size: 12px; color: #9aa3a8; }

/* ==========================================================================
   Modals
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity .35s var(--ease), visibility 0s;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 20, 23, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 20px calc(24px + env(safe-area-inset-bottom));
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(40px) scale(.98);
  transition: transform .45s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }

/* Sticky header strip: content scrolls beneath it, so the X never covers anything */
.modal__bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  margin: 0 -20px 2px;
  padding: 12px 12px 6px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal__close {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  color: var(--charcoal);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(20, 30, 35, .16), 0 0 0 1px var(--line);
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.modal__close:hover { transform: rotate(90deg); background: var(--bg-soft); }
.modal__close:focus-visible { outline: 3px solid rgba(43, 179, 163, .35); outline-offset: 2px; }

.modal__title {
  margin: 6px 0 22px;
  font-size: clamp(1.5rem, 6vw, 1.85rem);
  font-weight: 800;
}

/* ---------- Pricing ---------- */
.speed-rule {
  clear: both;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -6px 0 22px;
  padding: 12px 14px;
  border: 1px solid #cdeae5;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  color: var(--charcoal-2);
  background: var(--accent-soft);
}
.speed-rule__icon { font-size: 16px; line-height: 1.3; }
.speed-rule strong { color: var(--accent-deep); }

.menu-step {
  clear: both;
  min-width: 0;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}
.menu-step + .menu-step { padding-top: 22px; border-top: 1px solid var(--line); }
.menu-step__title {
  float: left; /* keeps the legend out of the fieldset border */
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 14px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.menu-step__title .muted { font-size: 13px; }
.menu-step__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--charcoal);
}

.bundle-banner {
  clear: both;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--charcoal-2);
}
.bundle-banner strong { color: var(--accent-deep); }

.multi-bath-note {
  margin: 12px 2px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--charcoal-2);
}

.addons-locked-note { display: none; clear: both; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.menu-step.is-locked .addons-locked-note { display: block; }
.menu-step.is-locked .price-list { opacity: .45; pointer-events: none; filter: grayscale(.6); }
.menu-step .price-list { transition: opacity .25s var(--ease), filter .25s var(--ease); }

.price-list { clear: both; display: grid; gap: 12px; }

/* Option card: selectable label + before/after toggle beside it */
.option {
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.option:hover { border-color: #cfe3df; }
.option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(43, 179, 163, .12);
}
.option__main {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.option__main input,
.agree input { position: absolute; opacity: 0; pointer-events: none; }
.option__content { flex: 1; min-width: 0; }
.option__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.option__name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.option__desc { display: block; font-size: 14px; line-height: 1.55; color: var(--muted); }
.option__fit { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent-deep); }
.option__extra { padding-left: 36px; }
.option__note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #d6e2df;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  color: #56616a;
}

.price { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--charcoal); white-space: nowrap; }
.price--sm { font-size: 16px; color: var(--accent-deep); }

/* Radio + checkbox indicators */
.option__control {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex-shrink: 0;
  border: 1.5px solid #c6d3d0;
  color: transparent;
  background: var(--white);
  transition: all .2s var(--ease);
}
.option__control--radio { border-radius: 50%; }
.option__control--check { border-radius: 7px; }
.option__control svg { transform: scale(.6); transition: transform .2s var(--ease); }
input:checked + .option__control--radio { border-color: var(--accent); box-shadow: inset 0 0 0 5px var(--accent); }
input:checked + .option__control--check { border-color: var(--accent); background: var(--accent); color: var(--white); }
input:checked + .option__control svg { transform: none; }
input:focus-visible + .option__control { outline: 3px solid rgba(43, 179, 163, .35); outline-offset: 2px; }

/* ---------- Before / After ---------- */
/* Switched off from <body data-before-after="off"> until real photos are ready */
[data-before-after="off"] .ba-toggle,
[data-before-after="off"] .ba { display: none; }

.ba-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin-top: 8px;
  padding: 4px 0;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ba-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.ba-toggle:focus-visible { outline: 3px solid rgba(43, 179, 163, .35); outline-offset: 2px; border-radius: 6px; }
.ba-toggle__chev { transition: transform .3s var(--ease); }
.ba-toggle[aria-expanded="true"] .ba-toggle__chev { transform: rotate(180deg); }

.ba {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .4s var(--ease), opacity .3s var(--ease);
}
.ba.is-open { grid-template-rows: 1fr; opacity: 1; }
.ba__inner { min-height: 0; overflow: hidden; }
.ba__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 0 4px;
}
.ba__shot {
  position: relative;
  height: 112px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.ba__shot figcaption {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--white);
}
.ba__shot--before figcaption { background: rgba(20, 22, 18, .78); }
.ba__shot--after figcaption { background: var(--accent-deep); }
.ba__shot::before, .ba__shot::after { content: ""; position: absolute; left: 0; right: 0; }

.ba__shot { cursor: zoom-in; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.ba__shot:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), var(--shadow); }
.ba__shot:focus-visible { outline: 3px solid rgba(43, 179, 163, .35); outline-offset: 2px; }
.ba__hint { margin: 2px 0 2px; font-size: 12px; color: var(--muted); }

/* Real photos (images/<service>-before|after.jpg) replace the drawn placeholders when present */
.ba__shot img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba__shot.has-photo::before,
.ba__shot.has-photo::after { display: none; }

/* Caulk joint (tub + shower): tile wall, sealant bead, tub/pan edge */
.ba--caulk::before { bottom: 30%; height: 9px; z-index: 1; }
.ba--caulk::after { bottom: 0; height: 30%; }
.ba--caulk.ba__shot--before {
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, #5f5a45 38px 41px),
    repeating-linear-gradient(0deg, transparent 0 38px, #5f5a45 38px 41px),
    linear-gradient(160deg, #c9c1a8, #a9a28a);
}
.ba--caulk.ba__shot--before::before {
  background:
    radial-gradient(circle at 8% 50%, #1d2117 0 3px, transparent 4px),
    radial-gradient(circle at 22% 40%, #2c3322 0 4px, transparent 5px),
    radial-gradient(circle at 41% 60%, #1d2117 0 3px, transparent 4px),
    radial-gradient(circle at 63% 45%, #2c3322 0 5px, transparent 6px),
    radial-gradient(circle at 84% 55%, #1d2117 0 3px, transparent 4px),
    linear-gradient(#b8a66a, #8c7d4a);
}
.ba--caulk.ba__shot--before::after {
  background:
    radial-gradient(ellipse at 30% 0, rgba(60, 64, 40, .55), transparent 55%),
    radial-gradient(ellipse at 75% 0, rgba(60, 64, 40, .45), transparent 50%),
    linear-gradient(#d6d0bd, #bdb6a0);
}
.ba--caulk.ba__shot--after {
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, #dfe7e6 38px 40px),
    repeating-linear-gradient(0deg, transparent 0 38px, #dfe7e6 38px 40px),
    linear-gradient(160deg, #ffffff, #eef6f5);
}
.ba--caulk.ba__shot--after::before {
  border-radius: 6px 6px 0 0;
  background: linear-gradient(#ffffff 0 35%, #e9f1f0);
  box-shadow: 0 -1px 0 rgba(43, 179, 163, .25), 0 2px 6px rgba(43, 179, 163, .2);
}
.ba--caulk.ba__shot--after::after { background: linear-gradient(#ffffff, #f1f7f6); }

/* Grout: tile field with grout lines */
.ba--grout.ba__shot--before {
  background:
    radial-gradient(ellipse at 70% 80%, rgba(40, 36, 20, .35), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 26px, #2f2b1f 26px 30px),
    repeating-linear-gradient(0deg, transparent 0 26px, #2f2b1f 26px 30px),
    linear-gradient(160deg, #bdb59c, #9e9680);
}
.ba--grout.ba__shot--after {
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, #d5dedd 26px 29px),
    repeating-linear-gradient(0deg, transparent 0 26px, #d5dedd 26px 29px),
    linear-gradient(160deg, #ffffff, #eef5f5);
}

/* Glass: cloudy vs. clear */
.ba--glass.ba__shot--before {
  background:
    radial-gradient(circle at 25% 35%, rgba(255, 255, 255, .75), transparent 32%),
    radial-gradient(circle at 70% 60%, rgba(240, 240, 230, .7), transparent 38%),
    radial-gradient(circle at 45% 85%, rgba(255, 255, 255, .6), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(230, 230, 220, .6), transparent 25%),
    linear-gradient(160deg, #9fa9a6, #7f8a87);
}
.ba--glass.ba__shot--before::before {
  inset: 0;
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 9px);
}
.ba--glass.ba__shot--after {
  background: linear-gradient(160deg, #e6f6fd 0%, #bfe5f6 55%, #a6d9ef 100%);
}
.ba--glass.ba__shot--after::before {
  top: -20%;
  bottom: -20%;
  left: 30%;
  right: auto;
  width: 22px;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
}
.ba--glass.ba__shot--after::after {
  top: -20%;
  bottom: -20%;
  left: 52%;
  right: auto;
  width: 8px;
  transform: rotate(20deg);
  background: rgba(255, 255, 255, .6);
}

.modal__footer {
  position: sticky;
  /* Chrome pins sticky elements inside the panel's padding, so offset by it to sit flush */
  bottom: calc(-24px - env(safe-area-inset-bottom));
  margin: 0 -20px calc(-24px - env(safe-area-inset-bottom));
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.total strong { transition: color .2s var(--ease); }
.total strong.is-bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); color: var(--accent-deep); } }
.bundle-nudge {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--accent-deep);
}
.bundle-nudge:empty { display: none; }
.bundle-nudge.is-warning { color: #c0392b; }
.savings {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--accent-deep);
}
.savings strong { font-weight: 700; }
.total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.total span { font-size: 14px; color: var(--muted); }
.total strong { display: inline-block; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }

/* ---------- Before / After viewer ---------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.viewer.is-open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease), visibility 0s; }
.viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 14, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.viewer__panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  transform: scale(.96);
  transition: transform .35s var(--ease);
}
.viewer.is-open .viewer__panel { transform: none; }
.viewer__close { position: absolute; top: -8px; right: -4px; float: none; margin: 0; }
.viewer__title {
  margin: 0 56px 14px 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
.viewer__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #11181b;
  touch-action: pan-y;
}
.viewer__track { display: flex; transition: transform .45s var(--ease); }
.viewer__track .ba__shot {
  flex: 0 0 100%;
  height: min(62vh, 480px);
  border-radius: 0;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.viewer__track .ba__shot figcaption { top: 14px; left: 14px; padding: 5px 12px; font-size: 12px; }
.viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--charcoal);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.viewer__nav:hover { transform: translateY(-50%) scale(1.06); }
.viewer__nav:focus-visible { outline: 3px solid rgba(43, 179, 163, .6); outline-offset: 2px; }
.viewer__nav[disabled] { opacity: 0; pointer-events: none; }
.viewer__nav--prev { left: 12px; }
.viewer__nav--next { right: 12px; }
.viewer__switch {
  display: flex;
  width: max-content;
  margin: 16px auto 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}
.viewer__switch button {
  min-width: 88px;
  min-height: 38px;
  padding: 6px 18px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  background: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.viewer__switch button[aria-selected="true"] { color: var(--charcoal); background: var(--white); }
.viewer__switch button:focus-visible { outline: 3px solid rgba(43, 179, 163, .6); outline-offset: 2px; }

/* ---------- Booking form ---------- */
.selected-service {
  clear: both;
  margin: -10px 0 20px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.selected-service:empty { display: none; }

.field { margin-bottom: 16px; }
.field > label:not([class]), .field .label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}
.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--charcoal);
  background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: #a9b2b6; }
.field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(43, 179, 163, .15);
}
.select { position: relative; }
.select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select:invalid { color: #a9b2b6; }

.field__error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #d0463b;
}
.field__notice { display: block; margin-top: 6px; font-size: 13px; color: #a5352a; }
.field.has-error .field__error { display: block; }
.field.has-error input,
.field.has-error select,
.field.has-error .dropzone { border-color: #e7867d; }

.field__hint { display: block; margin: -2px 0 8px; font-size: 13px; color: var(--muted); }

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  border: 1.5px dashed #c6dbd7;
  border-radius: var(--radius);
  text-align: center;
  color: var(--accent-deep);
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__title { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.dropzone__hint { font-size: 12px; color: var(--muted); }
.dropzone:focus-within { outline: 3px solid rgba(43, 179, 163, .35); outline-offset: 2px; }

.previews { display: flex; gap: 10px; margin-top: 10px; }
.previews:empty { display: none; }
.preview {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: pop .3s var(--ease);
}
.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  color: var(--white);
  background: rgba(14, 20, 23, .7);
  cursor: pointer;
}

/* ---------- Service terms ---------- */
.terms {
  margin: 4px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.terms__title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.terms__intro { margin-top: 6px; font-size: 13px; color: var(--muted); }
.terms__list { margin: 12px 0 0; padding-left: 18px; }
.terms__list li { margin-bottom: 8px; font-size: 13px; line-height: 1.55; color: var(--charcoal-2); }
.terms__list li::marker { color: var(--accent); }
.terms__list strong { color: var(--charcoal); }
.field--agree { margin: 14px 0 0; }
.agree {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.agree:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.field--agree.has-error .agree { border-color: #e7867d; }

.form__fine { margin-top: 14px; font-size: 14px; line-height: 1.5; text-align: center; color: var(--charcoal-2); }

.form__error {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #f1c4bf;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
  color: #a5352a;
  background: #fdf1ef;
}
.form__error a { font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.field--reveal:not([hidden]) { animation: fadeUp .35s var(--ease); }

/* Submit stays clickable (tapping it reveals what's missing) but looks inactive until the form is complete */
.submit-wrap { position: relative; }
.btn--primary.is-locked,
.btn--primary.is-locked:hover {
  color: #5b666c;
  background: #dfe5e7;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
.submit-hint {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  z-index: 3;
  width: max-content;
  max-width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: var(--white);
  background: var(--charcoal);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.submit-hint::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 6px solid transparent;
  border-top-color: var(--charcoal);
  transform: translateX(-50%);
}
.submit-hint:empty { display: none; }
.submit-wrap:has(.is-locked:hover) .submit-hint,
.submit-wrap:has(.is-locked:focus-visible) .submit-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Success ---------- */
.success { clear: both; padding: 12px 0 4px; text-align: center; animation: fadeUp .5s var(--ease); }
.success__badge { width: 76px; height: 76px; margin: 8px auto 18px; }
.success__badge svg { width: 100%; height: 100%; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success__badge circle {
  stroke: var(--accent);
  fill: var(--accent-soft);
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw .6s var(--ease) forwards;
}
.success__badge path {
  stroke: var(--accent-deep);
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: draw .4s var(--ease) .45s forwards;
}
.success .modal__title { margin-bottom: 10px; }
.success__msg { max-width: 30ch; margin: 0 auto 26px; font-size: 17px; color: var(--charcoal-2); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .hero { padding: 96px 0 104px; }
  .hero__cta .btn { width: auto; }
  .section-title--stack span { display: inline; }
  .modal { align-items: center; padding: 24px; }
  .modal__panel {
    padding: 0 36px 32px;
    border-radius: var(--radius-lg);
    transform: translateY(16px) scale(.97);
  }
  .modal__bar { margin: 0 -36px 0; padding: 16px 16px 4px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal__footer { bottom: -32px; margin: 0 -36px -32px; padding: 18px 36px 28px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}

@media (min-width: 880px) {
  .why { padding: 104px 0 112px; }
  .why__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { padding: 32px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
