/* AdeFfix Blog — combined stylesheet (styles + components + page) */

/* ===== base tokens / typography ===== */
/* AdeFfix Landing — Design tokens */

:root {
  /* Brand */
  --brand-blue: oklch(0.58 0.22 258);
  --brand-dark: oklch(0.20 0.03 250);

  /* Dark (default) */
  --bg: oklch(0.16 0.012 250);
  --bg-1: oklch(0.19 0.012 250);
  --bg-2: oklch(0.22 0.012 250);
  --surface: oklch(0.20 0.012 250 / 0.6);
  --surface-solid: oklch(0.21 0.012 250);
  --border: oklch(0.30 0.012 250);
  --border-soft: oklch(0.26 0.012 250);
  --text: oklch(0.97 0.005 250);
  --text-2: oklch(0.78 0.008 250);
  --text-3: oklch(0.58 0.010 250);
  --text-4: oklch(0.42 0.010 250);

  /* Accent (brand blue — matches the AdeFfix logo) */
  --accent: oklch(0.58 0.22 258);
  --accent-2: oklch(0.50 0.22 258);
  --accent-fg: oklch(0.99 0 0);
  --accent-glow: oklch(0.58 0.22 258 / 0.18);

  /* Channel colors (used in charts) */
  --ch-search: oklch(0.72 0.16 245);   /* Google Ads — blue */
  --ch-social: oklch(0.72 0.16 295);   /* Meta — violet */
  --ch-video: oklch(0.78 0.17 15);    /* TikTok — coral */
  --ch-analytics: oklch(0.80 0.18 75);  /* GA4 — amber */
  --ch-seo: var(--accent);
  --ch-direct: oklch(0.65 0.02 250);

  /* Semantics */
  --good: oklch(0.85 0.18 145);
  --bad: oklch(0.72 0.18 25);

  /* Type */
  --ff-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ff-text: "Geist", ui-sans-serif, system-ui, sans-serif;
  --ff-mono: "Geist Mono", ui-monospace, "JetBrains Mono", monospace;

  /* Radii / shadows */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --shadow-card: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 12px 32px -12px oklch(0 0 0 / 0.5);

  /* Layout */
  --maxw: 1240px;
  --gutter: 24px;
  --section-y: 120px;
  --nav-bg: oklch(0.16 0.012 250 / 0.72);
}

[data-theme="light"] {
  --bg: oklch(0.99 0.002 250);
  --bg-1: oklch(0.975 0.003 250);
  --bg-2: oklch(0.955 0.004 250);
  --surface: oklch(1 0 0 / 0.7);
  --surface-solid: oklch(1 0 0);
  --border: oklch(0.86 0.008 250);
  --border-soft: oklch(0.92 0.006 250);
  --text: oklch(0.20 0.025 255);
  --text-2: oklch(0.40 0.020 255);
  --text-3: oklch(0.55 0.015 255);
  --text-4: oklch(0.70 0.010 255);
  --shadow-card: 0 1px 0 oklch(0 0 0 / 0.03) inset, 0 14px 36px -14px oklch(0.40 0.10 258 / 0.16);
  --nav-bg: oklch(1 0 0 / 0.78);
}

