/* combined: _design-tokens + wstart_2 — auto, tokens->wstart */
/* ═══════════════════════════════════════════════════════════════════
   whoareyou.io · DESIGN TOKENS (global)
   ───────────────────────────────────────────────────────────────────
   Підключається ПЕРШИМ у <head>, до wstart_2.css:

       <link rel="stylesheet" href="/tmpl/_design-tokens.css?v=260511a">
       <link rel="stylesheet" href="/tmpl/wstart_2.css?v=260511a">

   Що цей файл робить:
   • Override --font-display: Spectral → Geist (sans everywhere, no засічок)
   • Override --font-mono: system → Geist Mono (Berkeley Mono-like)
   • font-feature-settings для Geist (cv11, ss01 — Linear-style alternates)
   • Додає Linear-style ваги (510 / 590 / 680) — для нових компонент
   • Додає severity палітру з risk-analyzer.php (low/mod/high/crit)
   • Додає radius scale 6/8/12/16/24
   
   Що файл НЕ робить:
   • Не зачіпає колір/фон/decor — існуюча світла палітра лишається
   • Не зачіпає існуючі h1-h4/p правила (вони автоматично переключаться 
     на Geist через override --font-display)
   • Не зламає dark hero на головній (там окремі CSS overrides)
   ═══════════════════════════════════════════════════════════════════ */


/* ─── FONTS ───────────────────────────────────────────────────────── */
/* Підвантажуємо Geist Variable (wght 100-900) + Geist Mono.
   Старий <link> на Spectral у header-new.php можна залишити (Spectral
   просто перестане використовуватись), або видалити для меншого download. */



/* ─── TOKEN OVERRIDES ─────────────────────────────────────────────── */
:root {
  /* ── Typography: override Spectral → Geist для headings ── */
  --font-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* ── Linear-style weights ── 
     Variable шрифт дозволяє нестандартні значення. Якщо хочеш стримніший
     вигляд (Linear) — використовуй ці замість round 500/600/700 в нових
     правилах. Старі правила залишаються round, вони працюють. */
  --fw-light:    300;
  --fw-normal:   400;
  --fw-medium:   510;   /* замість 500 */
  --fw-semibold: 590;   /* замість 600 */
  --fw-bold:     680;   /* замість 700 */

  /* ── Radius scale ── */
  --radius-4:  4px;
  --radius-6:  6px;
  --radius-8:  8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-24: 24px;

  /* ── Severity palette (точно з risk-analyzer.php) ──
     Використовується в hero preview, scoring, factors, records.
     Для light theme: hex тони муті + бордер-tinted bg.
     Для dark theme (head dark hero) — ті ж самі hex (вони працюють на обох). */
  --sev-low:        #007680;
  --sev-low-bg:     rgba(0,118,128,0.14);
  --sev-low-line:   rgba(0,118,128,0.45);

  --sev-mod:        #C4A24E;
  --sev-mod-bg:     rgba(196,162,78,0.16);
  --sev-mod-line:   rgba(196,162,78,0.50);

  --sev-high:       #C47D3E;
  --sev-high-bg:    rgba(196,125,62,0.16);
  --sev-high-line:  rgba(196,125,62,0.50);

  --sev-crit:       #C44E4E;
  --sev-crit-bg:    rgba(196,78,78,0.15);
  --sev-crit-line:  rgba(196,78,78,0.50);

  --sev-extreme:    #943232;
  --sev-extreme-bg: rgba(148,50,50,0.16);

  /* ── Risk-bar gradient (5-stop, з реального коду) ── */
  --risk-gradient: linear-gradient(90deg,
    #007680 0%, #007680 14%,
    #C4A24E 32%,
    #C47D3E 55%,
    #C44E4E 80%,
    #7A1F1F 100%);

  /* ── Translucent borders (Linear-style тонкі лінії) ──
     На світлому фоні залиш існуючий --border, ці — для overlays/dark blocks */
  --line-faint:     rgba(0,0,0,0.04);
  --line-soft:      rgba(0,0,0,0.06);
  --line-medium:    rgba(0,0,0,0.10);

  /* ── Z-index scale (consistency для popovers/modals) ── */
  --z-header:    100;
  --z-overlay:   500;
  --z-popover:   600;
  --z-modal:     700;
  --z-toast:     800;
  --z-tooltip:  1100;
}


/* ─── BASE TYPOGRAPHY ─────────────────────────────────────────────── */
/* Geist features — стилістичні альтернати Linear використовує globally.
   cv11 — альтернативна одинарна "1" (без верхньої засічки)
   ss01 — geometric альтернати для деяких символів */
body {
  font-feature-settings: 'cv11', 'ss01';
  font-variation-settings: 'opsz' auto;
}

/* Mono utility — для технічних елементів (дати, score, ID, числа) */
.text-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* Tabular numbers utility — для всіх числових колонок (метрики, scoring) */
.tabular {
  font-variant-numeric: tabular-nums;
}

/* Meta text utility — для timestamps, sub-labels, footnotes */
.text-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-normal);
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}


/* ─── OPTIONAL: tighter letter-spacing for headings (Linear feel) ─── */
/* Розкоментуй ці правила якщо хочеш точно Linear ритм headings.
   Поки що — закоментовано, бо існуючі rules в wstart_2.css вже мають
   адекватний letter-spacing (-0.04em для h1, -0.025em для h2). */
/*
h1 { letter-spacing: -0.032em; font-weight: var(--fw-semibold); }
h2 { letter-spacing: -0.028em; font-weight: var(--fw-medium); }
h3 { letter-spacing: -0.02em;  font-weight: var(--fw-medium); }
*/


/* ═══════════════════════════════════════════════════════════════════
   FOOTER REFINEMENT (global — застосовується на всіх сторінках)
   Минималізм Linear-style: mono headings, тонкі links, без декоративних кнопок
   ═══════════════════════════════════════════════════════════════════ */

footer {
  padding: 64px 0 28px !important;
}
.footer-content {
  max-width: 1200px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 56px 48px !important;
  padding: 0 32px !important;
}

/* Section headings — mono caps, teal-300, тонкі */
.footer-section h3 {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: var(--fw-medium) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: #4DB8BF !important;
  margin-bottom: 16px !important;
}

/* Links — clean, full opacity, тонкий hover */
.footer-links li {
  margin-bottom: 9px !important;
}
.footer-links a {
  color: rgba(236, 254, 255, 0.72) !important;
  font-size: 13.5px !important;
  font-weight: var(--fw-normal) !important;
  opacity: 1 !important;
  letter-spacing: -0.005em !important;
  transition: color .15s !important;
}
.footer-links a:hover {
  color: #4DB8BF !important;
}

/* Social icons — стримані */
.social-links {
  gap: 10px !important;
  margin-top: 4px !important;
}
.social-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  color: rgba(236, 254, 255, 0.6) !important;
  transition: all .15s !important;
}
.social-icon:hover {
  border-color: rgba(77, 184, 191, 0.4) !important;
  background: rgba(77, 184, 191, 0.06) !important;
  color: #4DB8BF !important;
  transform: none !important;
}
.social-icon svg {
  width: 15px !important;
  height: 15px !important;
}
/* Прибираємо платформ-specific colored hovers (вони з old design) */
.social-icon.linkedin:hover,
.social-icon.facebook:hover,
.social-icon.instagram:hover,
.social-icon.telegram:hover {
  background: rgba(77, 184, 191, 0.06) !important;
  color: #4DB8BF !important;
}

/* Support buttons — компактніші, мінімалистичні */
.footer-support-btn {
  padding: 9px 12px !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
}
.footer-support-btn:hover {
  background: rgba(77, 184, 191, 0.06) !important;
  border-color: rgba(77, 184, 191, 0.3) !important;
  transform: none !important;
}
.footer-support-btn-title {
  color: #4DB8BF !important;
  font-size: 12.5px !important;
  font-weight: var(--fw-semibold) !important;
}
.footer-support-btn-sub {
  font-size: 10.5px !important;
  color: rgba(236, 254, 255, 0.5) !important;
}
.footer-support-btn svg,
.footer-support-btn .fs-icon {
  width: 15px !important;
  height: 15px !important;
}

/* Bottom bar — тонкий separator, mono copyright */
.footer-bottom {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  color: rgba(236, 254, 255, 0.4) !important;
  letter-spacing: 0.01em !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 20px 32px 0 !important;
  margin-top: 36px !important;
  font-weight: var(--fw-normal) !important;
}

