/*
  Apto landing page (D-255).

  Colours, radii and the hero gradient come from lib/core/theme/tokens.dart,
  and the token names match the published legal pages (D-245) so the site and
  the documents read as one product.

  Layout uses logical properties only (padding-inline, inset-inline, start /
  end) — the same RTL-readiness rule the app follows (CLAUDE.md), so Arabic
  costs a translation file and nothing else.
*/

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: light dark;

  --base: #f1f4f9;          /* AppColors.surfaceLightBase */
  --card: #ffffff;          /* AppColors.surfaceLightCard */
  --tint: #e8edf6;
  --ink: #131a29;
  --ink-soft: #3c4760;
  --muted: #5a6680;
  --line: #dce3ee;
  --navy: #1b3a6b;          /* AppColors.primarySeed */
  --navy-deep: #12234c;     /* AppColors.heroGradientStart */
  --navy-mid: #1e3a73;      /* AppColors.heroGradientEnd */
  --amber: #f5a623;         /* AppColors.accentAmber */
  --amber-ink: #6b4300;
  --green: #15803d;         /* AppColors.correct */
  --red: #b91c1c;           /* AppColors.incorrect */
  --link: var(--navy);
  --shadow-sm: 0 1px 2px rgb(18 35 76 / .06), 0 4px 14px rgb(18 35 76 / .05);
  --shadow-md: 0 8px 30px rgb(18 35 76 / .10);
  --shadow-lg: 0 30px 70px rgb(8 15 34 / .28);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 104px);
  --ease: cubic-bezier(.215, .61, .355, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --base: #121417;        /* AppColors.surfaceDarkBase */
    --card: #1c1f24;        /* AppColors.surfaceDarkCard */
    --tint: #171b21;
    --ink: #e7eaf1;
    --ink-soft: #c3cad8;
    --muted: #9aa4b8;
    --line: #2c323b;
    --link: #8fb0ff;
    --amber-ink: #f5c77a;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-md: 0 10px 30px rgb(0 0 0 / .45);
  }
}

:root[data-theme="dark"] {
  --base: #121417;
  --card: #1c1f24;
  --tint: #171b21;
  --ink: #e7eaf1;
  --ink-soft: #c3cad8;
  --muted: #9aa4b8;
  --line: #2c323b;
  --link: #8fb0ff;
  --amber-ink: #f5c77a;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-md: 0 10px 30px rgb(0 0 0 / .45);
}

/* ------------------------------------------------------------------- base */

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 88px;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(27px, 3.6vw, 40px); }
h3 { font-size: 19px; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: var(--link); }

:where(a, button, summary, details):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.center { display: grid; place-items: center; }

.skip {
  position: absolute;
  inset-block-start: -60px;
  inset-inline-start: 12px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}
.skip:focus { inset-block-start: 12px; }

/* --------------------------------------------------------- mode switching */

.link-panel { display: none; }
html[data-mode="link"] .site { display: none; }
html[data-mode="link"] .link-panel { display: grid; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 15px; }