[data-density="compact"] { --section-y: 88px; }
[data-density="comfy"]   { --section-y: 144px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); }
body {
  font-family: var(--ff-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background:
    radial-gradient(80% 60% at 50% -10%, var(--accent-glow), transparent 70%),
    var(--bg);
  overflow-x: hidden;
}

[data-theme="light"] body {
  background:
    radial-gradient(60% 40% at 50% -10%, var(--accent-glow), transparent 80%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Typographic primitives */
.h-eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.h-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.h-display {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(40px, 6.2vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
.h-display .accent { color: var(--accent); font-style: italic; font-weight: 400; }

.h-section {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.h-section .accent { color: var(--accent); font-style: italic; font-weight: 400; }

.h-card {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.p-lead { font-size: 18px; color: var(--text-2); line-height: 1.55; max-width: 56ch; text-wrap: pretty; }
.p { color: var(--text-2); line-height: 1.6; text-wrap: pretty; }
.p-mono { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-3); text-transform: uppercase; }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section-sm { padding: calc(var(--section-y) * 0.5) 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 999px;
  font-family: var(--ff-text);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 0 0 0 var(--accent-glow), 0 8px 30px -8px oklch(0.87 0.18 145 / 0.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px var(--accent-glow), 0 12px 36px -8px oklch(0.87 0.18 145 / 0.6); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-1); border-color: var(--text-4); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }

.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* Pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-2);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  border: 0;
}

/* Grain / texture — removed for standalone bundling compatibility */
.grain::before { display: none; }

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Ticker animation for live numbers */
@keyframes pop {
  0% { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Pulse for live dot */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Reveal — kept as no-op for layout neutrality; chart/tab entrances handle motion */
.reveal { opacity: 1; transform: none; }
.reveal.is-in { /* visible by default */ }

/* Utility */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }
.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }
.tab-num { font-variant-numeric: tabular-nums; }

/* Selection */
::selection { background: var(--accent); color: var(--accent-fg); }


/* ===== components ===== */
/* Component-specific styles for AdeFfix landing */

/* Nav */
.nav-link { color: var(--text-2); transition: color .15s; }
.nav-link:hover { color: var(--text); }

/* Hero dashboard */
.hero-dash { transition: transform .3s ease; }
.hero-tab {
  appearance: none; background: transparent; border: 0;
  padding: 12px 14px;
  font-family: var(--ff-text); font-size: 13px; color: var(--text-3);
  cursor: pointer; position: relative;
  transition: color .15s;
  white-space: nowrap;
}
.hero-tab:hover { color: var(--text-2); }
.hero-tab[data-active="true"] { color: var(--text); }
.hero-tab-underline {
  position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

/* Pane fade — visible by default; no entrance animation (preview iframes stall keyframes) */
.pane-fade { opacity: 1; }

/* Chart line + area — visible by default; decorative animation only */
.chart-line-anim, .chart-area-anim { opacity: 1; }

.kpi-tile { background: var(--bg-2); border-color: var(--border-soft); }

/* Keyword rows */
.kw-row {
  display: grid;
  grid-template-columns: 1fr 100px 36px 60px 50px;
  align-items: center; gap: 12px;
  padding: 8px 4px;
  border-top: 1px solid var(--border-soft);
}
.kw-row:first-child { border-top: 0; }
.kw-text { font-family: var(--ff-mono); font-size: 12px; color: var(--text); }
.kw-bar {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in oklch, var(--accent), transparent 70%));
  width: var(--w, 0);
  transition: width 1s cubic-bezier(.2,.7,.2,1);
}

/* Creative cards (small in hero) */
.creative-card {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
}
.creative-img {
  aspect-ratio: 4 / 5;
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
}

/* Source bar */
.src-bar {
  width: 100%; height: 6px; border-radius: 3px;
  background: var(--bg-2);
  overflow: hidden;
}
.src-bar-fill {
  height: 100%; border-radius: 3px;
  transition: width 1.2s cubic-bezier(.2,.7,.2,1);
}

/* Integration row */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Problem section */
.pain-card {
  position: relative;
  background: var(--surface);
  transition: transform .2s ease, border-color .2s ease;
}
.pain-card:hover { transform: translateY(-2px); border-color: var(--border); }
.pain-tag {
  display: inline-block;
  padding: 4px 10px; border-radius: 999px;
  background: oklch(0.72 0.18 25 / 0.12);
  color: oklch(0.78 0.16 25);
  font-size: 10.5px;
  border: 1px solid oklch(0.72 0.18 25 / 0.2);
}
.persona-card .pain-tag {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid color-mix(in oklch, var(--accent), transparent 75%);
}

/* Features grid */
.grid-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 32px 28px 28px;
  position: relative;
  transition: background .2s ease;
  min-height: 230px;
  display: flex; flex-direction: column;
}
.feature-card:hover { background: var(--bg-1); }
.feature-card:hover .feature-chev { color: var(--accent); transform: translate(2px, -2px); }
.feature-num {
  font-size: 11px; color: var(--text-3); margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.feature-chev {
  position: absolute; top: 24px; right: 24px;
  color: var(--text-4);
  transition: color .2s, transform .2s;
}

/* Product preview shell */
.preview-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: flex-start;
}
.preview-side {
  display: flex; flex-direction: column;
  gap: 4px;
  position: sticky; top: 100px;
}
.preview-side-item {
  appearance: none; border: 1px solid transparent;
  background: transparent;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 14px;
  padding: 16px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: background .15s, border-color .15s;
}
.preview-side-item:hover { background: var(--bg-1); }
.preview-side-item[data-active="true"] {
  background: var(--bg-1);
  border-color: var(--border);
}
.preview-side-item[data-active="true"] .preview-side-num { color: var(--accent); }
.preview-side-item[data-active="true"] .preview-side-arr { color: var(--accent); }
.preview-side-num {
  font-size: 11px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.preview-side-arr { color: var(--text-4); transition: color .15s; }

.preview-main { min-width: 0; }
.preview-window {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 30px 80px -30px oklch(0 0 0 / 0.5);
}
.preview-window-bar {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-soft);
}
.preview-window-bar > :nth-child(2) { justify-self: center; }
.preview-window-body {
  padding: 24px;
  min-height: 540px;
}

/* Data tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  font-weight: 400;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
}
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.data-table tr:hover td { background: var(--bg-2); }
.data-table tr:last-child td { border-bottom: 0; }
.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }

/* Filter chip */
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  font-size: 11.5px; color: var(--text-2);
  font-family: var(--ff-mono);
}
.filter-chip[data-active] { background: var(--accent-glow); color: var(--accent); border-color: color-mix(in oklch, var(--accent), transparent 75%); }

/* Margin / kw bars */
.margin-cell { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.margin-bar { flex: 1; height: 4px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.margin-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 1s ease; }
.kw-cell { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.kw-cell-bar { height: 3px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.kw-cell-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 1s ease; }

/* Comparison table — replicates the real product UI */
.cmp-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}
[data-theme="dark"] .cmp-card {
  background: var(--surface-solid);
  border-color: var(--border);
}
.cmp-title {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--ff-text);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid #F1F5F9;
}
[data-theme="dark"] .cmp-title { border-bottom-color: var(--border-soft); }
.cmp-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}
.cmp-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  font-family: var(--ff-text);
  font-variant-numeric: tabular-nums;
}
.cmp-table th {
  text-align: left;
  font-weight: 400;
  font-size: 12px;
  color: #94A3B8;
  padding: 12px 14px;
  border-bottom: 1px solid #F1F5F9;
  white-space: nowrap;
  vertical-align: middle;
}
[data-theme="dark"] .cmp-table th {
  color: var(--text-3);
  border-bottom-color: var(--border-soft);
}
.cmp-table th i {
  display: inline-block;
  vertical-align: middle;
  margin-left: 3px;
  position: relative;
  top: -1px;
}
.cmp-table td {
  font-size: 13px;
  padding: 14px 14px;
  border-bottom: 1px solid #F1F5F9;
  color: #1F2937;
  white-space: nowrap;
}
[data-theme="dark"] .cmp-table td {
  color: var(--text);
  border-bottom-color: var(--border-soft);
}
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-total td {
  border-top: 1px solid #E5E7EB;
  font-weight: 600;
}
[data-theme="dark"] .cmp-total td { border-top-color: var(--border); }
.cmp-table tbody tr:hover td { background: #FAFBFC; }
[data-theme="dark"] .cmp-table tbody tr:hover td { background: var(--bg-1); }

.ch-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

/* Meta ADS analysis table */
.meta-camp-table th { padding-bottom: 14px; }
.meta-camp-table td { padding: 16px 14px; }
.meta-caret {
  display: inline-flex;
  width: 18px; height: 18px;
  align-items: center; justify-content: center;
  color: #94A3B8;
  font-size: 12px;
  border-radius: 4px;
  transition: transform 0.15s;
}
.meta-caret-open {
  color: #1F2937;
  transform: rotate(0deg);
}
.meta-camp-row:hover td { background: #FAFBFC; }
.meta-camp-open td { background: #FFF7ED; }
[data-theme="dark"] .meta-camp-open td { background: oklch(0.30 0.06 50 / 0.18); }

.meta-detail-row td {
  padding: 0 !important;
  background: #FFFBEB;
  border-bottom: 1px solid #FED7AA;
}
[data-theme="dark"] .meta-detail-row td {
  background: oklch(0.24 0.04 50 / 0.2);
  border-bottom-color: oklch(0.45 0.12 50 / 0.3);
}
.meta-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  padding: 14px 14px 18px;
}
.meta-subtable {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 10px;
  padding: 10px 12px 4px;
}
[data-theme="dark"] .meta-subtable {
  background: var(--bg-1);
  border-color: var(--border-soft);
}
.meta-subtable-head {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 2px 10px;
  border-bottom: 1px solid #F1F5F9;
}
[data-theme="dark"] .meta-subtable-head { border-bottom-color: var(--border-soft); }
.meta-subtable-ico { font-size: 13px; }
.meta-subtable-title { font-size: 13px; font-weight: 500; color: var(--text); }
.meta-subtable table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.meta-subtable th {
  font-size: 10.5px;
  font-weight: 400;
  color: #94A3B8;
  padding: 8px 6px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
[data-theme="dark"] .meta-subtable th { color: var(--text-3); }
.meta-subtable td {
  font-size: 12px;
  padding: 8px 6px;
  border-bottom: 1px solid #F8FAFC;
  white-space: nowrap;
}
[data-theme="dark"] .meta-subtable td { border-bottom-color: var(--border-soft); }
.meta-subtable tr:last-child td { border-bottom: 0; }
.meta-subtable tr:hover td { background: transparent; }

/* Google ADS keywords */
.kw-search-bar { padding: 12px 14px 0; }
.kw-term-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #F1F5F9;
  gap: 16px;
}
[data-theme="dark"] .kw-term-head { border-bottom-color: var(--border-soft); }
.kw-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px;
}
.kw-status-added { color: #16A34A; }
.kw-status-added .kw-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #16A34A;
  display: inline-block;
}
.kw-status-excluded {
  color: #475569;
  background: #E2E8F0;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
}
[data-theme="dark"] .kw-status-excluded {
  color: var(--text-2);
  background: var(--bg-2);
}

/* Real-screen cards (using user-provided screenshots) */
.screen-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 12px 32px -12px rgba(15, 23, 42, 0.18);
}
[data-theme="dark"] .screen-card {
  background: #FFFFFF;
  border-color: var(--border);
}
.screen-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Placeholder card for views without a screenshot yet */
.screen-card-placeholder {
  background: linear-gradient(135deg, #FFFFFF, #F0F9FF 60%, #EFF6FF);
  border-style: dashed;
  border-color: #BFDBFE;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 32px;
  text-align: center;
}
[data-theme="dark"] .screen-card-placeholder {
  background: linear-gradient(135deg, var(--bg-1), oklch(0.24 0.04 258 / 0.6));
  border-color: var(--border);
}
.screen-ph-inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  max-width: 640px;
}
.screen-ph-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.screen-ph-title {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.screen-ph-text {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}
.screen-ph-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
  padding: 24px 32px;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  min-width: 480px;
}
[data-theme="dark"] .screen-ph-stats {
  background: var(--surface-solid);
  border-color: var(--border-soft);
}
.screen-ph-stats > div {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.screen-ph-stats-num {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.screen-ph-stats-lbl {
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--ff-mono);
}

.insight-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: color-mix(in oklch, var(--accent), transparent 94%);
  border: 1px solid color-mix(in oklch, var(--accent), transparent 82%);
  border-radius: 10px;
  color: var(--text);
}
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: color-mix(in oklch, var(--accent), transparent 94%);
  border: 1px solid color-mix(in oklch, var(--accent), transparent 82%);
  border-radius: 10px;
  color: var(--text);
}

