/* ─────────────────────────────────────────────────────────────
   Esettanulmányok — Expert Flow v3-dark
   Brand: Instrument Sans + Instrument Serif + JetBrains Mono
   Palette matched 1:1 to expertflow-v3-dark.vercel.app
   Cell-bordered grid · grain · lavender accent
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  color-scheme: light;

  /* Business Native — light monochrome (expertflow-ugyfelkezeles.vercel.app).
     Cream surface, ink type, alpha-black borders, strict monochrome accent. */
  --bg: #f5f4f1;
  --bg-elev: #ffffff;
  --bg-elev-2: #eeede9;
  --card: #ffffff;
  --card-hover: #faf9f6;

  --border: rgba(0, 0, 0, 0.10);
  --border-strong: rgba(0, 0, 0, 0.18);
  --border-cell: rgba(0, 0, 0, 0.12);

  --text: #000000;
  --text-muted: rgba(0, 0, 0, 0.64);
  --text-dim: rgba(0, 0, 0, 0.40);

  /* Accent collapses to pure ink — strict monochrome (computed-style exact) */
  --accent: #000000;
  --accent-soft: rgba(0, 0, 0, 0.05);
  --accent-strong: #000000;
  --accent-glow: rgba(0, 0, 0, 0.08);

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-serif: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, "SF Mono", Menlo, monospace;

  /* Business Native radii — subtle 8px cards + 2rem pill buttons */
  --radius-sm: 0.5rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-pill: 2rem;

  --container: 1280px;
  --container-prose: 760px;
  --container-case: 1100px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'ss02', 'cv01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  line-height: 1.6;
}

/* Grain texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}
body > * { position: relative; z-index: 1; }

html { scroll-behavior: smooth; }

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: inherit;
}

img, svg { display: block; max-width: 100%; }

/* ─────────────────────────────────────────────────────────────
   Brand bar + nav
   ───────────────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* v3-dark-stílusú keretezett fejléc (etalon: expertflow-v3-dark.vercel.app) */
.site-header {
  padding: 20px 24px 0;
  position: relative;
  z-index: 50;
}
.site-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 15px 24px;
  background: rgba(13, 13, 15, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text);
  justify-self: start;
}
.site-logo em { font-style: italic; color: inherit; }
.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.site-nav a { color: var(--text-muted); transition: color 0.18s var(--ease-out); }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-header-link {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  transition: color 0.18s var(--ease-out);
}
.site-header-link:hover { color: var(--accent-strong); }
@media (max-width: 760px) {
  .site-header { padding: 14px 16px 0; }
  .site-header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    text-align: center;
    padding: 14px 18px;
  }
  .site-logo, .site-header-link { justify-self: center; }
  .site-nav { gap: 6px 10px; font-size: 10px; }
  /* Érintési cél: a nav-linkek legalább 44px magasak legyenek (WCAG 2.5.8) */
  .site-nav a {
    padding: 10px 8px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .site-header-link { padding: 8px; min-height: 40px; display: inline-flex; align-items: center; }
}

/* ─────────────────────────────────────────────────────────────
   Hero (homepage)
   ───────────────────────────────────────────────────────────── */
header.hero {
  padding: 72px 24px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
/* A brand.css .hero-stage 4rem paddingját kioltjuk — a header.hero kezeli a teret
   (különben dupla felső üres sáv keletkezik a homepage hero-ban). */
.hero .hero-stage { padding: 0; }

header.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(192, 192, 231, 0.13), transparent 65%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(192, 192, 231, 0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

header.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(192, 192, 231, 0.18) 30%,
    rgba(192, 192, 231, 0.18) 70%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

header.hero > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(192, 192, 231, 0.22);
  border-radius: var(--radius-pill);
}
.eyebrow .pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

header.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7.6vw, 96px);
  font-weight: 400;
  margin: 0 0 24px;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--text);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
header.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

header.hero .lede {
  font-size: 19px;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 720px;
  line-height: 1.55;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: background 0.22s var(--ease-out), border-color 0.22s var(--ease-out), transform 0.22s var(--ease-out);
  font-family: inherit;
}

