/* ---------------------------------------------------------------------------
   Kibermokymai — public site design system (2026 redesign)
   The binding brief is docs/DESIGN.md. Desktop borrows hostinger.lt's
   confidence (bright violet, bold display headings, rounded cards, tabbed
   showcase, dark stats band); mobile borrows senukai.lt's thumb-first
   discipline (compact sticky header, chip rows, full-width targets, sticky
   bottom bar). Everything sits on an 8px grid. Pages compose these classes
   and never invent colours or sizes.
   --------------------------------------------------------------------------- */

/* ------------------------------------------------------------------- fonts
   Self-hosted. Plus Jakarta Sans for display (no Cyrillic: Russian headings
   fall through to Inter in the same stack), Inter for everything else. */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

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

:root {
  --brand: #5b4cf5;
  --brand-hover: #4a3be0;
  --brand-deep: #241c5c;
  --brand-tint: #eeedff;
  --brand-tint-2: #dcd9ff;
  --safe: #12b76a;
  --safe-tint: #e3f8ee;
  --scam: #f04438;
  --scam-tint: #fde8e6;
  --sun: #ffb020;
  --sun-tint: #fff3d6;
  --sky-tint: #e6f4ff;
  --ink: #141433;
  --body: #3d3d5c;
  --muted: #6b6b85;
  --faint: #9c9cb5;
  --line: #e4e4ef;
  --surface: #f6f6fb;
  --surface-2: #ffffff;
  /* Surfaces and the text colours that sit on tints. These are what the dark
     theme below swaps; every rule that used to say #fff now says one of them. */
  --page: #ffffff;
  --card: #ffffff;
  --hdr-bg: rgba(255, 255, 255, .92);
  --bar-bg: rgba(255, 255, 255, .96);
  --on-tint: var(--brand-deep);
  --safe-ink: #067647;
  --scam-ink: #b42318;
  --sun-ink: #b54708;
  --sky-ink: #1a6fd8;
  --shot-dim: none;
  --on-brand: #ffffff;
  --band: var(--brand);
  color-scheme: light;

  --shell: 1200px;
  --wide: 1080px;
  --mid: 840px;
  --narrow: 640px;
  --prose: 42rem;

  --gutter: clamp(16px, 4vw, 32px);
  --sec-pad: clamp(56px, 8vw, 104px);

  --r-ctl: 12px;
  --r-card: 16px;
  --r-feature: 24px;
  --r-pill: 999px;

  --shadow: 0 10px 30px -12px rgba(36, 28, 92, .18);
  --shadow-lift: 0 18px 40px -16px rgba(36, 28, 92, .28);

  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --hdr-h: 72px;
  --topbar-h: 36px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------------------------------------------------------------- dark mode
   Follows the system preference until the visitor presses the toggle in the
   header, which stores an explicit choice on <html data-theme> (site.js, with
   a one-line head script so the first paint is already right). Violet stays
   the brand, lifted two steps so it still passes AA on the dark ground; the
   green/red verdict colours are lifted the same way. The demo phone keeps its
   light screen in both themes — it is a picture of a phone, not a surface. */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8f83ff;
    --brand-hover: #a79dff;
    --brand-deep: #1b1748;
    --brand-tint: #262352;
    --brand-tint-2: #373280;
    --safe: #34d399;
    --safe-tint: #10332a;
    --scam: #f87171;
    --scam-tint: #3b1c1c;
    --sun: #fbbf24;
    --sun-tint: #3a2b0d;
    --sky-tint: #10263c;
    --ink: #f2f2fa;
    --body: #c9c9de;
    --muted: #9c9cba;
    --faint: #6f6f92;
    --line: #2a2a46;
    --surface: #15152a;
    --surface-2: #1c1c34;
    --page: #0f0f21;
    --card: #1c1c34;
    --hdr-bg: rgba(15, 15, 33, .88);
    --bar-bg: rgba(15, 15, 33, .94);
    --on-tint: #d8d4ff;
    --safe-ink: #5eead4;
    --scam-ink: #fca5a5;
    --sun-ink: #fcd34d;
    --sky-ink: #7cc0ff;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .55);
    --shadow-lift: 0 18px 40px -16px rgba(0, 0, 0, .7);
    --shot-dim: brightness(.9);
    --on-brand: #0f0f21;
    --band: #4f42e6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #8f83ff;
  --brand-hover: #a79dff;
  --brand-deep: #1b1748;
  --brand-tint: #262352;
  --brand-tint-2: #373280;
  --safe: #34d399;
  --safe-tint: #10332a;
  --scam: #f87171;
  --scam-tint: #3b1c1c;
  --sun: #fbbf24;
  --sun-tint: #3a2b0d;
  --sky-tint: #10263c;
  --ink: #f2f2fa;
  --body: #c9c9de;
  --muted: #9c9cba;
  --faint: #6f6f92;
  --line: #2a2a46;
  --surface: #15152a;
  --surface-2: #1c1c34;
  --page: #0f0f21;
  --card: #1c1c34;
  --hdr-bg: rgba(15, 15, 33, .88);
  --bar-bg: rgba(15, 15, 33, .94);
  --on-tint: #d8d4ff;
  --safe-ink: #5eead4;
  --scam-ink: #fca5a5;
  --sun-ink: #fcd34d;
  --sky-ink: #7cc0ff;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .55);
  --shadow-lift: 0 18px 40px -16px rgba(0, 0, 0, .7);
  --shot-dim: brightness(.9);
  --on-brand: #0f0f21;
  --band: #4f42e6;
  color-scheme: dark;
}

