/* ============================================================
   The Magic Collector Elf™ — Demo build (no assets yet)
   Palette: "North Pole Night & Warm Home"
   ============================================================ */

:root {
  --cream: #FAF6EF;
  --ivory: #F3ECE0;
  --night: #0E2A3A;
  --spruce: #14384C;
  --red: #D64541;
  --red-deep: #B33530;
  --gold: #F2B950;
  --mint: #BFE3DC;
  --ink: #2B2320;
  --ink-soft: #5C534E;
  --moon: #FDF9F0;
  --moon-soft: rgba(253, 249, 240, 0.72);

  /* packaging sky blues (sampled from The Magic Collector Elf box art) */
  --sky-deep: #27479B;
  --sky-mid: #3E6CBD;
  --sky-light: #8FC2ED;
  --sky-night: #16265C;

  --font-display: "Fraunces", Georgia, serif;
  --font-brand: "Baloo 2", "Fraunces", cursive;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
  --font-hand: "Caveat", cursive;

  --radius: 20px;
  --shadow-soft: 0 10px 40px rgba(20, 40, 60, 0.10);
  --shadow-card: 0 6px 24px rgba(20, 40, 60, 0.08);

  /* ---- Thang độ nổi: mọi ảnh/thẻ chỉ dùng 3 mức này ----
     Mỗi mức = 1 lớp bóng sát (tiếp đất) + 1 lớp toả (chiều sâu). */
  --elev-1: 0 1px 2px rgba(20, 40, 60, 0.06), 0 6px 16px rgba(20, 40, 60, 0.07);
  --elev-2: 0 2px 4px rgba(20, 40, 60, 0.08), 0 14px 32px rgba(20, 40, 60, 0.13);
  --elev-3: 0 4px 8px rgba(20, 40, 60, 0.10), 0 28px 56px rgba(20, 40, 60, 0.20);

  /* ---- Ảnh tách nền: bóng tiếp đất + bóng toả, để vật không bị trôi ---- */
  --cut-1: drop-shadow(0 2px 2px rgba(20, 40, 60, 0.20)) drop-shadow(0 14px 20px rgba(20, 40, 60, 0.18));
  --cut-2: drop-shadow(0 3px 4px rgba(20, 40, 60, 0.24)) drop-shadow(0 24px 36px rgba(20, 40, 60, 0.22));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

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

button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }

h1 em, h2 em {
  font-style: italic;
  color: var(--gold);
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.section--dark .eyebrow { color: var(--gold); }

.lead { font-size: 1.16rem; color: var(--ink-soft); }
.section--dark .lead, .hero .lead, .subhero--dark .lead { color: var(--moon-soft); }

.center { text-align: center; }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 14px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(214, 69, 65, 0.35);
}
.btn-primary:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(214, 69, 65, 0.45), 0 0 18px rgba(242, 185, 80, 0.35);
}

.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.07); }

.section--light .btn-ghost:hover { background: rgba(20, 56, 76, 0.06); }

.btn-gold {
  background: var(--gold);
  color: var(--night);
  box-shadow: 0 8px 24px rgba(242, 185, 80, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn-sm { padding: 10px 22px; font-size: 0.92rem; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  color: var(--moon);
}

.nav-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav.scrolled, .nav--solid {
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 18px rgba(20, 40, 60, 0.08);
  color: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  margin-right: auto;
}

.brand sup { font-size: 0.5em; font-family: var(--font-body); }

.brand-bell { animation: bell-ring 1.2s ease 1.2s 1; transform-origin: 50% 10%; }

@keyframes bell-ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-16deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(4deg); }
}

.nav-links { display: flex; gap: 26px; font-weight: 700; font-size: 0.95rem; }
.nav-links a { opacity: 0.85; transition: opacity 0.15s ease; }
.nav-links a:hover { opacity: 1; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}
.nav-burger span { display: block; width: 24px; height: 3px; border-radius: 2px; background: currentColor; }