.cta-primary {
  background: var(--accent-soft);
  border-color: rgba(192, 192, 231, 0.32);
  color: var(--accent-strong);
}
.cta-primary:hover {
  background: rgba(192, 192, 231, 0.18);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.cta-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-muted);
}
.cta-secondary:hover {
  border-color: var(--text-dim);
  color: var(--text);
  transform: translateY(-1px);
}

.cta .arrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  transition: transform 0.22s var(--ease-out);
}
.cta:hover .arrow { transform: translateX(2px); }

/* ─────────────────────────────────────────────────────────────
   Container + sections
   ───────────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-prose { max-width: var(--container-prose); margin: 0 auto; padding: 0 24px; }
.case-container { max-width: var(--container-case); margin: 0 auto; padding: 32px 24px 0; }

section { padding: 96px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow { margin-bottom: 16px; }
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 400;
  margin: 0 0 16px;
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.section-header h2 em { font-style: italic; color: var(--accent); }
.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ─────────────────────────────────────────────────────────────
   Category groups
   ───────────────────────────────────────────────────────────── */
.cat-group { margin-bottom: 56px; }
.cat-group:last-child { margin-bottom: 0; }
.cat-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--border-cell);
  margin-bottom: 0;
}
.cat-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.cat-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--text);
}
.cat-desc {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  max-width: 55%;
  text-align: right;
}

/* ─────────────────────────────────────────────────────────────
   Case cards grid (index)
   ───────────────────────────────────────────────────────────── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.case-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.case-card:hover {
  background: var(--bg-elev);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.case-card:hover .case-thumb img {
  transform: scale(1.04);
}
.case-card::after {
  content: "→";
  position: absolute;
  right: 22px;
  bottom: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  z-index: 2;
}
.case-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.case-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-elev-2);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out);
  border-bottom: 1px solid var(--border-cell);
}
.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.case-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(7, 7, 9, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}
.case-thumb.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(192, 192, 231, 0.10), transparent 70%),
    var(--bg-elev);
}
.case-thumb.empty span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 7px 14px;
  border: 1px dashed rgba(192, 192, 231, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(7, 7, 9, 0.5);
}

.case-card-body {
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 170px;
}
.case-card .case-tag {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
}
.case-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.018em;
  line-height: 1.18;
  color: var(--text);
}
.case-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  padding-right: 28px;
}
.case-card .case-meta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ─────────────────────────────────────────────────────────────
   Case page — header
   ───────────────────────────────────────────────────────────── */
.case-header {
  padding: 64px 24px 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.case-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(192, 192, 231, 0.09), transparent 60%);
  pointer-events: none;
}
.case-header > * { position: relative; }
.case-header .breadcrumb {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.case-header .breadcrumb a {
  color: var(--text-muted);
  transition: color 0.18s var(--ease-out);
}
.case-header .breadcrumb a:hover { color: var(--accent); }
.case-header .breadcrumb .sep {
  margin: 0 10px;
  color: var(--border-strong);
}
.case-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 400;
  margin: 0 auto;
  letter-spacing: -0.024em;
  line-height: 1.06;
  text-align: center;
  max-width: 920px;
  color: var(--text);
}
.case-header h1 em { font-style: italic; color: var(--accent); }
.case-header .case-sub {
  text-align: center;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 24px auto 0;
  line-height: 1.55;
}
.case-header .case-live-link {
  text-align: center;
  margin: 18px auto 0;
}
.case-header .case-live-link a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  padding: 10px 18px;
  transition: color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}
.case-header .case-live-link a:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(192, 192, 231, 0.06);
}
/* ─────────────────────────────────────────────────────────────
   Case page — tabs
   ───────────────────────────────────────────────────────────── */
.case-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-cell);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.case-tab {
  background: transparent;
  border: 0;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
  transition: color 0.18s var(--ease-out);
}
.case-tab:hover { color: var(--text-muted); }
.case-tab.active {
  color: var(--accent);
}
.case-tab.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 0;
}

