/* ============================================================
   CivicPulse AI — sistem de design
   Direcție: glass, rotunjit, minimal, cald. Autoritate calmă.
   Contractul de clase rămâne identic cu cel anterior, deci HTML-ul
   existent funcționează neschimbat; doar limbajul vizual se schimbă.
   ============================================================ */

:root {
  /* Fundal cald, nu alb clinic. */
  --bg: #fbfbf9;
  --ink: #0f172a;          /* titluri — nu negru pur */
  --ink-soft: #475569;     /* corp — 7:1 pe fundalul nostru */
  --ink-faint: #94a3b8;
  --ink-line: rgba(15, 23, 42, 0.08);

  /* Verdele de brand rămâne exact, dar devine SUPRAFAȚĂ cu text închis
     deasupra, nu text verde. Verde pe alb = 2.3:1 (ilizibil).
     Închis pe verde = ~9:1. Brandul rămâne, accesibilitatea și ea. */
  --accent: #00db87;
  --accent-deep: #00a86b;
  --accent-ink: #047857;   /* verde suficient de închis pentru TEXT */
  --accent-strong: #047857; /* fraza-cheie verde din H1 — AA pe fundal deschis */
  --on-accent: #062f21;
  --accent-wash: rgba(0, 219, 135, 0.10);
  --accent-wash-2: rgba(0, 219, 135, 0.18);

  --danger: #e11d48;
  --warning: #d97706;

  /* Glass */
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --blur: blur(24px) saturate(180%);

  /* Umbre difuze — ridicare moale, nu ștampilă. */
  --lift-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --lift: 0 8px 32px rgba(15, 23, 42, 0.07);
  --lift-lg: 0 24px 64px rgba(15, 23, 42, 0.10);

  --r-lg: 28px;
  --r: 20px;
  --r-sm: 14px;
  --r-xs: 10px;
  --max-width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, system-ui, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Plasă de siguranță, nu vindecare (cauzele reale: responsive-audit.md).
   `clip` nu creează scroll container ascuns și nu scapă la pan pe iOS;
   `hidden` rămâne fallback pentru browserele care nu știu `clip`. */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* ── Orbii de gradient ──
   Singurul motiv pentru care glassul are ce refracta. Injectați prin CSS,
   nu prin HTML, ca paginile să nu aibă nevoie de markup decorativ. */
body::before,
body::after,
.page-shell::before {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
body::before {
  top: -14rem; right: -8rem; width: 44rem; height: 44rem;
  background: radial-gradient(circle, rgba(0, 219, 135, 0.20), transparent 68%);
}
body::after {
  top: 38rem; left: -16rem; width: 38rem; height: 38rem;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.16), transparent 68%);
}
.page-shell::before {
  bottom: -12rem; right: 6%; width: 34rem; height: 34rem;
  background: radial-gradient(circle, rgba(0, 219, 135, 0.12), transparent 68%);
}

.page-shell { position: relative; z-index: 1; min-height: 100vh; }

/* ── Focus ── */
:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.94rem;
  box-shadow: var(--lift);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0.75rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.field.visually-hidden, .visually-hidden.field { display: none; }

.container { width: min(var(--max-width), calc(100% - 2.5rem)); margin: 0 auto; }

/* ── Tipografie: 600 la titluri, nu 900. Autoritate calmă. ── */
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; letter-spacing: -0.028em; margin: 0; line-height: 1.15; overflow-wrap: break-word; }
/* Cuvintele românești lungi („confidențialitate") forțau coloana peste
   viewport la ≤320px pe paginile legale (responsive-audit.md F2). */
.faq-item h2, .faq-item p, .faq-item summary { overflow-wrap: break-word; hyphens: auto; }

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.section-heading {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.15;
}
.page-hero .section-heading { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }

h3 { font-size: 1.18rem; line-height: 1.4; }

p { margin: 0; }
.section-copy, .hero p { max-width: 62ch; font-size: 1.13rem; line-height: 1.65; }
.micro { font-size: 0.92rem; color: var(--ink-faint); line-height: 1.6; }