.nav-menu-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 20px;
  background: rgba(250, 246, 239, 0.97);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(20, 40, 60, 0.12);
}
.nav-menu-mobile a { padding: 10px 4px; border-bottom: 1px solid rgba(20, 40, 60, 0.08); }
.nav.menu-open .nav-menu-mobile { display: flex; }

/* ---------- Sections ---------- */

.section { padding: 100px 0; position: relative; }

.section--dark {
  background: linear-gradient(180deg, var(--sky-night) 0%, var(--sky-deep) 60%, var(--sky-mid) 100%);
  color: var(--moon);
}

.section--ivory { background: var(--ivory); }

/* ---------- Hero ---------- */

.hero {
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  background: radial-gradient(1200px 700px at 70% -10%, #1B4258 0%, var(--night) 55%, #0A1F2C 100%);
  color: var(--moon);
}

#snow, .snow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.star {
  position: absolute;
  width: var(--s, 3px);
  height: var(--s, 3px);
  border-radius: 50%;
  background: radial-gradient(circle, #FFF6DC 0%, rgba(242, 185, 80, 0.85) 45%, transparent 75%);
  animation: twinkle var(--d, 3.5s) ease-in-out var(--dl, 0s) infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { max-width: 500px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.trust {
  margin-top: 26px;
  font-size: 0.92rem;
  color: var(--moon-soft);
}
.trust b { color: var(--gold); letter-spacing: 2px; }

.hero-pip { position: relative; display: flex; justify-content: center; }

.pip-glow {
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(circle, rgba(242, 185, 80, 0.22) 0%, transparent 65%);
  filter: blur(8px);
  animation: glow-pulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.pip-float { width: min(340px, 70vw); animation: float 5.5s ease-in-out infinite; position: relative; z-index: 1; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Pip character animations (injected SVG) */
.pip-eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.6s ease-in-out infinite; }
@keyframes blink {
  0%, 91%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.06); }
  97% { transform: scaleY(1); }
}

.pip-arm-wave { transform-box: fill-box; transform-origin: 8% 92%; animation: wave 4s ease-in-out infinite; }
@keyframes wave {
  0%, 52%, 100% { transform: rotate(0); }
  62% { transform: rotate(-16deg); }
  72% { transform: rotate(7deg); }
  82% { transform: rotate(-11deg); }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 1.4rem;
  color: var(--moon-soft);
  animation: hint-bob 2s ease-in-out infinite;
}
@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Reveal on scroll ---------- */

.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .pip-float, .pip-eyes, .pip-arm-wave, .star, .pip-glow, .scroll-hint, .brand-bell { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Story (old way vs Pip way) ---------- */

.compare-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.way-card {
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}

.way-card h3 { margin-bottom: 8px; }
.way-card .way-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.way-old { background: #E9E4DA; color: var(--ink-soft); }
.way-old .way-tag { background: rgba(43, 35, 32, 0.08); color: var(--ink-soft); }

.way-new {
  background: linear-gradient(160deg, #FFFDF6 0%, #FBF3E2 100%);
  border: 2px solid var(--gold);
  position: relative;
}
.way-new .way-tag { background: var(--gold); color: var(--night); }

.way-list { list-style: none; margin-top: 12px; display: grid; gap: 12px; }
.way-list li { display: flex; gap: 12px; align-items: flex-start; }
.way-ico { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 900; margin-top: 2px; }
.way-old .way-ico { background: rgba(43, 35, 32, 0.12); color: var(--ink-soft); }
.way-new .way-ico { background: var(--mint); color: var(--night); }

/* ---------- Meet Pip ---------- */

.meet-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.trait-cards { display: grid; gap: 16px; margin-top: 28px; }

.trait {
  background: rgba(253, 249, 240, 0.07);
  border: 1px solid rgba(253, 249, 240, 0.14);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.trait-emoji {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.3rem;
  background: rgba(242, 185, 80, 0.16);
}
.trait h4 { font-family: var(--font-display); font-size: 1.06rem; margin-bottom: 2px; }
.trait p { font-size: 0.92rem; color: var(--moon-soft); }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 28px 32px;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
}

.step-num {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(214, 69, 65, 0.35);
}

.step-ico { width: 74px; height: 74px; margin: 4px auto 18px; border-radius: 50%; background: var(--ivory); display: grid; place-items: center; }
.step-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step-card p { font-size: 0.96rem; color: var(--ink-soft); }

.themes-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 44px; }
.theme-chip {
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--mint);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--spruce);
}

/* ---------- Missions / Advent ---------- */

.advent-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.tile {
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  perspective: 600px;
  padding: 0;
}

.tile-inner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.1, 0.2, 1.2);
}
.tile:hover .tile-inner, .tile:focus-visible .tile-inner { transform: rotateY(180deg); }

