/* ═══════════════════════════════════════════════════════════════════
   LockyFeed · лендінг, версія Б2 — легша Б: менше тексту, голий замочок під кутом.
   Токени й пара шрифтів — без змін із landing/style.css, але завжди світла
   Chalk & Sky: за проханням Лева prefers-color-scheme відключено, dark-блок
   токенів навмисно прибрано (не заглушений — саме видалений, щоб не тягнути
   мертвий код). Пласка тональна ієрархія, без обводок і тіней. Кольори ТІЛЬКИ токенами;
   брендові кольори сайтів — лише всередині мокапів через --brand.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;
  --bg: #eef2f7;
  --surface-sunken: #e2e7ee;
  --surface-1: #f4f7fa;
  --surface-2: #f9fbfd;
  --surface-3: #ffffff;
  --text: #242b34;
  --text-muted: #5d6875;
  --text-dim: #7e8895;
  --accent: #3d6b9b;
  --accent-ink: #f4f8fc;
  --accent-soft: rgba(61, 107, 155, 0.10);
  --grad: linear-gradient(120deg, rgba(161, 196, 253, 0.16) 0%, rgba(194, 233, 251, 0.07) 45%, rgba(238, 242, 247, 0) 75%);

  --font-display: 'Geologica', sans-serif;
  --font-text: 'Onest', sans-serif;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 22px;
  --radius-full: 999px;
  --gutter: 24px;
  --wrap-max: 1120px;
  /* відступ від краю вʼюпорта до контенту .wrap — для стрічок «на всю ширину» */
  --bleed: max(var(--gutter), calc((100vw - var(--wrap-max)) / 2 + var(--gutter)));

  /* мокапи */
  --mono-tint: #e9e9ec;          /* тло блок-сторінки для «чорних» брендів (X, Threads, TikTok) */
  --seg-bg: #e3e9f0;             /* корито сегмент-контролу на surface-1 */
  --skeleton: #dfe4ea;           /* плашки-скелети стрічки */
  --ok: #3f8f5a;
  --warn: #b0562e;
  --bag: #8a7a9a;                /* мішки під очима в ілюстрації «Знайомо?» (illus-lab, варіант Б) */

  /* Знак LockyFeed (тимчасовий, до фінального лого): кут нахилу голого замочка
     в навбарі/футері/favicon — єдине місце, де це підкручувати. */
  --mark-tilt: -11deg;
}

/* ─── База ─────────────────────────────────────────────────────────── */

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font: 400 16px/1.6 var(--font-text);
  color: var(--text);
  /* один світлий тон на всю сторінку (світліший з двох, що були) — секції-«зебри»
     прибрані, паттерна на сторінці більше нема ніде (прибрано з hero — забагато
     рапорту поруч із мокапом блок-сторінки). Градієнт-«вимивання»
     живе на самому .hero (нижче), а не тут із фіксованою висотою в px — інакше
     на будь-якому в'юпорті, де hero+мокап вищі за ту px-позначку, з'являється
     шов там, де грeдієнт обривається посеред мокапа. */
  background-color: var(--surface-1);
  overflow-x: hidden;
}

img, svg, picture { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
b, strong { font-weight: 600; }

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 6.2vw, 64px); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; }
h3 { font-size: 19px; line-height: 1.3; }

.num { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lead {
  color: var(--text-muted);
  font-size: 17px;
  margin-top: 14px;
  text-wrap: pretty;
}

section, .hero { padding: 88px 0; }

.caption {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 12px;
  text-align: center;
  text-wrap: pretty;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ─── Навбар + вордмарк ─────────────────────────────────────────────── */

.nav {
  padding: 22px 0 0;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.wordmark svg { width: 24px; height: 24px; color: var(--text); }
.wordmark em { font-style: normal; color: var(--accent); }
.wordmark-sm { font-size: 15px; gap: 7px; }
.wordmark-sm svg { width: 18px; height: 18px; }

/* Знак LockyFeed: голий замочок (той самий гліф, що на блок-сторінці), без плашки,
   колір — чорнильний (var(--text)) через .wordmark svg { color }, «Feed» — акцент через .wordmark em;
   кут — --mark-tilt (див. :root). */
.wordmark-mark { width: 26px; height: 26px; transform: rotate(var(--mark-tilt)); transform-origin: 50% 50%; }
.wordmark-sm .wordmark-mark { width: 20px; height: 20px; }

.nav-links {
  display: flex;
  gap: 4px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a {
  text-decoration: none;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--accent-soft); color: var(--text); }
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-full);
  padding: 9px 16px;
  white-space: nowrap;
}

/* Перемикач мови — тумблер (UA ⇄ EN), не лінки: корито + повзунок, який сидить
   над активною мовою; клік будь-де в межах — перехід на другу мовну версію
   (клас .is-en на .lang-toggle зсуває повзунок і підсвічує EN — на укр-сторінці
   класу нема, повзунок зліва над UA за замовчуванням). */
.lang-toggle {
  --lt-w: 60px;
  --lt-h: 26px;
  position: relative;
  display: inline-flex;
  align-items: stretch;
  width: var(--lt-w);
  height: var(--lt-h);
  padding: 3px;
  border-radius: var(--radius-full);
  background: var(--seg-bg);
  text-decoration: none;
  flex-shrink: 0;
}
.lang-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: var(--radius-full);
  background: var(--surface-3);
  box-shadow: 0 1px 3px rgba(36, 43, 52, 0.16);
  transition: transform 0.18s ease;
}
.lang-toggle.is-en .lang-toggle-thumb { transform: translateX(100%); }
.lang-toggle-opt {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  transition: color 0.18s ease;
}
.lang-toggle-opt.cur { color: var(--text); }
.lang-toggle:hover .lang-toggle-opt:not(.cur) { color: var(--text-muted); }