/* Mobile footer — лівий align (override wstart_2.css center) */
@media (max-width: 768px) {
  footer {
    text-align: left !important;
  }
  .footer-content {
    padding: 0 20px !important;
    gap: 36px !important;
  }
  .social-links,
  .footer-samples {
    justify-content: flex-start !important;
  }
  .footer-bottom {
    text-align: left !important;
    padding: 20px 20px 0 !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   v3 ADDENDUM (260611) — spacing · surfaces · shadows · focus · motion
   Принцип: фон світлий, контраст у ЗМІСТІ — ink-текст, виразні бордери,
   насичені акценти. Не пастель.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  /* ── Spacing scale (4px grid) ── */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px;  --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px;

  /* ── Surfaces (рішення 260611: фон майже білий) ── */
  --surface-page:   #FCFCFC;
  --surface-card:   #FFFFFF;
  --surface-sunken: #F1F5F6;
  --surface-hover:  rgba(0,118,128,0.05);

  /* ── Text: ink-контраст (теплий, НЕ slate) ── */
  --tx-primary:   #0c1f28;
  --tx-secondary: #4A5B66;
  --tx-tertiary:  #7E8C96;

  /* ── Accent ── */
  --accent:        #007680;
  --accent-strong: #005F66;
  --accent-soft:   rgba(0,118,128,0.09);

  /* ── Borders: виразні, бо фон майже білий ── */
  --bd-soft:   rgba(12,31,40,0.08);
  --bd-medium: rgba(12,31,40,0.12);
  --bd-strong: rgba(12,31,40,0.18);

  /* ── Shadow scale (відчутні, з teal-підтоном) ── */
  --shadow-xs: 0 1px 2px rgba(12,31,40,0.05);
  --shadow-sm: 0 2px 8px rgba(12,31,40,0.07);
  --shadow-md: 0 8px 24px rgba(0,118,128,0.10);
  --shadow-lg: 0 16px 40px rgba(12,31,40,0.13);

  /* ── Focus ring ── */
  --ring: 0 0 0 3px rgba(0,118,128,0.25);

  /* ── Motion ── */
  --ease: cubic-bezier(.2,.7,.3,1);
  --t-fast: 120ms;
  --t-base: 180ms;
}

/* Глобальний focus-visible */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Inputs всередині рамки-обгортки: ring малює обгортка (:focus-within), не інпут */
.rw-input-wrap input:focus-visible { box-shadow: none; }

/* ===============================  RESET & BASE  =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.58;
  /* :  -,     . 
          , "" . */
  background-color: var(--surface-page); 
  color: #1a2e3a;
}
body::before { display: none; }

@media (max-width: 1024px), (pointer: coarse) {
  body.light-page::before { display: none; }
}

/* ===============================  CSS VARIABLES  =============================== */
:root {
  /* Typography */
  --font-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* Spectral->Geist: Vercel-style, no serif */
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Colors */
  --text-primary: #1a2e3a;
  --text-secondary: #6b6b6b;
  --accent: #007680;          /* Cyber-Teal */
  --accent-light: #1a9ba6;
  --accent-hover: #005F66;
  --bg-start: #EEF2F6;
  --bg-end: #EEF2F6;
  --header-bg: var(--h-bg, transparent);
  --header-text: var(--h-text, #37352f);
  --footer-bg: #0c1f28;
  --text-footer: #d6e8ec;
  --border: rgba(55,53,47,0.09);
  --shadow: rgba(0, 118, 128, .08);
  --shadow-hover: rgba(0, 118, 128, .18);
  --card-bg: #ffffff;
  --card-hover: #ffffff;
  --bg-secondary: #EEF2F6;
  --teal-50: #E6F5F6;
  --teal-100: #CCE9EC;
  --teal-200: #99D4D9;
  --teal-300: #4DB8BF;
  --teal-400: #1a9ba6;
  --teal-500: #007680;
  --teal-600: #005F66;
  --teal-700: #004D53;
  --teal-800: #003B40;
  --teal-900: #002A2E;
  --teal-950: #001A1C;
}

/* ===============================  TYPOGRAPHY  =============================== */
/* Spectral (modern transitional serif) для заголовків, Geist для body */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 16px 0;
  color: var(--text-primary);
}
h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.16;
  margin: 32px 0 12px 0;
  color: var(--text-primary);
}
h3 {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.24;
  margin: 32px 0 12px 0;
  color: var(--text-primary);
}
p {
  font-size: clamp(17px, 2vw, 18px);
  line-height: 1.58;
  margin: 0 0 24px 0;
  color: var(--text-primary);
}
small, .caption {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
}
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 118, 128, .3);
  transition: border-color .2s ease;
}
a:hover {
  border-bottom-color: var(--accent);
}

/* ===============================  HEADER  =============================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--accent);
  box-shadow: none;
  padding: 12px 0;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.logo {
  font-family: var(--font-mono);
font-size: 24px;
font-weight: 600;
letter-spacing: -0.08em;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: none !important;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-button {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background .25s ease, box-shadow .25s ease;
}
.login-button:hover {
  background: rgba(0, 118, 128, .1);
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--shadow);
}
.burger-menu {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.burger-menu:hover {
  background: rgba(0, 118, 128, .1);
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--shadow);
}
.burger-line {
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===============================  SIDE MENU  =============================== */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 1100;
  backdrop-filter: blur(4px);
}
.menu-overlay.active {
  display: block;
}
.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100%;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(40px);
  box-shadow: -4px 0 24px var(--shadow);
  z-index: 1200;
  transition: right .3s cubic-bezier(.4, 0, .2, 1);
  padding: 32px;
  overflow-y: auto;
}
.side-menu.active {
  right: 0;
}
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.menu-header h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}
.menu-close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--accent);
  cursor: pointer;
  transition: transform .3s ease;
}
.menu-close:hover {
  transform: rotate(90deg);
}
.menu-section {
  margin-bottom: 32px;
}
.menu-section h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.menu-links {
  list-style: none;
}
.menu-links li {
  margin-bottom: 8px;
}
.menu-links a {
  display: block;
  padding: 12px 16px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
  border-radius: 12px;
  transition: all .25s ease;
  border-bottom: none;
}
.menu-links a:hover {
  background: rgba(0, 118, 128, .1);
  color: var(--accent);
  transform: translateX(4px);
}

/* ===============================  MAIN + HERO  =============================== */
main {
  flex: 1 0 auto;
  padding-top: 140px;
}
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  padding: 80px 16px 60px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -.2px;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===============================  GRID SYSTEM  =============================== */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===============================  BUTTONS  =============================== */
.test-button,
.btn-primary,
.submit-button,
.search-button {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 4px 20px rgba(0, 118, 128, .25),
              inset 0 1px 0 rgba(255, 255, 255, .15);
}
.test-button:hover,
.btn-primary:hover,
.submit-button:hover,
.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 118, 128, .35),
              inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn-secondary {
  background: rgba(0, 118, 128, .08);
  color: var(--accent);
  border: 2px solid rgba(0, 118, 128, .2);
  box-shadow: none;
}
.btn-secondary:hover {
  background: rgba(0, 118, 128, .15);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ===============================  CARDS / LISTS  =============================== */
.feature-list,
.process-grid,
.usecases-grid,
.principles-list {
  display: grid;
  gap: 16px;
}
.feature-list li,
.process-step,
.usecase-card,
.principle-item {
  padding: 24px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
  transition: all .3s ease;
}
.feature-list li:hover,
.process-step:hover,
.usecase-card:hover,
.principle-item:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16,24,40,.10), 0 0 0 1px rgba(16,24,40,.05);
}
.step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0, 118, 128, .25);
  transition: all .3s ease;
}
.process-step:hover .step-number {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 118, 128, .35);
}

/* ===============================  SECTIONS  =============================== */
.cta-section {
  margin-top: 100px;
  padding: 56px 40px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
}
.cta-button {
  display: inline-block;
  padding: 18px 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  border-radius: 12px;
  transition: all .3s ease;
  box-shadow: 0 4px 16px rgba(0, 118, 128, .3);
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 118, 128, .45);
}
.success-container,
.success-card,
.document-block,
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 48px;
  box-shadow: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
}