.tab-panel {
  display: none;
  padding: 32px 0 64px;
}
.tab-panel.active { display: block; }
.tab-panel[hidden] { display: none; }

/* ─────────────────────────────────────────────────────────────
   Case prose (reading content)
   ───────────────────────────────────────────────────────────── */
.case-prose {
  max-width: var(--container-prose);
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
}
/* "A lényeg" — kiemelt, éles, bal-accent sávos doboz az elemzés tetején */
.case-prose .key-point {
  margin: 0 0 38px;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.case-prose .key-point strong { color: var(--accent); font-weight: 600; }
.case-prose p {
  margin: 0 0 1.3em;
  color: var(--text);
}
.case-prose p strong,
.case-prose li strong { color: var(--text); font-weight: 600; }
.case-prose p em { color: var(--text); font-style: italic; }
.case-prose a {
  color: var(--accent);
  border-bottom: 1px solid rgba(192, 192, 231, 0.32);
  transition: color 0.18s, border-color 0.18s;
}
.case-prose a:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
}

.case-prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 64px 0 18px;
  color: var(--text);
  scroll-margin-top: 80px;
}
.case-prose h2 em { font-style: italic; color: var(--accent); }

.case-prose h3 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 400;
  letter-spacing: -0.014em;
  line-height: 1.2;
  margin: 44px 0 14px;
  color: var(--accent-strong);
  scroll-margin-top: 80px;
}

.case-prose h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 30px 0 10px;
  letter-spacing: -0.008em;
  color: var(--text);
  text-transform: none;
}

.case-prose ul, .case-prose ol {
  margin: 0 0 1.5em;
  padding-left: 26px;
}
.case-prose ul li, .case-prose ol li {
  margin-bottom: 0.6em;
  color: var(--text);
}
.case-prose ul li::marker { color: var(--accent); }
.case-prose ol li::marker { color: var(--accent); font-family: var(--font-serif); font-style: italic; }

.case-prose blockquote {
  margin: 28px 0;
  padding: 22px 28px;
  border-left: 3px solid var(--accent);
  background: var(--bg-elev);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}

.case-prose pre, .case-prose code {
  font-family: var(--font-mono);
}
.case-prose code {
  font-size: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 0;
  color: var(--accent-strong);
}
.case-prose pre {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 24px 0;
  color: var(--text);
}
.case-prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}
.case-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}
.case-prose thead { display: table-header-group; }
.case-prose tbody { display: table-row-group; }
.case-prose tr { display: table-row; }
.case-prose th, .case-prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-cell);
  vertical-align: top;
  display: table-cell;
}
.case-prose th {
  font-weight: 500;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--bg-elev);
}

.empty-state {
  padding: 48px;
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 19px;
}

/* ─────────────────────────────────────────────────────────────
   Wireframe + screenshot panels
   ───────────────────────────────────────────────────────────── */
.wireframe-wrap, .screenshot-wrap {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--border-cell);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--card);
  overflow: hidden;
}
.wireframe-wrap svg {
  width: 100%;
  height: auto;
  background: #ffffff;
  border-radius: 0;
}
.screenshot-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Wireframe letöltés gomb */
.panel-actions {
  max-width: 1100px;
  margin: 16px auto 0;
  display: flex;
  justify-content: center;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.download-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.download-btn .arrow { transition: transform 0.2s var(--ease-out); }
.download-btn:hover .arrow { transform: translateY(2px); }

/* Forrás-screenshot megjegyzés (halott domain → branded fallback) */
.screenshot-note {
  max-width: 1100px;
  margin: 12px auto 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
  font-style: italic;
}

/* AI-prompt blokk a wireframe tabon — másolható prompt a saját vázhoz */
.ai-prompt {
  max-width: 1100px;
  margin: 22px auto 0;
  border: 1px solid var(--border-cell);
  border-radius: var(--radius);
  background: var(--card);
  padding: 20px 22px;
}
.ai-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ai-prompt-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.ai-prompt-copy {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  color: var(--text);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.ai-prompt-copy:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.ai-prompt-copy.copied { border-color: var(--accent); color: var(--accent); }
.ai-prompt-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft, var(--text-muted));
  background: var(--bg-elev);
  border-radius: 0;
  padding: 14px 16px;
  white-space: pre-wrap;
}
.ai-prompt-hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ─────────────────────────────────────────────────────────────
   Case-page bottom nav (prev/next)
   ───────────────────────────────────────────────────────────── */