/* Creative grid (big preview) */
.creative-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.creative-big {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s ease;
}
.creative-big:hover { transform: translateY(-2px); }
.creative-rank {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--ff-mono); font-size: 10px;
  background: oklch(0 0 0 / 0.55);
  color: oklch(1 0 0 / 0.95);
  padding: 3px 7px; border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* Finance rows */
.fin-rows { display: flex; flex-direction: column; gap: 0; }
.fin-row {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr auto;
  align-items: center;
  gap: 16px;
}
.fin-bar-wrap { display: flex; align-items: center; }
.fin-bar { width: 100%; height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.fin-bar-fill { height: 100%; transition: width 1s ease; }

/* AI section */
.ai-section {
  position: relative;
  overflow: hidden;
}
.ai-section::before {
  content: ""; position: absolute;
  width: 60vw; height: 60vw;
  left: -30vw; top: 20%;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.ai-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.ai-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px;
  color: var(--text-2);
}

.ai-chat {
  display: flex; flex-direction: column;
  background: var(--bg-1);
  box-shadow: var(--shadow-card), 0 30px 80px -30px color-mix(in oklch, var(--accent), transparent 82%);
}
.ai-chat-body {
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  max-height: 540px;
  overflow-y: auto;
  background:
    radial-gradient(80% 60% at 100% 0%, var(--accent-glow), transparent 60%),
    var(--bg-1);
}
.bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 88%;
  opacity: 1;
}
.bubble-u {
  background: var(--accent);
  color: var(--accent-fg);
  border-bottom-right-radius: 4px;
}
.bubble-a {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border-soft);
  border-bottom-left-radius: 4px;
}
.ai-action {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s;
}
.ai-action:hover { background: var(--bg); }
.dot-typ {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3);
  animation: dot-bounce 1.4s ease infinite;
}
.dot-typ:nth-child(2) { animation-delay: .2s; }
.dot-typ:nth-child(3) { animation-delay: .4s; }
@keyframes dot-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .6; } 30% { transform: translateY(-3px); opacity: 1; } }
.ai-chat-input {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 18px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-1);
}

