/* ============================================================
   Mira — main stylesheet
   Single source of truth for all pages on usemira.pro.
   Tokens are SEMANTIC. Old hex-named aliases are kept for safety.
   See DESIGN.md for the full system.
   ============================================================ */

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* ─── TOKENS — light theme (default) ────────────────────── */
:root {
  /* Brand accents */
  --accent:        #7C3AED;   /* primary violet */
  --accent-strong: #6D28D9;   /* hover / pressed */
  --accent-soft:   #EDE4FF;   /* tag bg, soft fills */
  --accent-tint:   #F5F0FF;   /* hover bg, hairline fills */
  --accent-border: #DDD0FB;   /* tag border */

  /* Deep violet — used for CTA-final & high-contrast sections.
     Almost-black, with a violet undertone. Replaces pure ink. */
  --deep:          #15102A;
  --deep-2:        #1F1840;

  /* Foreground */
  --fg:        #0F0B1F;       /* primary text */
  --fg-2:      #2A2340;       /* secondary text */
  --fg-muted:  #5A5370;       /* paragraph muted */
  --fg-subtle: #8A819F;       /* meta, captions */

  /* Surface */
  --bg:        #FBFAFF;       /* page background */
  --surface:   #FFFFFF;       /* cards */
  --surface-2: #FAF7FF;       /* nested surfaces */
  --tg-bg:     #F4F1FB;       /* telegram chat bg */

  /* Lines */
  --border:        #ECE8F5;
  --border-strong: #DDD7E8;

  /* Semantic */
  --tg-blue: #2AABEE;
  --success: #16A34A;
  --success-fg: #117A37;       /* AA on success-bg */
  --success-bg: #E7F8EC;
  --warn-fg:    #9A5A00;       /* AA on warn-bg */
  --warn-bg:    #FFF3D6;
  --danger-fg:  #A91515;       /* AA on danger-bg */
  --danger-bg:  #FCE5E5;

  /* Type families — single family for display + body, mono for code/eyebrow */
  --font-display: 'Geist', system-ui, sans-serif;
  --font-body:    'Geist', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 11, 31, 0.04);
  --shadow:    0 4px 16px rgba(15, 11, 31, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 11, 31, 0.08);

  /* Layout */
  --wrap: 1040px;
  --wrap-narrow: 880px;

  /* Legacy aliases — DO NOT use in new code; kept for unmigrated files */
  --violet:     var(--accent);
  --violet-600: var(--accent-strong);
  --violet-50:  var(--accent-tint);
  --violet-100: var(--accent-soft);
  --violet-200: var(--accent-border);
  --ink:        var(--fg);
  --ink-2:      var(--fg-2);
  --muted:      var(--fg-muted);
  --muted-2:    var(--fg-subtle);
  --line:       var(--border);
}

/* ─── DARK THEME — opt-in via [data-theme="dark"] ─────────
   Disabled by default. Will be wired to a toggle later.
   ─────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --accent:        #A78BFA;
  --accent-strong: #C4B5FD;
  --accent-soft:   #2A1F55;
  --accent-tint:   #1E1640;
  --accent-border: #3A2C70;

  --deep:    #0A0716;
  --deep-2:  #15102A;

  --fg:        #F4F1FF;
  --fg-2:      #D6CFEC;
  --fg-muted:  #A39CB8;
  --fg-subtle: #7A7290;

  --bg:        #0E0A1C;
  --surface:   #181030;
  --surface-2: #1F1640;
  --tg-bg:     #1A1233;

  --border:        #2A2245;
  --border-strong: #3A3060;

  --success-fg: #4ADE80;
  --success-bg: #103A1E;
  --warn-fg:    #FBBF24;
  --warn-bg:    #3A2A05;
  --danger-fg:  #F87171;
  --danger-bg:  #3A1010;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow:    0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* ─── DARK THEME — auto via system preference ─────────────
   Same tokens as [data-theme="dark"], applied automatically
   when user's OS is in dark mode AND not manually set to light.
   ─────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent:        #A78BFA;
    --accent-strong: #C4B5FD;
    --accent-soft:   #2A1F55;
    --accent-tint:   #1E1640;
    --accent-border: #3A2C70;
    --deep:    #0A0716;
    --deep-2:  #15102A;
    --fg:        #F4F1FF;
    --fg-2:      #D6CFEC;
    --fg-muted:  #A39CB8;
    --fg-subtle: #7A7290;
    --bg:        #0E0A1C;
    --surface:   #181030;
    --surface-2: #1F1640;
    --tg-bg:     #1A1233;
    --border:        #2A2245;
    --border-strong: #3A3060;
    --success-fg: #4ADE80;
    --success-bg: #103A1E;
    --warn-fg:    #FBBF24;
    --warn-bg:    #3A2A05;
    --danger-fg:  #F87171;
    --danger-bg:  #3A1010;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow:    0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  }
}

/* ─── THEME TOGGLE BUTTON ───────────────────────────────── */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  padding: 0;
}
.theme-toggle:hover { color: var(--accent); background: var(--accent-tint); }
.theme-toggle .theme-sun  { display: none; }
.theme-toggle .theme-moon { display: block; }
[data-theme="dark"] .theme-toggle .theme-sun  { display: block; }
[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .theme-sun  { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .theme-moon { display: none; }
}
@media (max-width: 640px) {
  .theme-toggle { width: 28px; height: 28px; }
  .theme-toggle svg { width: 12px; height: 12px; }
}

/* ─── LAYOUT ────────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }
@media (max-width: 768px) { section { padding: 48px 0; } }

/* ─── EYEBROW ───────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.14em;
  padding: 4px 10px; border: 1px solid var(--accent-border); border-radius: 999px;
  background: var(--accent-tint);
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
/* Eyebrow rhythm — neutral on center sections, violet on left-aligned */
.section-head.center .eyebrow {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--fg-muted);
}
.section-head.center .eyebrow .eyebrow-dot { background: var(--fg-subtle); }

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; font-family: var(--font-body);
  cursor: pointer; border: none; text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--fg); color: var(--surface); }