/* `.mono` nu mai încarcă Space Mono: cifre tabulare pe Inter. Mai puțin
   „terminal", la fel de precis, și scoate două fonturi de pe calea critică. */
.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  font-weight: 600;
}

/* ── Suprafață glass, baza tuturor panourilor ── */
.card, .metric, .timeline-card, .anchor-card, .price-card,
.form-panel, .faq-item, .hero-card, .image-frame, .footer-panel,
.thank-you__card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg);
  box-shadow: var(--lift);
}

.card, .metric, .timeline-card, .anchor-card, .price-card,
.faq-item, .footer-panel {
  padding: 1.9rem;
}
.form-panel, .thank-you__card { padding: clamp(1.75rem, 3.5vw, 2.75rem); }

/* Ridicare la hover — moale, nu brutalistă. */
.card, .anchor-card, .price-card, .timeline-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover, .anchor-card:hover, .price-card:hover, .timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lift-lg);
}

.card h3, .timeline-card h3, .anchor-card h3, .price-card h3 { margin-bottom: 0.6rem; }
.card p, .timeline-card p, .anchor-card p, .price-card p, .metric p { color: var(--ink-soft); }

/* Iconul: pătrat rotunjit cu spălare verde, nu cutie cu bordură neagră. */
.card__icon, .faq-item__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  color: var(--accent-ink);
}
.card__icon svg, .faq-item__icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 251, 249, 0.72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--ink-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 0.8rem; }

/* Marca: pătrat rotunjit verde cu iconul terminal — legătura cu aplicația,
   dar cu muchii moi, ca restul site-ului. */
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  box-shadow: 0 4px 14px rgba(0, 219, 135, 0.3);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand img { height: 40px; width: auto; border-radius: 12px; }

.brand__text { display: grid; gap: 0.05rem; }
.brand__title {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.brand__subtitle { font-size: 0.82rem; color: var(--ink-faint); line-height: 1.3; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent-ink); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  background: var(--glass-strong);
  color: var(--ink);
  box-shadow: var(--lift-sm);
}
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ── Butoane ── */
.button, .header-cta, .button-secondary, .button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.button, .header-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  box-shadow: 0 6px 20px rgba(0, 219, 135, 0.30);
}
.button:hover, .header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 219, 135, 0.38);
}
.button-secondary {
  background: var(--glass-strong);
  color: var(--ink);
  border-color: var(--ink-line);
  box-shadow: var(--lift-sm);
}
.button-secondary:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.button-ghost {
  background: transparent;
  color: var(--ink);
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}
.button-ghost:hover { color: var(--accent-ink); background: var(--accent-wash); }

.header-cta { padding: 0.8rem 1.4rem; font-size: 0.96rem; }

.button-row, .hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }

/* ── Secțiuni ── */
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: -1;
}

.section-head { display: grid; gap: 1rem; margin-bottom: 2.75rem; justify-items: center; text-align: center; }
.section-head .section-copy { margin: 0 auto; }
.section-head .eyebrow { margin-inline: auto; justify-self: center; }
.section-head--center { max-width: 52rem; margin: 0 auto 2.75rem; }

/* Eyebrow: pastilă moale cu spălare verde, nu bară neagră. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /* Nu se întinde niciodată: ca element de grid ar prelua toată coloana
     (se vedea pe paginile legale, unde stă direct într-un panou-grilă). */
  width: fit-content;
  justify-self: start;
  align-self: start;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-deep);
  flex: 0 0 7px;
}

/* ── Grile ── */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.anchor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
/* `stretch`, nu `center`: două panouri de înălțimi diferite centrate vertical
   se decalează unul față de altul și citesc ca dezechilibru. Egalizate, se
   citesc ca pereche. */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; align-items: stretch; }
.split > * { min-width: 0; }

/* ── Timeline orizontal ──
   Pentru fluxuri de 3–4 pași care merită citite ca proces, nu ca listă.
   Linia de legătură trece prin spatele badge-urilor și se oprește la capete. */
