/* DoorDumb — Tesla-reference UX system */
:root {
  --dd-blue: #3e6ae1;
  --dd-blue-hover: #3457b1;
  --dd-black: #171a20;
  --dd-text: #393c41;
  --dd-muted: #5c5e62;
  --dd-light: #f4f4f4;
  --dd-white: #ffffff;
  --dd-border: #e2e3e3;
  --dd-nav-h: 56px;
  --dd-ribbon-h: 0px;
  --dd-radius-btn: 4px;
  --dd-radius-card: 16px;
  --dd-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dd-font: "Gotham", "Universal Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@font-face {
  font-family: "Gotham";
  src: local("Gotham"), local("Gotham Book"), local("Montserrat");
  font-weight: 400;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

.hero-video-bg video,
.feature-video {
  max-width: none;
}

body {
  font-family: var(--dd-font);
  color: var(--dd-black);
  background: var(--dd-white);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: var(--dd-ribbon-h, 0px) 0 auto;
  z-index: 1000;
  height: var(--dd-nav-h);
  transition: background 0.25s var(--dd-ease), backdrop-filter 0.25s var(--dd-ease);
}

.site-header.is-scrolled,
.site-header.menu-active {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.site-header.is-light .nav-link,
.site-header.is-light .logo,
.site-header.is-light .icon-btn,
.site-header.is-light .lang-switch {
  color: var(--dd-black);
}

.site-header:not(.is-light):not(.menu-active) .nav-link,
.site-header:not(.is-light):not(.menu-active) .logo,
.site-header:not(.is-light):not(.menu-active) .icon-btn,
.site-header:not(.is-light):not(.menu-active) .lang-switch {
  color: var(--dd-white);
}

/* When menu opens, header goes light — keep lang switch readable */
.site-header.menu-active .lang-switch {
  color: var(--dd-black);
}

.nav-inner {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  justify-self: start;
  z-index: 2;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: center;
}

.nav-link {
  position: relative;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: background 0.2s var(--dd-ease);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-expanded="true"] {
  background: rgba(0, 0, 0, 0.06);
}

.site-header:not(.is-light):not(.menu-active) .nav-link:hover,
.site-header:not(.is-light):not(.menu-active) .nav-link[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
  z-index: 2;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  color: inherit;
  transition: color 0.2s var(--dd-ease);
}

.lang-link {
  opacity: 0.55;
  text-decoration: none;
  color: inherit;
  padding: 4px 2px;
}

.lang-link:hover,
.lang-link.is-active {
  opacity: 1;
}

.lang-link.is-active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-sep {
  opacity: 0.35;
}

.mobile-drawer .lang-switch {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--dd-black);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transition: background 0.2s var(--dd-ease);
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.site-header:not(.is-light):not(.menu-active) .icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.menu-toggle {
  display: none;
}

/* ——— Mega menu ——— */
.mega-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--dd-ease);
  z-index: 900;
}

.mega-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mega-panel {
  position: fixed;
  top: calc(var(--dd-nav-h) + var(--dd-ribbon-h, 0px));
  left: 0;
  right: 0;
  background: var(--dd-light);
  border-radius: 0 0 20px 20px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--dd-ease), transform 0.25s var(--dd-ease);
  z-index: 950;
  max-height: calc(100svh - var(--dd-nav-h) - 24px);
  max-height: calc(100dvh - var(--dd-nav-h) - 24px);
  overflow: auto;
}

.mega-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 48px 48px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}

.mega-card {
  text-align: center;
}

.mega-card img {
  height: 92px;
  width: auto;
  margin: 0 auto 12px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
  transition: transform 0.25s var(--dd-ease);
}

.mega-card:hover img {
  transform: translateY(-4px);
}

.mega-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dd-black);
}

.mega-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  color: var(--dd-muted);
}

.mega-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mega-links a:hover {
  color: var(--dd-black);
}

.mega-side {
  border-left: 1px solid var(--dd-border);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.mega-side a {
  font-size: 14px;
  font-weight: 500;
  color: var(--dd-black);
}

.mega-side a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 40px;
  padding: 0 24px;
  border-radius: var(--dd-radius-btn);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s var(--dd-ease), color 0.2s var(--dd-ease), transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--dd-blue);
  color: var(--dd-white);
}

