/* ═══════════════════════════════════════════════════════════
   FINANZAS EMPRESARIALES — Apex Pulse v2
   Dark cinematic · lime neon · glass bento
   ═══════════════════════════════════════════════════════════ */

:root {
  --void: #030712;
  --surface: #0F172A;
  --surface-2: #1E293B;
  --lime: #A3E635;
  --lime-dim: #84CC16;
  --sky: #38BDF8;
  --sky-dim: #0EA5E9;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --muted-dim: #64748B;
  --border: rgba(148, 163, 184, 0.12);
  --border-glow: rgba(163, 230, 53, 0.35);
  --glow-lime: 0 0 40px rgba(163, 230, 53, 0.25);
  --glow-sky: 0 0 40px rgba(56, 189, 248, 0.2);
  /* aliases for legal.css */
  --forest: var(--lime);
  --copper: var(--sky);
  --copper-light: var(--lime);
  --paper: #F1F5F9;
  --ink: #0F172A;
  --white: #fff;
  --bg: var(--void);
  --bg-alt: var(--surface);
  --text-dark: var(--ink);
  --muted-light: #64748B;
  --border-light: #E2E8F0;
  --font: system-ui, -apple-system, sans-serif;
  --font-head: Georgia, serif;
  --header-h: 72px;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

html[data-femp-fonts] {
  --font: "Manrope", system-ui, sans-serif;
  --font-head: "Syne", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  font-family: var(--font); background: var(--void); color: var(--text);
  line-height: 1.6; overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.25s, border-color 0.25s, transform 0.25s; }
.container, .wrap { width: min(1200px, 92%); margin-inline: auto; }

/* grain overlay */
.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 9998; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── HEADER ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled .site-header__bar,
.site-header.is-scrolled .site-header__inner {
  background: rgba(3, 7, 18, 0.88);
  border-color: var(--border);
  backdrop-filter: blur(20px);
}
.site-header__bar,
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid transparent;
}
body.legal .site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; transform: none; }
body.legal .site-header__inner { width: min(1200px, 92%); margin-inline: auto; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; }
.logo__glyph {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--lime), var(--sky));
  color: var(--void); font-weight: 800; font-size: 0.75rem; border-radius: 12px;
  box-shadow: var(--glow-lime);
}
.logo__glyph.sm { width: 34px; height: 34px; font-size: 0.65rem; border-radius: 10px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.logo__text span { color: var(--text); font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.site-nav a:not(.btn):hover { color: var(--lime); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); cursor: pointer; position: relative;
}
.menu-toggle i {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text);
  border-radius: 2px; transition: 0.35s var(--ease);
}
.menu-toggle i:nth-child(1) { top: 14px; }
.menu-toggle i:nth-child(2) { top: 21px; }
.menu-toggle i:nth-child(3) { top: 28px; }
.menu-toggle.is-open i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle.is-open i:nth-child(2) { opacity: 0; }
.menu-toggle.is-open i:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.7rem 1.35rem; font-family: var(--font); font-size: 0.8125rem; font-weight: 700;
  border-radius: 999px; border: none; cursor: pointer; transition: all 0.35s var(--ease); white-space: nowrap;
}
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.75rem; }
.btn-xl { padding: 0.95rem 1.75rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn-glow {
  background: linear-gradient(135deg, var(--lime), var(--lime-dim));
  color: var(--void); box-shadow: var(--glow-lime);
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(163, 230, 53, 0.45); color: var(--void); }
.btn-ghost {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-primary { background: linear-gradient(135deg, var(--lime), var(--lime-dim)); color: var(--void); box-shadow: var(--glow-lime); }
.btn-line { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-fill { background: var(--lime); color: var(--void); }

/* ─── HERO ─── */
.apex-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem; overflow: hidden;
}
.apex-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.apex-hero__aurora {
  position: absolute; inset: -40%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(163, 230, 53, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 35% at 80% 60%, rgba(56, 189, 248, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(99, 102, 241, 0.08), transparent 60%);
  animation: aurora 14s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, -2%) scale(1.05); }
}
.apex-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

.apex-hero__layout {
  position: relative; display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
}
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem;
  background: rgba(163, 230, 53, 0.1); border: 1px solid rgba(163, 230, 53, 0.25); color: var(--lime);
}
.pill--live .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 12px var(--lime); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.apex-hero__disclaimer { font-size: 0.75rem; color: var(--muted-dim); margin-bottom: 1.25rem; }
.apex-hero__disclaimer a { color: var(--sky); text-decoration: underline; }