/* Personas */
.persona-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.how-step {
  padding: 24px 24px 24px 0;
  position: relative;
  padding-right: 32px;
}
.how-step:not(:last-child)::after {
  content: ""; position: absolute;
  right: 16px; top: 28px; bottom: 28px;
  width: 1px; background: var(--border-soft);
}
.how-step-num {
  font-size: 11px; color: var(--text-3);
  letter-spacing: 0.06em;
}
.how-step-line {
  margin-top: 12px;
  height: 1px;
  width: 32px;
  background: var(--accent);
}

/* Pricing */
.bill-switch {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}
.bill-switch button {
  appearance: none; border: 0; background: transparent;
  padding: 8px 18px;
  font-family: inherit; font-size: 13.5px; color: var(--text-3);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.bill-switch button[data-active="true"] {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.2);
}
.bill-save {
  font-size: 10.5px; padding: 2px 7px; border-radius: 999px;
  background: var(--accent-glow); color: var(--accent);
  font-family: var(--ff-mono);
}
.plan-card {
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan-highlighted {
  background: linear-gradient(180deg, var(--surface), var(--surface));
  border-color: color-mix(in oklch, var(--accent), transparent 60%);
  box-shadow: var(--shadow-card), 0 30px 80px -30px var(--accent-glow);
  position: relative;
}
.plan-highlighted::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: var(--r-lg);
  padding: 1px;
  background: linear-gradient(180deg, var(--accent), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.plan-tag {
  font-family: var(--ff-mono); font-size: 10.5px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-2); color: var(--text-3);
  border: 1px solid var(--border-soft);
}
.plan-tag[data-highlight="true"] {
  background: var(--accent); color: var(--accent-fg); border-color: transparent;
}
.plan-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.plan-list li.row { gap: 12px; align-items: center; }
.plan-list .check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; min-width: 22px; border-radius: 50%; background: oklch(0.95 0.02 260); }

