/* ==========================================================================
   Revertio Solutions — „Re_" · v3 „luminos și viu"
   Bază caldă crem/alb; culoarea vine curajos din logo-uri:
   coral (Revia) · verde (Revisio) · auriu (Revalio) · somon (Revertio).
   ========================================================================== */

:root {
  /* Bază caldă */
  --crem: #faf5ec;
  --crem-dim: #f3ecdf;
  --alb: #ffffff;
  --ink: #221c12;
  --mist: #8a8172;
  --mist-dark: #6b6252;
  --line: rgba(34, 28, 18, 0.12);

  /* Accente din logo-uri */
  --revia: #ff5630;
  --revia-deep: #d8431f;
  --revia-soft: #ffe9e1;

  --revisio: #15834f;
  --revisio-bright: #3fcf8e;
  --revisio-soft: #e2f2e8;

  /* TODO: DE COMPLETAT — logo-ul Revalio e verde (aproape de Revisio);
     pe site accentul de teritoriu Revalio rămâne auriu până tranșăm paleta */
  --revalio: #e8a33d;
  --revalio-deep: #b97a14;
  --revalio-soft: #fbeed6;

  --salmon: #f58e7e;

  --sev-critic: #c0503a;

  /* Tipografie */
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  /* Fizica Apple */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 600ms;
  --dur-2: 900ms;
  --dur-3: 1200ms;

  --radius: 1.8rem;
  --shadow: 0 20px 60px rgba(34, 28, 18, 0.1);
}

/* --------------------------------------------------------------------------
   Reset + bază
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--crem);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: rgba(255, 86, 48, 0.25);
}

:focus-visible {
  outline: 2px solid var(--revia-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--ink);
  color: var(--crem);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* Tonurile vechi devin nuanțe ale aceleiași lumini */
.tone-ink,
.tone-paper {
  background: transparent;
  color: var(--ink);
  --muted: var(--mist-dark);
}

/* --------------------------------------------------------------------------
   Tipografie
   -------------------------------------------------------------------------- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.display-l {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.display-m {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--mist-dark);
  max-width: 34em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mist);
}

/* Underscore-ul — element grafic recurent */
.u {
  font-family: var(--font-mono);
  font-weight: 500;
}