.btn-primary:hover { background: var(--deep-2); transform: translateY(-1px); }
.btn-violet { background: var(--accent); color: #fff; }
.btn-violet:hover { background: var(--accent-strong); }
.btn:active { transform: scale(0.98); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--accent-tint); border-color: var(--accent-border); color: var(--accent); }
.btn-white { background: #fff; color: var(--deep); }
.btn-white:hover { background: var(--accent-tint); transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ─── NAV ───────────────────────────────────────────────── */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--fg); }
.brand-mark { width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgba(15,11,31,0.18); overflow: hidden; flex-shrink: 0; }
.brand-mark img { width: 100%; height: 100%; display: block; }

.nav-center {
  display: flex; align-items: center; gap: 24px;
  font-size: 14px; font-weight: 500;
}
.nav-link { color: var(--fg-muted); transition: color 0.15s ease; }
.nav-link:hover { color: var(--fg); }
.nav-link.active { color: var(--fg); }

.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-divider { width: 1px; height: 16px; background: var(--border-strong); flex-shrink: 0; }

.lang-switcher { position: relative; }

.lang-current {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--fg-muted); background: transparent;
  padding: 0 10px; height: 32px; border-radius: 8px;
  border: none; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-current:hover { color: var(--accent); background: var(--accent-tint); }

.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.14);
  padding: 4px; min-width: 64px; z-index: 200;
  list-style: none; margin: 0;
  display: none; flex-direction: column;
}
.lang-menu.open { display: flex; }
.lang-menu li { margin: 0; padding: 0; list-style: none; }
.lang-menu a {
  display: block; font-family: var(--font-mono); font-size: 11px;
  font-weight: 500; text-align: center; color: var(--fg-muted);
  padding: 7px 16px; border-radius: 5px; text-transform: uppercase;
  letter-spacing: 0.1em; transition: color 0.15s ease, background 0.15s ease;
}
.lang-menu a:hover { color: var(--fg); background: var(--surface-2); }

.nav-cta-text-short { display: none; }

@media (max-width: 880px) {
  .nav-center { display: none; }
}
@media (max-width: 640px) {
  .nav-inner { height: 54px; gap: 8px; }
  .nav-cta-text { display: none; }
  .nav-cta-text-short { display: inline; font-size: 13px; }
  .nav-divider { display: none; }
  .nav-right .btn { min-width: 64px; min-height: 40px; padding: 8px 14px; justify-content: center; }
}

/* ─── HERO ──────────────────────────────────────────────── */
.hero { padding-top: 140px; padding-bottom: 80px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 110px; }
}
.hero-title {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.02;
  font-weight: 700;
  color: var(--fg);
  margin: 20px 0 20px;
}
.hero-title em { font-style: normal; color: var(--accent); font-weight: 700; }
.hero-sub {
  font-size: 17px; line-height: 1.55; color: var(--fg-muted);
  max-width: 52ch; margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; color: var(--fg-subtle); flex-wrap: wrap;
}
.hero-meta .dot { width: 3px; height: 3px; background: var(--fg-subtle); border-radius: 50%; }
.hero-meta .check { color: var(--success); }
/* Inline-rendered check svg in localized hero-meta — needs explicit baseline alignment
   because it sits next to plain text without a flex parent. */
.hero-meta .check.inline { display: inline; vertical-align: -2px; margin-right: 4px; }

/* ─── TELEGRAM MOCK (hero) ──────────────────────────────── */
/* Hero mock wrapper — anchors the absolutely-positioned float labels. */
.hero-mock { position: relative; }
.tg-frame {
  background: var(--tg-bg);
  border-radius: 24px;
  padding: 14px;
  /* Stronger spatial anchor — was --shadow-lg */
  box-shadow:
    0 1px 2px rgba(15,11,31,0.04),
    0 24px 48px -12px rgba(15,11,31,0.18),
    0 8px 16px -8px rgba(124,58,237,0.10);
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--border);
}
@media (max-width: 1100px) and (min-width: 961px) {
  .tg-frame { max-width: 100%; }
}
.tg-head {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 6%, transparent);
}
.tg-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15,11,31,0.18);
  overflow: hidden;
  flex-shrink: 0;
}
.tg-avatar img { width: 100%; height: 100%; display: block; }
.tg-title { font-size: 14px; font-weight: 600; color: var(--fg); display: flex; align-items: center; gap: 6px; }
.tg-verified { width: 14px; height: 14px; display: inline-flex; color: var(--tg-blue); }
.tg-subtitle { font-size: 11px; color: var(--fg-subtle); }
.tg-body { padding: 14px 6px 6px; display: flex; flex-direction: column; gap: 10px; }
.tg-msg {
  background: var(--surface);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  max-width: 92%;
  box-shadow: 0 1px 1px rgba(0,0,0,0.03);
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg);
}
.tg-msg-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; color: var(--fg); line-height: 1.3; }
.tg-msg-body { color: var(--fg-2); font-size: 12.5px; line-height: 1.5; margin-bottom: 10px; }
.tg-msg-link { font-size: 11.5px; color: var(--tg-blue); font-family: var(--font-mono); display: inline-flex; align-items: center; gap: 4px; }

