/* ============================================================
   EHBV — Eerste Hulp Bij Vibecoden
   Supplement bovenop de Vintrix-basis (style.css).
   Verzint geen nieuwe stijl: hergebruikt de Vintrix-variabelen,
   componenten en het sectie-ritme, en voegt alleen toe wat EHBV
   extra nodig heeft: terminal, twee-koloms hero, vergelijkblok,
   fotokaders, status-pills en het EHBV-merkteken.
   ============================================================ */

:root {
  --term-bg:     #0B0A1E;
  --term-bg-2:   #110F2B;
  --term-border: rgba(68, 225, 242, 0.28);
  --ehbv-glow:   0 0 40px rgba(68, 225, 242, 0.18), 0 18px 50px rgba(11, 10, 30, 0.45);
}

/* ---------- EHBV-merkteken (kruis + wordmark) in de nav ---------- */
.ehbv-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.ehbv-logo svg { display: block; width: 38px; height: 38px; flex: none; }
.ehbv-logo .ehbv-word {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  line-height: 1;
  /* Volledige Vintrix-spectrumgradient over het hele wordmark */
  background-image: var(--grad-spectrum);
  background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* Op de donkere footer het wordmark solide wit (indigo-start valt weg op donker) */
.site-footer .ehbv-logo .ehbv-word {
  background: none;
  -webkit-text-fill-color: #fff; color: #fff;
}

/* ---------- Hero: twee koloms (copy + terminal) ---------- */
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-grid .hero-content { max-width: 38rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-grid .term { order: 2; }
}

.hero-eyebrow-mark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-cyan);
}
.hero-eyebrow-mark .live-ping {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-lime);
  box-shadow: 0 0 0 0 rgba(229, 245, 12, 0.6);
  animation: ehbv-ping 1.8s ease-out infinite;
}
@keyframes ehbv-ping {
  0%   { box-shadow: 0 0 0 0 rgba(229, 245, 12, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(229, 245, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 245, 12, 0); }
}

/* ---------- Terminal-component ---------- */
.term {
  position: relative;
  background: linear-gradient(160deg, var(--term-bg-2), var(--term-bg));
  border: 1px solid var(--term-border);
  border-radius: 14px;
  box-shadow: var(--ehbv-glow);
  overflow: hidden;
  font-family: var(--font-mono);
  text-align: left;
}
.term-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.term-dot--r { background: #ff5f57; }
.term-dot--y { background: #febc2e; }
.term-dot--g { background: #28c840; }
.term-title {
  margin-left: 0.5rem;
  font-size: 0.74rem; letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}
.term-body {
  padding: 1.1rem 1.15rem 1.3rem;
  font-size: 0.86rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  /* Vaste hoogte: de terminal ademt niet meer mee tijdens het typen/loopen,
     zodat de pagina niet op en neer schuift. */
  height: 21rem;
  overflow: hidden;
}
.term-line { display: block; white-space: pre-wrap; word-break: break-word; }
.term-line + .term-line { margin-top: 0.05rem; }
.term-prompt::before { content: "$ "; color: var(--color-lime); font-weight: 700; }
.term-comment { color: rgba(255, 255, 255, 0.4); }
.term-ok    { color: var(--color-lime); }
.term-info  { color: var(--color-cyan); }
.term-warn  { color: #ffd54a; }
.term-bad   { color: #ff7a8a; }
.term-muted { color: rgba(255, 255, 255, 0.55); }

/* knipperende cursor die terminal.js verplaatst */
.term-cursor {
  display: inline-block;
  width: 0.6ch; height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.16em;
  background: var(--color-cyan);
  animation: ehbv-blink 1s steps(1) infinite;
}
@keyframes ehbv-blink { 50% { opacity: 0; } }

/* ---------- Status-pills (PASS / FIXED / RISK) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  line-height: 1;
}
.pill--ok   { color: #1f9e54; background: rgba(40, 200, 100, 0.08); }
.pill--fix  { color: #6805F2; background: rgba(104, 5, 242, 0.07); }
.pill--risk { color: #d6334a; background: rgba(214, 51, 74, 0.07); }
.pill--scan { color: #1186a6; background: rgba(68, 225, 242, 0.12); }

/* Inline mono code-chip in lopende tekst */
.codechip {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.08em 0.4em;
  border-radius: 5px;
  background: rgba(104, 5, 242, 0.08);
  border: 1px solid rgba(104, 5, 242, 0.15);
  color: var(--color-purple);
  white-space: nowrap;
}

/* ---------- Probleemkaarten: mono-pill bovenin ---------- */
.problem-card .problem-flag {
  display: inline-flex; align-items: center;
  margin-bottom: 0.85rem;
}

/* ---------- Fotokader met terminal-achtige titelbalk ---------- */
.media-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  background: var(--term-bg);
}
.media-frame--dark { border-color: var(--term-border); box-shadow: var(--ehbv-glow); }
.media-frame .media-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.media-frame--light { background: #fff; }
.media-frame--light .media-bar {
  background: var(--color-bg-alt);
  border-bottom-color: var(--color-border);
}
.media-frame .media-bar .media-name {
  margin-left: 0.35rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}
.media-frame--light .media-bar .media-name { color: var(--color-text-muted); }
.media-frame img { display: block; width: 100%; height: auto; }

/* Foto die in een tekstsectie naast content staat */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.feature-split--reverse .feature-media { order: -1; }
@media (max-width: 820px) {
  .feature-split { grid-template-columns: 1fr; gap: 2rem; }
  .feature-split--reverse .feature-media { order: 0; }
}

/* ---------- Benefit-lijst (oplossing) ---------- */
.benefit-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.benefit-list li {
  position: relative;
  padding-left: 1.9rem;
  line-height: 1.6;
}
.benefit-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.15rem;
  width: 1.2rem; height: 1.2rem;
  border-radius: 5px;
  background:
    linear-gradient(135deg, var(--color-cyan), var(--color-lime));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Trust-rij ---------- */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 0.7rem 0.9rem;
  margin-top: 1.75rem;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--color-text-muted);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}
.trust-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-lime); flex: none; }

/* ---------- Vergelijkblok: doe je niets vs met EHBV ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.25rem;
}
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare-col {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.compare-col h3 {
  display: flex; align-items: center; gap: 0.55rem;
  color: #fff; margin-bottom: 1.1rem; font-size: 1.15rem;
}
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.compare-col li {
  position: relative; padding-left: 1.7rem;
  color: rgba(255, 255, 255, 0.82); line-height: 1.55;
}
.compare-col li::before {
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-weight: 700;
}
.compare-col--bad  { border-color: rgba(255, 122, 138, 0.35); }
.compare-col--bad li::before  { content: "✕"; color: #ff7a8a; }
.compare-col--good {
  border-color: rgba(229, 245, 12, 0.4);
  background: rgba(229, 245, 12, 0.05);
}
.compare-col--good li::before { content: "✓"; color: var(--color-lime); }
.compare-tag {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare-col--bad  .compare-tag { color: #ff7a8a; }
.compare-col--good .compare-tag { color: var(--color-lime); }

/* ---------- FAQ-pagina: groepskoppen ---------- */
.faq-group-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin: 2.5rem 0 1rem;
  color: var(--color-text);
}
.faq-group-title:first-of-type { margin-top: 0; }

/* ---------- Hero-terminal op smalle schermen iets compacter ---------- */
@media (max-width: 480px) {
  .term-body { font-size: 0.78rem; }
}

/* ---------- Donkere urgentiesectie: leesbare tekst ---------- */
.section-value .feature-content p,
.section-value .section-intro { color: rgba(255, 255, 255, 0.88); }

/* ---------- Probleem: lucht tussen de foto en de risico-kaarten ---------- */
.section-problem .feature-split + .problem-grid { margin-top: clamp(2.5rem, 6vw, 4rem); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow-mark .live-ping { animation: none; }
  .term-cursor { animation: none; opacity: 0; }
}