.apex-hero__title {
  font-family: var(--font-head); font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 1.25rem;
}
.grad {
  background: linear-gradient(135deg, var(--lime) 0%, var(--sky) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.apex-hero__lead { font-size: 1.0625rem; color: var(--muted); max-width: 520px; margin-bottom: 2rem; line-height: 1.7; }
.apex-hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.5rem; }

.apex-hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding-top: 1.75rem; border-top: 1px solid var(--border);
}
.apex-hero__stats strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--lime); }
.apex-hero__stats span { font-size: 0.68rem; color: var(--muted-dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* dashboard mockup */
.dash-stack { position: relative; padding: 2rem; }
.dash-card {
  background: rgba(15, 23, 42, 0.85); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.dash-card--main { padding: 1.5rem; }
.dash-card__head { display: flex; justify-content: space-between; margin-bottom: 1.25rem; font-size: 0.8125rem; color: var(--muted); }
.dash-card__head em { color: var(--lime); font-style: normal; font-weight: 700; }
.dash-bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 100px; margin-bottom: 0.75rem; }
.dash-bars i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--lime), rgba(163,230,53,0.2)); border-radius: 6px 6px 2px 2px; }
.dash-card--main p { font-size: 0.72rem; color: var(--muted-dim); }
.dash-card--float {
  position: absolute; padding: 0.85rem 1.1rem; font-size: 0.75rem;
  border-color: rgba(163, 230, 53, 0.3); box-shadow: var(--glow-lime);
}
.dash-card--float span { display: block; color: var(--muted); margin-bottom: 0.15rem; }
.dash-card--float strong { font-size: 1rem; color: var(--lime); }
.dash-card--1 { top: 0; right: 0; }
.dash-card--2 { bottom: 1rem; left: 0; border-color: rgba(56, 189, 248, 0.3); }
.dash-card--2 strong { color: var(--sky); }

.apex-hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-dim);
}

/* ─── TICKER ─── */
.ticker {
  overflow: hidden; border-block: 1px solid var(--border);
  background: var(--surface); padding: 0.85rem 0;
}
.ticker__track {
  display: flex; gap: 3rem; width: max-content;
  animation: ticker 28s linear infinite;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.ticker__track span { white-space: nowrap; }
.ticker__track span::after { content: "◆"; margin-left: 3rem; color: var(--lime); font-size: 0.5rem; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ─── TYPOGRAPHY HELPERS ─── */
.eyebrow {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 0.75rem;
}
.eyebrow--light { color: rgba(163, 230, 53, 0.8); }
.sub { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; max-width: 520px; }
.center { text-align: center; margin-inline: auto; }
.center .sub { margin-inline: auto; }

h2 em { font-style: normal; color: var(--sky); }

/* ─── SERVICES SCROLL ─── */
.svc-scroll { padding: 5rem 0; }
.svc-scroll__head { margin-bottom: 2rem; max-width: 560px; }
.svc-scroll__head h2 { font-family: var(--font-head); font-size: clamp(1.75rem, 3.5vw, 2.75rem); line-height: 1.1; margin-bottom: 0.75rem; }
.svc-scroll__track {
  display: flex; gap: 1.25rem; overflow-x: auto; padding: 0.5rem 4vw 1.5rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--lime) var(--surface);
}
.svc-scroll__track::-webkit-scrollbar { height: 6px; }
.svc-scroll__track::-webkit-scrollbar-thumb { background: var(--lime); border-radius: 999px; }

.svc-card {
  flex: 0 0 min(300px, 85vw); scroll-snap-align: start;
  padding: 1.75rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}
.svc-card:hover { border-color: var(--border-glow); transform: translateY(-6px); box-shadow: var(--glow-lime); }
.svc-card--hot { border-color: rgba(163, 230, 53, 0.4); background: linear-gradient(145deg, var(--surface), rgba(163,230,53,0.06)); }
.svc-card__n { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: rgba(163,230,53,0.25); line-height: 1; margin-bottom: 0.75rem; }
.svc-card h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.svc-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; }
.svc-card__link { font-size: 0.8125rem; font-weight: 700; color: var(--lime); }

/* ─── BENTO ─── */
.bento { padding: 4rem 0 5rem; background: var(--surface); }
.bento__grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
}
.bento-cell {
  padding: 1.75rem; background: rgba(3, 7, 18, 0.5); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color 0.3s;
}
.bento-cell:hover { border-color: rgba(56, 189, 248, 0.3); }
.bento-cell--lg { grid-column: span 2; }
.bento-cell--lg h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.15; margin-bottom: 0.75rem; }
.bento-cell--lg p { color: var(--muted); font-size: 0.9375rem; max-width: 480px; }
.bento-cell--accent {
  background: linear-gradient(145deg, rgba(163,230,53,0.12), rgba(56,189,248,0.08));
  border-color: var(--border-glow); display: flex; flex-direction: column; justify-content: center; gap: 0.35rem;
}
.bento-cell--accent strong { font-family: var(--font-head); font-size: 1.75rem; color: var(--lime); }
.bento-cell--accent span { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.5rem; }
.bento-icon { color: var(--sky); font-size: 1.25rem; margin-bottom: 0.5rem; }
.bento-cell h3 { font-size: 0.9375rem; margin-bottom: 0.35rem; }
.bento-cell p { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; }