.btn-primary:hover {
  background: var(--dd-blue-hover);
}

.btn-secondary {
  background: var(--dd-white);
  color: var(--dd-black);
}

.btn-secondary:hover {
  background: #f2f2f2;
}

.btn-dark {
  background: var(--dd-black);
  color: var(--dd-white);
}

.btn-dark:hover {
  background: #222;
}

.btn-light-outline {
  background: var(--dd-white);
  color: var(--dd-black);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.btn-light-outline:hover {
  background: #f7f7f7;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  height: 100svh;
  height: 100dvh;
  min-height: min(100svh, 640px);
  min-height: min(100dvh, 640px);
  overflow: hidden;
  background: #0a0a0a url("../assets/hero-poster-wide.jpg") center / cover no-repeat;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.12) 42%,
    rgba(0, 0, 0, 0.55) 78%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-bg video {
    display: none;
  }
  .hero {
    background: #0a0a0a url("../assets/hero-poster-wide.jpg") center / cover no-repeat;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: calc(var(--dd-nav-h) + var(--dd-ribbon-h, 0px) + 24px) 24px max(48px, env(safe-area-inset-bottom, 0px) + 40px);
  color: var(--dd-white);
}

.hero-sub {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 22px;
}

.hero-sub a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Color product slider (after feature video) ——— */
.color-slider {
  position: relative;
  height: 100svh;
  height: 100dvh;
  min-height: min(100svh, 560px);
  min-height: min(100dvh, 560px);
  overflow: hidden;
  background: #fff;
  outline: none;
}

.color-slides {
  position: absolute;
  inset: 0;
}

.color-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--dd-ease);
  pointer-events: none;
}

.color-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.color-slide-media {
  position: absolute;
  inset: 0;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: min(52vw, 440px);
}

.color-slide-media::after {
  content: none;
}

.color-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: calc(var(--dd-nav-h) + var(--dd-ribbon-h, 0px) + 24px) 24px max(48px, env(safe-area-inset-bottom, 0px) + 40px);
  color: var(--dd-black);
}

.color-slide-finish {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  opacity: 0.72;
}

.color-slide-content h2 {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.color-slide-sub {
  font-size: 16px;
  margin-bottom: 22px;
  color: var(--dd-muted);
}

.color-slide-sub a {
  color: var(--dd-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.color-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--dd-black);
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  transition: background 0.2s;
}

.color-nav:hover {
  background: rgba(0, 0, 0, 0.12);
}

.color-nav.prev {
  left: 20px;
}

.color-nav.next {
  right: 20px;
}

.hero-dots,
.hero-dot {
  display: none !important;
}

/* ——— Product card carousel ——— */
.section-pad {
  padding: 28px 0 48px;
  background: var(--dd-white);
}

.section-title-wrap {
  max-width: 1400px;
  margin: 0 auto 20px;
  padding: 0 28px;
}

.section-title-wrap h2 {
  font-size: 28px;
  font-weight: 600;
}

.card-rail-wrap {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
}

.card-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 4px 8px;
  outline: none;
}

.card-rail::-webkit-scrollbar {
  display: none;
}

.product-card {
  position: relative;
  display: block;
  flex: 0 0 min(78vw, 980px);
  height: min(78vh, 640px);
  border-radius: var(--dd-radius-card);
  overflow: hidden;
  scroll-snap-align: start;
  color: var(--dd-black);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  text-decoration: none;
}

.product-card .card-bg {
  position: absolute;
  inset: 0;
  background-color: #fff;
  background-size: 92% auto;
  background-repeat: no-repeat;
  background-position: center center;
  transition: transform 0.6s var(--dd-ease);
}

.product-card:hover .card-bg {
  transform: scale(1.04);
}

.product-card .card-bg::after {
  content: none;
}

.card-top,
.card-bottom {
  display: none;
}

.rail-navs {
  position: absolute;
  inset: 0 28px 0 28px;
  pointer-events: none;
  z-index: 3;
}

.rail-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dd-black);
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  pointer-events: auto;
  transition: background 0.2s var(--dd-ease), opacity 0.2s var(--dd-ease), transform 0.15s;
}

.rail-nav:hover:not(:disabled) {
  background: #fff;
}

.rail-nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}

.rail-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.rail-nav-prev {
  left: 12px;
}

.rail-nav-next {
  right: 12px;
}

