/* duolingo — concept redesign. Colour chapters: every section is one flat field. */

:root {
  /* brand palette */
  --green: #58cc02;
  --green-edge: #46a302;
  --green-ink: #10350a;
  --blue: #1cb0f6;
  --blue-ink: #0a2a3d;
  --humpback: #1a55a8;
  --yellow: #ffc800;
  --red: #ff4b4b;
  --orange: #ff9600;
  --dark: #131f24;
  --eel: #3c3c3c;
  --snow: #ffffff;
  --polar: #f7f7f7;
  --swan: #e5e5e5;

  /* five type steps */
  --fs-xxl: clamp(112px, 19vw, 320px);
  --fs-xl: clamp(60px, 9.5vw, 150px);
  --fs-l: clamp(28px, 3.4vw, 48px);
  --fs-body: 19px;
  --fs-small: 15px;

  --m: clamp(20px, 2.2vw, 32px);
  --notice-h: 30px;
  --bar-h: calc(72px + var(--notice-h)); /* everything the fixed top covers */
  --bird: 18vw;
  --radius: 16px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;

  --bar-bg: var(--snow);
  --bar-ink: var(--eel);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--eel);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}
img, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--snow); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--m); top: -100px; z-index: 100;
  background: var(--snow); color: var(--eel); padding: 12px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; line-height: 1; text-wrap: balance; }
h2 { font-size: var(--fs-l); }
h3 { font-size: var(--fs-body); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  background: var(--green); color: var(--green-ink);
  border-bottom: 4px solid var(--green-edge);
  border-radius: var(--radius);
  font-weight: 900; font-size: var(--fs-body); text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), border-bottom-width var(--t-press) var(--ease-out),
              background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:hover { background: #61e002; }
.btn:active { transform: translateY(3px); border-bottom-width: 1px; }
.btn--ink { background: var(--dark); color: var(--snow); border-bottom-color: #000; }
.btn--ink:hover { background: #22343c; }
.btn--snow { background: var(--snow); color: var(--green-ink); border-bottom-color: #c9e9b3; }
.btn--snow:hover { background: #f1ffe6; }

/* ---------- header: takes the colours of the chapter beneath ---------- */
.bar {
  position: fixed; inset: var(--notice-h) 0 auto 0; z-index: 50; height: calc(var(--bar-h) - var(--notice-h));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--m);
  background: var(--bar-bg); color: var(--bar-ink);
  transition: background-color 300ms ease, color 300ms ease;
}
.wordmark {
  font-size: var(--fs-l); font-weight: 900; letter-spacing: -0.04em; text-decoration: none;
  transform-origin: left center; transition: transform var(--t-hover) var(--ease-out);
}
.bar .wordmark { font-size: 30px; }
.wordmark:hover { transform: scale(1.04); }
.bar__nav { display: flex; align-items: center; gap: 28px; }
.bar__links { display: flex; gap: 28px; }
.bar__links a { text-decoration: none; position: relative; }
.bar__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-hover) var(--ease-out);
}
.bar__links a:hover::after, .bar__links a:focus-visible::after { transform: scaleX(1); }
.bar__menu { display: none; background: none; border: 0; font-weight: 900; cursor: pointer; padding: 8px; }
.bar.on-green .btn { background: var(--snow); color: var(--green-ink); border-bottom-color: #c9e9b3; }

/* ---------- unofficial notice ---------- */
.notice {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--notice-h);
  display: grid; place-items: center; margin: 0;
  background: var(--dark); color: var(--snow); font-size: var(--fs-small); font-weight: 700;
}

/* ---------- 1 · hero ---------- */
.hero { position: relative; height: 130svh; overflow: hidden; }
.hero__top { position: absolute; inset: 0 0 auto 0; height: 50svh; background: var(--snow); }
.hero__bottom {
  position: absolute; left: 0; right: 0; top: 50svh; bottom: 0; background: var(--green);
  transform-origin: bottom center;
}
.hero__title {
  --cut: 1.16em;
  position: absolute; left: 50%; top: calc(50svh - var(--cut)); transform: translateX(-50%);
  width: 92vw; height: 1.72em;
  font-size: var(--fs-xl); line-height: 0.86; letter-spacing: -0.04em;
  text-transform: uppercase; text-align: center;
}
.hero__copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; }
.hero__copy .line { display: block; white-space: nowrap; }
.hero__copy--top { color: var(--green-edge); clip-path: inset(0 0 calc(100% - var(--cut)) 0); }
.hero__copy--deep { color: var(--green-ink); clip-path: inset(var(--cut) 0 0 0); }
.hero__bird {
  position: absolute; right: var(--m); width: var(--bird); height: var(--bird);
  top: calc(50svh - var(--bird) * 0.94);
}
.hero__bird canvas { width: 100%; height: 100%; }
.hero__say {
  position: absolute; left: -12%; top: 4%; padding: 8px 16px; border-radius: var(--radius);
  background: var(--humpback); color: var(--snow); font-weight: 900; white-space: nowrap;
  opacity: 0; transform: scale(0.6); transform-origin: 80% 100%;
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.hero__say::after {
  content: ""; position: absolute; right: 22%; bottom: -10px;
  border: 10px solid transparent; border-top-color: var(--humpback); border-bottom: 0;
}
.hero__say.is-on { opacity: 1; transform: none; }
.hero__say.is-pop { animation: pop 420ms var(--ease-out); }
@keyframes pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.06); } 100% { transform: none; } }
html:not(.js) .hero__say { opacity: 1; transform: none; }

