/* ===========================================================
   REVO — Shared stylesheet
   ----------------------------------------------------------- */

:root {
  /* ===== Brand ink + accent family (purple → indigo → blue) =====
     Kept as SHARP ink accents (underline, slab, hairline, overline),
     never a wash over the page. */
  --primary: #11142b;                 /* near-black navy ink — text, dark slabs/buttons */
  --primary-soft: rgba(17, 20, 43, 0.055);
  --accent: #5b53ff;                  /* sharpened brand purple-indigo (was #6c63ff) */
  --accent-soft: rgba(91, 83, 255, 0.10);
  --accent-strong: #463cf0;           /* pressed/hover */
  --blue: #2ea6ff;
  --indigo: #5b6bff;
  --navy: #0e1230;
  /* Confident brand gradient — reserved for the ONE highlighted word,
     stat numerals, and accent slabs only. KEPT so existing .grad / stat
     gradient-text keeps rendering. */
  --grad-brand: linear-gradient(118deg, #7c5cff 0%, #5b6bff 46%, #2ea6ff 100%);
  --coral: #ff5a5f;
  --success: #16b364;
  --warning: #f5a524;

  /* ===== Surfaces — warm paper, LIGHT theme ===== */
  --bg: #f5f2ec;                      /* warm linen base (replaces cold #f8f9fa) */
  --bg-2: #fffdfa;                    /* soft ivory card/section (replaces stark #fff) */
  --bg-warm: #faf6ef;                 /* warmest alt-section paper */
  --bg-ink: #11142b;                  /* NEW — dark accent-slab surface */

  /* ===== Text — warm near-black ink ===== */
  --text: #14162e;
  --text-2: #54586f;
  --text-3: #9396ab;

  /* ===== Hairline borders tuned for paper + editorial rules ===== */
  --brd: rgba(17, 20, 43, 0.12);
  --brd-light: rgba(17, 20, 43, 0.06);
  --brd-strong: rgba(17, 20, 43, 0.22);   /* NEW — crisp editorial hairline rules */

  /* ===== Warm-tinted, crisp layered shadows (violet cast, not flat grey) ===== */
  --shadow-sm: 0 1px 1px rgba(48,32,80,.05), 0 2px 6px rgba(48,32,80,.05);
  --shadow-md: 0 2px 4px rgba(48,32,80,.06), 0 12px 28px rgba(48,32,80,.08);
  --shadow-lg: 0 4px 10px rgba(48,32,80,.08), 0 28px 56px rgba(40,28,72,.12);
  --shadow-edge: 0 0 0 1px var(--brd-light), var(--shadow-md);  /* NEW — crisp ring + lift */
  --shadow-accent: 0 8px 22px rgba(91,83,255,.26);              /* NEW — accent button lift */

  /* ===== Tighter, product-like radii (was soft/pill-heavy) ===== */
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;
  --container: 1200px;

  /* ===== NEW — type-system tokens (additive, referenced by base type) ===== */
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", Georgia, serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --tracking-eyebrow: .12em;
  --rule-ink: rgba(17, 20, 43, 0.85);     /* hairline rule under section heads */
  --paper-edge: #ece6da;                  /* warm divider tone for alt bands */
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Base typography — REVO Grotesk (Swiss-editorial) =====
   Body = neutral Hanken Grotesk. ALL headings + .brand opt into the
   characterful Bricolage Grotesque via --font-display; optical sizing
   makes large headings auto-tighten and gain swagger. */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16.5px;
  letter-spacing: -0.006em;
  font-feature-settings: "ss01", "cv01";   /* refined grotesque alternates */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Display face on every heading + brand — no HTML changes needed. */
h1, h2, h3, h4, h5, h6,
.brand,
.hero-title,
.section-head h2,
.cta-banner h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.07;
  text-wrap: balance;
}

/* Site sets font-weight:900 in several spots (.brand, .hero-title, stat
   numerals, checkmarks). Bricolage caps at 800 — clamp display headings to
   800 so the variable axis is honored instead of synthesizing fake-bold. */
h1, h2, .hero-title, .brand { font-weight: 800; }
h3 { font-weight: 700; }
h4, h5, h6 { font-weight: 700; line-height: 1.18; letter-spacing: -0.012em; }
.brand { letter-spacing: -0.03em; }

/* Headline scale with optical-size axis pinned high on big display sizes. */
h1, .hero-title { font-size: clamp(40px, 6vw, 74px); letter-spacing: -0.03em; line-height: 1.0; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.024em; font-variation-settings: "opsz" 64; }
h3 { font-size: clamp(20px, 2.4vw, 27px); letter-spacing: -0.014em; font-variation-settings: "opsz" 36; }

/* Links read as ink with a precise accent underline — a print flourish,
   not a glowing button. (Global a{} default left intact below.) */
.prose a, p a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(91,83,255,.4);
  transition: text-decoration-color .15s ease, color .15s ease;
}
.prose a:hover, p a:hover { text-decoration-color: var(--accent); }