/* FAQ */
.faq-item {
  appearance: none; background: transparent; border: 0;
  text-align: left; width: 100%; cursor: pointer;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border-soft);
  font-family: inherit;
  color: var(--text);
  transition: padding .2s;
}
.faq-item:hover .faq-q { color: var(--accent); }
.faq-q {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  transition: color .15s;
  padding-right: 24px;
}
.faq-plus {
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--text-3);
  width: 24px;
  display: inline-flex;
  justify-content: center;
}
.faq-a {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 60ch;
}

/* Final CTA */
.cta-card {
  position: relative;
  padding: 72px 72px 80px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--border);
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 80%; height: 120%;
  left: 50%; top: -20%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, var(--accent-glow), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }

/* Footer */
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-link { color: var(--text-2); font-size: 13.5px; transition: color .15s; }
.footer-link:hover { color: var(--text); }

/* Light theme tweaks */
[data-theme="light"] .creative-rank { background: oklch(0 0 0 / 0.65); }

/* Responsive */
@media (max-width: 1100px) {
  .grid-features { grid-template-columns: repeat(2, 1fr); }
  .preview-shell { grid-template-columns: 1fr; }
  .preview-side { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .preview-side-item { min-width: 280px; flex-shrink: 0; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .creative-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .h-display { font-size: 44px; }
  .section { padding: 80px 0; }
  .wrap { padding: 0 18px; }
  .row.between { flex-wrap: wrap; }
  /* Stack hero */
  section.section:first-of-type > .wrap > .row { grid-template-columns: 1fr !important; gap: 48px !important; }
  .grid-features { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .row[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .creative-grid { grid-template-columns: repeat(2, 1fr); }
  .data-table { font-size: 11.5px; }
  .data-table td, .data-table th { padding: 8px 6px; }
  .cta-card { padding: 40px 28px; }
}


/* ===== page + blog ===== */
/* Shared styles for sub-pages (Privacy, Terms, Cookies, Referral, Videos) */

.page-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(1 0 0 / 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  padding: 16px 0;
}
[data-theme="dark"] .page-nav {
  background: oklch(0.16 0.012 250 / 0.72);
}
.page-nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px;
}
.page-nav-links {
  display: flex; gap: 32px; align-items: center;
  font-size: 14px; color: var(--text-2);
}
.page-nav-links a { transition: color .15s; }
.page-nav-links a:hover { color: var(--text); }

.page-hero {
  padding: 100px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}
.page-eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-h1 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 18px 0 16px;
  color: var(--text);
  text-wrap: balance;
}
.page-lead {
  font-size: 18px;
  color: var(--text-2);
  max-width: 60ch;
  margin: 0 auto;
  text-wrap: pretty;
}
.page-meta {
  margin-top: 24px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text-3);
}

.page-body {
  padding: 80px 0;
}
.page-body-inner {
  max-width: 760px;
  margin: 0 auto;
}
.page-body-inner h2 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 56px 0 16px;
  line-height: 1.2;
}
.page-body-inner h2:first-child { margin-top: 0; }
.page-body-inner h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 32px 0 12px;
}
.page-body-inner p {
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 16px;
  font-size: 15.5px;
  text-wrap: pretty;
}
.page-body-inner ul, .page-body-inner ol {
  color: var(--text-2);
  line-height: 1.65;
  font-size: 15.5px;
  padding-left: 22px;
  margin: 0 0 16px;
}
.page-body-inner li { margin-bottom: 8px; }
.page-body-inner strong { color: var(--text); font-weight: 500; }
.page-body-inner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.page-body-inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14px;
}
.page-body-inner th, .page-body-inner td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-2);
}
.page-body-inner th {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.page-toc {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 48px;
}
.page-toc-title {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.page-toc ol {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
}
.page-toc li { margin-bottom: 6px; font-size: 14.5px; }
.page-toc a { color: var(--text-2); text-decoration: none; }
.page-toc a:hover { color: var(--accent); }

/* Referral page specifics */
.ref-card {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.ref-card-big {
  font-family: var(--ff-display);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.ref-card-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.ref-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 32px;
}
.ref-step {
  background: var(--bg);
  padding: 28px 24px;
}
.ref-step-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.ref-step h3 { margin: 0 0 8px; font-size: 17px; }
.ref-step p { margin: 0; font-size: 14px; line-height: 1.55; }

/* Video page specifics */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0 0 32px;
}
.video-card {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
}
.video-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-blue, #3052E0), oklch(0.45 0.20 280));
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.video-play {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.3);
}
.video-play svg { fill: var(--brand-dark, #1F2434); margin-left: 3px; }
.video-duration {
  position: absolute;
  bottom: 12px; right: 12px;
  background: oklch(0 0 0 / 0.65);
  color: oklch(1 0 0);
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
}
.video-meta {
  padding: 18px;
}
.video-meta h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.video-meta p { margin: 0; font-size: 13px; color: var(--text-3); }

@media (max-width: 760px) {
  .ref-steps, .ref-grid, .video-grid { grid-template-columns: 1fr; }
  .page-h1 { font-size: 36px; }
  .page-nav-links { display: none; }
  .page-nav-cta .btn-ghost { display: none; }
  .page-nav-cta .btn-primary { font-size: 12px; padding: 7px 14px; }
  .mobile-burger { display: flex; }
  .page-nav { padding: 10px 0; }
  .page-nav-inner { gap: 12px; }
}

/* Page footer (re-uses footer-list/.footer-link from components.css) */
.page-footer {
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 48px;
}

/* ─── Blog tabs ─────────────────────────────────────────── */
.blog-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  margin: 0 auto 48px;
}
.blog-tab {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--ff-text);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.blog-tab:hover { color: var(--text); }
.blog-tab[data-active="true"] {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 4px 14px var(--accent-glow, rgba(48,82,224,0.3));
}
.blog-tab .count {
  font-family: var(--ff-mono);
  font-size: 11px;
  opacity: 0.7;
}

.blog-panel { display: none; }
.blog-panel[data-active="true"] { display: block; animation: blogfade 0.3s cubic-bezier(.2,.7,.2,1); }
@keyframes blogfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── Article cards ─────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.article-card h3,
.article-card p,
.article-card span,
.article-card div { text-decoration: none !important; }
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(15,23,42,0.2);
  border-color: var(--accent);
}
.article-thumb {
  position: relative;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}
.article-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.article-body .tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-2, #f1f5f9);
  color: var(--accent, #2563eb);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
  margin-bottom: 8px;
}
.article-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-body h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 8px;
}
.article-body p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--text-3);
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }

