/* ============================================================
   DetailPro consumer site — redesign
   Palette and motion language carried over from the original:
   near-black #050607, white ink, glass surfaces, #116df8 glow.
   ============================================================ */

:root {
  --bg: #050607;
  --bg-rgb: 5, 6, 7;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.85);
  --dim: rgba(255, 255, 255, 0.58);
  --faint: rgba(255, 255, 255, 0.34);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --card: rgba(255, 255, 255, 0.038);
  --card-hover: rgba(255, 255, 255, 0.065);
  --accent: #116df8;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --shell: 1200px;
  --pad-x: clamp(20px, 4vw, 48px);
  --font: "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video, canvas { max-width: 100%; display: block; }
button { font-family: inherit; }

::selection { background: rgba(17, 109, 248, 0.4); color: #fff; }

/* ---------- type scale ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }

.display {
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.07;
}

.h2 .soft { color: var(--dim); }

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--dim);
  line-height: 1.65;
  max-width: 54ch;
}

/* ---------- layout primitives ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section { padding: clamp(84px, 10vw, 150px) 0; position: relative; }
.section--flush { padding: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.55);
}

/* DetailPro widget eyebrows (coverage map + FAQ) restyled to match the site
   kicker — the widgets inject their own styles later in the cascade, so this
   needs the double-class specificity and !important to win */
.uplex-eyebrow.kicker,
.dpfaq-badge.kicker {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: var(--ink) !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head .lead { margin-top: 18px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 10px 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.16);
}
html[data-theme="light"] .btn:hover { box-shadow: 0 14px 34px rgba(11, 12, 14, 0.28); }
.btn .btn-ic {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
}
.btn .btn-ic svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.btn:hover .btn-ic svg { transform: translate(2px, -2px); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0 26px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); background: rgba(255, 255, 255, 0.16); }
html[data-theme="light"] .btn--ghost {
  background: rgba(11, 12, 14, 0.06);
  color: var(--ink);
}
html[data-theme="light"] .btn--ghost:hover {
  background: rgba(11, 12, 14, 0.11);
  box-shadow: 0 14px 30px rgba(11, 12, 14, 0.12);
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform, filter;
}
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ============================================================
   NAV — white pill, GSAP hover-expand (behavior preserved)
   ============================================================ */

.nav-menu-trigger,
.nav-menu-dropdown,
.call-button,
.book-button { position: relative; z-index: 999999; }