.timeline--flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; position: relative; }
.timeline--flow .timeline-card {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0 1.5rem;
  text-align: left;
}
.timeline--flow .timeline-card:hover { transform: none; box-shadow: none; }
.timeline--flow .timeline-card__step {
  position: static;
  width: 44px; height: 44px;
  margin-bottom: 1.1rem;
  font-size: 1rem;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 6px var(--bg), 0 4px 14px rgba(0, 219, 135, 0.28);
}
/* Linia de legătură se desenează PER PAS, nu o dată peste tot rândul: așa se
   oprește exact între badge-uri și nu depășește ultimul pas, indiferent câți
   pași are fluxul. Ultimul nu primește linie. */
.timeline--flow .timeline-card { position: relative; z-index: 1; }
.timeline--flow .timeline-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(1.5rem + 52px);
  width: calc(100% - 60px);
  height: 2px;
  background: var(--accent-wash-2);
  z-index: 0;
}

@media (max-width: 860px) {
  .timeline--flow { grid-auto-flow: row; gap: 1.5rem; }
  .timeline--flow .timeline-card { padding: 0; }
  .timeline--flow .timeline-card:not(:last-child)::after { display: none; }
}

/* ── Hero ── */
.hero { padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3rem, 5vw, 4.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 3.5rem;
  align-items: center;
}
.hero__content { display: grid; gap: 1.6rem; justify-items: start; }

/* Statisticile de hero: fără cutii grele, doar cifre cu etichetă. */
.hero__meta { display: flex; flex-wrap: wrap; gap: 2.5rem; padding-top: 0.5rem; }
.metric {
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.metric__value {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.metric__label { display: block; font-size: 0.9rem; color: var(--ink-faint); margin-top: 0.25rem; }
/* Metricile de hero pot purta o linie de context sub etichetă. O ținem mică
   și îngustă, altfel cifra își pierde rolul de ancoră vizuală. */
.hero__meta .metric { max-width: 15rem; }
.hero__meta .metric p { margin-top: 0.5rem; font-size: 0.88rem; line-height: 1.55; color: var(--ink-faint); }

.hero-card { padding: 0.75rem; position: relative; overflow: visible; }
.hero-card img { border-radius: var(--r); width: 100%; height: auto; display: block; }
.hero-card__panel {
  padding: 0.9rem 0.7rem 0.35rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.hero-card__panel .stat-line { padding: 0; background: none; border: 0; }

/* ── Page hero (paginile interioare) ── */
.page-hero { padding: clamp(2.75rem, 5vw, 4.5rem) 0 clamp(2rem, 3vw, 3rem); }
.page-hero__body { display: grid; gap: 1.4rem; justify-items: start; max-width: 60rem; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.breadcrumbs a:hover { color: var(--accent-ink); }

/* ── Cadru de imagine ── */
.image-frame { padding: 0.75rem; overflow: hidden; align-self: start; }
.image-frame img {
  border-radius: var(--r);
  width: 100%;
  height: auto;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

/* ── Previzualizare demo ──
   Slot pentru un GIF/video scurt care arată produsul în mișcare. Acceptă
   <img> (gif), <video autoplay muted loop playsinline> sau placeholder.
   Raportul fix ține layout-ul stabil înainte ca media să se încarce (zero CLS). */
.demo-preview {
  position: relative;
  margin-top: 1.5rem;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--accent-wash);
  aspect-ratio: 1568 / 773;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}
.demo-preview img,
.demo-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.demo-preview__tag {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.demo-preview__tag::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-deep);
  animation: puls 2s ease-in-out infinite;
}
@keyframes puls {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

/* ── Anchor card (rutarea către persona) ── */
.anchor-card { display: grid; gap: 0.5rem; align-content: start; }
.anchor-card__link {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}
.anchor-card:hover .anchor-card__link { gap: 0.7rem; }

/* ── Timeline / pași ── */
.timeline { display: grid; gap: 1.25rem; }
.timeline-card { position: relative; padding-left: 4.5rem; }
.timeline-card__step {
  position: absolute;
  left: 1.9rem;
  top: 1.9rem;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── Liste ── */
.checklist, .proof-list { display: grid; gap: 0.85rem; padding: 0; margin: 0; list-style: none; }
.checklist li, .proof-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-soft);
}
.checklist li::before, .proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 1.05rem;
  height: 0.55rem;
  border-left: 2.5px solid var(--accent-deep);
  border-bottom: 2.5px solid var(--accent-deep);
  transform: rotate(-45deg);
  border-radius: 1px;
}

.pill-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill, .stat-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--ink-line);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.pill strong, .stat-line strong { color: var(--ink); font-weight: 600; }

/* ── Preț ── */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.price-card--featured {
  border-color: var(--accent-wash-2);
  box-shadow: 0 12px 40px rgba(0, 219, 135, 0.16);
}
.price {
  display: block;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1rem;
}

/* ── FAQ ── */
/* minmax(0,1fr) din același motiv ca la .form-panel: track-ul `auto` ia
   min-content-ul celui mai lat h2 și grupul iese din panou la ≤320px. */
.faq-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }

