/* ============================================================
   APEXSCALE — stylesheet
   Sections: fonts, tokens, reset, layout, components, sections,
   funnels, chat demo, forms, footer, legal, responsive, motion
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterItalic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0c0d0b;
  --ink-soft: #17190f;
  --ink-muted: #5b5f52;
  --paper: #f5f5f1;
  --paper-dim: #eceee6;
  --stone-200: #dbddd0;
  --stone-300: #c6c9b8;
  --stone-400: #9a9e8a;

  --green: #1e7a52;
  --green-dark: #145c3d;
  --green-light: #3e9b72;
  --green-tint: #e4efe7;

  --leak: #b23a2e;
  --leak-dark: #8f2c22;
  --leak-tint: #f4e2df;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-sans: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius-sm: 3px;
  --radius-md: 6px;
  --container: 1180px;

  --shadow-soft: 0 1px 2px rgba(12, 13, 11, 0.06), 0 10px 28px -14px rgba(12, 13, 11, 0.22);
  --shadow-card: 0 1px 1px rgba(12, 13, 11, 0.04), 0 2px 10px rgba(12, 13, 11, 0.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--paper); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem;
  border-radius: var(--radius-sm); transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2.5rem; } }

.section { padding: 5rem 0; }
.section-dim { background: var(--paper-dim); }
.section-dark { background: var(--ink); color: var(--paper); }
@media (min-width: 900px) { .section { padding: 7rem 0; } }

.section-head { display: flex; flex-direction: column; gap: 1rem; max-width: 640px; margin-bottom: 3rem; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-title-light { color: var(--paper); }
.section-body { max-width: 540px; font-size: 1rem; line-height: 1.6; color: var(--ink-muted); }
.section-dark .section-body { color: rgba(245, 245, 241, 0.65); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .9rem;
}
.eyebrow-light { color: var(--green-light); }
.eyebrow-rule { width: 22px; height: 1px; background: currentColor; opacity: .55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  padding: .95rem 1.6rem;
  border-radius: var(--radius-sm);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 1px 2px rgba(12,13,11,.18);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(12,13,11,.22);
}
.btn-secondary:hover { border-color: var(--ink); background: rgba(12,13,11,.03); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }
.section-dark .btn-secondary, .cta-section .btn-secondary { color: var(--paper); border-color: rgba(245,245,241,.28); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 245, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--stone-200); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.logo { display: inline-flex; align-items: center; gap: .65rem; }
.logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 .45rem;
  background: var(--ink); border-radius: var(--radius-md);
}
.logo-badge img { height: 17px; width: auto; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word-main {
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  letter-spacing: -0.01em; color: var(--ink);
}
.logo-footer .logo-word-main { color: var(--paper); }
.logo-word-sub {
  margin-top: .2rem; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted);
}
.logo-footer .logo-word-sub { color: rgba(245,245,241,.5); }

.main-nav { display: none; align-items: center; gap: 2.1rem; }
.main-nav a { font-size: .9rem; font-weight: 500; color: var(--ink-soft); transition: color .15s ease; }
.main-nav a:hover { color: var(--green); }
.header-cta { display: none; }

.menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
}
.menu-toggle-lines { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.menu-toggle-lines span { display: block; height: 1.5px; background: var(--ink); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--paper);
  display: flex; flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: 74px; border-bottom: 1px solid var(--stone-200); }
.menu-close { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; }
.mobile-nav { display: flex; flex-direction: column; padding: 0 1.5rem; gap: 0; flex: 1; justify-content: center; }
.mobile-nav a {
  padding: 1.1rem 0; border-bottom: 1px solid var(--stone-200);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--ink);
}
.mobile-cta { margin-top: 2rem; border: none !important; text-align: center; }

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 4rem 0 5rem; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 480px; z-index: -1;
  background: radial-gradient(60% 55% at 45% 0%, rgba(30,122,82,0.08), transparent 70%);
}
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
.hero-copy { max-width: 560px; }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.08; letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 1.4rem;
}
.hero-sub { font-size: 1.08rem; line-height: 1.6; color: var(--ink-muted); max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }
.hero-note { margin-top: 1.6rem; font-size: .85rem; color: var(--ink-muted); }

.hero-visual { display: flex; justify-content: center; }
.funnel-card {
  width: 100%; max-width: 380px;
  background: #fff; border: 1px solid var(--stone-200); border-radius: 10px;
  padding: 1.75rem 1.5rem 2rem; box-shadow: var(--shadow-soft);
}
.funnel-card-label {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 1.3rem;
}
.funnel-cone { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.funnel-cone li {
  width: var(--w); max-width: 100%;
  background: var(--green-tint);
  border: 1px solid rgba(30,122,82,.22);
  border-radius: var(--radius-sm);
  padding: .6rem .5rem;
  text-align: center;
}
.funnel-cone li:nth-child(1) { background: var(--green); border-color: var(--green); }
.funnel-cone li:nth-child(1) span { color: var(--paper); }
.funnel-cone li:nth-child(2) { background: #2f8a61; border-color: #2f8a61; }
.funnel-cone li:nth-child(2) span { color: var(--paper); }
.funnel-cone li:nth-child(3) { background: #4d9c78; border-color: #4d9c78; }
.funnel-cone li:nth-child(3) span { color: var(--paper); }
.funnel-cone li span {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500; color: var(--green-dark);
}

/* ---------- Belief / leak funnel ---------- */
.belief-grid { display: grid; gap: 3rem; align-items: start; }
.leak-funnel-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.leak-funnel {
  width: 100%; max-width: 360px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  background: #fff; border: 1px solid var(--stone-200); border-radius: 10px;
  padding: 1.75rem 1.5rem; box-shadow: var(--shadow-card);
}
.leak-stage {
  width: var(--sw, 100%); max-width: 100%;
  background: var(--paper-dim);
  border-radius: var(--radius-sm);
  padding: .65rem .5rem;
  text-align: center;
}
.leak-stage-label { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; color: var(--ink-soft); }
.leak-arrow { display: flex; align-items: center; justify-content: center; gap: .35rem; height: 26px; position: relative; }
.leak-arrow::before {
  content: ""; width: 1px; height: 100%; background: var(--stone-300);
}
.leak-tick {
  position: absolute; left: 62%; top: 50%; transform: translateY(-50%);
  width: 16px; height: 1px; background: var(--leak);
}
.leak-tick::after {
  content: ""; position: absolute; right: -2px; top: -2px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--leak);
}
.leak-caption { max-width: 340px; text-align: center; font-size: .85rem; color: var(--ink-muted); line-height: 1.55; }