html:not(.dpb-menu-ready) .nav-menu-dropdown,
html:not(.dpb-menu-ready) .call-button,
html:not(.dpb-menu-ready) .book-button {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.nav-menu-trigger {
  position: fixed;
  top: clamp(18px, 4vh, 40px);
  left: 0;
  right: 0;
  width: 145px;
  height: 50px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.menu-text {
  color: #050607;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.nav-menu-dropdown {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-menu-link {
  color: #050607;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-side {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #fff;
  color: #050607;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.nav-side svg { width: 20px; height: 20px; }

/* contact-modal fade: class-driven with !important so the menu's own GSAP
   width tweens (overwrite: true) can never kill the fade mid-flight */
.nav-menu-trigger.dp-fade,
.theme-toggle.dp-fade {
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s !important;
}
.nav-menu-trigger.dp-hidden,
.theme-toggle.dp-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-16px) scale(0.96) !important;
}

/* ---------- theme toggle (fixed, top-right) ---------- */
.theme-toggle {
  position: fixed;
  top: clamp(18px, 4vh, 40px);
  right: clamp(16px, 2.5vw, 34px);
  z-index: 999998;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #050607;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.theme-toggle svg { width: 20px; height: 20px; }
html[data-theme="light"] .theme-toggle {
  background: #0b0c0e;
  color: #fff;
  box-shadow: 0 10px 26px rgba(11, 12, 14, 0.3);
}
@media (max-width: 991px) {
  .theme-toggle { width: 46px; height: 46px; right: 14px; }
}

@media (max-width: 991px) {
  .nav-menu-trigger { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .call-button, .book-button { display: none !important; }
  .nav-menu-link { font-size: 13px; padding: 6px 9px; }
}
/* touch-primary devices at ANY width (tablets, landscape phones,
   desktop-site mode) — JS stamps this class when the mobile nav engages */
html.dpb-touch .nav-menu-trigger { cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.dpb-touch .call-button,
html.dpb-touch .book-button,
html.dpb-touch .nav-menu-dropdown { display: none !important; }

/* ---------- full-screen mobile nav (touch only, built by JS) ---------- */

.dp-mnav {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  background: rgba(var(--bg-rgb), 0.92);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  padding: calc(16px + env(safe-area-inset-top, 0px)) 22px calc(26px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.dp-mnav.open { pointer-events: auto; }

.dp-mnav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
}
.dp-mnav-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.dp-mnav-close {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dp-mnav-close svg { width: 20px; height: 20px; }

.dp-mnav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.dp-mnav-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  font-size: clamp(32px, 8.6vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.dp-mnav-link .idx {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--faint);
}
.dp-mnav-link.is-current { color: var(--dim); }
.dp-mnav-link.is-current::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #7ee39a;
  align-self: center;
}

.dp-mnav-cta { display: flex; flex-direction: column; gap: 12px; }
.dp-mnav-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 58px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 16px;
  font-weight: 600;
}
.dp-mnav-book svg { width: 17px; height: 17px; }
.dp-mnav-foot {
  text-align: center;
  font-size: 13px;
  color: var(--faint);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* theme-switch cross-fade: the incoming scene stacks on top and fades in */
.hero-media video.dp-xfade-in {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.hero-media video.dp-xfade-in.dp-xfade-live { opacity: 1; }
/* cinematic grade: soft left vignette for legibility + a deep bottom
   fade into the page background so the scene hands off seamlessly.
   Gradients can't interpolate between themes, so the dark and light
   grades live on two stacked layers whose OPACITY cross-fades in sync
   with the video scene swap. */
.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
/* dark grade */
.hero-media::after {
  background:
    radial-gradient(90% 110% at 12% 78%, rgba(5, 6, 7, 0.72) 0%, rgba(5, 6, 7, 0.28) 45%, rgba(5, 6, 7, 0) 72%),
    linear-gradient(to top, #050607 0%, rgba(5, 6, 7, 0.72) 9%, rgba(5, 6, 7, 0) 34%),
    linear-gradient(to bottom, rgba(5, 6, 7, 0.55) 0%, rgba(5, 6, 7, 0) 20%);
  opacity: 1;
}
/* light grade */
.hero-media::before {
  background:
    radial-gradient(90% 110% at 12% 78%, rgba(244, 245, 247, 0.75) 0%, rgba(244, 245, 247, 0.3) 45%, rgba(244, 245, 247, 0) 72%),
    linear-gradient(to top, #f4f5f7 0%, rgba(244, 245, 247, 0.72) 9%, rgba(244, 245, 247, 0) 34%),
    linear-gradient(to bottom, rgba(244, 245, 247, 0.45) 0%, rgba(244, 245, 247, 0) 20%);
  opacity: 0;
}
html[data-theme="light"] .hero-media::after { opacity: 0; }
html[data-theme="light"] .hero-media::before { opacity: 1; }
.hero-media .hero-video-mobile { display: none; }

@media (max-width: 767px) {
  .hero-media .hero-video-desktop { display: none; }
  .hero-media .hero-video-mobile { display: block; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(120px, 16vh, 170px);
}

.hero-content {
  max-width: 760px;
  will-change: transform, opacity;
}

/* word-by-word blur-up (same feel as original) */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 9px 16px 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 13.5px;
  font-weight: 500;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #7ee39a;
  box-shadow: 0 0 0 0 rgba(126, 227, 154, 0.55);
  opacity: 0;
  animation:
    heroDotIn 700ms var(--ease) forwards,
    heroDotPulse 2.2s ease-out 1.2s infinite;
}
@keyframes heroDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(126, 227, 154, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(126, 227, 154, 0); }
}
/* plain-text container for the eyebrow words — its runtime-split word spans
   become flex items of .hero-eyebrow so the gap spacing applies */
.hero-eye-words { display: contents; }

.hero-word,
.hero-eye-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(34px);
  filter: blur(14px);
  animation: heroWordUp 950ms var(--ease) forwards;
  animation-delay: calc(var(--i) * 75ms + 120ms);
  will-change: opacity, transform, filter;
}
.hero-eye-word { transform: translateY(14px); filter: blur(8px); }
@keyframes heroWordUp { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes heroDotIn { to { opacity: 1; } }

.hero h1 {
  font-size: clamp(44px, 6.4vw, 94px);
  line-height: 1.01;
  letter-spacing: -0.03em;
}
.hero-line { display: block; }

.hero-sub {
  margin: 24px 0 0;
  max-width: 46ch;
  font-size: clamp(15.5px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dim);
}
.hero-trust .star { color: #f5b400; letter-spacing: 2px; font-size: 12px; margin-right: 4px; }
.hero-trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
  flex: none;
}

/* staged entrance for everything under the heading */
.hero-sub,
.hero-ctas,
.hero-trust {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(10px);
  animation: heroWordUp 950ms var(--ease) forwards;
}
.hero-sub { animation-delay: 1000ms; }
.hero-ctas { animation-delay: 1180ms; }
.hero-trust { animation-delay: 1360ms; }

/* bottom bar: scroll cue left, service area right — anchors the hero edge */
.hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(26px, 4.5vh, 44px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  opacity: 0;
  animation: heroDotIn 1s var(--ease) 1.7s forwards;
}
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero-scroll-track {
  position: relative;
  width: 1px;
  height: 34px;
  background: var(--line-strong);
  overflow: hidden;
  flex: none;
}
.hero-scroll-thumb {
  position: absolute;
  top: -45%;
  left: 0;
  width: 100%;
  height: 45%;
  background: var(--ink);
  animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop { 0% { top: -45%; } 70%, 100% { top: 110%; } }

.hero-loc { display: inline-flex; align-items: center; gap: 8px; }
.hero-loc svg { width: 14px; height: 14px; flex: none; color: var(--faint); }

@media (max-width: 767px) {
  .hero-loc { display: none; }
  .hero-inner { padding-bottom: clamp(96px, 14vh, 130px); }
}
@media (max-width: 479px) {
  .hero h1 { font-size: clamp(36px, 11vw, 46px); }
  .hero-eyebrow { font-size: 12.5px; }
}

/* ============================================================
   TRUST MARQUEE
   ============================================================ */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 34px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--dim);
  white-space: nowrap;
}
.marquee-item .star { color: #f5b400; letter-spacing: 2px; font-size: 13px; }
.marquee-item svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
.marquee-sep {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
  align-self: center;
  flex: none;
}
@keyframes marqueeScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 991px) { .steps-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

.step-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
  padding: clamp(26px, 2.6vw, 36px);
  transition: transform 0.5s var(--ease), border-color 0.5s, background 0.5s;
}
.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--card-hover);
}
.step-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin-bottom: clamp(30px, 3.5vw, 52px);
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-num::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.step-card h3 { font-size: 20px; margin-bottom: 10px; }
.step-card p { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.65; }

/* ============================================================
   WHY CHOOSE US — slider
   ============================================================ */

.why-slider { position: relative; }
.why-frame {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 8.4;
  background: #0a0c0f;
}
@media (max-width: 767px) { .why-frame { aspect-ratio: 4 / 5; } }

.why-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s var(--ease), transform 1.2s var(--ease);
  pointer-events: none;
}
.why-slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.why-slide img { width: 100%; height: 100%; object-fit: cover; }
.why-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 7, 0.88) 0%, rgba(5, 6, 7, 0.15) 45%, rgba(5, 6, 7, 0) 70%);
}
.why-copy {
  position: absolute;
  left: clamp(22px, 3.5vw, 48px);
  right: clamp(22px, 3.5vw, 48px);
  bottom: clamp(22px, 3.2vw, 44px);
  z-index: 2;
  max-width: 560px;
}
/* slide copy sits on photos — always light text regardless of theme */
.why-copy h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  margin-bottom: 10px;
  color: #fff;
}
.why-copy p { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 15.5px; line-height: 1.6; }
.why-slide .why-copy h3,
.why-slide .why-copy p {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition: opacity 0.7s var(--ease) 0.25s, transform 0.7s var(--ease) 0.25s, filter 0.7s var(--ease) 0.25s;
}
.why-slide .why-copy p { transition-delay: 0.35s; }
.why-slide.active .why-copy h3,
.why-slide.active .why-copy p { opacity: 1; transform: translateY(0); filter: blur(0); }