.tg-meta-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; align-items: center; }

/* ─── SCORE PILLS (AA-compliant) ────────────────────────── */
/* Fingerprint detail — subtle inner highlight + pressed feel
   makes it read as a real product chip, not a flat div. */
.score-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--success-bg); color: var(--success-fg);
  font-weight: 700; font-size: 11px; font-family: var(--font-mono);
  background-image: linear-gradient(180deg,
    color-mix(in srgb, #fff 55%, transparent) 0%,
    transparent 55%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent),
    inset 0 -1px 0 color-mix(in srgb, currentColor 10%, transparent);
}
.score-pill.med { background: var(--warn-bg); color: var(--warn-fg); }
.score-pill.low { background: var(--danger-bg); color: var(--danger-fg); }
.score-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.reason-tag {
  font-size: 10.5px; font-weight: 500;
  padding: 3px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--fg-muted);
  border: 1px solid var(--border);
  font-family: var(--font-mono); letter-spacing: 0.02em;
}

/* ─── TG keyboard ───────────────────────────────────────── */
.tg-kb { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 2px; }
.tg-kb-btn {
  background: var(--surface-2);
  color: var(--fg-2);
  border: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12.5px; font-weight: 600;
  text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-family: var(--font-body);
}
.tg-kb-btn.primary { background: var(--accent); color: #fff; }
.tg-kb-btn.full { grid-column: 1 / -1; }
.tg-time { font-size: 10px; color: var(--fg-subtle); font-family: var(--font-mono); text-align: right; margin-top: 4px; }

/* ─── Floating labels next to mock ──────────────────────── */
.float-label {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-2);
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
  z-index: 3;
  font-family: var(--font-mono);
}
.float-label .dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent);
  /* Pulse removed — static dot is honest when the number it accompanies is static */
}
.float-label.tl { top: -14px; left: -24px; }
.float-label.br { bottom: -14px; right: -24px; }
@media (max-width: 640px) {
  .float-label.tl { left: 8px; }
  .float-label.br { right: 8px; }
}

/* ─── LOGOS STRIP — monochrome by default, color on hover ─ */
.logos-strip {
  padding: 24px 0 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.logos-label { text-align: center; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--fg-subtle); margin-bottom: 16px; }
.logos-row { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; align-items: center; padding-bottom: 12px; }
.logo-item {
  display: flex; align-items: center; gap: 8px;
  color: var(--fg-subtle);
  font-weight: 600; font-size: 14px;
  opacity: 0.75;
  transition: opacity 0.18s ease, color 0.18s ease, filter 0.18s ease;
}
.logo-icon {
  /* Optical-mass equalizer — every brand glyph sits in a 22×22 box,
     centered. This kills the "jumping baseline" effect on the strip. */
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
}
.logo-item svg {
  flex-shrink: 0;
  /* Default: mute brand color → grayscale via filters */
  fill: currentColor;
  filter: grayscale(1);
  transition: filter 0.18s ease, fill 0.18s ease;
}
.logo-item:hover { opacity: 1; color: var(--fg); }
.logo-item:hover svg { filter: grayscale(0); }
.logo-item[data-mono] svg { fill: currentColor !important; filter: none; } /* "web" item — always currentColor */
@media (max-width: 640px) { .logos-row { gap: 24px; } .logo-item { font-size: 12px; } }

/* ─── SECTION HEADS ─────────────────────────────────────── */
.section-title {
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--fg);
  max-width: 20ch;
}
/* Adjacent-sibling spacing: when a title follows an eyebrow,
   keep a consistent 16px gap across EN and localized headers. */
.eyebrow + .section-title { margin-top: 16px; }
.section-sub {
  font-size: 16px; line-height: 1.6; color: var(--fg-muted);
  max-width: 56ch; margin-top: 14px;
}
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-title,
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ─── HOW IT WORKS ──────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
@media (max-width: 960px) { .how-grid { grid-template-columns: 1fr; } }
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column;
  min-height: 360px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.how-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.how-step { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--fg-subtle); text-transform: uppercase; margin-bottom: 14px; }
.how-step-num { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); color: var(--fg-2); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; }
.how-title { font-size: 20px; font-weight: 600; color: var(--fg); margin-bottom: 8px; }
.how-desc { font-size: 14px; line-height: 1.55; color: var(--fg-muted); margin-bottom: 20px; }
.how-visual {
  margin-top: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  min-height: 130px;
  display: flex; flex-direction: column; justify-content: center;
}
.src-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; color: var(--fg-2); margin: 2px 3px; }
.src-pill svg { flex-shrink: 0; }
/* Trailing "+ N more" pill in the source list — same shape, accent text. */
.src-pill-more { color: var(--accent); font-weight: 600; }