/* "Детальніше" button bottom-right of card */
.article-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-end;
  margin-top: 16px;
  font-family: var(--ff-text);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding: 7px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  transition: all 0.16s;
}
.article-card:hover .article-more {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.article-more .arr { transition: transform 0.18s; }
.article-card:hover .article-more .arr { transform: translateX(3px); }

/* ─── Pagination ────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.page-btn {
  appearance: none;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-soft);
  background: var(--bg-1);
  border-radius: 10px;
  font-family: var(--ff-mono);
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.page-btn[data-active="true"] {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-ellipsis {
  min-width: 24px;
  text-align: center;
  color: var(--text-4);
  font-family: var(--ff-mono);
}

/* ─── Detail page (video / article) ─────────────────────── */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.15s;
}
.detail-back:hover { color: var(--accent); }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-3);
  margin-bottom: 24px;
}
.breadcrumbs a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--text-4); }
.breadcrumbs .current { color: var(--text); }
.detail-tag {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.detail-h1 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 14px 0 16px;
  text-wrap: balance;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 36px;
}
.detail-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }
.detail-video {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  margin-bottom: 40px;
  box-shadow: 0 30px 70px -30px rgba(15,23,42,0.4);
}
.detail-video iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 760px) {
  .article-grid { grid-template-columns: 1fr; }
  .blog-tabs { width: 100%; justify-content: center; }
}


