/* Brain Fizz Club: site styles. Brand kit v1 only.
   Layout: one centred column (max 1120px), full-width colour bands separated by the yellow noodle line. */
@font-face { font-family: "Bagel Fat One"; src: url("../fonts/bagel-fat-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; font-weight: 400; src: url("../fonts/nunito-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; font-weight: 700; src: url("../fonts/nunito-700.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; font-weight: 800; src: url("../fonts/nunito-800.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; font-weight: 900; src: url("../fonts/nunito-900.woff2") format("woff2"); font-display: swap; }

:root {
  --grape: #7B3FF2; --pink: #FF4F9A; --lime: #B8F23A; --yel: #FFD23F; --cream: #FFF6E9; --ink: #1B1A1F;
  --lilac: #F7F4FF; --grey: #5E5B66; --line: #B4B1BA; --night: #2B1260; --white: #FFFFFF;
  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 22px; --shadow: 6px 6px 0 var(--ink);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
[hidden] { display: none !important; }
main { overflow-x: clip; }
.inside > * { min-width: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(34px, 4.6vw, 54px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.kicker { font-weight: 900; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--grape); }
.lede { font-size: clamp(19px, 2vw, 22px); max-width: 58ch; }
.muted { color: var(--grey); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yel); padding: 8px 14px; border: 3px solid var(--ink); border-radius: 12px; z-index: 100; font-weight: 900; }
.skip:focus { left: 12px; }
:focus-visible { outline: 4px solid var(--grape); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 28px;
  border: 3px solid var(--ink); border-radius: 999px; box-shadow: 5px 5px 0 var(--ink); background: var(--white); color: var(--ink);
  font: 900 18px/1.1 var(--body); text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .15s; white-space: nowrap; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn-lime { background: var(--lime); } .btn-pink { background: var(--pink); color: var(--white); } .btn-yel { background: var(--yel); }
.btn-ghost { background: transparent; box-shadow: none; } .btn-ghost:hover { background: var(--white); box-shadow: 5px 5px 0 var(--ink); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 16px; box-shadow: 4px 4px 0 var(--ink); }
.btn .flag { font-size: 20px; }
.btns { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 3px solid var(--ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 28px; }
.logo svg { width: 46px; height: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { font-weight: 800; font-size: 17px; text-decoration: none; padding: 10px 14px; border-radius: 999px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background: var(--white); box-shadow: inset 0 0 0 3px var(--ink); }
.menu-btn { display: none; }
@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px max(20px, env(safe-area-inset-left, 0px)) 22px;
    background: var(--cream); border-bottom: 3px solid var(--ink); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 16px; font-size: 19px; }
  .nav .btn { margin-top: 8px; }
}

/* ---------- noodle line divider ---------- */
.noodle-line { display: block; width: 100%; height: 34px; background: url("../img/noodle-line.svg") repeat-x center / auto 34px; }

/* ---------- bands ---------- */
section { padding-block: clamp(64px, 9vw, 110px); }
.band-grape { background: var(--grape); color: var(--lilac); }
.band-grape h2, .band-grape h1 { color: var(--cream); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }
.band-grape .kicker { color: var(--lime); }
.band-pink { background: var(--pink); }
.band-white { background: var(--white); }
.dots { background-image: radial-gradient(rgba(255,255,255,.14) 2px, transparent 2.6px); background-size: 28px 28px; }
.dots-pink { background-image: radial-gradient(rgba(255,79,154,.18) 2px, transparent 2.6px); background-size: 28px 28px; }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 760px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 90px) clamp(56px, 8vw, 100px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 .fz { color: var(--pink); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); display: inline-block; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-art { position: relative; justify-self: center; width: min(460px, 100%); }
.hero-art .noodle { width: 100%; animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 80%; }
.sticky-note { position: absolute; left: -8%; bottom: 6%; background: var(--yel); border: 3px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow);
  padding: 14px 18px; font-weight: 900; font-size: 17px; line-height: 1.25; transform: rotate(-6deg); }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 18px; font-weight: 800; font-size: 16px; color: var(--grey); }
.ticks span::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 6px; background: var(--lime); border: 2px solid var(--ink); color: var(--ink); font-size: 13px; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; width: min(300px, 80%); } .sticky-note { left: -4%; font-size: 15px; } }

/* ---------- tabs game ---------- */
.game { display: grid; grid-template-columns: 1fr 260px; gap: 34px; align-items: center; }
.tabbar { display: flex; flex-wrap: wrap; gap: 12px; }
.tab { display: inline-flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink);
  border-radius: 18px 18px 8px 8px; box-shadow: 4px 4px 0 var(--ink); font-weight: 800; font-size: 17px; transition: transform .25s ease, opacity .25s ease; }