.rail-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.rail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c6c6c6;
  transition: background 0.2s, transform 0.2s;
}

.rail-dot:hover {
  background: #9a9a9a;
}

.rail-dot.is-active {
  background: #393c41;
  transform: scale(1.15);
}

/* ——— Feature showcase ——— */
.feature-section {
  padding: 12px 28px 48px;
  background: var(--dd-white);
}

.feature-card {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--dd-light);
  border-radius: var(--dd-radius-card);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  padding: 48px;
  align-items: center;
}

.feature-copy h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  color: #1d2939;
  margin-bottom: 10px;
}

.feature-copy h2 span {
  color: var(--dd-black);
  font-weight: 600;
}

.feature-copy .lede {
  color: var(--dd-muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.feature-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
}

.stat strong {
  display: block;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--dd-muted);
}

.feature-media figure {
  margin: 0;
}

.feature-media img,
.feature-media .feature-video {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #1a1a1a;
  display: block;
}

.feature-media .feature-video {
  pointer-events: none;
}

.feature-media figcaption {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--dd-muted);
}

/* ——— Full bleed panels ——— */
.panel {
  position: relative;
  min-height: min(100svh, 640px);
  min-height: min(100dvh, 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: calc(var(--dd-nav-h) + 40px) 24px 80px;
  background-size: min(42vw, 380px);
  background-repeat: no-repeat;
  background-position: center 58%;
  background-color: #050505;
}

.panel.panel-reveal {
  align-items: flex-end;
  justify-content: flex-end;
  text-align: left;
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  padding: calc(var(--dd-nav-h) + 48px) clamp(24px, 6vw, 72px) max(64px, env(safe-area-inset-bottom, 0px) + 48px);
}

.panel.panel-reveal::before {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.78) 72%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      transparent 35%,
      rgba(0, 0, 0, 0.55) 100%
    );
}

.panel.panel-reveal .lede {
  max-width: 34rem;
}

.panel.panel-reveal .btn-row {
  justify-content: flex-start;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel h2 {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 600;
  margin-bottom: 8px;
}

.panel .lede {
  font-size: 16px;
  margin-bottom: 22px;
  max-width: 520px;
}

.panel.light {
  color: var(--dd-black);
}

.panel.light::before {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.2) 100%
  );
}

/* ——— Method strip ——— */
.method {
  padding: 80px 28px;
  background: var(--dd-white);
  text-align: center;
}

.method h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
}

.method > p {
  color: var(--dd-muted);
  margin-bottom: 48px;
}

.method-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}

.method-item {
  padding: 8px;
}

.method-item .method-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  background: #f3eee6;
  margin-bottom: 16px;
}

.method-item .step {
  font-size: 13px;
  color: var(--dd-blue);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.method-item h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.method-item p {
  color: var(--dd-muted);
  font-size: 15px;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--dd-white);
  border-top: 1px solid var(--dd-border);
  padding: 48px 28px 56px;
  color: var(--dd-muted);
  font-size: 12px;
}

.footer-order {
  max-width: 920px;
  margin: 0 auto 36px;
  text-align: center;
}

.footer-order-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--dd-black);
  margin-bottom: 8px;
}

.footer-order-lede {
  font-size: 14px;
  color: var(--dd-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.footer-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.footer-msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.15s, opacity 0.15s;
}

.footer-msg-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.footer-msg-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-msg-whatsapp {
  background: #25d366;
  color: #fff;
}

.footer-msg-sms {
  background: #171a20;
}

.footer-msg-imessage {
  background: #34c759;
  color: #fff;
}

.footer-msg-call {
  background: #3e6ae1;
}

.footer-trust {
  max-width: 1000px;
  margin: 0 auto 36px;
  padding: 22px 16px;
  border-top: 1px solid var(--dd-border);
  border-bottom: 1px solid var(--dd-border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 12px;
  justify-content: center;
}

.footer-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 118px;
  padding: 12px 14px;
  border: 1px solid var(--dd-border);
  border-radius: 10px;
  background: var(--dd-light);
  color: var(--dd-muted);
  font-size: 11px;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.footer-trust-item:hover {
  border-color: var(--dd-blue);
  color: var(--dd-black);
  box-shadow: 0 0 0 2px rgba(62, 106, 225, 0.12);
}

.footer-trust-logo {
  display: block;
  width: auto;
  height: 28px;
  object-fit: contain;
}

.footer-trust-logo-sm {
  height: 20px;
}

.footer-trust-pay {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 160px;
}

.footer-trust-pay span {
  flex-basis: 100%;
}

.footer-trust-mark {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--dd-black);
  text-transform: uppercase;
}

/* Top promo ribbon */
.promo-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: var(--dd-ribbon-h, 36px);
  overflow: hidden;
  background: var(--ribbon-bg, #171a20);
  color: #fff;
  display: flex;
  align-items: center;
}

.promo-ribbon-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: ribbon-marquee 32s linear infinite;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.promo-ribbon-track span {
  padding-right: 48px;
}

@keyframes ribbon-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Timed offer popup */
.offer-popup {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
}

.offer-popup[hidden] {
  display: none !important;
}

.offer-popup-card {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.offer-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  border-radius: 999px;
  color: #5c5e62;
}

.offer-popup-close:hover {
  background: #f4f4f4;
}

.offer-popup-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dd-blue);
  margin-bottom: 8px;
}

