:root {
  --ink: #2B2A20;
  --ink-dim: rgba(43, 42, 32, 0.62);
  --bg: #EFE4CD;
  --panel: #E3D6B8;
  --deep: #4B5A3A;
  --darker: #333F27;
  --accent: #8FAE4F;
  --line: rgba(43, 42, 32, 0.14);
  --cream-ink: #F6F0E1;
}

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

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, .display { font-family: "Fredoka", "Nunito", system-ui, sans-serif; }

/* ---------- Nav ---------- */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--darker);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--darker);
  text-decoration: none;
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--cream-ink);
  font-size: 15px;
}
.hud-mid { font-size: 11px; letter-spacing: 0.18em; color: var(--deep); font-weight: 700; }
.hud-right { font-size: 11px; letter-spacing: 0.1em; color: var(--ink-dim); }
.hud-links { display: flex; gap: 28px; font-size: 11px; letter-spacing: 0.12em; }
.hud-links a { color: var(--darker); text-decoration: none; opacity: 0.75; transition: opacity 0.2s; }
.hud-links a:hover { opacity: 1; }
@media (max-width: 900px) { .hud-links { display: none; } }

/* ---------- Cinematic / world sticky sections ---------- */
.cinematic { position: relative; height: 460vh; }
.cinematic.short { height: 260vh; }
.world { position: relative; height: 400vh; }
.world.tall { height: 520vh; }
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.still { position: absolute; inset: 0; overflow: hidden; }
.still img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
}
.sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(51, 63, 39, 0.28) 100%),
    linear-gradient(180deg, rgba(51,63,39,0.22) 0%, transparent 24%, transparent 70%, rgba(51,63,39,0.3) 100%);
}
.vignette.soft {
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(51, 63, 39, 0.14) 100%),
    linear-gradient(180deg, rgba(239,228,205,0.5) 0%, transparent 20%, transparent 78%, rgba(239,228,205,0.6) 100%);
}
.open-reveal {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 9;
  width: min(30vw, 320px);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(51, 63, 39, 0.35);
  opacity: 0;
  will-change: opacity, transform;
}

/* ---------- Kicker + overlay copy ---------- */
.kicker {
  position: absolute;
  top: 100px; left: 40px;
  z-index: 11;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--deep);
  background: rgba(246, 240, 225, 0.7);
  padding: 6px 14px;
  border-radius: 999px;
}
.overlay {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  width: 100%;
}
.overlay.top {
  position: absolute;
  top: 90px; left: 0; right: 0;
  height: auto;
}
.static-line {
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  font-size: clamp(1.8rem, 4.5vw, 3rem) !important;
  margin: 0 auto;
}
.static-line .sub { color: var(--deep); }
.frame-readout {
  position: absolute;
  top: 100px; right: 40px;
  z-index: 11;
  font-family: "Fredoka", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--darker);
  background: rgba(246, 240, 225, 0.85);
  padding: 8px 18px;
  border-radius: 999px;
  min-width: 90px;
  text-align: center;
}
@media (max-width: 640px) {
  .frame-readout { top: 78px; right: 20px; font-size: 11px; padding: 6px 12px; }
}
.reveal-line {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 86vw;
  font-weight: 600;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.9rem, 6vw, 5rem);
  letter-spacing: 0.01em;
  line-height: 1.08;
  color: var(--darker);
  opacity: 0;
  will-change: opacity, transform;
}
.reveal-line .sub {
  display: block;
  font-family: "Nunito", sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-dim);
  margin-top: 14px;
  font-weight: 600;
}

/* ---------- Benefit labels (icon-morph world section) ---------- */
.benefit-labels {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
}
.benefit-label {
  position: absolute;
  opacity: 0;
  background: var(--cream-ink);
  color: var(--darker);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(51, 63, 39, 0.18);
  max-width: 260px;
  text-align: center;
}
.benefit-label:nth-child(1) { top: 16%; left: 50%; transform: translateX(-50%); }
.benefit-label:nth-child(2) { top: 46%; right: 8%; }
.benefit-label:nth-child(3) { bottom: 16%; left: 50%; transform: translateX(-50%); }
.benefit-label:nth-child(4) { top: 46%; left: 8%; }
@media (max-width: 640px) {
  .benefit-label { font-size: 0.8rem; padding: 8px 14px; max-width: 180px; }
  .benefit-label:nth-child(2) { right: 4%; }
  .benefit-label:nth-child(4) { left: 4%; }
}

