/* Holiday Science Lab — sales pages (FE + OTO1).
   Same chunky family as the app: ink borders, hard shadows, lab-paper grid.
   Every animation respects prefers-reduced-motion. */

:root {
  --paper: #fffaf0;
  --cream: #f6ecd8;
  --ink: #1d1a2e;
  --muted: #5d576f;
  --grape: #6b3fd4;
  --grape-dk: #4f2aa6;
  --teal: #12a39a;
  --tangerine: #f28c28;
  --sun: #ffd23f;
  --berry: #e8457b;
  --ok: #2e8b4f;
  --halloween: #ff8a1f;
  --christmas: #2f9e5b;
  --valentine: #ec4d84;
  --easter: #8fd3f4;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background-color: var(--cream);
  background-image:
    linear-gradient(rgb(29 26 46 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(29 26 46 / 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  overflow-x: hidden;
}
h1, h2, h3, .display { font-family: 'Fredoka', 'Nunito', system-ui, sans-serif; line-height: 1.12; margin: 0 0 14px; }
h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; }
h3 { font-size: 23px; font-weight: 600; }
p { margin: 0 0 14px; }
a { color: var(--grape-dk); }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lede { font-size: 21px; color: #3a344d; }
section { padding: 76px 0; position: relative; }

.eyebrow {
  display: inline-block;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 18px;
}
.eyebrow.teal { background: var(--teal); color: #fff; }
.eyebrow.berry { background: var(--berry); color: #fff; }

.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { padding: 26px; }
.tile .ico { font-size: 42px; line-height: 1; display: block; margin-bottom: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: #fff;
  background: var(--grape);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 16px 28px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn.big { font-size: 24px; padding: 20px 36px; }
.btn.sun { background: var(--sun); color: var(--ink); }
/* A slow shine across the main buy buttons. */
.btn.shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.45), transparent);
  transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.nothanks { display: block; margin-top: 18px; color: var(--muted); font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  padding: 34px 0 86px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgb(255 138 31 / 0.22), transparent 38%),
    radial-gradient(circle at 88% 12%, rgb(47 158 91 / 0.2), transparent 36%),
    radial-gradient(circle at 80% 88%, rgb(236 77 132 / 0.18), transparent 40%),
    radial-gradient(circle at 14% 86%, rgb(143 211 244 / 0.3), transparent 40%);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 40px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 24px; }
.logo .mark {
  width: 50px; height: 50px; display: grid; place-items: center;
  background: var(--sun); border: 3px solid var(--ink); border-radius: 15px; box-shadow: 3px 3px 0 var(--ink); font-size: 26px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ''; position: absolute; left: -4px; right: -4px; bottom: 6px; height: 16px;
  background: var(--sun); z-index: -1; border-radius: 6px; transform: rotate(-1deg);
}
.season-word { display: inline-block; min-width: 4ch; color: var(--grape); transition: color 0.3s; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px;
  padding: 7px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink);
}
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; font-size: 15px; font-weight: 700; color: var(--muted); }

/* floating holiday icons */
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; } /* keep the drifting emoji inside the page on phones */
.floaters span { position: absolute; font-size: 34px; opacity: 0.55; animation: drift 11s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-26px) rotate(8deg); }
}
.hero .wrap { position: relative; z-index: 1; }

