/* Fenn website: Day Oasis only. Colours are the app's light theme (shared/design/tokens.json themes.light),
   buttons are the app's chunky lip buttons (docs/prototypes/chunky-buttons.html, LessonStage.swift: lip 6). */
:root {
  --bg: #F6F1E8; --surface: #FFFFFF; --surface2: #FBF8F2; --surface3: #EFE8DC; --line: #E4DCCD;
  --ink: #3B2620; --ink-soft: #5E4A40; --muted: #6B554A;
  --teal: #0B8189; --teal-lip: #075A60; --teal-soft: #DDF3F4;
  --cream: #FBF8F2; --cream-lip: #D9CDB8;
  --gold: #FFC94A; --gold-lip: #D69A12; --gold-ink: #4A2E00;
  --green: #1F8239; --green-lip: #14602A; --green-bg: #DDF6E3;
  --red: #D0463A; --red-lip: #9C2E25; --red-bg: #FFE1DC;
  --sky1: #3E9BE3; --sky2: #8CCFF5; --sand: #F6C77D; --sand2: #EFB062; --fur: #F2A65A;
  --card-lip: #E3D7C2;
  --lip: 6px;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --wrap: min(1200px, 100% - 48px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 600 17px/1.5 var(--round); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(34px, 4.6vw, 58px); }
h3 { font-size: 22px; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); font-weight: 700; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-soft); padding: 7px 12px; border-radius: 999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- chunky button: face + lip, presses down, springs back ---------- */
.chunky {
  --face: var(--teal); --edge: var(--teal-lip); --text: #fff;
  appearance: none; border: 0; cursor: pointer; text-decoration: none; user-select: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 28px; border-radius: 18px;
  background: var(--face); color: var(--text);
  font: 900 17px/1 var(--round); letter-spacing: .07em; text-transform: uppercase;
  box-shadow: 0 var(--lip) 0 var(--edge), inset 0 2px 0 rgba(255,255,255,.28);
  transform: translateY(0); transition: transform 70ms cubic-bezier(.3,.7,.4,1), box-shadow 70ms, filter .15s;
  margin-bottom: var(--lip);
}
.chunky:hover { filter: brightness(1.06); }
.chunky.down, .chunky:active { transform: translateY(calc(var(--lip) - 1px)); box-shadow: 0 1px 0 var(--edge), inset 0 2px 0 rgba(255,255,255,.2); transition-duration: 30ms; }
.chunky.release { animation: spring 280ms cubic-bezier(.2,1.6,.4,1); }
@keyframes spring { 0% { transform: translateY(calc(var(--lip) - 1px)); } 60% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
.chunky:focus-visible { outline: 4px solid var(--gold); outline-offset: 4px; }
.chunky.cream { --face: var(--cream); --edge: var(--cream-lip); --text: var(--ink); }
.chunky.white { --face: #fff; --edge: var(--card-lip); --text: var(--ink); }
.chunky.gold { --face: var(--gold); --edge: var(--gold-lip); --text: var(--gold-ink); }
.chunky.green { --face: var(--green); --edge: var(--green-lip); }
.chunky.red { --face: var(--red); --edge: var(--red-lip); }
.chunky.ink { --face: #2B1D18; --edge: #000; --text: #fff; }
.chunky.small { min-height: 46px; padding: 0 18px; font-size: 14px; border-radius: 14px; --lip: 5px; }
.chunky.round { width: 52px; min-height: 52px; padding: 0; border-radius: 50%; letter-spacing: 0; }
.chunky.wide { width: 100%; }
.chunky:disabled, .chunky[aria-disabled="true"] { --face: #E6E0D6; --edge: #C9C0B2; --text: #655D53; cursor: default; filter: none; transform: none; }
.chunky svg, .chunky img { width: 22px; height: 22px; flex: none; }

/* chunky card */
.card { background: var(--surface); border-radius: 26px; box-shadow: 0 var(--lip) 0 var(--card-lip); border: 2px solid #F1E9DB; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 50; top: 14px; left: 0; right: 0; }
.nav .wrap { display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,.96); border-radius: 22px;
  padding: 10px 10px 10px 16px; box-shadow: 0 5px 0 rgba(59,38,32,.12); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 24px; text-decoration: none; letter-spacing: -0.02em; }
.logo img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 3px 0 rgba(59,38,32,.18); }
.nav__links { display: flex; gap: 4px; margin-left: 8px; }
.nav__links a { text-decoration: none; font-weight: 800; padding: 10px 14px; border-radius: 12px; color: var(--ink-soft); }
.nav__links a:hover { background: var(--surface3); color: var(--ink); }
.nav__end { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.sound-toggle .off { display: none; }
.sound-toggle[aria-pressed="false"] .on { display: none; }
.sound-toggle[aria-pressed="false"] .off { display: inline; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--sky1); }
.scene { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); aspect-ratio: 680 / 380;
  width: max(100%, calc(100svh * 680 / 380)); }
.scene > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .scene { width: max(100%, calc(max(100svh, 640px) * 680 / 380)); }
.fenn-spot { position: absolute; aspect-ratio: 512 / 640; transform: translateX(-50%); cursor: pointer; }
.fenn-spot .fenn-svg { width: 100%; height: 100%; overflow: visible; }
.hero .fenn-spot { left: 64%; bottom: 13%; height: 54%; }
.fenn-shadow { position: absolute; left: 50%; bottom: 0; width: 56%; height: 5%; transform: translate(-50%, 40%);
  background: rgba(120, 70, 20, .22); border-radius: 50%; filter: blur(2px); }
.cloud { position: absolute; top: 9%; width: 13%; opacity: .95; animation: drift 70s linear infinite; }
.cloud.c2 { top: 4%; width: 9%; animation-duration: 95s; animation-delay: -40s; }
@keyframes drift { from { left: -15%; } to { left: 110%; } }

.hero__copy { position: relative; z-index: 2; padding-top: clamp(110px, 16vh, 170px); }
.bubble { position: relative; max-width: 600px; background: #fff; border-radius: 30px; padding: 34px 36px 30px;
  box-shadow: 0 8px 0 rgba(59,38,32,.16); }
.bubble::after { content: ""; position: absolute; right: -22px; top: 70px; border: 22px solid transparent; border-left-color: #fff; border-right: 0; filter: drop-shadow(4px 4px 0 rgba(59,38,32,.08)); }
.bubble h1 { font-size: clamp(40px, 4.6vw, 64px); }
.bubble h1 .hi { white-space: nowrap; }
.bubble h1 .hi { color: var(--teal); }
.bubble .lead { margin-top: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; align-items: center; }
.hero__note { margin-top: 14px; font-size: 14px; font-weight: 800; color: var(--muted); }
.hero__note b { color: var(--green); }

/* wavy sand edge between sections */
.edge { display: block; width: 100%; height: 60px; margin-top: -59px; position: relative; z-index: 3; }
.edge path { fill: var(--bg); }

section { position: relative; }
.section { padding: 110px 0; }
.section__head { max-width: 720px; display: grid; gap: 16px; margin-bottom: 52px; }
.section__head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section__head .eyebrow, .play-copy .eyebrow, .controls .eyebrow { justify-self: start; }
.section__head.center .eyebrow { justify-self: center; }

/* ---------- play a lesson ---------- */
#play { background: var(--bg); }
.play-grid { display: grid; grid-template-columns: 430px 1fr; gap: 64px; align-items: center; }
.lesson { width: 100%; max-width: 430px; border-radius: 40px; overflow: hidden; background: #FBF3E4;
  box-shadow: 0 10px 0 #E3D3B6, 0 30px 60px rgba(59,38,32,.18); border: 6px solid #fff; display: flex; flex-direction: column; }
.lesson__scene { position: relative; height: 300px; background: center 40% / cover url(../img/lesson-scene-day.webp); }
.lesson__scene::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(transparent, #FBF3E4); }
.lesson__top { position: absolute; top: 18px; left: 16px; right: 16px; display: flex; gap: 12px; align-items: center; z-index: 2; }
.bar { flex: 1; height: 16px; border-radius: 10px; background: rgba(255,255,255,.75); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0%; background: #3FBF63; border-radius: 10px; box-shadow: inset 0 3px 0 rgba(255,255,255,.35); transition: width .4s; }
.count { font: 900 15px/1 var(--round); font-variant-numeric: tabular-nums; background: rgba(255,255,255,.94); padding: 7px 10px; border-radius: 10px; }
.lesson .fenn-spot { right: 2%; left: auto; transform: none; bottom: 2%; height: 74%; z-index: 1; }
.lesson__bubble { position: absolute; left: 16px; top: 62px; max-width: 58%; background: #fff; border-radius: 20px; padding: 13px 15px;
  font-weight: 900; font-size: 19px; line-height: 1.2; box-shadow: 0 5px 0 rgba(0,0,0,.1); z-index: 2; border: 3px solid transparent; }
.lesson__bubble small { display: block; font-weight: 700; font-size: 14px; color: var(--ink-soft); margin-top: 5px; }
.lesson__bubble::after { content: ""; position: absolute; right: -13px; top: 26px; border: 12px solid transparent; border-left-color: #fff; border-right: 0; }
.lesson__bubble.ok { border-color: #3FBF63; } .lesson__bubble.no { border-color: #FF6B5E; }
.sounds { display: flex; gap: 12px; padding: 0 16px; margin-top: -36px; position: relative; z-index: 3; }
.snd { flex: 1; --face: #fff; --edge: #E3D7C2; --text: var(--ink); min-height: 78px; justify-content: flex-start; padding: 0 14px; text-transform: none; letter-spacing: 0; }
.snd .num { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 20px; }
.wave { display: flex; gap: 3px; align-items: center; height: 28px; }
.wave i { width: 4px; height: 8px; border-radius: 2px; background: var(--teal); opacity: .45; }
.snd.playing { outline: 3px solid var(--teal); outline-offset: -3px; }
.snd.playing .wave i { opacity: 1; animation: eq .45s ease-in-out infinite alternate; }
.snd.playing .wave i:nth-child(2) { animation-delay: .1s } .snd.playing .wave i:nth-child(3) { animation-delay: .2s } .snd.playing .wave i:nth-child(4) { animation-delay: .3s }
@keyframes eq { from { height: 6px } to { height: 26px } }
.prompt { text-align: center; font-weight: 800; font-size: 14px; color: var(--muted); padding: 16px 0 0; }
.answers { display: flex; gap: 12px; padding: 10px 16px 0; }
.ans { flex: 1; min-height: 120px; flex-direction: column; gap: 6px; --face: #fff; --edge: #E3D7C2; --text: var(--ink); font-size: 20px; letter-spacing: 0; text-transform: none; }
.ans svg { width: 64px; height: 40px; }
.ans.sel { outline: 4px solid var(--teal); outline-offset: -4px; }
.ans.right { --face: #3FBF63; --edge: #2A8C47; --text: #fff; }
.ans.wrong { --face: #FF6B5E; --edge: #C8443A; --text: #fff; animation: shake .32s; }
@keyframes shake { 25% { translate: -6px } 50% { translate: 6px } 75% { translate: -3px } }
.lesson__foot { margin-top: 18px; padding: 16px 16px 22px; transition: background .25s; }
.lesson__foot.ok { background: var(--green-bg); } .lesson__foot.no { background: var(--red-bg); }
.fb { font-weight: 900; font-size: 20px; margin: 0 0 12px 4px; display: none; }
.lesson__foot.ok .fb { display: block; color: var(--green); } .lesson__foot.no .fb { display: block; color: var(--red); }
.play-copy { display: grid; gap: 22px; }
.steps { display: grid; gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 14px; align-items: center; font-weight: 800; font-size: 18px; }
.steps b { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--gold-ink);
  box-shadow: 0 4px 0 var(--gold-lip); font-size: 18px; }

/* ---------- how it teaches ---------- */
#teach { background: #FFF8EC; }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.phone { display: grid; gap: 16px; justify-items: center; text-align: center; }
.phone__frame { width: 100%; max-width: 250px; aspect-ratio: 9 / 18.5; border-radius: 34px; overflow: hidden; border: 7px solid #fff;
  box-shadow: 0 8px 0 var(--card-lip), 0 20px 40px rgba(59,38,32,.12); background: #fff; transition: transform .25s cubic-bezier(.2,1.4,.4,1); }
.phone:nth-child(odd) .phone__frame { transform: rotate(-2.5deg); }
.phone:nth-child(even) .phone__frame { transform: rotate(2.5deg) translateY(18px); }
.phone:hover .phone__frame { transform: rotate(0) translateY(-6px); }
.phone__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone h3 { margin-top: 18px; }
.phone p { color: var(--ink-soft); font-weight: 700; font-size: 16px; max-width: 250px; }
.badge-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 900; box-shadow: 0 4px 0 var(--teal-lip); }

/* ---------- games ---------- */
#games { background: linear-gradient(#8CCFF5, #CDEBFA 40%, var(--bg)); }
.games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.game { padding: 10px 10px 16px; display: grid; gap: 12px; text-decoration: none; transition: transform .22s cubic-bezier(.2,1.5,.4,1); }
.game:hover { transform: translateY(-6px) rotate(-1deg); }
.game:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.game__art { aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: var(--sky2); }
.game__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.game__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; padding: 0 6px; }
.chip { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--surface3); color: var(--ink-soft); white-space: nowrap; }
.chip.plus { background: var(--gold); color: var(--gold-ink); }
.game p { padding: 0 6px; font-size: 15px; color: var(--ink-soft); font-weight: 700; line-height: 1.35; }
.games__more { display: grid; place-items: center; text-align: center; gap: 8px; padding: 24px; background: var(--teal); color: #fff; box-shadow: 0 var(--lip) 0 var(--teal-lip); border-color: transparent; }
.games__more { text-decoration: none; }
.games__more strong { font-size: 72px; line-height: 1; font-weight: 900; }
.games__more span { font-weight: 800; font-size: 15px; line-height: 1.4; opacity: .95; }
.games__more em { font-style: normal; display: inline-block; margin-top: 8px; background: #fff; color: var(--teal); padding: 10px 16px; border-radius: 12px; box-shadow: 0 4px 0 rgba(0,0,0,.18); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }

/* ---------- meet fenn ---------- */
#fenn { background: var(--bg); }
.meet { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.stage { position: relative; aspect-ratio: 1 / 1; border-radius: 36px; overflow: hidden; background: linear-gradient(var(--sky1), var(--sky2) 55%, var(--sand) 55.2%, var(--sand2));
  box-shadow: 0 8px 0 var(--card-lip); border: 6px solid #fff; }
.stage .sun { position: absolute; left: 12%; top: 12%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #FFE27A; box-shadow: 0 0 0 18px rgba(255,226,122,.35), 0 0 0 40px rgba(255,226,122,.15); }
.stage .dune { position: absolute; left: -10%; right: -10%; top: 50%; height: 16%; background: #F2B866; border-radius: 50% 50% 0 0; }
.stage .fenn-spot { left: 50%; bottom: 8%; height: 72%; }
.stage .note-pop { position: absolute; font-size: 34px; font-weight: 900; color: var(--teal); pointer-events: none; animation: notepop 1.1s ease-out forwards; }
@keyframes notepop { from { opacity: 1; transform: translateY(0) scale(.6); } to { opacity: 0; transform: translateY(-120px) scale(1.2) rotate(12deg); } }
.controls { display: grid; gap: 22px; }
.ctl-label { font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ctl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ctl-row .chunky[aria-pressed="true"] { --face: var(--teal); --edge: var(--teal-lip); --text: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.stat { padding: 16px 12px 14px; text-align: center; }
.stat strong { display: block; font-size: 36px; font-weight: 900; color: var(--teal); font-variant-numeric: tabular-nums; line-height: 1; }
.stat span { font-size: 13px; font-weight: 800; color: var(--muted); }

/* ---------- producer ears ---------- */
#producers { background: #EAF6F7; }
.pe { display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: center; }
.units { display: flex; flex-wrap: wrap; gap: 10px; }
.units .chip { background: #fff; font-size: 13px; box-shadow: 0 3px 0 var(--card-lip); }
.eq-game { padding: 28px; display: grid; gap: 18px; }
.eq-head { display: flex; gap: 16px; align-items: center; }
.eq-head .fenn-mini { width: 92px; aspect-ratio: 512 / 640; flex: none; position: relative; }
.eq-head .fenn-mini .fenn-svg { width: 100%; height: 100%; }
.eq-head h3 { font-size: 24px; }
.eq-head p { color: var(--ink-soft); font-size: 15px; font-weight: 700; }
.spectrum { height: 96px; border-radius: 18px; background: #F4EFE6; position: relative; overflow: hidden; }
.spectrum svg { width: 100%; height: 100%; }
.spectrum .axis { position: absolute; left: 12px; right: 12px; bottom: 6px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 900; color: var(--muted); }
.spectrum .curve { fill: rgba(11,129,137,.16); stroke: var(--teal); stroke-width: 3; transition: d .3s; }
.eq-row { display: flex; gap: 10px; }
.eq-row .chunky { flex: 1; }
.eq-bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.eq-bands .chunky { min-height: 64px; font-size: 18px; letter-spacing: 0; }
.eq-bands .sel { outline: 4px solid var(--teal); outline-offset: -4px; }
.eq-msg { min-height: 26px; font-weight: 900; text-align: center; }
.eq-msg.ok { color: var(--green); } .eq-msg.no { color: var(--red); }

/* ---------- tools ---------- */
#tools { background: var(--bg); }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool { overflow: hidden; display: grid; }
.tool img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.tool div { padding: 20px 22px 22px; display: grid; gap: 6px; }
.tool p { color: var(--ink-soft); font-weight: 700; font-size: 16px; }

/* ---------- pricing ---------- */
#download { background: #FFF8EC; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { padding: 30px 28px; display: grid; gap: 16px; align-content: start; position: relative; }
.plan .price { font-size: 46px; font-weight: 900; letter-spacing: -0.03em; }
.plan .price small { font-size: 16px; color: var(--muted); font-weight: 800; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-weight: 700; }
.plan li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan.plus { background: #FFF3CF; border-color: var(--gold); box-shadow: 0 var(--lip) 0 var(--gold-lip); }
.ribbon { position: absolute; top: -16px; right: 22px; background: var(--gold); color: var(--gold-ink); font-weight: 900; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; padding: 8px 14px; border-radius: 12px; box-shadow: 0 4px 0 var(--gold-lip); rotate: 3deg; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 44px; }
.stores .chunky { min-height: 64px; text-transform: none; letter-spacing: 0; font-size: 18px; }
.stores small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.stores span.lbl { text-align: left; line-height: 1.1; }

/* ---------- faq ---------- */
#faq { background: var(--bg); }
.faq { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq details { padding: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 900; font-size: 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface3); font-size: 22px; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; background: var(--teal); color: #fff; }
.faq details p { padding: 0 26px 24px; color: var(--ink-soft); font-weight: 700; }

/* ---------- footer ---------- */
.foot { position: relative; height: min(92svh, 820px); min-height: 600px; overflow: hidden; background: var(--sky1); }
.foot .scene { width: max(100%, calc(min(92svh, 820px) * 680 / 380)); }
.foot .fenn-spot { left: 33%; bottom: 14%; height: 30%; }
.foot .zzz { position: absolute; left: 36%; bottom: 43%; font-weight: 900; color: #fff; font-size: 28px; text-shadow: 0 3px 0 rgba(59,38,32,.2); animation: zzz 3s ease-in-out infinite; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 10px) scale(.7); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(30px, -50px) scale(1.2); } }
.foot__copy { position: relative; z-index: 2; padding-top: 96px; text-align: center; display: grid; justify-items: center; gap: 18px; }
.foot__copy .bubble { max-width: 640px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.foot__copy .bubble::after { right: auto; left: calc(50% - 160px); top: auto; bottom: -20px; border: 20px solid transparent; border-top-color: #fff; border-bottom: 0; }
.foot__copy p { font-weight: 800; font-size: 19px; color: var(--ink-soft); }
.foot__bar { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; }
.foot__bar .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; background: rgba(255,255,255,.94);
  border-radius: 20px; padding: 14px 20px; box-shadow: 0 5px 0 rgba(59,38,32,.12); font-weight: 800; font-size: 15px; }
.foot__bar nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__bar a { text-decoration: none; color: var(--ink-soft); }
.foot__bar a:hover { color: var(--ink); }

/* entrance: cards pop in once (games feel) */
.pop { opacity: 0; transform: translateY(24px) scale(.97); }
.pop.in { opacity: 1; transform: none; transition: opacity .45s ease, transform .55s cubic-bezier(.2,1.5,.4,1); transition-delay: var(--d, 0s); }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .play-grid, .meet, .pe { grid-template-columns: 1fr; }
  .play-grid .lesson { margin-inline: auto; }
  .phones { grid-template-columns: repeat(2, 1fr); }
  .games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav { top: 10px; }
  .nav .get { display: none; }
  .section { padding: 84px 0; }
  .hero { height: auto; min-height: 100svh; }
  .hero__copy { padding-bottom: calc(max(100svh, 760px) * .5 + 8px); }
  .hero .scene { width: calc(max(100svh, 760px) * 680 / 380); transform: translateX(-61%); }
  .hero .fenn-spot { height: 38%; bottom: 12%; }
  .hero__copy { padding-top: 92px; }
  .bubble { padding: 24px 22px 22px; border-radius: 24px; }
  .bubble::after { right: auto; left: 60%; top: auto; bottom: -20px; border: 20px solid transparent; border-top-color: #fff; border-bottom: 0; }
  .cta-row .chunky { flex: 1 1 100%; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .game h3 { font-size: 17px; }
  .games__more span { display: none; }
  .games__more strong { font-size: 56px; }
  .game p { display: none; }
  .phones { gap: 18px; }
  .phone p { font-size: 14px; }
  .tools, .plans { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .lesson__scene { height: 260px; }
  .foot .scene { transform: translateX(-38%); }
  .foot { height: auto; min-height: 960px; }
  .foot .fenn-spot { height: 24%; bottom: 27%; }
  .foot .zzz { bottom: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .cloud, .foot .zzz { animation: none; }
  .pop { opacity: 1; transform: none; }
}

/* ---------- lessons: the unit path ---------- */
#lessons { background: var(--bg); }
.units-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.unit { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: start; padding: 18px 18px 16px; position: relative; transition: transform .22s cubic-bezier(.2,1.5,.4,1); }
.unit:hover { transform: translateY(-4px); }
.unit__num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 20px; color: var(--ink);
  background: var(--unit); box-shadow: 0 4px 0 color-mix(in srgb, var(--unit) 60%, #7a4a2a); }
.unit h3 { font-size: 18px; line-height: 1.15; }
.unit p { font-size: 15px; font-weight: 700; color: var(--ink-soft); margin-top: 4px; line-height: 1.3; }
.unit__count { grid-column: 1 / -1; justify-self: start; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface3); padding: 5px 10px; border-radius: 999px; }
.unit__start { display: inline-block; margin-left: 6px; vertical-align: 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--teal); color: #fff; padding: 4px 8px; border-radius: 8px; }
.pe-card { margin-top: 28px; padding: 26px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; background: #FFF6DD; border-color: #F6E2A8; box-shadow: 0 var(--lip) 0 var(--gold-lip); }
.pe-card h3 { margin: 12px 0 6px; font-size: 24px; }
.pe-card p { color: var(--ink-soft); font-weight: 700; }
.pe-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-chips .chip { background: #fff; box-shadow: 0 3px 0 var(--card-lip); }
@media (max-width: 1080px) { .units-path { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pe-card { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .units-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .unit { grid-template-columns: 1fr; padding: 14px; } .unit p { font-size: 14px; } .unit__start { display: none; } }

/* ---------- legal pages (privacy, terms) ---------- */
.legal { padding: 130px 0 60px; max-width: 860px; }
.legal__head { display: grid; gap: 16px; margin-bottom: 28px; justify-items: start; }
.legal__head h1 { font-size: clamp(40px, 6vw, 64px); }
.legal__date { color: var(--muted); font-size: 15px; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px; margin-bottom: 26px; }
.legal__toc a { text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 12px; border-radius: 12px; background: var(--surface2); color: var(--ink-soft); }
.legal__toc a:hover { background: var(--teal-soft); color: var(--teal-lip); }
.legal__body { padding: clamp(22px, 4vw, 44px); font-weight: 600; }
.legal__body h2 { font-size: clamp(24px, 3vw, 30px); margin: 36px 0 12px; scroll-margin-top: 100px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 19px; margin: 22px 0 8px; }
.legal__body p, .legal__body li { color: var(--ink-soft); }
.legal__body p + p { margin-top: 10px; }
.legal__body ul { margin: 10px 0; padding-left: 22px; display: grid; gap: 8px; }
.legal__body strong { color: var(--ink); font-weight: 800; }
.legal__body a { color: var(--teal); font-weight: 800; }
.legal__table { overflow-x: auto; margin: 12px 0; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal__table th, .legal__table td { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--line); vertical-align: top; }
.legal__table th { font-weight: 900; color: var(--ink); background: var(--surface2); }
.legal-foot { padding: 0 0 36px; }
.legal-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; background: #fff; border-radius: 20px; padding: 14px 20px; border: 2px solid #F1E9DB; }
.legal-foot nav { display: flex; gap: 18px; }
.legal-foot a { text-decoration: none; color: var(--ink-soft); }
