/* ═══════════════════════════════════════════════════════════
   Woofi — style.css
   Light scheme · Apple-esque · Bricolage Grotesque + Manrope
   Colors derived from product's deep navy (#1B3975)
   ═══════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────── */
:root {
  /* Brand palette — derived from product navy */
  --navy:    #1B3975;
  --navy-dk: #0F2250;
  --navy-lt: #2B4F9E;
  --accent:  #4B6FE4;
  --bio:     #00C97A;   /* green from the PPG sensors */
  --bio-lt:  #D4F5E7;

  /* Neutrals — pure white so product frames blend seamlessly */
  --bg:      #FFFFFF;
  --surface: #FFFFFF;
  --surface2:#F4F4F6;
  --border:  rgba(27, 57, 117, 0.12);
  --border2: rgba(27, 57, 117, 0.07);

  /* Text */
  --text:    #0B1120;
  --text-2:  #4A546A;
  --text-3:  #9AA3B4;

  /* Shadows — color-tinted, layered */
  --shadow-sm:  0 1px 3px rgba(11,17,32,0.05), 0 1px 2px rgba(27,57,117,0.04);
  --shadow-md:  0 4px 20px rgba(27,57,117,0.07), 0 2px 8px rgba(11,17,32,0.04);
  --shadow-lg:  0 16px 48px rgba(27,57,117,0.10), 0 6px 20px rgba(11,17,32,0.05);
  --shadow-xl:  0 32px 80px rgba(27,57,117,0.12), 0 12px 32px rgba(11,17,32,0.07);

  /* Spacing tokens */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Radii */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 100px;

  /* Typography */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
canvas { display: block; }
ul { list-style: none; }

/* ── Loader ─────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-content { text-align: center; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
  margin-bottom: 2.5rem;
}
.loader-bar {
  width: 220px;
  height: 1.5px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 1rem;
}
.loader-fill {
  height: 100%;
  background: var(--navy);
  border-radius: 2px;
  width: 0%;
  transition: width 0.08s linear;
}
.loader-pct {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

/* ── Navigation ─────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 1.25rem 2.5rem;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#nav.scrolled {
  background: rgba(247, 246, 243, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav-logo {
  margin-right: auto;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
  height: 36px;
  overflow: hidden;
}
.nav-logo:hover { opacity: 0.7; }
.nav-logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.nav-logo-img {
  height: 90px;
  width: auto;
  display: block;
  /* SVG bg is transparent; convert gray marks → brand navy #1B3975 */
  filter: brightness(0) saturate(100%)
          invert(17%) sepia(58%) saturate(1350%)
          hue-rotate(204deg) brightness(90%) contrast(98%);
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(27,57,117,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,57,117,0.35);
}
.nav-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.nav-cta:active { transform: scale(0.97); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.8125rem 1.625rem;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.btn:active { transform: scale(0.97) !important; }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 12px rgba(27,57,117,0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,57,117,0.36);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(27,57,117,0.28);
}
.btn-outline:hover {
  border-color: var(--navy);
  background: rgba(27,57,117,0.04);
}
.btn-xl {
  padding: 1.0625rem 2.25rem;
  font-size: 1rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--space-lg) var(--space-xl);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: center;
  gap: 2rem;
  width: 100%;
}
.hero-eyebrow-rule {
  width: 36px;
  height: 1.5px;
  background: rgba(27, 57, 117, 0.22);
  border-radius: 2px;
  margin-bottom: 1rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bio);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 6vw, 7rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.045em;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.125rem;
  line-height: 1.72;
  color: var(--text-2);
  font-weight: 300;
  max-width: 44ch;
  margin-bottom: var(--space-lg);
}
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.hero-badge {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.badge-pill {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-2);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  letter-spacing: 0.01em;
}
.hero-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-dog-img {
  width: 100%;
  max-width: 560px;
  max-height: 78vh;
  object-fit: contain;
  object-position: top center;
  position: relative;
  z-index: 1;
  mix-blend-mode: multiply; /* removes white background on white page */
}
.hero-product-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(27,57,117,0.07) 0%, transparent 68%);
  z-index: 0;
  pointer-events: none;
}
/* Floating spec callout badges */
.hero-spec-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.625rem 0.3rem 0.5rem;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(27,57,117,0.11);
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(27,57,117,0.08), 0 1px 3px rgba(11,17,32,0.05);
  white-space: nowrap;
  opacity: 0; /* animated in by GSAP */
}
.sbadge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bio);
  flex-shrink: 0;
}
.hero-spec-badge--tl { top: 12%;    left:  0%;  }  /* beside left ear */
.hero-spec-badge--tr { top: 20%;    right: -2%; }  /* beside right cheek */
.hero-spec-badge--bl { bottom: 22%; left:  0%;  }  /* collar left */
.hero-spec-badge--br { bottom: 16%; right: -2%; }  /* collar right */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1.6s forwards;
}
.hero-scroll-hint span {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scroll-dot {
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--text-3);
  position: relative;
  overflow: hidden;
}
.scroll-dot::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--navy);
  border-radius: 2px;
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}
@keyframes fadeInUp {
  to { opacity: 1; }
}

