/* TFL Companion — website public. Design system.
   Direcție: cald, premium, editorial (plan E9 D3-D5). O singură temă light. */

:root {
  /* Culori — hârtie caldă + violet TFL folosit chirurgical */
  --bg: #faf7f2;
  --bg-alt: #f3ede3;
  --surface: #ffffff;
  --ink: #211b16;
  --ink-soft: #4f463d;
  --muted: #6f6559;
  --faint: #a59b8e;
  --line: #e7dfd3;
  --line-soft: #efe9de;
  --accent: #7c3aed;
  --accent-deep: #5c27c0;
  --accent-ink: #46209c;
  --accent-tint: rgba(124, 58, 237, 0.07);
  --accent-tint-strong: rgba(124, 58, 237, 0.14);
  --warm-tint: #f7efdd;
  --success: #3d8b5f;

  /* Tipografie */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Formă */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(48, 35, 21, 0.05), 0 2px 8px rgba(48, 35, 21, 0.04);
  --shadow-md: 0 2px 6px rgba(48, 35, 21, 0.05), 0 12px 32px rgba(48, 35, 21, 0.08);
  --shadow-lg: 0 4px 12px rgba(48, 35, 21, 0.06), 0 24px 64px rgba(48, 35, 21, 0.12);
  --shadow-accent: 0 6px 20px rgba(124, 58, 237, 0.28);

  /* Motion (Emil Kowalski: ease-out puternic, UI < 300ms) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-fast: 140ms;
  --t-ui: 200ms;
  --t-slow: 420ms;
}

/* ---------- Reset & bază ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Textura de hartie — film grain fix, deasupra tuturor, netangibil */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.13 0 0 0 0 0.10 0 0 0 0 0.08 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

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

::selection { background: var(--accent-tint-strong); }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 560; line-height: 1.12; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 48px); margin-inline: auto; }

.section { padding-block: clamp(88px, 12vw, 160px); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(33, 27, 22, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
}
.kicker::before { content: ''; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

.h-display { font-size: clamp(2.6rem, 6.6vw, 5rem); }
.h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.accent-italic { font-style: italic; font-weight: 500; color: var(--accent-ink); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.28; }

.lede { font-size: clamp(1.125rem, 1.7vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); }
.sub { color: var(--muted); }
.small { font-size: 0.9rem; color: var(--muted); }

/* ---------- Butoane ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-ui) ease, border-color var(--t-ui) ease, box-shadow var(--t-ui) ease;
}
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--ink); color: var(--bg); padding-right: 8px; }
.btn--primary::after {
  content: '→';
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
  transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) ease;
}
.btn--primary:hover { background: #000; color: var(--bg); }
.btn--primary:hover::after { transform: translateX(3px); background: var(--accent); }
.btn--lg.btn--primary::after { width: 34px; height: 34px; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--faint); color: var(--ink); background: rgba(255, 255, 255, 0.6); }

.btn--soft { background: var(--accent-tint); color: var(--accent-ink); }
.btn--soft:hover { background: var(--accent-tint-strong); color: var(--accent-deep); }

.btn--lg { padding: 16px 32px; font-size: 1.0625rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-ink);
}
.link-arrow::after { content: '→'; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover::after { transform: translateX(4px); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 62px;
  padding: 0 10px 0 22px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(33, 27, 22, 0.08);
  box-shadow: 0 1px 2px rgba(48, 35, 21, 0.04);
  transition: box-shadow var(--t-slow) var(--ease-out);
}
.site-header.is-scrolled .nav { box-shadow: 0 2px 6px rgba(48, 35, 21, 0.05), 0 16px 40px rgba(48, 35, 21, 0.09); }

.nav-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.nav-logo img { width: 34px; height: 34px; object-fit: contain; }
.nav-logo span em { font-style: normal; color: var(--accent-ink); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; padding: 0; list-style: none; }
.nav-links a {
  display: inline-block;
  padding: 8px 13px;
  white-space: nowrap;
  border-radius: var(--radius-full);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--ink); background: rgba(33, 27, 22, 0.05); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.95rem; }
.nav-cta .btn--primary { box-shadow: none; }

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink);
}
.nav-burger svg { margin: auto; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: grid; place-items: center; margin-left: auto; }
  .nav { min-height: 56px; padding: 0 8px 0 16px; }
  .site-header { top: 10px; }
}

/* Meniu mobil */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  padding: 20px 24px 40px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 20px; }
.mobile-menu nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu nav a {
  display: block;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  text-decoration: none;
}
.mobile-menu .mobile-cta { display: grid; gap: 12px; margin-top: 28px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero (Home) ---------- */

.hero { position: relative; padding-block: clamp(72px, 10vw, 140px) clamp(48px, 6vw, 88px); overflow: clip; margin-top: -90px; padding-top: clamp(150px, 16vw, 220px); }
.hero-inner { max-width: 880px; margin-inline: auto; text-align: center; }
.hero .h-display { margin-bottom: 24px; }
.hero .lede { max-width: 640px; margin-inline: auto; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.hero .kicker { justify-content: center; }
.hero .kicker::before { display: none; }

.hero-glow {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.09), rgba(233, 162, 59, 0.05) 55%, transparent 75%);
  pointer-events: none;
}

/* ---------- Pagini interioare ---------- */

.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 5vw, 64px); }
.page-hero .h-display { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 20px; max-width: 720px; }
.page-hero .lede { max-width: 640px; }