/* ─── CTA ──────────────────────────────────────────────────────────── */

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.cta-center { align-items: center; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-full);
  padding: 15px 28px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn-cta:hover { opacity: 0.9; }
.btn-cta svg { width: 18px; height: 18px; }

/* ─── 1 · Hero ─────────────────────────────────────────────────────── */

.hero {
  /* верхній відступ тепер на .hero > .wrap (нижче) — сам .hero починається
     рівно з навбару, щоб паттерн/градієнт продовжувались під ним без шва */
  padding: 0 0 72px;
  /* «вимивання» кольору прив'язане до розміру самого hero (100% 100%), а не до
     фіксованої px-висоти на body — інакше на секції вищій за ту висоту градієнт
     обривається посеред мокапа й лишає видимий шов */
  background-image: var(--grad);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.hero > .wrap { padding-top: 56px; }
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-3);
  border-radius: var(--radius-full);
  padding: 9px 16px;
  text-decoration: none;
  margin-bottom: 26px;
  transition: background 0.15s ease;
}
.pill:hover { background: var(--accent-soft); }
.pill .arrow { color: var(--accent); }

.hero .lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  margin: 22px auto 30px;
  max-width: 560px;
  text-wrap: pretty;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.trust li { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.trust li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* Мокап hero: вікно браузера + попап поверх */
.hero-stage {
  position: relative;
  max-width: 1040px;
  margin: 56px auto 0;
}
.hero-stage .browser { margin: 0; }
.hero-popup {
  /* під баром браузера (44px) лишаємо повітря, щоб попап читався як
     випадаючий з іконки розширення, а не приліплений до хрому */
  position: absolute;
  top: 76px;
  right: 22px;
  width: min(268px, 34%);
  z-index: 2;
}
.hero-popup .popup-crop {
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 760 / 780;
  background: var(--surface-1);
}
.hero-popup .popup-crop img { width: 100%; margin-top: -13.16%; }
.hero-popup::before {
  /* «хвостик» до іконки розширення в тулбарі */
  content: '';
  position: absolute;
  top: -10px;
  right: 22px;
  width: 14px; height: 14px;
  background: var(--surface-1);
  transform: rotate(45deg);
  border-radius: 3px;
}

/* En-версія попапу: живий CSS-мокап замість укр. скріншота (en/index.html) —
   той самий підхід, що .miniblock нижче: реальний DOM замість пікселів, які
   не перекласти. Трохи ширший за .popup-crop (300px замість 268px — той самий
   ліміт, що вже стоїть на мобільному брейкпоінті нижче), щоб 5 рядків правил
   лишались читабельними при дрібному шрифті. */
.hero-popup.is-mock { width: min(300px, 38%); }
.popup-mock {
  border-radius: var(--radius-l);
  background: var(--surface-3);
  padding: 16px 16px 14px;
  font-size: 12px;
}
.pm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pm-brand { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text); }
.pm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.pm-settings { font-size: 11px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.pm-pause { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.pm-pause-label { font-size: 11px; color: var(--text-muted); }
.pm-chip { font-size: 10.5px; font-weight: 600; color: var(--text-muted); background: var(--seg-bg); border-radius: var(--radius-full); padding: 4px 9px; }
.pm-rules-label { font-size: 11px; color: var(--text-dim); margin-bottom: 10px; }
.pm-rules { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pm-rules li { display: flex; align-items: center; gap: 10px; }
.pm-icon { width: 22px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; }
.pm-icon svg { width: 22px; height: 22px; }
.pm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pm-info b { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--text); }
.pm-info small { font-size: 10.5px; }
.tone-blue { color: var(--accent); }
.tone-red { color: var(--warn); }
.tone-dim { color: var(--text-dim); }
.pm-toggle { width: 28px; height: 16px; border-radius: var(--radius-full); background: var(--accent); position: relative; flex: none; }
.pm-toggle::after { content: ''; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); }
.pm-stats { margin-top: 14px; font-size: 11px; color: var(--text-muted); }
.pm-stats b { color: var(--text); font-weight: 700; }

/* Живий мокап у hero замість скріна: той самий .miniblock/.mb-*, що на панелі режимів —
   навмисно НЕ роздутий, лише трохи крупніший за базовий (рамка тут ширша), щоб лишався
   акуратним, пропорційним вікном, а не "зумленою" карткою. Подвійний клас
   .miniblock.hero-mini (не просто .hero-mini) — інакше border-radius:0 програє
   .miniblock через однакову специфічність і порядок у файлі, і кути лишаються
   заокругленими зсередини (шов-«вирва» у кутах під баром браузера).
   Пропорції звірені з реальною блок-сторінкою (entrypoints/blocked/App.tsx Frame:
   .blocked-content — flex items-center justify-center, контент у вузькій колонці
   max-w-34rem, без власного паддінга — тло на всю висоту вʼюпорта). Тут те саме:
   контейнер aspect-ratio 1200/829 (пропорції landing/img/blocked-*-light.png) з
   flex-центруванням, вузька колонка .mb-inner замість розтягування на всю ширину. */
.miniblock.hero-mini {
  border-radius: 0;
  aspect-ratio: 1200 / 829;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mini .mb-inner { width: 100%; max-width: 500px; padding: 0; gap: 14px; }
.hero-mini .mb-logo { width: 36px; height: 36px; }
.hero-mini .mb-name { font-size: 28px; }
.hero-mini .mb-bubble { padding: 14px 18px 12px; }
.hero-mini .mb-phrase { font-size: 16px; }
.hero-mini .mb-attempts { font-size: 13px; }
.hero-mini .mb-attempts b { font-size: 16px; }
.hero-mini .statecard { padding: 20px 24px; gap: 20px; }
.hero-mini .statecard .lock { width: 42px; height: 42px; }
.hero-mini .sc-big { font-size: 44px; }
.hero-mini .sc-label, .hero-mini .sc-sub { font-size: 13px; }
.hero-mini .mb-btn { font-size: 14px; padding: 10px 18px; }
.hero-mini .mb-url { font-size: 12px; }

/* ─── Вікно браузера (рамка для скрінів) ───────────────────────────── */

.browser {
  background: var(--surface-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  background: var(--surface-2);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-sunken); }
.url {
  flex: 1;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: var(--text-dim);
  background: var(--surface-1);
  border-radius: var(--radius-full);
  padding: 0 14px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.url b { color: var(--text-muted); font-weight: 500; }
.ext-icon {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.ext-icon svg { width: 14px; height: 14px; }
.browser-body { position: relative; overflow: hidden; background: var(--surface-1); }
.browser-body img { width: 100%; }
/* кроп верхнього хедера options-скрінів (там вордмарк збірки) */
.crop-top { aspect-ratio: 1400 / 860; }
.crop-top img { margin-top: -6.43%; }
/* ліва колонка каталогу сайтів: x 0→920, y 90→950 з 1400×1050 */
.crop-left { aspect-ratio: 920 / 720; }
.crop-left img { width: 152.2%; max-width: none; margin-top: -9.78%; }
/* «наближення» блок-сторінки: контент скріна живе в центрі, зумимо, щоб текст читався */
.zoom { aspect-ratio: 1200 / 829; }
.zoom img { width: 140%; max-width: none; margin-left: -20%; margin-top: -13.8%; }

/* ─── 2 · Проблема (текст + ілюстрація, живий бабл — у hero) ─────────── */

.problem-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.problem-copy h2 { margin-bottom: 20px; font-size: clamp(32px, 4.2vw, 46px); }
.problem-copy p { color: var(--text-muted); font-size: 18px; text-wrap: pretty; }
.problem-copy .solution-em { color: var(--text); }
.problem-illus { display: flex; justify-content: center; }
.problem-illus svg { width: min(100%, 360px); height: auto; }

/* Ілюстрація «Знайомо?» — порт варіанта Б (illus-lab/index.html): лінійне обличчя за
   ноутбуком, радість → виснаження на steps-переході (7с, без проміжних кадрів — різкий
   «клац», а не плавний морф). prefers-reduced-motion → статичний кадр «до» (усмішка,
   відкриті очі, без мішків) — картинка просто не рухається. */
.illus-b .eye-l-open, .illus-b .eye-r-open,
.illus-b .eye-l-tired, .illus-b .eye-r-tired,
.illus-b .bags-line,
.illus-b .mouth-smile, .illus-b .mouth-flat {
  animation-duration: 7s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.illus-b .eye-l-open, .illus-b .eye-r-open { animation-name: illus-b-open-out; }
.illus-b .eye-l-tired, .illus-b .eye-r-tired { animation-name: illus-b-tired-in; opacity: 0; }
.illus-b .bags-line { animation-name: illus-b-tired-in; opacity: 0; }
.illus-b .mouth-smile { animation-name: illus-b-open-out; }
.illus-b .mouth-flat { animation-name: illus-b-tired-in; opacity: 0; }
@keyframes illus-b-open-out {
  0%, 42% { opacity: 1; }
  48%, 92% { opacity: 0; }
  96%, 100% { opacity: 1; }
}
@keyframes illus-b-tired-in {
  0%, 42% { opacity: 0; }
  48%, 92% { opacity: 1; }
  96%, 100% { opacity: 0; }
}
.illus-b .hand-b { transform-origin: 250px 255px; animation: illus-b-scroll 0.5s ease-in-out infinite alternate; }
.illus-b .tick { animation: illus-b-tick 0.65s linear infinite; }
@keyframes illus-b-scroll { from { transform: translateY(0); } to { transform: translateY(5px); } }
@keyframes illus-b-tick { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-12px); opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  .illus-b .eye-l-open, .illus-b .eye-r-open,
  .illus-b .mouth-smile { opacity: 1 !important; animation: none !important; }
  .illus-b .eye-l-tired, .illus-b .eye-r-tired,
  .illus-b .bags-line, .illus-b .mouth-flat { opacity: 0 !important; animation: none !important; }
  .illus-b .hand-b, .illus-b .tick { animation: none !important; }
}

/* ─── Міні блок-сторінка (мокап у стилі продукту) ───────────────────── */

.miniblock {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: color-mix(in oklab, var(--brand) 14%, var(--bg));
  --brand-logo: var(--brand);
  --card-bg: var(--brand);
  --card-ink: #ffffff;
  --bubble-bg: color-mix(in oklab, var(--brand) 5%, var(--surface-3));
  color: var(--text);
}
.miniblock.mono {
  --brand-logo: var(--text);
  --card-bg: var(--accent);
  --card-ink: var(--accent-ink);
  --bubble-bg: var(--surface-3);
  background: var(--mono-tint);
}
.mb-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--brand-logo);
  opacity: 0.12;
  pointer-events: none;
}
.miniblock.mono .mb-pattern { opacity: 0.08; }
.mb-inner {
  position: relative;
  padding: 36px 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mb-head { display: flex; flex-direction: column; gap: 8px; }
.mb-logo { width: 34px; height: 34px; color: var(--brand-logo); }
.mb-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.mb-bubble {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 10px;
  border-radius: var(--radius-m);
  background: var(--bubble-bg);
}
.mb-phrase {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.mb-attempts { font-size: 12px; color: var(--text-muted); }
.mb-attempts b { font-family: var(--font-display); font-size: 15px; color: var(--text); }
.mb-attempts b.hot { color: var(--brand); }
.miniblock.mono .mb-attempts b.hot { color: var(--accent); }

.statecard {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--radius-l);
  background: var(--card-bg);
  color: var(--card-ink);
}
.statecard .lock { width: 40px; height: 40px; flex: none; }
.statecard .sc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-label { font-size: 12.5px; opacity: 0.85; }
.sc-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.sc-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.sc-sub { font-size: 12.5px; opacity: 0.85; }
.sc-bar {
  height: 6px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--card-ink) 22%, transparent);
  overflow: hidden;
  margin-top: 8px;
}
.sc-bar i { display: block; height: 100%; width: var(--w, 100%); background: var(--card-ink); border-radius: var(--radius-full); }
/* картка «Пауза + намір» */
.statecard.friction { align-items: flex-start; flex-direction: column; gap: 10px; }
.sc-input {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--card-ink) 14%, transparent);
  font-size: 14px;
}
.sc-input .caret {
  width: 1.5px; height: 1em;
  background: var(--card-ink);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.sc-actions { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.sc-btn {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--btn-bg, var(--card-ink));
  color: var(--btn-ink, var(--card-bg));
  font-weight: 600;
  font-size: 13.5px;
}
.sc-btn.wait { opacity: 0.7; }

.mb-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mb-btn {
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  color: var(--text);
}
.mb-btn.dark { background: var(--text); color: var(--bg); }
.mb-url { font-size: 11.5px; color: var(--text-dim); }

/* ─── 4 · Як працює (горизонтальний ряд карток у дусі бенто-плиток) ─── */

.how-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  border-radius: var(--radius-l);
  background: var(--surface-2);
  min-width: 0;
}
.how-card .how-n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.how-card h3 { font-size: 18px; }
.how-card p { color: var(--text-muted); font-size: 14.5px; text-wrap: pretty; }
.how-card .ui { margin-top: auto; padding-top: 14px; }