.case-nav {
  max-width: var(--container-prose);
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.case-nav a {
  background: var(--card);
  border: 1px solid var(--border-cell);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.case-nav a:hover {
  background: var(--card-hover);
  border-color: rgba(192, 192, 231, 0.32);
  transform: translateY(-1px);
}
.case-nav .nav-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.case-nav .nav-title {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.012em;
}
.case-nav a.next { text-align: right; }

/* ─────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 24px 40px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
footer .footer-brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.014em;
}
footer .footer-meta {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
footer .footer-links {
  margin-top: 24px;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
}
footer .footer-links a {
  color: var(--text-muted);
  transition: color 0.18s var(--ease-out);
}
footer .footer-links a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────────────────────
   Reveal animations
   ───────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .eyebrow .pulse-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ─────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  header.hero { padding: 56px 18px 40px; }
  section { padding: 72px 0; }
  .container, .container-prose, .case-container { padding: 0 18px; }
  .case-container { padding-top: 24px; }
  .case-header { padding: 48px 18px 44px; }
  .case-prose { font-size: 16px; }
  .case-prose blockquote { font-size: 18px; padding: 18px 22px; }
  .stat { padding: 14px 18px; min-width: 100px; }
  .stat b { font-size: 26px; }
  .cat-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cat-desc { margin-left: 0; text-align: left; max-width: 100%; }
  .case-nav { grid-template-columns: 1fr; }
  .case-nav a.next { text-align: left; }
  .tab-panel { padding: 24px 0 48px; }
  /* 3 tab 1 sorban marad + 44px érintési magasság (WCAG 2.5.8) */
  .case-tabs { flex-wrap: nowrap; gap: 4px; }
  .case-tab {
    padding: 12px 6px;
    font-size: 12px;
    min-height: 44px;
    flex: 1 1 0;
    text-align: center;
    justify-content: center;
  }
}

/* ─────────────────────────────────────────────────────────────
   P0-2: Low-res screenshot wrapper (damage limitation)
   ───────────────────────────────────────────────────────────── */
.screenshot-wrap.low-res img {
  max-width: 375px;
  margin: 0 auto;
  display: block;
  border-radius: 0;
}
.screenshot-wrap.low-res::before {
  content: "Mobil-felbontású screenshot — eredeti képarány megtartva";
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  border: 1px dashed var(--border-cell);
  border-radius: 0;
  background: var(--accent-soft);
}

/* ─────────────────────────────────────────────────────────────
   P1-4: Filter + search bar
   ───────────────────────────────────────────────────────────── */
.filter-bar {
  margin: 0 0 48px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border-cell);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.filter-search {
  position: relative;
}
.filter-search input[type="search"] {
  width: 100%;
  padding: 14px 18px 14px 46px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border-cell);
  border-radius: var(--radius-pill);
  font-family: inherit;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.filter-search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.filter-search input[type="search"]::placeholder {
  color: var(--text-dim);
}
.filter-search::before {
  content: "⌕";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-dim);
  pointer-events: none;
  font-family: var(--font-serif);
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  background: transparent;
  border: 1px solid var(--border-cell);
  color: var(--text-muted);
  padding: 12px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s var(--ease-out);
  letter-spacing: 0.02em;
}
.filter-chip:hover {
  border-color: var(--text-dim);
  color: var(--text);
}
.filter-chip.active {
  background: var(--accent-soft);
  border-color: rgba(192, 192, 231, 0.4);
  color: var(--accent);
}
.filter-empty {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 14px;
}
.filter-empty .filter-reset {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  cursor: pointer;
  margin-left: 8px;
  font-size: 13px;
  transition: background 0.18s;
}
.filter-empty .filter-reset:hover { background: var(--accent-soft); }