/* Eyebrow / overline micro-type — Swiss-grid signature, tracked caps. */
.pill-badge, .eyebrow, .kicker {
  font-family: var(--font-body);
  letter-spacing: var(--tracking-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
}

/* Numerals: tabular + lining so prices/stats align in a Swiss column. */
.stat, .price, .amt, table, .tabular { font-feature-settings: "tnum", "lnum"; }

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
img { max-width: 100%; display: block; }

/* ===== Layout ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ===== Header / Nav ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(248,249,250,0.78);
  border-bottom: 1px solid var(--brd-light);
}
.topbar .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: -.01em; }
.brand .glyph {
  width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: white;
  display: grid; place-items: center; font-size: 16px;
  box-shadow: 0 6px 16px rgba(108,99,255,.35);
}
/* Real REVO logo mark (replaces the placeholder ✦ glyph). */
.brand .brand-mark {
  width: 30px; height: 30px; object-fit: contain; display: block; flex: 0 0 auto;
}
nav.top-nav { display: flex; gap: 22px; align-items: center; font-size: 14px; color: var(--text-2); font-weight: 500; }
nav.top-nav > a, nav.top-nav .dropdown-trigger {
  transition: color .15s ease; padding: 4px 0; position: relative;
  background: transparent; border: none; font-family: inherit; font-size: 14px;
  color: var(--text-2); font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
nav.top-nav > a:hover, nav.top-nav .dropdown-trigger:hover { color: var(--text); }
nav.top-nav > a[aria-current="page"] { color: var(--accent); font-weight: 700; }
nav.top-nav > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--accent);
}

/* Top-nav dropdowns (Pentru cine, Resurse) */
nav.top-nav .has-dropdown { position: relative; }
nav.top-nav .has-dropdown .caret { transition: transform .2s; }
nav.top-nav .has-dropdown:hover .caret,
nav.top-nav .has-dropdown:focus-within .caret { transform: rotate(180deg); }
nav.top-nav .has-dropdown::after {
  /* Invisible bridge so the dropdown doesn't snap shut while the cursor
     travels from the trigger to the panel. */
  content: ""; position: absolute; top: 100%; left: -10px; right: -10px; height: 14px;
}
nav.top-nav .dropdown {
  position: absolute; top: calc(100% + 14px); left: -10px;
  background: var(--bg-2); border-radius: var(--r-lg); padding: 8px;
  min-width: 240px; box-shadow: var(--shadow-md);
  border: 1px solid var(--brd-light);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 60; display: flex; flex-direction: column; gap: 2px;
}
nav.top-nav .has-dropdown:hover .dropdown,
nav.top-nav .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
nav.top-nav .dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 13.5px; color: var(--text);
}
nav.top-nav .dropdown a:hover { background: var(--accent-soft); color: var(--accent); }
nav.top-nav .dropdown a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
nav.top-nav .dropdown .icon { font-size: 16px; line-height: 1; }

/* Highlight the dropdown trigger when its containing dropdown holds the
   current page. JS-friendly hook via [data-active] on the wrapper. */
nav.top-nav .has-dropdown[data-active="true"] .dropdown-trigger {
  color: var(--accent); font-weight: 700;
}

/* Mobile drawer group headings */
.mobile-drawer .panel h6 {
  margin: 16px 0 2px; padding: 0 12px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-3); font-weight: 800;
}
.mobile-drawer .panel h6:first-of-type { margin-top: 8px; }

.cta-pill {
  padding: 10px 18px; background: var(--primary); color: white; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; transition: transform .15s, box-shadow .15s; display: inline-flex; gap: 6px; align-items: center;
}
.cta-pill:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.menu-toggle {
  display: none; background: transparent; border: none; padding: 8px; cursor: pointer;
  width: 40px; height: 40px; border-radius: 10px; transition: background .15s;
}
.menu-toggle:hover { background: var(--primary-soft); }
.menu-toggle svg { width: 22px; height: 22px; color: var(--text); }