/* ─── PROCESS ─── */
.process { padding: 5rem 0; background: linear-gradient(180deg, var(--void), var(--surface)); }
.process__head { margin-bottom: 2.5rem; max-width: 480px; }
.process__head h2 { font-family: var(--font-head); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; }
.process__steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; counter-reset: step;
}
.process__steps li {
  position: relative; padding: 2rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.6);
}
.process__steps li:not(:last-child)::after {
  content: "→"; position: absolute; right: -1.1rem; top: 50%; transform: translateY(-50%);
  color: var(--lime); font-size: 1.25rem; z-index: 2;
}
.process__steps span {
  display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center;
  background: var(--lime); color: var(--void); font-weight: 800; border-radius: 10px; margin-bottom: 1rem; font-size: 0.8125rem;
}
.process__steps h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.process__steps p { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; }

/* ─── PRICING ─── */
.pricing-deck { padding: 5rem 0; }
.pricing-deck__head { margin-bottom: 2.5rem; }
.pricing-deck__head h2 { font-family: var(--font-head); font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.5rem; }
.pricing-deck__grid {
  display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr);
}
.price-card {
  position: relative; padding: 1.75rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center; transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.price-card:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.35); }
.price-card h3 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.price-card p { font-size: 0.75rem; color: var(--muted); margin-bottom: 1rem; }
.price-card strong { font-family: var(--font-head); font-size: 1.375rem; color: var(--lime); }
.price-card--star {
  border-color: var(--border-glow); background: linear-gradient(160deg, rgba(163,230,53,0.1), var(--surface));
  box-shadow: var(--glow-lime);
}
.price-card__tag {
  position: absolute; top: -0.65rem; left: 50%; transform: translateX(-50%);
  padding: 0.25rem 0.75rem; background: var(--lime); color: var(--void);
  font-size: 0.625rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px;
}
.pricing-deck__note { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted); }
.pricing-deck__note a { color: var(--sky); font-weight: 600; text-decoration: underline; }

