/* Quiz Aloud — site styles (same bones as photorelato.com, sunnier paint) */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900&display=swap');

:root {
  --bg: #fbfaf6;
  --bg-card: #ffffff;
  --line: #e6e4dc;
  --ink: #14245a;          /* the icon's navy outline */
  --ink-dim: #4f5878;
  --ink-faint: #858aa0;
  --blue: #2c6fdc;
  --blue-light: #4fa2ee;
  --blue-deep: #173fb0;
  --yellow: #ffc414;
  --yellow-light: #ffe443;
  --orange: #ee8010;
  --peach: #ffb27a;
  --good: #2fb85a;
  --oops: #f08a1c;
  --reveal: #2c6fdc;
  --tint: rgba(20, 36, 90, .05);
  --shadow: 0 2px 6px rgba(20,36,90,.05), 0 18px 44px -22px rgba(20,36,90,.28);
  --pop: 0 4px 0 var(--ink);
  --radius: 22px;
  --max: 1060px;
  /* category tints, as in the app */
  --c-green: 47, 184, 90; --c-orange: 240, 138, 28; --c-purple: 150, 90, 230; --c-blue: 44, 111, 220;
  --c-mint: 0, 190, 170; --c-teal: 40, 170, 200; --c-indigo: 90, 90, 220; --c-red: 235, 70, 70; --c-pink: 240, 90, 160;
  --c-cyan: 30, 170, 225; --c-brown: 165, 125, 85;
  --rounded: ui-rounded, 'SF Pro Rounded', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 70px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--rounded); font-weight: 500;
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 620px 380px at 6% -6%, rgba(79,162,238,.18), transparent 62%),
    radial-gradient(ellipse 760px 440px at 52% -12%, rgba(255,196,20,.16), transparent 60%),
    radial-gradient(ellipse 620px 380px at 96% -6%, rgba(255,178,122,.20), transparent 62%);
}
h1, h2, h3 { text-wrap: balance;
  font-family: var(--rounded); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.015em; margin: 0; color: var(--ink);
}
a { color: var(--blue); text-decoration: none; font-weight: 700; }
a:hover { color: var(--blue-deep); }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; }
.nav-brand-link {
  display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem;
  color: var(--ink); letter-spacing: -0.01em; white-space: nowrap;
}
.nav-brand-link:hover { color: var(--ink); }
.nav-brand-link:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-mark { width: 36px; height: 36px; flex: none; border-radius: 9px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.platform-badges { display: flex; gap: 4px; }
.platform-badge {
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-faint); background: #f0eee6; padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 960px) { .platform-badges { display: none; } }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.nav-links a { color: var(--ink-dim); }
.nav-links a:hover { color: var(--blue); }
@media (max-width: 760px) { .nav-links > a:not(.nav-cta) { display: none; } }
.nav-cta {
  background: var(--yellow); color: var(--ink) !important; padding: 7px 16px; border-radius: 999px;
  border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.nav-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* Buttons: chunky and pressable */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 999px;
  font-family: var(--rounded); font-weight: 800; font-size: 1.02rem; text-decoration: none;
  border: 2.5px solid var(--ink); box-shadow: var(--pop); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
a.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
a.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-primary { background: var(--yellow); color: var(--ink) !important; }
.btn-secondary { background: #fff; color: var(--ink) !important; }
.btn-soon { background: var(--ink); color: #fff !important; cursor: default; box-shadow: 0 4px 0 #0a1238; }
.btn-soon svg { width: 18px; height: 18px; }
.btn .mic { width: 18px; height: 18px; }

/* Hero */
.hero { position: relative; padding: 64px 0 88px; text-align: center; overflow: hidden; }
.hero-grid { display: flex; flex-direction: column; align-items: center; gap: 56px; position: relative; z-index: 1; }
@media (min-width: 920px) {
  .hero-grid { flex-direction: row; justify-content: center; gap: 72px; text-align: left; }
  .hero-copy { flex: 1 1 480px; max-width: 560px; }
  .hero-copy .hero-actions, .hero-copy .promises { justify-content: flex-start; }
  .hero-copy .hero-note { margin-left: 0; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; letter-spacing: .05em; text-transform: uppercase;
  font-weight: 800; color: var(--ink); background: #fff;
  border: 2px solid var(--ink); padding: 6px 16px; border-radius: 999px; margin-bottom: 22px;
  box-shadow: 0 3px 0 var(--ink); transform: rotate(-2deg);
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(var(--c-green), .25); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 6px rgba(var(--c-green), 0); } }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); max-width: 760px; margin: 0 auto; }
.hero h1 .aloud {
  position: relative; display: inline-block; color: var(--blue);
  transform: rotate(-3deg); transform-origin: left bottom;
}
.hero h1 .aloud::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .22em; z-index: -1;
  background: var(--yellow); border-radius: 99px; transform: rotate(1deg);
}
.hero h1 .waves { display: inline-block; width: .55em; height: .7em; vertical-align: .05em; margin-left: .06em; }
.hero h1 .waves path { stroke: var(--blue-light); stroke-width: 3; fill: none; stroke-linecap: round; animation: wave 1.4s ease-in-out infinite; }
.hero h1 .waves path:nth-child(2) { animation-delay: .2s; }
@keyframes wave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.hero p.sub { max-width: 560px; margin: 22px auto 0; font-size: 1.2rem; color: var(--ink-dim); }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.promises { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.promises li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: #fff; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
  font-weight: 900; font-size: .95rem; color: var(--ink);
}
.promises li::before {
  content: '✓'; width: 20px; height: 20px; border-radius: 50%; background: var(--good); color: #fff;
  font-size: .75rem; display: flex; align-items: center; justify-content: center;
}
.hero-note { max-width: 520px; margin: 22px auto 0; font-size: .92rem; color: var(--ink-faint); }
.hero-note strong { color: var(--ink-dim); }

/* Floating doodles behind the hero */
.doodles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.doodle {
  position: absolute; font-family: var(--rounded); font-weight: 900; line-height: 1;
  color: var(--c); opacity: .5; animation: bob 6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 8deg)); } }