@media (max-width: 860px) {
  nav.top-nav { display: none; }
  .topbar .cta-pill { display: none; }
  .menu-toggle { display: grid; place-items: center; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  visibility: hidden;
}
.mobile-drawer[aria-hidden="false"] { pointer-events: auto; visibility: visible; }
.mobile-drawer .scrim {
  position: absolute; inset: 0; background: rgba(20,20,40,.45);
  opacity: 0; transition: opacity .25s;
}
.mobile-drawer[aria-hidden="false"] .scrim { opacity: 1; }
.mobile-drawer .panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: 86%; max-width: 360px;
  background: var(--bg-2);
  /* Top + bottom padding includes safe areas (iOS notch / home indicator). */
  padding: 22px 22px calc(env(safe-area-inset-bottom, 0px) + 22px);
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: -10px 0 40px rgba(20,20,40,.18);
  /* Make the drawer scrollable when the menu has more items than fit on screen. */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-drawer[aria-hidden="false"] .panel { transform: translateX(0); }
.mobile-drawer .panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-drawer .panel a {
  padding: 14px 12px; border-radius: var(--r-md); font-weight: 600; color: var(--text);
}
.mobile-drawer .panel a:hover { background: var(--primary-soft); }
.mobile-drawer .panel a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
/* The drawer's generic <a> rule sets dark text — but the "Începe gratuit"
   pill uses a dark background, so we override to keep its text white. */
.mobile-drawer .panel a.cta-pill {
  margin-top: 12px;
  justify-content: center;
  color: white;
  background: var(--primary);
  transition: background .35s ease, color .35s ease, transform .15s ease;
}
.mobile-drawer .panel a.cta-pill:hover {
  background: var(--accent);
  color: white;
}
.mobile-drawer .close-btn {
  background: transparent; border: none; cursor: pointer; padding: 8px; border-radius: 10px;
}
.mobile-drawer .close-btn:hover { background: var(--primary-soft); }

/* ===== Page hero ===== */
.page-hero { padding: 96px 0 48px; text-align: center; position: relative; overflow: hidden; }
/* Static gradient kept as fallback before the animated mesh is injected by
   JS, and as the only background when the user prefers reduced motion. */
.page-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 520px;
  background:
    radial-gradient(900px 400px at 30% 20%, rgba(124,92,255,.20), transparent 60%),
    radial-gradient(700px 320px at 80% 0%, rgba(46,166,255,.16), transparent 60%);
  z-index: -2; filter: blur(2px);
}

/* ===== Animated mesh gradient (injected into every .page-hero) =====
   The mask-image fade at the bottom prevents the hero color from ending
   in a hard line. Combined with the lower blob opacity, the transition
   into the next section feels continuous. */
.mesh-bg {
  position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 98%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 98%);
}
.mesh-bg .blob {
  position: absolute; border-radius: 50%; filter: blur(90px);
  opacity: .18; will-change: transform;
}
.mesh-bg .blob.b1 { width: 520px; height: 520px; background: #7c5cff; top: -8%; left: -2%;
  animation: meshFloat1 22s ease-in-out infinite; }
.mesh-bg .blob.b2 { width: 620px; height: 620px; background: #5b6bff; top: -12%; right: -8%;
  animation: meshFloat2 26s ease-in-out infinite; }
.mesh-bg .blob.b3 { width: 420px; height: 420px; background: #2ea6ff; bottom: -20%; left: 30%;
  animation: meshFloat3 30s ease-in-out infinite; }

/* ===== Constellation canvas (injected into every .page-hero) =====
   Tech / network vibe — sits between the mesh blobs and the content. */
.constellation {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  mask-image: linear-gradient(to bottom, black 10%, black 60%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, black 10%, black 60%, transparent 95%);
}
/* Lift hero content above mesh + constellation */
.page-hero > .container { position: relative; z-index: 1; }
@keyframes meshFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(140px, 90px) scale(1.15); }
  66% { transform: translate(-60px, 60px) scale(.92); }
}
@keyframes meshFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-130px, 70px) scale(.88); }
}
@keyframes meshFloat3 {
  0%,100% { transform: translate(0,0) scale(1); }
  40% { transform: translate(110px, -90px) scale(1.18); }
  70% { transform: translate(-80px, -40px) scale(.95); }
}

/* ===== Cursor-following spotlight on dark surfaces ===== */
.cursor-spotlight { position: relative; isolation: isolate; }
.cursor-spotlight > .spotlight {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,.18), transparent 50%);
  mix-blend-mode: screen; z-index: 3;
  opacity: 0; transition: opacity .35s ease;
}
.cursor-spotlight:hover > .spotlight { opacity: 1; }

/* ===== Dot grid background (injected into selected sections) ===== */
.dot-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(108,99,255,.20) 1.2px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 90%);
  animation: gridDrift 24s linear infinite;
  opacity: .9;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 28px 28px; }
}
/* When dot-grid is on a dark surface (cta-banner, summary), invert color. */
.cta-banner .dot-grid,
.summary .dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,.12) 1.2px, transparent 1.4px);
}

/* The stats strip needs the dot-grid behind its content; ensure cells stack on top. */
.stats { position: relative; isolation: isolate; }
.stats > .stat { position: relative; z-index: 1; }

/* ===== Magnetic + glowing CTA buttons ===== */
.btn { will-change: transform; }
.btn-accent.magnetic {
  position: relative;
  animation: ctaPulse 2.6s ease-in-out infinite;
}
.btn-primary.magnetic {
  position: relative;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108,99,255,.35), 0 8px 20px rgba(108,99,255,.18); }
  50%      { box-shadow: 0 0 32px 6px rgba(108,99,255,.35), 0 12px 28px rgba(108,99,255,.28); }
}
/* Override hover so the magnetic transform doesn't fight our :hover translateY. */
.btn-accent.magnetic:hover,
.btn-primary.magnetic:hover {
  animation: none;
}