.ui-moods { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: auto; padding-top: 14px; }
.mood { padding: 7px 12px; border-radius: var(--radius-full); background: var(--surface-1); font-size: 13px; font-weight: 500; }
.mood-strong { background: var(--accent-soft); color: var(--accent); }

.ui-relax { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; }
.relax-emoji { font-size: 32px; line-height: 1; }
.relax-note { font-size: 13px; color: var(--text-muted); }

/* мокапи, спільні з бенто (пігулка-таймер, скелет стрічки) */
.post { display: flex; flex-direction: column; gap: 10px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.sk { background: var(--skeleton); border-radius: var(--radius-s); }
.sk-avatar { width: 32px; height: 32px; border-radius: 50%; }
.sk-line { height: 10px; width: 120px; }
.sk-line.short { width: 70px; }
.sk-img { height: 170px; border-radius: var(--radius-m); }
.sk-actions { display: flex; gap: 8px; }
.sk-actions i { width: 22px; height: 22px; border-radius: 50%; background: var(--skeleton); }
.pill-timer {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.pill-timer .ring { width: 16px; height: 16px; }
.pill-timer .ring circle { fill: none; stroke-width: 3; }
.pill-timer .ring .bg { stroke: var(--surface-sunken); }
.pill-timer .ring .fg { stroke: var(--brand, var(--accent)); stroke-dasharray: 44; stroke-dashoffset: 12; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.pill-menu {
  position: absolute;
  top: 60px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-radius: var(--radius-m);
  background: var(--surface-3);
  font-size: 13px;
}
.pill-menu span { padding: 6px 12px; border-radius: var(--radius-s); }
.pill-menu span.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.pill-menu .hint { font-size: 11px; color: var(--text-dim); padding-top: 2px; }

/* ─── 5 · Режими (сегмент-контрол на radio) ─────────────────────────── */

.modes-ctl > input { position: absolute; opacity: 0; pointer-events: none; }
.seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-l);
  background: var(--seg-bg);
  margin: 0 auto 32px;
  max-width: 880px;
  position: relative;
}
.seg::before {
  /* лінійка суворості під табами */
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: -14px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 25%, transparent), var(--accent));
}
.seg label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 10px;
  border-radius: var(--radius-m);
  text-align: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
}
.seg label small { font-family: var(--font-text); font-weight: 400; font-size: 12px; color: var(--text-dim); }
.seg label:hover { color: var(--text); }
.seg-scale {
  display: flex;
  justify-content: space-between;
  max-width: 880px;
  margin: 22px auto 0;
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 0 6px;
}
.seg-scale span { display: inline-flex; align-items: center; gap: 5px; }