/* Second row of the how-it-works pipeline (stages 04→05).
   Override for the trailing 3-cell row that visually continues from
   the 5-cell row above. Base diagram styles in CONTENT PAGES section. */
.pipeline-diagram.row-2 { grid-template-columns: repeat(3, 1fr); margin-top: -32px; }

.flow-row { display: flex; flex-direction: column; gap: 6px; }
.flow-item { display: flex; align-items: center; justify-content: space-between; background: var(--surface); padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border); font-size: 11.5px; color: var(--fg-2); }
.flow-item.out { opacity: 0.4; text-decoration: line-through; }
.flow-item-title { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.schedule-mock { display: flex; flex-direction: column; gap: 6px; }
.sched-row { display: flex; align-items: center; gap: 10px; font-size: 12px; font-family: var(--font-mono); color: var(--fg-2); }
.sched-time { color: var(--fg-2); font-weight: 700; background: var(--surface-2); padding: 2px 8px; border-radius: 6px; min-width: 56px; text-align: center; }
.sched-row.done .sched-time { color: var(--fg-subtle); background: color-mix(in srgb, var(--fg-subtle) 10%, transparent); }
.sched-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-muted); font-family: var(--font-body); font-size: 12.5px; }
.sched-row.done .sched-title { color: var(--fg-subtle); }
.sched-status { font-size: 10.5px; color: var(--fg-subtle); font-family: var(--font-mono); }
.sched-status.live { color: var(--success); }

/* ─── FEATURES ──────────────────────────────────────────── */
.feat-primary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
@media (max-width: 960px) { .feat-primary { grid-template-columns: 1fr; } }
.feat-main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.feat-main:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.feat-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); color: var(--fg-2); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat-title { font-size: 18px; font-weight: 600; color: var(--fg); margin-bottom: 8px; }
.feat-desc { font-size: 14px; line-height: 1.55; color: var(--fg-muted); }