/* ===== Floating mock devices ===== */
.split-visual .mock {
  animation: gentleBob 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes gentleBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ===== Scroll progress bar (top of viewport) ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, #6c63ff, #ff6b6b);
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}

/* ===== Reduced motion: kill all decorative animation ===== */
@media (prefers-reduced-motion: reduce) {
  .mesh-bg .blob,
  .dot-grid,
  .btn-accent.magnetic,
  .split-visual .mock,
  h1.hero-title .grad,
  .scroll-progress {
    animation: none !important;
    transition: none !important;
  }
  .mesh-bg, .constellation, .scroll-progress { display: none; }
  .cursor-spotlight > .spotlight { display: none; }
  .card::after { display: none; }
  .card { transform-style: flat; }
}
.pill-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
}
.pill-badge .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(108,99,255,.18);
}
.pill-badge.coral { background: rgba(255,107,107,.10); color: var(--coral); }
.pill-badge.coral .dot { background: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,107,.18); }
.pill-badge.green { background: rgba(46,204,113,.10); color: var(--success); }
.pill-badge.green .dot { background: var(--success); box-shadow: 0 0 0 4px rgba(46,204,113,.18); }

h1.hero-title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900; letter-spacing: -.035em; line-height: 1.02;
  margin: 22px 0 16px;
}
h1.hero-title .grad {
  position: relative;
  background: linear-gradient(135deg, #7c5cff 0%, #2ea6ff 50%, #7c5cff 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 9s ease-in-out infinite;
}
/* Sharp brand-gradient underline bar under the highlighted word — ink, not glow. */
h1.hero-title .grad::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em;
  height: 4px; border-radius: 2px; background: var(--grad-brand);
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero-sub { max-width: 640px; margin: 0 auto; color: var(--text-2); font-size: 18px; }

.hero-actions { display: inline-flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 14px 22px; border-radius: var(--r-lg); border: none; cursor: pointer;
  font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .15s, background .15s;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(108,99,255,.32); background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--brd); }
.btn-ghost:hover { border-color: var(--text); }

/* ===== Sections ===== */
section.block { padding: 80px 0; }
section.block.alt { background: var(--bg-2); border-top: 1px solid var(--brd-light); border-bottom: 1px solid var(--brd-light); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.025em; margin: 12px 0 8px; line-height: 1.1; }
.section-head h2::after { content: ""; display: block; width: 46px; height: 3px; margin: 16px auto 0; background: var(--grad-brand); border-radius: 2px; }
.section-head p { color: var(--text-2); max-width: 600px; margin: 0 auto; }

/* ===== Card grids ===== */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  padding: 24px; background: var(--bg-2); border-radius: var(--r-lg);
  border: 1px solid var(--brd-light); box-shadow: var(--shadow-edge);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .18s, border-color .2s;
  position: relative; isolation: isolate;
  transform-style: preserve-3d; will-change: transform;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(91,83,255,.28), var(--shadow-md);
  border-color: rgba(91,83,255,.28);
}
/* Cursor-following soft glow on cards (CSS vars updated by JS). */
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(108,99,255,.10), transparent 55%);
  opacity: 0; transition: opacity .25s ease;
  z-index: -1;
}
.card:hover::after { opacity: 1; }
.card.coral::after { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,107,107,.10), transparent 55%); }
.card.green::after { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(46,204,113,.12), transparent 55%); }
.card.amber::after { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,181,71,.14), transparent 55%); }
/* Card children should sit above the glow layer. */
.card > * { position: relative; z-index: 1; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.card.coral .icon { background: rgba(255,107,107,.12); color: var(--coral); }
.card.green .icon { background: rgba(46,204,113,.12); color: var(--success); }
.card.amber .icon { background: rgba(255,181,71,.14); color: var(--warning); }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--text-2); font-size: 13.5px; }