/* ─── Blog article content (dangerouslySetInnerHTML) ──── */
.blog-content { font-size: 15.5px; color: var(--text-2); line-height: 1.65; }
.blog-content h2 {
  font-family: var(--ff-display); font-weight: 500; font-size: 26px;
  letter-spacing: -0.02em; color: var(--text); margin: 48px 0 16px; line-height: 1.2;
}
.blog-content h2:first-child { margin-top: 0; }
.blog-content h3 {
  font-family: var(--ff-display); font-weight: 500; font-size: 20px;
  letter-spacing: -0.015em; color: var(--text); margin: 36px 0 12px; line-height: 1.25;
}
.blog-content p { color: var(--text-2); line-height: 1.65; margin: 0 0 16px; text-wrap: pretty; }
.blog-content strong { color: var(--text); font-weight: 500; }
.blog-content ul, .blog-content ol {
  color: var(--text-2); line-height: 1.65; padding-left: 24px; margin: 0 0 16px;
}
.blog-content ul { list-style-type: disc; }
.blog-content ol { list-style-type: decimal; }
.blog-content li { margin-bottom: 8px; }
.blog-content img {
  max-width: 100%; height: auto; border-radius: 8px; cursor: zoom-in;
  transition: opacity 0.2s;
}
.blog-content img:hover { opacity: 0.85; }
.blog-content a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}