.feat-compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feat-compact .feat-small.feat-span { grid-column: span 1; }
@media (max-width: 600px) { .feat-compact { grid-template-columns: 1fr; } }
.feat-small { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.feat-small:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.feat-small-label { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-subtle); margin-bottom: 6px; }
.feat-small-title { font-size: 14px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.feat-small-desc { font-size: 12.5px; color: var(--fg-muted); line-height: 1.45; }

/* ─── SHOWCASE ──────────────────────────────────────────── */
.showcase {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .showcase-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.ch-card { background: var(--tg-bg); border-radius: 18px; padding: 10px; border: 1px solid var(--border); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.ch-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.ch-head { background: var(--surface); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ch-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px; font-family: var(--font-display);
  flex-shrink: 0;
}
/* Channel-avatar variants — Violet · Ink · Graphite (in-palette) */
.ch-avatar.av-1 { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); }
.ch-avatar.av-2 { background: linear-gradient(135deg, #2A2340, #0F0B1F); }       /* Ink */
.ch-avatar.av-3 { background: linear-gradient(135deg, #6E6478, #4A4356); }       /* Graphite */

.ch-name { font-weight: 600; font-size: 13.5px; color: var(--fg); display: flex; align-items: center; gap: 4px; }
.ch-sub { font-size: 11px; color: var(--fg-subtle); }
.ch-post { background: var(--surface); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; line-height: 1.5; color: var(--fg); }
.ch-post-title { font-weight: 700; font-size: 13px; margin-bottom: 6px; line-height: 1.35; }
.ch-post-body { color: var(--fg-2); font-size: 12px; line-height: 1.55; }
.ch-post-footer { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 11px; color: var(--fg-subtle); font-family: var(--font-mono); }
.ch-post-footer .eye { display: inline-flex; align-items: center; gap: 3px; }
.ch-caption { margin-top: 12px; font-size: 12.5px; text-align: center; color: var(--fg-subtle); font-family: var(--font-mono); }
.ch-caption strong { color: var(--accent); font-weight: 600; }

/* ─── PRICING ───────────────────────────────────────────── */
.pricing-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
@media (max-width: 720px) { .pricing-wrap { grid-template-columns: 1fr; } .pricing-wrap .price-pro { order: -1; } }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.price-card.pro {
  /* Soft violet ring — was hard 2px solid --accent, which screamed louder than the card */
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 10%, transparent);
}
.price-card.pro:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 14px 44px color-mix(in srgb, var(--accent) 14%, transparent);
}
.price-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.price-name { font-size: 14px; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 4px; }
.price-amount .num { font-family: var(--font-mono); font-size: 44px; font-weight: 700; color: var(--fg); letter-spacing: -0.03em; line-height: 1.1; }
.price-amount .unit { font-size: 15px; color: var(--fg-muted); font-weight: 500; }
/* Pro-card "1000 ⭐" runs taller than "$0" because the star glyph has higher cap-height;
   pin a baseline so Free and Pro cards align row-by-row in localized layouts. */
.price-card.pro .price-amount .num { height: 57px; }
.price-context { font-size: 12.5px; color: var(--fg-subtle); margin-bottom: 24px; font-family: var(--font-mono); }
.price-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; }
.price-features li { display: flex; gap: 10px; font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.price-features li .chk { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.price-features li.off { color: var(--fg-subtle); }
.price-features li.off .chk { color: var(--fg-subtle); }
.price-btn { width: 100%; text-align: center; justify-content: center; margin-top: auto; }

/* ─── CTA FINAL — quiet surface, not a tonal-shift slab ─── */
.cta-final {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::after {
  /* Single soft violet glow — barely-there warmth, not a spotlight */
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 80% 100%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final h2 { color: var(--fg); font-size: clamp(28px, 3.5vw, 40px); position: relative; z-index: 1; margin-bottom: 14px; }
.cta-final p { color: var(--fg-muted); font-size: 16px; margin-bottom: 24px; position: relative; z-index: 1; }
.cta-final .btn { position: relative; z-index: 1; }

/* ─── FOOTER (4-col + bottom bar) ───────────────────────── */
footer { padding: 48px 0 28px; border-top: 1px solid var(--border); color: var(--fg-muted); font-size: 13px; background: var(--bg); }
.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 32px;
  align-items: start;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .foot-brand-col { grid-column: span 2; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } .foot-brand-col { grid-column: span 1; } }

.foot-brand-col, .foot-col { display: flex; flex-direction: column; gap: 12px; }

.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--fg); }
.foot-brand .brand-mark { width: 24px; height: 24px; }
.foot-tagline { font-size: 13px; line-height: 1.5; color: var(--fg-muted); }
.foot-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.foot-cta:hover { color: var(--fg); }
.foot-links { display: flex; flex-direction: column; gap: 8px; }

.foot-col-title { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-subtle); font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-col a { color: var(--fg-muted); transition: color 0.15s ease; }
.foot-col a:hover { color: var(--fg); }

.foot-bottom {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--fg-subtle);
}
.foot-bottom-left { font-size: 11.5px; color: var(--fg-subtle); line-height: 1.5; max-width: 70ch; }
.foot-bottom-left .sep { display: inline-block; margin: 0 8px; opacity: 0.5; }
.foot-disclaimer { color: var(--fg-subtle); opacity: 0.75; }
/* Footer language switcher removed — single switcher in nav is enough */

/* ─── LANGUAGE HINT TOAST ───────────────────────────────── */
@keyframes hint-arrow { 0%, 100% { transform: translateX(0); } 60% { transform: translateX(5px); } }
@keyframes hint-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.lang-hint {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(15, 11, 31, 0.12);
  padding: 18px 20px 16px;
  width: 240px;
  font-family: var(--font-body);
  display: none;
}
.lang-hint.show { display: block; animation: hint-in 0.35s ease-out both; }
.lang-hint-text { font-size: 14px; font-weight: 600; color: var(--fg); margin: 0 0 14px; line-height: 1.4; }
.lang-hint-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 14px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; text-decoration: none;
  transition: background 0.15s ease;
  margin-bottom: 8px;
}
.lang-hint-btn:hover { background: var(--accent-strong); }
.lang-hint-arrow { display: inline-block; animation: hint-arrow 1.1s ease-in-out infinite; }
.lang-hint-dismiss { display: block; width: 100%; padding: 6px; background: none; border: none; font-size: 13px; color: var(--fg-subtle); font-family: var(--font-body); cursor: pointer; text-align: center; transition: color 0.15s ease; }
.lang-hint-dismiss:hover { color: var(--fg-muted); }
@media (max-width: 600px) { .lang-hint { right: 16px; left: 16px; width: auto; bottom: 16px; } }

/* ─── REVEAL ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* Touch devices — shorter reveal duration to avoid scroll flicker */
@media (hover: none) and (pointer: coarse) {
  .reveal { transition-duration: 0.3s; }
}

/* ─── REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   CONTENT PAGES — was mira-page.css (merged 2026-04-27)
   Used by: how-it-works, faq, changelog, blog/*, legal pages
   ============================================================ */

/* ─── LAYOUT ─────────────────────────────────────────────── */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.article-wrap.hero,
.article-hero { padding-top: 130px; padding-bottom: 24px; }

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--fg-subtle); letter-spacing: 0.04em;
  margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px;
}
.breadcrumb a { color: var(--fg-subtle); }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb span.sep { opacity: 0.5; }

/* ─── ARTICLE HERO ELEMENTS ──────────────────────────────── */
.article-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.article-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.article-title {
  font-size: clamp(34px, 4.6vw, 50px); line-height: 1.08; font-weight: 700;
  color: var(--fg); margin: 0 0 16px;
}
.article-wrap.hero h1,
.article-hero h1 {
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 1.08; font-weight: 700;
  color: var(--fg); margin: 18px 0 14px;
}
.article-wrap.hero .hero-sub,
.article-hero .hero-sub {
  font-size: 17.5px; line-height: 1.6;
  color: var(--fg-muted); max-width: 60ch;
}
.article-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--fg-subtle); margin-bottom: 0; letter-spacing: 0.04em;
}
.dot {
  display: inline-block; width: 3px; height: 3px;
  border-radius: 50%; background: currentColor; opacity: 0.4;
  vertical-align: middle; font-size: 0; line-height: 0; flex-shrink: 0;
}
.article-divider { height: 1px; background: var(--border); border: 0; margin: 20px 0 0; }
.hero-divider    { height: 1px; background: var(--border); border: 0; margin: 36px 0 28px; }