/* `.faq-item` are două întrebuințări:
   — `<details>` = acordeon, unde padding-ul stă pe `summary` și pe corp,
     ca zona de click să acopere tot cardul;
   — `<section>` = bloc de conținut pe paginile legale, care are nevoie de
     padding normal de card. Fără distincția asta, titlurile din paginile
     legale rămâneau lipite de marginea cardului. */
details.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.9rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { padding-bottom: 0.75rem; }
details.faq-item > div, details.faq-item > p { padding: 0 1.9rem 1.6rem; }

/* Blocurile de conținut din paginile legale: titlu + text, spațiate normal. */
section.faq-item > h2, section.faq-item > h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
section.faq-item > * + * { margin-top: 0.6rem; }
section.faq-item code {
  padding: 0.12em 0.42em;
  border-radius: 6px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 0.92em;
}
.faq-item__icon {
  width: 30px; height: 30px;
  margin: 0;
  flex: 0 0 30px;
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }

/* ── Formulare ── */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
/* minmax(0,1fr), nu track implicit `auto`: track-ul auto ia min-content-ul
   celui mai lat copil („confidențialitate" în h1, pe paginile legale) și
   panoul refuză să se strângă sub el → overflow la ≤320px (audit F2). */
.form-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.94rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.field textarea { min-height: 8rem; resize: vertical; }