/* ===============================  FOOTER  =============================== */
footer {
  flex-shrink: 0;
  background: var(--footer-bg);
  color: var(--text-footer);
  padding: 56px 0 32px;
  margin-top: 0;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
  font-size: 13px;
  color: rgba(236,254,255,0.55);
  font-weight: 400;
}
.footer-section h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  color: #5eead4;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 11px;
}
.footer-links a {
  color: #ecfeff;
  font-size: 14px;
  font-weight: 400;
  transition: all .2s ease;
  border-bottom: none;
  opacity: 0.85;
}
.footer-links a:hover {
  color: #5eead4;
  opacity: 1;
}
.footer-samples {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.footer-sample-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #084c61;
  background: #5eead4;
  border: 1.5px solid #5eead4;
  text-decoration: none;
  transition: all .25s;
  box-shadow: 0 2px 8px rgba(94,234,212,0.2);
}
.footer-sample-btn:hover {
  background: #ffffff;
  color: #084c61;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(94,234,212,0.35);
}
.footer-sample-btn svg {
  flex-shrink: 0;
  opacity: 1;
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  transition: all .3s ease;
  border: 2px solid transparent;
  fill: currentColor;
}
.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.social-icon.linkedin {
  background: rgba(0, 119, 181, .15);
  color: #87ceeb;
  border-color: rgba(0, 119, 181, .3);
}
.social-icon.linkedin:hover {
  background: #0077b5;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 119, 181, .4);
}
.social-icon.facebook {
  background: rgba(24, 119, 242, .15);
  color: #87ceeb;
  border-color: rgba(24, 119, 242, .3);
}
.social-icon.facebook:hover {
  background: #1877f2;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(24, 119, 242, .4);
}
.social-icon.instagram {
  background: linear-gradient(45deg, rgba(245, 96, 64, .15), rgba(252, 175, 69, .15));
  color: #e1306c;
  border-color: rgba(225, 48, 108, .3);
}
.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f56040, #fcaf45, #f77737);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(225, 48, 108, .4);
}
.social-icon.telegram {
  background: rgba(0, 136, 204, .15);
  color: #87ceeb;
  border-color: rgba(0, 136, 204, .3);
}
.social-icon.telegram:hover {
  background: #0088cc;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 136, 204, .4);
}


.modal {
    position: fixed; /* Фиксируем поверх страницы */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* затемнение фона */
    display: flex;
    justify-content: center; /* центрируем контент */
    align-items: center;
    z-index: 9999; /* поверх всех элементов */

}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.login-form .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.login-form label {
    width: 100px; /* одинаковая ширина для выравнивания */
    font-weight: 500;
}

.login-form input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.modal-title {
    margin: 0 0 20px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease;
}

.close:hover {
    color: #000;
}


/* ===============================  UNIVERSAL MOBILE FIX (FINAL: ALL IN ONE)  =============================== */
/* Цей код покриває: iPhone (всі моделі), Android, вертикальні планшети */
@media (max-width: 820px) {

  /* --- 1. БАЗА --- */
  body {
    font-size: 16px; /* Запобігає зуму сторінки на iOS */
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
  }

  /* --- 2. СТРУКТУРА СТОРІНКИ --- */
  main {
    padding-top: 115px !important; /* Відступ, щоб хедер не закривав контент */
  }

  /* Максимально розширюємо контент, залишаючи мінімальні бортики (12px) */
  .header-content,
  .main-content,
  .hero,
  .footer-content {
    padding-left: 12px !important;
    padding-right: 12px !important;
    max-width: 100%;
  }

  /* --- 3. КАРТКИ (Загальні) --- */
  /* Робимо їх широкими та прибираємо зайві внутрішні відступи */
  .success-container,
  .success-card,
  .document-block,
  .form-card,
  .cta-section,
  .feature-list li,
  .process-step {
    padding: 24px 16px !important; /* Оптимальний баланс краси та місткості */
    width: 100% !important;
    margin-top: 20px;
    box-sizing: border-box;
    border-radius: 10px;
  }

  /* --- 4. СПЕЦІАЛЬНИЙ ФІКС ДЛЯ БЛОКУ ПОШУКУ (HERO) --- */
  /* Цей блок має бути ще компактнішим, щоб влізла вся форма */
  .hero .form-card,
  .hero form {
    padding: 20px 12px !important;
    display: flex;
    flex-direction: column;
  }

  /* Поле вводу в Hero */
  .hero input[type="text"],
  .hero input[type="search"] {
    width: 100% !important;
    padding: 14px !important;
    margin-bottom: 16px; /* Відступ до чекбокса */
    height: 50px;
  }

  /* Чекбокс та згода */
  .hero label,
  .form-group label {
    display: flex !important;
    align-items: flex-start !important; /* Вирівнювання по верху */
    gap: 12px !important;
    margin: 0 !important;
    /* width: 100%; */
  }
  
  /* Сама галочка */
  .hero input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin-top: 2px !important;
  }
  
  /* Текст згоди */
  .hero label span,
  .hero label div,
  .hero .caption {
    font-size: 13px !important; /* Акуратний розмір для юридичного тексту */
    line-height: 1.4 !important;
    text-align: left;
    flex: 1; /* Займає весь доступний простір */
  }

  /* --- 5. КНОПКИ ТА ІНПУТИ (Глобально) --- */
  .test-button,
  .btn-primary,
  .submit-button,
  .cta-button,
  .search-button {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: normal; /* Дозволяє перенос слів */
    line-height: 1.25;
    height: auto;
  }

  input[type="text"],
  input[type="email"] {
    width: 100% !important;
    box-sizing: border-box;
    font-size: 16px !important;
  }

  /* --- 6. ЗАГОЛОВКИ ТА ФУТЕР --- */
  h1 {
    font-size: 28px;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
  }
  h2 {
    font-size: 22px;
    margin-top: 24px;
  }
  
  footer {
    padding: 40px 0 60px;
    text-align: center;
  }
  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .social-links {
    justify-content: center;
  }
  .footer-samples {
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  body {
    font-size: 17px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 28px;
    margin-top: 44px;
  }
  h3 {
    font-size: 22px;
  }
  .header-content {
    padding: 0 32px;
  }
  .main-content {
    padding: 0 32px;
  }
  .footer-content {
    padding: 0 32px;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .header-content,
  .main-content,
  .footer-content {
    padding: 0 36px;
  }
}

@media (min-width: 1281px) and (max-width: 1600px) {
  .header-content,
  .main-content,
  .footer-content {
    padding: 0 40px;
  }
}

@media (min-width: 1601px) {
  .header-content,
  .main-content,
  .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
  }
}

/* ===============================  PRINT  =============================== */
@media print {
  header, footer, .print-button, .burger-menu {
    display: none !important;
  }
  body {
    background: white;
  }
  .document-block,
  .success-card,
  .form-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .hero {
    margin-top: 0;
    padding-top: 20px;
  }
}

/* ===============================  UTILITIES  =============================== */
.cta-section h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -.2px;
}
.cta-section p {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-secondary);
  margin-bottom: 36px;
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.tech-badge {
  padding: 12px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  box-shadow: 0 2px 8px var(--shadow);
  transition: all .3s ease;
}
.tech-badge:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-hover);
}
.text-content-narrow {
  max-width: 768px;
  margin: 0 auto;
}
::selection {
  background: rgba(0, 118, 128, .25);
}
/* --- MEDIUM-STYLE READING CONTAINER --- */
/* Використовуйте цей клас для Terms, Privacy, FAQ, Blog */
.container-narrow {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 16px 100px; /* 16px збоку, 100px знизу */
}

/* На мобільних зменшуємо відступи */
@media (max-width: 768px) {
  .container-narrow {
    padding: 0 20px 80px;
  }
}





/* Age Filters */
.age-filters-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    /* margin-top: 40px; */
    margin-bottom: 40px;
	position: relative;
	z-index: 99;
}