@keyframes cursor-blink {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

.cursor {
  display: inline-block;
  animation: cursor-blink 1.1s steps(1) infinite;
}

.cursor.steady {
  animation: none;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Navigație — crem translucid
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  height: 3.75rem;
  background: rgba(250, 245, 236, 0.8);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
}

.logo-rest {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.55s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
}

.logo:hover .logo-rest,
.logo:focus-visible .logo-rest {
  max-width: 5.5em;
  opacity: 1;
}

.logo:hover .logo-cursor,
.logo:focus-visible .logo-cursor {
  opacity: 0;
  animation: none;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--mist-dark);
  transition: color 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a::after {
  content: "_";
  font-family: var(--font-mono);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.nav-links a:hover::after {
  opacity: 1;
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Butoane
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  background: var(--ink);
  color: var(--crem);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.btn::after {
  content: "_";
  font-family: var(--font-mono);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(34, 28, 18, 0.18);
}

.btn:hover::after {
  opacity: 1;
  animation: cursor-blink 1.1s steps(1) infinite;
}

/* CTA-ul poartă culoarea produsului în teritoriul lui */
.chapter[data-product="revia"] .btn,
.product-page[data-product="revia"] .btn { background: var(--revia); color: #fff; }

.chapter[data-product="revisio"] .btn,
.product-page[data-product="revisio"] .btn { background: var(--revisio); color: #fff; }

.chapter[data-product="revalio"] .btn,
.product-page[data-product="revalio"] .btn { background: var(--revalio-deep); color: #fff; }

/* --------------------------------------------------------------------------
   Reveal-uri pe scroll
   -------------------------------------------------------------------------- */
.fx {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.fx.in-view {
  opacity: 1;
  transform: none;
}

.fx-d1 { transition-delay: 120ms; }
.fx-d2 { transition-delay: 240ms; }
.fx-d3 { transition-delay: 360ms; }

/* --------------------------------------------------------------------------
   Secțiuni pinned (scrollytelling)
   -------------------------------------------------------------------------- */
.pin {
  position: relative;
}

.pin-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   ACT 1 — Hero „Re_" pe crem, cu mozaic de module din logo-uri
   -------------------------------------------------------------------------- */
.hero {
  height: 480vh;
}

.hero .pin-viewport {
  gap: 2.2rem;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.hero-canvas.ready {
  opacity: 0.55;
}

/* Fundal dinamic: nuanțe calde care preiau culoarea produsului la scroll */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop i {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}

.hero-backdrop .bg-default {
  opacity: 1;
  background:
    radial-gradient(55% 45% at 30% 30%, rgba(255, 86, 48, 0.08), transparent 70%),
    radial-gradient(50% 42% at 74% 62%, rgba(63, 207, 142, 0.09), transparent 70%),
    radial-gradient(42% 36% at 50% 86%, rgba(232, 163, 61, 0.08), transparent 70%);
}

.hero-backdrop .bg-revia {
  background:
    radial-gradient(64% 52% at 50% 42%, rgba(255, 86, 48, 0.16), transparent 72%),
    radial-gradient(40% 34% at 22% 76%, rgba(255, 86, 48, 0.08), transparent 70%);
}

.hero-backdrop .bg-revisio {
  background:
    radial-gradient(64% 52% at 50% 42%, rgba(21, 131, 79, 0.14), transparent 72%),
    radial-gradient(40% 34% at 78% 76%, rgba(63, 207, 142, 0.1), transparent 70%);
}

.hero-backdrop .bg-revalio {
  background:
    radial-gradient(64% 52% at 50% 42%, rgba(232, 163, 61, 0.18), transparent 72%),
    radial-gradient(40% 34% at 26% 74%, rgba(232, 163, 61, 0.09), transparent 70%);
}

.hero-backdrop .bg-revertio {
  background:
    radial-gradient(50% 44% at 34% 40%, rgba(255, 86, 48, 0.12), transparent 70%),
    radial-gradient(50% 44% at 66% 40%, rgba(63, 207, 142, 0.12), transparent 70%),
    radial-gradient(44% 38% at 50% 74%, rgba(232, 163, 61, 0.12), transparent 70%);
}

.hero.phase-revia .bg-revia,
.hero.phase-revisio .bg-revisio,
.hero.phase-revalio .bg-revalio,
.hero.phase-revertio .bg-revertio {
  opacity: 1;
}

/* Mozaic de module — geometria logo-urilor, plutind discret */
.hero-mosaic {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-mosaic span {
  position: absolute;
  border-radius: 18%;
  animation: mosaic-float 9s var(--ease) infinite;
}

.hero-mosaic .mq1 { width: 3.2rem; height: 3.2rem; background: var(--revia); left: 12%; top: 20%; }
.hero-mosaic .mq2 { width: 2rem; height: 2rem; background: var(--revisio); left: 20%; top: 66%; animation-delay: 1.4s; }
.hero-mosaic .mq3 { width: 2.6rem; height: 2.6rem; background: var(--revalio); left: 82%; top: 26%; animation-delay: 2.8s; }
.hero-mosaic .mq4 { width: 1.6rem; height: 1.6rem; background: var(--salmon); left: 74%; top: 72%; animation-delay: 4.2s; }
.hero-mosaic .mq5 { width: 1.2rem; height: 1.2rem; background: var(--ink); opacity: 0.85; left: 30%; top: 34%; animation-delay: 5.6s; }
.hero-mosaic .mq6 { width: 1.4rem; height: 1.4rem; background: var(--revisio-bright); left: 66%; top: 14%; animation-delay: 7s; }

@keyframes mosaic-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-1.4rem) rotate(8deg); }
}

.hero-word {
  position: relative;
  z-index: 1;
  /* halou crem: tipografia rămâne protagonistul peste raftul 3D */
  text-shadow:
    0 0 18px var(--crem),
    0 0 44px var(--crem),
    0 0 70px var(--crem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 15vw, 9rem);
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.hero-word .suffix .hl-revia { color: var(--revia); }
.hero-word .suffix .hl-revisio { color: var(--revisio); }
.hero-word .suffix .hl-revalio { color: var(--revalio-deep); }

.hero-line {
  position: relative;
  z-index: 1;
  text-shadow: 0 0 10px var(--crem), 0 0 22px var(--crem);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  color: var(--mist-dark);
  text-align: center;
  padding: 0 1.5rem;
  max-width: 40em;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(var(--mist), transparent);
  animation: hint-drop 2s var(--ease) infinite;
}

@keyframes hint-drop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(0.8rem); opacity: 0; }
}

/* --------------------------------------------------------------------------
   ACT 2 — Problema: alb, cu panouri colorate per moment
   -------------------------------------------------------------------------- */
#problema {
  background: var(--alb);
  border-radius: 3rem 3rem 0 0;
}

.section-head {
  min-height: 54vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
  padding: 6rem clamp(1.25rem, 5vw, 3rem) 2rem;
}

.moment {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 74rem;
  margin: 0 auto;
  padding: 2.4rem clamp(1.25rem, 5vw, 3rem);
}

.moment-copy {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.moment-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.moment h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* Panoul colorat al vizualului — culoarea produsului care urmează */
.moment-visual {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.moment-visual[data-visual="shelf"] { background: var(--revia-soft); }
.moment-visual[data-visual="network"] { background: var(--revisio-soft); }
.moment-visual[data-visual="queue"] { background: var(--revalio-soft); }

.moment-visual svg {
  width: 100%;
  height: auto;
}

.vis-caption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--mist-dark);
  letter-spacing: 0.04em;
}

@media (max-width: 860px) {
  .moment {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: 0;
    padding-block: 3.4rem;
  }
}

/* — vizual 1: raftul din bare — */
.shelf-bar {
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
  transform-origin: bottom;
}

.shelf-bar.gone {
  fill: var(--revia);
  transition-delay: 700ms;
}

.in-view .shelf-bar.gone {
  opacity: 0.12;
  transform: scaleY(0.06);
  animation: gap-breathe 6s var(--ease) 2.6s infinite;
}

@keyframes gap-breathe {
  0%, 100% { opacity: 0.12; transform: scaleY(0.06); }
  45% { opacity: 0.55; transform: scaleY(0.7); }
  60% { opacity: 0.55; transform: scaleY(0.7); }
}

/* — vizual 2: rețeaua neuronală de recenzii — */
.net-dot {
  opacity: 0;
  transition: opacity var(--dur-1) var(--ease);
  fill: var(--revisio);
}

.in-view .net-dot {
  opacity: 1;
}

.net-dot.alert-dot {
  transition-delay: 900ms;
}

.in-view .net-dot.alert-dot {
  fill: var(--sev-critic);
  animation: alert-pulse 2s var(--ease) infinite 1.2s;
}

@keyframes alert-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.net-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.6s var(--ease) 300ms;
}

.in-view .net-line {
  stroke-dashoffset: 0;
}

.net-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  fill: var(--mist-dark);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}

.net-tag.critic {
  fill: var(--sev-critic);
}

.in-view .net-tag {
  opacity: 1;
}

/* — vizual 3: clienții la casă — */
.queue-dot {
  opacity: 0;
  transform: translateX(-1.2rem);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.in-view .queue-dot {
  opacity: 1;
  transform: none;
}

.queue-tag {
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease) 1.1s;
}

.in-view .queue-tag {
  opacity: 1;
}

.queue-dot.vip {
  transition-delay: 900ms;
}

.in-view .queue-dot.vip {
  fill: var(--revalio-deep);
  fill-opacity: 1;
  animation: vip-pulse 2.6s var(--ease) 1.8s infinite;
}

@keyframes vip-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.queue-data {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  fill: var(--mist-dark);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease) 1.4s;
}

.queue-data.vip-data {
  fill: var(--revalio-deep);
}

.in-view .queue-data {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   ACT 3 — Manifest: buclă de verbe pe crem, cu module plutind
   -------------------------------------------------------------------------- */
.manifest {
  height: auto;
  position: relative;
  overflow: hidden;
}

.manifest .pin-viewport {
  position: static;
  min-height: 92svh;
  height: auto;
  overflow: visible;
}

.manifest::before,
.manifest::after {
  content: "";
  position: absolute;
  border-radius: 22%;
  animation: mosaic-float 11s var(--ease) infinite;
  pointer-events: none;
}

.manifest::before {
  width: 4.4rem;
  height: 4.4rem;
  background: var(--revia);
  left: 12%;
  top: 22%;
}

.manifest::after {
  width: 3rem;
  height: 3rem;
  background: var(--revalio);
  right: 14%;
  bottom: 24%;
  animation-delay: 3s;
}

.manifest-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 10vw, 7rem);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

/* Fiecare verb își ia culoarea unui produs */
.manifest-word .suffix[data-verb="0"] { color: var(--revia); }
.manifest-word .suffix[data-verb="1"] { color: var(--revisio); }
.manifest-word .suffix[data-verb="2"] { color: var(--revalio-deep); }

.manifest-note {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mist-dark);
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}