.hero__lede {
  position: absolute; left: 50%; top: calc(100svh - 56px); transform: translate(-50%, -100%);
  width: min(34ch, 86vw); text-align: center; color: var(--green-ink); font-size: var(--fs-body); line-height: 1.45;
}

/* ---------- frame sequences (sticky stage, scroll-scrubbed canvas) ---------- */
.seq { position: relative; height: 360svh; }
.seq--chama { height: 290svh; }
.seq__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.seq__canvas { position: absolute; width: 100%; height: 100%; }
.seq--bolha { background: var(--green); color: var(--green-ink); }
.seq--bolha .seq__canvas { top: var(--bar-h); height: calc(100% - var(--bar-h) - 28svh); }
.seq__text {
  position: absolute; left: var(--m); right: var(--m); bottom: 0; height: 28svh;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; align-items: center;
}
.seq__text h2 { grid-column: 1 / 8; font-size: var(--fs-xl); text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.88; }
.seq__steps { grid-column: 8 / 13; position: relative; min-height: 4.5em; }
.seq__steps li {
  position: absolute; inset: 0 auto auto 0; font-size: var(--fs-l); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em;
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity 380ms var(--ease-out), transform 480ms var(--ease-out), visibility 0s linear 380ms;
}
.seq__steps li.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
html:not(.js) .seq__steps li { position: static; opacity: 1; visibility: visible; transform: none; margin-bottom: 8px; }