/* When a card is filtered out */
.case-card.filtered-out { display: none; }
.cat-group.filtered-empty { display: none; }

/* ─────────────────────────────────────────────────────────────
   P2: Apply-now CTA section (case page footer)
   ───────────────────────────────────────────────────────────── */
/* ─────────────────────────────────────────────────────────────
   R2: Placeholder thumbnail branding ("VÁZLAT" badge)
   A 8 case-nek, ahol nincs forrás-screenshot, vizuálisan
   megkülönböztető overlay-t adunk az index thumbnail-en.
   ───────────────────────────────────────────────────────────── */
.case-thumb.placeholder {
  position: relative;
}
.case-thumb.placeholder img,
.case-thumb img.placeholder {
  filter: grayscale(18%) brightness(0.95);
}
.case-thumb.placeholder::after {
  content: "VÁZLAT";
  position: absolute;
  /* A .case-thumb::after alap szabálya inset:0-t ad (gradient overlay) —
     left/bottom-ot vissza kell állítani, különben a badge doboza a teljes
     borítót letakarja a 82%-os fekete hátterével. */
  inset: auto;
  top: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  padding: 4px 8px;
  background: rgba(7, 7, 9, 0.82);
  color: var(--accent);
  border: 1px solid rgba(192, 192, 231, 0.32);
  border-radius: 0;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ─────────────────────────────────────────────────────────────
   R2: 480px és 320px responsive — mobile-first gap betöltése
   ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  header.hero { padding: 48px 16px 36px; }
  header.hero h1 { font-size: clamp(36px, 11vw, 56px); line-height: 1.05; }
  header.hero .lede { font-size: 16px; }
  .case-header { padding: 40px 16px 36px; }
  .case-header h1 { font-size: clamp(30px, 9vw, 44px); }
  .container, .container-prose, .case-container { padding: 0 16px; }
  .eyebrow { font-size: 10px; padding: 5px 10px; margin-bottom: 18px; }
  .case-pill-row { gap: 6px; }
  .case-pill { font-size: 11px; padding: 4px 10px; }
  .stats { gap: 8px; }
  .stat { padding: 12px 14px; min-width: 88px; }
  .stat b { font-size: 22px; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .cta { width: 100%; justify-content: center; }
  .case-grid { grid-template-columns: 1fr; gap: 16px; }
  .filter-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .filter-chip { padding: 12px 10px; min-height: 44px; font-size: 11.5px; text-align: center; }
  .filter-bar { padding: 18px; gap: 14px; }
  .filter-search input[type="search"] { font-size: 14px; padding: 12px 16px 12px 40px; }
  .ecosystem-footer { padding: 48px 16px 36px; margin-top: 48px; }
  .ecosystem-footer h3 { font-size: 22px; }
  .ecosystem-grid { grid-template-columns: 1fr; gap: 10px; }
  .apply-now { padding: 0 16px; }
  .apply-card { padding: 26px 18px; }
  .apply-card h3 { font-size: 22px; }
  .case-card-body h3 { font-size: 18px; }
  .case-thumb.placeholder::after { font-size: 9px; padding: 3px 6px; top: 8px; right: 8px; }
}

@media (max-width: 320px) {
  header.hero { padding: 40px 12px 32px; }
  header.hero h1 { font-size: 30px; }
  header.hero .lede { font-size: 14.5px; }
  .case-header { padding: 36px 12px 28px; }
  .case-header h1 { font-size: 26px; }
  .container, .container-prose, .case-container { padding: 0 12px; }
  .eyebrow { font-size: 9.5px; letter-spacing: 0.14em; }
  .case-pill { font-size: 10.5px; padding: 3px 8px; }
  .stat { padding: 10px 12px; min-width: 76px; }
  .stat b { font-size: 20px; }
  .stat span { font-size: 10.5px; }
  .filter-chips { grid-template-columns: repeat(2, 1fr); }
  .filter-chip { font-size: 11px; padding: 12px 6px; min-height: 44px; }
  .filter-bar { padding: 14px; }
  .case-card-body { padding: 16px; }
  .case-card-body h3 { font-size: 17px; }
  .case-card-body p { font-size: 13.5px; }
  .ecosystem-footer { padding: 40px 12px 28px; }
  .ecosystem-footer h3 { font-size: 20px; }
  .ecosystem-grid a { padding: 12px 14px; font-size: 13px; }
  .apply-card { padding: 22px 14px; }
  .apply-card h3 { font-size: 20px; }
  .apply-card p { font-size: 14px; }
  .case-prose { font-size: 15px; }
  .case-tab { padding: 10px 8px; font-size: 11.5px; }
}

/* ─────────────────────────────────────────────────────────────
   R3: Bővített mobile breakpoint stack (360, 375, 414, 768, 1024)
   Shared mobile fixes — touch target standardok + finomhangolás
   ───────────────────────────────────────────────────────────── */

/* iPhone SE 2.gen, iPhone 13 mini és kisebb (≤375px) */
@media (max-width: 375px) {
  header.hero { padding: 44px 14px 36px; }
  header.hero h1 { font-size: clamp(32px, 10vw, 48px); line-height: 1.06; }
  header.hero .lede { font-size: 15px; }
  .case-header h1 { font-size: clamp(26px, 8.5vw, 40px); }
  .case-pill { font-size: 10.5px; padding: 4px 9px; }
  .filter-bar { padding: 16px; }
  .filter-chip { font-size: 11px; padding: 12px 8px; }
  .case-card-body h3 { font-size: 17.5px; }
}

/* Galaxy Fold / 360px keskeny eszközök (≤360px) — finomabb hero */
@media (max-width: 360px) {
  header.hero h1 { font-size: 32px; }
  header.hero .lede { font-size: 14.5px; }
  .case-header h1 { font-size: 26px; }
  .case-tab { font-size: 11px; padding: 10px 6px; }
}

/* iPhone Plus, iPhone 11 sáv (≤414px) — biztonsági finomítás */
@media (max-width: 414px) {
  .case-pill-row { gap: 6px; }
  .filter-chips { gap: 6px; }
  .case-prose { font-size: 15.5px; }
  .case-prose h2 { font-size: 22px; }
  .case-prose h3 { font-size: 18px; }
}

/* iPad portrait sáv (≤768px) */
@media (max-width: 768px) {
  .container, .container-prose, .case-container { padding: 0 22px; }
  .case-grid { gap: 18px; }
  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-chips { gap: 8px; }
  .filter-chip { min-height: 44px; }
}

/* iPad landscape / kisebb laptop (≤1024px) */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .case-grid { gap: 20px; }
}