.mode-panel { display: none; }
.mode-panel-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}
.mode-panel-inner > * { min-width: 0; }
.mode-copy h3 { font-size: clamp(24px, 2.8vw, 30px); margin-bottom: 12px; }
.mode-copy p { color: var(--text-muted); font-size: 16.5px; margin-bottom: 14px; text-wrap: pretty; }
.mode-copy .example {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-m);
  background: var(--accent-soft);
  color: var(--text);
}
.mode-copy .example svg { width: 16px; height: 16px; }
.mode-copy .example b { color: var(--accent); }

/* Мокап слайдерів Peek (як ModeEditor у продукті: хвилини доступу / години блоку) —
   справжні input[type=range], рухаються мишею/пальцем; значення поруч лишаються
   статичними (без JS — це демонстрація, а не реальні налаштування). */
.peek-slider {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-l);
  background: var(--surface-2);
}
.ps-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.ps-row .ps-val { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.ps-range {
  display: block;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: grab;
}
.ps-range:active { cursor: grabbing; }
.ps-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(to right, var(--accent) var(--w), var(--surface-sunken) var(--w));
}
.ps-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--surface-3);
  box-shadow: 0 0 0 3px var(--accent);
}
.ps-range::-moz-range-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--surface-sunken);
}
.ps-range::-moz-range-progress {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
}
.ps-range::-moz-range-thumb {
  width: 16px; height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--surface-3);
  box-shadow: 0 0 0 3px var(--accent);
}
.ps-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-full); }