.why-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}
.why-dots { display: flex; gap: 8px; flex: 1; max-width: 300px; }
.why-dot {
  all: unset;
  cursor: pointer;
  height: 4px;
  border-radius: 4px;
  background: var(--line-strong);
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.why-dot .fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
}
.why-dot.active .fill { animation: dotFill var(--why-dur, 6.5s) linear forwards; }
@keyframes dotFill { to { transform: scaleX(1); } }

.why-arrows { display: flex; gap: 10px; }
.icon-btn {
  all: unset;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 17px; height: 17px; }

/* ============================================================
   PRICING
   ============================================================ */

.pricing { position: relative; overflow: hidden; }
/* radial gradient (not a blurred circle) so the glow reaches zero alpha
   before the section's overflow clip — no hard seam against the next section */
.pricing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(120em, 160vw);
  height: 100%;
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    rgba(17, 109, 248, 0.30) 0%,
    rgba(17, 109, 248, 0.10) 42%,
    rgba(17, 109, 248, 0) 68%
  );
  opacity: 0.55;
  pointer-events: none;
}

.pricing-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 991px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: clamp(26px, 2.6vw, 36px);
  transition: transform 0.5s var(--ease), border-color 0.5s, background 0.5s;
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--card-hover);
}
.price-card.featured {
  border-color: rgba(17, 109, 248, 0.55);
  background: linear-gradient(180deg, rgba(17, 109, 248, 0.14) 0%, rgba(17, 109, 248, 0.03) 55%, var(--card) 100%);
  box-shadow: 0 30px 80px rgba(17, 109, 248, 0.15);
}
.price-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-name { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.price-amount {
  font-size: clamp(40px, 3.6vw, 54px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}
.price-desc { color: var(--dim); font-size: 14.5px; line-height: 1.6; margin: 0 0 24px; }

.price-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 0;
  margin-bottom: 26px;
  border-top: 1px solid var(--line);
  flex: 1;
}
.price-feature {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.5;
}
.price-feature svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--ink);
  background: var(--line-strong);
  border-radius: 999px;
  padding: 3px;
}
.price-card.featured .price-feature svg { color: #fff; background: rgba(17, 109, 248, 0.55); }

.price-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.price-cta:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
html[data-theme="light"] .price-cta { background: rgba(11, 12, 14, 0.05); }
html[data-theme="light"] .price-cta:hover { background: rgba(11, 12, 14, 0.1); }
.price-card.featured .price-cta { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.price-card.featured .price-cta:hover { box-shadow: 0 12px 34px rgba(255, 255, 255, 0.18); }
html[data-theme="light"] .price-card.featured .price-cta:hover { box-shadow: 0 12px 30px rgba(11, 12, 14, 0.25); }

/* ============================================================
   JOURNEY — accordion + media
   ============================================================ */

.journey-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: stretch;
}
@media (max-width: 991px) { .journey-grid { grid-template-columns: 1fr; } }

.acc-item {
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  padding: 4px 0 4px 26px;
  transition: border-left-color 0.35s;
  cursor: pointer;
}
.acc-item.open { border-left-color: var(--ink); }
.acc-head {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  cursor: pointer;
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 600;
  color: var(--faint);
  transition: color 0.35s;
}
.acc-item.open .acc-head, .acc-item:hover .acc-head { color: var(--ink); }
.acc-head svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--faint);
  transition: transform 0.35s var(--ease);
}
.acc-item.open .acc-head svg { transform: rotate(180deg); }
.acc-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.4s;
}
.acc-item.open .acc-body { opacity: 1; }
.acc-body-inner {
  padding: 0 0 24px;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.75;
  max-width: 56ch;
}

.journey-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  /* optically align the paragraph's first line with the first accordion title */
  padding-top: 14px;
}
.journey-side .lead {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44ch;
}
.journey-media {
  align-self: stretch;
  flex: 1;
  min-height: 280px;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.journey-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 991px) {
  .journey-side { padding-top: 0; gap: 24px; }
  .journey-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .journey-media video { position: static; }
}

/* ============================================================
   TESTIMONIALS  (data-dp keys preserved)
   ============================================================ */