/* The header toggle: sun in the dark theme, moon in the light one. */
.theme-toggle {
  width: 44px; height: 44px; flex: none; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--body); cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--faint); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
.is-dark .theme-toggle .i-sun { display: block; }
.is-dark .theme-toggle .i-moon { display: none; }
.no-js .theme-toggle { display: none; }

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

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--page);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: clip;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 600; color: var(--ink); }
::selection { background: var(--brand-tint-2); color: var(--ink); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
/* On the violet band and the dark surfaces a brand-coloured ring is invisible
   against its own background, so the ring turns white there. */
.cta-band :focus-visible, .band-dark :focus-visible, .ftr :focus-visible, .topbar :focus-visible {
  outline-color: #fff;
}

.skip {
  position: absolute; left: 8px; top: -120px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-ctl) var(--r-ctl);
  font-weight: 600;
}
.skip:focus { top: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------- typography */

h1, .h1, h2, .h2, h3, .h3, h4, .h4, .stat, .display {
  font-family: var(--font-display);
  color: var(--ink);
  text-wrap: balance;
}
h1, .h1 {
  font-size: clamp(40px, 5vw, 56px); line-height: 1.1; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 24px;
}
h2, .h2 {
  font-size: clamp(30px, 3.6vw, 40px); line-height: 1.2; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 16px;
}
h3, .h3 {
  font-size: clamp(20px, 2vw, 22px); line-height: 1.3; font-weight: 700;
  letter-spacing: -.01em; margin-bottom: 8px;
}
h4, .h4 { font-size: 17px; line-height: 1.4; font-weight: 700; margin-bottom: 8px; }

p { font-size: clamp(16px, 1.6vw, 17px); line-height: 1.6; }
.lead { font-size: clamp(18px, 1.8vw, 20px); line-height: 1.55; color: var(--body); }
.small { font-size: 15px; line-height: 1.55; }
.micro { font-size: 13px; line-height: 1.5; color: var(--muted); }
.dim { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
/* `.stack` is the default rhythm for a run of paragraphs; it is declared
   before the `.mt-*` utilities so that an explicit utility on one child wins.
   (Same specificity, so source order decides — see the `.wrap` note below.) */
.stack > * + * { margin-top: 16px; }
.mt-s { margin-top: 8px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: clamp(40px, 5vw, 56px); }
.mb-l { margin-bottom: clamp(40px, 5vw, 56px); }
/* Reading measure. `.wrap*` sets how wide a section's frame is; this sets how
   long a line inside it may get, so a text block is safe at any wrap width. */
.measure { max-width: 62ch; }
.center.measure { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--brand-tint); color: var(--on-tint);
  font-size: 13px; font-weight: 600; margin-bottom: 20px; max-width: 100%;
  text-align: left; min-width: 0;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none;
}
.eyebrow-plain::before { display: none; }
.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 16px;
}

/* --------------------------------------------------------------- structure */

/* One section rhythm for the whole site: every band is padded with --sec-pad,
   so the page never tightens or loosens without an editorial reason. */
.sec { padding: var(--sec-pad) var(--gutter); }
.sec-grey { background: var(--surface); }
/* Containers centre with margin-inline, not the `margin` shorthand: the
   shorthand resets margin-top and silently cancels a `.mt-*` utility on the
   same element.

   One content width per page: `.wrap` (1080) is the default shell for any
   section with cards, screenshots or feature rows; `.wrap-mid` (840) and
   `.wrap-prose` are for genuinely narrow reading passages — an FAQ, an
   article body. A page never alternates between them section to section. */
.wrap { max-width: var(--wide); margin-inline: auto; }
.wrap-wide { max-width: var(--shell); margin-inline: auto; }
.wrap-mid { max-width: var(--mid); margin-inline: auto; }
.wrap-narrow { max-width: var(--narrow); margin-inline: auto; }
.wrap-prose { max-width: var(--prose); margin-inline: auto; }

/* One heading alignment per page: `.head` (centred) on the homepage, where
   sections are pitches; `.head-left` on the feature subpages, which read as
   documentation. `.page-hero` is the same left edge for a subpage's own h1. */