.offer-popup-card h2 {
  font-size: 24px;
  color: var(--dd-black);
  margin-bottom: 10px;
  line-height: 1.25;
}

.offer-popup-body {
  font-size: 14px;
  color: var(--dd-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.offer-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.offer-popup-actions .btn {
  min-width: 0;
  flex: 1;
}

/* Problem proof */
.proof-section {
  padding: 72px 28px;
  background: #f7f7f7;
}

.proof-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.proof-section .section-title-wrap {
  text-align: center;
  margin-bottom: 36px;
}

.proof-section .section-title-wrap h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
}

.proof-section .section-title-wrap p {
  color: var(--dd-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.5;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.proof-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--dd-border);
}

.proof-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.proof-bad .proof-label {
  color: #b42318;
}

.proof-good .proof-label {
  color: #0a7a32;
}

.proof-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.proof-card p:not(.proof-label) {
  color: var(--dd-muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.proof-card img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* Homepage reviews */
.reviews-home {
  padding: 72px 28px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.reviews-home .section-title-wrap {
  text-align: center;
  margin-bottom: 32px;
}

.reviews-home .section-title-wrap h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
}

.reviews-home .section-title-wrap p {
  color: var(--dd-muted);
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-card {
  background: var(--dd-light);
  border: 1px solid var(--dd-border);
  border-radius: 14px;
  padding: 22px 20px;
}

.review-stars {
  color: #c2410c;
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 10px;
}

.review-card p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
  color: var(--dd-black);
}

.review-card span {
  font-size: 12px;
  color: var(--dd-muted);
}

.shop-review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.shop-review-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--dd-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* WhatsApp sticky */
.wa-sticky {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  transition: transform 0.15s var(--dd-ease), box-shadow 0.15s;
}

.wa-sticky:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  color: #fff;
}

body.dd-modal-open .wa-sticky,
body.menu-open .wa-sticky {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.wa-sticky svg {
  flex-shrink: 0;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.icon-btn:focus-visible {
  outline: 2px solid var(--dd-blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .promo-ribbon-track {
    animation: none !important;
  }
}

.lead-form .field {
  display: block;
  margin-bottom: 10px;
}

.lead-form .field span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--dd-muted);
}

.lead-form input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--dd-border);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
}

.lead-form-msg {
  font-size: 13px;
  margin: 0 0 10px;
}

.lead-form-msg.is-error {
  color: #b42318;
}

.lead-form-msg.is-ok {
  color: #0a7a32;
}

@media (max-width: 900px) {
  .proof-grid,
  .review-cards {
    grid-template-columns: 1fr;
  }

  .wa-sticky span {
    display: none;
  }

  .wa-sticky {
    padding: 14px;
    border-radius: 999px;
  }
}

/* Offset page content for ribbon + nav */
body {
  padding-top: 0;
}

.hero,
.page-main,
.color-slider {
  scroll-margin-top: calc(var(--dd-nav-h) + var(--dd-ribbon-h, 0px));
}

main#top > .hero {
  min-height: calc(100svh - var(--dd-ribbon-h, 0px));
  min-height: calc(100dvh - var(--dd-ribbon-h, 0px));
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-inner a:hover {
  color: var(--dd-black);
  text-decoration: underline;
}

.footer-legal {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.proof-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 16px;
  display: block;
}

/* ——— Mobile ——— */
@media (max-width: 980px) {
  .nav-inner {
    padding: 0 14px;
    gap: 8px;
  }

  .logo {
    font-size: 15px;
    letter-spacing: 0.12em;
  }

  .nav-center {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mega-inner {
    grid-template-columns: 1fr;
    padding: 20px 16px 28px;
  }

  .mega-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
  }

  .mega-card img {
    max-height: 88px;
    width: auto;
    margin: 0 auto 8px;
  }

  .mega-side {
    border-left: none;
    border-top: 1px solid var(--dd-border);
    padding-left: 0;
    padding-top: 24px;
  }

  .feature-card {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 24px;
  }

  .feature-media img {
    object-fit: contain;
    aspect-ratio: 1 / 1;
    background: #0a0a0a;
    padding: 16px;
  }

  .feature-media .feature-video {
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .method-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .product-card {
    flex: 0 0 min(90vw, 520px);
    height: min(68vh, 540px);
  }

  .product-card .card-bg {
    background-size: 96% auto;
    background-position: center center;
  }

  .card-rail-wrap {
    padding: 0 16px;
  }

  .rail-navs {
    inset: 0 8px;
  }

  .rail-nav {
    width: 36px;
    height: 36px;
  }

  .rail-nav-prev {
    left: 4px;
  }

  .rail-nav-next {
    right: 4px;
  }

  .color-nav {
    display: grid;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.85);
  }

  .color-nav.prev {
    left: 10px;
  }

  .color-nav.next {
    right: 10px;
  }

  .color-slide-media {
    background-size: min(78vw, 320px);
    background-position: center 40%;
  }

  .color-slide-content,
  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: max(36px, env(safe-area-inset-bottom, 0px) + 28px);
  }

  .color-slide-content h2 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .hero-sub,
  .color-slide-sub {
    font-size: 15px;
    max-width: 22rem;
  }

  .color-slider {
    min-height: min(72svh, 520px);
    min-height: min(72dvh, 520px);
  }

  .panel {
    min-height: min(72svh, 520px);
    min-height: min(72dvh, 520px);
    background-size: min(70vw, 260px);
    padding: calc(var(--dd-nav-h) + 28px) 20px 56px;
  }

  .panel.panel-reveal {
    background-size: cover;
    background-position: left 35% center;
    align-items: stretch;
    padding: calc(var(--dd-nav-h) + 36px) 20px max(48px, env(safe-area-inset-bottom, 0px) + 36px);
  }

  .panel.panel-reveal .btn-row {
    max-width: 100%;
  }

  .section-pad,
  .method,
  .proof-section,
  .feature-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-title-wrap {
    padding: 0 4px;
  }

  .wa-sticky {
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    right: 12px;
  }
}

