/* B2B IN — pagina de prezentare b2bin.ro (deploy/landing), pur static.
   Tokeni identici cu static/css/app.css din platforma (docs/editorial/
   business_blueprint/v1.0) — aceeasi semnatura vizuala intre site si
   produs, mandat proprietar 2026-08-25. Fara framework, fara JS. */
:root {
  --color-midnight: #0B1220;
  --color-blue: #2563EB;
  --color-teal: #14B8A6;
  --color-amber: #F59E0B;
  --color-red: #DC2626;
  --color-cloud: #F7FAFC;
  --color-white: #FFFFFF;
  --color-slate: #334155;
  --color-slate-muted: #64748B;

  --bg: var(--color-cloud);
  --surface: var(--color-white);
  --ink: var(--color-slate);
  --ink-on-dark: var(--color-cloud);
  --muted: var(--color-slate-muted);
  --line: #E2E8F0;
  --accent: var(--color-blue);
  --accent-hover: #1D4ED8;
  --accent2: var(--color-teal);

  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  --radius-card: 16px;
  --radius-cta: 12px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.site-header {
  height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 5vw, 5rem);
  background: var(--color-midnight);
  color: var(--ink-on-dark);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 2.5rem; width: auto; }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { color: #B9C2D6; text-decoration: none; font-size: .9rem; transition: color 150ms ease; }
.site-header nav a:hover { color: var(--ink-on-dark); }

main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) 0; }

.hero { text-align: center; padding: clamp(1rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 4rem); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
}
h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: .5rem 0 1rem;
  color: var(--color-midnight);
}
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; margin: 0 auto 1.75rem; }

.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-cta);
  padding: .9rem 1.4rem;
  background: var(--accent);
  color: var(--color-white);
  font-weight: 750;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}
.button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.button-secondary { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }
.button-secondary:hover { background: #EFF4FF; }

.trust-line { color: var(--muted); font-size: .85rem; }

.hero-graph { display: block; width: min(900px, 100%); margin: clamp(1rem, 4vw, 2.5rem) auto clamp(1.5rem, 4vw, 3rem); }
.hero-graph .hg-line { fill: none; stroke: var(--line); stroke-width: 2; }
.hero-graph .hg-node-fill { fill: var(--surface); stroke-width: 1.5; }
.hero-graph .hg-node-fill.hg-supplier { stroke: var(--accent2); }
.hero-graph .hg-node-fill.hg-client { stroke: var(--accent); }
.hero-graph .hg-dot-supplier { fill: var(--accent2); }
.hero-graph .hg-dot-client { fill: var(--accent); }
.hero-graph .hg-center-fill { fill: var(--accent); }
.hero-graph text { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.hero-graph .hg-label { font-size: 15px; font-weight: 700; fill: var(--ink); }
.hero-graph .hg-center-label { font-size: 17px; font-weight: 800; fill: var(--color-white); }
.hero-graph .hg-node { animation: heroNodeIn 640ms ease both; }
@keyframes heroNodeIn {
  from { opacity: 0; transform: translateX(var(--hg-shift, 0)); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-graph .hg-node { animation: none; opacity: 1; }
}
.hero-graph .hg-label-sm { font-size: 13px; }
.hero-graph .hg-center-sublabel { font-size: 12px; font-weight: 500; fill: rgba(255, 255, 255, .82); }

.section-header { text-align: center; max-width: 720px; margin: 0 auto clamp(1.5rem, 4vw, 2.5rem); }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; color: var(--color-midnight); margin: 0 0 .6rem; }
.section-lead { font-size: 1.05rem; color: var(--muted); margin: 0; }
section + section.section-block,
.section-block + .section-block { margin-top: clamp(2.5rem, 6vw, 4rem); }
.section-block { margin: clamp(2.5rem, 6vw, 4rem) 0; }

.demo-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}
.demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.demo-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #92400E;
  background: #FFF7ED;
  border: 1px solid #FDE7C7;
  border-radius: 999px;
  padding: .2rem .55rem;
  margin-bottom: .4rem;
}
.demo-score { font-weight: 900; font-size: 1.35rem; color: #0F766E; white-space: nowrap; }
.demo-card h3 { margin: 0 0 .75rem; font-size: 1.15rem; color: var(--color-midnight); }
.demo-reasons { display: grid; gap: .55rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.demo-reasons li { background: var(--bg); border: 1px solid var(--line); border-radius: .6rem; padding: .6rem .75rem; font-size: .9rem; }
.demo-reasons li::before { content: "✓ "; color: var(--accent2); font-weight: 800; }
.demo-source { margin: 0; font-size: .78rem; color: var(--muted); }

.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: clamp(2rem, 5vw, 3.5rem) 0; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.panel:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15, 23, 42, .12); }
.panel h2, .panel h3 { margin: 0 0 .5rem; font-size: 1.15rem; color: var(--color-midnight); }
.panel p { margin: 0; color: var(--muted); font-size: .95rem; }