/* ─── FAQ + REVIEWS ─── */
.faq-block { padding: 5rem 0; background: var(--surface); }
.faq-block__grid { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: start; }
.faq-block__left h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 2.5vw, 2.25rem); margin-bottom: 1.5rem; line-height: 1.15; }
.faq-list details {
  border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.5rem; overflow: hidden;
  background: rgba(3, 7, 18, 0.4);
}
.faq-list summary {
  padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.9375rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary { color: var(--lime); border-bottom: 1px solid var(--border); }
.faq-list details p { padding: 0 1.25rem 1rem; font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
.faq-list details a { color: var(--sky); text-decoration: underline; }

.reviews { display: flex; flex-direction: column; gap: 1rem; }
.review-card {
  padding: 1.5rem; background: rgba(3, 7, 18, 0.5); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.review-card .stars { color: var(--lime); font-size: 0.875rem; margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.review-card p { font-size: 0.9375rem; line-height: 1.65; margin-bottom: 0.75rem; color: var(--text); }
.review-card footer { font-size: 0.75rem; color: var(--muted-dim); }

/* ─── CONTACT ─── */
.contact-glow { padding: 5rem 0; position: relative; overflow: hidden; }
.contact-glow::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(163,230,53,0.08), transparent 60%);
  pointer-events: none;
}
.contact-glow__grid { position: relative; display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: start; }
.contact-glow__info h2 { font-family: var(--font-head); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; margin-bottom: 1.5rem; }
.info-list { list-style: none; margin-bottom: 1.5rem; }
.info-list li { font-size: 0.9375rem; margin-bottom: 0.85rem; color: var(--muted); line-height: 1.55; }
.info-list strong { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-dim); margin-bottom: 0.15rem; }
.info-list a { color: var(--sky); text-decoration: underline; }

.contact-form {
  padding: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); position: relative;
}
.contact-form::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(135deg, var(--lime), var(--sky), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.contact-form h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 0.35rem; }
.form-note { font-size: 0.8125rem; color: var(--muted); margin-bottom: 1.25rem; }
.field { margin-bottom: 0.75rem; }
.field label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; background: var(--void); color: var(--text); transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(163,230,53,0.15); }
.check { display: flex; gap: 0.5rem; font-size: 0.78rem; color: var(--muted); margin: 0.75rem 0; cursor: pointer; }
.check input { accent-color: var(--lime); margin-top: 0.15rem; }
.check a { color: var(--sky); text-decoration: underline; }
.err { display: block; font-size: 0.72rem; color: #F87171; min-height: 0.85rem; }
.ok { margin-top: 0.75rem; padding: 0.85rem; background: rgba(163,230,53,0.1); border-radius: var(--radius-sm); color: var(--lime); font-size: 0.875rem; font-weight: 600; }

.map-box { margin-top: 1.5rem; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.map-box iframe { width: 100%; height: 220px; border: 0; display: block; }

/* ─── LEGAL HUB ─── */
.legal-hub { padding: 5rem 0; background: var(--void); }
.legal-hub__head { margin-bottom: 2rem; }
.legal-hub__head h2 { font-family: var(--font-head); font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.5rem; }
.legal-hub__grid {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.legal-card {
  display: flex; flex-direction: column; gap: 0.45rem; padding: 1.35rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  text-align: left; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; cursor: pointer; font: inherit; color: inherit; width: 100%;
}
a.legal-card:hover, button.legal-card:hover {
  transform: translateY(-4px); border-color: var(--border-glow); box-shadow: var(--glow-lime);
}
.legal-card__icon { font-size: 1.35rem; }
.legal-card h3 { font-size: 0.875rem; font-weight: 700; }
.legal-card p { font-size: 0.75rem; color: var(--muted); line-height: 1.5; flex: 1; }
.legal-card--btn { appearance: none; -webkit-appearance: none; background: var(--surface); }

.legal-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.25rem;
  padding: 1.5rem 2rem; background: var(--surface); border-top: 1px solid var(--border);
}
.legal-strip a, .legal-strip button {
  font-size: 0.75rem; font-weight: 600; color: var(--muted); background: none; border: none;
  font-family: var(--font); cursor: pointer;
}
.legal-strip a:hover, .legal-strip button:hover { color: var(--lime); }

/* ─── FOOTER ─── */
.site-footer { background: #020617; border-top: 1px solid var(--border); padding-top: 3rem; color: var(--muted); }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr 1fr; padding-bottom: 2.5rem; }
.site-footer h4 { color: var(--text); font-size: 0.8rem; margin-bottom: 0.75rem; letter-spacing: 0.05em; }
.site-footer a, .site-footer p { display: block; font-size: 0.8125rem; margin-bottom: 0.35rem; color: var(--muted); }
.site-footer a:hover { color: var(--lime); }
.site-footer__brand p { margin-top: 0.75rem; max-width: 280px; line-height: 1.6; }
.site-footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0 2rem; border-top: 1px solid var(--border); font-size: 0.75rem;
}
.site-footer__bar a { color: var(--lime); }
.link-btn { background: none; border: none; color: var(--lime); font: inherit; cursor: pointer; text-decoration: underline; }
.footer-cookie-btn {
  display: block; background: none; border: none; font: inherit; font-size: 0.8125rem;
  color: var(--muted); cursor: pointer; margin-bottom: 0.35rem; text-align: left; padding: 0;
}
.footer-cookie-btn:hover { color: var(--lime); }

.compliance-bar { padding: 0.875rem 0 1.25rem; text-align: center; font-size: 0.72rem; color: var(--muted-dim); background: var(--surface); }
.compliance-bar a { color: var(--sky); }

/* ─── LEGAL PAGES ─── */
body.legal { padding-top: var(--header-h); background: var(--paper); color: var(--ink); }
body.legal .site-header.is-scrolled .site-header__inner,
body.legal .site-header__inner { background: transparent; backdrop-filter: none; }
body.legal .site-nav a:not(.btn) { color: var(--muted); }
body.legal .site-nav a:not(.btn):hover { color: var(--lime); }
body.legal .menu-toggle i { background: var(--text); }

/* ─── REVEAL ─── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

body.home { padding-top: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .apex-hero__layout { grid-template-columns: 1fr; }
  .apex-hero__visual { order: -1; max-width: 420px; margin-inline: auto; }
  .bento__grid { grid-template-columns: 1fr 1fr; }
  .bento-cell--lg { grid-column: span 2; }
  .process__steps { grid-template-columns: 1fr; }
  .process__steps li:not(:last-child)::after { display: none; }
  .pricing-deck__grid { grid-template-columns: 1fr 1fr; }
  .faq-block__grid { grid-template-columns: 1fr; }
  .contact-glow__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; top: 0; flex-direction: column; justify-content: center;
    background: rgba(3, 7, 18, 0.98); backdrop-filter: blur(24px);
    transform: translateX(100%); transition: transform 0.4s var(--ease); z-index: 250; gap: 0;
  }
  .site-nav.is-open { transform: none; }
  .site-nav a { padding: 1rem; font-size: 1.125rem; color: #fff !important; }
  .apex-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .bento__grid { grid-template-columns: 1fr; }
  .bento-cell--lg { grid-column: span 1; }
  .pricing-deck__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