/* ---------- Leak cards ---------- */
.leak-cards { display: grid; gap: 2.2rem 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.leak-card { border-top: 1px solid var(--stone-300); padding-top: 1.2rem; }
.leak-card-index { font-family: var(--font-mono); font-size: .85rem; color: var(--leak); margin-bottom: .6rem; }
.leak-card h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; margin-bottom: .5rem; }
.leak-card p { font-size: .9rem; color: var(--ink-muted); line-height: 1.55; }

/* ---------- Journey stepper ---------- */
.journey-stepper {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--stone-200); border: 1px solid var(--stone-200); border-radius: var(--radius-md); overflow: hidden;
}
.journey-stepper li {
  background: #fff; padding: 1.1rem 1rem; display: flex; align-items: center; gap: .7rem;
}
.journey-num { font-family: var(--font-mono); font-size: .78rem; color: var(--green); }
.journey-stepper li span:last-child { font-family: var(--font-display); font-weight: 500; font-size: .95rem; }
@media (min-width: 768px) { .journey-stepper { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Growth funnel (embudos) ---------- */
.funnel-section-grid { display: flex; flex-direction: column; gap: 1rem; }
.growth-funnel { display: flex; flex-direction: column; align-items: stretch; max-width: 560px; }
.growth-stage { display: flex; align-items: flex-start; gap: 1.2rem; }
.growth-num {
  font-family: var(--font-mono); font-size: .85rem; color: var(--green-light);
  flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(245,245,241,.2); border-radius: 50%;
}
.growth-stage h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--paper); margin-bottom: .3rem; }
.growth-stage p { font-size: .9rem; color: rgba(245,245,241,.6); line-height: 1.55; }
.growth-connector { width: 1px; height: 28px; background: rgba(245,245,241,.18); margin-left: 17px; }