/* ===== Two-column split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
}
.split-text h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.025em; margin: 14px 0 14px; line-height: 1.1; }
.split-text p { color: var(--text-2); font-size: 16px; margin: 0 0 14px; }
.split-text ul { padding: 0; margin: 18px 0 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.split-text ul li {
  display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 14.5px;
}
.split-text ul li::before {
  content: "✓"; color: var(--success); font-weight: 900; flex-shrink: 0;
  width: 22px; height: 22px; background: rgba(46,204,113,.12); border-radius: 999px;
  display: grid; place-items: center; font-size: 12px;
}
.split-visual {
  background: linear-gradient(135deg, rgba(108,99,255,.08), rgba(255,107,107,.06));
  border-radius: var(--r-xl); padding: 40px; min-height: 320px;
  display: grid; place-items: center; border: 1px solid var(--brd-light);
}
.split-visual .mock {
  /* Frosted glass so the rotating wireframe behind it reads as soft motion. */
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(4px) saturate(1.2);
  backdrop-filter: blur(4px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 22px; width: 100%; max-width: 360px;
}

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
details {
  background: var(--bg-2); border-radius: var(--r-md); padding: 18px 22px; margin-bottom: 10px;
  border: 1px solid var(--brd-light); cursor: pointer; transition: box-shadow .18s;
}
details[open] { box-shadow: var(--shadow-sm); }
summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 15px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; color: var(--text-3); font-weight: 400; transition: transform .2s; }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* ===== Roadmap timeline ===== */
.timeline { display: flex; flex-direction: column; gap: 32px; }
.tl-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start;
  padding: 28px; background: var(--bg-2); border-radius: var(--r-xl);
  border: 1px solid var(--brd-light); position: relative;
}
@media (max-width: 760px) { .tl-row { grid-template-columns: 1fr; gap: 16px; } }
.tl-period {
  display: flex; flex-direction: column; gap: 6px;
}
.tl-period .when { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.tl-period .tag {
  display: inline-flex; align-self: flex-start; padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.tl-period .tag.live { background: rgba(46,204,113,.14); color: var(--success); }
.tl-period .tag.building { background: rgba(108,99,255,.14); color: var(--accent); }
.tl-period .tag.planned { background: rgba(255,181,71,.16); color: var(--warning); }
.tl-period .tag.future { background: var(--primary-soft); color: var(--text-2); }
.tl-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 540px) { .tl-items { grid-template-columns: 1fr; } }
.tl-item {
  padding: 14px 16px; background: var(--bg-warm); border-radius: var(--r-md);
  border: 1px solid var(--brd-light);
}
.tl-item h4 { margin: 0 0 4px; font-size: 14.5px; }
.tl-item p { margin: 0; color: var(--text-2); font-size: 13px; }

/* ===== Forms ===== */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form label { font-size: 13px; font-weight: 700; color: var(--text); }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--brd); background: var(--bg-2); font-family: inherit; font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s; color: var(--text);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.form textarea { resize: vertical; min-height: 140px; }
.form .hp { position: absolute; left: -10000px; opacity: 0; pointer-events: none; }
.form .form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-status {
  padding: 14px 16px; border-radius: var(--r-md); font-size: 14px; font-weight: 600;
  display: none; margin-top: 8px;
}
.form-status.ok { display: block; background: rgba(46,204,113,.10); color: var(--success); }
.form-status.err { display: block; background: rgba(255,107,107,.10); color: var(--coral); }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: var(--bg-2); border-radius: var(--r-xl); border: 1px solid var(--brd);
  padding: 18px 22px; box-shadow: var(--shadow-lg); max-width: 880px; margin: 0 auto;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  transform: translateY(120%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.cookie-banner.shown { transform: translateY(0); }
.cookie-banner .cb-text { flex: 1; min-width: 240px; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.cookie-banner .cb-text strong { color: var(--text); }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-banner .cb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner button {
  padding: 10px 16px; border-radius: var(--r-pill); border: none; font-weight: 700; font-size: 13px;
  cursor: pointer; font-family: inherit;
}
.cookie-banner .cb-accept { background: var(--primary); color: white; }
.cookie-banner .cb-accept:hover { background: var(--accent-strong); background: var(--accent); }
.cookie-banner .cb-reject { background: var(--bg-warm); color: var(--text); border: 1px solid var(--brd); }
.cookie-banner .cb-reject:hover { background: var(--primary-soft); }
.cookie-banner .cb-prefs { background: transparent; color: var(--text-2); }
.cookie-banner .cb-prefs:hover { color: var(--text); }
@media (max-width: 540px) {
  .cookie-banner { padding: 16px; }
  .cookie-banner .cb-actions { width: 100%; }
  .cookie-banner .cb-actions button { flex: 1; }
}

/* Cookie preferences modal */
.cookie-modal { position: fixed; inset: 0; z-index: 210; display: none; padding: 24px; align-items: center; justify-content: center; }
.cookie-modal[aria-hidden="false"] { display: flex; }
.cookie-modal .scrim { position: absolute; inset: 0; background: rgba(20,20,40,.55); }
.cookie-modal .dialog {
  position: relative; background: var(--bg-2); border-radius: var(--r-xl); padding: 28px;
  max-width: 520px; width: 100%; box-shadow: var(--shadow-lg);
}
.cookie-modal h3 { margin: 0 0 6px; font-size: 20px; }
.cookie-modal p.lede { margin: 0 0 18px; color: var(--text-2); font-size: 14px; }
.cookie-modal .toggle-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--brd-light);
}
.cookie-modal .toggle-row h4 { margin: 0 0 4px; font-size: 14.5px; }
.cookie-modal .toggle-row p { margin: 0; color: var(--text-2); font-size: 13px; }
.cookie-modal .toggle-row .chip {
  font-size: 11px; padding: 3px 8px; border-radius: var(--r-pill); background: var(--accent-soft);
  color: var(--accent); font-weight: 800; margin-left: 6px;
}
.cookie-modal .switch {
  position: relative; width: 44px; height: 26px; flex-shrink: 0;
}
.cookie-modal .switch input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.cookie-modal .switch .track {
  position: absolute; inset: 0; background: var(--brd); border-radius: 999px; transition: background .2s; pointer-events: none;
}
.cookie-modal .switch .knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px;
  background: white; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; pointer-events: none;
}
.cookie-modal .switch input:checked ~ .track { background: var(--accent); }
.cookie-modal .switch input:checked ~ .knob { transform: translateX(18px); }
.cookie-modal .switch input:disabled ~ .track { background: var(--success); }
.cookie-modal .actions { display: flex; gap: 8px; margin-top: 18px; justify-content: flex-end; }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--primary); color: white; padding: 56px 0 28px;
}
footer.site-footer .grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px;
}
@media (max-width: 1100px) {
  footer.site-footer .grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  footer.site-footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  footer.site-footer .grid { grid-template-columns: 1fr; }
}
footer.site-footer .brand .glyph { background: var(--accent); }
footer.site-footer .brand { color: white; }
footer.site-footer h5 {
  margin: 0 0 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.6); font-weight: 700;
}
footer.site-footer .col p {
  color: rgba(255,255,255,.65); font-size: 13.5px; line-height: 1.6; margin: 12px 0 16px;
}
footer.site-footer .col a {
  color: rgba(255,255,255,.78); font-size: 14px; display: block; padding: 5px 0;
  transition: color .15s;
}
footer.site-footer .col a:hover { color: white; }
footer.site-footer .socials { display: flex; gap: 10px; margin-top: 14px; }
footer.site-footer .socials a {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.07);
  display: grid; place-items: center; padding: 0; transition: background .15s;
}
footer.site-footer .socials a:hover { background: rgba(255,255,255,.14); }
footer.site-footer .socials svg { width: 16px; height: 16px; color: white; }
footer.site-footer .meta {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12.5px; color: rgba(255,255,255,.5);
}
footer.site-footer .meta a { color: rgba(255,255,255,.7); }
footer.site-footer .meta a:hover { color: white; text-decoration: underline; }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== "Folosit de" logo strip ===== */
.logo-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px;
  align-items: center; padding: 24px 0;
  opacity: .65; filter: grayscale(1);
  transition: opacity .25s, filter .25s;
}
.logo-strip:hover { opacity: 1; filter: grayscale(0); }
@media (max-width: 980px) { .logo-strip { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.logo-placeholder {
  height: 44px; display: grid; place-items: center;
  background: var(--bg-warm); border: 1px dashed var(--brd);
  border-radius: var(--r-md); color: var(--text-3); font-weight: 800;
  font-size: 13px; letter-spacing: .04em;
}

/* ===== How-it-works steps ===== */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step-card {
  position: relative; padding: 28px 22px; background: var(--bg-2);
  border: 1px solid var(--brd-light); border-radius: var(--r-lg);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.step-card .num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--accent); color: white;
  font-weight: 900; font-size: 14px; margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(108,99,255,.32);
}
.step-card h3 { margin: 0 0 6px; font-size: 16px; }
.step-card p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }

/* ===== Business-type selector tabs ===== */
.biz-tabs {
  display: inline-flex; padding: 6px; gap: 4px; background: var(--bg-2);
  border-radius: var(--r-pill); border: 1px solid var(--brd);
  box-shadow: var(--shadow-sm); margin-bottom: 28px;
}
.biz-tabs button {
  border: none; background: transparent; padding: 10px 22px;
  border-radius: var(--r-pill); font-weight: 700; font-size: 14px;
  color: var(--text-2); cursor: pointer; font-family: inherit;
  display: inline-flex; gap: 8px; align-items: center;
  transition: color .2s, background .2s;
}
.biz-tabs button[aria-selected="true"] {
  background: var(--primary); color: white;
}
.biz-panel { display: none; }
.biz-panel[aria-hidden="false"] { display: block; }

/* ===== Înainte vs cu REVO comparison ===== */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare-col {
  padding: 28px; border-radius: var(--r-xl); border: 1px solid var(--brd-light);
}
.compare-col.before { background: var(--bg-2); }
.compare-col.after  { background: linear-gradient(135deg, rgba(108,99,255,.06), rgba(255,107,107,.04)); border-color: rgba(108,99,255,.2); }
.compare-col h3 { margin: 0 0 4px; font-size: 18px; }
.compare-col p.lede { margin: 0 0 18px; color: var(--text-2); font-size: 13px; }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.compare-col ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.compare-col.before ul li::before {
  content: "✕"; color: var(--coral); flex-shrink: 0; font-weight: 900;
  width: 22px; height: 22px; background: rgba(255,107,107,.12);
  border-radius: 999px; display: grid; place-items: center; font-size: 12px;
}
.compare-col.after ul li::before {
  content: "✓"; color: var(--success); flex-shrink: 0; font-weight: 900;
  width: 22px; height: 22px; background: rgba(46,204,113,.14);
  border-radius: 999px; display: grid; place-items: center; font-size: 12px;
}