.age-filters-title {
    text-align: center;
    font-size: 1.375rem;
    color: #0B1320;
    margin-bottom: 28px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.age-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.age-filter {
    width: 120px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #007680;
    border-radius: 12px;
/*     font-size: 1.5rem; */
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.age-filter:hover {
    border-color: #007680;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 118, 128, 0.15);
}

.age-filter.active {
    background: #007680;
    color: white;
    border-color: #1a9ba6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 118, 128, 0.25);
}

.age-filter.viewed {
    background: #E2E8F0;
    color: #94a3b8;
    border-color: #CBD5E1;
}

/* Results Content */
.results-content-container {
    margin-top: 40px;
    animation: fadeInUp 0.4s ease-out;
}

.results-content-container.show {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Header */
.profile-header {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
    position: relative;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007680, #005F66);
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    color: #0B1320;
    margin-bottom: 20px;
    text-transform: capitalize;
    letter-spacing: -0.5px;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.profile-age {
    font-size: 1.1rem;
    color: #334155;
}

.profile-age-number {
    font-weight: 600;
    color: #007680;
    font-size: 1.2rem;
}

.profile-zodiac {
    font-size: 1.1rem;
    color: #334155;
}

.profile-zodiac span {
    font-weight: 500;
    color: #007680;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748B;
    font-size: 14px;
    font-weight: 500;
}

.meta-item i {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #E6F5F6, #CCE9EC);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007680;
    font-size: 11px;
}

.records-count {
    background: linear-gradient(135deg, #007680, #005F66);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}

/* Records Section */
.records-section {
    background: white;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #0B1320;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
}

.section-title i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #007680, #005F66);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}


.records-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* Records List */
.records-list  h1{
    font-size: 28px;
    font-weight: 700;
    color: #0B1320;
    margin-bottom: 20px;
    text-transform: capitalize;
    letter-spacing: -0.5px;
}

.record-item {
    background: linear-gradient(135deg, #fafbfc, #f8fafc);
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 28px 32px 28px 72px;
    transition: all 0.2s ease;
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: stretch;
}

.record-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #007680, #007680);
    border-radius: 10px 0 0 10px;
}

.record-item:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: #CBD5E1;
}

.record-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 16px;
}

.record-number {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #007680, #005F66);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 118, 128, 0.2);
}

.record-text {
    font-size: 16px;
    color: #0B1320;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
	font-family: var(--font-body);
font-weight: 550;
}

/* Action Buttons Container */
.action-buttons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 36px 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
	position: relative;
	z-index: 1000;
}

.pdf-btn {
    /* background: linear-gradient(135deg, #dc2626, #b91c1c); */
	    background: linear-gradient(135deg, #EA580C 0%, #F97316 100%);
    color: white;
    padding: 16px; 
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-btn:hover {
/*     transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25); */
	    background: linear-gradient(135deg, #C2410C 0%, #EA580C 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.analysis-btn {
/*     background: linear-gradient(135deg, #7c3aed, #6d28d9); */
    background: linear-gradient(135deg, #005F66 0%, #005F66 100%);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.analysis-btn:hover {
/*     transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25); */
	    background: linear-gradient(135deg, #004D56 0%, #005F66 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
}

.action-btn i {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
    /*     padding: 24px 16px; */
    }

    .results-title {
        font-size: 1.875rem;
    }

    .results-header,
    .search-form-container,
    .age-filters-container {
        padding: 28px 24px;
        margin-bottom: 32px;
    }

    .age-filter {
        width: 75px;
        height: 75px;
        font-size: 0.85rem;
    }

    .profile-meta {
        gap: 20px;
    }

    .record-item {
        padding: 24px 20px 24px 60px;
        min-height: auto;
    }

    .record-number {
        left: 16px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .action-buttons-container {
        flex-direction: column;
        gap: 16px;
        padding: 28px 0;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}


.results-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}





@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007680, #005F66);
}

/* Заголовок */
.results-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0B1320;
    margin-bottom: 36px;
    letter-spacing: -0.75px;
    line-height: 1.2;
}

/* Блок "немає результатів" */
.no-results-block {
    background: #ffffff;
    border: 1px solid rgba(0, 118, 128, 0.12);
    border-radius: 12px;
    padding: 40px 32px;
    margin-bottom: 32px;
    position: relative;
}

/* Іконка */
.no-results-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #007680, #005F66);
    border-radius: 12px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: checkPulse 0.6s ease-out;
    box-shadow: 0 4px 12px rgba(0, 118, 128, 0.25);
}

@keyframes checkPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Основний текст */
.no-results-main {
    font-size: 1.125rem;
    color: #0B1320;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.5;
    padding: 0 20px;
}

/* Підказка */
.no-results-suggestion {
    font-size: 0.9375rem;
    color: #334155;
    background: #ffffff;
    border: 1px solid rgba(0, 118, 128, 0.12);
    border-radius: 8px;
    padding: 12px 20px 12px 44px;
    margin-top: 20px;
    position: relative;
    display: inline-block;
    font-weight: 500;
    text-align: left;
}

.no-results-suggestion::before {
    content: '💡';
    position: absolute;
    left: 16px;
    top: 12px;
    font-size: 16px;
}

/* Додаткова інформація */
.additional-info {
    background: white;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
    text-align: left;
    position: relative;
}

.additional-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #007680, #3b82f6);
    border-radius: 12px 0 0 12px;
}

.info-title {
    font-size: 16px;
    font-weight: 600;
    color: #0B1320;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.2px;
}

.info-title i {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #E6F5F6, #CCE9EC);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007680;
    font-size: 14px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 10px 0 10px 28px;
    color: #64748B;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    font-weight: 500;
}

.info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #D4EFF2, #B3DEE2);
    border: 2px solid #007680;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-list li::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 13px;
    color: #007680;
    font-weight: bold;
    font-size: 10px;
}

/* Статистика */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, #fafbfc, #f8fafc);
    border-radius: 10px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #007680;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Кнопки дій */
.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
	margin-bottom: 40px;
	position: relative;
	z-index: 1000;

}

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
		width:300px;
	justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 118, 128, 0.3);
}

.btn-secondary {
    background: white;
    color: #007680;
    border: 2px solid #CBD5E1;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #007680;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Декоративні елементи */
.decorative-circles {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    opacity: 0.05;
}

.decorative-circles::before,
.decorative-circles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: #007680;
}

.decorative-circles::before {
    width: 100px;
    height: 100px;
    top: 0;
    right: 0;
}

.decorative-circles::after {
    width: 60px;
    height: 60px;
    bottom: 0;
    left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

    .results-section {
        padding: 36px 28px;
    }

    .results-title {
        font-size: 1.875rem;
        margin-bottom: 28px;
    }

    .no-results-block {
        padding: 32px 24px;
    }

    .no-results-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 24px;
    }

    .no-results-main {
        font-size: 1rem;
        padding: 0 10px;
    }

    .no-results-suggestion {
        font-size: 0.875rem;
        padding: 10px 16px 10px 40px;
    }

    .additional-info {
        padding: 24px;
    }

    .stats-row {
        gap: 24px;
        padding: 20px;
    }

    .stat-value {
        font-size: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
	
.form-container {
    width: 100%;
	display: inline-block;
    justify-content: center;
	}
	.styled-button {
		display: inline-block; 
		width: 100%;
		}


	
	
}

@media (max-width: 480px) {
    .results-title {
        font-size: 1.625rem;
    }

    .info-list li {
        font-size: 13px;
        padding-left: 24px;
    }
}

.loading-state{
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}
@media (max-width: 820px) {
    .community-main {
        margin-top: -60px !important; /* "'"   <main> */
        padding-top: 60px;            /*      */
    }
}
/* iOS Safari: будь-яке поле <16px зумиться при фокусі — мінімум 16px на мобільному */
@media (max-width: 768px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]),
  select, textarea { font-size: 16px; }
}
/* ═══════════════════════════════════════════════════════════════════
   whoareyou.io · HOME PAGE (homepage-only Linear styles)
   ───────────────────────────────────────────────────────────────────
   Підключається у home-new.php після wstart_2.css і _design-tokens.css.
   Стилі тільки для HERO + PREVIEW WINDOW + TICKER.
   Інші секції (stats, how, use-cases, samples, trust, faq) залишаються
   з inline <style> у home-new.php — оновимо їх наступними кроками.
   ═══════════════════════════════════════════════════════════════════ */


/* ─── HOMEPAGE-SCOPED TOKENS ──────────────────────────────────────── */
/* Локальні vars для темного hero — теплі темні тони, ближче до hero
   gradient #0c1f28 → #051520. Severity tokens беруться з _design-tokens.css. */
body.dark-hero {
  --bg-dark:       #051520;
  --bg-panel:      #0a1820;
  --bg-tint:       #0d1f28;
  --bg-translucent: rgba(255,255,255,0.04);
  --ink:           #f7f8f8;
  --ink-2:         rgba(247,248,248,0.72);
  --ink-3:         rgba(247,248,248,0.48);
  --ink-4:         rgba(247,248,248,0.32);
  --line:          rgba(255,255,255,0.05);
  --line-strong:   rgba(255,255,255,0.08);
  --line-2:        rgba(255,255,255,0.12);
  --mint:          #4DB8BF;
  --mint-soft:     rgba(77, 184, 191,0.08);
  --mint-line:     rgba(77, 184, 191,0.22);
  --teal:          #007680;

  /* Severity bg tokens — підняті для dark mode (були 0.10 для світлого) */
  --sev-low-bg:    rgba(0,118,128,0.20);
  --sev-mod-bg:    rgba(196,162,78,0.18);
  --sev-high-bg:   rgba(196,125,62,0.18);
  --sev-crit-bg:   rgba(196,78,78,0.18);
}


/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION (dark, single-column centered + wide preview)
   ═══════════════════════════════════════════════════════════════════ */

.hero-section {
  /* керується margin-top: -160px з оригіналу — підлаштування під fixed header */
  margin-top: -160px !important;
  padding: 180px 24px 0 !important;
  padding-bottom: 0 !important;
  min-height: auto !important;
  background: #051520 !important;
  color: var(--ink) !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

/* background decoration — grid вимкнено за рішенням */
.hero-section::before {
  display: none !important;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: 5%;
  left: 50%;
  width: 1000px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(77, 184, 191,0.07) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-container,
.hero-container--centered {
  position: relative;
  z-index: 1;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
  text-align: left !important;
}

/* hero text column (centered, max 720) */
.hero-content {
  max-width: 720px !important;
  margin: 0 auto 32px !important;
  text-align: center !important;
  padding-top: 24px;
}

/* eyebrow — додамо в HTML як новий елемент */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--mint-soft);
  border: 1px solid var(--mint-line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  color: var(--mint);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mint);
}