/* ─────────────────────────────────────────────────────────────
   R3: Code block mobile overflow (WCAG-konform horizontal scroll)
   ───────────────────────────────────────────────────────────── */
pre, code {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 480px) {
  pre {
    padding-bottom: 12px;
    scrollbar-width: thin;
  }
  pre::-webkit-scrollbar {
    height: 6px;
  }
  pre::-webkit-scrollbar-thumb {
    background: rgba(192, 192, 231, 0.4);
    border-radius: 0;
  }
  pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
  }
}

/* ─────────────────────────────────────────────────────────────
   R3: Breadcrumb mobile fallback (ha eltűnik a .sep)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .breadcrumb .sep { display: none; }
  .breadcrumb a + a::before,
  .breadcrumb a + span::before,
  .breadcrumb span + span::before {
    content: "›";
    margin: 0 6px;
    opacity: 0.5;
    color: var(--text-dim);
  }
}

/* ─────────────────────────────────────────────────────────────
   R3: Placeholder szöveg-szintű VÁZLAT jelölés (data-placeholder)
   8 case esetén, amelyekhez nincs forrás-screenshot — a vizuális
   thumbnail badge mellett a case-body előtt is explicit szöveges
   figyelmeztetés (a11y + jelentés-tisztaság: nem csak vizuális).
   ───────────────────────────────────────────────────────────── */