/* ---------- Agent cards ---------- */
.agent-cards { display: grid; gap: 2.2rem 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.agent-card { border-top: 1px solid var(--stone-300); padding-top: 1.2rem; }
.agent-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: .55rem; }
.agent-card p { font-size: .9rem; color: var(--ink-muted); line-height: 1.55; }

/* ---------- Chat demo ---------- */
.demo-grid { display: grid; gap: 3rem; align-items: center; }
.demo-tag {
  margin-top: 1.4rem; display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--stone-300); background: #fff; border-radius: 999px;
  padding: .45rem .9rem; font-size: .78rem; color: var(--ink-muted);
}
.demo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.chat-card {
  max-width: 380px; margin: 0 auto; width: 100%;
  background: #fff; border: 1px solid var(--stone-200); border-radius: 14px;
  padding: 1.4rem; box-shadow: var(--shadow-soft);
}
.chat-head { display: flex; align-items: center; gap: .7rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--stone-200); }
.chat-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .7rem;
}
.chat-title { font-size: .85rem; font-weight: 600; }
.chat-sub { font-size: .75rem; color: var(--ink-muted); }
.chat-log { display: flex; flex-direction: column; gap: .7rem; }
.chat-msg {
  max-width: 85%; padding: .6rem .9rem; border-radius: 12px; font-size: .87rem; line-height: 1.5;
  box-shadow: var(--shadow-card);
}
.chat-msg-client { align-self: flex-end; background: var(--ink); color: var(--paper); border-top-right-radius: 3px; }
.chat-msg-agent { align-self: flex-start; background: var(--paper-dim); color: var(--ink-soft); border-top-left-radius: 3px; }

/* ---------- Automatizaciones ---------- */
.auto-flow { display: flex; flex-direction: column; gap: 0; max-width: 520px; }
.auto-flow li { display: flex; align-items: center; gap: 1.1rem; padding: .9rem 0; border-top: 1px solid var(--stone-200); }
.auto-flow li:last-child { border-bottom: 1px solid var(--stone-200); }
.auto-num {
  font-family: var(--font-mono); font-size: .78rem; color: var(--green);
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--stone-300);
  display: flex; align-items: center; justify-content: center;
}
.auto-flow li span:last-child { font-family: var(--font-display); font-weight: 500; font-size: .98rem; }
.auto-note { margin-top: 1.5rem; font-size: .85rem; color: var(--ink-muted); }

/* ---------- Process (cómo trabajamos) ---------- */
.process-grid { display: grid; gap: 2.4rem 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.process-num { display: block; font-family: var(--font-mono); font-size: 1.5rem; color: var(--stone-400); margin-bottom: .6rem; }
.process-grid h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.process-grid p { font-size: .88rem; color: var(--ink-muted); line-height: 1.55; }

/* ---------- Benefits ---------- */
.benefit-cards { display: grid; gap: 2.2rem 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.benefit-cards article { border-top: 1px solid var(--stone-300); padding-top: 1.2rem; }
.benefit-cards h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; margin-bottom: .55rem; }
.benefit-cards p { font-size: .9rem; color: var(--ink-muted); line-height: 1.55; }

/* ---------- Differentiation ---------- */
.diff-grid { display: grid; gap: 2.5rem; }
.diff-list { display: flex; flex-direction: column; gap: 1.8rem; max-width: 640px; }
.diff-list h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; }
.diff-list p { font-size: .92rem; color: var(--ink-muted); line-height: 1.55; }

/* ---------- CTA ---------- */
.cta-section { background: var(--ink); color: var(--paper); }
.cta-grid { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.cta-title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; max-width: 600px; margin-bottom: 1.1rem;
}
.cta-body { max-width: 540px; color: rgba(245,245,241,.65); font-size: 1rem; line-height: 1.6; }
.cta-free { margin-top: 1rem; font-family: var(--font-mono); font-size: .8rem; color: var(--green-light); text-transform: uppercase; letter-spacing: .06em; }
.cta-grid .btn-primary { background: var(--paper); color: var(--ink); }
.cta-grid .btn-primary:hover { background: var(--green-light); color: var(--paper); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 3rem; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--stone-300); }
.faq-item { border-bottom: 1px solid var(--stone-300); padding: 1.2rem 0; }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-family: var(--font-mono); font-size: 1.1rem; color: var(--ink-muted);
  transition: transform .18s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: .8rem; max-width: 560px; font-size: .92rem; color: var(--ink-muted); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