/* ─── PIPELINE DIAGRAM (how-it-works) ────────────────────── */
.pipeline-diagram {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px; margin: 0 0 40px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px; align-items: center; overflow-x: auto;
}
@media (max-width: 720px) {
  .pipeline-diagram { grid-template-columns: 1fr; gap: 14px; padding: 22px 18px; }
}
.pipe-stage {
  text-align: center; padding: 14px 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); position: relative;
}
.pipe-stage-num {
  font-family: var(--font-mono); font-size: 10px; color: var(--fg-subtle);
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px;
}
.pipe-stage-name {
  font-size: 13.5px; font-weight: 600; color: var(--fg);
  line-height: 1.25; font-family: var(--font-display);
}
.pipe-stage-desc {
  font-size: 11px; color: var(--fg-subtle);
  margin-top: 6px; line-height: 1.35;
}
.pipe-arrow {
  text-align: center; color: var(--accent-border);
  font-weight: 700; font-size: 18px; align-self: center;
}
@media (max-width: 720px) { .pipe-arrow { display: none; } }

/* ─── ARTICLE BODY ───────────────────────────────────────── */
.body, .article-body { padding-bottom: 64px; }
.article-body { padding-top: 36px; }

.body p, .article-body p {
  font-size: 17px; line-height: 1.72; color: var(--fg-2); margin: 0 0 22px;
}
.body h2, .article-body h2 {
  font-size: 28px; font-weight: 600; color: var(--fg);
  margin: 56px 0 18px; line-height: 1.2; scroll-margin-top: 90px;
}
.body h2 .stage-tag, .article-body h2 .stage-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); background: var(--accent-tint);
  padding: 4px 10px; border-radius: 999px;
  vertical-align: middle; margin-right: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
}
.body h3, .article-body h3 { font-size: 19px; font-weight: 600; color: var(--fg); margin: 28px 0 12px; }
.body strong, .article-body strong { color: var(--fg); font-weight: 600; }
.body ul, .body ol, .article-body ul, .article-body ol {
  font-size: 17px; line-height: 1.7; color: var(--fg-2);
  margin: 0 0 22px; padding-left: 24px;
}
.body li, .article-body li { margin-bottom: 8px; }
.body li::marker, .article-body li::marker { color: var(--accent); }

/* Inline code */
.body code, .article-body code {
  font-family: var(--font-mono); font-size: 14px;
  background: var(--accent-tint); color: var(--accent-strong);
  padding: 2px 7px; border-radius: 5px;
  border: 1px solid var(--accent-soft);
}

/* Code block */
.body pre, .article-body pre {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  overflow-x: auto; margin: 0 0 28px;
  font-family: var(--font-mono); font-size: 13.5px;
  line-height: 1.65; color: var(--fg-2);
}
.body pre code, .article-body pre code {
  background: none; border: none; padding: 0;
  font-size: inherit; color: inherit;
}

/* Links — exclude buttons from color override */
.body a:not(.btn), .article-body a:not(.btn) { color: var(--accent); text-decoration: none; }
.body a:not(.btn):hover, .article-body a:not(.btn):hover { text-decoration: underline; }

/* Blockquote */
.body blockquote, .article-body blockquote {
  margin: 28px 0; padding: 16px 22px;
  border-left: 3px solid var(--accent-border);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
}
.body blockquote p, .article-body blockquote p {
  margin: 0; font-style: italic; color: var(--fg-2); font-size: 16px; line-height: 1.65;
}

/* ─── TL;DR BOX ──────────────────────────────────────────── */
.tldr {
  background: var(--accent-tint); border: 1px solid var(--accent-soft);
  border-radius: var(--radius); padding: 18px 22px; margin: 0 0 36px;
}
.tldr-label {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px;
}
.tldr p { font-size: 15.5px; line-height: 1.65; color: var(--fg-2); margin: 0; }

/* ─── TABLE OF CONTENTS ──────────────────────────────────── */
.toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px; margin: 0 0 36px;
}
.toc-title {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  color: var(--fg-subtle); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px;
}
.toc ol, .toc ul { font-size: 14.5px; line-height: 1.6; color: var(--fg-2); margin: 0; padding-left: 18px; }
.toc li { margin-bottom: 5px; }
.toc a:not(.btn) { color: var(--accent); text-decoration: none; }
.toc a:not(.btn):hover { text-decoration: underline; }