/* ── Explode Section ─────────────────────────────────────── */
#inside { position: relative; }
.explode-track {
  height: 550vh;
  position: relative;
}
.explode-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  background: var(--bg);
}

/* Text panels — left */
.explode-panels {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 3vw 0 max(2.5rem, 5vw);
  position: relative;
}
.explode-panel {
  position: absolute;
  width: calc(100% - max(2.5rem, 5vw) - 3vw);
  top: 50%;
  transform: translateY(calc(-50% + 24px));
  opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}
.explode-panel.active {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}
.panel-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.125rem;
}
.panel-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.panel-body {
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--text-2);
  font-weight: 300;
  max-width: 38ch;
  margin-bottom: 1.5rem;
}
.panel-spec {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1.125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.spec-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
}
.spec-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

/* Panel progress dots */
.panel-progress {
  position: absolute;
  bottom: 2.5rem;
  left: max(2.5rem, 5vw);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.pdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s ease, transform 0.3s ease;
}
.pdot.active {
  background: var(--navy);
  transform: scale(1.4);
}

/* Canvas — right */
.explode-canvas-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg);
}
.explode-canvas-wrap canvas {
  width: 96%;
  max-width: 700px;
  height: auto;
  aspect-ratio: 1;
  /* brightness(1.30) handles bg halo on scroll-animated frames */
  filter: brightness(1.30);
}
.canvas-frame-counter {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.05em;
  opacity: 0.6;
}
#frameNum {
  font-weight: 500;
  color: var(--text-2);
}

/* ── Features ─────────────────────────────────────────────── */
#features {
  padding: var(--space-3xl) var(--space-lg);
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: var(--space-2xl);
  max-width: 680px;
}
.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text-2);
  font-weight: 300;
  max-width: 52ch;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}
.feature-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.feature-card--accent {
  background: var(--navy);
  border-color: transparent;
}
.feature-card--accent .feature-title { color: #fff; }
.feature-card--accent .feature-desc  { color: rgba(255,255,255,0.72); }
.feature-card--accent .feature-icon  {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}
.feature-card--accent .feature-list li {
  color: rgba(255,255,255,0.85);
  border-top-color: rgba(255,255,255,0.10);
}
.feature-card--accent .feature-list li::before {
  background: var(--bio);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(27,57,117,0.06);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 1.75rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 0.875rem;
}
.feature-desc {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--text-2);
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.feature-list li {
  font-size: 0.875rem;
  color: var(--text-2);
  padding: 0.625rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.feature-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bio);
  flex-shrink: 0;
}