.form-status {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.form-status.is-visible { display: block; }

.legal-note { font-size: 0.88rem; color: var(--ink-faint); line-height: 1.6; }

/* ── Sticky CTA (mobil) ── */
.sticky-cta {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 70;
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: var(--glass-strong);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--lift-lg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sticky-cta.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
/* Centură: un CTA cu text lung nu are voie să iasă din pastilă pe mobil. */
.sticky-cta .button { max-width: 100%; }

/* ── Bară de anunț (deasupra header-ului) ──
   Conținut static în HTML (fără flash, fără CLS la încărcare); js/site.js o
   ascunde dacă a fost închisă (localStorage `civicpulse_announce`). */
.announce {
  background: var(--ink);
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.5;
}
.announce.is-hidden { display: none; }
.announce__inner { display: flex; align-items: center; gap: 0.85rem; padding: 0.6rem 0; }
.announce__tag {
  flex: none;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.announce__text { flex: 1 1 auto; min-width: 0; }
.announce__text strong { color: #fff; font-weight: 600; }
.announce__text a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.announce__close {
  flex: none;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  margin-left: auto;
  border: 0; border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  font-size: 1.3rem; line-height: 1;
}
.announce__close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ── Sondaj (teaser de funcționalitate, salvat doar în browser) ──
   Singurul card întunecat de pe site — intenționat: e „radarul" care se
   aprinde, nu o secțiune de conținut. */
.poll {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(0, 219, 135, 0.22), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(0, 219, 135, 0.10), transparent 60%),
    linear-gradient(135deg, #0f172a, #13203a);
  color: #cbd5e1;
  box-shadow: var(--lift-lg);
}
.poll::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent);
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent);
  pointer-events: none;
}
.poll > * { position: relative; }
.poll__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.poll__head { display: grid; gap: 1rem; }
.poll__head .eyebrow { background: rgba(0, 219, 135, 0.16); color: var(--accent); }
.poll__head .section-heading { color: #fff; }
.poll__head .section-copy { color: #cbd5e1; font-size: 1.05rem; }
.poll__live { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: #94a3b8; letter-spacing: 0.02em; }
.poll__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(0, 219, 135, 0.6); animation: poll-ping 1.8s ease-out infinite; }
@keyframes poll-ping { to { box-shadow: 0 0 0 10px rgba(0, 219, 135, 0); } }
.poll__body { display: grid; }
.poll__form[hidden] { display: none; }
.poll__form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.poll__option {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.poll__option:hover { border-color: rgba(0, 219, 135, 0.45); background: rgba(255, 255, 255, 0.06); }
.poll__option:has(input:checked) { border-color: var(--accent); background: rgba(0, 219, 135, 0.10); }
.poll__option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.poll__option input { margin: 0.3rem 0 0; accent-color: var(--accent); flex: none; width: 1.05rem; height: 1.05rem; }
.poll__option span { display: grid; gap: 0.15rem; }
.poll__option strong { color: #fff; font-weight: 600; font-size: 0.98rem; line-height: 1.35; }
.poll__option small { color: #94a3b8; font-size: 0.86rem; line-height: 1.45; }
.poll__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.1rem; margin-top: 1.1rem; }
.poll__note { font-size: 0.82rem; color: #94a3b8; line-height: 1.5; max-width: 30ch; }
.poll__done { display: grid; gap: 0.9rem; justify-items: start; }
.poll__done[hidden] { display: none; }
.poll__check {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-size: 1.4rem; font-weight: 700;
}
.poll__done h3 { color: #fff; font-size: 1.25rem; }
.poll__done h3 strong { color: var(--accent); font-weight: 600; }
.poll__done p { color: #cbd5e1; }
.poll__done .button-ghost { color: #cbd5e1; }
.poll__done .button-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
@media (max-width: 960px) { .poll__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .announce__inner { flex-wrap: wrap; gap: 0.5rem 0.75rem; }
  .announce__text { flex-basis: 100%; order: 3; }
}

/* ── Consimțământ cookie-uri (bannerul e injectat din js/analytics.js) ──
   Card non-modal, jos-stânga: nu blochează citirea, dar nu dispare până
   nu se alege. Peste sticky-cta (70), sub header (100). */
.consent {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 90;
  max-width: 26.5rem;
  padding: 1.35rem 1.45rem 1.45rem;
  border-radius: var(--r);
  background: var(--glass-strong);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--lift-lg);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.consent.is-open { opacity: 1; transform: none; pointer-events: auto; }
.consent__inner { display: grid; gap: 0.6rem; }
.consent__eyebrow {
  width: fit-content;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.consent__title { font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.consent__text { font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }
.consent__text a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.35rem; }
.consent__actions .button, .consent__actions .button-secondary {
  flex: 1 1 auto;
  padding: 0.8rem 1.2rem;
  font-size: 0.94rem;
}
/* Linkul „Setări cookie-uri" din subsol: arată ca text de footer, e acțiune. */
.footer-meta a[data-consent-open] { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-meta a[data-consent-open]:hover { color: var(--accent-ink); }

/* ── Mulțumim ── */
.thank-you { display: grid; place-items: center; min-height: 70vh; padding: 4rem 0; }
/* `margin-inline: auto`: cardul e mai îngust decât .container, altfel stă lipit
   de stânga (se vedea pe /multumim/ și /404). */
.thank-you__card { text-align: center; display: grid; gap: 1.25rem; justify-items: center; width: 100%; max-width: 42rem; margin-inline: auto; }
.thank-you__card h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; }
.thank-you__card .eyebrow { justify-self: center; }

/* ── Footer ── */
.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(3rem, 5vw, 4.5rem) 0 2.5rem;
  border-top: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, 0.45);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-panel {
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.footer-panel h3 { font-size: 0.95rem; margin-bottom: 1rem; color: var(--ink); }
.footer-list { display: grid; gap: 0.6rem; padding: 0; margin: 0; list-style: none; font-size: 0.96rem; }
.footer-list a:hover { color: var(--accent-ink); }
.footer-copy { font-size: 0.96rem; color: var(--ink-soft); max-width: 32ch; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ink-line);
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* ── Animații de intrare ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero__grid, .split, .form-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid--3, .anchor-grid, .pricing { grid-template-columns: 1fr; }
  .grid--2, .field-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }

  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1.25rem;
    left: 1.25rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: var(--r);
    background: var(--glass-strong);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--lift-lg);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.75rem 0.9rem; border-radius: var(--r-xs); }
  .site-nav a:hover { background: var(--accent-wash); }

  .sticky-cta { display: flex; justify-content: center; }
  .hero__meta { gap: 1.75rem; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 2rem); }
  .consent { max-width: none; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; padding: 1.15rem 1.2rem 1.25rem; }
  .card, .metric, .timeline-card, .anchor-card, .price-card, .faq-item { padding: 1.5rem; }
  .timeline-card { padding-left: 4rem; }
  .timeline-card__step { left: 1.5rem; top: 1.5rem; }
  .faq-item summary { padding: 1.15rem 1.5rem; }
  .faq-item > div, .faq-item > p { padding: 0 1.5rem 1.35rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ── Gărzi ──
   Glassul e costisitor și poate reduce contrastul. Cine cere transparență
   redusă primește suprafețe opace; cine cere mișcare redusă, zero animație. */
@media (prefers-reduced-transparency: reduce) {
  .card, .metric, .timeline-card, .anchor-card, .price-card,
  .form-panel, .faq-item, .hero-card, .image-frame, .thank-you__card,
  .site-header, .site-nav, .sticky-cta, .consent {
    background: var(--glass-strong);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body::before, body::after, .page-shell::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .poll__live::before { animation: none; }
  .consent { transition: none; transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Termen explicat ──
   Cuvintele pe care publicul nostru (primării, cabinete) nu le folosește zilnic
   primesc o explicație la cerere, fără să diluăm textul pentru toată lumea.
   `<span class="term" data-term="explicație">cuvânt</span>` — JS îl transformă
   în buton cu tooltip. Fără JS rămâne text lizibil, doar subliniat. */
.term {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline dotted var(--accent-deep);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  cursor: help;
}
button.term { cursor: pointer; }
.term:hover, .term[aria-expanded="true"] { color: var(--accent-ink); }

.term__def {
  /* Închis = display:none, nu visibility:hidden. Varianta „invizibilă"
     rămânea în layout și împingea scrollWidth cu până la 86px pe mobil —
     overflow orizontal fără nicio interacțiune (responsive-audit.md F1). */
  display: none;
  position: absolute;
  bottom: calc(100% + 0.6rem);
  left: 50%;
  --term-tx: -50%;
  transform: translateX(var(--term-tx)) translateY(4px);
  z-index: 80;
  width: max-content;
  max-width: min(20rem, 78vw);
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
  text-decoration: none;
  letter-spacing: 0;
  box-shadow: var(--lift-lg);
}
/* Săgeata către cuvânt. */
.term__def::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.term:hover .term__def,
.term:focus-visible .term__def,
.term[aria-expanded="true"] .term__def {
  display: block;
  opacity: 1;
  transform: translateX(var(--term-tx)) translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
/* Animația de intrare pentru display:none → block. Browserele fără
   @starting-style afișează instant — degradare acceptabilă. */
@starting-style {
  .term:hover .term__def,
  .term:focus-visible .term__def,
  .term[aria-expanded="true"] .term__def {
    opacity: 0;
    transform: translateX(var(--term-tx)) translateY(4px);
  }
}

/* Lângă margini tooltipul centrat s-ar tăia; îl ancorăm pe partea sigură.
   Clasa o pune js/site.js::pozitioneaza() la fiecare deschidere. */
.term__def--start { left: 0; --term-tx: 0%; }
.term__def--start::after { left: 1.5rem; }
.term__def--end { left: auto; right: 0; --term-tx: 0%; }
.term__def--end::after { left: auto; right: 1.5rem; margin-left: 0; }

@media (max-width: 560px) {
  .term__def { max-width: 72vw; }
}

/* ============================================================
   UX/UI Optimization (CRO, Trust, SEAP)
   ============================================================ */

/* Floating UI Badge pe Hero */
.floating-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--glass-strong);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  box-shadow: var(--lift);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--danger);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

/* Trust Logo Bar */
.trust-bar {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.trust-bar__label {
  font-size: 0.875rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-align: center;
}

.trust-bar__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.trust-bar__logos span {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink-soft);
  opacity: 0.6;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.trust-bar__logos span:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@media (max-width: 560px) {
  .trust-bar__logos { gap: 1rem; }
  .trust-bar__logos span { font-size: 1rem; }
}

/* SEAP Badge */
.seap-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--glass);
  border: 1px solid var(--accent-wash-2);
  padding: 1rem;
  border-radius: var(--r-sm);
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.seap-badge svg {
  width: 20px;
  height: 20px;
  color: var(--accent-deep);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Butoane Full Width pe Formular Contact */
.form-actions .button {
  width: 100%;
  display: block;
}

/* ============================================================
   UX/UI Optimization: Video Lightbox
   ============================================================ */
.video-modal {
  padding: 0;
  border: none;
  border-radius: var(--r);
  background: var(--ink);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 90vw;
  max-height: 90vh;
  width: 1200px;
  overflow: hidden;
}
.video-modal::backdrop {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
}
.video-modal__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  background: #000;
}
.video-modal__content video {
  width: 100%;
  height: auto;
  max-height: 90vh;
}
.video-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.video-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.demo-preview__play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}
.demo-preview:hover .demo-preview__play-overlay {
  opacity: 1;
}
.demo-preview__play-overlay svg {
  width: 4.5rem;
  height: 4.5rem;
  color: #fff;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}
.demo-preview:hover .demo-preview__play-overlay svg {
  transform: scale(1.1);
}

/* ============================================================
   Ghiduri — proză editorială (/ghiduri/)
   Singurele pagini cu text lung. Restul site-ului își ia ritmul
   vertical din grid gap (p { margin: 0 }); aici ritmul vine din
   flow spacing, altfel paragrafele s-ar lipi unul de altul.
   ============================================================ */
.article {
  max-width: 46rem;
  margin-inline: auto;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}
.article-byline a {
  color: var(--ink-soft);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.article-byline a:hover { color: var(--accent-ink); }

.article .section-heading { margin-bottom: 1.5rem; }

.article-body > * + * { margin-block-start: 1.15rem; }
.article-body h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  margin-block-start: 2.75rem;
  scroll-margin-top: 6rem;
}
.article-body h3 {
  margin-block-start: 1.9rem;
  scroll-margin-top: 6rem;
}
.article-body ul, .article-body ol {
  padding-inline-start: 1.3rem;
  display: grid;
  gap: 0.6rem;
}
.article-body p a, .article-body li a, .article-body td a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-wash-2);
}
.article-body p a:hover, .article-body li a:hover, .article-body td a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}
.article-body strong { color: var(--ink); }

/* Capsula de răspuns („Pe scurt") — primul bloc după H1; motoarele
   de răspuns extrag exact acest text, deci stă înaintea oricărui alt
   conținut. */
.article-capsule {
  background: var(--glass-strong);
  border: 1px solid var(--ink-line);
  border-left: 3px solid var(--accent-deep);
  border-radius: var(--r-sm);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--lift-sm);
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}
.article-capsule p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink);
}

.article-toc {
  background: var(--glass);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-sm);
  padding: 1.4rem 1.6rem;
  display: grid;
  gap: 0.75rem;
}
.article-toc ol {
  display: grid;
  gap: 0.45rem;
  padding-inline-start: 1.3rem;
  font-size: 0.98rem;
}
.article-toc a { color: var(--ink-soft); }
.article-toc a:hover { color: var(--accent-ink); }

/* Tabelele stau într-un wrapper scrollabil — regulă nenegociabilă:
   overflow-ul orizontal la lățimi mici e defectul măsurat în
   context/strategy/responsive-audit.md. */
.article-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-table table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}
.article-table th, .article-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--ink-line);
  text-align: left;
  vertical-align: top;
}
.article-table th {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-body .faq-q { font-size: 1.08rem; }

.article-cta {
  background: var(--glass-strong);
  border: 1px solid var(--accent-wash-2);
  border-radius: var(--r);
  padding: 2rem;
  box-shadow: var(--lift-sm);
  margin-block-start: 3rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

/* Carduri de listă — hub-ul /ghiduri/ și blocul „Citește și". */
.guide-list { display: grid; gap: 1rem; }
.article .guide-list { margin-top: 2rem; }
.guide-card {
  display: block;
  background: var(--glass);
  border: 1px solid var(--ink-line);
  border-radius: var(--r);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--lift-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--lift);
  border-color: var(--accent-wash-2);
}
.guide-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.guide-card__badge {
  background: var(--accent-wash);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}
.guide-card h2, .guide-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}
.guide-card:hover h2, .guide-card:hover h3 { color: var(--accent-strong); }
.guide-card p { color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 560px) {
  .article-capsule, .article-toc { padding: 1.15rem 1.25rem; }
  .guide-card { padding: 1.25rem 1.35rem; }
  .article-cta { padding: 1.5rem 1.25rem; }
}