.dpt-loved {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(36px, 4.5vw, 56px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.dpt-mini-avatars {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
}
.dpt-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #0a0b0e;
  margin-right: -8px;
  display: inline-block;
  background: #1a1a1a center/cover no-repeat;
}
.dpt-mini:nth-child(1) { background-image: url("https://randomuser.me/api/portraits/women/44.jpg"); }
.dpt-mini:nth-child(2) { background-image: url("https://randomuser.me/api/portraits/men/32.jpg"); }
.dpt-mini:nth-child(3) { background-image: url("https://randomuser.me/api/portraits/women/76.jpg"); }
.dpt-mini:nth-child(4) { background-image: url("https://randomuser.me/api/portraits/men/85.jpg"); }
.dpt-mini-heart {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5050, #c9201f);
  margin-left: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0a0b0e;
}
.dpt-mini-heart svg { width: 14px; height: 14px; fill: #fff; }

.dpt-card-wrap {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px clamp(24px, 4vw, 48px) 48px;
  text-align: left;
  max-width: 860px;
  margin: 0 auto;
}
.dpt-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 36px;
}
.dpt-tab {
  all: unset;
  cursor: pointer;
  height: 3px;
  border-radius: 3px;
  background: var(--line-strong);
  transition: background 0.3s;
}
.dpt-tab.active { background: var(--ink); }
.dpt-slides {
  position: relative;
  min-height: 210px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.dpt-slides:active, .dpt-slides.dpt-dragging { cursor: grabbing; }
.dpt-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 0.4s ease, transform 0.5s ease;
  pointer-events: none;
  will-change: transform, opacity;
}
.dpt-slide.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  position: relative;
}
.dpt-slides.dpt-dragging .dpt-slide.active { transition: none; }
.dpt-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.dpt-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b1109;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}
.dpt-slide[data-i="0"] .dpt-avatar { background: linear-gradient(135deg, #c9b59a, #7a5837); }
.dpt-slide[data-i="1"] .dpt-avatar { background: linear-gradient(135deg, #d6a48a, #8a4b34); }
.dpt-slide[data-i="2"] .dpt-avatar { background: linear-gradient(135deg, #a6cbe6, #4571a5); color: #0c2238; }
.dpt-slide[data-i="3"] .dpt-avatar { background: linear-gradient(135deg, #f1b8a4, #c46b58); }
.dpt-slide[data-i="4"] .dpt-avatar { background: linear-gradient(135deg, #a8c69d, #4e7d4a); color: #11280f; }
.dpt-name-block { display: flex; flex-direction: column; min-width: 0; }
.dpt-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.dpt-role { font-size: 13px; color: var(--dim); margin-top: 2px; }
.dpt-stars { color: #f5b400; letter-spacing: 2px; font-size: 17px; margin-bottom: 16px; line-height: 1; }
.dpt-text { margin: 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-soft); }

.dpt-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.dpt-arrow.prev { left: -23px; }
.dpt-arrow.next { right: -23px; }
@media (max-width: 720px) {
  .dpt-arrow { top: auto; bottom: 20px; transform: none; }
  .dpt-arrow.prev { left: 50%; right: auto; margin-left: -52px; }
  .dpt-arrow.next { left: 50%; right: auto; margin-left: 10px; }
  .dpt-card-wrap { padding-bottom: 92px; }
}
.dpt-footer {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--dim);
}
.dpt-footer-stars { letter-spacing: 2px; }
@keyframes dpt-hint {
  0% { transform: translate3d(0, 0, 0); }
  35% { transform: translate3d(0, 18px, 0); }
  65% { transform: translate3d(0, -4px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.dpt-hint .dpt-slide.active { animation: dpt-hint 0.9s cubic-bezier(0.34, 1.4, 0.64, 1); }

/* ============================================================
   WHERE WE WORK
   ============================================================ */

.where { position: relative; overflow: hidden; }
.where-dots-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.where-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 991px) { .where-grid { grid-template-columns: 1fr; } }

.city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 479px) { .city-grid { grid-template-columns: 1fr; } }

.city-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
.city-chip:hover { border-color: var(--line-strong); background: var(--card-hover); transform: translateY(-2px); }
.city-ping { position: relative; width: 8px; height: 8px; flex: none; }
.city-ping::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--accent);
}
.city-ping::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(17, 109, 248, 0.6);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 1; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}

/* ============================================================
   CTA BAND
   ============================================================ */

.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 160% at 50% 130%, rgba(17, 109, 248, 0.28) 0%, rgba(17, 109, 248, 0.05) 45%, transparent 70%),
    var(--card);
  text-align: center;
  padding: clamp(56px, 7vw, 110px) clamp(24px, 5vw, 80px);
  overflow: hidden;
}
.cta-inner .h2 { margin-bottom: 16px; }
.cta-inner .lead { margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.footer-tag { color: var(--dim); font-size: 14.5px; line-height: 1.65; max-width: 34ch; margin: 0; }

.footer-col-title {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.footer-link {
  display: block;
  color: var(--dim);
  font-size: 15px;
  padding: 7px 0;
  transition: color 0.25s, transform 0.3s var(--ease);
}
.footer-link:hover { color: #fff; transform: translateX(3px); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 13.5px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.footer-social a:hover { color: #fff; border-color: var(--line-strong); background: var(--card-hover); }
.footer-social svg { width: 16px; height: 16px; }

/* ============================================================
   SUBPAGE SHARED
   ============================================================ */

.page-top { padding-top: clamp(130px, 16vh, 180px); }
.page-hero { padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.page-hero .lead { margin-top: 16px; }

/* services scroll canvas */
.scroll-scene { height: 320vh; position: relative; }
.scroll-canvas-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}
#scroll-canvas { width: 100%; height: 100%; display: block; }
.canvas-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 18%),
    linear-gradient(to top, var(--bg) 0%, transparent 18%),
    linear-gradient(to right, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}
.frame-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 10;
}
.frame-loader.hidden { opacity: 0; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.loader-bar-track {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
.loader-bar-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================================
   LIGHT MODE
   Toggled by setting data-theme="light" on <html>.
   The hero swaps to the light Blender scene via data-src-light
   attributes on the hero <video> tags (see site.js).
   ============================================================ */

html[data-theme="light"] {
  --bg: #f4f5f7;
  --bg-rgb: 244, 245, 247;
  --ink: #0b0c0e;
  --ink-soft: rgba(11, 12, 14, 0.85);
  --dim: rgba(11, 12, 14, 0.62);
  --faint: rgba(11, 12, 14, 0.4);
  --line: rgba(11, 12, 14, 0.1);
  --line-strong: rgba(11, 12, 14, 0.2);
  --card: #ffffff;
  --card-hover: #ffffff;
}

html[data-theme="light"] ::selection { background: rgba(17, 109, 248, 0.22); }

/* solid white cards want a soft shadow instead of glass borders alone */
html[data-theme="light"] .price-card,
html[data-theme="light"] .step-card,
html[data-theme="light"] .city-chip,
html[data-theme="light"] .dpt-card-wrap,
html[data-theme="light"] .cta-inner {
  box-shadow: 0 12px 40px rgba(11, 12, 14, 0.06);
}
html[data-theme="light"] .price-card.featured {
  box-shadow: 0 30px 80px rgba(17, 109, 248, 0.18);
}
html[data-theme="light"] .pricing-glow { opacity: 0.4; }

/* kicker dot: no white glow on a light page */
html[data-theme="light"] .kicker::before {
  box-shadow: 0 0 10px 1px rgba(11, 12, 14, 0.25);
}

/* the white nav pill needs an edge on a light background */
html[data-theme="light"] .nav-menu-trigger,
html[data-theme="light"] .nav-side {
  border: 1px solid rgba(11, 12, 14, 0.12);
  box-shadow: 0 10px 28px rgba(11, 12, 14, 0.14);
}

/* hero glass chip */
html[data-theme="light"] .hero-eyebrow {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(11, 12, 14, 0.12);
}

/* icon buttons */
html[data-theme="light"] .icon-btn:hover {
  background: rgba(11, 12, 14, 0.08);
  color: var(--ink);
  border-color: rgba(11, 12, 14, 0.3);
}

/* testimonial mini avatars ring against the light bg */
html[data-theme="light"] .dpt-mini { border-color: #e6e8eb; }
html[data-theme="light"] .dpt-mini-heart { border-color: #e6e8eb; }

/* ---------- DetailPro widget surfaces in light mode ---------- */

/* FAQ section (dpfaq) — full-bleed dark section flips to page bg */
html[data-theme="light"] .dpfaq {
  background: var(--bg) !important;
  color: var(--ink) !important;
}
html[data-theme="light"] .dpfaq-title { color: var(--ink) !important; }
html[data-theme="light"] .dpfaq-cap { color: var(--faint) !important; }
html[data-theme="light"] .dpfaq-card,
html[data-theme="light"] .dpfaq-item,
html[data-theme="light"] .dpfaq-media,
html[data-theme="light"] .dpfaq-cta {
  background: var(--card) !important;
  border-color: var(--line) !important;
  box-shadow: 0 10px 32px rgba(11, 12, 14, 0.05);
}
html[data-theme="light"] .dpfaq-q { color: var(--ink) !important; }
html[data-theme="light"] .dpfaq-a,
html[data-theme="light"] .dpfaq-a * { color: var(--dim) !important; }
html[data-theme="light"] .dpfaq-plus::before,
html[data-theme="light"] .dpfaq-plus::after { background: var(--ink) !important; }
html[data-theme="light"] .dpfaq-plus span { background: var(--ink) !important; }
html[data-theme="light"] .dpfaq-cardhead { color: var(--ink) !important; }
html[data-theme="light"] .dpfaq-email,
html[data-theme="light"] .dpfaq-email * { color: var(--ink) !important; }
html[data-theme="light"] .dpfaq-h { color: var(--faint) !important; }
html[data-theme="light"] .dpfaq-cta,
html[data-theme="light"] .dpfaq-cta * {
  color: var(--ink) !important;
  border-color: var(--line-strong) !important;
}
html[data-theme="light"] .dpfaq-cta { background: rgba(11, 12, 14, 0.05) !important; }
html[data-theme="light"] .dpfaq-cta svg { stroke: var(--ink) !important; }
html[data-theme="light"] .dpfaq-hint { color: var(--faint) !important; }
html[data-theme="light"] .dpfaq-icon { color: var(--ink) !important; }

/* Coverage map module — themes via its own --dpb-* custom properties */
html[data-theme="light"] .uplex-coverage-module {
  --dpb-bg: #f4f5f7;
  --dpb-line: rgba(11, 12, 14, 0.14);
  --dpb-dim: rgba(11, 12, 14, 0.62);
  color: var(--dim);
}
html[data-theme="light"] .uplex-coverage-copy h2 { color: var(--ink) !important; }
html[data-theme="light"] .uplex-coverage-copy p { color: var(--dim) !important; }
html[data-theme="light"] .uplex-coverage-form {
  background: #fff !important;
  border-color: var(--line) !important;
  box-shadow: 0 10px 32px rgba(11, 12, 14, 0.07);
}
html[data-theme="light"] .uplex-coverage-form input { color: var(--ink) !important; }
html[data-theme="light"] .uplex-coverage-form input::placeholder { color: var(--faint) !important; }
html[data-theme="light"] .uplex-input-icon { color: var(--faint) !important; }
html[data-theme="light"] .uplex-result-card {
  background: #fff !important;
  border-color: var(--line) !important;
  color: var(--dim) !important;
  box-shadow: 0 10px 32px rgba(11, 12, 14, 0.06);
}
html[data-theme="light"] .uplex-result-card strong,
html[data-theme="light"] .uplex-result-card h1,
html[data-theme="light"] .uplex-result-card h2,
html[data-theme="light"] .uplex-result-card h3,
html[data-theme="light"] .uplex-result-card h4,
html[data-theme="light"] .uplex-result-label { color: var(--ink) !important; }
html[data-theme="light"] .uplex-result-body { color: var(--dim) !important; }
html[data-theme="light"] .uplex-result-icon { color: var(--ink) !important; }
html[data-theme="light"] .uplex-trust-item { color: var(--dim) !important; }
html[data-theme="light"] .uplex-trust-item strong { color: var(--ink) !important; }
html[data-theme="light"] .uplex-trust-icon { color: var(--ink) !important; }

/* ---------- smooth theme cross-fade (added briefly on toggle) ----------
   0.6s to match the hero scene + gradient-grade fade, so background,
   text, and the 3D scene all move at one tempo */
html.theme-anim,
html.theme-anim body,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition:
    background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ---------- contact modal (dpcm widget) in light mode ---------- */
html[data-theme="light"] .dpcm-overlay { background: rgba(233, 236, 240, 0.55) !important; }
html[data-theme="light"] .dpcm-panel {
  background: rgba(255, 255, 255, 0.97) !important;
  color: var(--ink) !important;
  border-color: rgba(11, 12, 14, 0.08) !important;
  box-shadow: -30px 0 90px rgba(11, 12, 14, 0.16) !important;
}
html[data-theme="light"] .dpcm-top h2 { color: var(--ink) !important; }
html[data-theme="light"] .dpcm-close {
  background: rgba(11, 12, 14, 0.06) !important;
  color: rgba(11, 12, 14, 0.7) !important;
}
html[data-theme="light"] .dpcm-close:hover {
  background: rgba(11, 12, 14, 0.12) !important;
  color: var(--ink) !important;
}
html[data-theme="light"] .dpcm-field label,
html[data-theme="light"] .dpcm-worklabel { color: rgba(11, 12, 14, 0.55) !important; }
html[data-theme="light"] .dpcm-hint { color: rgba(11, 12, 14, 0.4) !important; }
html[data-theme="light"] .dpcm-field input,
html[data-theme="light"] .dpcm-field textarea {
  background: rgba(11, 12, 14, 0.03) !important;
  border-color: rgba(11, 12, 14, 0.14) !important;
  color: var(--ink) !important;
}
html[data-theme="light"] .dpcm-field input::placeholder,
html[data-theme="light"] .dpcm-field textarea::placeholder { color: rgba(11, 12, 14, 0.35) !important; }
html[data-theme="light"] .dpcm-field input:focus,
html[data-theme="light"] .dpcm-field textarea:focus {
  border-color: rgba(11, 12, 14, 0.4) !important;
  background: #fff !important;
}
html[data-theme="light"] .dpcm-overlay .dpcm-cbx { color: rgba(11, 12, 14, 0.85) !important; }
html[data-theme="light"] .dpcm-cbx .box { border-color: rgba(11, 12, 14, 0.3) !important; }
html[data-theme="light"] .dpcm-cbx input:checked + .box {
  background: #0b0c0e !important;
  border-color: #0b0c0e !important;
}
html[data-theme="light"] .dpcm-cbx input:checked + .box::after { border-color: #fff !important; }
html[data-theme="light"] .dpcm-loading { color: rgba(11, 12, 14, 0.45) !important; }
html[data-theme="light"] .dpcm-submit { color: var(--ink) !important; }
html[data-theme="light"] .dpcm-arrow { background: #0b0c0e !important; color: #fff !important; }
html[data-theme="light"] .dpcm-bookwrap small { color: rgba(11, 12, 14, 0.45) !important; }
html[data-theme="light"] .dpcm-bookcall {
  color: var(--ink) !important;
  border-color: rgba(11, 12, 14, 0.25) !important;
}
html[data-theme="light"] .dpcm-bookcall:hover { background: rgba(11, 12, 14, 0.05) !important; }
html[data-theme="light"] .dpcm-success h2 { color: var(--ink) !important; }
html[data-theme="light"] .dpcm-success p { color: rgba(11, 12, 14, 0.6) !important; }
html[data-theme="light"] .dpcm-success .dpcm-check {
  color: #0b7a3d !important;
  border-color: rgba(11, 122, 61, 0.3) !important;
  background: rgba(11, 122, 61, 0.08) !important;
}

/* ---------- AI chat bubble in light mode ---------- */
html[data-theme="light"] #dp-bubble {
  background: #0b0c0e !important;
  box-shadow: 0 4px 22px rgba(11, 12, 14, 0.3) !important;
}
html[data-theme="light"] #dp-bubble:hover {
  box-shadow: 0 6px 28px rgba(11, 12, 14, 0.42) !important;
}
html[data-theme="light"] #dp-bubble svg { fill: #ffffff !important; }

/* ---------- coverage map in light mode: crisp framed card instead of
   the dark-page edge feathering (which reads as fog on a light bg) ---------- */
html[data-theme="light"] .uplex-map-shell {
  background: #0b0d10 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  border: 1px solid rgba(11, 12, 14, 0.14) !important;
  box-shadow: 0 24px 60px rgba(11, 12, 14, 0.2) !important;
}
html[data-theme="light"] #coverage-map { background: #0b0d10 !important; }
html[data-theme="light"] .uplex-map-gradient {
  background:
    radial-gradient(120% 122% at 50% 46%, transparent 62%, rgba(5, 6, 7, 0.4) 85%, rgba(5, 6, 7, 0.7) 100%),
    linear-gradient(rgba(5, 6, 7, 0.1), rgba(5, 6, 7, 0.1)) !important;
}

/* ============================================================
   LIGHT MODE — remaining pages' widgets
   (about .dpa, services .dps, gallery .dpgal, booking #dpb-root)
   ============================================================ */

/* ---------- about page widget (dpa) ---------- */
html[data-theme="light"] .dpa { background: var(--bg) !important; color: var(--ink) !important; }
html[data-theme="light"] .dpa-heading,
html[data-theme="light"] .dpa-owner-name,
html[data-theme="light"] .dpa-stat-value,
html[data-theme="light"] .dpa-value-title,
html[data-theme="light"] .dpa-why-eyebrow,
html[data-theme="light"] .dpa-why-heading,
html[data-theme="light"] .dpa-why-col-title,
html[data-theme="light"] .dpa-faqs-heading-a,
html[data-theme="light"] .dpa-faqs-support-title,
html[data-theme="light"] .dpa-faq-q { color: var(--ink) !important; }
html[data-theme="light"] .dpa-lead,
html[data-theme="light"] .dpa-owner-bio,
html[data-theme="light"] .dpa-stat-label,
html[data-theme="light"] .dpa-value-desc,
html[data-theme="light"] .dpa-why-subtitle,
html[data-theme="light"] .dpa-why-item,
html[data-theme="light"] .dpa-faqs-subtitle,
html[data-theme="light"] .dpa-faqs-support-text,
html[data-theme="light"] .dpa-faq-a p { color: var(--dim) !important; }
html[data-theme="light"] .dpa-faqs-heading-b { color: var(--faint) !important; }
html[data-theme="light"] .dpa-why-col.them .dpa-why-col-title,
html[data-theme="light"] .dpa-why-col.them .dpa-why-item { color: var(--faint) !important; }
html[data-theme="light"] .dpa-eyebrow,
html[data-theme="light"] .dpa-faqs-support {
  background: rgba(11, 12, 14, 0.04) !important;
  border-color: var(--line) !important;
}
html[data-theme="light"] .dpa-owner,
html[data-theme="light"] .dpa-stat,
html[data-theme="light"] .dpa-value,
html[data-theme="light"] .dpa-why-card,
html[data-theme="light"] .dpa-faqs-card {
  background: var(--card) !important;
  border-color: var(--line) !important;
  box-shadow: 0 10px 32px rgba(11, 12, 14, 0.05);
}
html[data-theme="light"] .dpa-value-bullet,
html[data-theme="light"] .dpa-faq-icon { background: rgba(11, 12, 14, 0.06) !important; color: var(--ink) !important; }
html[data-theme="light"] .dpa-value-bullet svg { color: var(--ink) !important; }
html[data-theme="light"] .dpa-why-col.them .dpa-why-bullet {
  background: rgba(11, 12, 14, 0.07) !important;
  color: var(--faint) !important;
}
html[data-theme="light"] .dpa-faqs-support-btn,
html[data-theme="light"] .dpa-cta a { background: #0b0c0e !important; color: #fff !important; }
html[data-theme="light"] .dpa-faqs-support-btn:hover,
html[data-theme="light"] .dpa-cta a:hover { box-shadow: 0 12px 26px rgba(11, 12, 14, 0.3) !important; }

/* ---------- services page widget (dps) ---------- */
html[data-theme="light"] .dps { background: var(--bg) !important; color: var(--ink) !important; }
html[data-theme="light"] .dps-hero-heading,
html[data-theme="light"] .dps-intro-heading,
html[data-theme="light"] .dps-stat-value,
html[data-theme="light"] .dps-card-title,
html[data-theme="light"] .dps-card-price,
html[data-theme="light"] .dps-banner-heading { color: var(--ink) !important; }
html[data-theme="light"] .dps-hero-subtitle,
html[data-theme="light"] .dps-intro-paragraph,
html[data-theme="light"] .dps-stat-label,
html[data-theme="light"] .dps-card-desc,
html[data-theme="light"] .dps-card-arrow,
html[data-theme="light"] .dps-banner-text { color: var(--dim) !important; }
html[data-theme="light"] .dps-empty { color: var(--faint) !important; }
html[data-theme="light"] .dps-crumbs { color: var(--faint) !important; border-color: var(--line) !important; }
html[data-theme="light"] .dps-crumbs a { color: var(--dim) !important; }
html[data-theme="light"] .dps-crumbs a:hover,
html[data-theme="light"] .dps-card:hover .dps-card-arrow { color: var(--ink) !important; }
html[data-theme="light"] .dps-crumbs span.sep { color: var(--faint) !important; }
html[data-theme="light"] .dps-eyebrow {
  background: rgba(11, 12, 14, 0.04) !important;
  border-color: var(--line) !important;
}
html[data-theme="light"] .dps-card {
  background: var(--card) !important;
  border-color: var(--line) !important;
  box-shadow: 0 10px 32px rgba(11, 12, 14, 0.05);
}
html[data-theme="light"] .dps-card:hover {
  background: #fff !important;
  border-color: var(--line-strong) !important;
}
html[data-theme="light"] .dps-stat-img { background-color: #e9ebee !important; }
html[data-theme="light"] .dps-stat-avatar { border-color: #fff !important; }
html[data-theme="light"] .dps-stat-plus { border-color: #fff !important; }
html[data-theme="light"] .dps-hero-cta,
html[data-theme="light"] .dps-banner-cta { background: #0b0c0e !important; color: #fff !important; }
html[data-theme="light"] .dps-hero-cta:hover,
html[data-theme="light"] .dps-banner-cta:hover { box-shadow: 0 12px 26px rgba(11, 12, 14, 0.3) !important; }

/* ---------- gallery page widget (dpgal) — lightbox stays dark on purpose ---------- */
html[data-theme="light"] .dpgal { background: var(--bg) !important; color: var(--ink) !important; }
html[data-theme="light"] .dpgal-empty { color: var(--faint) !important; }
html[data-theme="light"] .dpgal-tile { border-color: var(--line) !important; }
html[data-theme="light"] .dpgal-tile:hover {
  border-color: var(--line-strong) !important;
  box-shadow: 0 18px 40px rgba(11, 12, 14, 0.16) !important;
}
html[data-theme="light"] .dpgal-tile-skel {
  background: linear-gradient(110deg, #e9ebee 30%, #f4f5f7 50%, #e9ebee 70%) !important;
}

/* ---------- booking widget (#dpb-root): flip its own vars + surfaces ---------- */
html[data-theme="light"] #dpb-root {
  --text: #0b0c0e;
  --muted: rgba(11, 12, 14, 0.6);
  --soft: rgba(11, 12, 14, 0.42);
  --line: rgba(11, 12, 14, 0.12);
  --line2: rgba(11, 12, 14, 0.22);
}
html[data-theme="light"] #dpb-root .dpb-head h2,
html[data-theme="light"] #dpb-root .dpb-side-title,
html[data-theme="light"] #dpb-root .dpb-step-name,
html[data-theme="light"] #dpb-root .dpb-title h1,
html[data-theme="light"] #dpb-root .dpb-service,
html[data-theme="light"] #dpb-root .dpb-service h3,
html[data-theme="light"] #dpb-root .dpb-price,
html[data-theme="light"] #dpb-root .dpb-size,
html[data-theme="light"] #dpb-root .dpb-size h3,
html[data-theme="light"] #dpb-root .dpb-addon h4,
html[data-theme="light"] #dpb-root .dpb-cal-title,
html[data-theme="light"] #dpb-root .dpb-time-head h3,
html[data-theme="light"] #dpb-root .dpb-mini h4,
html[data-theme="light"] #dpb-root .dpb-confirm h3,
html[data-theme="light"] #dpb-root .dpb-summary-main h4,
html[data-theme="light"] #dpb-root .dpb-row strong,
html[data-theme="light"] #dpb-root .dpb-paybox h4,
html[data-theme="light"] #dpb-root .dpb-metric strong,
html[data-theme="light"] #dpb-root .dpb-metric p,
html[data-theme="light"] #dpb-root .dpb-success h3 { color: var(--ink) !important; }
html[data-theme="light"] #dpb-root .dpb-shell {
  background: #fff !important;
  box-shadow: 0 24px 60px rgba(11, 12, 14, 0.08);
}
html[data-theme="light"] #dpb-root .dpb-side { background: rgba(11, 12, 14, 0.025) !important; }
html[data-theme="light"] #dpb-root .dpb-side-mark { background: linear-gradient(145deg, #e6e8eb, #f4f5f7) !important; }
html[data-theme="light"] #dpb-root .dpb-step:after { background: rgba(11, 12, 14, 0.14) !important; }
html[data-theme="light"] #dpb-root .dpb-dot { background: #eef0f2 !important; }
html[data-theme="light"] #dpb-root .dpb-step.active .dpb-dot {
  background: #0b0c0e !important;
  color: #fff !important;
  box-shadow: 0 0 24px rgba(11, 12, 14, 0.25) !important;
}
html[data-theme="light"] #dpb-root .dpb-step.done .dpb-dot { background: #d7dade !important; color: #0b0c0e !important; }
html[data-theme="light"] #dpb-root .dpb-chip { background: #eef0f2 !important; color: var(--ink) !important; }
html[data-theme="light"] #dpb-root .dpb-card {
  background: #fbfbfc !important;
  box-shadow: 0 14px 30px rgba(11, 12, 14, 0.06) !important;
}
html[data-theme="light"] #dpb-root .dpb-card:hover { border-color: rgba(11, 12, 14, 0.28) !important; }
html[data-theme="light"] #dpb-root .dpb-service.selected {
  border-color: #0b0c0e !important;
  box-shadow: 0 0 0 2px rgba(11, 12, 14, 0.65), 0 22px 46px rgba(11, 12, 14, 0.12) !important;
}
html[data-theme="light"] #dpb-root .dpb-size.selected {
  border-color: #0b0c0e !important;
  box-shadow: 0 0 0 2px rgba(11, 12, 14, 0.65) !important;
}
html[data-theme="light"] #dpb-root .dpb-icon { background: #eef0f2 !important; }
html[data-theme="light"] #dpb-root .dpb-badge { background: #eef0f2 !important; color: var(--ink) !important; }
html[data-theme="light"] #dpb-root .dpb-select { background: #0b0c0e !important; color: #fff !important; }
html[data-theme="light"] #dpb-root .selected .dpb-select { background: #0b0c0e !important; color: #fff !important; }
html[data-theme="light"] #dpb-root .dpb-check,
html[data-theme="light"] #dpb-root .selected .dpb-box { background: #0b0c0e !important; color: #fff !important; }
html[data-theme="light"] #dpb-root .dpb-addon { background: #fbfbfc !important; color: var(--ink) !important; }
html[data-theme="light"] #dpb-root .dpb-addon.selected { border-color: #0b0c0e !important; }
html[data-theme="light"] #dpb-root .dpb-field textarea,
html[data-theme="light"] #dpb-root .dpb-tip-custom {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: rgba(11, 12, 14, 0.18) !important;
}
html[data-theme="light"] #dpb-root .dpb-field textarea:focus,
html[data-theme="light"] #dpb-root .dpb-tip-custom:focus {
  border-color: #0b0c0e !important;
  box-shadow: 0 0 0 4px rgba(11, 12, 14, 0.08) !important;
}
html[data-theme="light"] #dpb-root .dpb-panel {
  background: #fbfbfc !important;
  border-color: var(--line) !important;
  box-shadow: 0 14px 32px rgba(11, 12, 14, 0.07) !important;
}
html[data-theme="light"] #dpb-root .dpb-iconbtn { background: #fff !important; color: var(--ink) !important; }
html[data-theme="light"] #dpb-root .dpb-day { color: var(--ink) !important; }
html[data-theme="light"] #dpb-root .dpb-day.outside { color: rgba(11, 12, 14, 0.25) !important; }
html[data-theme="light"] #dpb-root .dpb-day.disabled { color: rgba(11, 12, 14, 0.2) !important; }
html[data-theme="light"] #dpb-root .dpb-day:hover:not(.disabled) { background: rgba(11, 12, 14, 0.06) !important; }
html[data-theme="light"] #dpb-root .dpb-day.selected { background: #0b0c0e !important; color: #fff !important; }
html[data-theme="light"] #dpb-root .dpb-legend i { background: #0b0c0e !important; }
html[data-theme="light"] #dpb-root .dpb-legend i.open { background: #c9cdd2 !important; }
html[data-theme="light"] #dpb-root .dpb-slot { background: #fff !important; color: var(--ink) !important; }
html[data-theme="light"] #dpb-root .dpb-slot.selected { background: #0b0c0e !important; color: #fff !important; }
html[data-theme="light"] #dpb-root .dpb-avatar { background: #e8eaed !important; color: var(--ink) !important; }
html[data-theme="light"] #dpb-root .dpb-info { color: var(--ink) !important; }
html[data-theme="light"] #dpb-root .dpb-pill,
html[data-theme="light"] #dpb-root .dpb-paychoice {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: rgba(11, 12, 14, 0.2) !important;
}
html[data-theme="light"] #dpb-root .dpb-pill.selected {
  background: #0b0c0e !important;
  color: #fff !important;
  border-color: #0b0c0e !important;
}
html[data-theme="light"] #dpb-root .dpb-paychoice.selected {
  border-color: #0b0c0e !important;
  background: #eef0f2 !important;
}
html[data-theme="light"] #dpb-root .dpb-pill:hover:not(.selected),
html[data-theme="light"] #dpb-root .dpb-paychoice:hover:not(.selected) { border-color: rgba(11, 12, 14, 0.45) !important; }
html[data-theme="light"] #dpb-root .dpb-bottom { background: #f0f1f3 !important; }
html[data-theme="light"] #dpb-root .dpb-btn-dark {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: rgba(11, 12, 14, 0.2) !important;
}
html[data-theme="light"] #dpb-root .dpb-btn-light { background: #0b0c0e !important; color: #fff !important; }
html[data-theme="light"] #dpb-root .dpb-success-icon { background: #0b0c0e !important; color: #fff !important; }
html[data-theme="light"] #dpb-root .dpb-error {
  border-color: rgba(200, 40, 40, 0.3) !important;
  background: rgba(200, 40, 40, 0.06) !important;
  color: #b02a2a !important;
}

/* ---------- inverted nav cluster in light mode: pill goes black, matching
     the theme toggle and chat bubble ---------- */
html[data-theme="light"] .nav-menu-trigger {
  background: #0b0c0e;
  border: 0;
  box-shadow: 0 10px 28px rgba(11, 12, 14, 0.35);
}
html[data-theme="light"] .menu-text { color: #fff; }
html[data-theme="light"] .nav-menu-link { color: #fff; }
html[data-theme="light"] .nav-side {
  background: #0b0c0e;
  color: #fff;
  border: 0;
  box-shadow: 0 10px 26px rgba(11, 12, 14, 0.3);
}
/* the mask that hides the side buttons behind the pill must track the pill */
.dp-pill-mask { background: #fff; }
html[data-theme="light"] .dp-pill-mask { background: #0b0c0e; }
