/* Chanukah Escape landing page: bright and playful (cream paper, bold blue, orange flame, sticker-style cards).
   The navy-and-gold version is saved in ../chanukah-escape-site-backup-navy/. The game itself keeps its own look. */
:root {
  --paper: #fff7e6;
  --card: #ffffff;
  --ink: #1b2145;
  --muted: #555a78;
  --blue: #2a4bd7;
  --blue-deep: #1a2f96;
  --sky: #dfe8ff;
  --orange: #ff7a1a;
  --orange-deep: #c2410c;
  --sun: #ffc93c;
  --sun-soft: #fff0bf;
  --pink: #e8457c;
  --green: #1f9d62;
  --line: #1b2145;
  --display: "Baloo 2", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Nunito", -apple-system, "Segoe UI", Roboto, sans-serif;
  --pop: 4px 4px 0 var(--line);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font: 600 17px/1.55 var(--body);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--blue); font-weight: 800; }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }
section, section.wrap { margin: 52px auto; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 .45em; color: var(--ink); }
h1 { font-size: clamp(38px, 10.5vw, 62px); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 7.5vw, 38px); font-weight: 800; }
h2::after { content: ""; display: block; width: 64px; height: 8px; border-radius: 99px; background: var(--sun); margin-top: 8px; }
h3 { font-size: 24px; font-weight: 800; }
/* the highlighted words in the headline: orange, with a yellow marker swipe behind */
.brand img { border-radius: 7px; }
.gold { -webkit-box-decoration-break: clone; box-decoration-break: clone; color: var(--orange-deep); background: linear-gradient(transparent 62%, var(--sun) 62% 92%, transparent 92%); padding: 0 .08em; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 8px; font: 800 20px var(--display); color: var(--ink); text-decoration: none; }
.top-cta { font: 800 15px var(--body); color: #fff; background: var(--blue); padding: 8px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap; border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line); }

/* Hero */
section.hero { margin-top: 18px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; font-weight: 900; color: var(--ink); background: var(--sun); border: 2px solid var(--line); border-radius: 14px; padding: 4px 12px; margin: 0 0 14px; transform: rotate(-1.5deg); }
.lede { font-size: 19px; margin: 0 0 18px; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; color: var(--muted); }
.facts li { display: flex; gap: 10px; }
.facts .ico { color: var(--orange); font-size: 1.1em; line-height: 1.35; }

.btn {
  display: block; width: 100%; text-align: center; cursor: pointer;
  font: 800 21px var(--display); padding: 15px 20px 13px; border-radius: 18px; border: 3px solid var(--line);
  text-decoration: none; transition: transform .08s, box-shadow .08s;
}
.btn.primary { color: #fff; background: var(--blue); box-shadow: 0 6px 0 var(--line); }
.btn.primary:hover { background: var(--blue-deep); }
.btn.primary:active, .btn.secondary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--line); }
.btn.secondary { margin-top: 16px; color: var(--ink); background: var(--sun); box-shadow: 0 6px 0 var(--line); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.price-line { text-align: center; margin: 14px 0 0; color: var(--muted); }

/* Pricing: a big sticker */
.price-box { text-align: center; margin: 0 0 22px; background: var(--card); border: 3px solid var(--line); border-radius: 24px; padding: 18px 16px 16px; box-shadow: var(--pop); }
.price { margin: 0; font-family: var(--display); display: flex; justify-content: center; align-items: baseline; gap: 12px; }
.price .was { font-size: 26px; font-weight: 700; color: var(--muted); text-decoration-thickness: 3px; text-decoration-color: var(--pink); }
.price .now { font-size: 60px; line-height: 1; font-weight: 800; color: var(--orange-deep); }
.price .cur { font: 800 16px var(--body); color: var(--muted); margin-left: -6px; }
.price-what { margin: 6px 0 0; }
.price-note { display: inline-block; margin: 10px 0 0; font-size: 13px; font-weight: 900; color: #fff; background: var(--pink); border-radius: 999px; padding: 4px 12px; text-transform: uppercase; letter-spacing: .08em; transform: rotate(-1.5deg); }
.promo { margin: 12px auto 0; display: table; padding: 7px 16px; border: 2px dashed var(--line); border-radius: 12px; background: var(--sun-soft); color: var(--ink); }
.promo .code { font-family: ui-monospace, Menlo, monospace; font-size: 1.1em; color: var(--blue-deep); letter-spacing: .08em; user-select: all; }
.free-note { text-align: center; color: var(--muted); font-size: 15px; margin: 14px 0 0; }
[hidden] { display: none !important; }

/* Countdown */
.countdown { margin-top: 34px; padding: 18px 12px; border: 3px solid var(--line); border-radius: 24px; background: var(--sky); text-align: center; box-shadow: var(--pop); }
.cd-label { margin: 0 0 10px; font: 800 22px var(--display); color: var(--ink); }
.cd-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-row div { background: var(--card); border-radius: 16px; padding: 10px 4px 8px; border: 2px solid var(--line); }
.cd-row b { display: block; font: 800 clamp(28px, 8.5vw, 42px)/1 var(--display); color: var(--blue); font-variant-numeric: tabular-nums; }
.cd-row span { font-size: 13px; font-weight: 800; color: var(--muted); }
.cd-note { margin: 10px 0 0; font-size: 14px; color: var(--ink); }

/* Placeholders: obvious on purpose so nothing ships unfilled */
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 3px dashed var(--line); border-radius: 18px; color: var(--ink);
  background: repeating-linear-gradient(45deg, var(--sun-soft) 0 12px, transparent 12px 24px);
  font-weight: 900; letter-spacing: .06em; padding: 16px;
}
.placeholder small { font-weight: 600; letter-spacing: 0; color: var(--muted); }
.placeholder.media { aspect-ratio: 9 / 16; max-height: 70vh; margin: 0 auto; width: min(100%, 360px); }
.demo { text-align: center; }
.demo h2::after { margin-left: auto; margin-right: auto; }
.demo-video { width: min(100%, 340px); height: auto; aspect-ratio: 9 / 16; margin: 0 auto; border: 3px solid var(--line); border-radius: 24px; box-shadow: var(--pop); background: var(--paper); }
.demo-note { margin-top: 14px; font-weight: 700; color: var(--muted); }
.placeholder-inline { border: 2px dashed var(--line); border-radius: 6px; padding: 0 6px; font-weight: 800; }

/* Steps: numbered circles */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(step); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line); background: var(--sun); display: grid; place-items: center; font: 800 24px/1 var(--display); padding-top: 3px; }
.steps li:nth-child(2)::before { background: #ffd0bd; }
.steps li:nth-child(3)::before { background: var(--sky); }
.steps li:nth-child(4)::before { background: #c9f0db; }
.steps li > b { display: block; font: 800 20px/1.2 var(--display); grid-column: 2; }

/* Selling points */
.facts.big { color: var(--ink); gap: 12px; }
.facts.big li { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.facts.big b { color: var(--blue-deep); }

/* Game tiers: one colour per age group */
.games { display: grid; gap: 12px; }
.card { background: var(--card); border: 3px solid var(--line); border-radius: 24px; padding: 20px 18px; box-shadow: var(--pop); }
.card p { margin: 0; color: var(--muted); }
.tier { background: var(--card); border: 3px solid var(--line); border-radius: 24px; margin-bottom: 18px; overflow: hidden; box-shadow: var(--pop); }
.tier-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 12px 18px 8px; background: var(--sun); border-bottom: 3px solid var(--line); }
.tier:nth-of-type(2) .tier-head { background: var(--sky); }
.tier:nth-of-type(3) .tier-head { background: #ffd3e1; }
.tier-head h3 { margin: 0; }
.tier-head span { color: var(--ink); font-size: 15px; font-weight: 800; }
.game-list { list-style: none; margin: 0; padding: 4px 18px; }
.game-list li { padding: 12px 0 10px; border-top: 2px dotted #c9c4b4; font: 700 21px/1.2 var(--display); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.game-list li:first-child { border-top: 0; }
.free-tag { font: 900 13px var(--body); color: #fff; background: var(--green); padding: 4px 11px; border-radius: 999px; text-decoration: none; border: 2px solid var(--line); }
.levels { display: grid; gap: 8px; margin-top: 16px; }
.levels div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 2px dotted #c9c4b4; }
.levels b { font-family: var(--display); font-size: 19px; }
.levels span { color: var(--muted); font-size: 16px; }

/* Screenshots */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.shots > * { scroll-snap-align: start; aspect-ratio: 9 / 19.5; border-radius: 22px; }
.shots img.shot { width: 100%; height: 100%; object-fit: cover; border: 3px solid var(--line); }

/* Signup */
.signup { background: var(--sky); }
.signup h2::after { background: var(--orange); }
.signup > p { color: var(--ink); }
form { display: grid; gap: 14px; margin-top: 12px; }
.field { display: grid; gap: 6px; font-weight: 800; }
.field em { font-weight: 600; color: var(--muted); font-style: normal; }
input[type=email], input[type=text], select {
  width: 100%; font: 600 17px var(--body); color: var(--ink);
  background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 13px 14px;
  -webkit-appearance: none; appearance: none;
}
input::placeholder { color: #8a8ea6; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input:focus, select:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 16px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); }
.sender { font-size: 14px; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
details { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 13px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font: 800 19px/1.25 var(--display); list-style-position: outside; margin-left: 20px; }
summary::marker { color: var(--orange); }
details[open] { background: var(--sun-soft); }
details p { color: var(--ink); margin: 8px 0 0; }

.foot { padding-bottom: 40px; color: var(--muted); font-size: 14px; text-align: center; }

/* Plain text pages (privacy, thanks) */
.page { margin-top: 24px; }
.page p, .page li { color: var(--muted); }
.page strong { color: var(--ink); }
.page .btn { margin-top: 20px; }

.stripe-buy { display: flex; justify-content: center; margin-bottom: 4px; }
.stripe-buy stripe-buy-button { display: block; width: 100%; }

@media (min-width: 720px) {
  .games { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .btn { width: auto; display: inline-block; min-width: 320px; }
  .hero .btn, .hero .btn.secondary { display: block; margin-left: auto; margin-right: auto; width: 380px; }
  .price-box { max-width: 460px; margin-left: auto; margin-right: auto; }
  .facts.big { grid-template-columns: 1fr 1fr; }
}
/* confetti dots, only on wide screens where they sit in the empty side margins */
@media (min-width: 900px) {
  body {
    background-image:
        radial-gradient(circle 7px at 6% 120px, var(--sun) 98%, transparent),
        radial-gradient(circle 5px at 93% 90px, var(--pink) 98%, transparent),
        radial-gradient(circle 6px at 94% 330px, var(--blue) 98%, transparent),
        radial-gradient(circle 4px at 5% 420px, var(--orange) 98%, transparent),
        radial-gradient(circle 5px at 95% 560px, var(--sun) 98%, transparent),
        radial-gradient(circle 4px at 3% 700px, var(--green) 98%, transparent);
    background-repeat: no-repeat;
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