/* ===== Pricing teaser ===== */
.pricing-teaser {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
  padding: 40px; background: var(--bg-2); border-radius: var(--r-xl);
  border: 1px solid var(--brd-light); box-shadow: var(--shadow-sm);
}
@media (max-width: 760px) { .pricing-teaser { grid-template-columns: 1fr; padding: 28px; } }
.pricing-teaser .price-row {
  display: flex; align-items: baseline; gap: 6px; margin: 6px 0;
}
.pricing-teaser .price-row .from { font-size: 14px; color: var(--text-2); font-weight: 600; }
.pricing-teaser .price-row .euro { font-size: 22px; font-weight: 800; color: var(--text); }
.pricing-teaser .price-row .amt {
  font-size: 56px; font-weight: 900; letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(135deg, #6c63ff, #ff6b6b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pricing-teaser .price-row .per { color: var(--text-3); font-size: 14px; font-weight: 600; }
.pricing-teaser .max-note { color: var(--text-3); font-size: 13px; margin: 4px 0 18px; }

/* ===== Testimonials ===== */
.testimonial {
  position: relative; padding: 28px; background: var(--bg-2);
  border: 1px solid var(--brd-light); border-radius: var(--r-lg);
  transition: transform .18s, box-shadow .18s;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial .quote-mark {
  font-size: 56px; line-height: 1; color: var(--accent); opacity: .25;
  font-family: Georgia, serif; position: absolute; top: 14px; right: 22px;
}
.testimonial blockquote { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--text); font-style: normal; }
.testimonial .author { display: flex; gap: 12px; align-items: center; }
.testimonial .author-pic {
  width: 40px; height: 40px; border-radius: 999px;
  background: linear-gradient(135deg, #6c63ff, #ff6b6b);
  color: white; display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.testimonial .author-name { font-weight: 800; font-size: 14px; }
.testimonial .author-role { color: var(--text-2); font-size: 12.5px; }
.testimonial .pending {
  display: inline-block; padding: 3px 10px; background: var(--bg-warm);
  border: 1px dashed var(--brd); border-radius: 999px; font-size: 11px;
  color: var(--text-3); font-weight: 700; margin-bottom: 10px; letter-spacing: .04em;
}

/* ===== Feature showcase ===== */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } }
.showcase-tabs {
  display: flex; flex-direction: column; gap: 10px; margin-top: 24px;
}
.showcase-tab {
  text-align: left; padding: 16px 18px; border: 1.5px solid var(--brd-light);
  background: var(--bg-2); border-radius: var(--r-md); cursor: pointer;
  font-family: inherit; transition: all .18s;
}
.showcase-tab:hover { border-color: rgba(108,99,255,.4); }
.showcase-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(108,99,255,.06), rgba(108,99,255,.02));
}
.showcase-tab strong { display: block; font-size: 14.5px; margin-bottom: 2px; color: var(--text); }
.showcase-tab span { font-size: 13px; color: var(--text-2); }
.showcase-stage {
  background: linear-gradient(135deg, rgba(108,99,255,.10), rgba(255,107,107,.06));
  border-radius: var(--r-xl); padding: 40px; min-height: 360px;
  display: grid; place-items: center; border: 1px solid var(--brd-light);
}
.showcase-panel { display: none; width: 100%; max-width: 380px; }
.showcase-panel[aria-hidden="false"] { display: block; }

