/* =============================================================
   BC HOME SERVICE — KINETIC v16 DESIGN LAYER (css/v16.css)
   ---------------------------------------------------------------
   Layered AFTER css/v15.css (Aurora). 100% ADDITIVE: every rule
   is namespaced .v16-* / [data-v16-*] / :root --v16-* or guards
   a component v16.js builds. Existing layers (main, modern, v10,
   hero-v9, bc-v9, home-overrides, v5-fixes, v15) are never
   removed or re-laid-out.

   KINETIC MOTION MAP (what already exists and is NOT duplicated):
   - v10.js   : [data-v10-reveal] block reveals on main h2/h3 +
     card containers (.v10-in) — v16 word-splits UNCLAIMED
     headlines only and composes on a different DOM level (word
     spans inside the container v10 fades).
   - main.js  : [data-animate] card reveals, .reveal-mask image
     masks (inside .ba-comparison/.svc-img-wrap), .text-shimmer
     on .text-gradient, tilt on .service/.value/.offer/.ba/.deal
     (dataset.tiltInit), ripple (.btn-ripple), magnetic CTAs.
   - modern.js: [data-reveal] (.m-in), .m-tilt, .m-progress.
   - v15.js   : .v15-reveal cards, glow-layer cursor radial,
     marquee, counters, back-top, seasonal, trust strip, rebate +
     financing widgets, homepage brand swap.
   - v16 adds : word-level clip reveals, image clip reveals,
     spotlight cards, shimmer accents, page fade, orb breathe,
     THE MINIMAL MOBILE ACTION SYSTEM, drawer dock minimalization,
     hours chip, business widgets (SEER / maintenance / age).

   MOTION SAFETY: only transform / opacity / filter / clip-path /
   background-position (shimmer) animate — zero layout properties.
   prefers-reduced-motion kills ALL v16 motion. Touch devices and
   small screens lose hover-only effects. No CJK. English-only UI.
   ============================================================= */

/* ===================== 0. KINETIC TOKENS =====================
   Extends the Aurora v15 palette (navy #0a1628 family, cyan
   #48cae4, orange #FF6B35). No new hues beyond existing brand
   colors + the sanctioned status greens/ambers. */
:root {
  --v16-navy: #0a1628;
  --v16-navy-2: #0d1f3c;
  --v16-navy-3: #16294a;
  --v16-blue: #2e86de;
  --v16-cyan: #00b4d8;
  --v16-cyan-2: #48cae4;
  --v16-orange: #ff6b35;
  --v16-orange-2: #ff8c42;
  --v16-green: #22c55e;
  --v16-green-2: #4ade80;
  --v16-wa-green: #25d366;   /* existing WhatsApp green, dot only */
  --v16-amber: #f59e0b;
  --v16-amber-2: #fbbf24;

  --v16-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --v16-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --v16-ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --v16-dur-fast: 0.4s;
  --v16-dur: 0.55s;
  --v16-dur-slow: 0.8s;

  --v16-r-sm: 12px;
  --v16-r: 16px;
  --v16-r-lg: 22px;

  --v16-glass-dark: rgba(10, 22, 40, 0.92);
  --v16-line: rgba(255, 255, 255, 0.08);
  --v16-line-soft: rgba(255, 255, 255, 0.14);

  --v16-shadow-bar: 0 -10px 32px rgba(10, 22, 40, 0.3);
  --v16-shadow-md: 0 10px 34px -8px rgba(10, 22, 40, 0.16), 0 3px 10px rgba(10, 22, 40, 0.06);
  --v16-shadow-lg: 0 26px 70px -16px rgba(10, 22, 40, 0.28), 0 10px 28px rgba(10, 22, 40, 0.1);
}

/* ===================== 1. TEXT REVEAL (split words) =====================
   js/v16.js wraps the words of below-fold section headlines in
   .v16-w spans (each carrying --v16-wd for its stagger slot) and
   adds .v16-text-reveal only AFTER the observer is live, so text
   can never get stuck hidden by a failed script. Headlines owned
   by modern.js ([data-reveal]) or main.js ([data-animate]) are
   skipped; v10's container-level block reveal composes safely
   underneath (different elements). */
