:root {
  --primary: #14324A;
  --ink: #2A2320;
  --muted: #6B5F58;
  --cream: #FFF8F1;
  --sand: #F6EBDD;
  --coral: #FF7A59;
  --coral-ink: #C74A2C;
  --mint: #2BB3A3;
  --mint-ink: #15796D;
  --sun: #FFC857;
  --mint-soft: #E4F6F3;
  --coral-soft: #FFEDE7;
  --line: #EADFD3;
  --bg: #FFFDF9;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(42, 35, 32, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--mint-ink); }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--primary); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
.eyebrow { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-ink); }
.section { padding: 80px 0; }
.section.soft { background: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 36px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Header */
.topbar { background: var(--primary); color: #F4EEE8; font-size: .85rem; text-align: center; padding: 8px 12px; }
.topbar a { color: #fff; }
.header { position: sticky; top: 0; z-index: 10; background: rgba(255,253,249,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.logo { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--primary); text-decoration: none; font-size: 1.15rem; }
.logo span { color: var(--coral); }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--coral); transition: width .25s; }
.nav a:hover::after { width: 100%; }
.cart-link { font-weight: 700; color: var(--primary); text-decoration: none; }

/* Buttons */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: .98rem; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(255,122,89,.35); }
.btn-primary:hover { background: var(--coral-ink); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--sand); padding: 100px 0 90px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.hero::before { width: 420px; height: 420px; background: var(--sun); top: -120px; left: -100px; }
.hero::after { width: 380px; height: 380px; background: var(--mint); bottom: -140px; right: -80px; animation-delay: -6s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.08); } }
.hero .container { position: relative; z-index: 1; }
/* Faded photo backdrop behind the book cover */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg img { position: absolute; object-fit: cover; opacity: .32; filter: saturate(.85) blur(1px); -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 35%, transparent 72%); }
.hero-bg-park { width: 62%; height: 100%; top: 0; right: -6%; }
.hero-bg-table { width: 48%; height: 70%; bottom: -8%; left: -8%; opacity: .24; }
@media (max-width: 880px) { .hero-bg-table { display: none; } .hero-bg-park { width: 100%; right: 0; opacity: .18; } }
.hero h1 { color: var(--primary); max-width: 14ch; }
.hero .eyebrow { color: var(--coral-ink); }
.hero p.lead { font-size: 1.15rem; color: var(--ink); max-width: 58ch; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-points { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-points span { background: #fff; border-radius: 999px; padding: 8px 14px; font-size: .9rem; box-shadow: var(--shadow); }
.hero-points span::before { content: "✓ "; color: var(--mint-ink); font-weight: 800; }
.hero-cover { width: min(380px, 100%); justify-self: end; border-radius: 16px; box-shadow: 0 30px 60px rgba(20,50,74,.25); transform: rotate(-2deg); transition: transform .35s ease; }
.hero-cover:hover { transform: rotate(0deg) translateY(-4px); }

/* Categories */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat { border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); background: #fff; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; border: 1px solid var(--line); }
.cat:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(42,35,32,.14); }
.cat:nth-child(1) { border-top: 5px solid var(--sun); }
.cat:nth-child(2) { border-top: 5px solid var(--mint); }
.cat:nth-child(3) { border-top: 5px solid var(--coral); }
.cat:nth-child(4) { border-top: 5px solid var(--primary); }
.cat .num { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--coral-ink); font-size: 1.4rem; }
.cat h3 { margin: 6px 0 4px; }
.cat p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Quiz */
.quiz { background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.quiz-q { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--primary); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 2px solid var(--line); background: var(--bg); padding: 10px 16px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--mint); }
.chip.on { background: var(--mint); border-color: var(--mint); color: #fff; }
.quiz-result { background: var(--mint-soft); border-radius: 18px; padding: 26px; min-height: 180px; }
.quiz-result strong { color: var(--mint-ink); font-family: 'Plus Jakarta Sans', sans-serif; }
.quiz-step { display: none; }
.quiz-step.on { display: block; animation: rise .4s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Challenge */
.challenge { background: var(--primary); color: #F4EEE8; border-radius: 24px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.challenge h2, .challenge h3 { color: #fff; }
.challenge p { color: #CFE0EA; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,255,255,.4); background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: all .25s; }
.day:hover { transform: scale(1.08); }
.day.done { background: var(--sun); border-style: solid; border-color: var(--sun); color: var(--primary); }
.progress { height: 10px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; margin-top: 22px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sun), var(--coral)); transition: width .4s ease; }
.challenge-msg { margin-top: 14px; font-weight: 600; color: var(--sun); min-height: 1.5em; }
.reset { background: none; border: none; color: #CFE0EA; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; margin-top: 10px; }

/* Quick answer block (GEO: direct answer under the heading) */
.quick-answer { background: #fff; border-left: 4px solid var(--mint); padding: 14px 18px; border-radius: 12px; color: var(--ink); font-size: .98rem; }

/* Photos placed in context */
.banner { margin: 0 0 40px; position: relative; overflow: hidden; border-radius: 24px; box-shadow: var(--shadow); background: var(--sand); }
.banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; transition: transform .6s ease; }
.banner:hover img { transform: scale(1.03); }
.banner figcaption { position: absolute; left: 20px; bottom: 20px; background: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--primary); box-shadow: var(--shadow); max-width: calc(100% - 40px); }
.challenge-photo { margin: 0 0 22px; border-radius: 18px; overflow: hidden; }
.challenge-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Shop */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px; }
.card { border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(42,35,32,.14); }
.card .cover { background: var(--sand); aspect-ratio: 5 / 8; object-fit: cover; width: 100%; }
.card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card .meta { font-size: .78rem; font-weight: 800; color: var(--mint-ink); text-transform: uppercase; letter-spacing: .08em; }
.card h3 { margin: 6px 0 6px; }
.card .sub { font-size: .92rem; color: var(--muted); margin-bottom: 12px; }
.card .price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-top: auto; }
.card .format { font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.card .btn { width: 100%; text-align: center; }
.badge-featured { display: inline-block; background: var(--sun); color: var(--primary); font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; margin-bottom: 6px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; margin-bottom: 14px; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust .item { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--mint); }
.disclaimer { margin-top: 36px; background: var(--coral-soft); border-left: 4px solid var(--coral); padding: 18px 22px; border-radius: 12px; font-size: .93rem; }

/* Signup */
.signup { background: linear-gradient(135deg, var(--primary), #1F4A6E); color: #fff; border-radius: 24px; padding: 52px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.signup h2 { color: #fff; }
.signup p { color: #D5E2EE; }
.signup form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type="email"] { flex: 1; min-width: 220px; padding: 15px 20px; border-radius: 999px; border: none; font: inherit; background: #fff; }
.signup .note { font-size: .8rem; color: #AFC4D6; margin-top: 10px; }
.form-msg { margin-top: 10px; font-weight: 600; color: var(--sun); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* Faded photo behind a section (used in About) */
.has-bg { position: relative; overflow: hidden; }
.has-bg > .container { position: relative; z-index: 1; }
.section-bg { position: absolute; right: -3%; top: 50%; transform: translateY(-50%); width: 46%; height: 115%; object-fit: cover; opacity: .28; pointer-events: none; z-index: 0; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%); }
@media (max-width: 880px) { .section-bg { width: 100%; right: 0; opacity: .14; } }

/* FAQ */
details { background: #fff; border-radius: 14px; padding: 16px 20px; border: 1px solid var(--line); margin-bottom: 12px; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--coral); font-weight: 800; font-size: 1.2rem; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
.footer { background: var(--primary); color: #C9D6E0; padding: 60px 0 32px; font-size: .92rem; }
.footer a { color: #F4EEE8; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2A4A66; font-size: .8rem; color: #8FA7BB; }

@media (max-width: 880px) {
  .categories { grid-template-columns: repeat(2, 1fr); }
  .steps, .trust { grid-template-columns: 1fr; }
  .banner img { aspect-ratio: 16 / 9; }
  .hero-grid, .quiz, .challenge, .signup, .about, .footer-grid { grid-template-columns: 1fr; }
  .hero-cover { justify-self: center; }
  .nav { display: none; }
  .signup, .quiz, .challenge { padding: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