.hero-title {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-semibold) !important;
  font-size: clamp(34px, 5vw, 56px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.032em !important;
  color: var(--ink) !important;
  margin: 0 0 16px 0 !important;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #4DB8BF 0%, #1a9ba6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 16px !important;
  line-height: 1.55 !important;
  color: var(--ink-3) !important;
  font-weight: var(--fw-normal) !important;
  max-width: 520px !important;
  margin: 0 auto 28px !important;
  letter-spacing: -0.005em !important;
  opacity: 1 !important;
}

/* ─── SEARCH FORM (повернено старі розміри з прод-версії) ─── */
.search-card {
  max-width: 820px !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.search-input-wrap { position: relative !important; }

.search-input {
  width: 100% !important;
  height: 90px !important;
  padding: 0 80px 0 20px !important;
  background: rgba(12, 31, 40, 0.7) !important;
  border: 1px solid rgba(77, 184, 191, 0.5) !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 18px !important;
  font-weight: var(--fw-normal) !important;
  letter-spacing: -0.005em !important;
  text-transform: uppercase !important;
  outline: none !important;
  margin-bottom: 0 !important;
  box-shadow: 0 0 21px rgba(77, 184, 191, 0.35) !important;
  transition: all 0.3s ease !important;
}
.search-input::placeholder {
  color: rgba(236, 254, 255, 0.45) !important;
  font-weight: var(--fw-normal) !important;
  text-transform: none !important;
}
.search-input:focus {
  border-color: rgba(77, 184, 191, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(77, 184, 191, 0.15), 0 0 32px rgba(77, 184, 191, 0.25) !important;
}

/* icon-button "→" — повернено 56×56 як було */
.search-button-icon {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 10px !important;
  background: var(--teal) !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 24px !important;
  font-weight: var(--fw-semibold) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 0 16px rgba(77, 184, 191, 0.3) !important;
  transition: all 0.25s ease !important;
  line-height: 1 !important;
}
.search-button-icon:not(:disabled):hover {
  background: var(--mint) !important;
  color: #0c1f28 !important;
  transform: translateY(-50%) scale(1.05) !important;
  box-shadow: 0 0 24px rgba(77, 184, 191, 0.6) !important;
}
.search-button-icon:disabled {
  background: rgba(77, 184, 191, 0.2) !important;
  color: rgba(236, 254, 255, 0.4) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* consent */
.checkbox-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  max-width: 820px !important;
  margin: 16px auto 0 !important;
  padding: 0 !important;
}
.checkbox-label {
  font-size: 12.5px !important;
  color: var(--ink-3) !important;
  font-weight: var(--fw-normal) !important;
  line-height: 1.45 !important;
}
.checkbox-label a {
  color: var(--mint) !important;
  border-bottom: 1px solid rgba(77, 184, 191,0.3) !important;
}
.checkbox-label a:hover {
  color: var(--ink) !important;
  border-bottom-color: var(--mint) !important;
}

/* trust row (новий елемент під consent) */
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-normal);
  color: var(--ink-4);
  letter-spacing: 0.01em;
  margin: 0 auto 56px;
  justify-content: center;
}
.hero-trust .item { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .num { color: var(--ink-2); font-weight: var(--fw-medium); }
.hero-trust .sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-4);
  opacity: 0.5;
}


/* ═══════════════════════════════════════════════════════════════════
   PREVIEW WINDOW (the Linear move — wide preview below search)
   ═══════════════════════════════════════════════════════════════════ */

.preview-stage {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 100px auto 0;
  perspective: 2400px;
  perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
  padding-bottom: 80px;
}
.preview {
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  transform: rotateX(7deg);
  transform-origin: 50% 0%;
  transform-style: preserve-3d;
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.7),
    0 30px 60px  -30px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 100px -20px rgba(77, 184, 191,0.06);
  transition: transform .9s cubic-bezier(0.16,1,0.3,1);
}
.preview-stage:hover .preview { transform: rotateX(4deg); }

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.preview-top .brand {
  font-size: 12.5px;
  font-weight: var(--fw-semibold);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.preview-top .brand span { color: var(--mint); }
.preview-top .crumb {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: var(--fw-normal);
  color: var(--ink-4);
  letter-spacing: 0.01em;
}

.pane-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 480px;
}
.date-pane {
  background: rgba(8,9,10,0.35);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
}
.date-pane .label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  margin-bottom: 14px;
  line-height: 1.4;
}
.date-list { display: flex; flex-direction: column; gap: 4px; }
.preview .date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: var(--fw-normal);
  padding: 8px 11px;
  border-radius: 6px;
  color: var(--ink-3);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all .15s;
  cursor: pointer;
}
.preview .date:hover { background: rgba(255,255,255,0.025); color: var(--ink-2); }
.preview .date.has-data {
  background: rgba(77, 184, 191,0.04);
  border-color: var(--mint-line);
  color: var(--mint);
}
.preview .date.has-data::before {
  content: '✓';
  font-size: 11px;
  font-weight: var(--fw-bold);
  color: var(--mint);
}
.preview .date.active {
  background: rgba(77, 184, 191,0.14);
  border-color: rgba(77, 184, 191,0.4);
  color: var(--mint);
  font-weight: var(--fw-medium);
}

.results {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal) 0%, #005a63 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--ink);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.person-info { flex: 1; min-width: 0; }
.person-name {
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  line-height: 1.2;
}
.person-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: var(--fw-normal);
  letter-spacing: 0.01em;
}
.person-meta .sep { margin: 0 7px; color: var(--ink-4); }

.sources-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--mint-soft);
  color: var(--mint);
  border: 1px solid var(--mint-line);
  font-weight: var(--fw-medium);
  letter-spacing: -0.005em;
}
.sources-chip svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }
.timestamp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  font-weight: var(--fw-normal);
  letter-spacing: 0.01em;
  margin-left: 4px;
}

.score-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.score-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.score-num small {
  font-size: 16px;
  color: var(--ink-4);
  font-weight: var(--fw-medium);
  letter-spacing: -0.01em;
}
.score-tier { text-align: right; display: flex; flex-direction: column; gap: 3px; }
.score-tier-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}
.score-tier-value {
  font-size: 14px;
  font-weight: var(--fw-bold);
  color: var(--sev-high);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
}
.score-tier-value::before { content: '✦'; font-size: 11px; }

.risk-bar-wrap { display: flex; flex-direction: column; gap: 6px; }
.risk-bar {
  position: relative;
  height: 8px;
  border-radius: 100px;
  background: var(--risk-gradient);
  opacity: 0.92;
}
.risk-bar-marker {
  position: absolute;
  top: 50%;
  left: 62%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--sev-high);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.risk-bar-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--fw-medium);
  color: var(--ink-4);
  padding: 0 2px;
  letter-spacing: 0.02em;
}