@media (max-width: 700px) { .doodle { opacity: .28; } }

/* Phone frame */
.phone {
  --phone-w: 300px; width: var(--phone-w); max-width: 100%; margin: 0 auto; flex: none;
  padding: 11px; background: var(--ink); border-radius: 48px; position: relative;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 34px 64px -26px rgba(20,36,90,.6);
}
.hero-phone { --phone-w: 318px; transform: rotate(-2.5deg); }
.hero-phone::before {
  content: ''; position: absolute; inset: -46px; z-index: -1; border-radius: 50%; filter: blur(44px); opacity: .5;
  background: conic-gradient(from 200deg, var(--blue-light), var(--yellow), var(--peach), var(--blue), var(--blue-light));
}
@media (max-width: 560px) { .phone { --phone-w: 280px; } .hero-phone { transform: none; } }

/* The live quiz demo inside the phone */
.screen {
  position: relative; aspect-ratio: 9 / 19.5; border-radius: 38px; overflow: hidden;
  background: #fff; display: flex; flex-direction: column; align-items: center;
  font-family: var(--rounded); color: #1d1d1f; text-align: center;
}
.screen::before { content: ''; position: absolute; inset: 0; background: rgba(var(--qt, var(--c-green)), .09); transition: background .4s ease; }
.screen > * { position: relative; }
.island { width: 92px; height: 26px; background: #000; border-radius: 99px; margin-top: 10px; flex: none; }
.screen-bar { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 0; font-size: .78rem; font-weight: 700; color: var(--blue); }
.screen-bar .pill { color: #1d1d1f; font-weight: 800; font-size: .8rem; }
.screen-bar span:last-child { width: 52px; }
.q-cat { margin-top: 10px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--qt, var(--c-green))); }
.q-stage { position: relative; flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; padding: 0 18px; }
.q-card { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; transition: opacity .3s ease; }
.q-img { width: 100%; max-height: 190px; object-fit: contain; border-radius: 14px; transition: opacity .3s ease; }
.q-img[hidden] { display: none; }
.q-text { font-weight: 900; font-size: 1.35rem; line-height: 1.15; }
.q-text.big { font-size: 3.4rem; letter-spacing: -.02em; }
/* Feedback sits on the card, as in the app, so the character's reaction below stays in view. */
.feedback { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; pointer-events: none; padding: 0 10px; }
.q-answer { font-size: 3.2rem; font-weight: 900; line-height: 1.05; display: none; }
.q-answer.show { display: block; animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.is-hidden { opacity: 0 !important; }
.listen { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 16px 6px; flex: none; }
.character { display: block; aspect-ratio: 1500 / 990; max-width: none; }
.demo-character { height: 136px; }
.heard { font-weight: 700; font-size: 1.05rem; min-height: 2.2em; color: #1d1d1f; line-height: 1.2; display: flex; align-items: center; }
.banner {
  transform: scale(.4); opacity: 0; display: none;
  color: #fff; font-weight: 900; font-size: 1.45rem; padding: 12px 24px; border-radius: 18px; white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.35); transition: transform .35s cubic-bezier(.3,1.7,.5,1), opacity .2s ease;
}
.banner.on { display: block; }
.banner.show { transform: scale(1); opacity: 1; }
.banner.good { background: var(--good); }
.banner.oops { background: var(--oops); }
.banner.reveal { background: var(--reveal); font-size: 1.1rem; white-space: normal; max-width: 92%; text-align: center; }
.home-bar { width: 120px; height: 5px; background: #1d1d1f; border-radius: 99px; margin: 0 0 9px; flex: none; opacity: .85; }
.confetti { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute; top: 46%; left: 50%; width: 8px; height: 12px; border-radius: 2px; opacity: 0;
  animation: pop 1s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes pop {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--rot)); }
}

/* Speech bubble stickers around the hero phone */
.bubble {
  position: absolute; z-index: 2; background: #fff; border: 2.5px solid var(--ink); border-radius: 20px;
  padding: 8px 15px; font-weight: 900; font-size: 1rem; box-shadow: 0 4px 0 var(--ink); white-space: nowrap;
  animation: bob 5s ease-in-out infinite;
}
.bubble::after {
  content: ''; position: absolute; bottom: -10px; width: 16px; height: 16px; background: #fff;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg);
}
.bubble-a { right: -58px; top: 20%; --r: 6deg; }
.bubble-a::after { left: 22px; bottom: -9px; transform: rotate(45deg); }
.bubble-b { left: -44px; bottom: 44%; --r: -5deg; --d: -2s; background: var(--yellow); }
.bubble-b::after { right: 22px; background: var(--yellow); }
@media (max-width: 560px) {
  .bubble-a { right: -40px; top: 4%; } .bubble-b { display: none; }
  .screen-bar { padding: 12px 12px 0; font-size: .66rem; } .screen-bar .pill { font-size: .7rem; } .screen-bar span:last-child { width: 36px; }
}
.screen-bar span { white-space: nowrap; }

/* Sections */
.section { padding: 88px 0; position: relative; }
.section + .section { border-top: 2px dashed var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); }
.section-head p { margin-top: 14px; color: var(--ink-dim); font-size: 1.1rem; }
.kicker { display: inline-block; font-weight: 900; font-size: .9rem; color: var(--orange); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 2px rgba(20,36,90,.03), 0 12px 26px -20px rgba(20,36,90,.22);
  transition: transform .25s cubic-bezier(.3,1.5,.5,1), border-color .2s ease;
}
.card:hover { transform: translateY(-4px) rotate(var(--tilt, -.6deg)); border-color: #d6d3c8; }
.grid .card:nth-child(even) { --tilt: .6deg; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--ink-dim); font-size: .98rem; margin: 0; }
.card .icon {
  width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; margin-bottom: 18px; background: var(--tint);
}
.grid .card:nth-child(6n+1) .icon { background: rgba(var(--c-blue), .13); }
.grid .card:nth-child(6n+2) .icon { background: rgba(255,196,20,.25); }
.grid .card:nth-child(6n+3) .icon { background: rgba(var(--c-green), .15); }
.grid .card:nth-child(6n+4) .icon { background: rgba(var(--c-pink), .14); }
.grid .card:nth-child(6n+5) .icon { background: rgba(var(--c-purple), .13); }
.grid .card:nth-child(6n)   .icon { background: rgba(var(--c-orange), .16); }

