/* Crocolingo landing · "Pantano Premium": forest surfaces, ONE lime action, Inter Black tight
   display, sticker depth (buttons with a lip that sinks when pressed). */
:root {
  --abyss: #0b1407;
  --forest: #163300;
  --spruce: #1e3f12;
  --moss: #24401a;
  --line: #2e4f22;
  --lime: #9fe870;
  --lime-deep: #6fbf3f;
  --lime-ink: #163300;
  --sun: #ffd24a;
  --sun-deep: #d9a21b;
  --lagoon: #4fc3e8;
  --lagoon-deep: #2a93b8;
  --coral: #ff6b5e;
  --lilac: #c9a7ff;
  --blush: #f6b98a;
  --text: #e2f6d5;
  --muted: #9aae90;
  --faint: #5f7556;
  --r-lg: 22px;
  --r-xl: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--abyss);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lime { color: var(--lime); }
h1, h2, h3 { font-weight: 900; letter-spacing: -.04em; line-height: .98; }
h2 { font-size: clamp(40px, 6vw, 76px); }
h3 { font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }

/* ── Buttons (sticker lip) ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px;
  font-weight: 800; padding: 16px 28px; transition: transform .15s var(--ease), box-shadow .15s var(--ease), filter .2s;
}
.btn-sm { padding: 11px 20px; font-size: 16px; }
.btn-lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 5px 0 var(--lime-deep); }
.btn-lagoon { background: var(--lagoon); color: #06232e; box-shadow: 0 4px 0 var(--lagoon-deep); }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lime-deep); }
.btn-lagoon:active { box-shadow: 0 0 0 var(--lagoon-deep); }

.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; border-radius: 18px;
  font-weight: 800; font-size: 20px; line-height: 1.05; transition: transform .2s var(--spring), box-shadow .2s;
}
.store svg { width: 30px; height: 30px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 600; opacity: .75; }
.store-apple { background: var(--lime); color: var(--lime-ink); box-shadow: 0 6px 0 var(--lime-deep), 0 18px 40px -12px rgba(159, 232, 112, .55); }
.store-apple:hover { transform: translateY(-2px) scale(1.02); }
.store-apple:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--lime-deep); }
.store-soon { border: 2px solid var(--line); color: var(--muted); background: rgba(22, 51, 0, .5); cursor: default; }
.store-dark { background: var(--abyss); color: var(--lime); box-shadow: 0 6px 0 #050a03; }
.store-dark:hover { transform: translateY(-2px) scale(1.02); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50; transform: translateX(-50%);
  width: min(var(--max), calc(100% - 28px)); display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 16px; border-radius: 999px; border: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s, top .35s;
}
.nav.scrolled { background: rgba(11, 20, 7, .72); border-color: var(--line); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); top: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: -.03em; }
.brand img { border-radius: 12px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────── */
.hero-clip { overflow: clip; overflow-clip-margin: 0; }
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  max-width: var(--max); margin: 0 auto; padding: 130px 24px 80px;
}
.hero-river { position: absolute; inset: 0 -30vw; width: 160vw; height: 100%; z-index: -1; opacity: .9; }
.river-body { fill: none; stroke: url(#riverGrad); stroke-width: 120; stroke-linecap: round; opacity: .35; }
.river-flow { fill: none; stroke: var(--lagoon); stroke-width: 3; stroke-dasharray: 2 26; stroke-linecap: round; opacity: .55; animation: flow 3.2s linear infinite; }
.pads circle { fill: #2f6a1a; stroke: #3f8a24; stroke-width: 3; opacity: .55; animation: bob 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pads circle:nth-child(2) { animation-delay: -1s; } .pads circle:nth-child(3) { animation-delay: -2s; } .pads circle:nth-child(4) { animation-delay: -3s; }
@keyframes flow { to { stroke-dashoffset: -280; } }
@keyframes bob { 50% { transform: translateY(-8px) scale(1.05); } }

.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.glow-a { width: 520px; height: 520px; right: -4%; top: 12%; background: radial-gradient(circle, rgba(159, 232, 112, .32), transparent 65%); animation: drift 12s ease-in-out infinite alternate; }
.glow-b { width: 420px; height: 420px; left: -8%; bottom: -6%; background: radial-gradient(circle, rgba(79, 195, 232, .2), transparent 65%); animation: drift 14s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.12); } }

.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(22, 51, 0, .7); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--lime); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(159, 232, 112, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(159, 232, 112, 0); } 100% { box-shadow: 0 0 0 0 rgba(159, 232, 112, 0); } }