.manifest-note.show {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   ACT 4 — Capitole de produs: alb, cu panou colorat pentru vizual
   -------------------------------------------------------------------------- */
.chapter {
  height: 430vh;
  background: var(--alb);
}

.chapter[data-product="revisio"] {
  background: var(--crem);
}

.chapter .pin-viewport {
  align-items: stretch;
  justify-content: flex-start;
  padding: clamp(4.2rem, 7vh, 6rem) clamp(1.25rem, 5vw, 3.5rem) clamp(1.6rem, 4vh, 3rem);
  max-width: 78rem;
  margin: 0 auto;
  width: 100%;
}

.chapter-mark {
  height: clamp(2rem, 4.5vh, 2.8rem);
  width: auto;
  margin-bottom: 0.9rem;
}

.chapter-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.chapter-name .sfx {
  transition: color 1s var(--ease);
}

.chapter.lit[data-product="revia"] .sfx { color: var(--revia); }
.chapter.lit[data-product="revisio"] .sfx { color: var(--revisio); }
.chapter.lit[data-product="revalio"] .sfx { color: var(--revalio-deep); }

.chapter-sense {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.2vw, 0.8rem);
  color: var(--mist-dark);
  letter-spacing: 0.03em;
}

.chapter-problem {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--mist-dark);
  max-width: 44em;
}