.tile-front, .tile-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.tile-front {
  background: #FFFDF6;
  border: 2px solid rgba(242, 185, 80, 0.85);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--red);
  box-shadow: 0 4px 14px rgba(20, 40, 60, 0.12);
}
.tile-front::after {
  content: "✦";
  position: absolute;
  top: 6px; right: 9px;
  font-size: 0.6rem;
  color: var(--gold);
}

.tile-back {
  background: var(--spruce);
  color: var(--moon);
  transform: rotateY(180deg);
  font-size: 0.66rem;
  line-height: 1.35;
  padding: 8px;
  text-align: center;
  font-weight: 700;
}

.tile--special .tile-front { background: var(--gold); color: var(--night); border-color: var(--gold); }

/* ---------- Scratch demo ---------- */

.scratch-zone {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.scratch-copy h3 { font-size: 1.6rem; margin-bottom: 12px; }
.scratch-copy p { color: var(--ink-soft); }

.scratch-hint { margin-top: 16px; font-weight: 800; color: var(--red); font-size: 0.94rem; }

.scratch-card {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 380 / 240;
  margin-inline: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(20, 40, 60, 0.18);
  transform: rotate(-2deg);
}

.scratch-under {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #FFFDF6 0%, #FBEFDA 100%);
  border: 3px solid var(--red);
  border-radius: 18px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scratch-day {
  align-self: flex-start;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.scratch-under h4 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 6px; }
.scratch-under p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.scratch-under .magic-note { margin-top: 10px; font-weight: 800; color: var(--spruce); font-size: 0.82rem; }

#scratchCanvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; transition: opacity 0.8s ease; }
.scratch-card.done #scratchCanvas { opacity: 0; pointer-events: none; }

/* ---------- Why families love it ---------- */

.vs-table { max-width: 880px; margin-inline: auto; display: grid; gap: 14px; }

.vs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.vs-cell {
  border-radius: 14px;
  padding: 18px 24px;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.vs-cell.old { background: #EDE8DE; color: var(--ink-soft); }
.vs-cell.new { background: #fff; border: 1.5px solid var(--mint); font-weight: 700; color: var(--spruce); box-shadow: var(--shadow-card); }

.vs-head { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.vs-head.new { border-color: var(--gold); color: var(--ink); background: #FFF9EC; }

/* ---------- What's inside ---------- */

.inside-hero { display: flex; justify-content: center; margin-bottom: 40px; }
.giftbox { width: min(300px, 60vw); }

.inside-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.inside-card {
  background: #fff;
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}
.inside-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--ivory);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.inside-card h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 6px; }
.inside-card p { font-size: 0.9rem; color: var(--ink-soft); }

.ph-banner {
  margin-top: 34px;
  border: 2px dashed rgba(92, 83, 78, 0.35);
  border-radius: 14px;
  padding: 16px 22px;
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.92rem;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(20, 40, 60, 0.025) 14px 28px);
}

/* ---------- Reviews ---------- */

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; }
.review-card blockquote { font-size: 0.99rem; color: var(--ink); flex: 1; }

.review-who { display: flex; align-items: center; gap: 12px; }
.review-ava {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  color: var(--night);
  font-size: 0.9rem;
}
.review-who small { display: block; color: var(--ink-soft); }
.review-who b { font-size: 0.95rem; }

/* ---------- Pricing ---------- */

.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.price-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 24px;
  padding: 40px 38px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  position: relative;
}

.price-badge {
  position: absolute;
  top: -16px;
  left: 34px;
  background: var(--gold);
  color: var(--night);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
}

.price-box-img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  margin: 16px 0 6px;
  display: block;
}

.price-line { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 4px; }
.price-num { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; }
.price-note { color: var(--ink-soft); font-size: 0.9rem; }

.price-list { list-style: none; margin: 22px 0 28px; display: grid; gap: 11px; }
.price-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.97rem; }
.price-list .st { color: var(--gold); flex: 0 0 auto; }