.head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.head-left { max-width: 720px; margin: 0 0 clamp(32px, 4vw, 48px); text-align: left; }
.head .lead, .head-left .lead { margin-top: 8px; }
.page-hero { max-width: 720px; }
.page-hero p { max-width: 62ch; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
/* A row whose card count does not divide by the column count: every card keeps
   the column width, and the short last line centres under the full ones
   instead of leaving a hole where a card should be. */
.grid-center { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-center > * { flex: 0 1 calc(25% - 18px); }
@media (max-width: 1000px) { .grid-center > * { flex-basis: calc(33.333% - 16px); } }
@media (max-width: 760px) { .grid-center > * { flex-basis: calc(50% - 12px); } }
@media (max-width: 520px) { .grid-center > * { flex-basis: 100%; } }

.rule { border-top: 1px solid var(--line); }

.actions {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.actions-left { justify-content: flex-start; }

@media (max-width: 720px) {
  .sec { padding-top: 56px; padding-bottom: 56px; }
  .head { margin-bottom: 32px; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-ctl);
  font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -.005em;
  text-decoration: none; line-height: 1.2; text-align: center; max-width: 100%;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.btn-tint { background: var(--brand-tint); color: var(--on-tint); border-color: var(--brand-tint); }
.btn-tint:hover { background: var(--brand-tint-2); border-color: var(--brand-tint-2); }
.btn-white { background: #fff; color: var(--brand-deep); border-color: #fff; }
.btn-white:hover { background: var(--brand-tint); border-color: var(--brand-tint); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 16px 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn .arrow { color: currentColor; opacity: .7; }
.btn-ghost .arrow { color: var(--brand); opacity: 1; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 600; color: var(--brand);
}
.link-arrow:hover { text-decoration: none; color: var(--brand-hover); }
.link-arrow:hover .arrow, .link-arrow:hover::after { transform: translateX(3px); }
.link-arrow .arrow, .link-arrow::after { transition: transform .15s ease; }
.link-arrow[data-arrow]::after { content: "→"; }

/* ------------------------------------------------------------------ topbar
   Thin strip above the header, desktop only. */

.topbar { background: var(--brand-deep); color: rgba(255, 255, 255, .86); font-size: 13px; font-weight: 500; }
.topbar-in {
  max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--safe); flex: none; }
.topbar-right { display: flex; align-items: center; gap: 24px; }
@media (max-width: 940px) { .topbar { display: none; } }

/* ------------------------------------------------------------------ header */

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--hdr-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.hdr.is-scrolled { box-shadow: 0 8px 24px -16px rgba(36, 28, 92, .3); }
.hdr-in {
  max-width: var(--shell); margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--hdr-h); display: flex; align-items: center; gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink);
  letter-spacing: -.02em; text-decoration: none; white-space: nowrap; flex: none;
}
.brand:hover { text-decoration: none; color: var(--brand); }
.brand-mark { width: 28px; height: 28px; flex: none; color: var(--brand); }
.brand-mark-play { fill: #fff; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.ftr .brand-mark-play { fill: var(--brand-deep); stroke: var(--brand-deep); }
html.nav-open { overflow: hidden; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--body); text-decoration: none; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }

.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hdr-cta { margin-left: auto; }
.hdr-actions .hdr-cta { margin-left: 0; }
.nav-toggle { display: none; }

.lang-switch:empty { display: none; }
.lang-switch-select {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--body);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  height: 44px; padding: 0 12px; cursor: pointer;
}
.lang-switch-select:hover { color: var(--ink); border-color: var(--faint); }

/* Burger + full-screen drawer below 940px. The disclosure works without JS;
   site.js only closes it after a link is followed and on Escape. */
@media (max-width: 940px) {
  :root { --hdr-h: 64px; }
  .hdr-in { gap: 12px; }
  .nav { display: none; }
  .hdr-actions > .btn { display: none; }
  .hdr-actions { margin-left: auto; gap: 8px; }
  .hdr-actions .lang-switch { display: block; }
  .hdr-actions .lang-switch:empty { display: none; }
  .nav-toggle { display: block; }
  .nav-toggle summary {
    list-style: none; cursor: pointer; width: 44px; height: 44px; margin-right: -8px;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
    color: var(--ink); position: relative;
  }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle summary:hover { background: var(--surface); }
  .burger { width: 22px; height: 16px; position: relative; display: block; }
  .burger::before, .burger::after, .burger span {
    content: ""; position: absolute; left: 0; width: 22px; height: 2px; border-radius: 2px;
    background: currentColor; transition: transform .2s ease, opacity .2s ease, top .2s ease;
  }
  .burger::before { top: 0; }
  .burger span { top: 7px; }
  .burger::after { top: 14px; }
  .nav-toggle[open] .burger::before { top: 7px; transform: rotate(45deg); }
  .nav-toggle[open] .burger span { opacity: 0; }
  .nav-toggle[open] .burger::after { top: 7px; transform: rotate(-45deg); }

  /* backdrop-filter turns .hdr into the containing block for fixed
     descendants, so it is switched off while the drawer is open (JS class,
     with :has() covering the no-JS case) and the panel gets an explicit height. */
  html.nav-open .hdr, .hdr:has(.nav-toggle[open]) { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--page); }
  .nav-panel {
    position: fixed; left: 0; right: 0; top: var(--hdr-h); z-index: 49;
    height: calc(100vh - var(--hdr-h)); height: calc(100dvh - var(--hdr-h));
    background: var(--page); overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 8px var(--gutter) 32px; display: flex; flex-direction: column; gap: 8px;
  }
  .brand { min-height: 44px; }
  .link-arrow { min-height: 44px; }
  .nav-panel .lang-switch { display: none; }
  .nav-group { display: grid; gap: 0; }
  .nav-group + .nav-group { margin-top: 8px; }
  .nav-group-title {
    font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--faint); padding: 16px 0 8px;
  }
  .nav-panel a:not(.btn) {
    display: flex; align-items: center; justify-content: space-between; min-height: 48px;
    padding: 12px 0; font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .nav-panel a:not(.btn)::after { content: "›"; color: var(--faint); font-size: 22px; line-height: 1; }
  .nav-panel a:not(.btn):hover { color: var(--brand); }
  .nav-panel-actions { margin-top: auto; padding-top: 24px; display: grid; gap: 12px; }
  .nav-panel-actions .btn { width: 100%; height: 52px; }
}
@media (min-width: 941px) { .nav-panel { display: none; } }
/* Narrow phones: a compact language control, and the wordmark yields to the mark. */
@media (max-width: 420px) {
  .hdr-actions .lang-switch-select { padding: 0 8px; font-size: 13px; }
  .brand { font-size: 17px; gap: 8px; }
}
@media (max-width: 359px) {
  .hdr .brand > span { display: none; }
}

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

.hero {
  position: relative; overflow: hidden;
  /* Symmetric and on the 8px grid at desktop width (5.6vw clamps to 80 from
     1429px up); the hero is the only band not padded with --sec-pad. */
  padding: clamp(48px, 5.6vw, 80px) var(--gutter);
  background:
    radial-gradient(60% 80% at 100% 0%, var(--brand-tint) 0%, transparent 60%),
    radial-gradient(40% 50% at 0% 100%, var(--sky-tint) 0%, transparent 60%),
    var(--page);
}
.hero-in {
  max-width: var(--shell); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 600px; }
.hero-copy .lead { max-width: 540px; margin-bottom: 32px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
/* Two deliberate columns rather than a wrapping row: three ticks in a flex row
   strand the third on a line of its own with half the row still empty. */
.hero-ticks {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px; margin-bottom: 20px;
}
.hero-ticks li {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--body);
}
.hero-ticks li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--safe-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312b76a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hero-note { max-width: 520px; }
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.hero-caption { font-size: 14px; color: var(--muted); text-align: center; max-width: 340px; }

@media (max-width: 940px) {
  .hero { padding-top: 32px; padding-bottom: 40px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-copy { max-width: none; }
  .hero-copy .lead { margin-bottom: 24px; }
  .hero-actions .btn { flex: 1 1 100%; height: 52px; }
}
/* Below the two-column measure a tick would wrap inside its own cell. */
@media (max-width: 620px) {
  .hero-ticks { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* ------------------------------------------------------------- demo phone
   The signature: an HTML/CSS replica of the smishing game. Without JS the
   first message shows with two inert buttons. */

.demo-phone {
  --screen: #f7f7fb;
  /* Pinned light palette: the phone is a picture of a phone in both themes. */
  --ink: #141433; --body: #3d3d5c; --muted: #6b6b85; --faint: #9c9cb5; --line: #e4e4ef;
  --brand: #5b4cf5; --brand-deep: #241c5c; --brand-tint: #eeedff; --card: #ffffff;
  --safe: #12b76a; --safe-tint: #e3f8ee; --scam: #f04438; --scam-tint: #fde8e6;
  --safe-ink: #067647; --scam-ink: #b42318;
  width: 100%; max-width: 320px; margin: 0 auto;
  background: var(--ink); border-radius: 40px; padding: 12px;
  box-shadow: 0 30px 60px -24px rgba(20, 20, 51, .45), 0 0 0 1px rgba(20, 20, 51, .06);
  position: relative;
}
.demo-phone-screen {
  background: var(--screen); border-radius: 30px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 560px; position: relative;
}
.demo-status {
  display: flex; align-items: center; justify-content: space-between;
  height: 40px; padding: 0 24px 0 28px; font-size: 13px; font-weight: 600; color: var(--ink);
}
.demo-notch {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 96px; height: 24px; border-radius: var(--r-pill); background: var(--ink);
}
.demo-status-icons { display: inline-flex; gap: 4px; align-items: center; }
.demo-status-icons i { display: block; width: 3px; border-radius: 1px; background: var(--ink); }
.demo-status-icons i:nth-child(1) { height: 5px; }
.demo-status-icons i:nth-child(2) { height: 8px; }
.demo-status-icons i:nth-child(3) { height: 11px; }
.demo-status-icons i:nth-child(4) { height: 14px; }
.demo-battery {
  width: 24px; height: 12px; border: 1.5px solid var(--ink); border-radius: 4px; padding: 2px; margin-left: 6px;
}
.demo-battery::before { content: ""; display: block; width: 70%; height: 100%; background: var(--ink); border-radius: 1px; }

.demo-head {
  display: flex; align-items: center; gap: 12px; padding: 8px 20px 12px;
  border-bottom: 1px solid var(--line); background: var(--card);
}
.demo-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none;
}
.demo-sender { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.demo-sender-sub { font-size: 12px; color: var(--muted); }
.demo-body { flex: 1; display: flex; flex-direction: column; }
.demo-sms { display: none; }
.demo-sms.is-active { display: block; }
.demo-msg { padding: 20px 16px 8px; }
.demo-avatar svg { width: 20px; height: 20px; }
.demo-day { text-align: center; font-size: 12px; color: var(--faint); margin-bottom: 12px; }
.demo-bubble {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px;
  padding: 12px 14px; font-size: 15px; line-height: 1.45; color: var(--ink); max-width: 92%;
  box-shadow: 0 2px 6px -2px rgba(20, 20, 51, .08); overflow-wrap: anywhere;
}
.demo-bubble a, .demo-bubble .demo-link { color: var(--sky-ink); text-decoration: underline; }
.demo-time { font-size: 11px; color: var(--faint); margin: 6px 0 0 6px; }
.demo-explain { display: none; }

.demo-foot { padding: 12px 16px 20px; background: var(--screen); }
.demo-prompt { font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; margin-bottom: 10px; }
.demo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-btn {
  height: 48px; border-radius: var(--r-ctl); border: 2px solid transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
.demo-btn:active { transform: scale(.98); }
.demo-btn-scam { background: var(--scam-tint); color: var(--scam-ink); border-color: var(--scam-tint); }
.demo-btn-scam:hover { border-color: var(--scam); }
.demo-btn-safe { background: var(--safe-tint); color: var(--safe-ink); border-color: var(--safe-tint); }
.demo-btn-safe:hover { border-color: var(--safe); }
.demo-btn:disabled { opacity: .5; cursor: default; }
.demo-progress { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.demo-progress i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); display: block; }
.demo-progress i.is-on { background: var(--brand); width: 18px; border-radius: 3px; }

/* Slides up over the answer buttons (positioned against .demo-phone-screen),
   leaving the message it explains fully visible. */
.demo-verdict {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  background: var(--card); border-radius: 20px; padding: 16px;
  box-shadow: 0 16px 40px -12px rgba(20, 20, 51, .35); border: 1px solid var(--line);
  transform: translateY(16px); opacity: 0; pointer-events: none;
  transition: transform .25s var(--ease-out), opacity .2s ease;
}
/* Closed, the card must be unreachable by keyboard and unread by a screen
   reader; visibility does both, where opacity alone left its button focusable. */
.demo-verdict:not(.is-open) { visibility: hidden; }
.demo-verdict.is-open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
.demo-verdict-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.demo-verdict-icon {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.demo-verdict.is-right .demo-verdict-icon { background: var(--safe); }
.demo-verdict.is-wrong .demo-verdict-icon { background: var(--scam); }
.demo-verdict-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink); line-height: 1.2; }
.demo-verdict.is-right .demo-verdict-title { color: var(--safe-ink); }
.demo-verdict.is-wrong .demo-verdict-title { color: var(--scam-ink); }
.demo-verdict-text { font-size: 14px; line-height: 1.5; color: var(--body); margin-bottom: 12px; }
.demo-next { width: 100%; height: 44px; }
.demo-phone .visually-hidden-src { display: none; }

/* ------------------------------------------------------------ trust strip */

.trust-strip { padding: 0 var(--gutter) clamp(40px, 5vw, 64px); }
.trust-strip-in {
  max-width: var(--shell); margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.trust-label { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; margin-right: 8px; }
.trust-item {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card);
  font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.trust-item::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--safe-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312b76a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
@media (max-width: 720px) {
  .trust-strip { padding-left: 0; padding-right: 0; padding-bottom: 40px; }
  /* One horizontally scrolling chip row, edge to edge (senukai pattern). */
  .trust-strip-in {
    justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    border-top: 0; padding: 0 var(--gutter) 4px; -webkit-overflow-scrolling: touch;
  }
  .trust-strip-in::-webkit-scrollbar { display: none; }
  .trust-label { margin-right: 4px; }
}

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

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 32px); min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-soft { background: var(--brand-tint); border-color: transparent; }
.card-soft.is-sky { background: var(--sky-tint); }
.card-soft.is-sun { background: var(--sun-tint); }
.card-soft.is-safe { background: var(--safe-tint); }
.card-elev { border-color: transparent; box-shadow: var(--shadow); }
.card-feature { border-radius: var(--r-feature); }
.card-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }
.card p:last-child { margin-bottom: 0; }
/* A card that spans the whole shell would otherwise run its body to ~100
   characters; inside a grid column the cap never bites. */
.card p { max-width: 62ch; }
/* A lone card used as a whole section body — a note, an honest list — takes
   the same 840px measure as a `.facts` list rather than the full shell. */
.wrap > .card { max-width: var(--mid); }
.card .link-arrow { margin-top: auto; padding-top: 16px; font-size: 15px; }
@media (hover: hover) {
  a.card:hover, .card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: transparent; }
}

.icon-tile {
  width: 40px; height: 40px; border-radius: 12px; background: var(--brand-tint); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; flex: none;
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.is-white { background: var(--card); }
.icon-tile.is-safe { background: var(--safe-tint); color: var(--safe-ink); }
.icon-tile.is-sun { background: var(--sun-tint); color: var(--sun-ink); }
.icon-tile.is-sky { background: var(--sky-tint); color: var(--sky-ink); }
.card-soft .icon-tile { background: var(--card); }

/* ------------------------------------------------------------ feature tabs
   Buttons carry role="tab"; panels role="tabpanel". Without JS every panel
   stays visible, stacked, and the tab row is a plain list of anchors. */

.feature-tabs { max-width: var(--wide); margin-inline: auto; }
.tabs-list {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 4vw, 48px);
}
/* These tabs are the whole navigation of the tallest section on the homepage,
   so they are sized as controls, not as captions. */
.tab {
  appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  height: 56px; padding: 0 16px; cursor: pointer;
  font-family: var(--font-body); font-size: 17px; font-weight: 600; color: var(--muted); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--ink); text-decoration: none; }