@media (max-width: 600px) {
  .btn {
    min-width: 0;
    flex: 1 1 calc(50% - 8px);
  }

  .btn-row {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }

  .hero .btn-row {
    max-width: 100%;
  }

  .feature-stats {
    flex-direction: column;
    gap: 20px;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    flex-basis: 90vw;
    height: min(64vh, 500px);
  }

  .product-card .card-bg {
    background-size: 98% auto;
    background-position: center center;
  }

  .offer-popup {
    padding: 12px;
    align-items: end;
  }

  .offer-popup-card {
    width: 100%;
    max-height: min(88svh, 560px);
    overflow-y: auto;
    padding: 22px 18px 18px;
  }

  .offer-popup-card h2 {
    font-size: 20px;
  }

  .offer-popup-actions {
    flex-direction: column;
  }

  .offer-popup-actions .btn {
    width: 100%;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .hero,
  .color-slider {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .color-slide-media {
    background-size: min(34vh, 220px);
    background-position: center 42%;
  }

  .hero-content,
  .color-slide-content {
    justify-content: center;
    padding-bottom: 28px;
  }
}

/* Mobile drawer for nav when toggle used */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--dd-white);
  z-index: 1300;
  padding: calc(72px + var(--dd-ribbon-h, 0px)) 24px 32px;
  transform: translateX(100%);
  transition: transform 0.3s var(--dd-ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--dd-border);
}

.mobile-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--dd-black);
}
