/* Landing page polish (second design round, 15 Oct 2026). Loaded by index.html only; tokens live in styles.css. */

/* Small label above a section heading. */
.eyebrow { display: table; margin: 0 auto 12px; background: #E6EEFF; color: var(--blue); font: 600 .82rem 'Fredoka', sans-serif;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.mint .eyebrow { background: rgba(255, 255, 255, .75); color: #1F8A4C; }
.cream .eyebrow { background: rgba(255, 199, 44, .25); color: #8A5A00; }

/* Wavy top edge: the section's own background, cut to a wave and lifted above the section. */
.wave::before { content: ''; position: absolute; left: 0; right: 0; top: -38px; height: 40px; background: inherit; pointer-events: none;
  -webkit-mask: var(--wave) center / 100% 100% no-repeat; mask: var(--wave) center / 100% 100% no-repeat; }
:root { --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C180 2 360 2 540 18s360 20 540 4 270-20 360-6v26z'/%3E%3C/svg%3E"); }

/* Sections with decorated or gradient backgrounds give the wave their plain base colour instead. */
.mint.wave::before { background: var(--mint); }
.cta.wave::before { background: var(--blue); }

/* Hero stickers on the worksheet fan. */
.sticker { position: absolute; z-index: 3; font-family: 'Fredoka', sans-serif; box-shadow: 0 10px 24px rgba(18, 35, 90, .18); }
.sticker-count { right: 2%; top: -6px; width: 112px; height: 112px; border-radius: 50%; background: var(--yellow); color: var(--navy);
  display: grid; place-content: center; text-align: center; font-size: .82rem; line-height: 1.1; transform: rotate(10deg); animation: bob 5s ease-in-out infinite; }
.sticker-count b { font-size: 2rem; display: block; }
.sticker-key { left: 4%; bottom: 18px; background: var(--white); color: #1F8A4C; border: 2px solid #BFE5CF; border-radius: 999px; padding: 8px 16px; font-size: .95rem; transform: rotate(-4deg); }
@keyframes bob { 50% { transform: rotate(10deg) translateY(-8px); } }

/* Quick facts, overlapping the bottom of the hero. */
.facts { position: relative; z-index: 2; margin: -34px 0 58px; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { background: var(--white); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); border-bottom: 4px solid var(--set); text-align: center; }
.fact b { display: block; font: 600 2rem/1.1 'Fredoka', sans-serif; color: var(--set); }
.fact span { color: var(--muted); font-weight: 600; font-size: .92rem; }

/* Benefit sections */
.cream .card { transition: transform .2s, box-shadow .2s; }
.cream .card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(18, 35, 90, .14); }
.cream .ico, .easy .ico { transition: transform .2s; }
.cream .card:hover .ico { transform: rotate(-8deg) scale(1.08); }
.mint { background: radial-gradient(circle at 6% 30%, rgba(255, 255, 255, .55) 0 90px, transparent 91px),
  radial-gradient(circle at 94% 75%, rgba(255, 255, 255, .55) 0 110px, transparent 111px), var(--mint); }

/* "Which set?" guide */
.guide { background: var(--white); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 30px; }
.guide p { font-weight: 700; color: var(--navy); margin-bottom: 12px; text-align: center; }
.guide-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.guide-chips a { display: grid; gap: 2px; text-decoration: none; padding: 12px 14px; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--set) 30%, #fff);
  background: color-mix(in srgb, var(--set) 8%, #fff); transition: transform .15s, border-color .15s; }
.guide-chips a:hover { transform: translateY(-3px); border-color: var(--set); }
.guide-chips b { color: var(--navy); font-size: .95rem; }
.guide-chips span { color: var(--set); font-weight: 700; font-size: .88rem; }

/* Product cards: tinted picture area in the set colour; a pulse when reached from the guide. */
.product, #pakej { scroll-margin-top: 90px; }
.product .previews { background: color-mix(in srgb, var(--set) 12%, #fff); margin: -26px -26px 16px; padding: 20px 20px 16px; border-radius: 12px 12px 0 0; }
.product .previews img { transition: transform .2s; }
.product:hover .previews img:first-child { transform: rotate(-3deg) scale(1.04); }
.product:target, #pakej:target { animation: ring 1.8s ease-out 2; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--set, var(--yellow)) 55%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }

/* Savings badges on the combo and bundle. */
.save { display: inline-block; background: #E3F6EA; color: #1F8A4C; font-weight: 800; font-size: .85rem; border-radius: 999px; padding: 4px 12px; margin-bottom: 6px; }
.save-yellow { background: var(--yellow); color: var(--navy); }
.bundle > div:last-child { text-align: right; }

/* FAQ: + turns into × when open. */
summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
/* The plus is two drawn bars, not a "+" glyph: a glyph sits off-centre because of the font's line spacing. */
summary::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; transition: transform .2s;
  background: linear-gradient(var(--blue), var(--blue)) center / 12px 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2px 12px no-repeat, #E6EEFF; }
summary:focus { outline: none; }
summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
details[open] summary::after { transform: rotate(45deg); }

/* Phones: buy bar once the hero is gone (app.ts toggles .on), WhatsApp button moves up above it. */
.buybar { display: none; }
@media (max-width: 880px) {
  .facts .wrap, .guide-chips { grid-template-columns: repeat(2, 1fr); }
  .facts { margin-top: -24px; }
  .sticker-count { width: 92px; height: 92px; }
  .sticker-count b { font-size: 1.6rem; }
  .bundle > div:last-child { text-align: left; }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(18, 35, 90, .96); color: var(--white);
    transform: translateY(110%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .buybar.on { transform: none; visibility: visible; }
  .buybar b { color: var(--yellow); }
  .buybar .btn { padding: 12px 18px; font-size: .95rem; }
  body:has(.buybar.on) .wa-float { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticker-count, .product:target, #pakej:target { animation: none; }
  .buybar, .guide-chips a, .cream .card { transition: none; }
}