/* ---------- Comparison table (checklist-reveal world section) ---------- */
.compare-panel {
  position: relative;
  z-index: 10;
  width: min(90vw, 640px);
  margin: 0 auto;
  background: rgba(246, 240, 225, 0.92);
  border-radius: 20px;
  padding: 20px 28px;
  box-shadow: 0 16px 40px rgba(51, 63, 39, 0.18);
}
.compare-head {
  display: grid;
  grid-template-columns: 1fr 90px 130px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.compare-brand { color: var(--deep); text-align: center; }
.compare-other { color: var(--ink-dim); text-align: center; font-weight: 700; font-size: 0.72rem; }
.compare-row {
  display: grid;
  grid-template-columns: 1fr 90px 130px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  opacity: 0;
  will-change: opacity, transform;
}
.compare-row:last-child { border-bottom: none; }
.compare-check, .compare-x {
  font-style: normal;
  text-align: center;
  font-weight: 700;
  will-change: transform;
}
.compare-check { color: var(--deep); font-size: 1.1rem; }
.compare-x { color: rgba(43, 42, 32, 0.32); font-size: 1rem; }
@media (max-width: 640px) {
  .compare-panel { padding: 16px 16px; }
  .compare-head, .compare-row { grid-template-columns: 1fr 60px 90px; font-size: 0.78rem; }
}

/* ---------- Testimonials (card-drift world section) ---------- */
.testi-track {
  position: relative;
  z-index: 10;
  width: min(90vw, 640px);
  margin: 140px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testi-card {
  background: rgba(246, 240, 225, 0.94);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 12px 30px rgba(51, 63, 39, 0.16);
  opacity: 0;
  will-change: opacity, transform;
}
.testi-card .stars { color: var(--accent); letter-spacing: 0.1em; margin-bottom: 8px; }
.testi-card p { font-size: 0.98rem; line-height: 1.5; margin-bottom: 10px; }
.testi-name { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 0.82rem; color: var(--darker); }
.testi-name em { font-style: normal; color: var(--ink-dim); font-weight: 400; margin-left: 8px; font-size: 0.75rem; }
@media (max-width: 640px) {
  .testi-track { margin-top: 110px; }
  .testi-card { padding: 16px 18px; }
}

/* ---------- CTA ---------- */
.cta-row { position: relative; z-index: 11; margin-top: 34px; display: flex; justify-content: center; }
.btn {
  display: inline-block;
  padding: 16px 40px;
  border: none;
  border-radius: 999px;
  background: var(--deep);
  color: var(--cream-ink);
  text-decoration: none;
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 0 var(--darker);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-4px); box-shadow: 0 12px 0 var(--darker); }
.btn:active { transform: translateY(2px); box-shadow: 0 4px 0 var(--darker); }
.feature-row {
  position: absolute;
  bottom: 90px; left: 0; right: 0;
  z-index: 11;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 24px;
}
.feature-row span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--darker);
  background: rgba(246, 240, 225, 0.85);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Scroll hint ---------- */
.scroll-hint {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--darker);
  animation: bob 1.6s ease-in-out infinite;
  transition: opacity 0.4s;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ---------- Trust badges (placeholder policy copy — swap for real details) ---------- */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 24px;
  background: var(--darker);
}
.trust-row span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-ink);
  background: rgba(246, 240, 225, 0.1);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Outro ---------- */
.outro {
  min-height: 50vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 14px;
  padding: 60px 24px;
  background: var(--darker);
  color: var(--cream-ink);
}
.outro .brand { justify-content: center; font-size: 20px; color: var(--cream-ink); }
.outro .brand .brand-mark { background: var(--accent); color: var(--darker); }
.outro p { color: rgba(246,240,225,0.7); font-size: 0.95rem; letter-spacing: 0.02em; }
.outro .fine { font-size: 0.78rem; color: rgba(246,240,225,0.4); margin-top: 12px; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .hud { padding: 16px 20px; }
  .hud-mid, .hud-right { display: none; }
  .kicker { top: 80px; left: 20px; font-size: 10px; }
  .feature-row { bottom: 60px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .cinematic, .world, .world.tall { height: 100vh; }
  .sticky { position: relative; }
  .reveal-line:not(:first-child):not(.static-line) { display: none; }
  .benefit-label { opacity: 1 !important; transform: none !important; position: static; margin: 8px; display: inline-block; }
  .benefit-labels { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 40vh; }
  .open-reveal { opacity: 1 !important; transform: translate(-50%, -50%) scale(1) !important; }
  .compare-panel { position: static; margin: 20vh auto 0; }
  .compare-row { opacity: 1 !important; transform: none !important; }
  .compare-check { transform: scale(1) !important; }
  .testi-track { position: static; margin: 20vh auto 0; }
  .testi-card { opacity: 1 !important; transform: none !important; }
  .overlay.top { position: static; margin-top: 8vh; }
}