.price-card .btn { width: 100%; }
.guarantee { margin-top: 16px; text-align: center; font-size: 0.86rem; color: var(--ink-soft); }

/* FAQ accordion */
.faq { display: grid; gap: 12px; }

.faq details {
  background: rgba(253, 249, 240, 0.06);
  border: 1px solid rgba(253, 249, 240, 0.14);
  border-radius: 14px;
  padding: 18px 22px;
}
.faq summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-size: 0.95rem; color: var(--moon-soft); }

.faq--light details { background: #fff; border-color: rgba(20, 40, 60, 0.1); box-shadow: var(--shadow-card); }
.faq--light details p { color: var(--ink-soft); }
.faq--light summary::after { color: var(--red); }

/* ---------- Footer ---------- */

.footer {
  background: #14224F;
  color: var(--moon-soft);
  padding: 70px 0 34px;
  font-size: 0.94rem;
}

.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 48px; margin-bottom: 48px; }

.footer h4 { color: var(--moon); font-family: var(--font-display); margin-bottom: 14px; font-size: 1.05rem; }
.footer-links { display: grid; gap: 9px; }
.footer-links a:hover { color: var(--moon); }

.footer .brand { color: var(--moon); margin-bottom: 12px; }

.email-form { display: flex; gap: 10px; margin-top: 14px; }
.email-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(253, 249, 240, 0.25);
  background: rgba(253, 249, 240, 0.08);
  color: var(--moon);
  font-family: inherit;
  font-size: 0.95rem;
}
.email-form input::placeholder { color: rgba(253, 249, 240, 0.45); }

.footer-bottom {
  border-top: 1px solid rgba(253, 249, 240, 0.12);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(253, 249, 240, 0.5);
}

.demo-tag {
  display: inline-block;
  background: rgba(242, 185, 80, 0.15);
  color: var(--gold);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* ---------- Toast ---------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--night);
  color: var(--moon);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
  max-width: min(90vw, 480px);
  text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   Subpages (start / certificate / day-25)
   ============================================================ */

.subhero {
  padding: 150px 0 70px;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
  text-align: center;
}
.subhero .lead { max-width: 560px; margin: 18px auto 0; }

.subhero--dark {
  background: radial-gradient(1000px 600px at 50% -20%, var(--sky-mid) 0%, var(--sky-deep) 60%, var(--sky-night) 100%);
  color: var(--moon);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Guide steps */
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.letter-card {
  max-width: 680px;
  margin: 0 auto;
  background: #FFFDF6;
  border: 1px solid rgba(242, 185, 80, 0.5);
  border-radius: 18px;
  padding: 44px 48px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.letter-card::before {
  content: "❄";
  position: absolute;
  top: 20px; right: 26px;
  color: var(--mint);
  font-size: 1.4rem;
}
.letter-card .hand { font-family: var(--font-hand); font-size: 1.9rem; color: var(--red); margin-top: 20px; }
.letter-card p + p { margin-top: 14px; }

.timeline { max-width: 720px; margin-inline: auto; display: grid; gap: 0; }

.tl-item { display: grid; grid-template-columns: 60px 1fr; gap: 20px; position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 54px;
  bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 12px);
}
.tl-item:last-child::before { display: none; }

.tl-badge {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-card);
}
.tl-body h4 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 4px; }
.tl-body p { color: var(--ink-soft); font-size: 0.97rem; }
.tl-when { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); }