.contact-direct { margin-top: 2rem; display: flex; flex-direction: column; gap: .7rem; }
.contact-direct a { font-size: .95rem; color: var(--ink-soft); transition: color .15s ease; }
.contact-direct a:hover { color: var(--green); }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; background: #fff; border: 1px solid var(--stone-200); border-radius: 12px; padding: 1.75rem; box-shadow: var(--shadow-card); }
.honeypot { position: absolute; left: -9999px; }
.form-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.optional { font-weight: 400; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  border: 1px solid var(--stone-300); border-radius: var(--radius-sm);
  padding: .7rem .8rem; font-size: .92rem; background: #fff; transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.field textarea { resize: vertical; min-height: 96px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--leak); }
.field-error { font-size: .78rem; color: var(--leak); min-height: 0; }
.form-alert { border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .88rem; }
.form-alert-error { border: 1px solid rgba(178,58,46,.35); background: var(--leak-tint); color: var(--leak-dark); }
.form-alert-error a { text-decoration: underline; }
.form-submit { margin-top: .3rem; width: 100%; }

.form-success {
  max-width: 440px; text-align: center; margin: 0 auto;
  background: #fff; border: 1px solid var(--stone-200); border-radius: 12px;
  padding: 2.6rem 2rem; box-shadow: var(--shadow-card);
}
.form-success-icon {
  width: 46px; height: 46px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center;
}
.form-success h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: .6rem; }
.form-success p { font-size: .92rem; color: var(--ink-muted); line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 4.5rem 0 0; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; padding-bottom: 3.5rem; }
.footer-desc { margin-top: 1.2rem; max-width: 300px; font-size: .88rem; color: rgba(245,245,241,.6); line-height: 1.6; }
.footer-heading { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(245,245,241,.4); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .65rem; }
.footer-links a { font-size: .9rem; color: rgba(245,245,241,.78); transition: color .15s ease; }
.footer-links a:hover { color: var(--paper); }
.footer-muted { font-size: .85rem; color: rgba(245,245,241,.4); }
.footer-bottom {
  display: flex; flex-direction: column; gap: 1rem; padding: 1.8rem 0;
  border-top: 1px solid rgba(245,245,241,.1); font-size: .78rem; color: rgba(245,245,241,.45);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-legal a { color: rgba(245,245,241,.45); transition: color .15s ease; }
.footer-legal a:hover { color: rgba(245,245,241,.8); }

@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(12,13,11,.4);
  transition: transform .18s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); }

/* ---------- Legal pages ---------- */
.legal-main { padding: 5rem 0 6rem; }
.legal-content { max-width: 680px; margin: 0 auto; }
.legal-content h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.2rem); font-weight: 600; margin-bottom: 1.8rem; }
.legal-content h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin: 2rem 0 .7rem; }
.legal-content p { font-size: .95rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 1rem; }
.legal-content ul { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 1rem; padding-left: 1.2rem; list-style: disc; }
.legal-content li { font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }
.legal-placeholder { background: rgba(178,58,46,.1); color: var(--leak-dark); padding: .1rem .4rem; border-radius: 3px; font-weight: 600; }
.legal-note { margin-top: 2.5rem; font-size: .82rem; color: var(--ink-muted); }

/* ---------- Reveal / motion ---------- */
/* Visible by default (progressive enhancement): JS adds .reveal-pending only
   when it can guarantee it will also flip it to .is-visible, so content never
   gets stuck invisible if JS fails, is blocked, or runs slowly. */
.reveal.reveal-pending { opacity: 0; transform: translateY(16px); }
.reveal { transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Grid breakpoints for hero/belief/demo/contact ---------- */
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .belief-grid { grid-template-columns: .95fr 1.05fr; }
  .demo-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: .85fr 1.15fr; }
  .diff-grid { grid-template-columns: .8fr 1.2fr; }
  .diff-grid .section-head { margin-bottom: 0; }
}
