/* Vocabit landing v2 — an Apple-style product page, bright and playful. Served at /site/site.css (see app/landing.py). */
:root {
  --dir: 1; /* −1 on right-to-left pages: mirrors the motion and the offsets that are not logical properties */
  --ink: #0B0D17;
  --ink2: #474C60;
  --ink3: #767B8F;
  --soft: #F4F5FA;
  --blue: #2563EB;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.5, .64, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
html[dir=rtl] { --dir: -1; }
/* Arabic letters join: any letter-spacing would pull them apart */
html[lang=ar] * { letter-spacing: 0 !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
.sr, .sprite { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* shared bits ------------------------------------------------------------------------------------------------------- */
.flag { display: block; flex: none; width: 22px; height: auto; aspect-ratio: 3 / 2; border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07); }
.gl { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

.badge { display: inline-block; line-height: 0; border-radius: 11px; transition: transform .2s var(--ease-out); }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 54px; width: auto; }
.badge-fb { display: none; }
.badge.fallback img { display: none; }
.badge.fallback .badge-fb { display: inline-flex; align-items: center; height: 54px; padding: 0 22px; border-radius: 12px; background: #000; color: #fff;
  font: 600 17px/1 var(--font); }
.note { font-size: 15px; color: var(--ink3); font-weight: 500; }

/* word cards (hero, wall, final) */
.c {
  position: relative;
  display: block;
  min-width: 150px;
  padding: 12px 18px 14px;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  text-align: start;
  rotate: calc(var(--r, 0deg) * var(--dir));
  box-shadow: 0 1px 2px rgba(22, 28, 66, .06), 0 14px 34px -12px rgba(22, 28, 66, .28);
}
.c .lg { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink3); }
.c b { display: block; margin-top: 6px; font-size: 24px; line-height: 1.12; font-weight: 750; letter-spacing: -.025em; white-space: nowrap; }
.c .tr { display: block; margin-top: 2px; font-size: 16px; font-weight: 500; color: var(--ink3); white-space: nowrap; }
.c.pill { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 20px 11px 14px; border-radius: 999px; }
.c.pill b { margin: 0; font-size: 22px; }
.c.pill .flag { width: 24px; }
.c:not(.white):not(.yellow) { color: #fff; }
.c:not(.white):not(.yellow) .lg, .c:not(.white):not(.yellow) .tr { color: rgba(255, 255, 255, .86); }
.c:not(.white):not(.yellow) .flag { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55); }
.c.blue { background: linear-gradient(150deg, #4F8EF7, #1D4ED8); }
.c.pink { background: linear-gradient(150deg, #F05AA6, #B0186A); }
.c.orange { background: linear-gradient(150deg, #FB8A4C, #D9361F); }
.c.green { background: linear-gradient(150deg, #22C993, #0F766E); }
.c.violet { background: linear-gradient(150deg, #9B6CF8, #5B21B6); }
.c.cyan { background: linear-gradient(150deg, #18C2DD, #0369A1); }
.c.yellow { background: linear-gradient(150deg, #FFE066, #FFC21A); color: #2B2100; }
.c.yellow .lg, .c.yellow .tr { color: rgba(43, 33, 0, .7); }

/* the phone, drawn in CSS around a real screen */
.phone {
  --w: 340px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * .03);
  border-radius: calc(var(--w) * .17);
  background: #0D0E11;
  box-shadow:
    inset 0 0 0 calc(var(--w) * .005) #3C3E45,
    0 0 0 calc(var(--w) * .005) #A6A8AF,
    0 0 0 calc(var(--w) * .009) #5E6067,
    0 calc(var(--w) * .1) calc(var(--w) * .2) calc(var(--w) * -.05) rgba(14, 18, 50, .42),
    0 calc(var(--w) * .03) calc(var(--w) * .06) rgba(14, 18, 50, .14);
}
.phone::before, .phone::after { content: ""; position: absolute; width: calc(var(--w) * .012); border-radius: 2px; background: #6B6D74; }
.phone::before { left: calc(var(--w) * -.019); top: 21%; height: 6%; box-shadow: 0 calc(var(--w) * .2) 0 #6B6D74, 0 calc(var(--w) * .34) 0 #6B6D74; }
.phone::after { right: calc(var(--w) * -.019); top: 28%; height: 11%; }
.screen {
  position: relative;
  aspect-ratio: 1320 / 2868;
  border-radius: calc(var(--w) * .14);
  overflow: hidden;
  background: #F2F2F7;
  isolation: isolate;
  transform: translateZ(0);
}
.screen > img, .screen > video, .layer, .layer > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; z-index: 9; left: 35.2%; width: 29.6%; top: 1.25%; height: 4.15%; border-radius: 99px; background: #000; }

/* nav -------------------------------------------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(20px, calc(50% - 600px));
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 750; letter-spacing: -.02em; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-cta { padding: 8px 17px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-cta:hover { background: #1D4ED8; }
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; cursor: pointer; user-select: none;
  color: var(--ink2); font-size: 15px; font-weight: 600; background: rgba(11, 13, 23, .05); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: rgba(11, 13, 23, .09); color: var(--ink); }
.lang svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lang .lc { display: none; text-transform: uppercase; letter-spacing: .02em; }
.lang ul { position: absolute; inset-inline-end: 0; top: 46px; z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 190px; max-height: calc(100vh - 80px); overflow: auto;
  background: #fff; border: 1px solid rgba(11, 13, 23, .08); border-radius: 16px; box-shadow: 0 24px 60px -16px rgba(14, 18, 50, .35); }
.lang li a { display: block; padding: 9px 13px; border-radius: 10px; font-size: 15.5px; font-weight: 500; text-decoration: none; color: var(--ink); }
.lang li a:hover { background: var(--soft); }
.lang li a[aria-current] { font-weight: 750; color: var(--blue); }

/* 1 · hero ------------------------------------------------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: clip;
  padding-top: calc(56px + clamp(40px, 6.5vh, 70px));
  text-align: center;
  background:
    radial-gradient(900px 520px at 50% 18%, rgba(219, 234, 254, .9), rgba(219, 234, 254, 0) 70%),
    radial-gradient(700px 420px at 12% 70%, rgba(252, 231, 243, .8), rgba(252, 231, 243, 0) 70%),
    radial-gradient(700px 420px at 88% 70%, rgba(255, 237, 213, .8), rgba(255, 237, 213, 0) 70%),
    #fff;
}
.hero-copy { position: relative; z-index: 4; padding: 0 20px; }
.hero h1 { margin: 0; font-size: clamp(54px, 8.2vw, 122px); line-height: .94; font-weight: 800; letter-spacing: -.043em; }
.lead { margin: 22px auto 0; max-width: 40ch; font-size: clamp(19px, 1.65vw, 25px); line-height: 1.35; font-weight: 500; color: var(--ink2); letter-spacing: -.012em; }
.cta { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-stage { --pw: 340px; --k: 1; position: relative; height: calc(var(--pw) * 2.1 + 80px); margin-top: clamp(36px, 5vh, 56px); }
.hero-phone-wrap { position: absolute; left: 50%; top: 0; z-index: 2; transform: translate(-50%, var(--py, 0px)); }
.hero-phone { --w: var(--pw); }
/* offsets are given for left-to-right pages from the box's start edge; on right-to-left pages the box hangs from the right edge and everything mirrors */
.wc, .hg { position: absolute; inset-inline-start: 50%; top: 0; transform: translate3d(calc(var(--x) * var(--k) * var(--dir)), calc(var(--y) + var(--py, 0px)), 0); }
.wc { z-index: 3; }
.hg { z-index: 1; width: var(--s); height: var(--s); opacity: .32; }
.hg .gl { rotate: calc(var(--r) * var(--dir)); }

/* 2 · the pinned story ----------------------------------------------------------------------------------------------- */
.story { position: relative; }
.story-track { position: relative; height: calc(5 * 80vh + 100vh); }
.stage {
  --w: min(calc((100vh - 130px) / 2.1), 360px);
  --pc: min(21vw, 300px);
  position: sticky; top: 0; height: 100vh; overflow: hidden; color: #fff; background: #5B21B6;
}
.stage .bg { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
  background: radial-gradient(60% 70% at 72% 30%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 60%), linear-gradient(155deg, var(--c1), var(--c2)); }
.stage .bg.is-vis { opacity: 1; }
.stage-glyphs { position: absolute; left: 50%; top: -220px; width: 1600px; height: 1500px; margin-left: -800px; color: #fff; opacity: .14;
  transform: translateY(calc(var(--p, 0) * -320px)); }
.sg { position: absolute; width: var(--s, 30px); height: var(--s, 30px); }
.lines { position: absolute; top: 0; bottom: 0; inset-inline-start: max(40px, calc(50% - 600px));
  width: calc(50% + var(--pc) - var(--w) / 2 - max(40px, calc(50% - 600px)) - 40px); }
.line { position: absolute; left: 0; right: 0; top: 50%; opacity: 0; transform: translateY(calc(-50% + 30px));
  transition: opacity .45s ease, transform .7s var(--ease-out); }
.line.is-vis { opacity: 1; transform: translateY(-50%); transition-delay: .12s; }
.line h3, .sl h3 { margin: 0; font-size: clamp(44px, 5.6vw, 86px); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.line p, .sl-copy p { margin: 20px 0 0; font-size: clamp(18px, 1.55vw, 24px); line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: rgba(255, 255, 255, .9); }
.stage-phone-wrap { position: absolute; z-index: 3; left: calc(50% + var(--dir) * var(--pc) - var(--w) / 2); top: 50%; transform: translateY(-50%); }
.stage-phone .layer { opacity: 0; transition: opacity .5s ease; }
.stage-phone .layer.is-vis { opacity: 1; }
.dots { position: absolute; inset-inline-start: max(40px, calc(50% - 600px)); bottom: 44px; display: flex; gap: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .42); transition: width .45s var(--ease-out), background .45s; }
.dots i.is-vis { width: 30px; background: #fff; }

/* step visuals inside the screen: the default is the end state; .anim + not on = the start state */
.tap { position: absolute; z-index: 4; width: 21%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(15, 23, 42, .26) 0 55%, rgba(15, 23, 42, .12) 56% 100%); }
.anim .layer.is-on .tap { animation: tap 1s ease-out .95s both; }
.anim .l-test.is-on .tap { animation-delay: .45s; }
@keyframes tap { 0% { opacity: 0; scale: 1.6; } 28% { opacity: 1; scale: 1; } 62% { opacity: 1; scale: .9; } 100% { opacity: 0; scale: 1.3; } }

.flip-box { position: absolute; perspective: 1800px; }
.flip { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(180deg); }
.face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 4.5% / 4.6%; box-shadow: 0 6px 26px rgba(30, 32, 70, .08); }
.face.back { transform: rotateY(180deg); }
.anim .layer:not(.is-on) .flip { transform: none; transition: transform 0s .6s; } /* reset only once faded out */
.anim .layer.is-on .flip { transition: transform 1.05s cubic-bezier(.5, .05, .2, 1) .85s; }

.t-rows, .t-row, .t-panel { position: absolute; z-index: 3; }
.anim .layer:not(.is-on) .t-rows { opacity: 0; transition: opacity 0s .6s; }
.anim .layer:not(.is-on) .t-row { opacity: 0; scale: .96; transition: opacity 0s .6s, scale 0s .6s; }
.anim .layer:not(.is-on) .t-panel { translate: 0 104%; transition: translate 0s .6s; }
.anim .layer.is-on .t-rows { transition: opacity .3s ease .78s; }
.anim .layer.is-on .t-row { transition: opacity .2s ease .78s, scale .55s var(--spring) .78s; }
.anim .layer.is-on .t-panel { transition: translate .7s var(--ease-out) 1.08s; }

.bar { position: absolute; left: var(--bl); top: var(--bt); width: var(--bw); height: var(--bh); border-radius: 99px; }
.bar i { position: absolute; left: 0; top: 0; height: 100%; border-radius: 99px; }
.bar .b { width: var(--b); background: #A9C4F5; }
.bar .g { width: var(--g); background: #34C759; }
.bar.rtl i { left: auto; right: 0; }
.anim .layer:not(.is-on) .bar i { width: 0; transition: width 0s .6s; }
.anim .layer.is-on .bar .b { transition: width 1.3s var(--ease-out) calc(.45s + var(--i) * .07s); }
.anim .layer.is-on .bar .g { transition: width 1.3s var(--ease-out) calc(.75s + var(--i) * .07s); }

/* confetti for «Correct!» */
.confetti { position: absolute; left: 50%; top: 82%; width: 0; height: 0; z-index: 4; display: none; }
.anim .confetti { display: block; }
.confetti i { position: absolute; left: 0; top: 0; border-radius: 2px; opacity: 0; }
.confetti.is-on i { animation: conf 1.5s cubic-bezier(.12, .7, .35, 1) calc(1.3s + var(--d)) both; }
@keyframes conf {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1.25), calc(var(--dy) + 150px)) rotate(var(--rot)); }
}

/* the textbook page */
.paper { position: absolute; z-index: 5; margin: 0; width: 360px; direction: ltr; text-align: left; color: #24242A; font-family: var(--serif); }
.paper-in { position: relative; padding: 28px 30px 26px; border-radius: 6px; background: #FFFDF6;
  box-shadow: 0 34px 70px -24px rgba(20, 8, 60, .55), 0 2px 8px rgba(20, 8, 60, .16); }
.p-head { display: flex; justify-content: space-between; font: 700 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: #E8590C; }
.p-title { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 12px; }
.p-title h4 { margin: 0; font-size: 31px; font-weight: 700; letter-spacing: -.01em; }
.p-pic { width: 50px; height: 50px; padding: 11px; border-radius: 14px; background: #E7EFFE; color: #2563EB; }
.paper p { margin: 0 0 9px; font-size: 15.5px; line-height: 1.6; }
.p-ex { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #D9D4C6; font: 500 12.5px/1.4 var(--font); color: #6A6658; }
.p-ex b { color: #E8590C; margin-right: 4px; }
mark { color: inherit; padding: 0 2px; margin: 0 -2px; border-radius: 3px; background-image: linear-gradient(#FFE066, #FFD83D); background-repeat: no-repeat;
  background-position: 0 88%; background-size: 100% 68%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.anim .paper:not(.is-on) mark { background-size: 0% 68%; }
.anim .paper.is-on mark { transition: background-size .3s ease-out calc(.35s + var(--m) * .1s); }
.vf { position: absolute; width: 36px; height: 36px; border: 4px solid #fff; transition: opacity .4s; }
.vf.tl { left: -18px; top: -18px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.vf.tr { right: -18px; top: -18px; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.vf.bl { left: -18px; bottom: -18px; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.vf.br { right: -18px; bottom: -18px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.flash { position: absolute; inset: 0; border-radius: 6px; background: #fff; opacity: 0; pointer-events: none; }
.anim .paper.is-on .flash { animation: flash .8s ease-out 1.75s both; }
@keyframes flash { 0% { opacity: 0; } 14% { opacity: .95; } 100% { opacity: 0; } }

.paper.in-stage { inset-inline-start: calc(50% + var(--pc) - var(--w) / 2 - 236px); top: calc(50% - var(--w) * 1.05 + 160px); transform-origin: calc(50% - 50% * var(--dir)) 0;
  transition: transform .95s var(--ease-out), opacity .5s ease; }
.stage[data-step="-1"] .paper.in-stage, .stage[data-step="0"] .paper.in-stage { transform: translate(0, 30px) rotate(calc(var(--dir) * -6deg)) scale(.86); }
.stage[data-step="1"] .paper.in-stage { transform: translate(calc(var(--dir) * (var(--w) + 146px)), -138px) rotate(calc(var(--dir) * 5deg)) scale(.36); }
.stage[data-step="1"] .vf { opacity: 0; }
.stage[data-step="2"] .paper.in-stage, .stage[data-step="3"] .paper.in-stage, .stage[data-step="4"] .paper.in-stage {
  transform: translate(calc(var(--dir) * (var(--w) + 300px)), -220px) rotate(calc(var(--dir) * 14deg)) scale(.3); opacity: 0; }

/* the static sequence (phones, no JS, reduced motion) */
.story-list { display: none; margin: 0; padding: 0; list-style: none; }
.sl { position: relative; overflow: clip; padding: 76px 20px 72px; text-align: center; color: #fff;
  background: radial-gradient(90% 50% at 50% 22%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, var(--c1), var(--c2)); }
.sl-vis { position: relative; display: flex; justify-content: center; }
.sl .phone { --w: min(68vw, 280px); }
.sl-copy { margin-top: 40px; }
.sl .num { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50%; background: rgba(255, 255, 255, .2);
  font-size: 16px; font-weight: 750; }
.sl h3 { font-size: clamp(44px, 12vw, 72px); }
.paper.in-list { width: 360px; inset-inline-end: 50%; bottom: 34px; margin-inline-end: -186px; transform: rotate(calc(var(--dir) * 6deg)) scale(.56); transform-origin: calc(50% + 50% * var(--dir)) 100%; }
.paper.in-list .vf { display: none; }
html:not(.anim) .story-track { display: none; }
html:not(.anim) .story-list { display: block; }

/* 3 · any language --------------------------------------------------------------------------------------------------- */
.langs { position: relative; overflow: clip; padding: clamp(110px, 14vw, 170px) 0 clamp(96px, 11vw, 150px); text-align: center; background: #fff; }
.sec-copy { padding: 0 20px; }
.sec-copy h2 { margin: 0; font-size: clamp(50px, 7.4vw, 112px); line-height: .97; font-weight: 800; letter-spacing: -.043em; }
.sec-copy p { margin: 22px auto 0; max-width: 40ch; font-size: clamp(19px, 1.65vw, 25px); line-height: 1.38; font-weight: 500; color: var(--ink2); letter-spacing: -.012em; }
.anim .sec-copy:not(.is-on) > * { opacity: 0; translate: 0 34px; }
.anim .sec-copy.is-on > * { transition: opacity .7s ease, translate 1s var(--ease-out); }
.anim .sec-copy.is-on > p { transition-delay: .12s; }
.wall { margin-top: clamp(56px, 7vw, 92px); display: grid; gap: 20px; padding: 26px 0; transform: rotate(calc(var(--dir) * -3deg)); }
.mq-move { transform: translateX(var(--sx, 0px)); }
.mq-track { display: flex; align-items: center; gap: 20px; width: max-content; padding-inline-end: 20px; }
.anim .mq-track { animation: mq 70s linear infinite; }
.anim .mq2 .mq-track { animation-duration: 82s; animation-direction: reverse; }
.anim .mq3 .mq-track { animation-duration: 76s; }
.mq1 { margin-inline-start: -120px; }
.mq3 { margin-inline-start: -260px; }
@keyframes mq { to { transform: translateX(calc(var(--dir) * -50%)); } }
.wall .c { rotate: 0deg; }
.wall .c:nth-child(3n) { rotate: calc(var(--dir) * -2deg); }
.wall .c:nth-child(4n) { rotate: calc(var(--dir) * 2deg); }
.st { flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 30px; color: #fff; rotate: 6deg;
  box-shadow: 0 14px 30px -12px rgba(22, 28, 66, .35); }
.st:nth-child(2n) { rotate: -7deg; }
.st .gl { width: 54px; height: 54px; stroke-width: 1.7; }
.st.yellow { background: linear-gradient(150deg, #FFE066, #FFC21A); color: #4A3800; }
.st.pink { background: linear-gradient(150deg, #F05AA6, #B0186A); }
.st.cyan { background: linear-gradient(150deg, #18C2DD, #0369A1); }
.st.orange { background: linear-gradient(150deg, #FB8A4C, #D9361F); }
.st.violet { background: linear-gradient(150deg, #9B6CF8, #5B21B6); }
.st.green { background: linear-gradient(150deg, #22C993, #0F766E); }
.st.blue { background: linear-gradient(150deg, #4F8EF7, #1D4ED8); }
.ft { flex: none; width: 102px; border-radius: 14px; overflow: hidden; rotate: -5deg; box-shadow: 0 14px 30px -12px rgba(22, 28, 66, .35), 0 0 0 1px rgba(0, 0, 0, .05); }
.ft:nth-child(2n) { rotate: 6deg; }
.ft .flag { width: 100%; border-radius: 0; box-shadow: none; }
.ui-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 30px; max-width: 1180px; margin: clamp(64px, 7vw, 96px) auto 0; padding: 0 24px;
  list-style: none; font-size: clamp(30px, 3.6vw, 54px); font-weight: 780; letter-spacing: -.035em; line-height: 1.15; }
.ui-langs li:nth-child(6n+1) { color: #2563EB; }
.ui-langs li:nth-child(6n+2) { color: #DB2777; }
.ui-langs li:nth-child(6n+3) { color: #EA580C; }
.ui-langs li:nth-child(6n+4) { color: #059669; }
.ui-langs li:nth-child(6n+5) { color: #7C3AED; }
.ui-langs li:nth-child(6n+6) { color: #0E7490; }
.anim .ui-langs.is-on li { animation: popIn .7s var(--spring) calc(var(--i) * .06s) both; }
.anim .ui-langs:not(.is-on) li { opacity: 0; }
@keyframes popIn { from { opacity: 0; translate: 0 26px; scale: .85; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* 4 · duel ----------------------------------------------------------------------------------------------------------- */
.duel { position: relative; overflow: clip; color: #fff; padding: clamp(100px, 10vw, 140px) 0;
  background: radial-gradient(70% 80% at 85% 60%, rgba(255, 214, 102, .55), rgba(255, 214, 102, 0) 70%), linear-gradient(110deg, #D9480F 0%, #EA5A12 42%, #F59E0B 100%); }
.duel-in { max-width: 1200px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.duel .sec-copy { padding: 0; text-align: start; }
.duel .sec-copy h2 { font-size: clamp(48px, 6.2vw, 92px); }
.duel .sec-copy p { margin-inline-start: 0; color: rgba(255, 255, 255, .94); font-weight: 600; }
.duel-visual { position: relative; justify-self: center; padding-top: 96px; }
.duel-phone { --w: clamp(260px, calc((100vh - 230px) / 2.1), 330px); }
.score { position: absolute; z-index: 5; top: 0; left: 50%; width: 450px; margin-left: -225px; display: grid; grid-template-columns: auto auto 1fr auto auto;
  align-items: center; gap: 10px; padding: 14px 16px; border-radius: 24px; background: #fff; color: var(--ink);
  box-shadow: 0 24px 50px -18px rgba(90, 30, 0, .5); rotate: calc(var(--dir) * -2deg); direction: ltr; }
.score .who { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; color: var(--ink2); }
.score .who i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 800; }
.score .who.you i { background: #DBEAFE; color: #2563EB; }
.score .who.them i { background: #FFEDD5; color: #EA580C; }
.score .n { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.score .n.you { color: #2563EB; text-align: right; }
.score .n.them { color: #EA580C; }
.score .track { position: relative; height: 12px; border-radius: 99px; background: #EEF0F5; overflow: hidden; }
.score .sbar { position: absolute; top: 0; height: 100%; border-radius: 99px; transition: width .45s var(--ease-out); }
.score .sbar.you { left: 0; width: 50%; background: linear-gradient(90deg, #60A5FA, #2563EB); }
.score .sbar.them { right: 0; width: 30%; background: linear-gradient(270deg, #FDBA74, #EA580C); }
.score .plus { position: absolute; top: -12px; left: 28%; padding: 4px 10px; border-radius: 99px; background: #22C55E; color: #fff; font-size: 15px; font-weight: 800;
  opacity: 0; pointer-events: none; }
.score .plus.go { animation: plus .9s var(--ease-out) both; }
.score .plus.them { left: auto; right: 28%; background: #F97316; }
@keyframes plus { 0% { opacity: 0; translate: 0 10px; scale: .6; } 25% { opacity: 1; translate: 0 -10px; scale: 1.1; } 100% { opacity: 0; translate: 0 -42px; scale: 1; } }
.chip { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 17px; font-weight: 750; box-shadow: 0 18px 36px -14px rgba(90, 30, 0, .5); }
.chip.timer { inset-inline-start: -110px; top: 250px; rotate: calc(var(--dir) * -6deg); font-variant-numeric: tabular-nums; }
.chip.timer svg { width: 22px; height: 22px; fill: none; stroke: #2563EB; stroke-width: 2; stroke-linecap: round; }
.chip.streakx { inset-inline-end: -110px; top: 430px; rotate: calc(var(--dir) * 7deg); }
.anim .chip { animation: bob 5s ease-in-out infinite alternate; }
.anim .chip.streakx { animation-delay: -2s; }
@keyframes bob { from { transform: translateY(-7px); } to { transform: translateY(7px); } }

/* 5 · every day ------------------------------------------------------------------------------------------------------ */
.daily { padding: clamp(110px, 12vw, 160px) 24px; background: var(--soft); text-align: center; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1220px; margin: clamp(52px, 6vw, 80px) auto 0; text-align: start; }
.tile { margin: 0; display: flex; flex-direction: column; border-radius: 36px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(22, 28, 66, .05); }
.tile .vis { position: relative; height: 400px; display: grid; place-items: center; overflow: hidden; }
.tile figcaption { padding: 26px 30px 32px; font-size: 18px; line-height: 1.42; color: var(--ink2); }
.tile figcaption b { display: block; margin-bottom: 4px; font-size: 25px; letter-spacing: -.025em; color: var(--ink); }
.t-goal .vis { background: linear-gradient(160deg, #EAF2FF, #CFE0FF); }
.ring { position: relative; width: 220px; height: 220px; }
.ring svg { width: 100%; height: 100%; rotate: -90deg; }
.ring circle { fill: none; stroke-width: 20; }
.ring .rt { stroke: #fff; }
.ring .rp { stroke: url(#rg); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.anim .t-goal:not(.is-on) .rp { stroke-dashoffset: 100; }
.anim .t-goal.is-on .rp { transition: stroke-dashoffset 1.8s cubic-bezier(.3, .1, .2, 1) .25s; }
.ring-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-n b { font-size: 72px; line-height: 1; font-weight: 800; letter-spacing: -.05em; color: #1D4ED8; font-variant-numeric: tabular-nums; }
.ring-n span { margin-top: 6px; font-size: 15px; font-weight: 600; color: #4B6AA8; }
.goals { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; justify-content: center; gap: 8px; }
.goals span { min-width: 52px; padding: 8px 12px; border-radius: 99px; background: rgba(255, 255, 255, .85); color: #1E3A8A; font-size: 16px; font-weight: 700; text-align: center; }
.goals span.on { background: #2563EB; color: #fff; box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .8); }
.t-goal .vis { place-items: start center; padding-top: 52px; }

.t-streak .vis { background: linear-gradient(160deg, #FFF4E8, #FFDDBF); align-content: center; gap: 0; padding-bottom: 20px; }
.flame { width: 118px; height: auto; overflow: visible; filter: drop-shadow(0 16px 24px rgba(234, 88, 12, .35)); }
.flame path { transform-box: fill-box; transform-origin: 50% 100%; }
.anim .flame .f1 { animation: flick 1.4s ease-in-out infinite alternate; }
.anim .flame .f2 { animation: flick 1.1s ease-in-out -.5s infinite alternate-reverse; }
@keyframes flick { 0% { transform: scale(1, 1) skewX(0deg); } 50% { transform: scale(1.03, .96) skewX(-2.5deg); } 100% { transform: scale(.97, 1.05) skewX(2.5deg); } }
.streak-n { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 8px; }
.streak-n b { font-size: 72px; line-height: 1; font-weight: 800; letter-spacing: -.05em; color: #E8590C; font-variant-numeric: tabular-nums; }
.streak-n span { font-size: 18px; font-weight: 700; color: #9A3412; }
.week { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.week i { width: 28px; height: 28px; border-radius: 50%; background: #FF6B35; box-shadow: inset 0 0 0 0 #fff; }
.week i.today { background: #FF6B35; box-shadow: 0 0 0 3px #FFDDBF, 0 0 0 5px #FF6B35; }
.anim .t-streak:not(.is-on) .week i.today { background: transparent; }
.anim .t-streak.is-on .week i.today { transition: background .4s ease 1.3s; }
.anim .t-streak:not(.is-on) .week i { scale: .4; opacity: 0; }
.anim .t-streak.is-on .week i { transition: scale .5s var(--spring), opacity .3s; }
.anim .t-streak.is-on .week i:nth-child(1) { transition-delay: .15s; } .anim .t-streak.is-on .week i:nth-child(2) { transition-delay: .25s; }
.anim .t-streak.is-on .week i:nth-child(3) { transition-delay: .35s; } .anim .t-streak.is-on .week i:nth-child(4) { transition-delay: .45s; }
.anim .t-streak.is-on .week i:nth-child(5) { transition-delay: .55s; } .anim .t-streak.is-on .week i:nth-child(6) { transition-delay: .65s; }
.anim .t-streak.is-on .week i:nth-child(7) { transition-delay: .8s; }

.t-lock .vis { background:
  radial-gradient(60% 50% at 20% 15%, rgba(255, 180, 120, .75), rgba(255, 180, 120, 0) 70%),
  radial-gradient(60% 60% at 90% 40%, rgba(236, 72, 153, .8), rgba(236, 72, 153, 0) 70%),
  linear-gradient(170deg, #6D5BEA 0%, #4338CA 55%, #1E1B4B 100%); }
.lock { position: relative; width: 330px; height: 352px; color: #fff; text-align: center; }
.lock-top svg { width: 17px; height: 17px; margin: 0 auto; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.lock-date { margin-top: 10px; font-size: 16px; font-weight: 600; opacity: .9; }
.lock-time { font-size: 82px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.la { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 10px; border-radius: 24px; text-align: start;
  background: rgba(14, 14, 18, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.la-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; }
.la-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 159, 10, .2); font-size: 19px; }
.la-t b { display: block; font-size: 16px; font-weight: 650; white-space: nowrap; }
.la-t small { display: block; margin-top: 1px; font-size: 11.5px; color: #98989F; white-space: nowrap; }
.la-c { text-align: end; }
.la-c small { display: block; font-size: 11px; color: #98989F; }
.la-c b { display: block; font-size: 20px; font-weight: 750; color: #FF9F0A; font-variant-numeric: tabular-nums; }
.la-btn { display: grid; place-items: center; height: 36px; margin-top: 10px; border-radius: 12px; background: #FF9F0A; color: #000; font-size: 15px; font-weight: 700; }
.la-off { margin-top: 7px; font-size: 11px; color: #98989F; text-align: center; }
.anim .t-lock:not(.is-on) .la { opacity: 0; translate: 0 40px; scale: .94; }
.anim .t-lock.is-on .la { transition: opacity .5s ease .35s, translate .8s var(--spring) .35s, scale .8s var(--spring) .35s; }

/* the questions: quiet, collapsed, before the last scene (SEO and assistants read them; so does anyone who wants to know) */
.faq { padding: clamp(84px, 9vw, 130px) 24px clamp(76px, 8vw, 112px); background: #fff; }
.faq h2 { margin: 0 0 clamp(24px, 3vw, 36px); text-align: center; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid rgba(11, 13, 23, .1); }
.faq-list details { border-bottom: 1px solid rgba(11, 13, 23, .1); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 2px; cursor: pointer; list-style: none;
  font-size: 18px; line-height: 1.35; font-weight: 650; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-top: -4px; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3);
  transform: rotate(45deg); transition: transform .25s var(--ease-out), margin .25s var(--ease-out); }
.faq-list details[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.faq-list summary:hover { color: var(--blue); }
.faq-list p { margin: 0; padding: 0 2px 22px; max-width: 62ch; font-size: 17px; line-height: 1.55; color: var(--ink2); }
.faq-contact { margin: 26px 0 0; text-align: center; font-size: 16px; color: var(--ink2); }
.faq-contact a { color: var(--blue); text-decoration: none; font-weight: 600; }
.faq-contact a:hover { text-decoration: underline; }

/* 6 · final ---------------------------------------------------------------------------------------------------------- */
.final { position: relative; overflow: clip; padding: clamp(130px, 14vw, 190px) 24px clamp(140px, 15vw, 200px); text-align: center; color: #fff;
  background: radial-gradient(70% 60% at 50% 0%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 65%), linear-gradient(160deg, #4F8EF7 0%, #2563EB 50%, #1D4ED8 100%); }
.final-bg { position: absolute; inset: 0; --k: 1; }
.final-glyphs { position: absolute; left: 50%; top: 0; width: 1600px; height: 760px; margin-left: -800px; color: #fff; opacity: .13; }
.fc { position: absolute; inset-inline-start: 50%; top: 0; z-index: 1; transform: translate(calc(var(--x) * var(--k) * var(--dir)), var(--y)); }
.anim .fc .c { animation: bob 6s ease-in-out var(--b) infinite alternate; }
.final-in { position: relative; z-index: 2; }
.final-icon { margin: 0 auto 30px; width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 40px -14px rgba(10, 20, 80, .6), 0 0 0 1px rgba(255, 255, 255, .25); }
.final h2 { margin: 0; font-size: clamp(50px, 7.6vw, 114px); line-height: .97; font-weight: 800; letter-spacing: -.043em; }
.final p { margin: 22px 0 0; font-size: clamp(19px, 1.7vw, 25px); font-weight: 600; color: rgba(255, 255, 255, .92); }
.final .note { color: rgba(255, 255, 255, .85); }
.final .cta { margin-top: 36px; }

.foot { padding: 34px 24px 46px; background: #fff; }
.foot-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .brand { font-size: 17px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot nav a { font-size: 15px; color: var(--ink2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot .langlist { max-width: 1200px; margin: 22px auto 0; padding-top: 18px; border-top: 1px solid rgba(11, 13, 23, .08); gap: 6px 20px; }
.foot .langlist a { font-size: 14px; color: var(--ink3); }
.foot .langlist a[aria-current] { color: var(--ink); font-weight: 650; }
.legal { max-width: 1200px; margin: 18px auto 0; font-size: 12px; line-height: 1.5; color: var(--ink3); }

/* a hint towards the visitor's own language (English page only; never a redirect) */
.hint-lang { position: fixed; inset-inline: 12px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 70; display: flex; justify-content: center; pointer-events: none; }
.hint-lang a { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; padding: 11px 14px 11px 18px; border-radius: 999px; background: #fff; border: 1px solid rgba(11, 13, 23, .08);
  box-shadow: 0 18px 44px -14px rgba(14, 18, 50, .4); color: var(--ink); font-weight: 650; font-size: 15px; text-decoration: none; }
.hint-lang button { all: unset; cursor: pointer; color: var(--ink3); padding: 0 4px 0 6px; font-size: 20px; line-height: 1; }

/* hero motion ---------------------------------------------------------------------------------------------------------- */
.anim .hero-copy > * { animation: rise 1s var(--ease-out) both; }
.anim .hero-copy .lead { animation-delay: .08s; }
.anim .hero-copy .cta { animation-delay: .16s; }
.anim .hero-phone { animation: rise 1.3s var(--ease-out) .12s both; }
.anim .wc .c { animation: wcIn 1.1s var(--spring) var(--e) both, bob 6.5s ease-in-out calc(var(--e) + 1.1s + var(--b)) infinite alternate; }
.anim .hg { animation: fade 1.4s ease .7s both; }
@keyframes rise { from { opacity: 0; translate: 0 50px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes wcIn { from { opacity: 0; translate: calc(var(--x) * -.5 * var(--dir)) 150px; scale: .45; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* responsive ------------------------------------------------------------------------------------------------------------ */
@media (max-width: 1240px) {
  .hero-stage { --k: .86; }
  .final-bg { --k: .82; }
  .paper.in-stage { inset-inline-start: calc(50% + var(--pc) - var(--w) / 2 - 172px); }
  .stage[data-step="-1"] .paper.in-stage, .stage[data-step="0"] .paper.in-stage { transform: translate(0, 40px) rotate(calc(var(--dir) * -6deg)) scale(.72); }
  .stage[data-step="1"] .paper.in-stage { transform: translate(calc(var(--dir) * (var(--w) + 76px)), -150px) rotate(calc(var(--dir) * 5deg)) scale(.32); }
}
@media (max-width: 1060px) {
  .hero-stage { --k: .74; }
  .chip.timer { inset-inline-start: -40px; }
  .chip.streakx { inset-inline-end: -40px; }
}
@media (max-width: 389px) {
  .hero h1 { font-size: 14vw; } /* a 360 px phone: «забуваються.» still fits */
}
@media (max-width: 899px) {
  .br-d { display: none; }
  .lang .ln { display: none; }
  .lang .lc { display: inline; }
  .lang summary { padding: 0 11px; }
  .faq-list summary { font-size: 17px; }
  .story-track { display: none; }
  .story-list { display: block; }
  .hero { padding-top: calc(56px + 46px); }
  .lead { max-width: 24ch; }
  .hero-stage { --pw: 244px; height: calc(var(--pw) * 2.1 + 56px); margin-top: 44px; }
  .wc.dsk, .hg.dsk { display: none; }
  .wc, .hg { transform: translate3d(calc(var(--mx, var(--x)) * var(--dir)), calc(var(--my, var(--y)) + var(--py, 0px)), 0); }
  .hg { --mx: calc(var(--x) * .42); --my: var(--y); }
  .wc .c { padding: 9px 13px 10px; min-width: 0; border-radius: 17px; }
  .wc .c b { font-size: 18px; margin-top: 4px; }
  .wc .c .tr { font-size: 13px; }
  .wc .c .lg { font-size: 10px; }
  .wc .c .flag { width: 18px; }
  .wc .c.pill { padding: 8px 14px 8px 10px; }
  .wc .c.pill b { margin: 0; font-size: 17px; }
  .duel-in { grid-template-columns: 1fr; padding: 0 20px; gap: 56px; }
  .duel { background: radial-gradient(90% 50% at 70% 80%, rgba(255, 214, 102, .55), rgba(255, 214, 102, 0) 70%), linear-gradient(180deg, #D9480F 0%, #EA5A12 45%, #F59E0B 100%); }
  .duel .sec-copy { text-align: center; }
  .duel .sec-copy p { margin-inline-start: auto; }
  .duel-phone { --w: min(66vw, 270px); }
  .duel-visual { padding-top: 96px; }
  .score { width: 340px; margin-left: -170px; padding: 11px 12px; gap: 7px; }
  .score .who { font-size: 0; gap: 0; }
  .score .n { font-size: 24px; }
  .chip { font-size: 15px; padding: 8px 13px; }
  .chip.timer { inset-inline-start: -34px; top: 230px; }
  .chip.streakx { inset-inline-end: -40px; top: 400px; }
  .tiles { grid-template-columns: 1fr; max-width: 460px; }
  .tile .vis { height: 360px; }
  .t-goal .vis { padding-top: 40px; }
  .wall { gap: 14px; }
  .wall .c { padding: 10px 14px 11px; min-width: 0; }
  .wall .c b { font-size: 19px; }
  .wall .c .tr { font-size: 14px; }
  .st { width: 76px; height: 76px; border-radius: 24px; }
  .st .gl { width: 42px; height: 42px; }
  .ft { width: 82px; }
  .fc.dsk { display: none; }
  .fc { transform: translate(calc(var(--mx) * var(--dir)), var(--my)); }
  .fc .c { padding: 9px 13px 10px; min-width: 0; border-radius: 17px; }
  .fc .c b { font-size: 18px; margin-top: 4px; }
  .fc .c .tr { font-size: 13px; }
  .fc .c.pill b { font-size: 17px; margin: 0; }
  .final-bg { --k: 1; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .final { padding-bottom: 200px; }
}
@media (min-width: 900px) {
  /* the static sequence on a wide screen (reduced motion / no JS): text left, phone right */
  .sl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px;
    padding: 96px max(48px, calc(50% - 560px)); text-align: start; }
  .sl-vis { order: 2; }
  .sl .phone { --w: 320px; }
  .sl-copy { margin: 0; }
  .sl h3 { font-size: clamp(44px, 5.6vw, 72px); }
  .paper.in-list { margin-inline-end: -330px; bottom: 60px; transform: rotate(calc(var(--dir) * 6deg)) scale(.7); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