.chapter-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
  gap: clamp(1.6rem, 5vw, 4.5rem);
  align-items: center;
  flex: 1;
  min-height: 0;
  margin-top: clamp(1.2rem, 3vh, 2.4rem);
}

.caps {
  list-style: none;
  display: grid;
  gap: clamp(0.7rem, 1.8vh, 1.3rem);
}

.cap {
  padding-left: 1.4rem;
  position: relative;
  opacity: 0.35;
  transition: opacity 0.7s var(--ease);
}

.cap::before {
  content: "_";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--mist);
  transition: color 0.7s var(--ease);
}

.cap h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  letter-spacing: -0.01em;
}

.cap p {
  font-size: clamp(0.85rem, 1.25vw, 0.98rem);
  color: var(--mist-dark);
  max-width: 34em;
}

.cap.active {
  opacity: 1;
}

.chapter[data-product="revia"] .cap.active::before { color: var(--revia); }
.chapter[data-product="revisio"] .cap.active::before { color: var(--revisio); }
.chapter[data-product="revalio"] .cap.active::before { color: var(--revalio-deep); }

/* Vizualul stă pe panoul colorat al produsului */
.chapter-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  min-height: 0;
  border-radius: var(--radius);
  padding: clamp(1rem, 2.2vw, 1.8rem);
}

.chapter[data-product="revia"] .chapter-visual { background: var(--revia-soft); }
.chapter[data-product="revisio"] .chapter-visual { background: var(--revisio-soft); }
.chapter[data-product="revalio"] .chapter-visual { background: var(--revalio-soft); }

.chapter-visual .state {
  position: absolute;
  inset: clamp(1rem, 2.2vw, 1.8rem);
  opacity: 0;
  transform: translateY(0.6rem) scale(0.99);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chapter-visual .state > * {
  width: 100%;
}

.chapter-visual .state.active {
  opacity: 1;
  transform: none;
}

.chapter-visual svg {
  width: 100%;
  height: 100%;
}

.chapter-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: clamp(0.9rem, 2.5vh, 1.4rem);
  opacity: 0;
  transform: translateY(0.8rem);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.chapter-foot.show {
  opacity: 1;
  transform: none;
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4em 1em;
  color: var(--mist-dark);
}

.synergy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mist-dark);
  letter-spacing: 0.02em;
  flex: 1;
  min-width: 14rem;
}

@media (max-width: 960px) {
  .chapter-body {
    grid-template-columns: 1fr;
    align-items: start;
  }

  /* Pe mobil: galeria devine carusel orizontal simplu, cu snap */
  .chapter-visual {
    aspect-ratio: auto;
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
  }

  .chapter-visual .state {
    position: static;
    opacity: 1;
    transform: none;
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  .chapter-visual svg {
    height: auto;
  }
}

/* --------------------------------------------------------------------------
   Sistem media: rame de device, video embed, lightbox, placeholder-e oneste
   -------------------------------------------------------------------------- */
.device-browser {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--alb);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.device-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.device-browser-bar i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.22;
}

.device-browser-bar .mono {
  margin-left: 0.4rem;
  font-size: 0.62rem;
  color: var(--mist-dark);
}

.device-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.device-screen img,
.device-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}