/* ============================================================
   Link-in-bio (/link/) — destinația fixă din bio-ul de social.
   Pagină îngustă, mobile-first; blocul „Din postări" e generat
   la build de tools/gen-link.py din calendar-social.md.
   ============================================================ */
.linkhub {
  width: min(26rem, calc(100% - 2.5rem));
  margin-inline: auto;
  padding-block: 3rem 2.5rem;
}

.linkhub-head {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
}
.linkhub-tagline {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.linkhub-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 2.1rem 0 0.7rem;
}

.linkhub-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.linkhub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--glass);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-sm);
  padding: 0.95rem 1.15rem;
  box-shadow: var(--lift-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.linkhub-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--lift);
  border-color: var(--accent-wash-2);
}
.linkhub-item__body { min-width: 0; display: grid; gap: 0.2rem; }
.linkhub-item__kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.linkhub-item__kicker span { color: var(--ink-faint); }
.linkhub-item__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.35;
}
.linkhub-item__arrow { color: var(--accent-ink); flex-shrink: 0; font-weight: 600; }

.linkhub-cta { width: 100%; justify-content: center; display: flex; }
.linkhub-cta + .linkhub-cta { margin-top: 0.65rem; }

.linkhub-social { display: flex; gap: 0.6rem; }
.linkhub-social a {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xs);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.linkhub-social a:hover { color: var(--accent-ink); border-color: var(--accent-wash-2); }

.linkhub-foot {
  margin-top: 2.5rem;
  text-align: center;
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.linkhub-foot a:hover { color: var(--accent-ink); }

/* Intrare decalată a cardurilor; `both` ține opacitatea la 0 înainte
   de start, altfel rândul apare și apoi clipește. */
@keyframes linkhub-intra {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.linkhub .intra { animation: linkhub-intra 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .linkhub .intra { animation: none; }
}