.alert {
  background: var(--sev-high-bg);
  border-left: 3px solid var(--sev-high);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: var(--fw-normal);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.alert::before {
  content: '✦';
  color: var(--sev-high);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
  margin-top: 1px;
}

.factors-title {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--ink-3);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.factors { display: flex; flex-direction: column; gap: 5px; }
.factor-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 0 6px 6px 0;
  background: var(--sev-mod-bg);
  border-left: 3px solid var(--sev-mod);
}
.factor-row.tier-3 { background: var(--sev-high-bg); border-left-color: var(--sev-high); }
.factor-row.tier-2 { background: var(--sev-crit-bg); border-left-color: var(--sev-crit); }
.factor-row .label {
  flex: 1; min-width: 0;
  font-size: 13.5px;
  font-weight: var(--fw-semibold);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.factor-row .mult {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-4);
  font-weight: var(--fw-normal);
  margin-left: 6px;
}
.factor-row .pts {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: var(--fw-bold);
  color: var(--mint);
  flex-shrink: 0;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.records-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  margin-top: 4px;
}
.records-title {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--ink-3);
  letter-spacing: -0.005em;
}
.records-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: var(--mint);
  background: var(--mint-soft);
  border: 1px solid var(--mint-line);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.records-hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.records-hint::before {
  content: '✓';
  color: var(--mint);
  font-weight: var(--fw-bold);
}
.records { display: flex; flex-direction: column; gap: 3px; }
.record {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.018);
  border: 1px solid var(--line);
  border-left: 2px solid var(--sev-mod);
  border-radius: 0 6px 6px 0;
  transition: background .15s;
}
.record:hover { background: rgba(255,255,255,0.04); }
.record.tier-3 { border-left-color: var(--sev-high); }
.record.tier-2 { border-left-color: var(--sev-crit); }
.record .num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  font-weight: var(--fw-medium);
  min-width: 14px;
  letter-spacing: 0.02em;
}
.record .body {
  flex: 1; min-width: 0;
  font-size: 12.5px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  font-weight: var(--fw-normal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.record .body strong { color: var(--ink); font-weight: var(--fw-semibold); }
.record .source {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  font-weight: var(--fw-normal);
  letter-spacing: 0.01em;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.record .source svg {
  width: 9px; height: 9px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5;
  opacity: 0.7;
}

.bosikod-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.bk-btn {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: var(--fw-medium);
  letter-spacing: -0.005em;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  text-decoration: none;
}
.bk-btn.outline {
  background: transparent;
  color: var(--mint);
  border-color: var(--mint-line);
}
.bk-btn.outline:hover {
  background: rgba(77, 184, 191,0.06);
  border-color: var(--mint);
  box-shadow: 0 0 16px rgba(77, 184, 191,0.18);
  transform: translateY(-1px);
}
.bk-btn.filled {
  background: var(--teal);
  color: var(--ink);
  border-color: var(--teal);
}
.bk-btn.filled:hover {
  background: #008a96;
  box-shadow: 0 0 20px rgba(0,118,128,0.4);
  transform: translateY(-1px);
}
.bk-btn svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 2; flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════
   TICKER (re-styled, uses original .ai-ticker-section structure)
   ═══════════════════════════════════════════════════════════════════ */
.ai-ticker-section {
  background: var(--bg-dark) !important;
  border-top: 1px solid var(--line-strong) !important;
  border-bottom: 1px solid var(--line-strong) !important;
  padding: 14px 0 !important;
  margin-top: 0 !important;
  position: relative;
  z-index: 10;
  overflow: hidden;
}
.ticker-fog-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ai-scroll 320s linear infinite;
  opacity: 0.55 !important;
  filter: blur(0.4px) !important;
  transition: opacity .4s ease, filter .4s ease !important;
}
.ticker-track:hover {
  animation-play-state: paused;
  opacity: 1 !important;
  filter: blur(0) !important;
}

.ticker-group { display: flex; flex-shrink: 0; align-items: center; }

.ticker-keyword {
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-body) !important;
  font-size: 12.5px !important;
  font-weight: var(--fw-normal) !important;
  color: var(--ink-3) !important;
  padding: 0 18px !important;
  letter-spacing: -0.005em !important;
  text-transform: none !important;
}
.ai-icon-wrap {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-right: 9px !important;
  color: var(--mint) !important;
  opacity: 0.7;
  width: 12px !important;
  height: 12px !important;
}
.ticker-text { color: var(--ink-2) !important; }
.ticker-time {
  margin-left: 9px !important;
  font-family: var(--font-mono) !important;
  font-size: 10.5px !important;
  font-weight: var(--fw-normal) !important;
  color: var(--ink-4) !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
}

/* severity colors з risk-analyzer (muted analytical, не неонові) */
.ticker-keyword.sev-critical .ticker-text { color: var(--sev-crit) !important; }
.ticker-keyword.sev-critical .ai-icon-wrap { color: var(--sev-crit) !important; opacity: 0.85; }
.ticker-keyword.sev-warning  .ticker-text { color: var(--sev-high) !important; }
.ticker-keyword.sev-warning  .ai-icon-wrap { color: var(--sev-high) !important; opacity: 0.85; }
.ticker-keyword.sev-neutral  .ticker-text { color: var(--ink-2) !important; }
.ticker-keyword.sev-neutral  .ai-icon-wrap { color: var(--ink-3) !important; }

@keyframes ai-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════════════════════════════
   HOMEPAGE SECTIONS (Stats / Risk Map / How / Use Cases) — теплий темний
   ═══════════════════════════════════════════════════════════════════ */

/* Body — повністю темний continuou (не тільки hero) */
body.dark-hero {
  background: #051520 !important;
}

/* Footer — теж dark на головній з тонкою лінією зверху (Linear-style separator) */
body.dark-hero footer {
  background-color: #051520 !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}

/* ─── Common section base ─── */
body.dark-hero .home-section {
  background: transparent !important;
  padding: 96px 24px 0 !important;
  border: none !important;
}
body.dark-hero .home-container {
  max-width: 1040px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Section eyebrow — neutral chip + mint text + mint dot (варіант A, Linear-pure) */
body.dark-hero .section-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: var(--fw-semibold) !important;
  letter-spacing: 0.1em !important;
  color: #4DB8BF !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  padding: 5px 12px !important;
  border-radius: 100px !important;
  margin-bottom: 18px !important;
  text-transform: uppercase !important;
}
body.dark-hero .section-label::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4DB8BF;
}

body.dark-hero .section-heading {
  font-family: var(--font-display) !important;
  font-size: clamp(24px, 2.8vw, 32px) !important;
  font-weight: var(--fw-semibold) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.024em !important;
  color: var(--ink) !important;
  margin: 0 0 12px 0 !important;
}
body.dark-hero .section-subheading {
  font-size: 15px !important;
  color: var(--ink-3) !important;
  font-weight: var(--fw-normal) !important;
  line-height: 1.55 !important;
  margin: 0 0 36px 0 !important;
  max-width: 600px !important;
}


/* ═══════ STATS ═══════ */
body.dark-hero .stats-section {
  padding-top: 96px !important;
}
body.dark-hero .stats-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  margin-top: 40px !important;
}
body.dark-hero .stat-card {
  padding: 26px 22px !important;
  background: var(--bg-panel) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 12px !important;
  text-align: left !important;
  transition: border-color .2s, background .2s !important;
  box-shadow: none !important;
}
body.dark-hero .stat-card:hover {
  transform: none !important;
  border-color: var(--mint-line) !important;
  background: rgba(77, 184, 191,0.025) !important;
  box-shadow: none !important;
}
body.dark-hero .stat-number {
  font-family: var(--font-display) !important;
  font-size: 44px !important;
  font-weight: var(--fw-bold) !important;
  color: var(--ink) !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
  font-variant-numeric: tabular-nums !important;
}
body.dark-hero .stat-suffix {
  font-family: var(--font-display) !important;
  font-size: 20px !important;
  font-weight: var(--fw-medium) !important;
  color: var(--mint) !important;
  letter-spacing: -0.02em !important;
  margin-left: 3px !important;
}
body.dark-hero .stat-description {
  font-size: 13.5px !important;
  font-weight: var(--fw-semibold) !important;
  color: var(--ink) !important;
  margin-top: 14px !important;
  letter-spacing: -0.01em !important;
}
body.dark-hero .stat-detail {
  font-size: 12px !important;
  color: var(--ink-3) !important;
  margin-top: 4px !important;
  line-height: 1.5 !important;
}


/* ═══════ RISK MAP DONUT ═══════ */
body.dark-hero .risk-map-wrap {
  margin-top: 36px !important;
}
body.dark-hero .risk-map-card {
  background: var(--bg-panel) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 12px !important;
  padding: 28px 32px 22px !important;
  max-width: 380px !important;
  box-shadow: none !important;
}
body.dark-hero .risk-map-label {
  font-family: var(--font-mono) !important;
  font-size: 10.5px !important;
  font-weight: var(--fw-medium) !important;
  letter-spacing: 0.1em !important;
  color: var(--mint) !important;
  text-transform: uppercase !important;
  margin-bottom: 4px !important;
}
body.dark-hero .risk-map-title {
  font-size: 14px !important;
  font-weight: var(--fw-medium) !important;
  font-family: var(--font-body) !important;
  color: var(--ink-2) !important;
  line-height: 1.45 !important;
  letter-spacing: -0.005em !important;
}
body.dark-hero .risk-map-center-sub {
  font-family: var(--font-mono) !important;
  font-size: 10.5px !important;
  font-weight: var(--fw-medium) !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--ink-4) !important;
}
body.dark-hero .risk-map-center-main {
  font-family: var(--font-display) !important;
  font-size: 22px !important;
  font-weight: var(--fw-bold) !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em !important;
}
body.dark-hero .risk-map-legend-item {
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  color: var(--ink-2) !important;
  letter-spacing: -0.005em !important;
}
body.dark-hero .risk-map-legend-pct {
  font-family: var(--font-mono) !important;
  font-weight: var(--fw-semibold) !important;
  color: var(--ink) !important;
  font-variant-numeric: tabular-nums !important;
}
body.dark-hero .risk-map-footer {
  font-family: var(--font-mono) !important;
  font-size: 10.5px !important;
  color: var(--ink-4) !important;
  letter-spacing: 0.02em !important;
  border-top: 1px solid var(--line) !important;
  padding-top: 12px !important;
}


/* ═══════ HOW IT WORKS ═══════ */
body.dark-hero .how-section {
  padding-top: 96px !important;
}
body.dark-hero .how-section .section-heading { color: var(--ink) !important; }
body.dark-hero .how-section .section-subheading { color: var(--ink-3) !important; }