#m-friction:checked ~ .seg label[for="m-friction"],
#m-peek:checked ~ .seg label[for="m-peek"],
#m-budget:checked ~ .seg label[for="m-budget"],
#m-always:checked ~ .seg label[for="m-always"] {
  background: var(--surface-3);
  color: var(--text);
}
#m-friction:checked ~ .mode-panels .mode-panel[data-mode="friction"],
#m-peek:checked ~ .mode-panels .mode-panel[data-mode="peek"],
#m-budget:checked ~ .mode-panels .mode-panel[data-mode="budget"],
#m-always:checked ~ .mode-panels .mode-panel[data-mode="always"] { display: block; }
.modes-ctl input:focus-visible ~ .seg label { outline: none; }
#m-friction:focus-visible ~ .seg label[for="m-friction"],
#m-peek:focus-visible ~ .seg label[for="m-peek"],
#m-budget:focus-visible ~ .seg label[for="m-budget"],
#m-always:focus-visible ~ .seg label[for="m-always"] { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Розклад — навмисно тихіший за режими: без плашки/акцентного фону, великий
   відступ і тонкий розділювач зверху, щоб читався як окремий шар поверх
   режиму, а не частина панелі Peek. */
.schedule-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--surface-sunken);
  font-size: 14.5px;
  color: var(--text-dim);
}
.schedule-note b { color: var(--text-muted); }
.schedule-note svg { width: 24px; height: 24px; color: var(--text-dim); }
.sched-bar {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 2px;
  margin-top: 8px;
  height: 8px;
}
.sched-bar i { border-radius: 2px; background: color-mix(in oklab, var(--text) 14%, transparent); }
.sched-bar i.on { background: var(--accent); }

/* ─── 6 · Галерея блок-сторінок ────────────────────────────────────── */

.gallery { padding-bottom: 96px; }
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(440px, 82vw);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--bleed);
  padding: 4px var(--bleed) 18px;
  margin: 0 calc(-1 * var(--bleed));
  scrollbar-width: thin;
  scrollbar-color: var(--surface-sunken) transparent;
}
.strip > * { scroll-snap-align: start; }
.shot-card { display: flex; flex-direction: column; gap: 10px; }
.shot-card .frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1200 / 829;
  background: var(--surface-1);
}
.shot-card .frame img { width: 170%; max-width: none; margin-left: -35%; margin-top: -24.2%; }
.shot-card .miniblock { aspect-ratio: 1200 / 829; }
.shot-card .miniblock .mb-inner { padding: 26px 26px 22px; height: 100%; justify-content: center; gap: 10px; }
.shot-card .mb-logo { width: 26px; height: 26px; }
.shot-card .mb-name { font-size: 20px; }
.shot-card .mb-head { gap: 6px; }
.shot-card .mb-bubble { padding: 10px 14px 8px; }
.shot-card .mb-phrase { font-size: 13.5px; }
.shot-card .mb-attempts { font-size: 11px; }
.shot-card .mb-attempts b { font-size: 13px; }
.shot-card .statecard { padding: 14px 18px; gap: 14px; }
.shot-card .statecard .lock { width: 30px; height: 30px; }
.shot-card .sc-big { font-size: 30px; }
.shot-card .sc-label, .shot-card .sc-sub { font-size: 11.5px; }
.shot-card .sc-title { font-size: 15px; }

/* ─── 7 · YouTube (окрема панель — «другий продукт у коробці») ──────── */

.yt-panel {
  background: var(--surface-2);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
}
.yt-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.yt-copy, .yt-shot { min-width: 0; }
.yt-copy h2 { margin-bottom: 16px; }
.yt-copy p { color: var(--text-muted); font-size: 17px; text-wrap: pretty; }
.yt-copy .yt-lead-strong { color: var(--text); font-weight: 500; margin-top: 6px; }
.yt-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  color: var(--text-muted);
  margin-bottom: 18px;
}
.yt-tag svg { width: 16px; height: 16px; color: #ff0000; }
.yt-shot .browser { margin-top: 0; }
.music-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  font-size: 13.5px;
  color: var(--text-muted);
}
.music-note svg { width: 16px; height: 16px; color: var(--accent); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--accent); border-radius: 2px; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 60%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.eq i:nth-child(3) { height: 40%; animation-delay: 0.4s; }
.eq i:nth-child(4) { height: 80%; animation-delay: 0.1s; }
@keyframes eq { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.45); } }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; } }