.tab button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ink); background: var(--pink); color: var(--white); font: 900 16px/1 var(--body); cursor: pointer; display: grid; place-items: center; flex: none; }
.tab button:hover { background: var(--yel); color: var(--ink); }
.tab.closing { transform: scale(.6) rotate(-6deg); opacity: 0; }
.game-side { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.game-side .noodle { width: 200px; }
.counter { font-family: var(--display); font-size: 26px; color: var(--cream); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.game-done { display: none; flex-direction: column; gap: 18px; align-items: flex-start; }
.game.done .game-done { display: flex; }
.game.done .tabbar { display: none; }
@media (max-width: 760px) { .game { grid-template-columns: 1fr; } .game-side { order: -1; } .game-side .noodle { width: 150px; } }

/* ---------- inside the book ---------- */
.inside { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.sec-list { display: flex; flex-direction: column; gap: 10px; }
.sec-btn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 16px; border: 3px solid var(--ink); border-radius: 16px; background: var(--white);
  font: 800 17px/1.2 var(--body); color: var(--ink); cursor: pointer; transition: transform .12s, box-shadow .12s, background .15s; }
.sec-btn .n { font-family: var(--display); font-size: 22px; color: var(--pink); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; min-width: 32px; }
.sec-btn:hover { transform: translateX(4px); }
.sec-btn[aria-selected="true"] { background: var(--lime); box-shadow: 4px 4px 0 var(--ink); }
.sec-panel { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 30px; align-items: start; background: var(--white); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; }
.sec-panel img { border: 2px solid var(--ink); border-radius: 8px; width: 100%; height: auto; aspect-ratio: 7.5 / 9.25; object-fit: cover; background: #fff; }
.sec-panel .txt { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.use-when { display: inline-block; background: var(--yel); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 900; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--lilac); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 14px; }
@media (max-width: 900px) { .inside { grid-template-columns: 1fr; } .sec-list { flex-direction: row; overflow-x: auto; padding-bottom: 8px; } .sec-btn { width: auto; white-space: nowrap; } .sec-panel { grid-template-columns: 1fr; } .sec-panel img { max-width: 320px; } }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--white); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card .big { font-family: var(--display); font-size: 46px; line-height: 1; color: var(--pink); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.band-grape .card { color: var(--ink); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------- free printable band ---------- */
.free { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.free-pages { position: relative; height: 420px; }
.free-pages img { position: absolute; width: 58%; border: 3px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow); background: #fff; }
.free-pages img:nth-child(1) { left: 4%; top: 30px; transform: rotate(-6deg); }
.free-pages img:nth-child(2) { right: 4%; top: 0; transform: rotate(5deg); }
@media (max-width: 860px) { .free { grid-template-columns: 1fr; } .free-pages { height: 340px; } }

/* ---------- blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; background: var(--white); border: 3px solid var(--ink); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.post-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.post-card .tag { align-self: flex-start; font-weight: 900; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; background: var(--lime); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; }
.post-card h3 { font-size: 26px; }
.post-card .more { margin-top: auto; font-weight: 900; color: var(--grape); }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }

/* ---------- insta strip ---------- */
.insta { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.insta a { display: block; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; transition: transform .15s; }
.insta a:hover { transform: rotate(-2deg) scale(1.03); }
.insta img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 760px) { .insta { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.faq details { background: var(--white); border: 3px solid var(--ink); border-radius: 18px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 900; font-size: 19px; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 28px; line-height: 1; color: var(--pink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--grey); }

/* ---------- book page ---------- */
.book-hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.cover { width: min(400px, 100%); justify-self: center; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 12px 12px 0 var(--ink); transform: rotate(-3deg); }
.price { font-family: var(--display); font-size: 40px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery img { width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 8px; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.gallery figcaption { font-weight: 800; font-size: 15px; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.specs div { background: var(--white); border: 3px solid var(--ink); border-radius: 16px; padding: 16px; }
.specs b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; }
.for-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.for-list li { list-style: none; background: var(--white); border: 3px solid var(--ink); border-radius: 16px; padding: 14px 18px; font-weight: 800; }
.for-list { padding: 0; margin: 0; }
@media (max-width: 860px) { .book-hero { grid-template-columns: 1fr; } .gallery, .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .for-list { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.article { max-width: 720px; margin: 0 auto; }
.article h1 { font-size: clamp(38px, 5.4vw, 60px); }
.article .meta { color: var(--grey); font-weight: 800; font-size: 15px; }
.article .body { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; font-size: 19px; }
.article .body h2 { font-size: clamp(28px, 3.4vw, 36px); margin-top: 18px; }
.article .body ul { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.article .body li { position: relative; padding-left: 34px; }
.article .body li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--pink); border: 3px solid var(--ink); }
.callout { background: var(--yel); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); padding: 20px 24px; font-weight: 700; }
.note { background: var(--lilac); border: 2px dashed var(--grey); border-radius: 16px; padding: 16px 20px; font-size: 15px; color: var(--grey); }
.crumbs { font-weight: 800; font-size: 15px; color: var(--grey); }
.crumbs a { color: var(--grape); }

/* ---------- official Amazon badges (unaltered, clear space, light background) ---------- */
.amz { display: flex; flex-direction: column; gap: 10px; }
.amz:not(:has(a:not([hidden]))) { display: none; }
.amz-label { font-weight: 900; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.amz-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.amz-badges a { display: inline-block; padding: 14px 18px; background: var(--white); border: 2px solid #E4DED2; border-radius: 14px; transition: transform .12s; }
.amz-badges a:hover { transform: translateY(-2px); }
.amz-badges img { height: 34px; width: auto; }
.band-white .amz, section[style*="center"] .amz { align-items: center; }

/* ---------- footer ---------- */
.site-foot { background: var(--night); color: var(--lilac); padding-block: 60px 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-foot .logo { color: var(--cream); }
.site-foot h4 { margin: 0 0 12px; font-weight: 900; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-foot a { text-decoration: none; font-weight: 700; } .site-foot a:hover { color: var(--yel); }
.foot-small { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; color: #CFC6E8; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

@media (max-width: 520px) { .btn { white-space: normal; text-align: center; padding: 14px 22px; } .btns .btn { flex: 1 1 100%; } .free-pages img { width: 54%; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