.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.tab:focus-visible { outline-offset: -2px; border-radius: 8px; }
.tab-panel { display: none; }
.tab-panel.is-active, .no-js .tab-panel { display: block; }
.no-js .tab-panel + .tab-panel { margin-top: 48px; }
.tab-panel-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: center;
}
.tab-panel-copy { min-width: 0; }
.tab-panel-copy h3 { margin-bottom: 12px; }
.tab-panel-copy .ticks { margin: 24px 0; }
.tab-panel.km-in-panel { animation: km-fade .35s var(--ease-out) both; }
@keyframes km-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 940px) {
  .tabs-list {
    justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    border-bottom: 0; gap: 8px; margin: 0 calc(var(--gutter) * -1) 24px; padding: 4px var(--gutter);
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  }
  .tabs-list::-webkit-scrollbar { display: none; }
  .tab {
    height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-pill); margin: 0;
    background: var(--card); color: var(--body); scroll-snap-align: start; flex: none;
  }
  .tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
  .tab:focus-visible { outline-offset: 2px; border-radius: var(--r-pill); }
  .tab-panel-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ------------------------------------------------------------------- lists */

.ticks { list-style: none; display: grid; gap: 12px; }
/* The list is often the only thing in a full-width card, so the item — not the
   container — carries the measure. */