/* Placeholder de design — intenționat placeholder, nu produs finit */
.media-pending {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background:
    linear-gradient(115deg, transparent 42%, rgba(138, 129, 114, 0.1) 50%, transparent 58%),
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(138, 129, 114, 0.06) 14px 15px);
  background-size: 250% 100%, auto;
  animation: pending-sheen 3.4s linear infinite;
}

@keyframes pending-sheen {
  from { background-position: 120% 0, 0 0; }
  to { background-position: -120% 0, 0 0; }
}

.media-pending .u {
  font-size: 1.4rem;
  color: var(--mist);
}

.media-pending span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mist-dark);
}

.media-ready img,
.media-ready video {
  opacity: 1;
}

.media-ready .media-pending {
  display: none;
}

/* Banda de film a produsului */
.film-band {
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 5vw, 3rem);
  display: grid;
  justify-items: center;
  gap: 1.6rem;
  background: var(--alb);
}

.film-band .device-browser {
  width: min(58rem, 100%);
}

.film-band .device-screen {
  aspect-ratio: 16 / 9;
}

.film-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--mist-dark);
  transition: color 0.3s var(--ease);
}

.film-link:hover {
  color: var(--ink);
}

/* Lightbox full-screen */
.lightbox {
  border: none;
  padding: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background: rgba(34, 28, 18, 0.94);
  color: var(--crem);
}

.lightbox::backdrop {
  background: rgba(34, 28, 18, 0.8);
}

.lightbox-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.lightbox video,
.lightbox iframe {
  width: 100%;
  height: 100%;
  max-width: 96rem;
  border: none;
  background: #000;
  border-radius: 0.6rem;
}

.lightbox video {
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--crem);
  padding: 0.6rem 1rem;
  border: 1px solid rgba(250, 245, 236, 0.4);
  border-radius: 999px;
  background: rgba(34, 28, 18, 0.6);
}

.lightbox-close:hover {
  border-color: var(--crem);
}

/* Paginile de produs: accentul mai prezent */
.product-page[data-product="revia"] .sfx,
.product-page[data-product="revia"] .cap::before { color: var(--revia); }

.product-page[data-product="revisio"] .sfx,
.product-page[data-product="revisio"] .cap::before { color: var(--revisio); }

.product-page[data-product="revalio"] .sfx,
.product-page[data-product="revalio"] .cap::before { color: var(--revalio-deep); }

.product-page .cap {
  opacity: 1;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist-dark);
}

.back-link:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   ACT 5 — Ecosistemul
   -------------------------------------------------------------------------- */
.eco {
  padding: clamp(6rem, 14vh, 10rem) clamp(1.25rem, 5vw, 3rem);
  display: grid;
  justify-items: center;
  gap: 3rem;
  text-align: center;
  background: var(--alb);
}

.eco-diagram {
  width: min(46rem, 92vw);
}

.eco-link {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.8s var(--ease);
}

.in-view .eco-link {
  stroke-dashoffset: 0;
}

.eco-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  fill: var(--mist-dark);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease) 1.2s;
}

.in-view .eco-label {
  opacity: 1;
}

.eco-loop {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mist-dark);
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   ACT 6 — Despre
   -------------------------------------------------------------------------- */
.about {
  padding: clamp(6rem, 14vh, 10rem) clamp(1.25rem, 5vw, 3rem);
  display: grid;
  justify-items: center;
  gap: 2rem;
  text-align: center;
}

.about-logo {
  height: 5.5rem;
  width: auto;
}

.about .lead {
  max-width: 38em;
}

/* --------------------------------------------------------------------------
   ACT 7 — Contact
   -------------------------------------------------------------------------- */
.contact {
  padding: clamp(6rem, 14vh, 9rem) clamp(1.25rem, 5vw, 3rem) 5rem;
  display: grid;
  gap: 3rem;
  justify-items: center;
  background: var(--alb);
}

.contact header {
  text-align: center;
  display: grid;
  gap: 1.2rem;
  justify-items: center;
}

.contact-form {
  width: min(34rem, 100%);
  display: grid;
  gap: 1.2rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mist-dark);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--crem);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--alb);
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.form-status.show {
  opacity: 1;
}

.form-status.ok { color: var(--revisio); }
.form-status.err { color: var(--sev-critic); }