/* How it works: the quiz buddy beside the steps */
.split { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 64px; align-items: center; max-width: 940px; margin: 0 auto; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 44px; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 30px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
  font-weight: 900; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.steps li:nth-child(1) .step-num { background: var(--yellow); }
.steps li:nth-child(2) .step-num { background: #a9d3ff; }
.steps li:nth-child(3) .step-num { background: #9fe3b4; }
.steps h3 { font-size: 1.25rem; margin: 8px 0 6px; }
.steps p { color: var(--ink-dim); margin: 0; }
.say { display: inline-block; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 7px; font-weight: 800; color: var(--ink); white-space: nowrap; }

/* Quiz shelf: tiles like the app's Categories screen */
.shelf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 960px) { .shelf { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .shelf { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.tile {
  --t: var(--c-blue); position: relative; border-radius: 22px; padding: 20px 16px 18px; text-align: center;
  background: rgba(var(--t), .1); border: 2px solid rgba(var(--t), .28);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.tile:hover { transform: translateY(-5px) rotate(-2deg); }
.tile:nth-child(even):hover { transform: translateY(-5px) rotate(2deg); }
.tile .glyph {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%; background: rgb(var(--t)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem; font-weight: 900;
  box-shadow: 0 6px 14px -6px rgba(var(--t), .8);
}
.tile h3 { font-size: 1.05rem; }
.tile p { margin: 4px 0 0; font-size: .84rem; color: var(--ink-dim); line-height: 1.35; }
.tag {
  position: absolute; top: -9px; right: 10px; font-size: .68rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; border: 2px solid var(--ink); background: #9fe3b4; color: var(--ink);
}
.tag.lock { background: var(--yellow); }
.shelf-label { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-weight: 900; font-size: 1.05rem; }
.shelf-label::after { content: ''; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.shelf + .shelf-label { margin-top: 38px; }

.levels { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.level { display: flex; align-items: baseline; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 8px 18px; font-weight: 800; }
.level span { color: var(--ink-faint); font-weight: 700; font-size: .9rem; }
.level:nth-child(1) { border-color: rgba(var(--c-green), .5); }
.level:nth-child(2) { border-color: rgba(var(--c-orange), .5); }
.level:nth-child(3) { border-color: rgba(var(--c-red), .5); }

/* Ideas */
.ideas { max-width: 880px; margin: 0 auto; }
.ideas .card h3 { font-size: 1.15rem; }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.35rem; }
.price-card .lead { color: var(--ink-dim); margin: 6px 0 0; font-size: .95rem; }
.price-card.featured { border: 2.5px solid var(--ink); box-shadow: 0 6px 0 var(--ink); background: linear-gradient(180deg, #fffbea, #fff 55%); }
.tick-list { list-style: none; padding: 0; margin: 18px 0 0; text-align: left; }
.tick-list li { padding: 6px 0 6px 30px; position: relative; color: var(--ink-dim); font-size: .97rem; }
.tick-list li::before {
  content: '✓'; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(var(--c-green), .16); color: var(--good); font-weight: 900; font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
}
.gate-code { display: flex; gap: 8px; margin-top: 18px; }
.gate-code b {
  width: 40px; height: 48px; border-radius: 12px; border: 2px solid var(--line); background: #faf9f4;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 900;
}
.fineprint { text-align: center; color: var(--ink-faint); font-size: .9rem; margin-top: 24px; }

/* Privacy band */
.privacy-band {
  background: linear-gradient(160deg, var(--blue-light), var(--blue) 45%, var(--blue-deep)); color: #fff;
  border-radius: 34px; padding: 56px 40px; position: relative; overflow: hidden;
}
.privacy-band::before {
  content: ''; position: absolute; width: 520px; height: 520px; left: 30%; top: 40%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,178,122,.55), transparent 65%); pointer-events: none;
}
.privacy-band > * { position: relative; }
.privacy-band .section-head h2, .privacy-band .section-head p { color: #fff; }
.privacy-band .section-head p { opacity: .88; }
.privacy-band .section-head { margin-bottom: 36px; }
.privacy-list { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 700px) { .privacy-list { grid-template-columns: 1fr; } .privacy-band { padding: 44px 20px; border-radius: 26px; } }
.privacy-list li {
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.22); border-radius: 18px;
  padding: 16px 18px 16px 52px; position: relative; color: rgba(255,255,255,.9);
}
.privacy-list li::before {
  content: '✓'; position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-weight: 900; font-size: .8rem; display: flex; align-items: center; justify-content: center;
}
.privacy-list strong { color: #fff; }
.privacy-band .fineprint { color: rgba(255,255,255,.8); }
.privacy-band .fineprint a { color: var(--yellow-light); }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 16px 20px; transition: border-color .2s ease; }
.faq details[open] { border-color: rgba(var(--c-blue), .45); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tint);
  display: flex; align-items: center; justify-content: center; font-weight: 900; transition: transform .25s ease, background .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.faq p { color: var(--ink-dim); margin: 10px 0 2px; }

/* Sibling apps */
.siblings { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
@media (max-width: 700px) { .siblings { grid-template-columns: 1fr; } }
.sibling { display: flex; gap: 18px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.sibling:hover { color: var(--ink); }
.sibling img { width: 60px; height: 60px; border-radius: 14px; flex: none; }
.sibling h3 { font-size: 1.15rem; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sibling .go { display: inline-block; margin-top: 10px; color: var(--blue); font-weight: 800; }

/* Footer */
footer { border-top: 2px dashed var(--line); padding: 40px 0 48px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); font-size: .92rem; }
.footer-brand .logo-mark { width: 26px; height: 26px; border-radius: 7px; }
.footer-links { display: flex; gap: 24px; font-size: .92rem; flex-wrap: wrap; }
.footer-links a { color: var(--ink-faint); font-weight: 700; }
.footer-links a:hover { color: var(--blue); }

/* Policy pages */
.policy { max-width: 760px; margin: 0 auto; padding: 56px 24px 100px; }
.policy .updated { color: var(--ink-faint); font-size: .92rem; margin: 10px 0 40px; }
.policy h1 { font-size: clamp(2.2rem, 4.4vw, 2.8rem); }
.policy h2 { font-size: 1.4rem; margin: 48px 0 16px; }
.policy p, .policy li { color: var(--ink-dim); font-size: 1.02rem; }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: 10px; }
.policy strong { color: var(--ink); }
.policy a { text-decoration: underline; text-underline-offset: 3px; }
.back-link { display: inline-flex; margin-bottom: 24px; font-size: .95rem; color: var(--ink-faint) !important; text-decoration: none !important; }
.back-link:hover { color: var(--blue) !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.gate-words { margin: 16px 0 0; font-weight: 900; font-size: .9rem; letter-spacing: .04em; color: var(--ink); }
.gate-code { margin-top: 10px; }
.nowrap { white-space: nowrap; }

/* The quiz buddy in How it works, cycling through its reactions */
.how-stage {
  position: relative; border-radius: 40px; padding: 30px 30px 22px; overflow: hidden;
  background: linear-gradient(180deg, #4fa2ee, #2c6fdc 50%, #173fb0);
  box-shadow: 0 0 0 2.5px var(--ink), 0 8px 0 var(--ink); transform: rotate(-2deg);
}
.how-stage::before {
  content: ''; position: absolute; width: 360px; height: 360px; left: 50%; top: 62%; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(255,178,122,.8), transparent 65%); pointer-events: none;
}
@media (max-width: 820px) { .how-stage { max-width: 320px; margin: 0 auto; } }
.how-character { position: relative; width: 100%; height: auto; }
.mood-label {
  position: relative; display: table; margin: 10px auto 0; padding: 6px 16px; border-radius: 999px;
  background: #fff; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
  font-weight: 800; font-size: .95rem; color: var(--ink); white-space: nowrap;
}

.band-character { height: 140px; margin: -8px auto 6px; }

/* Speech bubble: tap the character for a saying */
.char-bubble {
  position: absolute; z-index: 8; width: 210px; padding: 10px 14px; border-radius: 16px;
  background: #fff; border: 2px solid var(--ink); color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.18);
  font: 700 .93rem/1.3 var(--rounded); text-align: center; pointer-events: none; opacity: 0;
  transform: translate(-50%, calc(-100% - 6px)) scale(.4); transform-origin: 50% 100%;
  transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .2s ease;
}
.char-bubble::after {
  content: ''; position: absolute; left: 50%; bottom: -8px; width: 13px; height: 13px; background: #fff;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateX(-50%) rotate(45deg);
}
.char-bubble.show { opacity: 1; pointer-events: auto; transform: translate(-50%, calc(-100% - 6px)) scale(1); }
.privacy-band .char-bubble { text-shadow: none; }

.grid-glyph { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 26px; height: 26px; }
.grid-glyph i { display: block; background: #fff; border-radius: 3px; }
.grid-glyph i:nth-child(2) { background: var(--yellow); }

/* Times Tables showcase */
.tt { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 56px; align-items: center; max-width: 960px; margin: 0 auto; }
@media (max-width: 820px) { .tt { grid-template-columns: 1fr; gap: 28px; } .tt-copy { text-align: center; } }
.tt-copy h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.tt-copy p { color: var(--ink-dim); font-size: 1.08rem; margin: 0 0 12px; }
.tt-card {
  --t: var(--c-indigo); background: #fff; border: 2.5px solid var(--ink); border-radius: 28px; padding: 18px 18px 8px;
  box-shadow: 0 6px 0 var(--ink); transform: rotate(1.2deg); width: 100%; max-width: 420px; margin: 0 auto;
}
.tt-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.tt-grid b {
  aspect-ratio: 1; border-radius: 5px; display: flex; align-items: center; justify-content: center;
  font: 800 clamp(.62rem, 2.4vw, .9rem)/1 var(--rounded); font-variant-numeric: tabular-nums;
  background: rgba(20,36,90,.1); color: var(--ink); transition: background .25s ease, color .25s ease, transform .3s cubic-bezier(.3,1.7,.5,1);
}
.tt-grid b.head { background: rgba(var(--t), .18); color: rgb(var(--t)); font-weight: 900; }
.tt-grid b.head.lit { background: rgb(var(--t)); color: #fff; }
.tt-grid b.blank { background: rgba(20,36,90,.04); }
.tt-grid b.ask { background: rgba(var(--t), .3); box-shadow: inset 0 0 0 2.5px rgb(var(--t)); color: rgb(var(--t)); font-weight: 900; }
.tt-grid b.good { background: var(--good); color: #fff; transform: scale(1.15); position: relative; z-index: 1; }
.tt-grid b.reveal { background: var(--reveal); color: #fff; }
.tt-eq { text-align: center; font: 900 2.2rem/1.2 var(--rounded); font-variant-numeric: tabular-nums; margin-top: 12px; transition: color .2s ease; }
.tt-eq.good { color: var(--good); }
.tt-buddy { display: flex; justify-content: center; }
.tt-character { height: 92px; }

/* Times Tables round in the hero demo: the table, with the sum underneath and
   the feedback banner over the sum, as in the app. */
.q-tt { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.q-tt[hidden] { display: none; }
.demo-tt-grid { --t: var(--qt); width: 100%; max-width: 236px; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.demo-tt-grid b { font-size: 1rem; border-radius: 6px; }
.q-eq { position: relative; font: 900 2rem/1.2 var(--rounded); font-variant-numeric: tabular-nums; transition: color .2s ease; }
.q-eq.good { color: var(--good); }
.eq-feedback { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
#demo.mode-table .demo-character { height: 100px; }
#demo.mode-table .q-cat { margin-bottom: 4px; }
.q-card[hidden] { display: none; }
.screen-bar { gap: 6px; }