.notice {
  background: var(--color-cloud);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: .6rem;
  margin: 2rem 0;
  color: var(--ink);
}

.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  padding: 1.5rem clamp(1rem, 5vw, 5rem) 2rem;
  background: var(--color-midnight);
  color: var(--ink-on-dark);
}
.site-footer a { color: #B9C2D6; text-decoration: none; font-size: .85rem; transition: color 150ms ease; }
.site-footer a:hover { color: var(--ink-on-dark); }

/* Footer pe coloane, portat de pe platforma (app.b2bin.ro/accounts/base.html,
   DEC-320) - nu ajunsese pe landing la deploy-ul initial (DEC-321, gasit de
   raportul CfC de verificare live). Aceleasi clase, aceeasi structura -
   Platforma / Juridic / Firma + banda de jos (SAL + NETOPIA + copyright).
   Coloana Juridic: 7 linkuri catre pagini locale + 3 catre echivalentul
   functional de pe app.b2bin.ro (Livrare/Anulare-Retragere nu exista static
   pe landing, Corecteaza-date e un formular cu logica de backend). */
.footer-columns { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer-col { flex: 1 1 180px; min-width: 160px; }
.footer-col-legal { flex: 1 1 300px; }
.footer-col h3 {
  margin: 0 0 .75rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-on-dark);
  opacity: .65;
}
.footer-col-nav { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.footer-col-nav-split { display: block; columns: 2; column-gap: 1.5rem; }
.footer-col-nav-split a { display: block; margin-bottom: .5rem; break-inside: avoid; }
.footer-company { margin: 0; line-height: 1.6; color: #B9C2D6; font-size: .85rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 250, 252, .12);
}
.footer-sal { display: flex; align-items: center; gap: .5rem; margin: 0; }
.footer-sal img { height: 32px; width: auto; }
.footer-copyright { margin: 0 0 0 auto; opacity: .6; font-size: .8rem; }
/* Sigla NETOPIA (DEC-313, fix de specificitate la DEC-321 - gasit de
   raportul CfC: `.footer-badges img` (0,2,1) bataea `.footer-netopia-logo`
   (0,2,0) inainte, iesea 279px pe 375px in loc de 30px inaltime - dispare
   odata cu markup-ul `.footer-badges`, dar clasa ramane strict simpla acum,
   fara concurenta de specificitate. */
.footer-netopia-logo { height: 30px; width: auto; vertical-align: middle; }

/* Progresiv: fara JS sau cu prefers-reduced-motion, continutul .reveal
   ramane complet vizibil (nicio dependenta de JS pentru a citi pagina). */
.reveal { opacity: 1; transform: none; }
.js-reveal-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.js-reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* Pagini legale — text identic v1.0 (docs/documente/de_publicat), tokeni
   partajati cu app.css, nu duplicati per pagina. */
.legal-page { max-width: 820px; margin: 0 auto; padding: 40px 20px; line-height: 1.65; color: var(--ink); }
.legal-page h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; color: var(--color-midnight); margin: 0 0 8px; }
.legal-page .updated { color: var(--muted); margin-bottom: 32px; }
.legal-page h2 { font-size: 22px; line-height: 1.25; color: var(--color-midnight); margin: 34px 0 10px; }
.legal-page p { margin: 0 0 12px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; }
.legal-page th, .legal-page td { border: 1px solid var(--line); padding: 10px; vertical-align: top; }
.legal-page th { background: var(--color-midnight); color: var(--color-white); text-align: left; }
/* Tabelele de date (ex. /caen-rev3/, defalcari judet/sectiune) pot deveni mai
   late decat un telefon ingust - scroll orizontal izolat in propriul container,
   nu latime fortata pe pagina (verificat mobil, mandat proprietar). */
.legal-page .table-scroll { overflow-x: auto; margin: 16px 0 24px; -webkit-overflow-scrolling: touch; }
.legal-page .table-scroll table { margin: 0; min-width: 320px; }

.legal-page .stat-block { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.75rem 1.25rem; margin: 20px 0 28px; text-align: center; }
.legal-page .stat-figure { font-size: clamp(2.4rem, 9vw, 3.8rem); font-weight: 900; letter-spacing: -.02em; color: var(--color-midnight); line-height: 1; font-variant-numeric: tabular-nums; }
.legal-page .stat-label { max-width: 620px; margin: .75rem auto 0; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.legal-page .stat-note { margin: .6rem 0 0; color: var(--muted); font-size: .82rem; }
.legal-page a { color: var(--accent); }
.legal-page ul, .legal-page ol { margin: 0 0 16px; padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page .callout { background: var(--bg); border: 1px solid var(--line); border-radius: .6rem; padding: 14px 18px; margin: 0 0 20px; }
.legal-page .sources { font-size: 13px; color: var(--muted); margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-page .sources a { color: var(--muted); }
/* `.legal-page a` (doua clase) are specificitate mai mare decat `.button`
   (o clasa) - fara asta, un CTA .button inserat intr-o pagina .legal-page
   mostenea culoarea de link (albastru pe fundal albastru, text invizibil,
   gasit direct la verificarea vizuala a paginii /caen-rev3/). */
.legal-page .button { color: var(--color-white); }
.legal-page .button-secondary { color: var(--accent); }

/* Sectiunea /ghiduri/ - carduri, nu lista (mandat proprietar 2026-08-27).
   Categorie ca badge coloral discret (4 tonuri, aceeasi reteta ca
   .demo-badge: text inchis pe fundal foarte deschis, contrast verificat
   >=5:1 pe toate cele 4). Structura pregatita pentru filtrare JS la scara
   (fiecare card poarta data-category) - fara JS de filtrare inca. */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin: 1.5rem 0 2.5rem; }
.guide-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15, 23, 42, .12); }
.guide-card h2 { margin: 0; font-size: 1.05rem; line-height: 1.35; color: var(--color-midnight); }
.guide-card .guide-dek { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

.guide-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 999px;
  padding: .22rem .6rem;
  border: 1px solid transparent;
}
.guide-badge--termene { color: #92400E; background: #FFF7ED; border-color: #FDE7C7; }
.guide-badge--date { color: #1D4ED8; background: #EFF6FF; border-color: #DBEAFE; }
.guide-badge--riscuri { color: #B91C1C; background: #FEF2F2; border-color: #FECACA; }
.guide-badge--practici { color: #0F766E; background: #F0FDFA; border-color: #CCFBF1; }

.guide-meta { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: auto; padding-top: .2rem; }
.guide-meta .guide-updated { display: inline-flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .16rem .55rem; font-weight: 600; color: var(--ink); }
.guide-meta .guide-dot { opacity: .5; }

.guides-section > h2 { font-size: 1.3rem; color: var(--color-midnight); margin: 2.5rem 0 1rem; }

@media (max-width: 760px) {
  .site-header { padding-inline: 1rem; }
  .site-header nav { gap: .75rem; flex-wrap: wrap; }
  .footer-columns { flex-direction: column; gap: 1.5rem; }
  .footer-bottom { gap: 1rem; }
  .footer-copyright { margin-left: 0; }
}

@media (max-width: 480px) {
  /* Sub 480px, doua sub-coloane de linkuri Juridic ar taia textele mai
     lungi ("De ce apare un contact") - o singura coloana verticala. */
  .footer-col-nav-split { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .js-reveal-ready .reveal { opacity: 1; transform: none; }
}