.v16-text-reveal .v16-w {
  display: inline-block;
  opacity: 0;
  -webkit-transform: translateY(0.55em);
  transform: translateY(0.55em);
  -webkit-clip-path: inset(0 -8% 102% -8%);
  clip-path: inset(0 -8% 102% -8%);
  -webkit-transition:
    opacity var(--v16-dur) var(--v16-ease-out),
    -webkit-transform var(--v16-dur) var(--v16-ease-out),
    -webkit-clip-path var(--v16-dur) var(--v16-ease-out);
  transition:
    opacity var(--v16-dur) var(--v16-ease-out),
    transform var(--v16-dur) var(--v16-ease-out),
    clip-path var(--v16-dur) var(--v16-ease-out);
  -webkit-transition-delay: calc(var(--v16-wd, 0) * 38ms);
  transition-delay: calc(var(--v16-wd, 0) * 38ms);
}
.v16-text-reveal.v16-in .v16-w {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
  /* negative inset = no clipping, keeps the property interpolable */
  -webkit-clip-path: inset(-30% -8% -30% -8%);
  clip-path: inset(-30% -8% -30% -8%);
}

/* ===================== 2. IMAGE REVEAL (clip) =====================
   Content images below the fold that main.js has NOT already
   masked (.reveal-mask / .reveal-mask-up inside .ba-comparison
   and .svc-img-wrap). */
.v16-img-reveal {
  -webkit-clip-path: inset(9% 6% 9% 6%);
  clip-path: inset(9% 6% 9% 6%);
  -webkit-filter: brightness(1.07) saturate(1.04);
  filter: brightness(1.07) saturate(1.04);
  -webkit-transition:
    -webkit-clip-path var(--v16-dur-slow) var(--v16-ease),
    -webkit-filter var(--v16-dur-slow) var(--v16-ease);
  transition:
    clip-path var(--v16-dur-slow) var(--v16-ease),
    filter var(--v16-dur-slow) var(--v16-ease);
}
.v16-img-reveal.v16-in {
  -webkit-clip-path: inset(-2% -1% -2% -1%);
  clip-path: inset(-2% -1% -2% -1%);
  -webkit-filter: none;
  filter: none;
}

/* ===================== 3. SPOTLIGHT (cursor radial) =====================
   Desktop-only, pointer-fine only. A dedicated child layer (like
   v15's glow layer) so ::before/::after of older layers are never
   touched. --v16-mx / --v16-my are rAF-lerped by js/v16.js. */
.v16-spot-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background:
    radial-gradient(
      340px circle at var(--v16-mx, 50%) var(--v16-my, 50%),
      rgba(72, 202, 228, 0.16),
      rgba(46, 134, 222, 0.07) 42%,
      transparent 64%
    );
  -webkit-transition: opacity var(--v16-dur-fast) ease;
  transition: opacity var(--v16-dur-fast) ease;
}
.v16-spot-host:hover .v16-spot-layer,
.v16-spot-host:focus-visible .v16-spot-layer,
.v16-spot-host.v16-spot-on .v16-spot-layer {
  opacity: 1;
}

/* ===================== 4. SHIMMER TEXT =====================
   Animated gradient sweep for key accents. main.js already
   shimmers .text-gradient — v16 applies this only to its own
   components and opt-in .v16-shimmer hooks. */