/* ===== Newsletter signup ===== */
.newsletter {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px;
  align-items: center; padding: 48px;
  background: linear-gradient(135deg, rgba(108,99,255,.08), rgba(255,107,107,.06));
  border: 1px solid var(--brd-light); border-radius: var(--r-xl);
}
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; padding: 32px; } }
.newsletter h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.015em; }
.newsletter p { margin: 0; color: var(--text-2); font-size: 14px; }
.newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input[type="email"] {
  flex: 1 1 200px; padding: 14px 16px; border-radius: var(--r-md);
  border: 1.5px solid var(--brd); background: var(--bg-2); font-family: inherit;
  font-size: 14.5px; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.newsletter input[type="email"]:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.newsletter .nl-status {
  display: none; margin-top: 10px; padding: 10px 14px; border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 600;
}
.newsletter .nl-status.ok { display: block; background: rgba(46,204,113,.12); color: var(--success); }
.newsletter .nl-status.err { display: block; background: rgba(255,107,107,.12); color: var(--coral); }

/* ===== App Store / Google Play badges ===== */
.store-badges {
  display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px; background: var(--primary); color: white;
  border-radius: var(--r-md); text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid rgba(255,255,255,.06);
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20,20,40,.18);
}
.store-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-badge .stack { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .stack small {
  font-size: 10px; opacity: .8; text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
}
.store-badge .stack strong { font-size: 15px; font-weight: 800; letter-spacing: -.005em; }

/* ===== Stats strip ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--bg-2); border-radius: var(--r-xl); border: 1px solid var(--brd-light);
  overflow: hidden;
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 28px 22px; border-right: 1px solid var(--brd-light); }
.stat:last-child { border-right: none; }
@media (max-width: 760px) {
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--brd-light); }
}
.stat .num {
  font-size: 36px; font-weight: 900; letter-spacing: -.02em; line-height: 1;
  background: linear-gradient(135deg, #7c5cff, #2ea6ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { color: var(--text-2); font-size: 13px; margin-top: 6px; }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--primary); color: white; border-radius: var(--r-xl);
  padding: 56px 32px; text-align: center; position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 12px 12px 0 rgba(91,83,255,.16);
}
.cta-banner::before {
  content: ""; position: absolute; inset: -50% -20% auto auto; width: 360px; height: 360px;
  border-radius: 50%; background: radial-gradient(circle, rgba(108,99,255,.55), transparent 70%);
  filter: blur(20px); z-index: -1;
}
.cta-banner::after {
  content: ""; position: absolute; inset: auto auto -40% -20%; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,107,107,.45), transparent 70%);
  filter: blur(20px); z-index: -1;
}
.cta-banner h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; letter-spacing: -.02em; }
.cta-banner p { color: rgba(255,255,255,.75); margin: 0 0 26px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .actions { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cta-banner .btn-primary { background: white; color: var(--primary); }
.cta-banner .btn-primary:hover { box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.cta-banner .btn-ghost { color: white; border-color: rgba(255,255,255,.2); }
.cta-banner .btn-ghost:hover { border-color: white; }

/* ===== Legal pages ===== */
.legal article { background: var(--bg-2); border-radius: var(--r-lg); padding: 40px; border: 1px solid var(--brd-light); }
.legal h2 { font-size: 22px; margin: 32px 0 12px; letter-spacing: -.015em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 16px; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
.legal ul, .legal ol { padding-left: 22px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13.5px; }
.legal th, .legal td { padding: 12px; border: 1px solid var(--brd); text-align: left; vertical-align: top; }
.legal th { background: var(--bg-warm); font-size: 13px; font-weight: 700; color: var(--text); }
.legal .updated {
  display: inline-block; padding: 6px 12px; background: var(--bg-warm); border: 1px solid var(--brd);
  border-radius: var(--r-pill); font-size: 12px; color: var(--text-2); font-weight: 600; margin-bottom: 24px;
}

/* ===== Helpers ===== */
.text-center { text-align: center; }
.mt-md { margin-top: 32px; } .mt-lg { margin-top: 48px; } .mt-xl { margin-top: 64px; }
.mb-md { margin-bottom: 32px; } .mb-lg { margin-bottom: 48px; }

/* three.js hero ambient dots — radially masked so the centre (headline +
   sub + CTAs) stays clear and readable; dots only show toward the edges. */
.hero-webgl {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(125% 80% at 50% 42%, transparent 0%, transparent 36%, #000 72%);
  mask-image: radial-gradient(125% 80% at 50% 42%, transparent 0%, transparent 36%, #000 72%);
}

/* CTA banner line-wave — sits behind the (lifted) text, faded top→solid. */
.cta-banner > canvas.fx-wave {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 100%);
}
.cta-banner > h2,
.cta-banner > p,
.cta-banner > .actions { position: relative; z-index: 1; }

/* Loyalty-section wireframe shape — drifts behind the lifted mockup card. */
.split-visual { position: relative; }
.split-visual > canvas.fx-shape {
  position: absolute; inset: -8% -6%; z-index: 0; pointer-events: none; opacity: .9;
}
.split-visual .mock { position: relative; z-index: 1; }

/* ===== CSS-only atmosphere for a LIGHT premium paper surface =====
   1) A precise Swiss blueprint hairline grid that anchors the layout
   2) A warm brand-tinted tonal lift toward the top corners (subtle, NOT a wash)
   3) A fine fractal-noise grain so large light areas read as printed stock.
   All fixed + behind everything; no image requests. */
body {
  position: relative;
  background-color: var(--bg);
  background-image:
    /* hairline engineered grid */
    linear-gradient(to right, rgba(17,20,43,.026) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,20,43,.026) 1px, transparent 1px),
    /* warm brand-tinted corner lift — a hint of light, not a purple wash */
    radial-gradient(1100px 560px at 10% -8%, rgba(91,83,255,.055), transparent 60%),
    radial-gradient(820px 480px at 100% 0%, rgba(46,166,255,.045), transparent 60%);
  background-size: 64px 64px, 64px 64px, 100% 100%, 100% 100%;
  background-attachment: fixed, fixed, fixed, fixed;
}

/* Fine film grain over the whole page (inline SVG turbulence, ~no weight). */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Alt "band" sections read as a different paper stock with hairline rules. */
section.block.alt {
  background: var(--bg-warm);
  border-top: 1px solid var(--paper-edge);
  border-bottom: 1px solid var(--paper-edge);
}

@media (prefers-reduced-motion: reduce) {
  body { background-attachment: scroll, scroll, scroll, scroll; }
}