.seq--chama { background: var(--dark); color: var(--snow); }
.seq--chama .seq__canvas { left: 50%; width: 50%; top: var(--bar-h); height: calc(100% - var(--bar-h)); }
.streak { position: absolute; left: var(--m); top: calc(var(--bar-h) + 6svh); width: min(30ch, 44vw); }
.streak h2 { font-size: var(--fs-l); margin-bottom: 16px; }
.week { display: flex; gap: 10px; margin-top: 28px; }
.week li {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #22343c; color: #8fa3ad; font-size: var(--fs-small); font-weight: 900;
  transition: background-color 260ms ease, color 260ms ease, transform 260ms var(--ease-out);
}
.week li.is-lit { background: var(--orange); color: var(--dark); transform: scale(1.08); }
.streak__count {
  position: absolute; left: var(--m); bottom: 3svh; display: flex; align-items: baseline; gap: 0.12em;
  font-size: var(--fs-xxl); font-weight: 900; line-height: 0.8; letter-spacing: -0.05em; color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.streak__unit { font-size: var(--fs-l); letter-spacing: -0.02em; color: var(--snow); }

/* ---------- 3 · the headline you can type ---------- */
.typer {
  position: relative; min-height: 92svh; background: var(--snow); color: var(--eel); overflow: clip;
  padding: calc(var(--bar-h) + 10svh) var(--m) 64px;
  display: flex; flex-direction: column;
}
.typer__line { position: relative; overflow: hidden; font-size: var(--fs-xl); font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; }
.typer__input {
  width: 100%; border: 0; background: transparent; padding: 0; outline: none;
  font-weight: 900; letter-spacing: inherit; color: var(--eel); caret-color: transparent;
  text-overflow: clip;
}
.typer__input:focus-visible { outline: none; }
.typer__line:focus-within .typer__caret { background: var(--blue); }
.typer__caret {
  position: absolute; top: 0.1em; left: 0; width: 0.08em; height: 0.9em; background: var(--green);
  border-radius: 2px; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.typer__mirror { position: absolute; visibility: hidden; white-space: pre; font: inherit; letter-spacing: inherit; }
.typer__answer { margin-top: 48px; max-width: 560px; }
.typer__note { font-size: var(--fs-small); color: #6b6b6b; margin-bottom: 12px; }
.typer__rows { display: grid; gap: 10px; }
.typer__rows li {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px;
  background: var(--polar); border: 2px solid var(--swan); border-bottom-width: 4px; border-radius: var(--radius);
  transition: transform 300ms var(--ease-out);
}
.typer__rows strong { font-weight: 900; font-size: var(--fs-body); color: var(--eel); }
.flag {
  flex: none; min-width: 92px; padding: 4px 10px; border-radius: 10px; text-align: center;
  font-size: var(--fs-small); font-weight: 900; color: var(--snow);
}
.flag--es { background: var(--red); color: var(--dark); }
.flag--fr { background: var(--humpback); }
.flag--it { background: var(--green); color: var(--green-ink); }
.typer__examples { margin-top: auto; padding-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.typer__examples p { width: 100%; font-size: var(--fs-small); color: #6b6b6b; }
.chip-btn {
  cursor: pointer; padding: 10px 18px; min-height: 48px; border-radius: var(--radius);
  background: var(--snow); border: 2px solid var(--swan); border-bottom-width: 4px; font-weight: 900; color: var(--humpback);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.chip-btn:hover { background: #ddf4ff; }
.chip-btn:active { transform: translateY(2px); border-bottom-width: 2px; }

/* ---------- 4 · tiles that grow ---------- */
.grow { background: var(--humpback); color: var(--snow); padding: calc(var(--bar-h) + 80px) var(--m) 140px; }
.grow__row {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 10px; align-items: end; position: relative;
}
.grow__title { grid-column: 1 / 8; grid-row: 1; align-self: start; font-size: var(--fs-xl); text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.88; }
.grow__stage { grid-row: 1; }
.grow__stage--s { grid-column: 1 / 4; }
.grow__stage--m { grid-column: 4 / 8; }
.grow__stage--l { grid-column: 8 / 13; }
.grow__tile { position: relative; overflow: hidden; border-radius: var(--radius); display: grid; place-items: center; }
.grow__stage--s .grow__tile { height: 22vh; }
.grow__stage--m .grow__tile { height: 33vh; }
.grow__stage--l .grow__tile { height: 68vh; }
.grow__tile img { position: absolute; inset: -6% 0 0; width: 100%; height: 106%; object-fit: contain; transition: transform 600ms var(--ease-out); }
.grow__stage:hover .grow__tile img { transform: scale(1.06) rotate(-2deg); }
.grow__tile--yellow { background: var(--yellow); }
.grow__tile--snow { background: var(--snow); }
.grow__tile--green { background: var(--green); }
.grow figcaption { padding-top: 16px; max-width: 36ch; }
.grow figcaption strong { display: block; font-size: var(--fs-l); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px; }
.grow__title { margin-bottom: 40px; }

/* ---------- 6 · figure set by a slider ---------- */
.calc {
  min-height: 92svh; background: var(--yellow); color: var(--eel);
  padding: calc(var(--bar-h) + 64px) var(--m) 48px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.calc h2 { font-size: var(--fs-l); }
.calc__control { margin-top: 28px; width: min(400px, 100%); }
.calc__control label { display: flex; justify-content: space-between; font-weight: 900; margin-bottom: 10px; }
.calc__control output { color: var(--dark); }
.calc input[type="range"] { width: 100%; appearance: none; background: transparent; height: 44px; cursor: pointer; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 16px; border-radius: 8px; background: #ffe58a; }
.calc input[type="range"]::-moz-range-track { height: 16px; border-radius: 8px; background: #ffe58a; }
.calc input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 36px; height: 36px; margin-top: -10px; border-radius: 50%;
  background: var(--dark); border: 4px solid var(--snow); transition: transform var(--t-press) var(--ease-out);
}
.calc input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--dark); border: 4px solid var(--snow); }
.calc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 64px; }
.calc__figure {
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 0.12em;
  font-size: var(--fs-xxl); font-weight: 900; line-height: 0.8; letter-spacing: -0.05em; color: var(--dark);
  font-variant-numeric: tabular-nums;
}
.calc__unit { font-size: var(--fs-l); letter-spacing: -0.02em; }
.calc__how { width: 30ch; flex: none; }

/* ---------- 7 · close-ups on a board ---------- */
.board { background: var(--polar); padding: calc(var(--bar-h) + 10px) 10px 10px; }
.board__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 104px; gap: 8px;
  grid-template-areas:
    "head head head head head head xp xp xp gem gem gem"
    "head head head head head head xp xp xp gem gem gem"
    "head head head head head head xp xp xp gem gem gem"
    "lesson lesson lesson lesson lesson lesson hearts hearts hearts league league league"
    "lesson lesson lesson lesson lesson lesson hearts hearts hearts league league league"
    "lesson lesson lesson lesson lesson lesson hearts hearts hearts league league league"
    "lesson lesson lesson lesson lesson lesson hearts hearts hearts league league league"
    "remind remind remind remind remind remind streak streak streak streak streak streak"
    "remind remind remind remind remind remind streak streak streak streak streak streak";
}
.tile { position: relative; overflow: hidden; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile h3 { position: relative; z-index: 2; }
.tile p { position: relative; z-index: 2; font-size: var(--fs-small); max-width: 32ch; }
.tile .ui { position: absolute; z-index: 1; transition: transform 500ms var(--ease-out); }
.tile:hover .ui { transform: scale(1.05) rotate(-1.5deg); }
.tile--head { grid-area: head; background: var(--green); color: var(--green-ink); justify-content: flex-start; }
.tile--head h2 { font-size: var(--fs-xl); text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.88; }
.tile--xp { grid-area: xp; background: var(--yellow); color: var(--eel); }
.tile--gem { grid-area: gem; background: var(--blue); color: var(--blue-ink); }
.tile--lesson { grid-area: lesson; background: var(--snow); color: var(--eel); }
.tile--hearts { grid-area: hearts; background: var(--red); color: var(--dark); }
.tile--league { grid-area: league; background: var(--humpback); color: var(--snow); }
.tile--remind { grid-area: remind; background: var(--orange); color: var(--dark); }
.tile--streak { grid-area: streak; background: var(--dark); color: var(--snow); }

.ui--xp { right: -0.3em; top: -0.12em; font-size: 104px; font-weight: 900; color: var(--dark); letter-spacing: -0.04em; line-height: 1; }
.ui--xp span { color: var(--snow); background: var(--orange); border-radius: 0.2em; padding: 0 0.12em; }
.ui--gem { right: -0.4em; top: -0.18em; font-size: 118px; font-weight: 900; color: var(--snow); display: flex; align-items: center; gap: 0.12em; line-height: 1; }
.ui--lesson { left: 28px; right: -300px; top: 24px; font-size: 78px; font-weight: 900; color: var(--eel); }
.ui__q { margin-bottom: 0.4em; font-size: 1em; }
.ui--lesson .opt {
  display: inline-block; margin: 0 0.25em 0.3em 0; padding: 0.2em 0.6em; border-radius: 0.3em;
  border: 3px solid var(--swan); border-bottom-width: 6px; background: var(--snow);
}
.ui--lesson .opt.is-picked { border-color: #84d8ff; background: #ddf4ff; color: #1899d6; }
.ui__ok { display: table; margin-top: 0.2em; color: var(--snow); background: var(--green); border-radius: 0.3em; padding: 0.1em 0.5em; }
.ui--hearts { left: -0.08em; top: -0.12em; font-size: 210px; font-weight: 900; color: var(--snow); display: flex; align-items: center; gap: 0.04em; line-height: 1; }
.ui--league { left: 20px; right: -60px; top: 20px; font-size: 30px; display: grid; gap: 0.3em; }
.ui--league li { display: flex; align-items: center; gap: 0.4em; padding: 0.25em 0.4em; border-radius: 0.35em; font-weight: 900; }
.ui--league li b { margin-left: auto; font-weight: 900; }
.ui--league li.is-you { background: var(--snow); color: var(--humpback); }
.disc { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; font-size: 0.7em; }
.disc--a { background: var(--yellow); color: var(--dark); }
.disc--b { background: var(--green); color: var(--green-ink); }
.disc--c { background: var(--red); color: var(--dark); }
.ui--remind { right: -0.4em; top: 0.35em; font-size: 64px; font-weight: 900; display: flex; align-items: center; gap: 0.4em; color: var(--dark); white-space: nowrap; }
.toggle { width: 1.9em; height: 1.1em; border-radius: 1em; background: var(--dark); position: relative; flex: none; }
.toggle span { position: absolute; top: 0.12em; left: 0.12em; width: 0.86em; height: 0.86em; border-radius: 50%; background: var(--snow); transition: transform 300ms var(--ease-out); }
.toggle.is-on { background: var(--green-ink); }
.toggle.is-on span { transform: translateX(0.8em); }
.tile--streak img { position: absolute; right: -40px; top: -60px; width: 340px; height: 340px; z-index: 1; }
.ui--streak { right: 260px; top: 10px; font-size: 150px; font-weight: 900; color: var(--orange); letter-spacing: -0.05em; line-height: 1; }

/* ---------- 8 · two plans, two fields ---------- */
.plans { display: grid; grid-template-columns: 5fr 7fr; }
.plan { min-height: 92svh; padding: calc(var(--bar-h) + 40px) var(--m) 40px; display: flex; flex-direction: column; }
.plan h2 { font-size: var(--fs-xl); text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.88; }
.plan__who { margin-top: 20px; font-size: var(--fs-body); line-height: 1.3; max-width: 26ch; font-weight: 900; }
.plan__inc { margin-top: 16px; max-width: 40ch; }
.plan__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.plan__price { font-size: var(--fs-xl); font-weight: 900; line-height: 0.85; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.plan__per { font-size: var(--fs-body); letter-spacing: 0; margin-left: 0.4em; }
.plan--super { background: var(--red); color: var(--dark); }
.plan--free { background: var(--green); color: var(--green-ink); }

/* ---------- 9 · a band per question ---------- */
.faq__head { min-height: 40svh; background: var(--blue); color: var(--blue-ink); padding: calc(var(--bar-h) + 40px) var(--m) 40px; display: flex; align-items: flex-end; }
.faq__head h2 { font-size: var(--fs-xl); text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.88; }
.faq__band { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; padding: 56px var(--m); background: var(--snow); color: var(--eel); }
.faq__band:nth-child(odd) { background: #ddf4ff; }
.faq__band h3 { grid-column: 1 / 6; font-size: var(--fs-l); line-height: 1.05; }
.faq__band p { grid-column: 7 / 13; max-width: 56ch; }

/* ---------- 10 · close, inverted ---------- */
.close {
  min-height: 92svh; background: var(--dark); color: var(--green);
  padding: calc(var(--bar-h) + 10svh) var(--m) 40px; display: flex; flex-direction: column; justify-content: space-between;
}
.close__title { font-size: var(--fs-xl); text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.88; max-width: 8.6ch; }
.close__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.close__foot p { color: var(--snow); max-width: 30ch; }
.close .btn { min-height: 60px; padding: 0 32px; }

/* ---------- 11 · footer ---------- */
.foot { background: var(--green); color: var(--green-ink); padding: 120px var(--m) 0; overflow: hidden; }
.foot__row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; }
.foot__places { grid-column: 1 / 6; display: grid; gap: 6px; }
.foot__places a { font-size: var(--fs-l); font-weight: 900; letter-spacing: -0.02em; text-decoration: none; line-height: 1.15; display: inline-block; transition: transform var(--t-hover) var(--ease-out); }
.foot__places a:hover { transform: translateX(8px); }
.foot__links { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.foot__links ul { display: grid; gap: 8px; align-content: start; }
.foot__links a { font-size: var(--fs-small); text-decoration: none; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__legal { display: flex; justify-content: space-between; gap: 24px; margin-top: 96px; font-size: var(--fs-small); }
.foot__legal p { max-width: 70ch; }
.foot__word {
  font-size: var(--fs-xxl); font-weight: 900; letter-spacing: -0.06em; line-height: 1;
  margin: 40px 0 -0.24em -0.04em; white-space: nowrap;
}

/* ---------- motion helpers ---------- */
.grow__tile img { animation: float 6s ease-in-out infinite; }
.grow__stage--m .grow__tile img { animation-delay: -2s; }
.grow__stage--l .grow__tile img { animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -12px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .bar__links { gap: 18px; }
  .board__grid {
    grid-template-columns: repeat(6, 1fr); grid-auto-rows: 96px;
    grid-template-areas:
      "head head head head head head" "head head head head head head"
      "xp xp xp gem gem gem" "xp xp xp gem gem gem"
      "lesson lesson lesson lesson lesson lesson" "lesson lesson lesson lesson lesson lesson"
      "lesson lesson lesson lesson lesson lesson"
      "hearts hearts hearts league league league" "hearts hearts hearts league league league"
      "hearts hearts hearts league league league"
      "remind remind remind remind remind remind" "remind remind remind remind remind remind"
      "streak streak streak streak streak streak" "streak streak streak streak streak streak";
  }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  :root { --fs-body: 17px; --fs-small: 14px; --fs-l: 26px; --bar-h: calc(64px + var(--notice-h)); --fs-xl: 15vw; --fs-xxl: 30vw; --bird: 34vw; }
  .bar .wordmark { font-size: var(--fs-l); }
  .bar__menu { display: block; }
  .bar__links {
    position: absolute; top: var(--bar-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bar-bg); padding: 8px var(--m) 20px; display: none;
  }
  .bar__links.is-open { display: flex; }
  .bar__links a { display: block; padding: 12px 0; font-size: var(--fs-l); }
  .bar__nav { gap: 8px; }
  .bar .btn { min-height: 44px; padding: 0 16px; }

  .hero { height: 120svh; }
  .hero__top { height: 46svh; }
  .hero__bottom { top: 46svh; }
  .hero__title { top: calc(46svh - var(--cut)); }
  .hero__bird { right: 50%; transform: translateX(50%); top: calc(46svh - 1.16 * var(--fs-xl) - var(--bird) + 2px); }
  .hero__say { display: none; } /* on a phone it would sit on top of the headline */
  .hero__lede { max-width: 28ch; top: calc(100svh - 40px); }

  .seq--bolha .seq__canvas { height: calc(100% - var(--bar-h) - 40svh); }
  .seq__text { height: 40svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
  .seq__steps { width: 100%; min-height: 3.6em; }
  .seq--chama .seq__canvas { left: 0; width: 100%; top: 36svh; height: 46svh; }
  .streak { width: auto; right: var(--m); }
  .streak p { font-size: var(--fs-small); }
  .week { gap: 6px; margin-top: 16px; }
  .week li { width: 36px; height: 36px; }

  .typer { min-height: 84svh; }
  .typer__line { font-size: 11vw; }
  .typer__answer { margin-top: 28px; }
  .chip-btn { flex: 1 1 auto; }

  .grow__row { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
  .grow__title { margin-bottom: 0; }
  .grow__stage--s .grow__tile { height: 34vw; }
  .grow__stage--m .grow__tile { height: 46vw; }
  .grow__stage--l .grow__tile { height: 62vw; }

  .calc { min-height: 84svh; }
  .calc__control { width: 100%; }
  .calc__bottom { flex-direction: column; align-items: flex-start; }
  .calc__figure { flex-direction: column; }
  .calc__unit { letter-spacing: -0.01em; }
  .calc__how { width: auto; font-size: var(--fs-small); }

  .board { padding: calc(var(--bar-h) + 6px) 6px 6px; }
  .board__grid {
    grid-template-columns: 1fr 1fr; grid-auto-rows: 28vw; gap: 6px;
    grid-template-areas:
      "head head" "head head" "lesson lesson" "lesson lesson" "lesson lesson"
      "xp gem" "xp gem" "hearts league" "hearts league" "remind remind" "remind remind" "streak streak" "streak streak";
  }
  .tile { padding: 14px; }
  .ui--xp { font-size: 64px; }
  .ui--gem { font-size: 72px; }
  .ui--lesson { font-size: 30px; }
  .ui--hearts { font-size: 120px; }
  .ui--league { font-size: 20px; right: -40px; left: 10px; }
  .ui--remind { font-size: 40px; }
  .ui--streak { font-size: 96px; right: auto; left: 14px; }
  .tile--streak img { width: 240px; height: 240px; right: -50px; top: -30px; }

  .plans { grid-template-columns: 1fr; }
  .plan { min-height: 70svh; padding-top: 112px; }
  .plan--free { order: -1; }
  .plan__foot .btn { width: 100%; }

  .faq__head { min-height: 30svh; }
  .faq__band { display: block; padding: 32px 20px; }
  .faq__band h3 { margin-bottom: 10px; }

  .close { min-height: 80svh; }
  .close__foot { flex-direction: column; align-items: stretch; }
  .close .btn { width: 100%; }

  .foot { padding-top: 72px; }
  .foot__row { display: block; }
  .foot__links { margin-top: 40px; grid-template-columns: 1fr 1fr; }
  .foot__legal { flex-direction: column; margin-top: 56px; }
}