/* ── Stats ────────────────────────────────────────────────── */
#stats {
  background: var(--navy);
  padding: var(--space-2xl) var(--space-lg);
}
.stats-inner { max-width: 1280px; margin: 0 auto; }
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  padding: 1.5rem 4vw;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-unit {
  font-size: 0.4em;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0;
}
.stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.stat-divider {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.10);
  flex-shrink: 0;
}

/* ── Quotes / Science ─────────────────────────────────────── */
#science {
  padding: var(--space-3xl) var(--space-lg);
}
.quotes-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.quote-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.quote-card--hero {
  background: rgba(27,57,117,0.03);
  border-color: rgba(27,57,117,0.14);
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}
.quote-card p {
  font-size: 0.9375rem;
  line-height: 1.76;
  color: var(--text);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.quote-card--hero p { font-size: 1.0625rem; }
.quote-card cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.quote-card cite strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.quote-card cite span,
.quote-card cite {
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* ── Pre-order ────────────────────────────────────────────── */
#preorder {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--bg);
}
.preorder-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.preorder-canvas-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}
.preorder-canvas-wrap canvas {
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 1;
  position: relative;
  z-index: 1;
  /* No filter needed — JS pixel processing makes bg exactly #FFFFFF */
}
.preorder-canvas-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,201,122,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
  display: block;
}
.preorder-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.5vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--navy);
  line-height: 1.02;
  margin-bottom: 1.25rem;
}
.preorder-sub {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text-2);
  font-weight: 300;
  max-width: 44ch;
  margin-bottom: var(--space-md);
}
.preorder-pricing {
  margin-bottom: var(--space-md);
}
.pricing-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.price-tag {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.price-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.price-ships {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.2rem 0.625rem;
  border-radius: var(--r-pill);
  width: fit-content;
}
.price-note {
  font-size: 0.8125rem;
  color: var(--text-3);
}
.preorder-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}
.preorder-fine {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: var(--space-md);
  max-width: 44ch;
}
.preorder-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-2);
  font-weight: 400;
}
.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  flex-shrink: 0;
}

/* ── Footer ───────────────────────────────────────────────── */
#footer {
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.footer-logo {
  height: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.footer-logo-img {
  height: 90px;
  width: auto;
  display: block;
  filter: brightness(0) saturate(100%)
          invert(17%) sepia(58%) saturate(1350%)
          hue-rotate(204deg) brightness(90%) contrast(98%);
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-3);
  font-weight: 300;
}
.footer-nav {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.25rem;
}
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--navy); }
.footer-col a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border2);
  font-size: 0.8125rem;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── GSAP initial state helpers ─────────────────────────── */
/* GSAP fromTo handles all reveal animations — no CSS transitions needed */