.form-note {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--mist);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Actul final — Declarația („nu este rău să re_începi")
   -------------------------------------------------------------------------- */
.finale {
  padding: clamp(6rem, 16vh, 11rem) clamp(1.25rem, 5vw, 3rem);
  display: grid;
  justify-items: center;
  gap: 2.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(56% 44% at 24% 26%, rgba(255, 86, 48, 0.1), transparent 70%),
    radial-gradient(56% 44% at 78% 30%, rgba(63, 207, 142, 0.1), transparent 70%),
    radial-gradient(48% 40% at 50% 82%, rgba(232, 163, 61, 0.12), transparent 70%),
    var(--crem);
}

.finale-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.finale .lead {
  margin: 0 auto;
}

.statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 4.4rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  display: grid;
  gap: 0.18em;
  justify-items: center;
}

.statement-line {
  display: block;
}

/* Sufixele de brand, utilizabile oriunde */
.sfx-revia { color: var(--revia); }
.sfx-revisio { color: var(--revisio); }
.sfx-revalio { color: var(--revalio-deep); }

/* --------------------------------------------------------------------------
   Footer — luminos, cu ancore colorate
   -------------------------------------------------------------------------- */
.footer {
  background: var(--alb);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vh, 4.5rem) clamp(1.25rem, 5vw, 3rem) 2.4rem;
  display: grid;
  gap: 2rem;
}

.footer-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 30em;
}

.footer-products {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.footer-mark {
  height: 1.15em;
  width: auto;
  display: inline-block;
  vertical-align: -0.18em;
  margin-right: 0.35em;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--mist-dark);
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.footer-meta a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Paginile secundare
   -------------------------------------------------------------------------- */
.page-hero {
  padding: clamp(7rem, 16vh, 10rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 7vh, 5rem);
  max-width: 60rem;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.page-hero .chapter-mark {
  height: 3.2rem;
  margin-bottom: 1.2rem;
}

.page-section {
  padding: clamp(2.6rem, 7vh, 4.5rem) clamp(1.25rem, 5vw, 3rem);
}

.page-section .inner {
  max-width: 74rem;
  margin: 0 auto;
  display: grid;
  gap: 1.8rem;
}

.page-section:nth-of-type(even) {
  background: var(--alb);
}

.caps-grid {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.8rem;
}

.page-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.prose {
  max-width: 44em;
  display: grid;
  gap: 1rem;
  color: var(--mist-dark);
}

/* --------------------------------------------------------------------------
   prefers-reduced-motion: variantă statică demnă
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fx,
  .chapter-foot,
  .cap,
  .manifest-note,
  .chapter-visual .state:first-child,
  .net-dot,
  .net-tag,
  .queue-dot,
  .queue-tag,
  .queue-data {
    opacity: 1 !important;
    transform: none !important;
  }

  .net-line,
  .eco-link {
    stroke-dashoffset: 0 !important;
  }

  .eco-label {
    opacity: 1 !important;
  }

  .hero,
  .manifest,
  .chapter {
    height: auto;
  }

  .hero .pin-viewport,
  .manifest .pin-viewport,
  .chapter .pin-viewport {
    position: relative;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding-block: 5rem;
  }

  .scroll-hint {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Mobil: fără pinning agresiv
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .hero,
  .chapter {
    height: auto;
  }

  .hero .pin-viewport,
  .manifest .pin-viewport,
  .chapter .pin-viewport {
    position: relative;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding-block: 4.5rem;
  }

  .chapter .pin-viewport {
    min-height: 0;
  }

  .moment {
    min-height: 0;
  }

  .section-head {
    min-height: 0;
    padding-top: 7rem;
  }

  .hero-word {
    white-space: normal;
    text-align: center;
  }

  .hero-mosaic .mq1,
  .hero-mosaic .mq3 {
    display: none;
  }
}

/* ==========================================================================
   v4 — site-ul mamă: hero compact + Masa de decizie + benzi comprimate
   ========================================================================== */

/* ---------- HERO: un singur ecran, copy + panou live ---------- */
.hero4 {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(52% 44% at 18% 22%, rgba(255, 86, 48, 0.09), transparent 70%),
    radial-gradient(52% 44% at 86% 30%, rgba(21, 131, 79, 0.1), transparent 70%),
    radial-gradient(46% 40% at 60% 92%, rgba(232, 163, 61, 0.09), transparent 70%),
    var(--crem);
}

.hero4-inner {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(5.5rem, 12vh, 8rem) clamp(1.25rem, 5vw, 3rem) clamp(3.5rem, 8vh, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero4-copy {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}

.hero4-copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
}

.hero4-copy h1 em {
  font-style: normal;
  color: var(--revisio);
}

.hero4-ctas {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.ghost-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--mist-dark);
  transition: color 0.3s var(--ease);
}

.ghost-link:hover { color: var(--ink); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  border: 1px solid var(--line);
  background: var(--alb);
  border-radius: 999px;
  padding: 0.45em 1em;
  font-size: 0.8rem;
}

.chip i {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  align-self: center;
  flex-shrink: 0;
}

.chip b { font-family: var(--font-display); font-weight: 700; }
.chip small { color: var(--mist); font-size: 0.72rem; }
.chip-revia i { background: var(--revia); }
.chip-revisio i { background: var(--revisio); }
.chip-revalio i { background: var(--revalio); }
.chip-consult i { background: var(--ink); }

@media (max-width: 640px) {
  .chip small { display: none; }
}

/* ---------- Masa de decizie retail (panou live) ---------- */
.deck {
  background: var(--alb);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem 1rem;
  display: grid;
  gap: 0.9rem;
}

.deck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.deck-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mist-dark);
}