/* ─── Image Lightbox ──────────────────────────────── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
  animation: lightbox-fade-in 0.2s ease;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
@keyframes lightbox-fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-overlay img {
  max-width: 92vw; max-height: 90vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15); border: none; border-radius: 50%;
  color: #fff; font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.blog-content table {
  width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px;
}
.blog-content th, .blog-content td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft); color: var(--text-2);
}
.blog-content th {
  font-weight: 500; color: var(--text); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.blog-content tbody tr:hover td { background: var(--bg-1); }

/* ─── Article cover image ───────────────────────────── */
.detail-cover {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: 0 30px 70px -30px rgba(15,23,42,0.4);
}
.detail-cover img { width: 100%; height: auto; display: block; }

/* ─── Callout box ───────────────────────────────────── */
.blog-content .callout {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
}

/* ─── Article table (styled variant) ────────────────── */
.blog-content .article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.blog-content .article-table th,
.blog-content .article-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.blog-content .article-table thead th {
  background: var(--bg-1);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  text-transform: none;
  letter-spacing: normal;
}
.blog-content .article-table tbody tr:hover td { background: var(--bg-1); }
.blog-content .article-table td:first-child { font-weight: 500; color: var(--text); white-space: nowrap; }

/* ─── Nav dropdown for Корисне ───────────────────────── */
.nav-dropdown-wrap {
  position: relative;
  display: inline-flex;
}
.nav-dropdown-trigger {
  font-size: 14px;
  line-height: 1;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: dropdownFadeIn 0.15s ease-out;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
[data-theme="dark"] .nav-dropdown-menu {
  background: var(--surface-solid);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.nav-dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 450;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover {
  background: #f0f4ff;
  color: #2563eb;
}
[data-theme="dark"] .nav-dropdown-item:hover {
  background: rgba(37,99,235,0.1);
  color: #60a5fa;
}

/* export: invert white logo to dark for light nav/footer */
.page-nav img, .page-footer img { filter: invert(1) brightness(0.25); }