/* ---------- Carduri & grile ---------- */

.card {
  background: var(--surface);
  border: 1px solid rgba(33, 27, 22, 0.05);
  border-radius: 26px;
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: 0 1px 2px rgba(48, 35, 21, 0.03), 0 24px 60px -24px rgba(48, 35, 21, 0.14);
}
.card .h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

.card-marker {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent);
}
.card-marker::after { content: ''; display: block; width: 26px; height: 1px; margin-top: 10px; background: var(--line); }

.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .card-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .card-grid, .card-grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .card-grid--4 { grid-template-columns: 1fr; } }

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: 1.2rem;
}

/* ---------- Liste ---------- */

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346209c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.x-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.x-list li { position: relative; padding-left: 30px; color: var(--muted); }
.x-list li::before { content: '✕'; position: absolute; left: 2px; top: 0; color: var(--faint); font-size: 0.85rem; font-weight: 700; }

.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step-list > li { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding-block: 26px; counter-increment: step; }
.step-list > li > * { grid-column: 2; }
.step-list > li + li { border-top: 1px solid var(--line-soft); }
.step-list > li::before {
  content: counter(step, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 9;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.3;
}
.step-list h3, .step-list .h3 { margin-bottom: 6px; }
.step-list p { color: var(--muted); }

/* ---------- Pills / badge ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.pill--accent { background: var(--accent-tint); border-color: transparent; color: var(--accent-ink); }
.pill--warm { background: var(--warm-tint); border-color: transparent; color: #8a5a14; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Callout (siguranță / onestitate) ---------- */

.callout {
  position: relative;
  display: block;
  padding: 26px 30px 26px 34px;
  border-radius: 4px 22px 22px 4px;
  background: var(--warm-tint);
  color: var(--ink-soft);
}
.callout::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: #d9a842; }
.callout--accent { background: var(--accent-tint); }
.callout--accent::before { background: var(--accent); }
.callout strong { color: var(--ink); }
.callout-icon { display: none; }
.callout > div { display: contents; }

/* ---------- Accordion (FAQ) ---------- */

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+';
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
  transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) ease;
}
.accordion details[open] summary::after { content: '–'; transform: rotate(180deg); background: var(--accent-tint); border-color: transparent; color: var(--accent-ink); }
.accordion .accordion-body { padding: 0 4px 24px; max-width: 640px; color: var(--muted); }

/* ---------- Pricing ---------- */

.price-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
}
.price-toggle button {
  padding: 9px 22px;
  border: 0;
  border-radius: var(--radius-full);
  background: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--t-fast) ease, background-color var(--t-ui) var(--ease-out), box-shadow var(--t-ui) ease;
}
.price-toggle button:active { transform: scale(0.98); }
.price-toggle button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.price-toggle .save-note { margin-left: 6px; font-size: 0.8rem; color: var(--success); font-weight: 600; }