/* ─── 3 · Бенто «Що ще вміє» (перенесено вище, коротший текст у плитках) ── */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(210px, auto);
  gap: 14px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius-l);
  background: var(--surface-2);
  overflow: hidden;
  min-width: 0;
}
.tile h3 { font-size: 17px; }
.tile p { font-size: 14px; color: var(--text-muted); text-wrap: pretty; }
.tile .ui { margin-top: auto; padding-top: 14px; }
.tile.w2 { grid-column: span 2; }
.tile.h2 { grid-row: span 2; }
/* широкі плитки: текст ліворуч, шматок UI праворуч */
.tile.w2 {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  grid-template-rows: auto 1fr;
  column-gap: 22px;
  align-items: start;
}
.tile.w2 .ui { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-top: 0; padding-top: 0; }

/* мокапи всередині плиток */
.ui-overlay {
  position: relative;
  height: 150px;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface-1);
}
.ui-overlay .under {
  position: absolute; inset: 0;
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  filter: blur(1.5px);
  opacity: 0.7;
}
.ui-overlay .under .sk-line { width: 60%; }
.ui-overlay .under .sk-img { height: 60px; }
.ui-overlay .over {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, #FF0069 18%, var(--bg) 60%);
  backdrop-filter: blur(3px);
}
.ui-overlay .over .statecard { --card-bg: #FF0069; --card-ink: #ffffff; padding: 12px 16px; gap: 12px; max-width: 82%; }
.ui-overlay .over .statecard .lock { width: 26px; height: 26px; }
.ui-overlay .over .sc-big { font-size: 24px; }
.ui-overlay .over .sc-label, .ui-overlay .over .sc-sub { font-size: 11px; }

.ui-pill { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ui-pill .pill-timer { position: static; }
.ui-pill .pill-menu { position: static; flex-direction: row; align-items: center; }

.ui-list { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ui-list .row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  background: var(--surface-1);
}
.ui-list .row span:first-child { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-list .row svg { width: 14px; height: 14px; flex: none; }
.ui-list .row .ok { color: var(--ok); font-weight: 600; white-space: nowrap; }
.ui-list .row .wait { color: var(--warn); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

.ui-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-stats div {
  padding: 10px 10px;
  border-radius: var(--radius-s);
  background: var(--surface-1);
  display: flex; flex-direction: column; gap: 2px;
}
.ui-stats b { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; line-height: 1; }
.ui-stats span { font-size: 11.5px; color: var(--text-dim); }
.ui-intent {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  background: var(--surface-1);
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
}

.ui-quotes { display: flex; flex-direction: column; gap: 6px; }
.ui-quotes q {
  quotes: '«' '»';
  display: inline-block;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: var(--radius-m);
  background: var(--surface-1);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13.5px;
}
.ui-quotes q:nth-child(2) { align-self: flex-end; background: var(--accent-soft); }
.ui-quotes small { font-size: 11.5px; color: var(--text-dim); }

.ui-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.ui-logos span {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--surface-1);
  display: inline-flex; align-items: center; justify-content: center;
}
.ui-logos svg { width: 17px; height: 17px; }
.ui-logos .more {
  font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--text-muted);
  width: auto; padding: 0 10px;
}

.ui-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; height: 88px; }
.ui-themes div { border-radius: var(--radius-s); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.ui-themes .light { background: #eef2f7; }
.ui-themes .dark { background: #131315; }
.ui-themes i { display: block; height: 8px; border-radius: 4px; }
.ui-themes .light i { background: #d5dce6; }
.ui-themes .dark i { background: #2a2a30; }
.ui-themes .light i:first-child { background: #3d6b9b; width: 40%; }
.ui-themes .dark i:first-child { background: #629aff; width: 40%; }

.ui-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--text-muted); }
.ui-chips span { padding: 6px 12px; border-radius: var(--radius-full); background: var(--surface-1); font-weight: 500; color: var(--text); }
.ui-chips span.on { background: var(--accent-soft); color: var(--accent); }

.ui-json {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: var(--radius-s);
  background: var(--surface-1);
  white-space: pre;
  overflow: hidden;
}
.ui-json b { color: var(--accent); font-weight: 500; }

/* ─── 8 · FAQ ──────────────────────────────────────────────────────── */

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-list details {
  border-radius: var(--radius-l);
  background: var(--surface-2);
  padding: 0 22px;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-1);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  color: var(--text-muted);
  font-size: 15.5px;
  padding: 0 0 20px;
  max-width: 640px;
  text-wrap: pretty;
}
.faq-list details p b { color: var(--text); }

/* ─── Правова сторінка (privacy.html): вузька колонка простого тексту,
   без hero/секцій-зебр — той самий шрифт/кольори, мінімум власного CSS. */
.legal-section { padding: 48px 0 96px; }
.legal { max-width: 680px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); }
.legal-date { color: var(--text-muted); font-size: 14px; margin: 10px 0 36px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal p, .legal ul { color: var(--text-muted); font-size: 15.5px; text-wrap: pretty; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 1.1em; }
.legal li { margin-bottom: 8px; }
.legal li:last-child { margin-bottom: 0; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--text); }

/* ─── 9 · Фінальний CTA + 10 · футер ─────────────────────────────────── */

.final { padding: 104px 0 96px; }
.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.final h2 { font-size: clamp(30px, 4.4vw, 48px); max-width: 720px; }
.final .section-lead { max-width: 520px; margin-bottom: 30px; }

.footer { padding: 28px 0 96px; } /* низ: 22px відступ + 48px FAB (лист/кава) + зазор, щоб плаваючі кнопки не накривали останній рядок */
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-dim);
}
.footer-links { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-note { width: 100%; font-size: 12.5px; }

/* ─── Адаптив ──────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.w2 { grid-column: span 2; }
  .problem-grid, .yt-grid, .mode-panel-inner { gap: 36px; }
}

@media (max-width: 760px) {
  section { padding: 64px 0; }
  .hero { padding: 0 0 56px; }
  .hero > .wrap { padding-top: 36px; }
  .nav-links { display: none; }
  .hero-stage { margin-top: 40px; }
  /* мобільний вʼюпорт уже вужчий за колонку 34rem — тут нема сенсу в landscape
     aspect-ratio 1200/829 (душить контент по висоті); лишаємо контентну висоту, як була */
  .miniblock.hero-mini { aspect-ratio: auto; }
  .hero-mini .mb-inner { max-width: none; padding: 32px 24px 26px; gap: 12px; }
  .hero-mini .mb-logo { width: 30px; height: 30px; }
  .hero-mini .mb-name { font-size: 22px; }
  .hero-mini .mb-bubble { padding: 14px 16px 12px; }
  .hero-mini .mb-phrase { font-size: 16px; }
  .hero-mini .mb-attempts { font-size: 12px; }
  .hero-mini .mb-attempts b { font-size: 14px; }
  .hero-mini .statecard { padding: 16px 18px; gap: 14px; }
  .hero-mini .statecard .lock { width: 32px; height: 32px; }
  .hero-mini .sc-big { font-size: 32px; }
  .hero-mini .sc-label, .hero-mini .sc-sub { font-size: 12px; }
  .hero-mini .mb-btn { font-size: 12.5px; padding: 8px 14px; }
  .hero-mini .mb-url { font-size: 11px; }
  .hero-popup { position: static; width: min(300px, 78%); margin: 14px auto 0; }
  .hero-popup.is-mock { width: min(320px, 90%); }
  .hero-popup::before { display: none; }
  .zoom img { width: 170%; margin-left: -35%; margin-top: -24.2%; }
  .problem-grid, .yt-grid, .mode-panel-inner { grid-template-columns: 1fr; }
  .problem-illus svg { width: min(100%, 280px); }
  .how-row { grid-template-columns: 1fr; }
  .seg { grid-template-columns: repeat(2, 1fr); }
  .seg::before { display: none; }
  .mode-panel-inner { margin-top: 28px; }
  .schedule-note { grid-template-columns: 1fr; }
  .schedule-note svg { display: none; }
  .strip { grid-auto-columns: min(360px, 84vw); }
  .final { padding: 80px 0 64px; }
  .yt-panel { padding: 36px 22px; }
}

@media (max-width: 520px) {
  :root { --gutter: 18px; }
  .bento { grid-template-columns: 1fr; }
  .tile.w2, .tile.h2 { grid-column: auto; grid-row: auto; }
  .tile.w2 { display: flex; }
  .tile.w2 .ui { margin-top: auto; padding-top: 14px; }
  .ui-stats { grid-template-columns: repeat(3, 1fr); }
  .btn-cta { padding: 14px 22px; font-size: 15px; }
  .mb-inner { padding: 26px 20px 22px; }
  .statecard { padding: 16px 18px; gap: 14px; }
  .sc-big { font-size: 34px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* ─── 6б · Репліки (чіпи) ───────────────────────────────────────────── */

.voice .section-head { margin-bottom: 30px; }
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 880px;
}
.chip {
  padding: 11px 18px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.chip.lvl2 { background: var(--surface-sunken); }
.chip.lvl3 { background: var(--accent-soft); color: var(--accent); }

/* ─── 7б · Порівняння ───────────────────────────────────────────────── */

.cmp-card {
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  padding: 8px 22px 12px;
  overflow: hidden;
}
.cmp {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}
.cmp th, .cmp td {
  text-align: left;
  vertical-align: top;
  padding: 16px 14px;
  border-top: 1px solid var(--bg);
}
.cmp thead th { border-top: 0; padding-top: 18px; padding-bottom: 12px; }
.cmp thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
}
.cmp thead th.us { color: var(--accent); font-size: 17px; display: flex; flex-direction: column; gap: 6px; }
.cmp tbody th {
  font-weight: 500;
  color: var(--text);
  width: 30%;
  padding-left: 0;
  text-wrap: pretty;
}
.cmp td { color: var(--text-muted); text-wrap: pretty; position: relative; padding-left: 40px; }
.cmp td.us { color: var(--text); font-weight: 600; }
/* виділений стовпчик LockyFeed — плоска тональна смуга, «наш підхід» */
.cmp .us {
  background: var(--accent-soft);
}
.cmp thead .us { border-radius: var(--radius-m) var(--radius-m) 0 0; }
.cmp tbody tr:last-child .us { border-radius: 0 0 var(--radius-m) var(--radius-m); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { padding-bottom: 18px; }
.cmp-badge {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* маркери */
.cmp td i {
  position: absolute;
  left: 14px; top: 18px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--surface-1);
}
.cmp td i::before, .cmp td i::after { content: ''; position: absolute; }
.cmp td i.ok { background: var(--accent); }
.cmp td i.ok::before {
  left: 5px; top: 5px; width: 8px; height: 4px;
  border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg);
}
.cmp td i.no::before, .cmp td i.no::after {
  left: 5px; top: 8px; width: 8px; height: 2px; border-radius: 1px; background: var(--text-dim);
}
.cmp td i.no::before { transform: rotate(45deg); }
.cmp td i.no::after { transform: rotate(-45deg); }
.cmp td i.so::before { left: 4px; top: 8px; width: 10px; height: 2px; border-radius: 1px; background: var(--text-dim); }
.cmp td i.na { background: transparent; }
.cmp td i.na::before { left: 5px; top: 8px; width: 8px; height: 2px; border-radius: 1px; background: var(--surface-sunken); }

/* ─── 11 · Лист автора: FAB + попап без JS ──────────────────────────── */

.letter-toggle {
  position: fixed; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; bottom: 0; right: 0; margin: 0;
}
.letter-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px 0 14px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.letter-fab:hover { transform: translateY(-1px); }
.letter-fab svg { width: 20px; height: 20px; }
.letter-toggle:focus-visible ~ .letter-fab { outline: 2px solid var(--text); outline-offset: 3px; }

.letter-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.letter-scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 30, 0.45);
  cursor: pointer;
}
.letter {
  position: relative;
  width: min(640px, 100%);
  max-height: min(90vh, 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 32px 38px 30px;
  border-radius: var(--radius-xl);
  background: var(--surface-3);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.2s ease;
}
.letter .eyebrow { margin-bottom: 8px; }
.letter h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 18px; }
.letter p { font-size: 15px; line-height: 1.62; color: var(--text-muted); text-wrap: pretty; }
.letter p + p { margin-top: 12px; }
.letter .sign {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
}
.letter-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-1);
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.letter-close:hover { color: var(--text); background: var(--surface-sunken); }
.letter-close svg { width: 18px; height: 18px; }
.letter-toggle:checked ~ .letter-modal {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.letter-toggle:checked ~ .letter-modal .letter { transform: none; }
.letter-toggle:checked ~ .letter-fab { opacity: 0; pointer-events: none; }
.footer-letter { cursor: pointer; }
.footer-letter:hover { color: var(--text); }

/* ─── Buy Me a Coffee: дзеркальний FAB зліва, футер-лінк, пілюля в листі ── */

.bmc-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px 0 14px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.bmc-fab:hover { transform: translateY(-1px); }
.bmc-fab svg { width: 20px; height: 20px; }
.bmc-fab:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.footer-bmc { display: inline-flex; align-items: center; gap: 6px; }
.footer-bmc svg { width: 15px; height: 15px; flex: none; }

.letter-bmc {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--surface-1);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.letter-bmc:hover { transform: translateY(-1px); background: var(--surface-sunken); }
.letter-bmc svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .letter-modal, .letter, .letter-fab, .bmc-fab { transition: none; }
}