body.dark-hero .steps-grid {
  margin-top: 40px !important;
  align-items: stretch !important;
}
body.dark-hero .step-card {
  padding: 26px 22px !important;
  background: var(--bg-panel) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 12px !important;
  transition: border-color .2s, background .2s !important;
  box-shadow: none !important;
}
body.dark-hero .step-card:hover {
  transform: none !important;
  border-color: var(--mint-line) !important;
  background: rgba(77, 184, 191,0.025) !important;
  box-shadow: none !important;
}
body.dark-hero .step-icon-wrap {
  background: var(--mint-soft) !important;
  border: 1px solid var(--mint-line) !important;
  color: var(--mint) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
}
body.dark-hero .step-icon-wrap svg {
  width: 20px !important;
  height: 20px !important;
}
body.dark-hero .step-num {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: var(--fw-medium) !important;
  letter-spacing: 0.1em !important;
  color: var(--ink-4) !important;
}
body.dark-hero .step-card h3 {
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  font-weight: var(--fw-semibold) !important;
  color: var(--ink) !important;
  letter-spacing: -0.01em !important;
}
body.dark-hero .step-card p {
  font-size: 13.5px !important;
  color: var(--ink-3) !important;
  line-height: 1.55 !important;
  margin: 12px 0 0 0 !important;
}
body.dark-hero .step-connector svg path {
  stroke: var(--mint) !important;
  opacity: 0.35 !important;
}


/* ═══════ USE CASES ═══════ */
body.dark-hero .usecases-section {
  padding-top: 96px !important;
}
body.dark-hero .usecases-home-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  margin-top: 40px !important;
}
body.dark-hero .usecase-home-card {
  padding: 24px 22px !important;
  background: var(--bg-panel) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 12px !important;
  transition: border-color .2s, background .2s !important;
  box-shadow: none !important;
}
body.dark-hero .usecase-home-card:hover {
  transform: none !important;
  border-color: var(--mint-line) !important;
  background: rgba(77, 184, 191,0.025) !important;
  box-shadow: none !important;
}
body.dark-hero .usecase-card-header {
  margin-bottom: 14px !important;
  gap: 12px !important;
}
body.dark-hero .usecase-icon {
  background: var(--mint-soft) !important;
  border: 1px solid var(--mint-line) !important;
  color: var(--mint) !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 9px !important;
}
body.dark-hero .usecase-icon svg {
  width: 18px !important;
  height: 18px !important;
}
body.dark-hero .usecase-home-card h3 {
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  font-weight: var(--fw-semibold) !important;
  color: var(--ink) !important;
  letter-spacing: -0.01em !important;
}
body.dark-hero .usecase-home-card p {
  font-size: 13.5px !important;
  color: var(--ink-3) !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}


/* ═══════════════════════════════════════════════════════════════════
   BOTTOM SECTIONS (Samples / Trust / Final CTA / FAQ) — Linear dark
   ═══════════════════════════════════════════════════════════════════ */

/* ─── SAMPLE REPORTS ─── */
body.dark-hero .samples-section {
  padding-top: 96px !important;
}
body.dark-hero .samples-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  margin-top: 40px !important;
}
body.dark-hero .sample-card {
  padding: 26px 22px !important;
  background: var(--bg-panel) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 12px !important;
  transition: border-color .2s, background .2s !important;
  box-shadow: none !important;
}
body.dark-hero .sample-card:hover {
  transform: none !important;
  border-color: var(--mint-line) !important;
  background: rgba(77, 184, 191,0.025) !important;
  box-shadow: none !important;
}
body.dark-hero .sample-icon-area {
  background: var(--mint-soft) !important;
  border: 1px solid var(--mint-line) !important;
  color: var(--mint) !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 10px !important;
}
body.dark-hero .sample-icon-area svg {
  width: 22px !important;
  height: 22px !important;
}
body.dark-hero .sample-text h3 {
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  font-weight: var(--fw-semibold) !important;
  color: var(--ink) !important;
  letter-spacing: -0.01em !important;
}
body.dark-hero .sample-text p {
  font-size: 13.5px !important;
  color: var(--ink-3) !important;
  line-height: 1.55 !important;
}
body.dark-hero .sample-badge {
  font-family: var(--font-mono) !important;
  font-size: 10px !important;
  font-weight: var(--fw-medium) !important;
  letter-spacing: 0.08em !important;
  color: var(--mint) !important;
  background: var(--mint-soft) !important;
  border: 1px solid var(--mint-line) !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  top: 14px !important;
  right: 14px !important;
}


/* ─── TRUST ─── */
body.dark-hero .trust-section {
  padding-top: 96px !important;
}
body.dark-hero .trust-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin-top: 40px !important;
}
body.dark-hero .trust-item {
  padding: 26px 22px !important;
  background: var(--bg-panel) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 12px !important;
  transition: border-color .2s, background .2s !important;
  box-shadow: none !important;
}
body.dark-hero .trust-item:hover {
  transform: none !important;
  border-color: var(--mint-line) !important;
  background: rgba(77, 184, 191,0.025) !important;
  box-shadow: none !important;
}
body.dark-hero .trust-icon {
  background: var(--mint-soft) !important;
  border: 1px solid var(--mint-line) !important;
  color: var(--mint) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
}
body.dark-hero .trust-icon svg {
  width: 20px !important;
  height: 20px !important;
}
body.dark-hero .trust-text strong {
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  font-weight: var(--fw-semibold) !important;
  color: var(--ink) !important;
  letter-spacing: -0.01em !important;
}
body.dark-hero .trust-text span {
  font-size: 13.5px !important;
  color: var(--ink-3) !important;
  line-height: 1.55 !important;
}