.pricing-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.pricing-card--featured { border-color: rgba(124, 58, 237, 0.35); box-shadow: var(--shadow-md), 0 0 0 4px var(--accent-tint); position: relative; }
.pricing-card .plan-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 560; margin-bottom: 4px; }
.pricing-card .plan-for { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }
.pricing-card .plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.pricing-card .plan-price .amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 560; letter-spacing: -0.02em; }
.pricing-card .plan-price .period { color: var(--muted); font-size: 0.95rem; }
.pricing-card .plan-meta { min-height: 1.4em; font-size: 0.85rem; color: var(--success); margin-bottom: 22px; }
.pricing-card .check-list { font-size: 0.95rem; gap: 10px; margin-bottom: 26px; }
.pricing-card .btn { margin-top: auto; width: 100%; }
.plan-flag {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---------- Prose (legal, long-form) ---------- */

.prose { max-width: 720px; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 0.5em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 0.4em; }
.prose .updated { font-size: 0.9rem; color: var(--faint); margin-bottom: 2em; }

/* ---------- Footer ---------- */

.site-footer { background: #241d17; color: #cfc4b6; padding-block: clamp(56px, 7vw, 88px) 36px; }
.site-footer a { color: #cfc4b6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: #a3968a; font-size: 0.95rem; max-width: 300px; }
.footer-brand .nav-logo { color: #fff; margin-bottom: 14px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8d8175; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.85rem; color: #8d8175; }

/* ---------- CTA final ---------- */

.cta-band {
  position: relative;
  overflow: clip;
  background: #241d17;
  border-radius: 32px;
  padding: clamp(56px, 8vw, 104px) clamp(28px, 6vw, 88px);
  color: #f3ede3;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  bottom: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 780px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.22), rgba(233, 162, 59, 0.08) 55%, transparent 75%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band .h2 { color: #faf7f2; margin-bottom: 16px; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.cta-band .h2 em { font-style: italic; color: #c8b1f5; }
.cta-band p { color: rgba(243, 237, 227, 0.72); max-width: 480px; margin-inline: auto; margin-bottom: 34px; }
.cta-band .btn--primary { background: #faf7f2; color: #211b16; }
.cta-band .btn--primary::after { background: var(--accent-tint-strong); color: var(--accent-ink); }
.cta-band .btn--primary:hover { background: #fff; color: #000; }
.cta-band .btn--ghost { border-color: rgba(243, 237, 227, 0.25); color: #f3ede3; }
.cta-band .btn--ghost:hover { border-color: rgba(243, 237, 227, 0.6); background: rgba(255, 255, 255, 0.05); color: #fff; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Demo interactiv (Home) ---------- */

.demo-shell {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 980px) { .demo-shell { grid-template-columns: 1fr; } }

.demo-copy .step-list { margin-top: 10px; }
.demo-copy .step-list > li { padding-block: 18px; cursor: pointer; border-radius: var(--radius-sm); transition: background-color var(--t-ui) ease, opacity var(--t-ui) ease; padding-inline: 12px; opacity: 0.55; }
.demo-copy .step-list > li.is-active { opacity: 1; background: var(--surface); box-shadow: var(--shadow-sm); }
.demo-copy .step-list > li + li { border-top: 0; }

.demo-device {
  position: relative;
  max-width: 400px;
  margin-inline: auto;
  width: 100%;
  background: var(--surface);
  border-radius: 26px;
  /* double-bezel: hairline + tava exterioara + hairline + umbra difuza */
  box-shadow:
    0 0 0 1px rgba(33, 27, 22, 0.06),
    0 0 0 9px rgba(255, 255, 255, 0.55),
    0 0 0 10px rgba(33, 27, 22, 0.07),
    0 32px 80px -20px rgba(48, 35, 21, 0.25);
  overflow: hidden;
}
.demo-device-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.demo-device-top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.demo-stage { position: relative; min-height: 430px; }
.demo-scene {
  position: absolute;
  inset: 0;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out), visibility 0s linear var(--t-slow);
}
.demo-scene.is-active { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }

.demo-q { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; margin-bottom: 4px; }
.demo-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-choice {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: center;
  transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.demo-choice:active { transform: scale(0.97); }
.demo-choice.is-picked { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-ink); }
.demo-choice .emo { display: block; font-size: 1.35rem; margin-bottom: 4px; }

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.chat-msg.is-in { opacity: 1; transform: none; }
.chat-msg--ai { background: var(--bg-alt); color: var(--ink); border-bottom-left-radius: 6px; align-self: flex-start; }
.chat-msg--user { background: var(--accent); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.chat-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: typing 1.2s infinite ease-in-out; }
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.demo-protocol {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 18px;
}
.demo-protocol .name { font-weight: 600; margin-bottom: 2px; }
.demo-protocol .len { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.demo-progress { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.demo-progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width 2.6s linear; }

.demo-commit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.95rem;
}
.demo-commit .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; transition: background-color var(--t-ui) ease, border-color var(--t-ui) ease; }
.demo-commit.is-done .box { background: var(--accent); border-color: var(--accent); }
.demo-commit.is-done .box::after { content: '✓'; color: #fff; font-size: 0.8rem; font-weight: 700; }

.demo-restart { align-self: center; margin-top: auto; }

/* ---------- Reveal on scroll ---------- */

/* Reveal-urile sunt active DOAR cu JS (html.js) — fara JS totul e vizibil */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out), filter 800ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }
.js .reveal-group > * { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out), filter 800ms var(--ease-out); }
.js .reveal-group.is-visible > * { opacity: 1; transform: none; filter: blur(0); }
.reveal-group.is-visible > :nth-child(1) { transition-delay: 0ms; }
.reveal-group.is-visible > :nth-child(2) { transition-delay: 60ms; }
.reveal-group.is-visible > :nth-child(3) { transition-delay: 120ms; }
.reveal-group.is-visible > :nth-child(4) { transition-delay: 180ms; }
.reveal-group.is-visible > :nth-child(5) { transition-delay: 240ms; }
.reveal-group.is-visible > :nth-child(6) { transition-delay: 300ms; }

/* ---------- Mecanism (bucla) ---------- */

.loop-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 14px 18px; }
.loop-word { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 3.6rem); font-weight: 500; color: var(--ink); letter-spacing: -0.015em; }
.loop-word--em { font-style: italic; color: var(--accent-ink); }
.loop-sep { color: var(--faint); font-size: clamp(1.2rem, 2.6vw, 1.9rem); font-family: var(--font-body); font-weight: 400; }

/* ---------- Split editorial (statement stanga, randuri numerotate dreapta) ---------- */

.ed-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ed-split > .ed-side { position: sticky; top: 120px; }
@media (max-width: 900px) { .ed-split { grid-template-columns: 1fr; } .ed-split > .ed-side { position: static; } }

.ed-rows { list-style: none; margin: 0; padding: 0; counter-reset: edrow; }
.ed-rows > li { position: relative; padding: clamp(26px, 3.4vw, 40px) 0 clamp(26px, 3.4vw, 40px) clamp(64px, 7vw, 96px); border-top: 1px solid var(--line); counter-increment: edrow; }
.ed-rows > li:last-child { border-bottom: 1px solid var(--line); }
.ed-rows > li::before {
  content: counter(edrow, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: clamp(22px, 3vw, 34px);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 400;
  color: var(--faint);
}
.ed-rows h3, .ed-rows .h3 { margin-bottom: 8px; }
.ed-rows p { color: var(--muted); max-width: 46ch; }

/* ---------- Bento asimetric ---------- */

.bento { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-auto-rows: auto; gap: 18px; }
.bento > .card:first-child { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; position: relative; overflow: clip; background: #2a2119; border-color: transparent; }
.bento > .card:first-child .h3 { color: #faf7f2; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.bento > .card:first-child p { color: rgba(243, 237, 227, 0.65); }
.bento > .card:first-child .card-marker { color: #c8b1f5; }
.bento > .card:first-child .card-marker::after { background: rgba(255, 255, 255, 0.14); }
.bento > .card:first-child .link-arrow { color: #e0d3f9; }
.bento > .card:first-child::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.35), transparent 72%);
  pointer-events: none;
}
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .bento > .card:first-child { min-height: 300px; } }

/* ---------- Lista de planuri (randuri, nu carduri) ---------- */

.plan-rows { list-style: none; margin: 0; padding: 0; }
.plan-rows > li { border-top: 1px solid var(--line); }
.plan-rows > li:last-child { border-bottom: 1px solid var(--line); }
.plan-rows a {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr auto;
  gap: 18px 28px;
  align-items: baseline;
  padding: clamp(22px, 3vw, 32px) 6px;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--t-ui) ease, padding-left var(--t-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .plan-rows a:hover { background: rgba(255, 255, 255, 0.55); padding-left: 16px; }
  .plan-rows a:hover .plan-row-arrow { transform: translateX(4px); color: var(--accent-ink); }
}
.plan-rows .plan-row-name { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 500; }
.plan-rows .plan-row-desc { color: var(--muted); font-size: 0.98rem; max-width: 52ch; }
.plan-rows .plan-row-arrow { font-size: 1.2rem; color: var(--faint); transition: transform var(--t-ui) var(--ease-out), color var(--t-ui) ease; }
@media (max-width: 700px) { .plan-rows a { grid-template-columns: 1fr auto; } .plan-rows .plan-row-desc { grid-column: 1 / -1; } }

/* ---------- Este / Nu este (panou dublu contrastant) ---------- */

.truth-split { display: grid; grid-template-columns: 1fr 1fr; border-radius: 30px; overflow: clip; border: 1px solid rgba(33, 27, 22, 0.06); box-shadow: 0 24px 60px -24px rgba(48, 35, 21, 0.16); }
.truth-split > div { padding: clamp(30px, 4.4vw, 56px); }
.truth-split .truth-light { background: var(--surface); }
.truth-split .truth-dark { background: #241d17; color: #d8cec2; }
.truth-split .truth-dark .h3 { color: #faf7f2; }
.truth-split .truth-dark .x-list li { color: rgba(216, 206, 194, 0.85); }
.truth-split .truth-dark .x-list li::before { color: rgba(216, 206, 194, 0.4); }
.truth-split .truth-dark .accent-italic { color: #b39ae8; }
.truth-split .h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
@media (max-width: 800px) { .truth-split { grid-template-columns: 1fr; } }

/* ---------- Diverse ---------- */

.divider { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-64 { margin-top: 64px; }
.mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--surface); padding: 10px 18px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 12px; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-group > *, .chat-msg, .demo-scene { transition-duration: 1ms; transform: none; filter: none; }
  .chat-typing i { animation: none; }
  .demo-progress i { transition-duration: 1ms; }
  .btn:active, .demo-choice:active { transform: none; }
}