article[data-placeholder] .case-prose::before {
  content: "VÁZLAT-VERZIÓ — Csak szöveges elemzés, képes mockup hamarosan.";
  display: block;
  padding: 10px 14px;
  background: rgba(192, 192, 231, 0.1);
  border-left: 3px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 24px;
  border-radius: 0;
}
@media (max-width: 480px) {
  article[data-placeholder] .case-prose::before {
    font-size: 11.5px;
    padding: 8px 12px;
    margin-bottom: 18px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   BUSINESS NATIVE v2.1 — computed-style-exact theme layer
   Ground truth: expertflow-ugyfelkezeles.vercel.app
   Geist 400 headings · pure #000 ink · IBM Plex Mono 500 labels
   (ls 0.063em) · pill 2rem buttons · 120px rhythm · dark BN footer.
   Loaded last → wins by source order.
   ═══════════════════════════════════════════════════════════════ */

/* Grain → barely-there on cream */
body::before { opacity: 0.016; mix-blend-mode: normal; }
body { letter-spacing: -0.006em; line-height: 1.55; }

/* Section rhythm → 120px (Business Native) */
section { padding: 120px 0; }

/* ── Display type: Geist 400, airy, monochrome (no synthesized italics) ── */
header.hero h1 {
  font-weight: 400;
  font-size: clamp(40px, 6.2vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.016em;
}
header.hero h1 em,
.section-header h2 em,
.case-header h1 em,
.case-prose h2 em {
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}
.section-header h2 {
  font-weight: 400;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}
.case-header h1 {
  font-weight: 400;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.016em;
}
.case-prose h2 {
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-top: 56px;
}
.case-prose h3 {
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--text);
}
.case-prose h4 { font-weight: 500; }
.cat-title { font-weight: 400; letter-spacing: -0.025em; }
.case-card h3 { font-weight: 500; font-size: 22px; line-height: 1.18; letter-spacing: -0.018em; }
.case-nav .nav-title { font-weight: 500; letter-spacing: -0.015em; }
.case-header .case-sub, header.hero .lede { color: var(--text-muted); }

/* ── Eyebrow / labels: IBM Plex Mono 500, TIGHT 0.063em (was loose pill) ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.33;
  letter-spacing: 0.063em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 24px;
  gap: 9px;
}
.eyebrow .pulse-dot, .eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: none;
}
.section-header .eyebrow { justify-content: center; }
.case-tag, .case-meta, .nav-label, .ai-prompt-label, .filter-chip,
.breadcrumb, .case-live-link a, .screenshot-wrap.low-res::before,
article[data-placeholder] .case-prose::before {
  letter-spacing: 0.063em;
}

/* ── Hero: clean cream, neutralised glows ── */
header.hero { border-bottom: 1px solid var(--border); padding-top: 96px; }
header.hero::before {
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(0, 0, 0, 0.025), transparent 60%);
}
header.hero::after {
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.06) 30%, rgba(0, 0, 0, 0.06) 70%, transparent 100%);
  opacity: 0.5;
}