/* ─── Адаптив нових секцій ──────────────────────────────────────────── */

@media (max-width: 960px) {
  .cmp { font-size: 14px; }
  .cmp th, .cmp td { padding: 14px 10px; }
  .cmp td { padding-left: 36px; }
  .cmp td i { left: 10px; top: 16px; }
}

@media (max-width: 760px) {
  .chip { font-size: 15px; padding: 10px 15px; }
  /* таблиця → картки: рядок = блок, значення з підписом стовпчика */
  .cmp-card { padding: 4px 18px 6px; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp thead { display: none; }
  .cmp tbody tr { padding: 14px 0 16px; border-top: 1px solid var(--bg); }
  .cmp tbody tr:first-child { border-top: 0; }
  .cmp tbody th { width: auto; padding: 0 0 8px; border: 0; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; }
  .cmp td { border: 0; padding: 5px 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
  .cmp td::before { content: attr(data-h); flex: none; width: 84px; font-size: 12.5px; color: var(--text-dim); padding-top: 1px; }
  .cmp .us { background: transparent; box-shadow: none; border: 0; }
  .cmp td.us { border-radius: 0; }
  .cmp tbody tr:last-child .us { border-radius: 0; border-bottom: 0; box-shadow: none; }
  .cmp thead .us { border-top: 0; box-shadow: none; }
  .cmp td.us::before { color: var(--accent); font-weight: 600; }
  .cmp td.us i.ok { width: 16px; height: 16px; box-shadow: none; }
  .cmp td.us i.ok::before { left: 4px; top: 4px; width: 6px; height: 3px; border-left-width: 2px; border-bottom-width: 2px; }
  .cmp td { padding-left: 0; }
  .cmp td i { position: relative; left: auto; top: 3px; flex: none; width: 16px; height: 16px; margin: 0; }
  .cmp td i.ok::before { top: 4px; left: 4px; width: 6px; height: 3px; }
  .cmp td i.no::before, .cmp td i.no::after, .cmp td i.na::before { left: 4px; top: 7px; width: 8px; }
  .cmp td i.so::before { left: 3px; top: 7px; width: 10px; }
  .cmp td:has(> i.na) { display: none; } /* «—» у колонці «Сила волі» на мобільному не показуємо */
  .cmp tbody tr:last-child th, .cmp tbody tr:last-child td { padding-bottom: 5px; }
  .cmp tbody tr:last-child { padding-bottom: 14px; }
  .letter-fab { right: 16px; bottom: 16px; height: 46px; padding: 0 14px 0 13px; }
  .bmc-fab { left: 16px; bottom: 16px; height: 46px; padding: 0 14px 0 13px; }
  .letter-modal { padding: 12px; align-items: end; }
  .letter { padding: 28px 22px 26px; max-height: 88vh; border-radius: var(--radius-xl) var(--radius-xl) var(--radius-l) var(--radius-l); }
  .letter p { font-size: 15px; }
}

@media (max-width: 520px) {
  .letter-fab span, .bmc-fab span { display: none; }
  .letter-fab, .bmc-fab { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
}