.hero h1 { font-size: clamp(52px, 6.6vw, 92px); margin: 22px 0 22px; }
.rotator { display: inline-grid; vertical-align: bottom; color: var(--lime); overflow: hidden; height: 1.02em; }
.rot-word { grid-area: 1 / 1; transform: translateY(105%); opacity: 0; transition: transform .7s var(--spring), opacity .4s; white-space: nowrap; }
.rot-word.is-on { transform: none; opacity: 1; }
.rot-word.is-out { transform: translateY(-105%); opacity: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { list-style: none; padding: 0; display: flex; gap: 36px; margin-top: 44px; }
.hero-stats b { display: block; font-size: 38px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.hero-stats span { font-size: 14px; color: var(--muted); font-weight: 600; }

.hero-visual { position: relative; justify-self: center; }
.phone {
  position: relative; width: 300px; padding: 10px; border-radius: 52px; background: #050605;
  box-shadow: inset 0 0 0 3px #2a2d28, 0 50px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(159, 232, 112, .08);
}
.phone img { border-radius: 42px; width: 100%; height: auto; }
.island { position: absolute; z-index: 2; left: 50%; top: 20px; width: 90px; height: 26px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.phone-hero { z-index: 1; transform: perspective(1200px) rotateY(-14deg) rotateX(6deg) rotateZ(2deg); transition: transform .5s var(--ease); animation: rise 1.2s var(--spring) both .2s; }
@keyframes rise { from { opacity: 0; transform: perspective(1200px) translateY(80px) rotateY(-14deg) rotateX(18deg); } }
.hero-kroko { position: absolute; width: 230px; left: -150px; bottom: -40px; z-index: 3; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5)); animation: pop .9s var(--spring) both .9s; }
@keyframes pop { from { opacity: 0; transform: scale(.4) translateY(40px); } }
.float {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 16px;
  background: rgba(22, 51, 0, .82); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 15px; font-weight: 700; white-space: nowrap; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
  animation: floatY 5s ease-in-out infinite, fadeIn .8s var(--ease) both;
}
.float b { color: var(--lime); font-weight: 900; }
.float span { font-size: 20px; }
.f1 { top: 8%; right: -70px; animation-delay: -1s, 1.1s; }
.f2 { top: 38%; left: -90px; animation-delay: -2.5s, 1.3s; }
.f3 { bottom: 20%; right: -110px; animation-delay: -3.5s, 1.5s; }
.f4 { top: -16px; left: 10px; animation-delay: -.5s, 1.7s; }
.stars { color: var(--sun); letter-spacing: 2px; font-size: 18px !important; }
@keyframes floatY { 50% { transform: translateY(-14px); } }
@keyframes fadeIn { from { opacity: 0; } }

/* ── Marquee ─────────────────────────────────────────────── */
.marquee { padding: 30px 0; border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(22, 51, 0, .35), transparent); overflow: hidden; display: grid; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-row { display: flex; gap: 14px; width: max-content; animation: slideL 40s linear infinite; }
.marquee-row[data-dir='right'] { animation-name: slideR; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row span { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--forest); border: 1px solid var(--line); font-weight: 800; font-size: 18px; white-space: nowrap; }
.marquee-row i { font-style: normal; font-weight: 500; color: var(--muted); font-size: 15px; }
@keyframes slideL { to { transform: translateX(-50%); } }
@keyframes slideR { from { transform: translateX(-50%); } }

/* ── Sections ────────────────────────────────────────────── */
.section { max-width: var(--max); margin: 0 auto; padding: 130px 24px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p { color: var(--muted); margin-top: 22px; font-size: 20px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 30px; border-radius: var(--r-xl); background: var(--forest); border: 2px solid var(--line); border-bottom-width: 6px; transition: transform .35s var(--spring), border-color .3s; }
.step:hover { transform: translateY(-8px) rotate(-.6deg); border-color: var(--lime); }
.step img { width: 130px; margin: 6px 0 18px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .4)); transition: transform .45s var(--spring); }
.step:hover img { transform: scale(1.08) rotate(-4deg); }
.step p { color: var(--muted); margin-top: 10px; font-size: 17px; }
.step-n { position: absolute; top: 24px; right: 26px; font-weight: 900; font-size: 64px; letter-spacing: -.05em; color: var(--moss); line-height: 1; }