/* ── Buttons → Business Native pills (Geist 500, 16px, 2rem) ── */
.cta {
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 2rem;
}
.cta-primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.cta-primary:hover { background: #1c1c20; border-color: #1c1c20; color: var(--bg); transform: translateY(-1px); }
.cta-secondary { background: transparent; border-color: var(--border-strong); color: var(--text); }
.cta-secondary:hover { background: rgba(0, 0, 0, 0.05); border-color: var(--accent); color: var(--text); }
.cta .arrow { font-family: var(--font-sans); font-style: normal; }
.case-header .case-live-link a { border-radius: 2rem; }
.download-btn, .ai-prompt-copy, .filter-chip, .filter-search input[type="search"] { border-radius: 2rem; }

/* Minimal top "back" link on case pages */
.back-home {
  display: inline-block;
  margin: 28px 0 0 max(24px, calc((100% - var(--container)) / 2 + 24px));
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.063em;
  color: var(--text-muted);
  position: relative;
  z-index: 10;
  transition: color 0.18s var(--ease-out);
}
.back-home::before { content: "← "; }
.back-home:hover { color: var(--text); }
@media (max-width: 760px) { .back-home { margin-left: 18px; margin-top: 18px; } }

/* Category number → ink, Geist */
.cat-num { font-style: normal; font-weight: 500; color: var(--accent); }

/* ── Cards → white, 8px radius, subtle depth (Business Native) ── */
.case-card { border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03); }
.case-card:hover {
  background: var(--card);
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.18);
}
.case-card::after { font-family: var(--font-sans); font-style: normal; color: var(--accent); }
.case-thumb { background: var(--bg-elev-2); border-top-left-radius: 8px; border-top-right-radius: 8px; }
.case-thumb::after { background: linear-gradient(to bottom, transparent 62%, rgba(255, 255, 255, 0.45) 100%); }
.case-thumb.empty { background: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.05), transparent 70%), var(--bg-elev-2); }
.case-thumb.empty span { color: var(--text-muted); border-color: var(--border-strong); background: rgba(245,244,241,0.7); }
.case-thumb.placeholder::after { background: rgba(245,244,241,0.92); color: var(--accent); border-color: var(--border-strong); }
.case-thumb.placeholder img, .case-thumb img.placeholder { filter: grayscale(8%) brightness(0.99); }
.filter-bar { border-radius: 12px; }

/* Tabs underline → ink */
.case-tab.active { color: var(--accent); }
.case-tab.active::after { background: var(--accent); }

/* Blockquote → Geist upright */
.case-prose blockquote {
  font-style: normal; font-weight: 400; letter-spacing: -0.01em;
  background: var(--bg-elev); border-left-color: var(--accent);
  border-radius: 0 8px 8px 0;
}
.case-prose ol li::marker { font-style: normal; }
.case-prose .key-point { border-radius: 8px; border-left-width: 2px; }
article[data-placeholder] .case-prose::before { background: rgba(0,0,0,0.05); border-left-color: var(--accent); color: var(--accent); }
.filter-search::before { font-family: var(--font-sans); }
@media (max-width: 480px) {
  pre::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.25); }
  pre::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); }
}

/* ── Footer → Business Native signature dark block + wordmark lockup ── */
footer.bn-footer {
  background: #000;
  color: rgba(244, 244, 246, 0.6);
  padding: 120px 24px 48px;
  margin-top: 0;
  border: 0;
  text-align: left;
}
.bn-footer-inner { max-width: var(--container); margin: 0 auto; }
.bn-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(244, 244, 246, 0.12);
}
.bn-footer-tag {
  max-width: 28ch;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(244, 244, 246, 0.7);
}
.bn-footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.bn-footer-col { display: flex; flex-direction: column; gap: 12px; }
.bn-footer-col h4 {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.063em;
  color: rgba(244, 244, 246, 0.4);
}
.bn-footer-col a {
  color: rgba(244, 244, 246, 0.7);
  font-size: 15px;
  border: 0;
  transition: color 0.18s var(--ease-out);
}
.bn-footer-col a:hover { color: #fff; }
.bn-footer-mark {
  display: flex;
  align-items: center;
  gap: 0.42em;
  padding-top: 64px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 9vw, 96px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: #f4f4f6;
}
.bn-footer-mark .bn-arrow { height: 0.6em; width: auto; flex: none; color: #f4f4f6; }
.bn-footer-legal {
  margin-top: 28px;
  display: flex;
  gap: 18px 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(244, 244, 246, 0.4);
}
.bn-footer-legal a { color: rgba(244, 244, 246, 0.55); border: 0; }
.bn-footer-legal a:hover { color: #fff; }
@media (max-width: 760px) {
  footer.bn-footer { padding: 80px 18px 40px; }
  .bn-footer-top { gap: 32px; padding-bottom: 48px; }
  .bn-footer-cols { gap: 40px; }
  .bn-footer-mark { padding-top: 48px; }
}

::selection { background: var(--accent); color: var(--bg); }