@keyframes v16ShimmerSweep {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}
.v16-shimmer-text {
  background-image: linear-gradient(
    100deg,
    currentColor 18%,
    var(--v16-cyan-2, #48cae4) 36%,
    #ffffff 50%,
    var(--v16-cyan-2, #48cae4) 64%,
    currentColor 82%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-animation: v16ShimmerSweep 3.4s linear infinite;
  animation: v16ShimmerSweep 3.4s linear infinite;
}

/* ===================== 5. PAGE FADE =====================
   js/v16.js adds .v16-fade-page to <main> on internal pages
   (never the React homepage — the hero paint is protected).
   No JS = no class = no hidden content, ever. */
@keyframes v16FadePage {
  from { opacity: 0; }
  to { opacity: 1; }
}
.v16-fade-page {
  -webkit-animation: v16FadePage 0.26s ease-out both;
  animation: v16FadePage 0.26s ease-out both;
}

/* ===================== 6. AURORA ORB BREATHE =====================
   v15 orbs parallax via JS style.transform — a transform keyframe
   would fight it, so the v16 enhancement breathes filter/opacity
   only (transform untouched, composite stays smooth). */
@keyframes v16OrbBreathe {
  0%, 100% { -webkit-filter: blur(46px) saturate(1); filter: blur(46px) saturate(1); opacity: 0.55; }
  50% { -webkit-filter: blur(54px) saturate(1.24); filter: blur(54px) saturate(1.24); opacity: 0.68; }
}
.v15-orb {
  -webkit-animation: v16OrbBreathe 10s ease-in-out infinite;
  animation: v16OrbBreathe 10s ease-in-out infinite;
}
.v15-orb-teal { -webkit-animation-delay: -3.4s; animation-delay: -3.4s; }
.v15-orb-orange { -webkit-animation-delay: -6.8s; animation-delay: -6.8s; }

/* ===================== 7. HOURS CHIP =====================
   Open/closed pill computed once at load by js/v16.js from
   window.BCBrand.hours. Green = open, amber = closed with the
   24/7 emergency reassurance (amber/green are sanctioned status
   colors, no new brand hues). */
.v16-hours-chip {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}
.v16-hours-chip .v16-hc-dot {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  -webkit-box-shadow: 0 0 8px currentColor;
  box-shadow: 0 0 8px currentColor;
}
.v16-hours-chip.v16-open {
  color: var(--v16-green-2, #4ade80);
  background: rgba(34, 197, 94, 0.13);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.v16-hours-chip.v16-closed {
  color: var(--v16-amber-2, #fbbf24);
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
/* drawer variant: sits on the dark drawer surface */
.v16-hours-chip--drawer { font-size: 0.66rem; padding: 3px 9px; }

/* ===================== 8. THE MINIMAL MOBILE ACTION SYSTEM =====================
   Owner priority #1: one calm glass bar, three equal compact
   actions (Call / WhatsApp / Book), everything else silenced.
   Hidden on desktop entirely (display:none by default). */
.v16-action-bar { display: none; }

/* Float suppression utility — cron job 24 (Effect Surface Curator)
   appends .v16-float-hidden to legacy floating buttons that lose
   to the v16 bar; the class is defined here so the auto-fix is
   never dead weight. */
.v16-float-hidden { display: none !important; }

@media (max-width: 768px) {
  /* ---- the bar ---- */
  .v16-action-bar {
    display: -webkit-flex;
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1250; /* above nav/m-sticky(1100), below the internal
                      drawer (.mobile-nav 1300), the homepage drawer
                      (.bc-mnav 9999) and the chat floats (9998+) */
    height: 58px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--v16-glass-dark, rgba(10, 22, 40, 0.92));
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--v16-line, rgba(255, 255, 255, 0.08));
    -webkit-box-shadow: var(--v16-shadow-bar);
    box-shadow: var(--v16-shadow-bar);
  }
  .v16-ab-btn {
    -webkit-flex: 1 1 0;
    flex: 1 1 0;
    min-width: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 3px;
    min-height: 58px;
    padding: 6px 2px 2px;
    color: #fff;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
    -webkit-transition: opacity 0.15s ease;
    transition: opacity 0.15s ease;
    cursor: pointer;
  }
  .v16-ab-btn + .v16-ab-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }
  .v16-ab-btn svg {
    width: 20px;
    height: 20px;
    color: #fff;
  }
  .v16-ab-btn:active {
    -webkit-transform: scale(0.96);
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.06);
  }
  .v16-ab-btn:focus-visible {
    outline: 2px solid var(--v16-cyan-2, #48cae4);
    outline-offset: -2px;
    border-radius: 10px;
  }
  .v16-ab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  /* the ONLY green: an 8px dot on the WhatsApp icon */
  .v16-ab-ico { position: relative; display: inline-flex; line-height: 0; }
  .v16-ab-dot {
    position: absolute;
    top: -2px;
    right: -5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--v16-wa-green, #25d366);
    -webkit-box-shadow: 0 0 0 2px rgba(10, 22, 40, 0.92);
    box-shadow: 0 0 0 2px rgba(10, 22, 40, 0.92);
  }

  /* ---- float cleanup: the bar owns the bottom edge ---- */
  .whatsapp-float,
  .v15-back-top,
  .sticky-cta-bar,
  .m-sticky-cta,
  .fab-menu { display: none !important; }

  /* the AI chat float survives — compacted + lifted above the bar */
  .ai-chat-float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    max-width: 52px !important;
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  .ai-chat-float .ai-orb {
    width: 100%;
    height: 100%;
  }
  .ai-chat-float .ai-orb svg {
    width: 26px;
    height: 26px;
  }
  .ai-chat-float .ai-badge {
    top: 0;
    right: 0;
    min-width: 17px;
    height: 17px;
  }

  /* room for the bar (old rule was 64px) */
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  }

  /* ---- internal drawer dock: compact single row ---- */
  .mobile-nav .mn-foot {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .v16-dock-row {
    display: -webkit-flex;
    display: flex;
    gap: 8px;
  }
  .v16-dock-btn {
    -webkit-flex: 1 1 0;
    flex: 1 1 0;
    min-width: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    padding: 8px 4px;
    border-radius: 12px;
    border: 1px solid var(--v16-line-soft, rgba(255, 255, 255, 0.14));
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
    -webkit-transition: background 0.15s ease, border-color 0.15s ease;
    transition: background 0.15s ease, border-color 0.15s ease;
  }
  .v16-dock-btn svg {
    width: 18px;
    height: 18px;
    color: var(--v16-cyan-2, #48cae4);
  }
  .v16-dock-btn:active {
    -webkit-transform: scale(0.96);
    transform: scale(0.96);
    background: rgba(72, 202, 228, 0.12);
    border-color: rgba(72, 202, 228, 0.35);
  }
  .v16-dock-btn:focus-visible {
    outline: 2px solid var(--v16-cyan-2, #48cae4);
    outline-offset: -2px;
  }
  .v16-dock-btn .v16-dock-ico { position: relative; display: inline-flex; line-height: 0; }
  .v16-dock-btn .v16-ab-dot {
    top: -2px;
    right: -4px;
  }
  .v16-dock-hours {
    margin-top: 2px;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.01em;
  }
  .v16-dock-hours .v16-hc-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
    background: currentColor;
    -webkit-box-shadow: 0 0 6px currentColor;
    box-shadow: 0 0 6px currentColor;
  }
  .v16-dock-hours.v16-open { color: var(--v16-green-2, #4ade80); }
  .v16-dock-hours.v16-closed { color: var(--v16-amber-2, #fbbf24); }
}

/* ---- hours chip inside the internal drawer head ---- */
.mobile-nav .mn-head .v16-hours-chip {
  margin-left: auto;
  margin-right: 2px;
  -webkit-flex: 0 1 auto;
  flex: 0 1 auto;
}

/* ===================== 9. BUSINESS WIDGETS =====================
   [data-seer-calc] / [data-maint-calc] / [data-age-check]
   containers get a navy premium card that matches the v15 widget
   family. js/v16.js builds the markup + behavior; this skin is
   purely presentational. Renders only where the attribute exists. */
.v16-widget {
  position: relative;
  border-radius: var(--v16-r-lg, 22px);
  padding: 26px 24px 22px;
  color: #fff;
  background:
    radial-gradient(420px 240px at 8% -10%, rgba(0, 180, 216, 0.28), transparent 62%),
    radial-gradient(380px 240px at 108% 112%, rgba(255, 107, 53, 0.18), transparent 60%),
    linear-gradient(150deg, #0a1628 0%, #0d1f3c 52%, #16294a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-box-shadow: var(--v16-shadow-lg);
  box-shadow: var(--v16-shadow-lg);
  overflow: hidden;
  font-size: 0.95rem;
  max-width: 720px;
}
.v16-widget-head {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 11px;
  margin-bottom: 4px;
}
.v16-widget-head svg { color: var(--v16-cyan-2, #48cae4); -webkit-flex: 0 0 auto; flex: 0 0 auto; }
.v16-widget-title {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.v16-widget-sub {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
  line-height: 1.5;
}
.v16-widget label,
.v16-wlabel {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.v16-widget select,
.v16-widget input[type="number"] {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--v16-r-sm, 12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
  -webkit-transition: border-color var(--v16-dur-fast) var(--v16-ease), background var(--v16-dur-fast) var(--v16-ease);
  transition: border-color var(--v16-dur-fast) var(--v16-ease), background var(--v16-dur-fast) var(--v16-ease);
}
.v16-widget select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2348cae4' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.v16-widget select:focus,
.v16-widget input[type="number"]:focus {
  outline: none;
  border-color: var(--v16-cyan-2, #48cae4);
  background-color: rgba(255, 255, 255, 0.1);
}
.v16-widget select option { color: #0a1628; background: #fff; }

/* range slider */
.v16-widget input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  margin: 4px 0 2px;
  background: transparent;
  cursor: pointer;
}
.v16-widget input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
}
.v16-widget input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e86de, #00b4d8);
  border: 2px solid #fff;
  -webkit-box-shadow: 0 2px 10px rgba(0, 180, 216, 0.55);
  box-shadow: 0 2px 10px rgba(0, 180, 216, 0.55);
}
.v16-widget input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
}
.v16-widget input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e86de, #00b4d8);
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 180, 216, 0.55);
}
.v16-widget input[type="range"]:focus-visible {
  outline: 2px solid var(--v16-cyan-2, #48cae4);
  outline-offset: 4px;
  border-radius: 8px;
}
.v16-range-row {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: baseline;
  align-items: baseline;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 10px;
}
.v16-range-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--v16-cyan-2, #48cae4);
  white-space: nowrap;
}

/* segmented control */
.v16-seg {
  display: -webkit-flex;
  display: flex;
  gap: 6px;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 4px;
}
.v16-seg button {
  -webkit-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 74px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-transition: background var(--v16-dur-fast) var(--v16-ease), border-color var(--v16-dur-fast) var(--v16-ease), color var(--v16-dur-fast) var(--v16-ease);
  transition: background var(--v16-dur-fast) var(--v16-ease), border-color var(--v16-dur-fast) var(--v16-ease), color var(--v16-dur-fast) var(--v16-ease);
}
.v16-seg button[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(46, 134, 222, 0.35), rgba(0, 180, 216, 0.35));
  border-color: rgba(72, 202, 228, 0.55);
  color: #fff;
}
.v16-seg button:focus-visible {
  outline: 2px solid var(--v16-cyan-2, #48cae4);
  outline-offset: 2px;
}

/* result panel */
.v16-result {
  margin-top: 18px;
  padding: 16px 16px 14px;
  border-radius: var(--v16-r, 16px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(72, 202, 228, 0.22);
}
.v16-result-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}
.v16-result-value {
  display: block;
  font-size: clamp(1.5rem, 3.4vw, 1.95rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}
.v16-result-value .v16-per {
  font-size: 0.55em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}
.v16-breakdown {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 10px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
}
.v16-breakdown b { color: rgba(255, 255, 255, 0.88); font-weight: 700; }
.v16-verdict {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.v16-verdict .v16-hc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  -webkit-box-shadow: 0 0 8px currentColor;
  box-shadow: 0 0 8px currentColor;
}
.v16-verdict.v16-v-good { color: var(--v16-green-2, #4ade80); background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); }
.v16-verdict.v16-v-watch { color: var(--v16-amber-2, #fbbf24); background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); }
.v16-verdict.v16-v-replace { color: var(--v16-orange-2, #ff8c42); background: rgba(255, 107, 53, 0.12); border: 1px solid rgba(255, 107, 53, 0.35); }
.v16-advice {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.v16-cta {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2e86de 0%, #00b4d8 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  -webkit-box-shadow: 0 10px 26px -10px rgba(0, 180, 216, 0.7);
  box-shadow: 0 10px 26px -10px rgba(0, 180, 216, 0.7);
  -webkit-transition: -webkit-transform 0.15s var(--v16-ease-spring), -webkit-box-shadow 0.2s ease;
  transition: transform 0.15s var(--v16-ease-spring), box-shadow 0.2s ease;
}
.v16-cta:hover {
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 14px 32px -10px rgba(0, 180, 216, 0.8);
  box-shadow: 0 14px 32px -10px rgba(0, 180, 216, 0.8);
}
.v16-cta:active { -webkit-transform: scale(0.97); transform: scale(0.97); }
.v16-cta:focus-visible { outline: 2px solid var(--v16-cyan-2, #48cae4); outline-offset: 2px; }
.v16-note {
  display: block;
  margin-top: 12px;
  font-size: 0.7rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
}
.v16-widget .v16-shimmer-text { color: #fff; }

/* ===================== 10. GUARDS ===================== */

/* touch / coarse pointers: no hover-only effects */
@media (hover: none), (pointer: coarse) {
  .v16-spot-layer { display: none; }
  .v16-shimmer-text {
    -webkit-animation: none;
    animation: none;
  }
}

/* small screens: keep the cheap one-shot reveals, drop the rest */
@media (max-width: 767px) {
  .v16-spot-layer { display: none; }
  .v16-text-reveal .v16-w {
    -webkit-transition-duration: 0.42s;
    transition-duration: 0.42s;
    -webkit-transition-delay: calc(var(--v16-wd, 0) * 26ms);
    transition-delay: calc(var(--v16-wd, 0) * 26ms);
  }
  .v16-img-reveal {
    -webkit-transition-duration: 0.55s;
    transition-duration: 0.55s;
  }
}

/* reduced motion: everything instant, nothing hidden */
@media (prefers-reduced-motion: reduce) {
  .v16-text-reveal .v16-w,
  .v16-img-reveal,
  .v16-spot-layer,
  .v16-fade-page,
  .v16-cta,
  .v15-orb {
    -webkit-transition: none !important;
    transition: none !important;
    -webkit-animation: none !important;
    animation: none !important;
    opacity: 1 !important;
    -webkit-transform: none !important;
    transform: none !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    -webkit-filter: none !important;
    filter: none !important;
  }
  .v16-shimmer-text {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-text-fill-color: currentColor;
  }
  .v16-ab-btn:active,
  .v16-dock-btn:active { -webkit-transform: none !important; transform: none !important; }
}

/* dark theme: the v16 surfaces are already navy-native; only the
   hours chip on light topbars needs the flip (internal topbars are
   dark navy in both themes, so this is belt-and-braces). */
[data-theme="dark"] .v16-hours-chip.v16-open { color: var(--v16-green-2, #4ade80); }
[data-theme="dark"] .v16-hours-chip.v16-closed { color: var(--v16-amber-2, #fbbf24); }

/* print: chrome off, content intact */
@media print {
  .v16-action-bar,
  .v16-spot-layer,
  .v16-float-hidden,
  .v16-cta { display: none !important; }
  .v16-text-reveal .v16-w,
  .v16-img-reveal,
  .v16-fade-page {
    opacity: 1 !important;
    -webkit-transform: none !important;
    transform: none !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    -webkit-filter: none !important;
    filter: none !important;
    -webkit-animation: none !important;
    animation: none !important;
  }
  body { padding-bottom: 0 !important; }
}