.btn--primary { background: var(--amber); color: #2a1a00; box-shadow: 0 6px 20px rgb(245 166 35 / .32); }
.btn--primary:hover { background: #ffb63f; }

.btn--quiet { background: transparent; color: inherit; border-color: currentColor; opacity: .8; }
.btn--quiet:hover { opacity: 1; }

/* Store badges: official artwork, never restyled — only sized and spaced.
   The 14px gap and the margins around .stores keep the clear space both
   guidelines require (at least a quarter of the badge height). */
.badge {
  display: inline-flex;
  border-radius: 9px;
  transition: transform .18s var(--ease);
}
.badge[href]:hover { transform: translateY(-2px); }
.badge:focus-visible { outline-offset: 4px; }
.badge img { display: block; height: 48px; width: auto; }
/* A store that has no link yet: the badge stays exactly as Apple and
   Google drew it — only the pointer says it does nothing. */
.badge:not([href]) { cursor: default; }

/* -------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--base) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-block-end: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
html[data-scrolled="true"] .nav { border-block-end-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand__word { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }

.nav__links { display: flex; gap: 22px; margin-inline: auto; }
.nav__links a { color: var(--ink-soft); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.nav__links a:hover { color: var(--ink); }

.nav__tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }

.langs { display: inline-flex; padding: 3px; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-pill); }
.langs__btn {
  min-width: 38px;
  min-height: 34px;
  padding-inline: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font: 600 13px/1 system-ui, sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
}
.langs__btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .langs__btn[aria-pressed="true"] { background: #2f4f8f; }
}
:root[data-theme="dark"] .langs__btn[aria-pressed="true"] { background: #2f4f8f; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
}
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn__moon { display: none; }
html[data-theme="dark"] .icon-btn__sun { display: none; }
html[data-theme="dark"] .icon-btn__moon { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .icon-btn__sun { display: none; }
  html:not([data-theme="light"]) .icon-btn__moon { display: block; }
}

@media (max-width: 1040px) { .nav__links { display: none; } }
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .nav__inner { gap: 10px; }
  .langs__btn { min-width: 34px; }
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(168deg, var(--navy-deep), var(--navy-mid) 62%, #24478a);
  color: #fff;
  padding-block: clamp(40px, 7vw, 76px) clamp(56px, 9vw, 104px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 44% at 78% 12%, rgb(245 166 35 / .22), transparent 70%),
    radial-gradient(44% 40% at 8% 88%, rgb(79 140 255 / .26), transparent 72%);
}
.hero__glow::after {
  content: "";
  position: absolute;
  inset-block-start: -120px;
  inset-inline-end: -140px;
  width: 520px;
  height: 520px;
  border: 2px dashed rgb(245 166 35 / .28);
  border-radius: 50%;
  transform: rotate(-6deg);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.eyebrow {
  margin-block-end: 16px;
  color: var(--amber);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow--dark { color: color-mix(in srgb, var(--navy) 78%, var(--muted)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow--dark { color: var(--amber); }
}
:root[data-theme="dark"] .eyebrow--dark { color: var(--amber); }

.hero__title { font-size: clamp(36px, 6.2vw, 62px); letter-spacing: -.03em; }
.hero__title em { font-style: normal; color: var(--amber); }
.hero__lead {
  margin-block-start: 20px;
  max-width: 34em;
  font-size: clamp(17px, 1.7vw, 19.5px);
  color: rgb(255 255 255 / .82);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 26px; }
.chip {
  padding: 7px 14px;
  border: 1px solid rgb(255 255 255 / .22);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / .08);
  font-size: 14px;
  font-weight: 500;
}

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-block-start: 30px; }
.stores--center { justify-content: center; }
.stores__soon { flex-basis: 100%; margin-block-start: -2px; font-size: 15px; color: rgb(255 255 255 / .72); }
.cta .stores__soon { color: var(--muted); }
.hero__note { margin-block-start: 16px; font-size: 14.5px; color: rgb(255 255 255 / .6); }

/* ------------------------------------------------------------- phone mock */

.hero__device { display: grid; place-items: center; }

.phone {
  --screen: #f1f4f9;
  position: relative;
  width: min(304px, 80vw);
  aspect-ratio: 304 / 622;
  padding: 11px;
  border-radius: 48px;
  background: linear-gradient(150deg, #2b3240, #0b0e14 46%, #171c26);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / .12);
}
.phone--tilt { transform: rotate(-1.6deg); }
.phone--dark { --screen: #10131a; }
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  background: var(--screen);
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  color: #131a29;
}
.phone__screen::before {  /* dynamic island */
  content: "";
  position: absolute;
  inset-block-start: 9px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: #0b0e14;
  z-index: 4;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #131a29;
}
.statusbar--dark, .statusbar--onhero { color: #fff; }
.statusbar__right { display: inline-flex; gap: 5px; align-items: center; }
.statusbar__right svg { height: 10px; fill: currentColor; stroke: currentColor; stroke-width: 1; }

.appbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
  color: #fff;
}
.appbar__back { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.appbar__title { font-weight: 600; font-size: 12.5px; }
.appbar__timer {
  margin-inline-start: auto;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / .16);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 11.5px;
}

.mock { padding: 12px 14px 16px; }
.mock__progress { display: flex; justify-content: space-between; font-size: 10.5px; color: #5a6680; font-weight: 600; }
.mock__topic { color: #00897b; }
.bar { height: 5px; margin-block: 7px 12px; border-radius: var(--radius-pill); background: #dce3ee; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--amber); }

.mock__question { font-size: 13px; font-weight: 600; line-height: 1.38; color: #131a29; }

.mock__translation {
  margin-block: 10px;
  padding: 8px 10px;
  border-inline-start: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff;
  box-shadow: 0 1px 2px rgb(18 35 76 / .06);
}
.mock__translation-label { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-ink); }
.mock__translation p { margin-block-start: 3px; font-size: 11.5px; color: #3c4760; }

.mock__options { display: grid; gap: 7px; margin-block-start: 10px; }
.mock__option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid #dce3ee;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 12px;
  font-weight: 500;
}
.mock__letter {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #eef2f8;
  font-size: 10px;
  font-weight: 700;
  color: #5a6680;
}
.mock__option--correct { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.mock__option--correct .mock__letter { background: rgb(255 255 255 / .22); color: #fff; }
.mock__tick { width: 15px; height: 15px; margin-inline-start: auto; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.mock__explain {
  margin-block-start: 11px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--green) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--green) 26%, #fff);
}
.mock__explain-head { display: flex; align-items: center; gap: 8px; margin-block-end: 4px; }
.mock__verdict { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .04em; }
.mock__ref { margin-inline-start: auto; font-size: 9.5px; font-weight: 600; color: #5a6680; }
.mock__explain p { font-size: 11px; color: #3c4760; }

.mock__next {
  display: block;
  margin-block-start: 12px;
  padding: 11px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

/* exam result screen */
.result {
  position: relative;
  height: calc(100% - 28px);
  padding: 26px 18px 18px;
  background: linear-gradient(170deg, #12234c, #1e3a73 58%, #0f1a34);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.result__verdict { display: block; font-size: 46px; font-weight: 800; letter-spacing: .04em; color: #4ade80; }
.result__score { display: block; margin-block-start: 2px; font-size: 20px; font-weight: 700; }
.result__copy { margin-block-start: 8px; font-size: 11.5px; color: rgb(255 255 255 / .78); }
.result__stats { display: flex; gap: 6px; margin-block-start: 18px; }
.result__stats li {
  flex: 1;
  padding: 9px 4px;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / .1);
  border: 1px solid rgb(255 255 255 / .14);
}
.result__stats strong { display: block; font-size: 15px; }
.result__stats span { font-size: 9px; color: rgb(255 255 255 / .7); }
.result__weak { margin-block-start: 16px; text-align: start; }
.result__weak > span { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.result__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 7px; }
.result__tags span {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgb(245 166 35 / .18);
  border: 1px solid rgb(245 166 35 / .4);
  font-size: 10px;
  color: #ffd79a;
}

.result__buttons { display: grid; gap: 7px; margin-block-start: 18px; }
.result__btn {
  padding: 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgb(255 255 255 / .28);
  font-size: 11.5px;
  font-weight: 600;
}
.result__btn--primary { background: var(--amber); border-color: var(--amber); color: #2a1a00; }

.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i {
  position: absolute;
  width: 6px;
  height: 9px;
  border-radius: 2px;
  opacity: 0;
}
.is-visible .confetti i { animation: fall 2.4s var(--ease) forwards; }
.confetti i:nth-child(1)  { inset-inline-start: 8%;  background: #f5a623; animation-delay: .05s; }
.confetti i:nth-child(2)  { inset-inline-start: 18%; background: #4ade80; animation-delay: .25s; }
.confetti i:nth-child(3)  { inset-inline-start: 27%; background: #7c3aed; animation-delay: .45s; }
.confetti i:nth-child(4)  { inset-inline-start: 36%; background: #f5a623; animation-delay: .15s; }
.confetti i:nth-child(5)  { inset-inline-start: 45%; background: #60a5fa; animation-delay: .6s; }
.confetti i:nth-child(6)  { inset-inline-start: 54%; background: #4ade80; animation-delay: .35s; }
.confetti i:nth-child(7)  { inset-inline-start: 63%; background: #f472b6; animation-delay: .1s; }
.confetti i:nth-child(8)  { inset-inline-start: 72%; background: #f5a623; animation-delay: .5s; }
.confetti i:nth-child(9)  { inset-inline-start: 81%; background: #60a5fa; animation-delay: .2s; }
.confetti i:nth-child(10) { inset-inline-start: 90%; background: #4ade80; animation-delay: .7s; }
.confetti i:nth-child(11) { inset-inline-start: 13%; background: #60a5fa; animation-delay: .8s; }
.confetti i:nth-child(12) { inset-inline-start: 68%; background: #7c3aed; animation-delay: .9s; }
@keyframes fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translateY(380px) rotate(320deg); opacity: 0; }
}

/* home screen */
.home-hero {
  padding-block-end: 18px;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
  color: #fff;
  border-end-start-radius: 20px;
  border-end-end-radius: 20px;
}
.home-hero__top { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px 0; font-size: 12px; font-weight: 600; }
.streak { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: var(--radius-pill); background: rgb(245 166 35 / .2); color: #ffd79a; font-size: 11px; font-weight: 700; }
.streak svg { width: 12px; height: 12px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linejoin: round; }

.ring { position: relative; width: 128px; margin: 12px auto 0; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgb(255 255 255 / .16); stroke-width: 9; }
.ring__value {
  fill: none;
  stroke: var(--amber);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.1s var(--ease) .15s;
}
.is-visible .ring__value { stroke-dashoffset: 72; }  /* 78 % of 327 */
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.ring__label strong { font-size: 26px; font-weight: 800; }
.home-hero__caption { margin-block-start: 10px; text-align: center; font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgb(255 255 255 / .72); }
.home-hero__streak { margin-block-start: 4px; text-align: center; font-size: 11px; color: rgb(255 255 255 / .8); }
.home-hero__streak b { color: var(--amber); }

.home-actions { padding: 14px 14px 0; display: grid; gap: 7px; }
.home-actions__label { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #5a6680; }
.action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #dce3ee;
  border-radius: var(--radius-sm);
  background: #fff;
}
.action__badge { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; }
.action__badge--exam { background: #1b3a6b; }
.action__badge--quick { background: #00897b; }
.action__badge--mistakes { background: #ef5350; }
.action__badge--theory { background: #3f51b5; }
.action__text { display: grid; gap: 1px; }
.action__text b { font-size: 11.5px; }
.action__text i { font-style: normal; font-size: 10px; color: #5a6680; }
.action__chevron { width: 14px; height: 14px; margin-inline-start: auto; fill: none; stroke: #9aa4b8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tabbar {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 6px 16px;
  background: #fff;
  border-block-start: 1px solid #e6ebf3;
}
.tabbar__item { display: grid; justify-items: center; gap: 3px; padding: 4px 10px; border-radius: var(--radius-pill); color: #9aa4b8; }
.tabbar__item svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar__item i { font-style: normal; font-size: 8.5px; font-weight: 600; }
.tabbar__item--active { background: #dbe4f5; color: var(--navy); }

/* --------------------------------------------------------------- sections */

.section { padding-block: var(--section); }
.section--tinted { background: var(--tint); }
.section--exam { background: var(--card); border-block: 1px solid var(--line); }

.section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.section__head { max-width: 40ch; margin-block-end: clamp(28px, 4vw, 44px); }

.lead { margin-block-start: 18px; font-size: clamp(16.5px, 1.6vw, 18.5px); color: var(--ink-soft); }
.fine { margin-block-start: 18px; font-size: 15px; color: var(--muted); }

.ticks { display: grid; gap: 12px; margin-block-start: 24px; }
.ticks li { position: relative; padding-inline-start: 34px; color: var(--ink-soft); font-size: 16.5px; }
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 16%, transparent);
  -webkit-mask: var(--tick) center / 13px no-repeat;
  mask: var(--tick) center / 13px no-repeat;
  background-color: var(--green);
}
:root { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4.5 4.5L19 7'/%3E%3C/svg%3E"); }

.lang-cards { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 26px; }
.lang-card {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* bilingual card pair */
.bilingual { margin: 0; display: grid; justify-items: stretch; gap: 10px; }
.bilingual__card {
  position: relative;
  padding: 22px 22px 22px 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
  font-size: 17px;
  font-weight: 600;
}
.bilingual__card--translated { border-inline-start: 4px solid var(--amber); font-weight: 500; color: var(--ink-soft); }
.bilingual__flag {
  position: absolute;
  inset-inline-start: 18px;
  inset-block-start: 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
}
.bilingual__arrow { display: grid; place-items: center; }
.bilingual__arrow svg { width: 26px; height: 26px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bilingual figcaption { margin-block-start: 8px; font-size: 14.5px; color: var(--muted); }

/* ---------------------------------------------------------------- numbers */

.numbers {
  padding-block: clamp(40px, 6vw, 68px);
  background: linear-gradient(150deg, var(--navy-deep), var(--navy-mid));
  color: #fff;
}
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  text-align: center;
}
.numbers__grid strong { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.numbers__grid span { font-size: 14px; color: rgb(255 255 255 / .74); }
.numbers__foot { margin-block-start: 28px; text-align: center; font-size: 15px; color: rgb(255 255 255 / .6); }

/* ------------------------------------------------------------------ facts */

.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 26px; }
.facts li {
  flex: 1 1 130px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--base);
}
.facts strong { display: block; font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .facts strong { color: var(--amber); } }
:root[data-theme="dark"] .facts strong { color: var(--amber); }
.facts span { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------------ cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 18px;
}
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-block: 16px 8px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card__icon {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background-color: color-mix(in srgb, var(--navy) 12%, transparent);
  position: relative;
}
.card__icon::after {
  content: "";
  position: absolute;
  inset: 9px;
  background-color: var(--navy);
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card__icon { background-color: rgb(143 176 255 / .16); }
  :root:not([data-theme="light"]) .card__icon::after { background-color: #8fb0ff; }
}
:root[data-theme="dark"] .card__icon { background-color: rgb(143 176 255 / .16); }
:root[data-theme="dark"] .card__icon::after { background-color: #8fb0ff; }

[data-icon="exam"]      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6v3H9zM6 5h2v2h8V5h2a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z'/%3E%3Cpath d='M8.5 13.5l2.2 2.2 4.8-5'/%3E%3C/svg%3E"); }
[data-icon="tests"]     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h10M4 12h7M4 18h10'/%3E%3Cpath d='M18 4l-3 8h4l-3 8'/%3E%3C/svg%3E"); }
[data-icon="mistakes"]  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 1 0-2.5 5.8'/%3E%3Cpath d='M20 5v6h-6'/%3E%3Cpath d='M12 8.5v4M12 15.5h.01'/%3E%3C/svg%3E"); }
[data-icon="theory"]    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H19v15H6.5A2.5 2.5 0 0 0 4 20.5z'/%3E%3Cpath d='M4 20.5A2.5 2.5 0 0 1 6.5 18H19v3H6.5A2.5 2.5 0 0 1 4 20.5z'/%3E%3Cpath d='M8 7.5h7M8 11h5'/%3E%3C/svg%3E"); }
[data-icon="signs"]     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.2 21 18H3z'/%3E%3Cpath d='M12 9.5v3.5M12 15.6h.01'/%3E%3Cpath d='M12 18v3'/%3E%3C/svg%3E"); }
[data-icon="readiness"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M7 19v-6M12 19V6M17 19v-9'/%3E%3C/svg%3E"); }
[data-icon="streak"]    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5c3.4 3.8 6 6.2 6 9.9A6 6 0 0 1 6 12.4c0-2.2 1.1-3.8 2.7-5.3 1.2-1.1 2.6-2.5 3.3-4.6z'/%3E%3Cpath d='M12 18a2.8 2.8 0 0 0 2.8-2.8c0-1.5-1.3-2.6-2.8-4.4-1.5 1.8-2.8 2.9-2.8 4.4A2.8 2.8 0 0 0 12 18z'/%3E%3C/svg%3E"); }
[data-icon="guides"]    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4 3 6v14l6-2 6 2 6-2V4l-6 2z'/%3E%3Cpath d='M9 4v14M15 6v14'/%3E%3C/svg%3E"); }
[data-icon="offline"]   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v9m0 0-3.2-3.2M12 12l3.2-3.2'/%3E%3Cpath d='M4 15v3a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-3'/%3E%3C/svg%3E"); }
[data-icon="bookmarks"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h11a1 1 0 0 1 1 1V21l-6.5-4.2L5.5 21V4.5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); }
[data-icon="theme"]     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4.4'/%3E%3Cpath d='M12 2.6v2.3M12 19.1v2.3M4.2 12H1.9M22.1 12h-2.3M6.2 6.2 4.6 4.6M19.4 19.4l-1.6-1.6M17.8 6.2l1.6-1.6M4.6 19.4l1.6-1.6'/%3E%3C/svg%3E"); }
[data-icon="privacy"]   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v6c0 4.3 2.9 7.7 7 9 4.1-1.3 7-4.7 7-9V6z'/%3E%3Cpath d='M9 12.2l2 2 4-4.2'/%3E%3C/svg%3E"); }

/* ------------------------------------------------------------------ steps */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; counter-reset: step; }
.step {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--navy-deep), var(--navy-mid));
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}
.step h3 { margin-block: 16px 8px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

.categories { margin-block-start: clamp(30px, 4vw, 46px); text-align: center; }
.categories__label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.categories__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block-start: 14px; }
.categories__list span {
  min-width: 52px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
}
.categories__list .is-flag { background: var(--navy); border-color: var(--navy); color: #fff; }

/* -------------------------------------------------------------------- faq */

.faq { display: grid; gap: 10px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.faq__item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  min-height: 56px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: 0 0 auto;
  margin-inline-start: auto;
  width: 13px;
  height: 13px;
  border-inline-end: 2.2px solid var(--muted);
  border-block-end: 2.2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq__item p { padding: 0 20px 20px; color: var(--ink-soft); font-size: 16px; }

/* -------------------------------------------------------------------- cta */

.cta { padding-block: var(--section); background: var(--card); border-block-start: 1px solid var(--line); }
.cta__inner { max-width: 720px; margin-inline: auto; text-align: center; }
.cta p { margin-block-start: 14px; color: var(--ink-soft); font-size: 17.5px; }
.cta .stores { justify-content: center; }
.cta__mail { margin-block-start: 22px; font-size: 15px; }

/* ------------------------------------------------------------------ footer */

.foot { background: linear-gradient(150deg, var(--navy-deep), var(--navy-mid)); color: rgb(255 255 255 / .8); padding-block: 44px 34px; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot__brand .brand__word { color: #fff; }
.foot__brand p { margin-block-start: 6px; font-size: 15px; color: rgb(255 255 255 / .7); max-width: 32ch; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a { color: rgb(255 255 255 / .86); font-size: 15px; text-decoration: none; }
.foot__links a:hover { color: #fff; text-decoration: underline; }
.foot__legal { margin-block-start: 30px; padding-block-start: 22px; border-block-start: 1px solid rgb(255 255 255 / .16); }
.foot__legal p { font-size: 13.5px; color: rgb(255 255 255 / .58); max-width: 88ch; }
.foot__trademarks { margin-block-start: 10px; font-size: 12px; color: rgb(255 255 255 / .45); }
.foot__copy { margin-block-start: 10px; }

/* ------------------------------------------------------------- link panel */

.link-panel { min-height: 100vh; min-height: 100dvh; place-items: center; padding: var(--gutter); background: linear-gradient(168deg, var(--navy-deep), var(--navy-mid)); }
.link-card {
  width: 100%;
  max-width: 420px;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 36px 28px 30px;
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.link-card__mark { width: 62px; height: 62px; }
.link-card h1 { font-size: 24px; }
.link-card p { color: var(--muted); font-size: 16px; }
.link-card .btn { width: 100%; }

/* ---------------------------------------------------------------- reveals */

/* Hidden only while scripting is there to bring it back (see index.html). */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .ring__value { transition: none; stroke-dashoffset: 72; }
  .confetti { display: none; }
  .btn, .card { transition: none; }
  .phone--tilt { transform: none; }
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .numbers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .section__grid, .section__grid--reverse { grid-template-columns: minmax(0, 1fr); }
  .section__grid--reverse > :first-child { order: 2; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); text-align: start; }
  .hero__device { margin-block-start: 8px; }
  .hero__lead { max-width: none; }
  .bilingual__card { font-size: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .stores { gap: 12px; }
  .badge img { height: 44px; }
  .facts li { flex-basis: 100%; }
  .foot__inner { flex-direction: column; }
}
