/* ============================================================
 * Manrope (self-hosted, variable 400-800, cyrillic + latin subsets)
 * Скопировано из sonarai.ru build (Astro Fonts API). unicode-range и
 * font-display подсмотрены в dist/index.html.
 * ============================================================ */
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-cyrillic.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
 * JetBrains Mono (self-hosted, моно-акценты: секции Security и Footer)
 * ============================================================ */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
 * tokens.css (1:1)
 * ============================================================ */
/* =============================================================
 * Сонар — design tokens (R9 redesign)
 *
 * Источник палитры: handoff/index.html, handoff/assets/theme.css.
 * Light theme — на :root, dark theme — через [data-theme="dark"].
 *
 * Структура:
 *   1. New tokens (handoff)  — основа для нового лендинга
 *   2. Compat aliases        — мапим старые имена (--accent/--text/etc.)
 *                              в новые, чтобы ArticleLayout/LegalLayout
 *                              и существующие .mdx статьи не сломались
 *                              до отдельной R10-итерации
 *   3. Infrastructure        — spacing (4pt), motion, fs-/lh-/ls-, shadows,
 *                              container, anchor-scroll-offset, article
 *                              measure, focus-ring, breakpoints, z-index,
 *                              form-control sizes — НЕ меняется
 *   4. Dark theme overrides
 *   5. auto-dark / reduce-motion / reduce-transparency / forced-colors
 * ============================================================= */