/* ── Modal Overlay ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 17, 32, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open {
  visibility: visible;
  opacity: 1;
}
.modal-card {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 490px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 32px 80px rgba(27,57,117,0.18), 0 8px 24px rgba(11,17,32,0.08);
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface2);
  color: var(--text-2);
  font-size: 0.8125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-header { padding-right: 2.5rem; margin-bottom: 1.75rem; }
.modal-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.modal-sub {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-2);
  font-weight: 300;
  margin: 0;
}

/* ── Form ────────────────────────────────────────────────── */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-row--half {
  flex-direction: row;
  gap: 0.875rem;
}
.form-row--half > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}
.form-optional {
  font-weight: 400;
  color: var(--text-3);
}
.form-input {
  padding: 0.6875rem 1rem;
  border: 1.5px solid rgba(27,57,117,0.15);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(75,111,228,0.12);
}
.form-input::placeholder { color: var(--text-3); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%234A546A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-breed-wrap { position: relative; }
.breed-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid rgba(27,57,117,0.15);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  z-index: 200;
  overflow: hidden;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
}
.breed-dropdown[hidden] { display: none; }
.breed-option {
  padding: 0.5625rem 1rem;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease;
}
.breed-option:hover { background: var(--surface2); color: var(--navy); }
.modal-submit {
  margin-top: 0.375rem;
  width: 100%;
  justify-content: center;
}
.modal-fine {
  font-size: 0.8125rem;
  color: var(--text-3);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.6;
}
.modal-success {
  text-align: center;
  padding: 2rem 0 1rem;
}
.modal-success .success-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.modal-success h3 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}
.modal-success p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  #nav {
    padding: 1rem 1.25rem;
  }

  #hero,
  #features,
  #science,
  #preorder,
  #stats,
  #footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-inner,
  .preorder-inner {
    grid-template-columns: 1fr;
  }

  .hero-canvas-wrap {
    order: -1;
  }

  .features-grid,
  .quotes-grid {
    grid-template-columns: 1fr;
  }

  .explode-sticky {
    grid-template-columns: 1fr;
  }

  .explode-panels {
    padding: 0 1.5rem 2rem;
  }

  .explode-canvas-wrap canvas {
    max-width: 560px;
  }

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    gap: 0.75rem;
  }

  .nav-logo {
    height: 30px;
  }

  .nav-logo-img,
  .footer-logo-img {
    height: 76px;
  }

  .nav-cta {
    padding: 0.55rem 0.95rem;
    font-size: 0.8125rem;
  }

  #hero {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 3rem;
  }

  .hero-inner {
    gap: 1.5rem;
  }

  .hero-canvas-wrap {
    order: 2;
  }

  .hero-headline {
    font-size: clamp(2.9rem, 14vw, 4.6rem);
  }

  .hero-sub,
  .section-sub,
  .preorder-sub {
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-actions,
  .preorder-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-xl {
    width: 100%;
    justify-content: center;
  }

  .hero-dog-img {
    max-width: 100%;
    max-height: 52vh;
  }

  .hero-spec-badge {
    font-size: 0.62rem;
    padding: 0.28rem 0.5rem;
  }

  .hero-spec-badge--tl { top: 10%; left: 2%; }
  .hero-spec-badge--tr { top: 22%; right: 2%; }
  .hero-spec-badge--bl { bottom: 18%; left: 2%; }
  .hero-spec-badge--br { bottom: 10%; right: 2%; }

  .hero-scroll-hint {
    display: none;
  }

  .explode-track {
    height: auto;
  }

  .explode-sticky {
    position: relative;
    top: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: visible;
    padding: 2rem 1.25rem 3rem;
  }

  .explode-sticky--mobile .explode-canvas-wrap {
    order: -1;
  }

  .explode-panels {
    display: grid;
    gap: 1rem;
    padding: 0;
  }

  .explode-panel,
  .explode-panel.active {
    position: relative;
    top: auto;
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }

  .panel-body {
    max-width: none;
  }

  .panel-progress,
  .canvas-frame-counter {
    display: none;
  }

  .explode-canvas-wrap canvas {
    width: 100%;
    max-width: 420px;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .feature-card,
  .quote-card {
    padding: 1.5rem;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 0.75rem;
  }

  .stat-item {
    padding: 0;
  }

  .stat-divider {
    display: none;
  }

  .preorder-inner {
    gap: 2rem;
  }

  .preorder-canvas-wrap {
    order: -1;
  }

  .preorder-headline {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .preorder-trust {
    gap: 0.875rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  #nav {
    padding: 0.9rem 0.9rem;
  }

  #hero,
  #features,
  #science,
  #preorder,
  #stats,
  #footer {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero-headline {
    font-size: clamp(2.5rem, 15vw, 3.6rem);
  }

  .hero-sub,
  .section-sub,
  .preorder-sub,
  .feature-desc,
  .quote-card p {
    font-size: 0.9375rem;
  }

  .hero-spec-badge--tl,
  .hero-spec-badge--tr,
  .hero-spec-badge--bl,
  .hero-spec-badge--br {
    position: static;
  }

  .hero-canvas-wrap {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-spec-badge {
    white-space: normal;
    align-self: stretch;
    justify-content: center;
  }

  .explode-sticky {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