/* app mockup */
.mock { transform: rotate(1.2deg); }
.mock-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 3px solid var(--ink); background: var(--grape); border-radius: 19px 19px 0 0; }
.mock-bar i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); }
.mock-bar i:nth-child(2) { background: var(--tangerine); }
.mock-bar i:nth-child(3) { background: var(--teal); }
.mock-body { padding: 18px; }
.mock-seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.mock-seasons button {
  font: inherit; font-weight: 800; font-size: 13px; cursor: pointer;
  padding: 10px 4px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.12s;
}
.mock-seasons button span { display: block; font-size: 24px; }
.mock-seasons button[aria-pressed='true'] { background: var(--grape); color: #fff; transform: translate(-1px, -1px); }
.prompt-box {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 13px; line-height: 1.55;
  background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 12px; height: 230px; overflow: hidden;
  white-space: pre-wrap; position: relative;
}
.prompt-box .caret { display: inline-block; width: 8px; height: 15px; background: var(--grape); vertical-align: -2px; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mock-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; font-weight: 800; }
.mock-copy { background: var(--sun); border: 2px solid var(--ink); border-radius: 10px; padding: 6px 12px; box-shadow: 2px 2px 0 var(--ink); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat { padding: 22px 16px; text-align: center; }
.stat b { display: block; font-family: 'Fredoka', sans-serif; font-size: 50px; line-height: 1; color: var(--grape); }
.stat span { font-weight: 800; font-size: 15px; color: var(--muted); }

/* ---------- pain list ---------- */
.pain { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; }
.pain .x { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--berry); color: #fff; font-weight: 900; border: 2px solid var(--ink); }

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.feature.flip > :first-child { order: 2; }
.num { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 18px; color: #fff; background: var(--ink); border-radius: 10px; padding: 3px 12px; display: inline-block; margin-bottom: 12px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { padding-left: 34px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; font-weight: 900; font-size: 14px; display: grid; place-items: center; }

/* paw hunt — on the real station image */
.hunt { position: relative; padding: 0; overflow: hidden; max-width: 500px; width: 100%; justify-self: center; }
.hunt-photo { position: relative; line-height: 0; }
.hunt-photo img { display: block; width: 100%; height: auto; cursor: crosshair; }
.hunt-photo .paw {
  position: absolute; width: 12%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 0; border-radius: 50%; background: transparent; padding: 0; cursor: pointer;
}
.hunt-photo .paw:focus-visible { outline: 3px dashed var(--sun); }
.hunt-photo .paw.found {
  background: rgb(255 210 63 / 0.25);
  box-shadow: 0 0 0 4px var(--sun), 0 0 0 7px var(--ink);
  animation: pop 0.5s ease;
}
.hunt-photo .paw.found::after {
  content: '✓'; position: absolute; top: -14px; right: -14px; width: 28px; height: 28px; line-height: 24px;
  border-radius: 50%; background: var(--ok); color: #fff; font-weight: 900; font-size: 15px; border: 2px solid var(--ink); text-align: center;
}
.hunt-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); line-height: 1.3; white-space: nowrap; font-weight: 900; font-size: 14px; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; box-shadow: 2px 2px 0 var(--ink); pointer-events: none; }
.miss { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid #fff; pointer-events: none; animation: miss 0.6s ease forwards; }
@keyframes miss { to { transform: scale(2); opacity: 0; } }
.hunt svg { display: block; width: 100%; height: auto; cursor: crosshair; }
.hunt .paw { cursor: pointer; transition: transform 0.2s; transform-origin: center; transform-box: fill-box; }
.hunt .paw:hover { transform: scale(1.25); }
.hunt .paw.found { animation: pop 0.5s ease; }
.hunt .paw.found path, .hunt .paw.found circle { fill: var(--sun); stroke: var(--ink); }
@keyframes pop { 50% { transform: scale(1.7); } }
.hunt-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-top: 3px solid var(--ink); background: var(--paper); font-weight: 800; }
.code-boxes { display: flex; gap: 8px; }
.code-boxes i { width: 40px; height: 46px; border: 3px solid var(--ink); border-radius: 10px; display: grid; place-items: center; font-style: normal; font-family: 'Fredoka', sans-serif; font-size: 26px; background: #fff; }
.code-boxes i.on { background: var(--sun); animation: pop 0.5s ease; }

/* season swap demo */
.swap-demo { padding: 22px; }
.swap-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.swap-tabs button { font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; box-shadow: 2px 2px 0 var(--ink); }
.swap-tabs button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.swap-stage { display: flex; gap: 18px; align-items: center; padding: 20px; border: 2px dashed var(--ink); border-radius: 16px; background: #fff; min-height: 150px; transition: background 0.4s; }
.swap-emoji { font-size: 74px; line-height: 1; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(4deg); } }
.swap-text b { display: block; font-family: 'Fredoka', sans-serif; font-size: 24px; }

/* reading levels */
.level-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.level-tabs button { font: inherit; font-weight: 800; cursor: pointer; padding: 9px 16px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 2px 2px 0 var(--ink); }
.level-tabs button[aria-pressed='true'] { background: var(--teal); color: #fff; }
.level-text { min-height: 150px; font-size: 19px; padding: 18px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; transition: opacity 0.25s; }

/* worksheet compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sheet { padding: 18px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; position: relative; font-size: 15px; }
.sheet h4 { margin: 0 0 10px; font-family: 'Fredoka', sans-serif; font-size: 18px; }
.sheet .line { height: 12px; border-bottom: 2px solid #cfcadb; margin: 10px 0; }
.sheet .box { height: 54px; border: 2px solid #cfcadb; border-radius: 8px; margin: 8px 0; }
.sheet .bad { color: #c62828; text-decoration: underline wavy #c62828; }
.sheet .tag { position: absolute; top: -14px; right: 14px; font-weight: 900; font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--ink); }
.tag.no { background: var(--berry); color: #fff; }
.tag.yes { background: var(--ok); color: #fff; }

/* proof image */
/* The proof page is portrait: cap its size so it never swallows the screen. */
.proof { padding: 14px; transform: rotate(-1.5deg); max-width: 460px; width: 100%; justify-self: center; }
/* height:auto is required: the <img> carries width/height attributes, and without
   it the browser keeps the 1411px height and stretches the page out of shape. */
.proof img { display: block; width: 100%; height: auto; border-radius: 12px; border: 2px solid var(--ink); }
img[width][height] { height: auto; }
.proof figcaption { font-size: 14px; color: var(--muted); padding: 10px 4px 0; font-weight: 700; }
.ph { display: none; } /* image slots hide themselves until a real image exists */

/* ---------- real outputs from the app ---------- */
/* A [data-gallery] block stays hidden until at least one of its images loads,
   and each .shot hides itself until its own image loads. So the page is never
   left with empty frames while the owner is still making images. */
[data-gallery] { display: none; }
[data-gallery].has { display: block; }
/* Flex, not a fixed grid: however many images exist yet (2, 3 or 4), the row
   stays centred and the cards share the width evenly — no empty column on the right. */
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
/* Galleries get more room than the text so real pages are big enough to read. */
.wrap[data-gallery], [data-gallery] > .wrap { max-width: 1340px; }
.shot { margin: 0; display: none; flex: 1 1 260px; max-width: 310px; }
.shots.four .shot { max-width: 320px; }
/* Exactly three per row (9 images → 3 × 3), bigger cards. */
.shots.three .shot { flex: 0 0 calc((100% - 48px) / 3); max-width: 380px; }
.shot.on { display: block; }
.shot .frame {
  background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 8px; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: zoom-in;
}
.shot .frame:hover { transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow-lg); }
/* contain, not cover: certificates and signs are landscape, pages are portrait —
   nothing may be cropped off a real page. */
.shot img { display: block; width: 100%; aspect-ratio: 17 / 22; object-fit: contain; border-radius: 10px; background: var(--cream); }
.shot.wide img { aspect-ratio: 22 / 17; }
.shot figcaption { font-size: 14px; font-weight: 800; text-align: center; padding: 12px 4px 0; }
.shot figcaption small { display: block; font-weight: 700; color: var(--muted); }
.badge-real {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 900; padding: 5px 12px;
  background: var(--teal); color: #fff; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink);
}
.tile .thumb { display: none; margin: -10px -10px 14px; }
.tile .thumb.on { display: block; }
.tile .thumb img { display: block; width: 100%; aspect-ratio: 17 / 22; object-fit: contain; background: var(--cream); border-radius: 12px; border: 2px solid var(--ink); }
.season-card .thumb { display: none; margin: -8px -8px 14px; }
.season-card .thumb.on { display: block; }
.season-card .thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 12px; border: 2px solid var(--ink); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 24px; background: rgb(29 26 46 / 0.86); cursor: zoom-out; }
.lightbox.open { display: grid; animation: fade 0.2s ease; }
.lightbox img { max-width: min(92vw, 900px); max-height: 82vh; border: 4px solid #fff; border-radius: 14px; box-shadow: 0 20px 60px rgb(0 0 0 / 0.5); animation: zoomin 0.25s ease; }
.lightbox p { color: #fff; font-weight: 800; text-align: center; margin: 14px 0 0; max-width: 820px; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); background: var(--sun); font-size: 22px; font-weight: 900; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoomin { from { transform: scale(0.92); opacity: 0; } }

/* steps */
.step { padding: 26px; position: relative; }
.step .n { position: absolute; top: -22px; left: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--tangerine); border: 3px solid var(--ink); display: grid; place-items: center; font-family: 'Fredoka', sans-serif; font-size: 22px; font-weight: 700; box-shadow: 2px 2px 0 var(--ink); }

/* price */
.price-card { max-width: 640px; margin: 0 auto; padding: 0; overflow: hidden; text-align: center; }
.price-top { background: var(--grape); color: #fff; padding: 26px; border-bottom: 3px solid var(--ink); }
.price-top h2 { color: #fff; margin: 0; }
.price-body { padding: 30px 28px 36px; }
.price { font-family: 'Fredoka', sans-serif; font-size: 84px; font-weight: 700; line-height: 1; }
.price small { font-size: 28px; vertical-align: top; }
.included { text-align: left; margin: 22px auto 26px; max-width: 470px; }

/* guarantee + faq */
.guarantee { display: flex; gap: 22px; align-items: center; padding: 30px; border-color: var(--ok); }
.seal { flex: 0 0 110px; height: 110px; border-radius: 50%; background: var(--ok); color: #fff; border: 3px solid var(--ink); display: grid; place-items: center; text-align: center; font-family: 'Fredoka', sans-serif; font-weight: 700; line-height: 1.05; font-size: 20px; box-shadow: var(--shadow); animation: spin-slow 18s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
details { border-bottom: 2px dashed #d8cfbd; padding: 16px 0; }
details summary { cursor: pointer; font-weight: 900; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details summary::after { content: '+'; font-size: 26px; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 0; color: var(--muted); }

/* sticky mobile buy bar */
.sticky-buy { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: none; transform: translateY(140%); transition: transform 0.3s; }
.sticky-buy.show { transform: none; }
.sticky-buy .btn { width: 100%; font-size: 19px; padding: 14px; }

footer { padding: 46px 0 120px; text-align: center; font-size: 14px; color: var(--muted); border-top: 3px solid var(--ink); background: var(--paper); }
footer a { color: var(--muted); margin: 0 4px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* wavy section dividers */
.band { background: var(--paper); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.band.dark { background: var(--ink); color: #fff; }
.band.dark .muted, .band.dark .lede { color: #cfc9e0; }
.band.grape { background: var(--grape); color: #fff; }
.band.grape .lede { color: #ece6ff; }

@media (max-width: 860px) {
  .shot, .shots.four .shot, .shots.three .shot { flex-basis: calc(50% - 12px); max-width: calc(50% - 12px); }
  .hero-grid, .feature, .compare { grid-template-columns: 1fr; }
  .feature.flip > :first-child { order: 0; }
  .mock { transform: none; }
  .sticky-buy { display: block; }
  .guarantee { flex-direction: column; text-align: center; }
  section { padding: 58px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