/* ─── INLINE CTA BANNER ──────────────────────────────────── */
.inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--surface); border: 1px solid var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 32px 0;
}
.inline-cta-text { flex: 1; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.inline-cta-text strong { color: var(--fg); display: block; margin-bottom: 3px; }
@media (max-width: 600px) { .inline-cta { flex-direction: column; align-items: flex-start; } }

/* ─── INLINE ASIDE ───────────────────────────────────────── */
.aside {
  margin: 28px 0; padding: 18px 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15.5px; line-height: 1.65; color: var(--fg-2);
}
.aside-label {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px;
}

/* ─── TRUST GRID ─────────────────────────────────────────── */
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 32px; }
@media (max-width: 640px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.trust-card h3 { font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.trust-card p { font-size: 14px; line-height: 1.55; color: var(--fg-muted); margin: 0; }

/* ─── ARTICLE CTA FINAL ──────────────────────────────────── */
.article-wrap .cta-final,
.body .cta-final,
.article-body .cta-final { padding: 48px 36px; margin: 48px 0 0; }
.article-wrap .cta-final h2,
.body .cta-final h2,
.article-body .cta-final h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.article-wrap .cta-final p,
.body .cta-final p,
.article-body .cta-final p { font-size: 15.5px; max-width: 44ch; margin-left: auto; margin-right: auto; }

/* ─── FAQ LIST ───────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin: 32px 0; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 600; color: var(--fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); font-size: 18px; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-answer { padding: 16px 22px 20px; font-size: 15px; line-height: 1.65; color: var(--fg-2); }
.faq-answer a:not(.btn) { color: var(--accent); }

/* ─── CHANGELOG (.log-* classes) ─────────────────────────── */
section.page.log {
  max-width: 760px; margin: 0 auto; padding: 40px 24px 64px;
  display: flex; flex-direction: column; gap: 32px;
}
.log-entry {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 32px 28px;
  box-shadow: var(--shadow);
  scroll-margin-top: 100px;
}
.log-eyebrow { margin-bottom: 14px; }
.log-month {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600;
  color: var(--fg); margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.log-intro {
  font-size: 16px; line-height: 1.6;
  color: var(--fg-muted);
  margin: 0 0 24px; max-width: 60ch;
}
.log-divider {
  border: 0; height: 1px; background: var(--border);
  margin: 0 0 24px;
}
.log-section { margin-bottom: 28px; }
.log-section:last-child { margin-bottom: 0; }
.log-section-head {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fg-muted); margin-bottom: 14px;
}
.log-section-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--fg-subtle);
}
.log-section.is-new      .log-section-dot { background: var(--success-fg); }
.log-section.is-improved .log-section-dot { background: var(--accent); }
.log-section.is-stability .log-section-dot { background: var(--warn-fg); }
.log-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.log-list li {
  font-size: 15px; line-height: 1.6;
  color: var(--fg-2);
  padding-left: 18px; position: relative;
}
.log-list li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--fg-subtle);
  position: absolute; left: 4px; top: 10px;
}
.log-list li strong { color: var(--fg); font-weight: 600; }
.log-list a:not(.btn) { color: var(--accent); }

@media (max-width: 600px) {
  .log-entry { padding: 24px 22px; }
  .log-month { font-size: 24px; }
}

/* Legacy single-event entry styles — retained for backward compatibility */
.log-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.log-date { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: 0.12em; }
.log-title { font-size: 18px; font-weight: 600; color: var(--fg); margin-bottom: 10px; font-family: var(--font-display); }
.log-body { font-size: 15px; line-height: 1.65; color: var(--fg-2); }
.log-body p { margin: 0 0 10px; }
.log-body p:last-child { margin-bottom: 0; }
.log-body a:not(.btn) { color: var(--accent); }

/* ─── TAG PILLS (shared by changelog + blog) ─────────────── */
.tag, .log-tag {
  display: inline-block; font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.1em; margin-right: 4px;
}
.log-tag.added    { background: var(--success-bg); color: var(--success-fg); }
.log-tag.improved { background: var(--accent-tint); color: var(--accent); }
.log-tag.fixed    { background: var(--warn-bg); color: var(--warn-fg); }
.log-tag.launched { background: var(--accent-soft); color: var(--accent-strong); }

/* ─── BLOG INDEX ─────────────────────────────────────────── */
.blog-hero { padding: 130px 0 48px; }
.blog-hero-title { font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.12; color: var(--fg); margin: 14px 0 12px; }
.blog-hero-sub { font-size: 17px; line-height: 1.6; color: var(--fg-muted); max-width: 58ch; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 28px 0 64px; }
@media (max-width: 700px) { .post-grid { grid-template-columns: 1fr; } }

.post-card { display: block; padding: 24px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.post-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }

/* Post tag badges — colored by category */
.post-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
  background: var(--accent-tint); color: var(--accent);
}
.post-tag.tag-comparison { background: #d1fae5; color: #065f46; }
[data-theme="dark"] .post-tag.tag-comparison { background: #064e3b; color: #6ee7b7; }
.post-tag.tag-collection  { background: #fef3c7; color: #92400e; }
[data-theme="dark"] .post-tag.tag-collection  { background: #451a03; color: #fcd34d; }

.post-title   { font-size: 18px; font-weight: 600; color: var(--fg); margin: 0 0 10px; line-height: 1.3; }
.post-excerpt { font-size: 14px; line-height: 1.58; color: var(--fg-muted); margin: 0 0 14px; }
.post-meta    { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; color: var(--fg-subtle); letter-spacing: 0.06em; }
.arrow        { margin-left: auto; color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ─── COMPARISON TABLE ───────────────────────────────────── */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin: 28px 0; font-size: 14px;
}
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table th { background: var(--surface-2); font-weight: 600; color: var(--fg); font-size: 13px; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td.feature { color: var(--fg-2); font-weight: 500; }
.compare-table td.yes, .compare-table td.y { color: var(--success-fg); font-weight: 600; }
.compare-table td.no,  .compare-table td.n { color: var(--fg-subtle); }
.compare-table td.m { color: var(--fg-2); }

/* ─── PRODUCT CARDS (best-ai-bots) ──────────────────────── */
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 26px; margin-bottom: 20px; }
.product-card.mira { border-color: var(--accent-border); border-width: 2px; }
.product-name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.product-name h4 { font-size: 17px; font-weight: 700; color: var(--fg); margin: 0; }
.product-tag { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-subtle); letter-spacing: 0.06em; flex: 1; min-width: 0; }
.product-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.5; }
.product-row:last-of-type { border-bottom: 0; }
.product-row .k { font-weight: 600; color: var(--fg); min-width: 90px; flex-shrink: 0; }
.product-row .v { color: var(--fg-2); }
.product-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 600px) { .product-pros-cons { grid-template-columns: 1fr; } }
.pros-list, .cons-list { list-style: none; padding: 0; margin: 0; font-size: 13.5px; line-height: 1.55; }
.pros-list li, .cons-list li { display: flex; gap: 7px; margin-bottom: 6px; color: var(--fg-2); align-items: flex-start; }
.pros-list li span, .cons-list li span { flex: 1; }
.pros-list li::before { content: '✓'; color: var(--success-fg); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.cons-list li::before { content: '×'; color: var(--fg-subtle); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ─── VERDICT CARDS (comparison posts) ──────────────────── */
.verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
@media (max-width: 640px) { .verdict-grid { grid-template-columns: 1fr; } }
.verdict-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.verdict-card.mira { border-color: var(--accent-border); border-width: 2px; }
.verdict-card h3 { font-size: 15px; font-weight: 600; color: var(--fg); margin: 0 0 12px; }
.verdict-card ul { font-size: 14px; line-height: 1.55; color: var(--fg-2); margin: 0; padding-left: 18px; }
.verdict-card li { margin-bottom: 6px; }

/* ─── THEME GRID (telegram-themes post) ─────────────────── */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 24px 0; }
.theme-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.theme-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.theme-card h3 { font-size: 15px; font-weight: 600; color: var(--fg); margin: 0; padding: 16px 16px 0; }
.body .theme-card p, .article-body .theme-card p { font-size: 15px; line-height: 1.6; color: var(--fg-2); margin: 8px 0 0; padding: 0 16px; }
.theme-meta { padding: 12px 16px 16px; margin-top: auto; }
.theme-swatch { display: flex; gap: 3px; height: 22px; margin-bottom: 12px; }
.theme-swatch span { flex: 1; border-radius: 4px; }
.theme-card a:not(.btn) { display: block; font-size: 13px; color: var(--accent); }
.theme-card a:not(.btn):hover { text-decoration: underline; }

/* ─── LEGAL PAGES (terms, privacy, faq) ─────────────────── */
.legal-content { display: block; }
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 130px 24px 80px; }
@media (max-width: 640px) { .legal-wrap { padding: 100px 20px 60px; } }
.legal-lead { font-size: 16px; line-height: 1.65; color: var(--fg-2); margin: 10px 0 0; }

.legal-eyebrow {
  display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px;
}
.legal-title { font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.1; color: var(--fg); margin: 0 0 14px; }
.legal-meta { font-family: var(--font-mono); font-size: 13px; color: var(--fg-subtle); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.legal-meta-sep { opacity: 0.4; }
.legal-divider { height: 1px; background: var(--border); border: 0; margin: 28px 0 40px; }
.legal-section { padding: 28px 0; border-bottom: 1px solid var(--border); }
.legal-section:last-child { border-bottom: 0; }
.legal-section h2 { font-size: 18px; font-weight: 600; color: var(--fg); margin: 0 0 14px; display: flex; align-items: baseline; gap: 10px; }
.section-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 700; }
.legal-section-body { font-size: 15.5px; line-height: 1.72; color: var(--fg-2); }
.legal-section-body p { margin: 0 0 14px; }
.legal-section-body p:last-child { margin-bottom: 0; }
.legal-section-body ul, .legal-section-body ol { padding-left: 22px; margin: 0 0 14px; }
.legal-section-body li { margin-bottom: 6px; }
.legal-section-body strong { color: var(--fg); }
.legal-section-body code { font-family: var(--font-mono); background: var(--accent-tint); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.legal-section-body a:not(.btn) { color: var(--accent); }
.legal-contact { font-size: 15.5px; line-height: 1.7; color: var(--fg-2); }
.legal-contact a:not(.btn) { color: var(--accent); }

/* ─── MISSING COMPONENTS ─────────────────────────────────── */
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: 8px; }

.divider { height: 1px; background: var(--border); border: 0; margin: 28px 0; }

.steps { list-style: decimal; padding-left: 24px; margin: 0 0 28px; display: flex; flex-direction: column; gap: 16px; }
.steps li { font-size: 16px; line-height: 1.65; color: var(--fg-2); }
.steps li::marker { color: var(--accent); font-weight: 700; font-family: var(--font-mono); }

.subscribe-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 28px; margin-top: 16px;
}
.subscribe-card-text { flex: 1; }
.subscribe-card-text strong { display: block; font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.subscribe-card-text span { font-size: 14px; color: var(--fg-muted); }
@media (max-width: 600px) { .subscribe-card { flex-direction: column; align-items: flex-start; } }