.deck-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--revisio);
}

.live-dot {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--revisio);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.deck-stage {
  position: relative;
  min-height: 13.5rem;
}

.signal {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  border-radius: 0.9rem;
  padding: 1.1rem 1.2rem;
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}

.signal.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.sig-revia { background: var(--revia-soft); }
.sig-revisio { background: var(--revisio-soft); }
.sig-consult { background: var(--crem-dim); }

.sig-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mist-dark);
}

.sig-revia .sig-label { color: var(--revia-deep); }
.sig-revisio .sig-label { color: var(--revisio); }

.signal h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.signal > p {
  font-size: 0.92rem;
  color: var(--mist-dark);
}

.sig-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.sig-chips b,
.sig-chips span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.3em 0.8em;
  border: 1px solid var(--line);
  background: var(--alb);
  font-weight: 500;
}

.sig-revia .sig-chips b { background: var(--revia); border-color: var(--revia); color: #fff; }
.sig-revisio .sig-chips b { background: var(--revisio); border-color: var(--revisio); color: #fff; }
.sig-consult .sig-chips b { background: var(--ink); border-color: var(--ink); color: var(--crem); }

.deck-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.deck-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.deck-dots button.is-on {
  background: var(--ink);
  transform: scale(1.25);
}

.deck-note {
  text-align: center;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mist);
}

/* ---------- Benzi comprimate ---------- */
.band {
  padding: clamp(4.5rem, 11vh, 7.5rem) clamp(1.25rem, 5vw, 3rem);
}

.band-alb { background: var(--alb); }
.band-crem { background: var(--crem); }

.band-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 1.3rem;
  justify-items: start;
}

.band-inner > .lead { max-width: 46em; }

.tri-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.tri-list li {
  display: flex;
  gap: 0.7em;
  align-items: baseline;
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
}

.tri-list .u { color: var(--revisio); font-weight: 700; }

/* ---------- Ce rezolvăm: 4 dureri ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
  width: 100%;
}

.pain {
  background: var(--crem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.4rem 1.4rem 1.2rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.band-crem .pain { background: var(--alb); }

.pain:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pain-idx {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.pain h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.pain p { font-size: 0.9rem; color: var(--mist-dark); }

.pain-fix {
  color: var(--ink) !important;
  font-weight: 500;
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
  margin-top: 0.2rem;
}

/* ---------- Direcții: 4 carduri ---------- */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
  width: 100%;
}

.dir {
  position: relative;
  background: var(--alb);
  border: 1px solid var(--line);
  border-top: 4px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.5rem 1.4rem 1.3rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.dir:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.dir-revia { border-top-color: var(--revia); }
.dir-revisio { border-top-color: var(--revisio); }
.dir-revalio { border-top-color: var(--revalio); }
.dir-consult { border-top-color: var(--ink); }

.dir img { height: 2rem; width: auto; }

.dir-tag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.dir h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.dir h3 em { font-style: normal; }

.dir > p { font-size: 0.9rem; color: var(--mist-dark); }

.dir-fix {
  font-size: 0.84rem !important;
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}

.dir-fix b { color: var(--ink); }

.dir-go {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink);
  margin-top: 0.2rem;
  transition: transform 0.3s var(--ease);
}

.dir:hover .dir-go { transform: translateX(4px); }