/* ----------------------------------------------------------------
 * 1. LIGHT THEME — handoff tokens (default :root)
 * ---------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg:            #f4f1fa;
  --bg-soft:       #faf8ff;
  --surface:       #ffffff;
  --surface-2:     #f6f4fc;

  /* Ink (text) */
  --ink:           #14121f;
  --ink-2:         #3b3848;
  --ink-3:         #6b6878;
  --ink-4:         #9a98a8;

  /* Lines / hairlines */
  --line:          rgba(20,18,31,0.08);

  /* Brand */
  --brand:         #7B5CF5;
  --brand-2:       #8b6df0;
  --brand-soft:    #ece8ff;
  --brand-soft-2:  #f3effd;
  --brand-ink:     #4a3bd4;

  /* Gradients (accent) */
  --grad-pink:     #c668e8;
  --grad-blue:     #5a72f0;
  --rec-red:       #ff3b30;

  /* Radii (new naming) */
  --radius-sm:     10px;
  --radius:        16px;
  --radius-lg:     24px;
  --radius-xl:     32px;

  /* Shadows (new) */
  --shadow-card:   0 2px 4px rgba(20,18,31,.04), 0 8px 24px rgba(20,18,31,.06);
  --shadow-cta:    0 8px 20px rgba(111,92,240,.35);
  --shadow-phone:  0 30px 80px -10px rgba(80,50,180,.25), 0 8px 30px rgba(20,18,31,.12);

  /* ----------------------------------------------------------------
   * 2. COMPAT ALIASES — старые имена → новые
   *    Нужны для ArticleLayout/LegalLayout и legacy/.
   *    Удаляются в R10 при переделке шаблонов статьи.
   * ---------------------------------------------------------------- */
  --bg-elev:           var(--surface);
  --surface-strong:    var(--surface);
  --surface-quiet:     var(--surface-2);
  --border:            var(--line);
  --border-strong:     rgba(20,18,31,0.14);
  --hairline:          rgba(20,18,31,0.04);

  --text:              var(--ink);
  --text-secondary:    var(--ink-2);
  --text-tertiary:     var(--ink-3);

  --accent:            var(--brand);
  --accent-strong:     var(--brand-ink);
  --accent-hover:      var(--brand-2);
  --accent-pressed:    #3a2dc0;
  --accent-soft:       var(--brand-soft);
  --accent-tint:       var(--brand-soft-2);
  --accent-glow:       rgba(111, 92, 240, 0.28);
  --on-accent:         #FFFFFF;

  /* Semantic — оставляем как было, цвета handoff не описывает */
  --success:           #16A34A;
  --success-strong:    #0E6E33;
  --success-soft:      #DCFCE7;
  --warning:           #EAB308;
  --warning-strong:    #92400E;
  --warning-soft:      #FEF9C3;
  --error:             var(--rec-red);
  --error-soft:        #FEE2E2;
  --info:              var(--grad-blue);
  --info-soft:         #DBEAFE;

  /* Compat: старые grad-* для ArticleLayout */
  --grad-brand:        linear-gradient(135deg, #7B5CF5 0%, #8b6df0 50%, #c668e8 100%);
  --grad-brand-soft:   linear-gradient(135deg, rgba(111,92,240,0.12) 0%, rgba(198,104,232,0.10) 100%);
  --grad-mark:         linear-gradient(135deg, #7B5CF5 0%, #8b6df0 100%);
  --grad-headline:     linear-gradient(180deg, #14121f 0%, #4a3bd4 100%);
  --grad-popular:      linear-gradient(135deg, #7B5CF5, #8b6df0, #c668e8);

  /* Compat: legacy radii (используются в _legacy + ArticleLayout) */
  --r-sm:              8px;
  --r-md:              14px;
  --r-lg:              20px;
  --r-xl:              28px;
  --r-2xl:             36px;
  --r-pill:            999px;

  /* Compat: legacy shadows */
  --shadow-1:          0 1px 2px rgba(20,18,31,.04), 0 8px 32px rgba(20,18,31,.06);
  --shadow-2:          0 1px 3px rgba(20,18,31,.06), 0 16px 48px rgba(20,18,31,.10);
  --shadow-3:          0 2px 6px rgba(20,18,31,.08), 0 28px 72px rgba(20,18,31,.14);
  --shadow-glass:      0 1px 0 rgba(255,255,255,0.7) inset,
                       0 1px 2px rgba(20,18,31,0.04),
                       0 12px 40px rgba(20,18,31,0.08);
  --shadow-focus:      0 0 0 3px rgba(111, 92, 240, 0.32);

  /* ----------------------------------------------------------------
   * 3. INFRASTRUCTURE — не меняется при дизайн-итерациях
   * ---------------------------------------------------------------- */

  /* Spacing — 4pt scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;
  --s-32: 128px;

  /* Motion — durations */
  --t-fast: 200ms;
  --t-med:  320ms;
  --t-slow: 480ms;

  /* Motion — easing */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.42, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography — families */
  --font-sans:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Typography — size scale (px) */
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-17: 17px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-32: 32px;
  --fs-44: 44px;
  --fs-56: 56px;
  --fs-72: 72px;

  /* Typography — line-heights */
  --lh-display: 1.08;
  --lh-h1: 1.10;
  --lh-h2: 1.18;
  --lh-h3: 1.28;
  --lh-body: 1.55;
  --lh-ui: 1.4;
  --lh-mono: 1.5;

  /* Typography — letter-spacing */
  --ls-display: -0.025em;
  --ls-h1: -0.02em;
  --ls-h2: -0.015em;
  --ls-body: 0;
  --ls-ui-small: 0.01em;

  /* Layout — container */
  --container-max: 1240px;        /* handoff: 1240px (R9 was 1200px) */
  --container-px: 24px;
  --container-px-md: 32px;
  --container-px-lg: 32px;        /* handoff использует 32px на desktop */

  /* Z-index */
  --z-base: 1;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* Form-control */
  --control-h: 48px;
  --control-h-sm: 36px;
  --control-h-lg: 56px;

  /* Article (для ArticleLayout) */
  --article-measure: clamp(720px, 55vw, 880px);
  --article-lh: 1.75;
  --toc-width: 240px;

  /* Anchor scroll-offset (sticky-nav height compensation) */
  --anchor-scroll-offset: 80px;
}

/* ----------------------------------------------------------------
 * 4. DARK THEME — [data-theme="dark"] (handoff palette)
 * ---------------------------------------------------------------- */
[data-theme="dark"] {
  --bg:            #0d0a1c;
  --bg-soft:       #15131f;
  --surface:       #1a1730;
  --surface-2:     #221f3a;

  --ink:           #f4f1ff;
  --ink-2:         #c8c5d8;
  --ink-3:         #9a98a8;
  --ink-4:         #6b6878;

  --line:          rgba(255,255,255,0.08);

  --brand:         #7B5CF5;
  --brand-2:       #a884ff;
  --brand-soft:    rgba(139,109,240,0.18);
  --brand-soft-2:  rgba(139,109,240,0.10);
  --brand-ink:     #b8a8ff;

  --shadow-card:   0 2px 4px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --shadow-cta:    0 8px 20px rgba(139,109,240,.45);
  --shadow-phone:  0 30px 80px -10px rgba(0,0,0,.6), 0 8px 30px rgba(0,0,0,.4);

  /* Compat aliases — auto-recompute через var() */
  --border-strong:     rgba(255,255,255,0.14);
  --hairline:          rgba(255,255,255,0.06);
  --accent-pressed:    #6e58e0;
  --accent-glow:       rgba(139,109,240,0.45);

  --success:           #22C55E;
  --success-strong:    #4ADE80;
  --success-soft:      rgba(22,163,74,0.16);
  --warning:           #FBBF24;
  --warning-strong:    #FDE68A;
  --warning-soft:      rgba(234,179,8,0.14);
  --error:             #F87171;
  --error-soft:        rgba(220,38,38,0.16);
  --info:              #60A5FA;
  --info-soft:         rgba(59,124,232,0.14);

  --grad-brand:        linear-gradient(135deg, #8888FF 0%, #A78BFA 50%, #F472B6 100%);
  --grad-brand-soft:   linear-gradient(135deg, rgba(136,136,255,0.18) 0%, rgba(244,114,182,0.12) 100%);
  --grad-mark:         linear-gradient(135deg, #8888FF 0%, #A78BFA 100%);
  --grad-headline:     linear-gradient(180deg, #f4f1ff 0%, #a0a0ff 100%);
  --grad-popular:      linear-gradient(135deg, #8888FF, #A78BFA, #F472B6);

  --shadow-1:          0 1px 2px rgba(0,0,0,0.6), 0 12px 40px rgba(0,0,0,0.4);
  --shadow-2:          0 1px 3px rgba(0,0,0,0.7), 0 24px 60px rgba(0,0,0,0.5);
  --shadow-3:          0 2px 6px rgba(0,0,0,0.8), 0 36px 96px rgba(0,0,0,0.6);
  --shadow-glass:      0 1px 0 rgba(255,255,255,0.08) inset,
                       0 1px 2px rgba(0,0,0,0.6),
                       0 16px 48px rgba(0,0,0,0.4);
  --shadow-focus:      0 0 0 3px rgba(139,109,240,0.45);
}

/* ----------------------------------------------------------------
 * 5. AUTO DARK — если пользователь не выбирал тему явно
 * ---------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0d0a1c;
    --bg-soft:       #15131f;
    --surface:       #1a1730;
    --surface-2:     #221f3a;

    --ink:           #f4f1ff;
    --ink-2:         #c8c5d8;
    --ink-3:         #9a98a8;
    --ink-4:         #6b6878;

    --line:          rgba(255,255,255,0.08);

    --brand:         #7B5CF5;
    --brand-2:       #a884ff;
    --brand-soft:    rgba(139,109,240,0.18);
    --brand-soft-2:  rgba(139,109,240,0.10);
    --brand-ink:     #b8a8ff;

    --shadow-card:   0 2px 4px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --shadow-cta:    0 8px 20px rgba(139,109,240,.45);

    --grad-mark:     linear-gradient(135deg, #8888FF 0%, #A78BFA 100%);
    --grad-headline: linear-gradient(180deg, #f4f1ff 0%, #a0a0ff 100%);
  }
}

/* ----------------------------------------------------------------
 * 6. REDUCE-MOTION
 * ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0ms;
    --t-med: 0ms;
    --t-slow: 0ms;
  }
  *, *::before, *::after {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------------------------------
 * 7. REDUCE-TRANSPARENCY — solid-fill вместо backdrop-filter
 * ---------------------------------------------------------------- */
@media (prefers-reduced-transparency: reduce) {
  :root {
    --surface:       #ffffff;
    --surface-2:     #f6f4fc;
  }
  [data-theme="dark"] {
    --surface:       #1a1730;
    --surface-2:     #221f3a;
  }
}

/* ----------------------------------------------------------------
 * 8. HIGH-CONTRAST (Windows / forced-colors)
 * ---------------------------------------------------------------- */
@media (forced-colors: active) {
  :root {
    --brand:   CanvasText;
    --accent:  CanvasText;
    --line:    CanvasText;
    --border:  CanvasText;
    --ink:     CanvasText;
    --text:    CanvasText;
    --bg:      Canvas;
  }
}

/* ============================================================
 * landing.css (1:1)
 * ============================================================ */
/* =============================================================
 * Сонар — landing base styles (R9 redesign)
 *
 * Глобальные классы лендинга: .page (фон), .container, .btn*,
 * .icon-btn, theme transitions, sun/moon swap для ThemeToggle.
 * Секционные стили — scoped в .astro компонентах sections/*.
 *
 * Источник: handoff/index.html (inline <style>) + handoff/assets/theme.css.
 * Импортируется один раз в Layout.astro.
 * ============================================================= */

/* ----------------------------------------------------------------
 * PAGE BACKGROUND — soft lavender → pink wash (light)
 * Dark вариант — в конце файла, [data-theme="dark"].
 * ---------------------------------------------------------------- */
.page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%,   rgba(220,180,255,.55) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 30%,    rgba(190,180,255,.45) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(255,210,230,.55) 0%, transparent 60%),
    linear-gradient(180deg, #f8f5ff 0%, #fbf6f9 100%);
}

/* ----------------------------------------------------------------
 * CONTAINER
 * ---------------------------------------------------------------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
}

/* ----------------------------------------------------------------
 * BUTTONS
 * ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 12px 22px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
  color: var(--ink);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: var(--brand-ink);
  transform: translateY(-1px);
}
.btn-primary-lg {
  padding: 16px 28px;
  font-size: 16px;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover {
  color: var(--brand);
}

.btn-ghost-purple {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.btn-ghost-purple:hover {
  background: var(--brand-soft-2);
}

[data-theme="dark"] .btn-secondary {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
[data-theme="dark"] .btn-secondary:hover {
  background: var(--surface);
}
[data-theme="dark"] .btn-ghost-purple {
  background: rgba(255,255,255,.06);
  color: var(--brand-ink);
  box-shadow: inset 0 0 0 1px rgba(139,109,240,.35);
}
[data-theme="dark"] .btn-ghost-purple:hover {
  background: rgba(255,255,255,.12);
}

/* ----------------------------------------------------------------
 * ICON BUTTON (theme toggle, etc.)
 * ---------------------------------------------------------------- */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.icon-btn:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

/* ----------------------------------------------------------------
 * THEME TOGGLE — sun/moon icon swap
 * ---------------------------------------------------------------- */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ----------------------------------------------------------------
 * SMOOTH THEME TRANSITION
 * ---------------------------------------------------------------- */
html, body, .page, .nav, .hero-demo,
.proof-card, .savings-card, .plat-card, .plat-devices-card,
.pr-card, .post, .feat, .uc, .feature, .howto-step,
.pipe-step, .src-tile, .pr-faq-item, .author-bio, .article-body,
.icon-btn, .nav-burger, .btn {
  transition: background-color .25s ease, color .25s ease,
              border-color .25s ease, box-shadow .25s ease;
}

/* ----------------------------------------------------------------
 * DARK PAGE BACKGROUND
 * ---------------------------------------------------------------- */
[data-theme="dark"] .page {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%,   rgba(139,109,240,.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 30%,    rgba(90,114,240,.14)  0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(198,104,232,.12) 0%, transparent 60%),
    linear-gradient(180deg, #0d0a1c 0%, #15131f 100%);
}
[data-theme="dark"] body { background: #0d0a1c; }

/* ----------------------------------------------------------------
 * REDUCE-MOTION — отключить page-load transitions
 * ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html, body, .page, .nav, .hero-demo, .btn, .icon-btn {
    transition: none !important;
  }
  .btn-primary:hover { transform: none !important; }
}

/* ============================================================
 * Layout.astro <style is:global> (reset/base)
 * ============================================================ */
/* ------ Resets / base ------ */
  *,
  *::before,
  *::after { box-sizing: border-box; }

  html, body { margin: 0; padding: 0; }

  html {
    scroll-behavior: smooth;
    background: var(--bg);
  }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--fs-17);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin: 0;
    color: var(--text);
  }

  a { color: var(--accent); text-decoration: none; }
  a:hover { color: var(--accent-hover); }

  :focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
    border-radius: 4px;
  }

  /* R9: .page фон описан в src/styles/landing.css (импортируется ниже) */

/* ============================================================
 * Nav.astro
 * ============================================================ */
.nav-wrap { padding: 24px 32px 0; }
  .nav {
    max-width: 1240px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 999px;
    padding: 12px 12px 12px 20px;
    display: flex;
    align-items: center;
    gap: 32px;
    box-shadow: 0 1px 2px rgba(20,18,31,.04), 0 8px 24px rgba(20,18,31,.04);
  }
  .nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
  }
  .nav-logo .dot { color: var(--brand); }
  .nav-logo-mark {
    width: 38px; height: 38px; border-radius: 11px;
    display: block;
    box-shadow: 0 4px 12px rgba(111,92,240,.35);
    object-fit: cover;
  }
  .nav-links {
    display: flex; gap: 28px;
    list-style: none; margin: 0 0 0 16px; padding: 0;
  }
  .nav-links a {
    color: var(--ink-2); text-decoration: none;
    font-weight: 500; font-size: 15px;
    white-space: nowrap;
    transition: color .15s;
  }
  .nav-links a:hover { color: var(--brand); }

  /* Тихая «Войти» — для вернувшихся; яркая кнопка рядом ведёт туда же. */
  .nav-login {
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    padding: 8px 6px;
    transition: color .15s;
  }
  .nav-login:hover { color: var(--brand); }

  .nav-spacer { flex: 1; }
  .nav-burger { display: none; }
  .nav-menu   { display: none; }

  /* dark — surface inherits from tokens */
  [data-theme="dark"] .nav {
    background: var(--surface);
  }

  /* ---------- Tablet / smaller desktop ≤1024px ---------- */
  @media (max-width: 1024px) {
    .nav-links { display: none; }
  }

  /* ---------- Mobile ≤720px ---------- */
  @media (max-width: 720px) {
    .nav-wrap { padding: 16px 16px 0; }
    .nav {
      position: relative;
      flex-wrap: wrap;
      row-gap: 0;
      padding: 8px 8px 8px 14px;
      gap: 12px;
    }
    .nav-logo span:first-of-type { font-size: 16px; }
    .nav-logo-mark { width: 32px; height: 32px; border-radius: 9px; }
    .nav .btn-primary { display: none; }
    .nav-login { display: none; }
    .nav .icon-btn { width: 38px; height: 38px; }

    .nav-burger {
      display: grid;
      place-items: center;
      width: 40px; height: 40px;
      border-radius: 50%;
      background: var(--surface-2);
      border: 0;
      color: var(--ink-2);
      cursor: pointer;
      flex-shrink: 0;
    }
    .nav-links { display: none !important; }

    .nav-menu {
      display: block;
      width: 100%;
      flex-basis: 100%;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      padding: 0;
      transition: max-height .3s cubic-bezier(.22,.61,.36,1), opacity .25s ease, padding .3s ease;
      position: static;
      box-shadow: none;
      background: transparent;
    }
    .nav.is-open .nav-menu {
      max-height: 600px !important;
      opacity: 1;
      padding: 14px 4px 4px;
    }
    .nav-menu-inner {
      background: var(--surface-2);
      border-radius: 18px;
      padding: 10px;
    }
    .nav-menu ul {
      list-style: none; padding: 0; margin: 0;
      display: flex; flex-direction: column;
    }
    .nav-menu a {
      display: block;
      padding: 14px 16px;
      color: var(--ink);
      text-decoration: none;
      font-size: 15px; font-weight: 600;
      border-radius: 12px;
      transition: background .15s, color .15s;
    }
    .nav-menu a:hover, .nav-menu a:active {
      background: #fff;
      color: var(--brand);
    }
    .nav-menu .nav-menu-divider {
      height: 1px;
      background: var(--line);
      margin: 6px 4px;
      list-style: none;
    }
    .nav-menu .nav-menu-cta { margin-top: 6px; }
    .nav-menu .nav-menu-cta a {
      background: var(--brand);
      color: #fff;
      text-align: center;
      box-shadow: 0 4px 12px rgba(111,92,240,.3);
    }
    .nav-menu .nav-menu-cta a:hover {
      background: var(--brand-ink);
      color: #fff;
    }
    .nav-burger .nav-burger-x { display: none; }
    .nav.is-open .nav-burger .nav-burger-bars { display: none; }
    .nav.is-open .nav-burger .nav-burger-x    { display: block; }

    [data-theme="dark"] .nav-burger,
    [data-theme="dark"] .nav-menu-inner {
      background: var(--surface-2);
    }
    [data-theme="dark"] .nav-menu a:hover {
      background: var(--surface);
      color: var(--brand-ink);
    }
  }

/* ============================================================
 * Hero.astro
 * ============================================================ */
.hero {
    padding: 60px 32px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    max-width: 1240px;
    margin: 0 auto;
    align-items: start;
  }
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-text > * { width: 100%; }
  .hero-text .hero-eyebrow,
  .hero-text .hero-devices,
  .hero-text .hero-cta-row { width: auto; }
  .hero-demo { width: 100%; }

  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--brand-soft);
    color: var(--brand-ink);
    padding: 7px 16px 7px 10px;
    border-radius: 999px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    margin-bottom: 24px;
  }
  .hero-eyebrow .eb-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(111,92,240,.18);
    flex-shrink: 0;
  }
  .hero-eyebrow b { font-weight: 700; color: var(--brand-ink); }

  .hero-devices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 26px;
  }
  .hero-device {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 10px 16px 10px 12px;
    border-radius: 14px;
    transition: background .15s, border-color .15s, transform .15s;
  }
  .hero-device:hover {
    background: var(--brand-soft-2);
    border-color: rgba(111,92,240,.3);
    transform: translateY(-1px);
  }
  .hero-device-ico {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .hero-device-text {
    display: flex; flex-direction: column;
    line-height: 1.15;
  }
  .hero-device-name {
    font-size: 13px; font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
  }
  .hero-device-cap {
    font-size: 11px; color: var(--ink-3);
    margin-top: 1px;
  }

  h1.hero-title {
    font-size: clamp(48px, 5.2vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin: 0 0 22px;
    color: var(--ink);
    text-wrap: balance;
  }
  .hero-title .gradient {
    background: linear-gradient(95deg, var(--grad-blue) 0%, var(--brand) 40%, var(--grad-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .hero-sub {
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 52ch;
    margin: 0 0 26px;
  }
  .hero-sub strong { font-weight: 700; color: var(--brand); }

  .hero-cta-row {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-bottom: 12px;
  }

  .hero-appstore {
    margin: 0;
    font-size: 14px;
  }
  .hero-appstore a {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--ink-3);
    font-weight: 600;
    text-decoration: none;
    transition: color .15s;
  }
  .hero-appstore a:hover { color: var(--brand); }

  /* hero-demo card */
  .hero-demo {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 22px 24px 20px;
    box-shadow:
      0 2px 4px rgba(20,18,31,.04),
      0 24px 60px -12px rgba(80,50,180,.18),
      0 8px 20px rgba(20,18,31,.06);
    display: flex; flex-direction: column;
    min-height: 460px;
    overflow: hidden;
  }
  .hero-demo::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 50% at 100% 0%, rgba(198,104,232,.10) 0%, transparent 60%);
    pointer-events: none; border-radius: inherit;
  }
  .hero-demo > * { position: relative; z-index: 1; }

  .demo-bar {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
  }
  .demo-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 0 0 rgba(255,59,48,.6);
    animation: rec-pulse 1.6s ease-out infinite;
  }
  @keyframes rec-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,59,48,.5); }
    70%  { box-shadow: 0 0 0 8px rgba(255,59,48,0);  }
    100% { box-shadow: 0 0 0 0 rgba(255,59,48,0);    }
  }
  .demo-label {
    font-size: 13px; font-weight: 600;
    color: var(--ink-2);
    letter-spacing: 0.02em;
  }
  .demo-timer {
    font-family: var(--font-sans);
    font-size: 13px; font-weight: 600;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
    margin-left: 2px;
  }
  .demo-mini-wave {
    margin-left: auto;
    display: flex; align-items: center; gap: 2px;
    height: 22px; width: 130px;
  }
  .demo-mini-wave span {
    flex: 1;
    height: 100%;
    background: var(--brand);
    border-radius: 100px;
    opacity: .85;
    transform-origin: center;
    animation: mini-wave 1.2s ease-in-out infinite;
  }
  .demo-mini-wave span:nth-child(odd) { opacity: .45; }
  @keyframes mini-wave {
    0%, 100% { transform: scaleY(.25); }
    50%      { transform: scaleY(1); }
  }
  .demo-mini-wave span:nth-child(1)  { animation-delay: 0.00s; }
  .demo-mini-wave span:nth-child(2)  { animation-delay: 0.06s; }
  .demo-mini-wave span:nth-child(3)  { animation-delay: 0.12s; }
  .demo-mini-wave span:nth-child(4)  { animation-delay: 0.18s; }
  .demo-mini-wave span:nth-child(5)  { animation-delay: 0.24s; }
  .demo-mini-wave span:nth-child(6)  { animation-delay: 0.30s; }
  .demo-mini-wave span:nth-child(7)  { animation-delay: 0.36s; }
  .demo-mini-wave span:nth-child(8)  { animation-delay: 0.42s; }
  .demo-mini-wave span:nth-child(9)  { animation-delay: 0.48s; }
  .demo-mini-wave span:nth-child(10) { animation-delay: 0.10s; }
  .demo-mini-wave span:nth-child(11) { animation-delay: 0.16s; }
  .demo-mini-wave span:nth-child(12) { animation-delay: 0.22s; }
  .demo-mini-wave span:nth-child(13) { animation-delay: 0.28s; }
  .demo-mini-wave span:nth-child(14) { animation-delay: 0.34s; }
  .demo-mini-wave span:nth-child(15) { animation-delay: 0.40s; }
  .demo-mini-wave span:nth-child(16) { animation-delay: 0.46s; }
  .demo-mini-wave span:nth-child(17) { animation-delay: 0.08s; }
  .demo-mini-wave span:nth-child(18) { animation-delay: 0.14s; }
  .demo-mini-wave span:nth-child(19) { animation-delay: 0.20s; }
  .demo-mini-wave span:nth-child(20) { animation-delay: 0.26s; }

  .demo-body {
    flex: 1;
    min-height: 280px;
    display: flex; flex-direction: column;
  }
  .demo-transcript {
    display: flex; flex-direction: column; gap: 14px;
    font-size: 15px; line-height: 1.5;
    color: var(--ink);
    flex: 1;
  }
  /* JS-вставленные элементы транскрипта —  обязателен,
     иначе Astro scope селекторы не сработают на динамически созданных
     элементах через document.createElement(). */
  .demo-line {
    display: flex; gap: 12px;
    opacity: 0;
    transform: translateY(6px);
    animation: line-in .35s cubic-bezier(.22,.61,.36,1) forwards;
  }
  @keyframes line-in {
    to { opacity: 1; transform: translateY(0); }
  }
  .demo-avatar {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid; place-items: center;
    color: #fff;
    font-size: 11px; font-weight: 700;
    font-family: var(--font-sans);
    margin-top: 2px;
  }
  .demo-speaker-a .demo-avatar { background: var(--brand); }
  .demo-speaker-b .demo-avatar { background: #c668e8; }
  .demo-speaker-a .demo-name   { color: var(--brand); }
  .demo-speaker-b .demo-name   { color: #a13fc4; }
  .demo-line-body { flex: 1; min-width: 0; }
  .demo-name {
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
  }
  .demo-text {
    color: var(--ink-2);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
  }
  .demo-text .term {
    background: linear-gradient(180deg, transparent 55%, rgba(111,92,240,.22) 55%);
    color: var(--ink);
    padding: 0 2px;
    font-weight: 600;
  }
  .demo-caret {
    display: inline-block;
    width: 2px; height: 1em;
    background: var(--brand);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: caret-blink 1s steps(1) infinite;
  }
  @keyframes caret-blink {
    50% { opacity: 0; }
  }

  .demo-foot {
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--ink-3);
  }
  .demo-foot-ico { color: var(--brand); display: grid; place-items: center; }

  /* dark theme — hero-demo card surface */
  [data-theme="dark"] .hero-demo,
  [data-theme="dark"] .hero-device {
    background: var(--surface);
    border-color: var(--line);
  }
  [data-theme="dark"] .hero-device:hover {
    background: var(--brand-soft);
    border-color: rgba(139,109,240,.5);
  }
  [data-theme="dark"] .btn-secondary {
    background: var(--surface-2);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  [data-theme="dark"] .demo-text { color: var(--ink-2); }
  [data-theme="dark"] .demo-label { color: var(--ink-2); }
  [data-theme="dark"] .demo-timer { color: var(--ink-3); }

  /* ---------- Tablet ≤1024px ---------- */
  @media (max-width: 1024px) {
    .hero {
      grid-template-columns: 1fr;
      gap: 48px;
      padding-top: 40px;
    }
  }

  /* ---------- Mobile ≤720px ---------- */
  @media (max-width: 720px) {
    .hero { padding: 32px 16px 48px; gap: 36px; }
    h1.hero-title { font-size: clamp(36px, 9vw, 48px); }
    .hero-sub { font-size: 16px; }
    .hero-devices {
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 22px;
    }
    .hero-device { padding: 9px 10px; }
    .hero-device-ico { width: 24px; height: 24px; border-radius: 7px; }
    .hero-device-name { font-size: 12px; }
    .hero-device-cap { font-size: 10px; }
    .hero-cta-row { width: 100%; }
    .hero-cta-row .btn-primary-lg {
      padding: 14px 22px; font-size: 15px;
      width: 100%; justify-content: center;
    }
    .hero-cta-row .btn-secondary.btn-primary-lg { padding: 12px 22px; }
    .hero-demo {
      padding: 18px 18px 16px;
      min-height: 380px;
      border-radius: 20px;
    }
    .demo-mini-wave { width: 90px; }
    .demo-line { gap: 10px; }
    .demo-text { font-size: 14px; }
    .demo-avatar { width: 24px; height: 24px; font-size: 10px; }
  }

  @media (max-width: 480px) {
    .hero-devices {
      grid-template-columns: 1fr 1fr;
      gap: 6px;
    }
    .hero-device { padding: 8px 10px; gap: 8px; }
    .hero-device-ico { width: 22px; height: 22px; }
    .hero-device-name { font-size: 11.5px; }
    .hero-device-cap { font-size: 10px; }
  }

  /* reduce-motion — стоп всем анимациям hero */
  @media (prefers-reduced-motion: reduce) {
    .demo-dot { animation: none; box-shadow: 0 0 0 0 rgba(255,59,48,.5); }
    .demo-mini-wave span { animation: none; transform: scaleY(.6); }
    .demo-line { opacity: 1; transform: none; animation: none; }
    .demo-caret { animation: none; opacity: 0; }
    .hero-device:hover { transform: none; }
  }

/* ============================================================
 * TrustBar.astro
 * ============================================================ */
.trust-bar {
    max-width: 1240px;
    margin: -10px auto 0;
    padding: 0 32px;
  }
  .trust-inner {
    background: #fff;
    border-radius: 20px;
    padding: 18px 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: center;
    box-shadow: 0 1px 2px rgba(20,18,31,.04), 0 8px 24px rgba(20,18,31,.04);
  }
  .trust-item {
    display: flex; align-items: center; gap: 12px;
    min-width: 0;
  }
  .trust-ico {
    width: 38px; height: 38px; border-radius: 11px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .trust-text {
    font-size: 14px; color: var(--ink-2); line-height: 1.35;
  }
  .trust-text b { color: var(--ink); font-weight: 700; }

  [data-theme="dark"] .trust-inner { background: var(--surface); }

  @media (max-width: 1024px) {
    .trust-inner {
      grid-template-columns: repeat(2, 1fr);
      gap: 18px;
    }
  }

  @media (max-width: 720px) {
    .trust-bar { padding: 0 16px; }
    .trust-inner {
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      padding: 16px 20px;
      border-radius: 16px;
    }
    .trust-ico { width: 32px; height: 32px; border-radius: 9px; }
    .trust-text { font-size: 13px; line-height: 1.3; }
  }

/* ============================================================
 * Proof.astro
 * ============================================================ */
.proof {
    max-width: 1240px;
    margin: 0 auto;
    padding: 80px 32px;
  }
  .proof-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
  }
  .proof-head { padding: 40px 44px 8px; }
  .proof-kicker {
    display: inline-block;
    font-size: 12px; font-weight: 700;
    color: var(--brand);
    text-transform: uppercase; letter-spacing: 0.14em;
    margin-bottom: 14px;
  }
  .proof-title {
    margin: 0 0 14px;
    font-size: clamp(28px, 2.6vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--ink);
    max-width: 24ch;
    text-wrap: balance;
  }
  .proof-title .em {
    background: linear-gradient(95deg, var(--grad-blue) 0%, var(--brand) 50%, var(--grad-pink) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .proof-lede {
    margin: 0;
    font-size: 16px; line-height: 1.55;
    color: var(--ink-3);
    max-width: 56ch;
  }

  .proof-stat-row {
    padding: 28px 44px 32px;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }
  .proof-mega {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
  }
  .proof-x {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: clamp(96px, 10vw, 140px);
    line-height: 0.85;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, var(--brand) 0%, var(--grad-pink) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin: 0;
  }
  .proof-x-text { display: flex; flex-direction: column; gap: 10px; }
  .proof-x-sub {
    color: var(--ink); font-weight: 700;
    font-size: 18px; line-height: 1.3;
    margin: 0;
  }
  .proof-x-sub span {
    color: var(--ink-3); font-weight: 500;
    display: block; margin-top: 2px; font-size: 15px;
  }
  .proof-x-meta {
    margin: 0;
    font-size: 11px; color: var(--ink-4);
    text-transform: uppercase; letter-spacing: 0.1em;
    display: flex; align-items: center; gap: 8px;
    font-weight: 600;
  }
  .proof-x-meta::before {
    content: ""; width: 14px; height: 1px; background: currentColor;
  }

  .proof-player-wrap {
    display: flex; flex-direction: column; gap: 10px;
    min-width: 0;
  }
  .proof-player-cap {
    margin: 0;
    font-size: 13px; font-weight: 600;
    color: var(--ink-3);
    display: flex; align-items: center; gap: 8px;
  }
  .proof-player-cap::before {
    content: ""; flex-shrink: 0;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand);
  }
  .player {
    background: linear-gradient(180deg, #f8f5ff 0%, #f1ecfb 100%);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    display: flex; align-items: center; gap: 14px;
    border: 1px solid var(--line);
  }
  .player-play {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand); color: #fff;
    border: 0; cursor: pointer; flex-shrink: 0;
    display: grid; place-items: center;
    box-shadow: 0 6px 16px rgba(111,92,240,.35);
    transition: transform .15s;
  }
  .player-play:hover { transform: scale(1.06); }
  .player-wave {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 2px;
    height: 30px;
  }
  .player-wave span {
    flex: 1;
    height: 100%;
    background: var(--brand);
    border-radius: 100px;
    opacity: .25;
    transform-origin: center;
    transform: scaleY(var(--h, .3));
  }
  .player-wave span.played { opacity: .9; }
  .player-time {
    font-family: var(--font-sans);
    font-variant-numeric: tabular-nums;
    font-size: 12px; font-weight: 600; color: var(--ink-3);
    flex-shrink: 0;
  }
  .player-tag {
    font-size: 10px; font-weight: 700;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 4px 9px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.08em;
    flex-shrink: 0;
  }

  .compare {
    padding: 32px 44px 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .compare-col {
    border-radius: var(--radius-lg);
    padding: 22px 22px 18px;
    position: relative;
    display: flex; flex-direction: column;
  }
  .compare-col--ai {
    background: var(--surface-2);
    border: 1px solid var(--line);
  }
  .compare-col--sonar {
    background: linear-gradient(180deg, #f3effd 0%, #ece8ff 100%);
    border: 1px solid rgba(111,92,240,.18);
  }
  .compare-tag {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 999px;
    margin-bottom: 18px;
  }
  .compare-col--ai .compare-tag {
    background: #fff; color: var(--ink-3);
    border: 1px solid var(--line);
  }
  .compare-col--sonar .compare-tag {
    background: var(--brand); color: #fff;
  }
  .compare-tag .tag-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
  }
  .compare-body {
    flex: 1;
    display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 18px;
  }
  .compare-line {
    font-size: 14.5px; line-height: 1.55;
    margin: 0;
    color: var(--ink-2);
    font-family: var(--font-sans);
  }
  .compare-speaker {
    display: inline-block;
    background: rgba(20,18,31,.06);
    color: var(--ink-3);
    font-size: 11px; font-weight: 600;
    padding: 2px 7px; border-radius: 4px;
    margin-right: 8px;
    vertical-align: 1px;
    white-space: nowrap;
  }
  .compare-col--sonar .compare-speaker {
    background: rgba(111,92,240,.14);
    color: var(--brand-ink);
  }
  .err {
    text-decoration: underline wavy #e64545;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    color: #b8302f;
    font-weight: 500;
  }
  .good {
    background: linear-gradient(180deg, transparent 55%, rgba(111,92,240,.22) 55%);
    color: var(--ink); font-weight: 600;
    padding: 0 2px;
  }
  .compare-foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-size: 12px; color: var(--ink-3);
    display: flex; gap: 16px; flex-wrap: wrap;
    align-items: center;
  }
  .compare-foot b { color: var(--ink-2); font-weight: 700; }
  .compare-foot .sep {
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--ink-4); opacity: .5;
  }
  .compare-col--sonar .compare-foot { border-top-color: rgba(111,92,240,.2); }

  .proof-strip {
    background: #15131f;
    color: #e8e6f0;
    padding: 26px 44px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: center;
  }
  .proof-strip-item {
    display: flex; gap: 14px; align-items: center;
    position: relative;
  }
  .proof-strip-item + .proof-strip-item::before {
    content: ""; position: absolute;
    left: -16px; top: 50%; transform: translateY(-50%);
    width: 1px; height: 36px;
    background: rgba(255,255,255,.08);
  }
  .proof-stat-num {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    background: linear-gradient(135deg, #b8a8ff 0%, #c668e8 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    white-space: nowrap;
  }
  .proof-stat-num.sm { font-size: 24px; }
  .proof-stat-body {
    font-size: 13px; line-height: 1.45;
    color: #c8c5d8;
    min-width: 0;
  }
  .proof-stat-body b { color: #fff; font-weight: 700; }
  .proof-stat-body .term {
    color: #b8a8ff;
    font-style: italic;
  }

  /* dark theme overrides */
  [data-theme="dark"] .proof-card { background: var(--surface); }
  [data-theme="dark"] .compare-col--ai {
    background: var(--surface-2);
    border-color: var(--line);
  }
  [data-theme="dark"] .compare-col--sonar {
    background: linear-gradient(180deg, rgba(139,109,240,.18) 0%, rgba(198,104,232,.10) 100%);
    border-color: rgba(139,109,240,.4);
  }
  [data-theme="dark"] .compare-speaker {
    background: rgba(255,255,255,.06);
  }
  [data-theme="dark"] .player {
    background: linear-gradient(180deg, var(--surface-2) 0%, rgba(139,109,240,.08) 100%);
    border-color: var(--line);
  }
  [data-theme="dark"] .player-play { background: var(--brand); }

  /* ---------- ≤1024px ---------- */
  @media (max-width: 1024px) {
    .proof-head { padding: 32px 24px 4px; }
    .proof-stat-row { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
    .compare { grid-template-columns: 1fr; padding: 20px 24px 28px; gap: 16px; }
    .proof-strip { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
    .proof-strip-item + .proof-strip-item::before { display: none; }
  }

  /* ---------- ≤720px ---------- */
  @media (max-width: 720px) {
    .proof { padding: 56px 16px; padding-left: 16px; padding-right: 16px; }
    .proof-title { font-size: clamp(26px, 6.5vw, 32px); }
    .proof-card { border-radius: 20px; }
    .proof-head { padding: 28px 20px 4px; }
    .proof-stat-row { padding: 20px; gap: 24px; }
    .proof-mega { grid-template-columns: auto 1fr; gap: 14px; }
    .proof-x { font-size: 80px; }
    .proof-x-sub { font-size: 16px; }
    .compare { padding: 16px 20px 24px; }
    .compare-col { padding: 18px 18px 16px; }
    .compare-line { font-size: 14px; }
    .proof-strip { padding: 20px; gap: 16px; }
  }

  /* reduce-motion */
  @media (prefers-reduced-motion: reduce) {
    .player-play:hover { transform: none; }
  }

/* ============================================================
 * HowItWorks.astro
 * ============================================================ */
.howto {
    max-width: 1240px;
    margin: 0 auto;
    padding: 80px 32px;
  }
  .howto-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
  }
  .howto-kicker {
    display: inline-block;
    color: var(--brand);
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    margin-bottom: 14px;
  }
  .howto-title {
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700; letter-spacing: -0.02em;
    line-height: 1.08; margin: 0 0 14px;
    color: var(--ink);
    text-wrap: balance;
  }
  .howto-title .em {
    background: linear-gradient(95deg, var(--grad-blue) 0%, var(--brand) 50%, var(--grad-pink) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .howto-lede {
    color: var(--ink-3); font-size: 16px; line-height: 1.55;
    max-width: 56ch; margin: 0 auto;
  }

  .howto-timeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1.5fr;
    gap: 16px;
    align-items: stretch;
  }
  .howto-step {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 26px 26px 24px;
    box-shadow: var(--shadow-card);
    display: flex; flex-direction: column;
    min-height: 520px;
    position: relative;
    overflow: hidden;
  }
  .howto-step-top {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
  }
  .howto-step-num {
    font-family: var(--font-sans);
    font-weight: 800; font-size: 13px;
    color: #fff; background: var(--brand);
    padding: 4px 8px; border-radius: 6px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }
  .howto-step-label {
    font-size: 12px; font-weight: 700;
    color: var(--brand);
    text-transform: uppercase; letter-spacing: 0.1em;
  }
  .howto-step-title {
    font-size: 20px; font-weight: 700;
    line-height: 1.2; letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 18px;
    text-wrap: balance;
  }
  .howto-step-body {
    flex: 1;
    display: flex; flex-direction: column; gap: 14px;
  }
  .howto-step-foot {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-size: 13px; color: var(--ink-3);
    line-height: 1.45;
  }
  .howto-arrow {
    align-self: center;
    color: var(--brand);
    opacity: .45;
    display: grid; place-items: center;
  }

  /* Step 1 — sources */
  .howto-sources {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .src-tile {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 12px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    transition: background .15s, border-color .15s, transform .15s;
    cursor: default;
  }
  .src-tile:hover {
    background: var(--brand-soft);
    border-color: rgba(111,92,240,.3);
    transform: translateY(-1px);
  }
  .src-ico {
    width: 36px; height: 36px;
    color: var(--brand);
    display: grid; place-items: center;
  }
  .src-name {
    font-size: 12px; font-weight: 600;
    color: var(--ink-2);
  }
  .howto-sources-divider {
    font-size: 11px; font-weight: 600;
    color: var(--ink-4);
    text-transform: uppercase; letter-spacing: 0.1em;
    text-align: center;
    margin: 4px 0 2px;
    display: flex; align-items: center; gap: 10px;
  }
  .howto-sources-divider::before,
  .howto-sources-divider::after {
    content: ""; flex: 1; height: 1px; background: var(--line);
  }
  .howto-sources-row {
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  .src-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--brand-soft);
    color: var(--brand-ink);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px; font-weight: 600;
  }
  .src-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

  /* Step 2 — Dynamic Island + smart-pause */
  .howto-island {
    background: #000;
    border-radius: 22px;
    padding: 10px 14px;
    display: flex; align-items: center; gap: 10px;
    align-self: flex-start;
    max-width: 240px;
  }
  .island-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #34d058;
    box-shadow: 0 0 0 0 rgba(52,208,88,.6);
    animation: rec-pulse 1.6s ease-out infinite;
  }
  @keyframes rec-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(52,208,88,.5); }
    70%  { box-shadow: 0 0 0 8px rgba(52,208,88,0);  }
    100% { box-shadow: 0 0 0 0 rgba(52,208,88,0);    }
  }
  .island-time {
    font-family: var(--font-sans);
    font-weight: 600; font-size: 14px;
    color: #34d058;
    font-variant-numeric: tabular-nums;
  }
  .island-bars {
    display: flex; align-items: center; gap: 2px;
    height: 16px;
  }
  .island-bars span {
    width: 2px;
    background: #34d058;
    border-radius: 1px;
    transform-origin: center;
    animation: mini-wave 1.2s ease-in-out infinite;
  }
  @keyframes mini-wave {
    0%, 100% { transform: scaleY(.25); }
    50%      { transform: scaleY(1); }
  }
  .island-bars span:nth-child(1) { height: 35%; animation-delay: 0.00s; }
  .island-bars span:nth-child(2) { height: 65%; animation-delay: 0.08s; }
  .island-bars span:nth-child(3) { height: 90%; animation-delay: 0.16s; }
  .island-bars span:nth-child(4) { height: 50%; animation-delay: 0.24s; }
  .island-bars span:nth-child(5) { height: 75%; animation-delay: 0.32s; }
  .island-bars span:nth-child(6) { height: 45%; animation-delay: 0.40s; }
  .island-bars span:nth-child(7) { height: 60%; animation-delay: 0.48s; }
  .island-cap {
    margin: 8px 0 0;
    font-size: 12px; color: var(--ink-3);
    line-height: 1.4;
  }

  .howto-pause {
    margin-top: 6px;
    padding: 14px;
    background: var(--surface-2);
    border-radius: 14px;
    display: flex; flex-direction: column; gap: 10px;
  }
  .pause-head {
    font-size: 11px; font-weight: 700;
    color: var(--ink-4);
    text-transform: uppercase; letter-spacing: 0.1em;
  }
  .pause-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .pause-label {
    font-size: 12px; color: var(--ink-3);
    display: flex; justify-content: space-between;
    align-items: baseline;
  }
  .pause-label b {
    color: var(--ink); font-weight: 700;
    font-family: var(--font-sans);
    font-variant-numeric: tabular-nums;
  }
  .pause-bar {
    height: 10px;
    background: rgba(20,18,31,.06);
    border-radius: 100px;
    position: relative;
    overflow: hidden;
  }
  .pause-bar > span {
    position: absolute; inset: 0 auto 0 0;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--brand), var(--grad-pink));
  }
  .pause-bar--muted > span {
    background: rgba(20,18,31,.18);
  }

  /* Step 3 — tabs */
  .howto-tabs {
    display: flex; gap: 4px;
    background: var(--surface-2);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
  }
  .howto-tab {
    flex: 1;
    font-family: inherit;
    font-size: 13px; font-weight: 600;
    color: var(--ink-3);
    background: transparent;
    border: 0; cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background .15s, color .15s;
  }
  .howto-tab:hover { color: var(--ink-2); }
  .howto-tab.is-active {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 1px 2px rgba(20,18,31,.06);
  }
  .howto-tab-body {
    flex: 1;
    display: flex; flex-direction: column; gap: 10px;
  }
  .howto-tab-body.is-hidden { display: none; }

  .sum-group {
    background: var(--surface-2);
    border-radius: 12px;
    padding: 12px 14px;
  }
  .sum-head {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700;
    color: var(--brand);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 8px;
  }
  .sum-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 6px;
  }
  .sum-list li {
    font-size: 13.5px; line-height: 1.4; color: var(--ink-2);
    padding-left: 16px; position: relative;
  }
  .sum-list li::before {
    content: ""; position: absolute; left: 4px; top: 9px;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--brand);
  }
  .sum-list li b { color: var(--ink); font-weight: 700; }

  /* Tasks */
  .task-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
  }
  .task-item {
    background: var(--surface-2);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex; align-items: center; gap: 12px;
  }
  .task-check {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .task-body { flex: 1; min-width: 0; }
  .task-title {
    font-size: 13.5px; font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
  }
  .task-meta {
    font-size: 11px; color: var(--ink-3);
    margin-top: 2px;
  }
  .task-meta b { color: var(--ink-2); font-weight: 700; }

  /* Transcript */
  .trans-line {
    background: var(--surface-2);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13.5px; line-height: 1.45;
    color: var(--ink-2);
    display: flex; gap: 10px;
  }
  .trans-time {
    font-family: var(--font-sans);
    font-size: 11px; font-weight: 600;
    color: var(--ink-4);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    padding-top: 2px;
  }
  .trans-speaker {
    font-weight: 700; color: var(--brand-ink); margin-right: 4px;
  }
  .trans-speaker.b { color: #a13fc4; }
  .trans-line mark {
    background: linear-gradient(180deg, transparent 55%, rgba(111,92,240,.22) 55%);
    color: var(--ink); font-weight: 600;
    padding: 0 2px;
  }

  /* Search */
  .search-input {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface-2);
    border: 1.5px solid var(--brand-soft);
    border-radius: 12px;
    padding: 11px 14px;
  }
  .search-input svg { color: var(--brand); flex-shrink: 0; }
  .search-input .q {
    flex: 1;
    font-size: 13.5px;
    color: var(--ink);
    font-weight: 500;
  }
  .search-input .kbd {
    font-family: var(--font-sans);
    font-size: 10px; font-weight: 600;
    color: var(--ink-4);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2px 5px;
  }
  .search-result {
    background: linear-gradient(180deg, #f3effd 0%, #ece8ff 100%);
    border: 1px solid rgba(111,92,240,.18);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex; flex-direction: column; gap: 8px;
  }
  .search-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 600; color: var(--ink-3);
  }
  .search-meta .stamp {
    background: var(--brand);
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-variant-numeric: tabular-nums;
  }
  .search-quote {
    font-size: 13.5px; line-height: 1.5; color: var(--ink);
    font-style: italic;
    margin: 0;
  }
  .search-quote mark {
    background: linear-gradient(180deg, transparent 55%, rgba(255,200,90,.55) 55%);
    color: var(--ink); font-weight: 600;
    padding: 0 2px;
    font-style: normal;
  }

  /* Inline CTA */
  .howto-cta {
    margin-top: 32px;
    display: flex; align-items: center; justify-content: center;
    gap: 18px; flex-wrap: wrap;
  }
  .howto-cta-note {
    font-size: 14px; color: var(--ink-3);
  }
  .howto-cta-note b { color: var(--ink-2); font-weight: 600; }

  /* dark theme */
  [data-theme="dark"] .howto-step,
  [data-theme="dark"] .howto-tab.is-active {
    background: var(--surface);
  }
  [data-theme="dark"] .src-tile,
  [data-theme="dark"] .howto-pause,
  [data-theme="dark"] .sum-group,
  [data-theme="dark"] .task-item,
  [data-theme="dark"] .trans-line,
  [data-theme="dark"] .search-input,
  [data-theme="dark"] .howto-tabs {
    background: var(--surface-2);
  }
  [data-theme="dark"] .pause-bar { background: rgba(255,255,255,.06); }
  [data-theme="dark"] .pause-bar--muted > span { background: rgba(255,255,255,.2); }

  /* ---------- ≤1024px ---------- */
  @media (max-width: 1024px) {
    .howto-timeline { grid-template-columns: 1fr; gap: 12px; }
    .howto-arrow { transform: rotate(90deg); padding: 4px 0; }
    .howto-step { min-height: 0; }
  }

  /* ---------- ≤720px ---------- */
  @media (max-width: 720px) {
    .howto { padding: 56px 16px; }
    .howto-title { font-size: clamp(26px, 6.5vw, 32px); }
    .howto-step { padding: 22px 20px 20px; }
    .howto-step-title { font-size: 18px; }
    .howto-sources { grid-template-columns: 1fr 1fr; }
    .howto-tabs { overflow-x: auto; }
    .howto-tab { flex: 0 0 auto; }
  }

  /* reduce-motion */
  @media (prefers-reduced-motion: reduce) {
    .island-dot { animation: none; box-shadow: 0 0 0 0 rgba(52,208,88,.5); }
    .island-bars span { animation: none; transform: scaleY(.6); }
    .src-tile:hover { transform: none; }
  }

/* ============================================================
 * Platforms.astro
 * ============================================================ */
.platforms {
    max-width: 1240px;
    margin: 0 auto;
    padding: 80px 32px;
  }
  .plat-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
  .plat-kicker {
    display: inline-block;
    color: var(--brand);
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    margin-bottom: 14px;
  }
  .plat-title {
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700; letter-spacing: -0.02em;
    line-height: 1.08; margin: 0 0 14px;
    color: var(--ink);
    text-wrap: balance;
  }
  .plat-title .em {
    background: linear-gradient(95deg, var(--grad-blue) 0%, var(--brand) 50%, var(--grad-pink) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .plat-lede {
    color: var(--ink-3); font-size: 16px; line-height: 1.55;
    max-width: 56ch; margin: 0 auto;
  }

  .plat-devices-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 36px 36px 0;
    overflow: hidden;
  }
  .plat-devices {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
  }
  .dev-tile {
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    display: flex; flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .dev-ico {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff 0%, #f3effd 100%);
    box-shadow: 0 2px 6px rgba(20,18,31,.06), inset 0 0 0 1px var(--line);
    display: grid; place-items: center;
    color: var(--brand);
    margin-bottom: 14px;
  }
  .dev-name {
    font-size: 17px; font-weight: 700; color: var(--ink);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
  }
  .dev-cap {
    font-size: 13.5px; line-height: 1.5;
    color: var(--ink-3); margin: 0;
    max-width: 22ch;
  }
  .dev-sync {
    align-self: center;
    color: var(--brand);
    opacity: .35;
    display: grid; place-items: center;
  }

  .plat-tagline {
    margin: 0 -36px;
    padding: 18px 36px;
    background: linear-gradient(180deg, var(--surface-2) 0%, transparent 100%);
    border-top: 1px dashed var(--line);
    font-size: 14px; color: var(--ink-2);
    text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 12px;
  }
  .plat-tagline b { color: var(--ink); font-weight: 700; }
  .plat-tagline-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  }

  .plat-appstore {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  .plat-appstore-note {
    margin: 0;
    font-size: 13px;
    color: var(--ink-3);
    max-width: 44ch;
  }

  .plat-row {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    align-items: start;
  }
  .plat-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 28px 32px 32px;
    display: flex; flex-direction: column;
  }
  .plat-card-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    align-self: flex-start;
    background: var(--brand-soft); color: var(--brand-ink);
    padding: 5px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
  }
  .plat-card-title {
    font-size: 20px; font-weight: 700;
    line-height: 1.2; letter-spacing: -0.015em;
    color: var(--ink); margin: 0 0 20px;
    text-wrap: balance;
  }
  .plat-card-foot {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    font-size: 13px; line-height: 1.5;
    color: var(--ink-3);
  }
  .plat-card-foot b { color: var(--ink-2); font-weight: 600; }

  .meeting-mock {
    background: #0d0a1c;
    border-radius: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: relative;
    overflow: hidden;
  }
  .meeting-mock::before {
    content: ""; position: absolute;
    top: 0; left: 0; right: 0; height: 22px;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .meet-tile {
    position: relative;
    background: linear-gradient(135deg, #2a2540 0%, #1a1730 100%);
    border-radius: 12px;
    aspect-ratio: 4/3;
    margin-top: 22px;
    display: grid; place-items: center;
    overflow: hidden;
  }
  .meet-tile .avatar {
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: 18px;
    font-family: var(--font-sans);
  }
  .meet-tile .avatar.a1 { background: linear-gradient(135deg, #5a72f0 0%, #7e94ff 100%); }
  .meet-tile .avatar.a2 { background: linear-gradient(135deg, #2db7a5 0%, #4dd7c5 100%); }
  .meet-tile .avatar.a3 { background: linear-gradient(135deg, #ea7c3e 0%, #ff9b5e 100%); }
  .meet-tile-name {
    position: absolute; left: 8px; bottom: 6px;
    font-size: 10px; color: rgba(255,255,255,.7);
    font-weight: 500;
    background: rgba(0,0,0,.4);
    padding: 2px 6px; border-radius: 4px;
    white-space: nowrap;
  }
  .meet-tile-mic {
    position: absolute; right: 8px; bottom: 6px;
    width: 16px; height: 16px;
    background: rgba(0,0,0,.4);
    border-radius: 4px;
    display: grid; place-items: center;
  }
  .meet-tile--bot {
    background:
      radial-gradient(ellipse 80% 60% at 50% 0%, rgba(198,104,232,.4) 0%, transparent 60%),
      linear-gradient(135deg, #6f5cf0 0%, #4a3bd4 100%);
    box-shadow:
      inset 0 0 0 1.5px rgba(255,255,255,.18),
      0 0 0 2px var(--brand);
  }
  .meet-tile--bot::before {
    content: ""; position: absolute; top: 8px; left: 8px;
    width: 7px; height: 7px; border-radius: 50%;
    background: #ff4f44;
    box-shadow: 0 0 0 0 rgba(255,79,68,.5);
    animation: rec-pulse 1.6s ease-out infinite;
  }
  @keyframes rec-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,79,68,.5); }
    70%  { box-shadow: 0 0 0 8px rgba(255,79,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,79,68,0); }
  }
  .meet-tile--bot .bot-mark {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
  }
  .meet-tile--bot .bot-mark img {
    width: 44px; height: 44px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
  }
  .meet-tile--bot .bot-mark .bot-label {
    color: #fff;
    font-weight: 700; font-size: 11px;
    letter-spacing: 0.02em;
  }
  .meet-tile--bot .bot-mark .bot-sub {
    color: rgba(255,255,255,.7);
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .meet-tile--bot .meet-tile-name {
    background: rgba(0,0,0,.45);
    color: #fff;
    font-weight: 600;
  }

  .formats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .fmt-tile {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 12px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-align: center;
    transition: background .15s, border-color .15s, transform .15s;
  }
  .fmt-tile:hover {
    background: var(--brand-soft);
    border-color: rgba(111,92,240,.3);
    transform: translateY(-1px);
  }
  .fmt-ico {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    display: grid; place-items: center;
    color: var(--brand);
  }
  .fmt-name {
    font-size: 13px; font-weight: 700; color: var(--ink);
    line-height: 1;
  }
  .fmt-sub {
    font-size: 10px; color: var(--ink-4);
    text-transform: uppercase; letter-spacing: 0.05em;
    font-weight: 600;
  }
  .formats-meta {
    margin-top: 12px;
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  .formats-meta .chip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 5px 9px;
    font-size: 11px; font-weight: 600;
    color: var(--ink-3);
  }

  /* dark theme */
  [data-theme="dark"] .plat-devices-card,
  [data-theme="dark"] .plat-card { background: var(--surface); }
  [data-theme="dark"] .dev-tile,
  [data-theme="dark"] .fmt-tile { background: var(--surface-2); }
  [data-theme="dark"] .formats-meta .chip { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
  [data-theme="dark"] .plat-card-foot,
  [data-theme="dark"] .plat-tagline { border-color: var(--line); }

  /* ---------- ≤1024px ---------- */
  @media (max-width: 1024px) {
    .plat-devices { grid-template-columns: 1fr; }
    .plat-row { grid-template-columns: 1fr; }
  }

  /* ---------- ≤720px ---------- */
  @media (max-width: 720px) {
    .platforms { padding: 56px 16px; }
    .plat-title { font-size: clamp(26px, 6.5vw, 32px); }
    .plat-devices-card { padding: 24px 20px 0; border-radius: 20px; }
    .plat-devices { gap: 14px; margin-bottom: 18px; }
    .dev-sync { transform: rotate(90deg); padding: 2px 0; }
    .plat-tagline { margin: 0 -20px; padding: 14px 20px; flex-direction: column; gap: 6px; text-align: center; font-size: 13px; }
    .plat-card { padding: 22px 20px 22px; }
    .meeting-mock { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
    .formats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .fmt-tile { padding: 12px 8px; }
    .fmt-name { font-size: 12px; }
  }

  /* reduce-motion */
  @media (prefers-reduced-motion: reduce) {
    .meet-tile--bot::before { animation: none; box-shadow: 0 0 0 0 rgba(255,79,68,.5); }
    .fmt-tile:hover { transform: none; }
  }

/* ============================================================
 * UseCases.astro
 * ============================================================ */
.uses {
    max-width: 1240px;
    margin: 0 auto;
    padding: 80px 32px 0;
  }
  .uses-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
  .uses-kicker {
    display: inline-block;
    color: var(--brand);
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    margin-bottom: 14px;
  }
  .uses-title {
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700; letter-spacing: -0.02em;
    line-height: 1.08; margin: 0 0 14px;
    color: var(--ink);
    text-wrap: balance;
  }
  .uses-title .em {
    background: linear-gradient(95deg, var(--grad-blue) 0%, var(--brand) 50%, var(--grad-pink) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .uses-lede {
    color: var(--ink-3); font-size: 16px; line-height: 1.55;
    max-width: 56ch; margin: 0 auto;
  }

  .uses-sublabel {
    display: flex; align-items: center; gap: 14px;
    margin: 0 0 22px;
  }
  .uses-sublabel-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px; font-weight: 700;
    color: var(--ink);
  }
  .uses-sublabel-pill .dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
  }
  .uses-sublabel-line { flex: 1; height: 1px; background: var(--line); }
  .uses-sublabel-cap { font-size: 13px; color: var(--ink-3); }

  .uses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .uc {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 26px 26px 22px;
    box-shadow: var(--shadow-card);
    display: flex; flex-direction: column;
    position: relative;
  }
  .uc-top {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 18px;
  }
  .uc-avatar {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: grid; place-items: center;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 16px; font-weight: 800;
    letter-spacing: -0.01em;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(20,18,31,.12);
  }
  .uc-avatar--brand   { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); }
  .uc-avatar--pink    { background: linear-gradient(135deg, var(--grad-pink) 0%, #d97fc5 100%); }
  .uc-avatar--blue    { background: linear-gradient(135deg, var(--grad-blue) 0%, #7e94ff 100%); }
  .uc-avatar--teal    { background: linear-gradient(135deg, #2db7a5 0%, #4dd7c5 100%); }
  .uc-avatar--orange  { background: linear-gradient(135deg, #ea7c3e 0%, #ff9b5e 100%); }
  .uc-avatar--dark    { background: linear-gradient(135deg, #2a2540 0%, #4a4570 100%); }
  .uc-name {
    font-size: 16px; font-weight: 700; color: var(--ink);
    line-height: 1.2; margin: 0;
    letter-spacing: -0.01em;
  }
  .uc-role {
    font-size: 13px; color: var(--ink-3);
    margin-top: 3px;
  }
  .uc-role b { color: var(--ink-2); font-weight: 600; }

  .uc-quote {
    font-size: 15px; line-height: 1.5;
    color: var(--ink);
    margin: 0 0 18px;
    position: relative;
    padding-left: 14px;
    border-left: 2px solid var(--brand);
    font-style: italic;
  }
  .uc-quote::before { content: "«"; }
  .uc-quote::after  { content: "»"; }

  .uc-tags {
    list-style: none; margin: 0 0 18px; padding: 0;
    display: flex; flex-direction: column; gap: 6px;
  }
  .uc-tag {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; line-height: 1.4;
    color: var(--ink-2);
  }
  .uc-tag-ico {
    width: 18px; height: 18px; border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid; place-items: center;
    flex-shrink: 0; margin-top: 1px;
  }
  .uc-tag-ico svg { display: block; }

  .uc-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
  }
  .uc-plan {
    display: inline-flex; align-items: baseline; gap: 8px;
    font-size: 13px; font-weight: 600;
    color: var(--ink-3);
  }
  .uc-plan b {
    background: var(--brand-soft);
    color: var(--brand-ink);
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .uc-price {
    font-family: var(--font-sans);
    font-size: 14px; font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
  }
  .uc-price small { font-weight: 500; color: var(--ink-3); }

  /* B2B variant */
  .uc--b2b {
    background: linear-gradient(180deg, #fbfaff 0%, #f5f1fa 100%);
    border: 1px solid var(--line);
  }
  .uc-metric {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 0 0 16px;
    border: 1px solid var(--line);
  }
  .uc-metric-num {
    font-family: var(--font-sans);
    font-size: 28px; font-weight: 800;
    color: var(--ink);
    line-height: 1; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
  }
  .uc-metric-num .accent {
    background: linear-gradient(95deg, var(--brand) 0%, var(--grad-pink) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .uc-metric-num small {
    font-size: 13px; color: var(--ink-3); font-weight: 500;
    margin-left: 6px;
  }
  .uc-metric-sub {
    font-size: 12.5px; line-height: 1.4;
    color: var(--ink-3);
  }

  .uses-b2b {
    margin: 60px 0 0;
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(111,92,240,.05) 100%);
  }
  .uses-b2b-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
  }

  /* B2C CTA (light gradient) */
  .uses-cta-light {
    margin-top: 36px;
    background: linear-gradient(135deg, #f3effd 0%, #ece8ff 50%, #fce4f1 100%);
    border: 1px solid rgba(111,92,240,.18);
    border-radius: var(--radius-xl);
    padding: 32px 44px;
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 32px;
    align-items: center;
  }
  .uses-cta-light h3 {
    font-size: 22px; font-weight: 700;
    letter-spacing: -0.015em; line-height: 1.2;
    margin: 0 0 8px;
    color: var(--ink);
  }
  .uses-cta-light p {
    margin: 0; color: var(--ink-2);
    font-size: 15px; line-height: 1.5;
  }
  .uses-cta-light p b { color: var(--ink); font-weight: 700; }

  .uses-cta-actions {
    display: flex; flex-direction: column; gap: 10px;
    align-items: stretch;
  }
  .uses-cta-actions .btn-primary {
    box-shadow: 0 8px 20px rgba(111,92,240,.45);
    justify-content: center;
  }

  /* B2B CTA (dark) */
  .uses-cta {
    margin-top: 36px;
    background: linear-gradient(135deg, #15131f 0%, #2a2540 100%);
    border-radius: var(--radius-xl);
    padding: 36px 44px;
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 32px;
    align-items: center;
  }
  .uses-cta-text { color: #fff; }
  .uses-cta-text h3 {
    font-size: 24px; font-weight: 700;
    letter-spacing: -0.015em; line-height: 1.2;
    margin: 0 0 8px;
  }
  .uses-cta-text p {
    margin: 0;
    color: rgba(255,255,255,.65);
    font-size: 15px; line-height: 1.5;
  }

  /* dark theme overrides */
  [data-theme="dark"] .uc { background: var(--surface); }
  [data-theme="dark"] .uses-sublabel-pill,
  [data-theme="dark"] .uc-metric {
    background: var(--surface);
    border-color: var(--line);
  }
  [data-theme="dark"] .uc--b2b {
    background: var(--surface);
    border-color: var(--line);
  }
  [data-theme="dark"] .uses-cta-light {
    background: linear-gradient(135deg, rgba(139,109,240,.16) 0%, rgba(198,104,232,.10) 100%);
    border-color: rgba(139,109,240,.3);
    color: var(--ink);
  }
  [data-theme="dark"] .uses-cta-light h3,
  [data-theme="dark"] .uses-cta-light p { color: var(--ink); }
  [data-theme="dark"] .uses-cta-light p b { color: #fff; }
  [data-theme="dark"] .uc-metric { background: var(--surface-2); }

  /* ---------- ≤1024px ---------- */
  @media (max-width: 1024px) {
    .uses-grid { grid-template-columns: 1fr 1fr; }
    .uses-cta-light, .uses-cta { grid-template-columns: 1fr; }
  }

  /* ---------- ≤720px ---------- */
  @media (max-width: 720px) {
    .uses { padding: 56px 16px 0; }
    .uses-title { font-size: clamp(26px, 6.5vw, 32px); }
    .uses-b2b { padding: 48px 0 56px; }
    .uses-b2b-inner { padding: 0 16px; }
    .uses-grid { grid-template-columns: 1fr; gap: 14px; }
    .uses-sublabel { flex-wrap: wrap; }
    .uses-sublabel-line { display: none; }
    .uses-cta-light, .uses-cta { padding: 24px; }
    .uses-cta-light h3, .uses-cta-text h3 { font-size: 19px; }
    .uses-cta-actions .btn { width: 100%; justify-content: center; }
    .uc { padding: 22px 20px 18px; }
  }

/* ============================================================
 * Security.astro
 * ============================================================ */
.security {
    background: linear-gradient(180deg, #0d0a1c 0%, #15131f 100%);
    color: #e8e6f0;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
  }
  .security::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 60% 40% at 20% 0%,  rgba(111,92,240,.12) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 100% 100%, rgba(198,104,232,.08) 0%, transparent 60%);
    pointer-events: none;
  }
  .sec-inner {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
  }
  .sec-head {
    max-width: 760px;
    margin: 0 0 44px;
  }
  .sec-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    color: #b8a8ff;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
  }
  .sec-title {
    font-family: var(--font-mono);
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
  }
  .sec-title .dot { color: var(--brand); }
  .sec-title .em {
    background: linear-gradient(95deg, #b8a8ff 0%, #c668e8 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }

  .sec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }
  .sec-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    position: relative;
    transition: background .15s, border-color .15s;
  }
  .sec-card:hover {
    background: rgba(255,255,255,.05);
    border-color: rgba(184,168,255,.25);
  }
  .sec-card-top {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
  }
  .sec-num {
    font-family: var(--font-mono);
    color: rgba(184,168,255,.55);
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.04em;
  }
  .sec-divider {
    flex: 1; height: 1px; background: rgba(255,255,255,.08);
  }
  .sec-ico {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(184,168,255,.12);
    color: #b8a8ff;
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .sec-card h3 {
    font-family: var(--font-sans);
    font-size: 18px; font-weight: 700;
    color: #fff;
    line-height: 1.25; letter-spacing: -0.01em;
    margin: 0 0 8px;
  }
  .sec-card p {
    font-family: var(--font-mono);
    font-size: 13px; line-height: 1.55;
    color: #b3b0c7;
    margin: 0;
  }
  .sec-card p b { color: #fff; font-weight: 600; }

  .sec-selfhost {
    background: linear-gradient(135deg, rgba(111,92,240,.14) 0%, rgba(198,104,232,.08) 100%);
    border: 1px solid rgba(184,168,255,.25);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 28px;
    align-items: center;
  }
  .sec-selfhost-text { min-width: 0; }
  .sec-selfhost-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    color: #b8a8ff;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
  }
  .sec-selfhost h3 {
    font-family: var(--font-sans);
    font-size: 22px; font-weight: 700;
    color: #fff; line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 10px;
  }
  .sec-selfhost p {
    font-family: var(--font-mono);
    font-size: 13px; line-height: 1.55;
    color: #b3b0c7;
    margin: 0;
  }
  .sec-selfhost p b { color: #fff; font-weight: 600; }
  .sec-selfhost-cta {
    display: flex; flex-direction: column; gap: 8px;
    align-items: stretch;
  }
  .sec-selfhost-cta .btn-primary {
    box-shadow: 0 8px 20px rgba(111,92,240,.5);
    justify-content: center;
  }
  .sec-selfhost-price {
    font-family: var(--font-mono);
    font-size: 11px; color: #b8a8ff;
    text-align: center;
    letter-spacing: 0.04em;
  }

  .sec-leadmag {
    margin-top: 28px;
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent;
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: 10px;
    padding: 12px 18px;
    color: #b8a8ff;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 13px; font-weight: 500;
    transition: background .15s, border-color .15s, color .15s;
  }
  .sec-leadmag:hover {
    background: rgba(184,168,255,.06);
    border-color: rgba(184,168,255,.4);
    color: #fff;
  }
  .sec-leadmag .ico {
    width: 22px; height: 22px; border-radius: 6px;
    background: rgba(184,168,255,.15);
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .sec-leadmag .file {
    font-family: var(--font-mono);
    color: rgba(255,255,255,.4);
    font-size: 11px;
    margin-left: 4px;
  }

  /* ---------- ≤1024px ---------- */
  @media (max-width: 1024px) {
    .sec-grid { grid-template-columns: 1fr; }
    .sec-selfhost { grid-template-columns: 1fr; }
  }

  /* ---------- ≤720px ---------- */
  @media (max-width: 720px) {
    .security { padding: 56px 0; }
    .sec-inner { padding: 0 16px; }
    .sec-head { margin-bottom: 32px; }
    .sec-title { font-size: clamp(22px, 5.5vw, 28px); }
    .sec-card { padding: 22px 20px; }
    .sec-card h3 { font-size: 16px; }
    .sec-selfhost { padding: 24px 22px; }
    .sec-selfhost h3 { font-size: 19px; }
    .sec-leadmag { font-size: 12px; padding: 10px 14px; }
    .sec-leadmag .file { display: block; margin-left: 0; margin-top: 2px; }
  }

/* ============================================================
 * FinalCta.astro
 * ============================================================ */
.final-cta {
    position: relative;
    padding: 80px 32px 80px;
    overflow: hidden;
    text-align: center;
  }
  .final-cta::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 50% 100%, rgba(198,104,232,.22) 0%, transparent 60%),
      radial-gradient(ellipse 50% 40% at 30% 0%, rgba(90,114,240,.18) 0%, transparent 55%),
      radial-gradient(ellipse 50% 40% at 80% 50%, rgba(111,92,240,.18) 0%, transparent 55%);
    pointer-events: none;
  }
  .final-cta-inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
  }
  .final-cta-title {
    font-size: clamp(48px, 6vw, 88px);
    font-weight: 800; letter-spacing: -0.03em;
    line-height: 1; margin: 0 0 22px;
    color: var(--ink);
  }
  .final-cta-title .em {
    background: linear-gradient(95deg, var(--grad-blue) 0%, var(--brand) 40%, var(--grad-pink) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .final-cta-sub {
    font-size: 19px; line-height: 1.5;
    color: var(--ink-2);
    max-width: 38ch;
    margin: 0 auto 36px;
    text-wrap: balance;
  }
  .final-cta-sub b { color: var(--ink); font-weight: 700; }

  .final-cta-btn {
    font-size: 17px;
    padding: 18px 32px;
    box-shadow: 0 12px 32px rgba(111,92,240,.5);
  }
  .final-cta-micro {
    margin-top: 18px;
    font-size: 14px;
    color: var(--ink-3);
    display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
    justify-content: center;
  }
  .final-cta-micro .sep {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--ink-4);
    opacity: .5;
  }
  .final-cta-micro b { color: var(--ink-2); font-weight: 600; }

  .principles {
    margin: 64px auto 0;
    max-width: 900px;
    display: flex; align-items: center; justify-content: center;
    gap: 24px; flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }
  .principle {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 600;
    color: var(--ink-2);
  }
  .principle-num {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600;
    color: var(--brand);
    letter-spacing: 0.04em;
  }
  .principle-sep {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand-soft);
  }

  /* dark theme */
  [data-theme="dark"] .final-cta::before {
    background:
      radial-gradient(ellipse 60% 50% at 50% 100%, rgba(198,104,232,.30) 0%, transparent 60%),
      radial-gradient(ellipse 50% 40% at 30% 0%, rgba(90,114,240,.22) 0%, transparent 55%),
      radial-gradient(ellipse 50% 40% at 80% 50%, rgba(139,109,240,.22) 0%, transparent 55%);
  }

  @media (max-width: 720px) {
    .final-cta { padding: 56px 16px 56px; }
    .final-cta-title { font-size: clamp(40px, 10vw, 56px); }
    .final-cta-sub { font-size: 17px; }
    .final-cta-btn { width: 100%; justify-content: center; }
    .final-cta-micro { font-size: 13px; gap: 6px; }
    .principles { gap: 10px; padding-top: 24px; margin: 40px auto 0; }
    .principle { font-size: 13px; }
  }

/* ============================================================
 * Footer.astro
 * ============================================================ */
.ft {
    background: #0d0a1c;
    color: #c8c5d8;
    padding: 64px 32px 32px;
  }
  .ft-inner {
    max-width: 1240px;
    margin: 0 auto;
  }
  .ft-top {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .ft-brand {
    display: flex; flex-direction: column; gap: 14px;
  }
  .ft-logo {
    display: flex; align-items: center; gap: 10px;
    color: #fff; text-decoration: none;
    font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  }
  .ft-logo .dot { color: var(--brand); }
  .ft-logo img {
    width: 32px; height: 32px; border-radius: 9px;
  }
  .ft-tagline {
    font-family: var(--font-mono);
    font-size: 13px; line-height: 1.5;
    color: #b3b0c7;
    max-width: 30ch;
    margin: 0;
  }
  .ft-social {
    display: flex; gap: 8px;
    margin-top: 8px;
  }
  .ft-appstore {
    margin-top: 4px;
    line-height: 0;
  }
  .ft-social a {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    color: #c8c5d8;
    text-decoration: none;
    display: grid; place-items: center;
    transition: background .15s, color .15s, border-color .15s;
  }
  .ft-social a:hover {
    background: rgba(184,168,255,.12);
    border-color: rgba(184,168,255,.3);
    color: #fff;
  }

  .ft-col h4 {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600;
    color: #b8a8ff;
    text-transform: uppercase; letter-spacing: 0.1em;
    margin: 0 0 16px;
  }
  .ft-col ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 10px;
  }
  .ft-col a {
    color: #c8c5d8;
    text-decoration: none;
    font-size: 14px;
    transition: color .15s;
  }
  .ft-col a:hover { color: #fff; }
  .ft-col li small {
    display: block;
    color: rgba(184,168,255,.5);
    font-family: var(--font-mono);
    font-size: 10px;
    margin-top: 2px;
  }

  .ft-bot {
    padding-top: 28px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
  }
  .ft-legal {
    font-family: var(--font-mono);
    font-size: 12px; line-height: 1.5;
    color: #6b6878;
  }
  .ft-legal b { color: #b3b0c7; font-weight: 600; }
  .ft-copy {
    font-family: var(--font-mono);
    font-size: 12px; color: #6b6878;
  }

  /* ---------- Tablet ≤1024px ---------- */
  @media (max-width: 1024px) {
    .ft-top {
      grid-template-columns: 1fr 1fr;
      gap: 32px;
    }
  }

  /* ---------- Mobile ≤720px ---------- */
  @media (max-width: 720px) {
    .ft { padding: 48px 20px 28px; }
    .ft-top {
      grid-template-columns: 1fr 1fr;
      gap: 28px;
      padding-bottom: 36px;
    }
    .ft-brand { grid-column: 1 / -1; }
    .ft-bot {
      flex-direction: column;
      align-items: flex-start;
      padding-top: 20px;
      gap: 14px;
    }
  }

/* ============================================================
 * FAQ accordion (.pr-faq*) — из Pricing.astro
 * ============================================================ */
/* ---- FAQ accordion (.pr-faq*) — из Pricing.astro ---- */
.pr-faq {
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto; margin-right: auto;
}
.pr-faq-head { text-align: center; margin-bottom: 24px; }
.pr-faq-title {
  font-size: 24px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
}
.pr-faq-list {
  display: flex; flex-direction: column; gap: 8px;
}
.pr-faq-item {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.pr-faq-item[open] {
  border-color: rgba(111,92,240,.3);
  box-shadow: 0 1px 2px rgba(20,18,31,.04), 0 8px 20px rgba(20,18,31,.04);
}
.pr-faq-item summary {
  cursor: pointer; list-style: none;
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-size: 15.5px; font-weight: 600;
  color: var(--ink);
  user-select: none;
}
.pr-faq-item summary::-webkit-details-marker { display: none; }
.pr-faq-item summary::after {
  content: "\203A";
  font-size: 22px; font-weight: 400;
  color: var(--brand);
  transform: rotate(90deg);
  transition: transform .2s;
  line-height: 1;
  flex-shrink: 0;
}
.pr-faq-item[open] summary::after { transform: rotate(-90deg); }
.pr-faq-item-body {
  padding: 0 22px 20px;
  font-size: 14px; line-height: 1.55;
  color: var(--ink-2);
}
.pr-faq-item-body p { margin: 0; }
.pr-faq-item-body p + p { margin-top: 10px; }

/* dark theme */
[data-theme="dark"] .pr-faq-item { background: var(--surface); }

/* ---------- <=720px ---------- */
@media (max-width: 720px) {
  .pr-faq-item summary { font-size: 14.5px; padding: 16px 18px; }
  .pr-faq-item-body { padding: 0 18px 18px; font-size: 13.5px; }
}


/* ============================================================
 * AppStoreBadge (.as-badge) — из AppStoreBadge.astro <style>
 * ============================================================ */
.as-badge {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
  transition: opacity 0.15s ease;
}
.as-badge:hover { opacity: 0.85; }
.as-badge:focus-visible { box-shadow: var(--shadow-focus); }
.as-badge img { display: block; height: auto; }


/* ============================================================
 * FAQ section wrapper (замена .pricing-обёртки — паддинг секции)
 * ============================================================ */
.faq-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 32px;
}
@media (max-width: 720px) {
  .faq-section { padding: 56px 16px; }
}


/* ============================================================
 * Final CTA — ряд из двух кнопок (App Store + кабинет)
 * ============================================================ */
.final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .final-cta-actions .btn { width: 100%; justify-content: center; }
}