/* ─── FINAL CTA ─── */
body.dark-hero .cta-home-section {
  background: transparent !important;
  padding: 96px 24px 80px !important;
}
body.dark-hero .cta-home-block {
  background: linear-gradient(180deg, #0c1f28 0%, #051520 100%) !important;
  border: 1px solid var(--mint-line) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4) !important;
  border-radius: 16px !important;
  padding: 56px 40px !important;
  max-width: 760px !important;
}
body.dark-hero .cta-home-block::before {
  background: linear-gradient(90deg, transparent 0%, var(--mint) 50%, transparent 100%) !important;
  opacity: 0.6 !important;
}
body.dark-hero .cta-home-block h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(26px, 3.2vw, 36px) !important;
  font-weight: var(--fw-semibold) !important;
  color: var(--ink) !important;
  letter-spacing: -0.028em !important;
}
body.dark-hero .cta-home-block p {
  font-size: 15px !important;
  color: var(--ink-3) !important;
  line-height: 1.55 !important;
}
body.dark-hero .cta-home-block .cta-button {
  background: linear-gradient(135deg, #007680 0%, #5eead4 100%) !important;
  color: #0c1f28 !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  padding: 18px 44px !important;
  border-radius: 12px !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
  gap: 10px !important;
}
body.dark-hero .cta-home-block .cta-button:hover {
  background: linear-gradient(135deg, #007680 0%, #5eead4 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
}


/* ─── FAQ ─── */
body.dark-hero .faq-home-section {
  padding: 96px 24px 112px !important;
  background: transparent !important;
}
body.dark-hero .faq-home-section .home-container {
  max-width: 760px !important;
}
body.dark-hero .faq-home-section .section-heading {
  color: var(--ink) !important;
}
body.dark-hero .faq-home-section .section-subheading {
  color: var(--ink-3) !important;
}
body.dark-hero .faq-home-section .section-subheading a {
  color: var(--mint) !important;
  border-bottom-color: rgba(77, 184, 191,0.3) !important;
}
body.dark-hero .faq-home-section .section-subheading a:hover {
  border-bottom-color: var(--mint) !important;
}
body.dark-hero .faq-home-list {
  gap: 8px !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.dark-hero .faq-home-item {
  background: var(--bg-panel) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 12px !important;
  transition: border-color .2s, background .2s !important;
}
body.dark-hero .faq-home-item:hover {
  border-color: var(--mint-line) !important;
  background: rgba(77, 184, 191,0.018) !important;
  box-shadow: none !important;
}
body.dark-hero .faq-home-item[open] {
  border-color: var(--mint-line) !important;
  background: rgba(77, 184, 191,0.025) !important;
  box-shadow: none !important;
}
body.dark-hero .faq-home-item summary {
  font-family: var(--font-display) !important;
  font-size: 15px !important;
  font-weight: var(--fw-semibold) !important;
  color: var(--ink) !important;
  padding: 20px 60px 20px 24px !important;
  letter-spacing: -0.01em !important;
}
body.dark-hero .faq-home-item summary:hover,
body.dark-hero .faq-home-item[open] summary {
  color: var(--mint) !important;
}
body.dark-hero .faq-home-item summary::after {
  background-color: rgba(77, 184, 191,0.10) !important;
  border: 1px solid var(--mint-line) !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234DB8BF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  width: 28px !important;
  height: 28px !important;
  margin-top: -14px !important;
  right: 22px !important;
  border-radius: 7px !important;
}
body.dark-hero .faq-home-item[open] summary::after {
  background-color: rgba(77, 184, 191,0.18) !important;
}
body.dark-hero .faq-home-answer p {
  font-size: 13.5px !important;
  color: var(--ink-3) !important;
  line-height: 1.65 !important;
}
body.dark-hero .faq-home-answer a {
  color: var(--mint) !important;
  border-bottom-color: rgba(77, 184, 191,0.3) !important;
}


/* ═══════════════════════════════════════════════════════════════════
   HOMEPAGE SECTIONS RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  body.dark-hero .stats-grid,
  body.dark-hero .usecases-home-grid { grid-template-columns: repeat(2, 1fr) !important; }
  body.dark-hero .samples-grid { grid-template-columns: 1fr !important; }
  body.dark-hero .trust-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
  body.dark-hero .home-section,
  body.dark-hero .samples-section,
  body.dark-hero .trust-section,
  body.dark-hero .faq-home-section { padding: 64px 18px 0 !important; }
  body.dark-hero .cta-home-section { padding: 64px 18px 48px !important; }
  body.dark-hero .faq-home-section { padding-bottom: 80px !important; }
  body.dark-hero .section-heading { font-size: clamp(19px, 5.5vw, 24px) !important; margin-bottom: 6px !important; }
  body.dark-hero .section-subheading { margin-bottom: 24px !important; font-size: 13.5px !important; }
  body.dark-hero .section-label { font-size: 10px !important; padding: 4px 10px !important; margin-bottom: 14px !important; }
  body.dark-hero .stat-card,
  body.dark-hero .step-card,
  body.dark-hero .usecase-home-card,
  body.dark-hero .sample-card,
  body.dark-hero .trust-item { padding: 22px 18px !important; }
  body.dark-hero .stat-number { font-size: 34px !important; }
  body.dark-hero .stat-suffix { font-size: 17px !important; }
  body.dark-hero .cta-home-block { padding: 40px 24px !important; }
  body.dark-hero .cta-home-block h2 { font-size: clamp(22px, 6vw, 28px) !important; }
}
@media (max-width: 480px) {
  body.dark-hero .usecases-home-grid { grid-template-columns: 1fr !important; }
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .preview-stage { padding: 0 16px 80px; max-width: 100%; }
  .preview { transform: rotateX(5deg); }
  .preview-stage:hover .preview { transform: rotateX(3deg); }
}

@media (max-width: 760px) {
  .hero-section { margin-top: -80px !important; padding: 100px 16px 0 !important; }
  .hero-content { padding-top: 8px; }
  .hero-eyebrow { font-size: 10.5px; margin-bottom: 18px; }
  .hero-title { font-size: clamp(28px, 8vw, 38px) !important; }
  .hero-subtitle { font-size: 14.5px !important; margin-bottom: 22px !important; }
  .checkbox-label { font-size: 12px !important; }
  .hero-trust { gap: 10px; font-size: 10.5px; flex-wrap: wrap; margin-bottom: 40px; }

  /* Search — менший на мобільному, slabkо glow */
  .search-input {
    height: 64px !important;
    font-size: 16px !important;
    padding: 0 64px 0 16px !important;
    box-shadow: 0 0 14px rgba(77, 184, 191, 0.12) !important;
  }
  .search-input:focus {
    box-shadow: 0 0 0 3px rgba(77, 184, 191, 0.12), 0 0 20px rgba(77, 184, 191, 0.15) !important;
  }
  .search-button-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 19px !important;
    right: 6px !important;
    box-shadow: 0 0 10px rgba(77, 184, 191, 0.18) !important;
  }

  .preview { transform: none; }
  .preview-stage:hover .preview { transform: none; }
  .preview-stage {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 85%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 85%, transparent 100%);
    padding-bottom: 40px;
  }

  .pane-body { grid-template-columns: 1fr; min-height: 0; }
  .date-pane {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }
  .date-list { flex-direction: row; flex-wrap: wrap; gap: 5px; }
  .preview .date { font-size: 10.5px; padding: 5px 8px; }

  /* ── Person block — structured 2-row layout ── */
  .person {
    display: grid !important;
    grid-template-columns: 40px 1fr !important;
    grid-template-areas:
      "avatar name"
      "meta-row meta-row" !important;
    gap: 4px 12px !important;
    align-items: start !important;
    flex-wrap: nowrap !important;
  }
  .avatar { grid-area: avatar; align-self: center; }
  .person-info {
    grid-area: name;
    min-width: 0;
    align-self: center;
  }
  .person-name {
    font-size: 14.5px !important;
    line-height: 1.25 !important;
    margin-bottom: 2px !important;
    white-space: normal;
  }
  .person-meta { font-size: 11px !important; }
  .person-meta .sep { margin: 0 5px !important; }
  /* sources-chip і timestamp — на окремий рядок під avatar+name */
  .sources-chip,
  .timestamp {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .sources-chip {
    grid-area: meta-row;
    justify-self: start;
    margin-top: 4px;
    font-size: 11px !important;
    padding: 3px 9px !important;
  }
  .timestamp {
    display: none !important;
  }

  .score-num { font-size: 36px; }
  .score-num small { font-size: 13px; }
  .score-tier-label { font-size: 9px; }
  .score-tier-value { font-size: 12.5px; }
  .risk-bar { height: 6px; }
  .risk-bar-marker { width: 12px; height: 12px; }

  .factor-row { padding: 9px 11px; gap: 8px; }
  .factor-row .label { font-size: 12.5px; }

  .record { flex-wrap: wrap; gap: 4px 10px; padding: 8px 10px; }
  .record .body {
    white-space: normal; overflow: visible; text-overflow: clip;
    font-size: 12px; line-height: 1.35; flex: 1 1 100%;
  }
  .record .num { font-size: 10px; }
  .record .source { margin-left: 24px; font-size: 10px; }

  .bosikod-row { grid-template-columns: 1fr; gap: 6px; padding-top: 10px; }
  .bk-btn { padding: 9px 12px; font-size: 12px; }

  .ticker-keyword { font-size: 11.5px !important; padding: 0 14px !important; }
}


/* ═══════════════════════════════════════════════════════════════════
   LINEAR CARD HIGHLIGHTS (260513b)
   ───────────────────────────────────────────────────────────────────
   "Top edge highlight" — субтильний 1px gradient зверху картки
   як спалах світла. Linear-style trick.
   + Inset specular для embossed feel
   + Subtle bg gradient (top fade) для depth

   Покриває: stat-card, step-card, usecase-home-card, sample-card,
   trust-item, faq-home-item, preview (картка демонстрації),
   risk-map-card.

   CTA-home-block лишається з власним top accent (там mint gradient).
   ═══════════════════════════════════════════════════════════════════ */

body.dark-hero .stat-card,
body.dark-hero .step-card,
body.dark-hero .usecase-home-card,
body.dark-hero .sample-card,
body.dark-hero .trust-item,
body.dark-hero .faq-home-item,
body.dark-hero .risk-map-card {
  position: relative;
  background-image:
    linear-gradient(180deg,
      rgba(255,255,255,0.025) 0%,
      rgba(255,255,255,0) 30%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 1px 2px rgba(0,0,0,0.15) !important;
}

body.dark-hero .stat-card::after,
body.dark-hero .step-card::after,
body.dark-hero .usecase-home-card::after,
body.dark-hero .sample-card::after,
body.dark-hero .trust-item::after,
body.dark-hero .faq-home-item::after,
body.dark-hero .risk-map-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.14) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* На hover edge highlight стає mint-tinted */
body.dark-hero .stat-card:hover::after,
body.dark-hero .step-card:hover::after,
body.dark-hero .usecase-home-card:hover::after,
body.dark-hero .sample-card:hover::after,
body.dark-hero .trust-item:hover::after,
body.dark-hero .faq-home-item:hover::after,
body.dark-hero .risk-map-card:hover::after {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(77,184,191,0.30) 50%,
    transparent 100%
  );
}


/* ─── PREVIEW WINDOW (картка демонстрації результатів) ─────────────
   Edge highlight + inset specular. Не змінюємо existing box-shadow
   (там cinematic depth shadow), додаємо inset через ::after. */
body.dark-hero .preview {
  position: relative;
  background-image:
    linear-gradient(180deg,
      rgba(255,255,255,0.025) 0%,
      rgba(255,255,255,0) 25%
    ) !important;
}
body.dark-hero .preview::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.18) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 10;
}


/* ─── CTA HOME BLOCK — посилюємо existing top accent ──────────────
   У нього вже є ::before з mint top accent — піднімаємо opacity
   щоб ефект був чіткіший */
body.dark-hero .cta-home-block::before {
  opacity: 0.6 !important;
}
body.dark-hero .cta-home-block {
  position: relative;
  background-image:
    linear-gradient(180deg,
      rgba(255,255,255,0.025) 0%,
      rgba(255,255,255,0) 20%
    ) !important;
}