/* ---------- Servicii + metoda ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
  width: 100%;
}

.svc {
  border-left: 3px solid var(--revisio);
  padding: 0.3rem 0 0.3rem 1.1rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.svc h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.svc p { font-size: 0.9rem; color: var(--mist-dark); }

.method {
  margin-top: 2.6rem;
  width: 100%;
  display: grid;
  gap: 1.2rem;
}

.method-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.2rem;
  counter-reset: step;
}

.method-steps li {
  background: var(--crem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.2rem 1.3rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
  position: relative;
}

.step-no {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--revisio);
  font-weight: 500;
}

.method-steps h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.method-steps p { font-size: 0.86rem; color: var(--mist-dark); }

/* ---------- Contact: select + mail-link ---------- */
.field select {
  font: inherit;
  color: var(--ink);
  background: var(--crem);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6252' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.field select:focus {
  outline: none;
  border-color: var(--ink);
  background-color: var(--alb);
}

.mail-link {
  color: var(--revisio);
  font-weight: 600;
}

.mail-link:hover { text-decoration: underline; }

/* ---------- Responsive hero4 ---------- */
@media (max-width: 960px) {
  .hero4-inner {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding-top: 6rem;
  }

  .hero4 { min-height: 0; }

  .deck-stage { min-height: 15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .signal { transition: none; }
  .live-dot { animation: none; }
}

/* ==========================================================================
   Print: exportul site-ului în PDF — static, complet, cu culorile păstrate
   ========================================================================== */
@page { size: A4; margin: 10mm; }

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    animation: none !important;
    transition: none !important;
  }

  .nav,
  .scroll-hint,
  .skip-link,
  .deck-dots,
  .film-link {
    display: none !important;
  }

  .fx,
  .cap,
  .chapter-foot,
  .net-dot, .net-tag, .queue-dot, .queue-tag, .queue-data {
    opacity: 1 !important;
    transform: none !important;
  }

  .net-line, .eco-link { stroke-dashoffset: 0 !important; }

  body { background: #fff; }

  .hero4 { min-height: 0; }
  .hero4-inner { padding-top: 1.2cm; padding-bottom: 0.8cm; }

  /* Toate cele 3 semnale, stivuite — nimic ascuns pe hârtie */
  .deck-stage {
    min-height: 0;
    display: grid;
    gap: 0.7rem;
  }

  .signal {
    position: static;
    opacity: 1 !important;
    transform: none !important;
  }

  .band { padding-block: 1cm; }
  .finale { padding-block: 1.2cm; }
  .contact { padding-block: 1cm; }

  .band, .finale, .contact, .footer { break-before: auto; }
  #rezolvam, #directii, #consultanta, .finale, .contact { break-before: page; }

  .pain, .dir, .svc, .method-steps li, .deck, .signal,
  .field, .contact-form, .device-browser {
    break-inside: avoid;
  }

  .dir:hover, .pain:hover { transform: none; box-shadow: none; }

  /* Paginile de produs */
  .page-hero { padding-top: 1.2cm; padding-bottom: 0.6cm; }
  .page-section { padding-block: 0.7cm; }
  .film-band { padding-block: 0.7cm; }
}

/* ==========================================================================
   Preluat din varianta Excellence: capturi reale de demo + cifre-dovadă
   (scena 3D din hero a fost scoasă — se suprapunea peste text și fila culorile;
    elementul dinamic al hero-ului rămâne panoul „Masa de decizie")
   ========================================================================== */

/* — Capturi reale de demo, în ramă de ecran înclinată (hover → se îndreaptă) — */
.shot {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.shot-frame {
  display: block;
  overflow: hidden;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: var(--alb);
  box-shadow: 0 26px 70px rgba(34, 28, 18, 0.18);
  transform: perspective(1600px) rotateY(-3deg) rotateX(1.5deg);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}

.shot-frame:hover {
  transform: perspective(1600px) rotateY(0deg) rotateX(0deg);
  box-shadow: 0 34px 90px rgba(34, 28, 18, 0.22);
}

.shot-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--mist-dark);
}

/* — Cifre-dovadă verificate (din setul demo) pe cardurile de direcție — */
.dir-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.dir-proof div { display: grid; }

.dir-proof strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.dir-revia .dir-proof strong { color: var(--revia); }
.dir-revisio .dir-proof strong { color: var(--revisio); }

.dir-proof span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: var(--mist);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* Bandă „Din demo" pe homepage — două capturi mari */
.demo-band { background: var(--crem); }

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2rem;
  margin-top: 1.6rem;
  width: 100%;
}

@media (max-width: 760px) {
  .shot-frame { transform: none; }
}