.ticks li {
  position: relative; padding-left: 32px; max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 17px); line-height: 1.55;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--safe-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312b76a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks-brand li::before {
  background-color: var(--brand-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4cf5' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
/* For a list of things the platform deliberately does not do: the green
   "Saugu" tick would read as "included" and turn an honest list into a
   feature list. */
.ticks-cross li::before {
  background-color: var(--scam-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f04438' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
}
.ticks-white li { color: #fff; }
.ticks-white li::before { background-color: rgba(255, 255, 255, .16); }

/* A definition list reads at ~74 characters, which is what 220px of term plus
   a 596px description gives. The component caps itself so it stays legible in
   the 1080px shell as well as the 840px one. */
.facts { list-style: none; display: grid; gap: 0; max-width: var(--mid); }
.facts li {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 1.6vw, 17px); line-height: 1.6;
}
.facts li:first-child { border-top: 1px solid var(--line); }
.facts dfn, .facts b { flex: 0 0 220px; font-style: normal; font-weight: 600; color: var(--ink); }
.facts span { flex: 1 1 300px; min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card);
  font-size: 14px; font-weight: 500; color: var(--body); white-space: nowrap;
}
.chip-tint { background: var(--brand-tint); border-color: transparent; color: var(--on-tint); }
.chip-sun { background: var(--sun-tint); border-color: transparent; color: var(--sun-ink); }
.chip-safe { background: var(--safe-tint); border-color: transparent; color: var(--safe-ink); }
.chip-scam { background: var(--scam-tint); border-color: transparent; color: var(--scam-ink); }
.chip-sm { height: 28px; padding: 0 10px; font-size: 12px; font-weight: 600; }
@media (max-width: 720px) {
  .chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .chips-scroll::-webkit-scrollbar { display: none; }
}

.num {
  font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--brand); margin-bottom: 12px;
}
.stat {
  font-size: clamp(44px, 5vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 12px;
}

/* --------------------------------------------------------------- band dark */

/* Flat, per DESIGN.md. The two-blob glow belongs to the hero, where it softens
   the top of the page; repeated on three bands it is decoration by default. */
.band-dark { background: var(--brand-deep); color: rgba(255, 255, 255, .82); }
.band-dark h2, .band-dark h3, .band-dark .stat { color: #fff; }
.band-dark .lead { color: rgba(255, 255, 255, .8); }
.band-dark .eyebrow { background: rgba(255, 255, 255, .12); color: #fff; }
.band-dark .eyebrow::before { background: var(--sun); }
.band-dark .stat { color: #fff; }
.band-dark .stat-text { color: rgba(255, 255, 255, .82); max-width: 300px; margin: 0 auto 12px; }
.band-dark .stat-source { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .5); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
/* The three sources are the same class of metadata, so they sit on one line
   at the bottom of the row however long the body above them runs. */
.stats > div {
  display: flex; flex-direction: column; text-align: center; padding: 32px 16px;
  border-radius: var(--r-feature); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
.band-dark .stat-source { margin-top: auto; }
.band-dark .rule { border-color: rgba(255, 255, 255, .14); }

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

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: var(--on-brand);
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; position: relative; z-index: 1;
}
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 56px; right: -16px; top: 32px; height: 2px;
  background: var(--brand-tint-2);
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 0 0 32px; }
  .step-num { grid-row: 1 / span 2; margin: 0; }
  .step:not(:last-child)::before { left: 23px; right: auto; top: 48px; bottom: 0; width: 2px; height: auto; }
  .step h3 { margin-top: 10px; }
}

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

.course-card {
  display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-feature); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.course-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.course-thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, #7d6cff 45%, #9ad1ff 100%);
}
.course-thumb::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 24px -8px rgba(20, 20, 51, .4);
}
.course-thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%);
  border-style: solid; border-width: 9px 0 9px 16px; border-color: transparent transparent transparent var(--brand);
}
.course-thumb img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0;
}
.course-thumb img.is-broken { display: none; }
.course-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.course-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.course-body h3 { margin-bottom: 8px; }
.course-body .small { color: var(--muted); }
.course-body .link-arrow { margin-top: auto; padding-top: 16px; font-size: 15px; }