.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tip-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: var(--shadow-card); font-size: 0.96rem; }
.tip-card b { display: block; font-family: var(--font-display); margin-bottom: 6px; font-size: 1.02rem; }

.rest-note {
  max-width: 720px;
  margin: 40px auto 0;
  background: rgba(191, 227, 220, 0.35);
  border: 1.5px solid var(--mint);
  border-radius: 16px;
  padding: 22px 28px;
  font-size: 0.96rem;
}
.rest-note b { color: var(--spruce); }

/* Certificate */
.cert-tool { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: start; }

.cert-form { background: #fff; border-radius: 18px; padding: 30px 28px; box-shadow: var(--shadow-card); display: grid; gap: 16px; }
.cert-form label { font-weight: 800; font-size: 0.9rem; }
.cert-form input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(20, 40, 60, 0.18);
  font-family: inherit;
  font-size: 1rem;
}
.cert-form input:focus { border-color: var(--gold); outline: none; }
.cert-form .hintline { font-size: 0.82rem; color: var(--ink-soft); }

.cert-preview {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(20, 40, 60, 0.18);
  background: #fff;
}
.cert-preview canvas { width: 100%; height: auto; display: block; }

/* Day 25 */
.d25-inner { position: relative; z-index: 2; max-width: 640px; margin-inline: auto; padding: 140px 24px 90px; text-align: center; }
.d25-inner .pip-float { margin: 0 auto 10px; width: min(240px, 55vw); }
.d25-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.d25-email { max-width: 420px; margin: 44px auto 0; }
.d25-email .email-form input { border-color: rgba(253, 249, 240, 0.3); }

/* ---------- Generated assets (Higgsfield) ---------- */

.pip-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 26px 22px rgba(5, 15, 25, 0.35));
}

.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img, .hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 20, 31, 0.90) 0%, rgba(7, 20, 31, 0.62) 45%, rgba(7, 20, 31, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 20, 31, 0.35) 0%, transparent 35%, rgba(7, 20, 31, 0.55) 100%);
}

@media (max-width: 760px) {
  .hero-media video { display: none; }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(7, 20, 31, 0.82) 0%, rgba(7, 20, 31, 0.6) 55%, rgba(7, 20, 31, 0.75) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media video { display: none; }
}

.meet-media img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  display: block;
}

.moments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.moments-grid figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #fff;
}
.moments-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.moments-grid figcaption {
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.inside-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  display: block;
}

.inside-video {
  max-width: 560px;
  margin: 0 auto 48px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.inside-video video { display: block; width: 100%; height: auto; }

.media-frame {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.media-frame video, .media-frame img { display: block; width: 100%; height: auto; }

@media (max-width: 760px) {
  .moments-grid { grid-template-columns: 1fr; }
}

/* ---------- Print ---------- */

@media print {
  .nav, .footer, .no-print, #toast { display: none !important; }
  .section { padding: 24px 0; }
  body { background: #fff; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .advent-grid { grid-template-columns: repeat(6, 1fr); }
  .price-wrap, .meet-grid, .cert-tool { grid-template-columns: 1fr; gap: 40px; }
  .reviews-grid, .steps, .guide-steps { grid-template-columns: 1fr 1fr; }
  .steps { row-gap: 44px; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 110px; min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-pip { order: -1; }
  .pip-float { width: min(210px, 55vw); }

  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .compare-2col, .reviews-grid, .steps, .guide-steps, .vs-row { grid-template-columns: 1fr; }
  .steps { row-gap: 44px; }
  .advent-grid { grid-template-columns: repeat(4, 1fr); }
  .scratch-zone { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .vs-row { gap: 8px; }
  .vs-row + .vs-row { margin-top: 10px; }
}