/* ── River (scroll-driven) ───────────────────────────────── */
.river-section { height: 300vh; position: relative; }
.river-sticky { position: sticky; top: 0; height: 100svh; max-width: var(--max); margin: 0 auto; padding: 100px 24px 40px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.river-copy h2 { font-size: clamp(38px, 4.6vw, 62px); }
.river-copy p { color: var(--muted); margin: 18px 0 22px; font-size: 18px; max-width: 480px; }
.level-list { list-style: none; padding: 0; display: grid; gap: 4px; }
.level-list li { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; padding: 7px 14px; border-radius: 16px; border: 1px solid transparent; color: var(--faint); font-weight: 800; transition: all .4s var(--ease); }
.level-list li b { grid-row: span 2; font-size: 22px; font-weight: 900; text-align: center; padding: 6px 0; border-radius: 12px; background: var(--moss); color: var(--faint); transition: all .4s var(--ease); }
.level-list li span { font-size: 14px; font-weight: 500; }
.level-list li.on { color: var(--text); background: rgba(22, 51, 0, .6); border-color: var(--line); }
.level-list li.on b { background: var(--lime); color: var(--lime-ink); }
.level-list li.on span { color: var(--muted); }
.river-art { position: relative; height: min(78svh, 760px); justify-self: center; aspect-ratio: 400 / 900; }
.river-svg { width: 100%; height: 100%; overflow: visible; }
.track { fill: none; stroke: #12351f; stroke-width: 54; stroke-linecap: round; }
.draw { fill: none; stroke: var(--lagoon); stroke-width: 54; stroke-linecap: round; opacity: .8; }
.node circle { transition: fill .4s, transform .5s var(--spring); transform-box: fill-box; transform-origin: center; }
.node .pad { fill: #24401a; stroke: #2e4f22; stroke-width: 4; }
.node.on .pad { fill: var(--lime); stroke: var(--lime-deep); transform: scale(1.12); }
.node text { font: 900 22px Inter, sans-serif; fill: var(--faint); text-anchor: middle; dominant-baseline: central; transition: fill .4s; }
.node.on text { fill: var(--lime-ink); }
.river-kroko { position: absolute; width: 88px; left: 0; top: 0; z-index: 2; translate: -50% -80%; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .5)); transition: width .4s var(--spring); }

/* ── Bento ───────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { position: relative; overflow: hidden; padding: 28px; border-radius: var(--r-xl); background: var(--forest); border: 1px solid var(--line); transition: transform .4s var(--spring), border-color .3s; }
.card:hover { transform: translateY(-6px); border-color: #3f6b2f; }
.card h3 { margin-top: 14px; max-width: 420px; }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(159, 232, 112, .09), transparent 40%); opacity: 0; transition: opacity .3s; }
.card:hover::after { opacity: 1; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tag-lime { background: var(--lime); color: var(--lime-ink); }
.tag-lilac { background: var(--lilac); color: #1e0b3a; }
.tag-sun { background: var(--sun); color: #2b2000; }
.tag-coral { background: var(--coral); color: #2a0e05; }
.tag-lagoon { background: var(--lagoon); color: #06232e; }
.card-pron { grid-column: span 4; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto 1fr auto; gap: 18px 24px; }
.card-pron .card-top { grid-column: 1 / -1; }
.pron-demo { display: grid; justify-items: center; align-content: center; gap: 6px; padding: 24px; border-radius: var(--r-lg); background: var(--abyss); border: 1px solid var(--line); }
.ipa { color: var(--lime); font: 800 26px ui-monospace, monospace; }
.word { display: flex; gap: 8px; }
.word span { font-size: 56px; font-weight: 900; letter-spacing: -.03em; padding: 4px 14px; border-radius: 16px; background: #050a03; border: 2px solid var(--line); border-bottom-width: 5px; }
.word .focus { background: var(--lime); color: var(--lime-ink); border-color: var(--lime-deep); text-decoration: underline 4px; text-underline-offset: 6px; }
.ipa-full { color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.score { position: relative; display: grid; place-items: center; align-content: center; }
.score svg { width: 170px; height: 170px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--moss); stroke-width: 12; }
.ring { fill: none; stroke: var(--lime); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.6s var(--ease); }
.card-pron.in .ring { stroke-dashoffset: calc(314.16 * .08); }
.score-num { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -62%); font-weight: 900; font-size: 30px; color: var(--lime); }
.score-num b { font-size: 46px; letter-spacing: -.04em; }
.score small { margin-top: 10px; font-weight: 800; color: var(--lime); }
.wave { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; height: 46px; }
.wave i { flex: 1; height: 100%; border-radius: 99px; background: linear-gradient(var(--lime), var(--lagoon)); transform: scaleY(.15); animation: eq 1.2s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-duration: .9s; } .wave i:nth-child(3n) { animation-duration: 1.4s; } .wave i:nth-child(4n) { animation-delay: -.4s; } .wave i:nth-child(5n) { animation-delay: -.8s; }
@keyframes eq { 50% { transform: scaleY(1); } }

.card-chat { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.chat { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 20px; font-size: 16px; font-weight: 600; opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .45s var(--ease), transform .55s var(--spring); }
.bubble.show { opacity: 1; transform: none; }
.bubble.kroko { align-self: flex-start; background: var(--spruce); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--lime); color: var(--lime-ink); border-bottom-right-radius: 6px; }
.bubble.goal { background: rgba(255, 210, 74, .14); color: var(--sun); border: 1px solid rgba(255, 210, 74, .4); align-self: center; text-align: center; }

.card-vocab { grid-column: span 2; }
.card-vocab h3 b { color: var(--sun); }
.flips { display: grid; gap: 10px; margin-top: 20px; }
.flip { position: relative; height: 54px; border: 0; background: none; perspective: 600px; }
.flip span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; font-weight: 800; backface-visibility: hidden; transition: transform .6s var(--spring); }
.flip .front { background: var(--abyss); border: 1px solid var(--line); }
.flip .back { background: var(--sun); color: #2b2000; transform: rotateX(180deg); }
.flip.flipped .front { transform: rotateX(-180deg); }
.flip.flipped .back { transform: rotateX(0); }
.hint { display: block; margin-top: 12px; color: var(--faint); font-weight: 600; font-size: 13px; }

.card-grow { grid-column: span 2; }
.stages { display: flex; justify-content: space-between; align-items: flex-end; margin: 26px 0 16px; }
.stages img { width: 19%; transition: transform .4s var(--spring); }
.stages img:hover { transform: translateY(-10px) scale(1.15); }
.card-grow.in .stages img { animation: hop .6s var(--spring) both; }
.card-grow.in .stages img:nth-child(2) { animation-delay: .12s; } .card-grow.in .stages img:nth-child(3) { animation-delay: .24s; } .card-grow.in .stages img:nth-child(4) { animation-delay: .36s; } .card-grow.in .stages img:nth-child(5) { animation-delay: .48s; }
@keyframes hop { from { opacity: 0; transform: translateY(24px) scale(.6); } }
.grow-bar { height: 12px; border-radius: 99px; background: var(--moss); overflow: hidden; }
.grow-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--coral); transition: width 1.8s var(--ease) .3s; }
.card-grow.in .grow-bar span { width: 62%; }

.card-daily { grid-column: span 3; }
.streak { display: flex; align-items: center; gap: 16px; margin: 24px 0 18px; }
.flame { font-size: 58px; animation: flicker 1.6s ease-in-out infinite; transform-origin: bottom center; }
@keyframes flicker { 30% { transform: scale(1.08) rotate(-3deg); } 60% { transform: scale(.96) rotate(2deg); } }
.streak b { display: block; font-size: 48px; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--sun); }
.streak small { color: var(--muted); font-weight: 700; }
.week { display: flex; gap: 8px; }
.week i { flex: 1; height: 12px; border-radius: 99px; background: var(--moss); }
.week i.on { background: var(--lime); }
.week i.today { background: var(--sun); animation: ping-sun 1.8s infinite; }
@keyframes ping-sun { 50% { opacity: .5; } }

.card-save { grid-column: span 3; }
.saves { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 20px; }
.saves li { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--abyss); border: 1px solid var(--line); }
.saves span { font-weight: 800; }
.saves em { grid-row: 2; font-style: normal; color: var(--muted); font-size: 14px; }
.bm { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; position: relative; transition: background .25s, transform .3s var(--spring); }
.bm::before { content: ''; position: absolute; inset: 11px 13px 9px; background: var(--muted); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.bm[aria-pressed='true'] { background: var(--lime); border-color: var(--lime); }
.bm[aria-pressed='true']::before { background: var(--lime-ink); }
.bm:active { transform: scale(.85); }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery { padding: 60px 0 130px; overflow: hidden; }
.gallery .section-head { max-width: var(--max); padding: 0 24px; margin: 0 auto 56px; }
.gallery-track { display: flex; gap: 34px; padding: 30px 6vw; width: max-content; will-change: transform; }
.gallery-track .phone { width: 260px; flex: none; transition: transform .5s var(--spring); }
.gallery-track .phone:nth-child(odd) { transform: translateY(30px) rotate(-2deg); }
.gallery-track .phone:nth-child(even) { transform: rotate(2deg); }
.gallery-track .phone:hover { transform: translateY(-14px) rotate(0) scale(1.03); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: var(--r-lg); background: var(--forest); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s; }
.faq details[open] { border-color: var(--lime); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 800; font-size: 20px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 28px; line-height: .8; color: var(--lime); transition: transform .35s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--muted); }

/* ── Final CTA ───────────────────────────────────────────── */
.final { max-width: var(--max); margin: 0 auto; padding: 40px 24px 120px; }
.final-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px;
  padding: 50px 56px; border-radius: 40px; color: var(--lime-ink);
  background: radial-gradient(800px circle at 0% 0%, #c6f7a4, transparent 60%), var(--lime);
  box-shadow: 0 10px 0 var(--lime-deep), 0 40px 90px -30px rgba(159, 232, 112, .6);
}
.final-card h2 { font-size: clamp(36px, 4.8vw, 64px); }
.final-card p { font-size: 20px; font-weight: 600; margin-top: 16px; opacity: .8; }
.final-kroko { width: 250px; position: relative; z-index: 1; }
.final-copy { position: relative; z-index: 1; }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.footer { max-width: var(--max); margin: 0 auto; padding: 40px 24px 60px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 15px; }

/* ── Reveal on scroll ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 120px; }
  .hero-visual { margin-top: 30px; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .card-pron, .card-chat, .card-vocab, .card-grow, .card-daily, .card-save { grid-column: auto; grid-row: auto; }
  .river-section { height: auto; }
  .river-sticky { position: relative; height: auto; grid-template-columns: 1fr; padding: 100px 24px; }
  .river-art { height: 640px; }
  .final-card { grid-template-columns: 1fr; text-align: center; padding: 40px 26px; }
  .final-kroko { justify-self: center; width: 200px; }
  .final-card .cta-row { justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav { gap: 12px; padding: 8px 8px 8px 12px; width: calc(100% - 20px); }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 32px; height: 32px; border-radius: 10px; }
  .nav .btn { padding: 9px 16px; font-size: 15px; }
  .section { padding: 90px 18px; }
  .hero { padding-inline: 18px; }
  .phone { width: 250px; border-radius: 44px; }
  .phone img { border-radius: 36px; }
  .hero-kroko { width: 150px; left: -40px; bottom: -30px; }
  .f1 { right: -14px; } .f2 { left: -18px; } .f3 { right: -10px; bottom: 14%; }
  .float { font-size: 13px; padding: 8px 12px; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 30px; }
  .card-pron { grid-template-columns: 1fr; }
  .word span { font-size: 44px; }
  .footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .bubble { opacity: 1; transform: none; }
}

/* ── Language switch, footer links ───────────────────────── */
.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(22, 51, 0, .7); border: 1px solid var(--line); }
.lang-switch button { font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--muted); background: none; border: 0; padding: 7px 11px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.lang-switch button[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); }
.lang-switch button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-weight: 600; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--text); }
@media (max-width: 980px) {
  .lang-switch { margin-left: auto; }
  .nav .btn { margin-left: 0; }
}
@media (max-width: 560px) {
  .lang-switch button { padding: 6px 8px; font-size: 12px; }
}

/* ── Legal pages ─────────────────────────────────────────── */
html[data-lang="en"] [data-lang-block="es"], html[data-lang="es"] [data-lang-block="en"] { display: none; }
.legal { max-width: 760px; margin: 0 auto; padding: 130px 24px 80px; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-bottom: 12px; }
.legal .updated { color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 38px 0 10px; color: var(--lime); }
.legal p, .legal li { color: #c9dcbd; line-height: 1.65; font-size: 17px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 8px; }
.legal a { color: var(--lagoon); text-decoration: underline; text-underline-offset: 3px; }
.legal b { color: var(--text); }
.legal .summary { background: var(--forest); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px 24px; margin-bottom: 8px; }
.legal .summary ul { margin: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: #c9dcbd; }
.legal th { color: var(--text); font-weight: 800; }
.legal .table-wrap { overflow-x: auto; }
.nav-back { margin-left: auto; font-size: 15px; font-weight: 600; color: var(--muted); }
.nav-back:hover { color: var(--text); }
.nav-back + .lang-switch { margin-left: 0; }
@media (max-width: 560px) {
  .nav-back { font-size: 13px; }
  .legal { padding: 110px 18px 60px; }
}