/* --------------------------------------------------------------------- FAQ */

.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item[open] { border-color: var(--brand-tint-2); box-shadow: var(--shadow); }
.faq-q {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; min-height: 64px;
  font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.35;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--brand); }
.faq-q:focus-visible { outline-offset: -3px; border-radius: var(--r-card); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--brand-tint); color: var(--brand);
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; border-radius: 1px;
  transform: translate(-50%, -50%); transition: transform .2s ease;
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a { padding: 0 24px 24px; }
.faq-a p { max-width: 68ch; }
@media (max-width: 720px) {
  .faq-q { padding: 16px 16px; font-size: 16px; min-height: 56px; }
  .faq-a { padding: 0 16px 20px; }
}

/* ---------------------------------------------------------------- CTA band */

/* A flat violet band on the same rhythm as every other section. */
.cta-band { background: var(--band); color: #fff; padding: var(--sec-pad) var(--gutter); }
.cta-band-in { max-width: var(--mid); margin: 0 auto; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band .lead { color: rgba(255, 255, 255, .86); margin-bottom: 32px; }
.cta-band .actions { gap: 12px; }
.cta-band .link-arrow { color: #fff; }
.cta-band .cta-note { margin-top: 24px; font-size: 15px; color: rgba(255, 255, 255, .92); }
.cta-band .cta-note a { color: #fff; font-weight: 600; text-decoration: underline; }
@media (max-width: 720px) {
  .cta-band .actions .btn { flex: 1 1 100%; height: 52px; }
}

/* -------------------------------------------------------------- mobile bar
   Sticky bottom bar on phones. Hidden until site.js reveals it after the
   hero scrolls out; a <noscript> style on the page shows it unconditionally. */

.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 48;
  background: var(--bar-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
  grid-template-columns: 1fr 2fr; gap: 8px;
  transform: translateY(110%); transition: transform .25s var(--ease-out);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { height: 48px; width: 100%; padding: 0 12px; }
@media (max-width: 940px) {
  .mobile-bar { display: grid; }
  body.has-mobile-bar { padding-bottom: 72px; }
  .nav-toggle[open] ~ .mobile-bar { display: none; }
}

/* ------------------------------------------------------------- screenshots */

.shot {
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  background: var(--surface); position: relative;
}
.shot img { width: 100%; height: auto; display: block; filter: var(--shot-dim); }
.shot-caption { margin: 16px 0 0; text-align: center; font-size: 15px; font-weight: 500; color: var(--muted); }
/* A device frame, not a browser one: `.shot-phone` is the one screenshot
   treatment that may sit beside `.shot-browser` on the same page. */
.shot-phone {
  max-width: 300px; margin-inline: auto; align-self: center;
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--card);
}
/* For a source shot exported with dead margins above and below its content:
   crop it to the phone ratio rather than framing the empty space. Replace the
   class with a tighter export when one exists. */
.shot-crop img { aspect-ratio: 9 / 16; object-fit: cover; object-position: center; }
.shot-elev { border-color: transparent; box-shadow: var(--shadow-lift); }

/* Browser chrome: three dots + an address pill on top of the screenshot. */
.shot-browser { border-radius: var(--r-card); }
.shot-browser::before {
  content: ""; display: block; height: 36px; background: var(--card); border-bottom: 1px solid var(--line);
  background-image:
    radial-gradient(circle, #ff5f57 5px, transparent 5.5px),
    radial-gradient(circle, #febc2e 5px, transparent 5.5px),
    radial-gradient(circle, #28c840 5px, transparent 5.5px),
    linear-gradient(var(--surface), var(--surface));
  background-size: 12px 12px, 12px 12px, 12px 12px, 44% 16px;
  background-position: 16px 12px, 34px 12px, 52px 12px, 50% 10px;
  background-repeat: no-repeat;
}
.shot-browser::after {
  content: ""; position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 44%; height: 16px; border-radius: var(--r-pill); background: var(--surface);
}

/* A bracketed placeholder the owner still has to fill. Marked, not disguised:
   a plain grey circle reads as a broken image rather than as a to-do. */
/* The author's photo sits on top of the dashed placeholder. Until the file
   exists site.js marks the image broken and hides it, so the to-do shows
   instead of a broken-image glyph — drop the file in and it appears. */
.placeholder-photo { position: relative; overflow: hidden; }
.placeholder-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
}
.placeholder-photo img.is-broken { display: none; }
.placeholder-photo:has(img:not(.is-broken)) { border-style: solid; border-color: var(--brand-tint-2); }

.placeholder-photo {
  width: 120px; height: 120px; border-radius: 50%; flex: 0 0 auto;
  border: 2px dashed var(--brand-tint-2); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--faint); text-align: center; line-height: 1.3;
}
.author {
  display: flex; gap: clamp(24px, 4vw, 40px); align-items: flex-start; flex-wrap: wrap;
}
.author-body { flex: 1 1 320px; min-width: 0; }
.author-creds { font-size: 15px; font-weight: 600; color: var(--brand); margin-bottom: 12px; }

/* A screenshot beside its explanation; alternates side on .flip. */
.feature {
  display: grid; gap: clamp(32px, 4vw, 56px); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.feature + .feature { margin-top: clamp(56px, 8vw, 96px); }
@media (min-width: 900px) { .feature.flip > *:first-child { order: 2; } }

/* --------------------------------------------------------------- game card */

.game {
  border: 1px solid var(--line); border-radius: var(--r-feature); overflow: hidden; background: var(--card);
  display: flex; flex-direction: column; min-width: 0;
}
a.game { color: inherit; text-decoration: none; }
a.game:hover { text-decoration: none; }
/* Screenshots inside a card row share one frame ratio and fill it. Source
   images run from 1.3:1 to 2.2:1, and letterboxing them left three different
   picture sizes in one grid with grey bands that read as loading failures;
   these are UI screenshots, so the top-left corner is the part worth keeping. */
.game > img, .game-frame img {
  width: 100%; height: 100%; aspect-ratio: 16 / 10;
  object-fit: cover; object-position: top left; background: var(--surface); display: block; filter: var(--shot-dim);
}
.game-frame { width: 100%; aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; }
.game-body { padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; flex: 1; }
.game-body .small { color: var(--muted); }
.game-tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; align-self: flex-start;
  border-radius: var(--r-pill); background: var(--brand-tint); color: var(--on-tint);
  font-size: 12px; font-weight: 600; margin-bottom: 16px;
}

/* ------------------------------------------------------------- game carousel
   A native scroll-snap row: works with zero JS; prev/next buttons and dots
   are layered on by site.js. */
.game-carousel { position: relative; max-width: var(--wide); margin: 0 auto; }
.game-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -4px; padding: 4px;
}
.game-track::-webkit-scrollbar { display: none; }
.game-track > .game { flex: 0 0 100%; scroll-snap-align: start; }
.game-carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.game-nav {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.game-nav:hover { border-color: var(--brand); color: var(--brand); }
.game-dots { display: flex; align-items: center; gap: 8px; }
.game-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: var(--r-pill); background: var(--line); cursor: pointer; }
.game-dot:hover { background: var(--faint); }
.game-dot[aria-current="true"] { width: 24px; background: var(--brand); }

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

.ftr { background: var(--brand-deep); color: rgba(255, 255, 255, .72); padding: clamp(48px, 6vw, 72px) var(--gutter) 32px; }
.ftr-in {
  max-width: var(--shell); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px;
}
.ftr-brand { display: grid; gap: 16px; align-content: start; }
.ftr-brand .brand { color: #fff; }
.ftr-brand .brand:hover { color: #fff; }
.ftr-brand .brand-mark { color: #fff; }
.ftr-tagline { font-size: 15px; color: rgba(255, 255, 255, .72); max-width: 320px; }
.ftr-col { display: grid; gap: 8px; align-content: start; }
.ftr-title {
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5); margin-bottom: 8px;
}
/* Scoped to the descendant so it cannot outrank .ftr-title, .ftr-tagline
   and .ftr-note, which are single-class selectors declared around it. */
.ftr a, .ftr :is(p):not([class]) { font-size: 15px; color: rgba(255, 255, 255, .78); text-decoration: none; line-height: 1.6; }
.ftr a { display: inline-flex; align-items: center; min-height: 44px; }
.ftr a:hover { color: #fff; text-decoration: none; }
.ftr .dim { color: rgba(255, 255, 255, .55); font-size: 14px; }
.ftr-bottom {
  max-width: var(--shell); margin: clamp(32px, 4vw, 48px) auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.ftr-note { font-size: 13px; color: rgba(255, 255, 255, .5); margin: 0; }
.ftr .lang-switch-select { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.ftr .lang-switch-select option { color: var(--ink); }
.ftr .lang-switch-select:hover { border-color: rgba(255, 255, 255, .5); }
@media (max-width: 940px) {
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .ftr-in { grid-template-columns: 1fr; gap: 24px; }
}

/* --------------------------------------------------------------- animation */

@keyframes km-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
[data-reveal].km-in { animation: km-rise .7s var(--ease-out) both; }

/* The one orchestrated moment: hero copy fades up, phone slides in. */
@keyframes km-hero-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes km-hero-in { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: km-hero-up .6s var(--ease-out) both; }
.hero-copy > :nth-child(1) { animation-delay: 0ms; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 240ms; }
.hero-copy > :nth-child(5) { animation-delay: 320ms; }
.hero-copy > :nth-child(6) { animation-delay: 400ms; }
.hero-visual { animation: km-hero-in .8s var(--ease-out) .2s both; }

@keyframes km-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 8px; animation: km-marquee 34s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  [data-reveal].km-in, .hero-copy > *, .hero-visual, .tab-panel.km-in-panel { animation: none !important; }
  .marquee-track { animation: none !important; }
  .game-track { scroll-behavior: auto; }
  .mobile-bar { transition: none; }
  .demo-verdict { transition: none; }
}

/* ------------------------------------------------------------------- prose */

/* Article body. ~68 characters is the line length long-form Lithuanian
   reads best at — and it is the measure of the whole article column
   (`.wrap-prose`), so the header, the player and the body share one left edge. */
.prose { max-width: var(--prose); }
.prose > * + * { margin-top: 1.1em; }
.prose p { font-size: clamp(17px, 2vw, 18px); line-height: 1.75; }
/* Headings keep the site scale (40 / 22): the same semantic level must not
   shrink by a third just because the page is long-form. */
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.8em; }
.prose h2 + p, .prose h3 + p { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { font-size: clamp(17px, 2vw, 18px); line-height: 1.7; margin-top: .4em; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--brand); }
.prose blockquote p { color: var(--ink); }
.prose img { border-radius: var(--r-card); margin: 1.6em 0; }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ----------------------------------------------------------- audio player */

/* The narration card. The native <audio> control was the only piece of
   unstyled browser chrome on the site, so it is put on the site's own surface
   — white pill, control height, card radius — and the Chromium panel is
   recoloured to match. No script: the native control keeps working everywhere,
   including without JS. */
.listen {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border: 1px solid transparent; border-radius: var(--r-card);
  padding: 20px 24px; background: var(--brand-tint);
}
.listen .icon-tile { margin-bottom: 0; background: var(--card); }
.listen-label { font-size: 15px; font-weight: 600; color: var(--brand-deep); margin: 0; }
.listen audio {
  flex: 1 1 260px; min-width: 0; width: 100%; height: 44px; display: block;
  border-radius: var(--r-pill); background: var(--card); color: var(--body);
}
.listen audio::-webkit-media-controls-enclosure,
.listen audio::-webkit-media-controls-panel { background: var(--card); border-radius: var(--r-pill); }
@media (max-width: 520px) {
  .listen { padding: 16px; gap: 12px; }
  .listen audio { flex-basis: 100%; }
}
