/* ==========================================================================
   Locare — Landing Page Stylesheet
   Vanilla CSS, zero build. Dark-first premium. Slate #0F172A + Gold #D4A574.
   Tokens → Reset → Layout → Components → Sections → Responsive → A11y
   ========================================================================== */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Slate scale */
  --slate-950: #020617;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;

  /* Gold scale */
  --gold-900: #4A3720;
  --gold-800: #6F5230;
  --gold-700: #956E3F;
  --gold-600: #B8884F;
  --gold-500: #D4A574;
  --gold-400: #D4B383;
  --gold-300: #DCBE85;
  --gold-200: #EBD5AE;
  --gold-100: #F5EBD8;
  --gold-50:  #FBF7F1;

  /* Semantic status colors (NOT brand — reserved for state only).
     Success = emerald, Warning = amber, Danger = red.
     Brand = slate + gold. Do not use these for decorative accents. */
  --emerald-600: #059669;
  --emerald-500: #10B981;
  --emerald-100: #D1FAE5;
  --amber-700: #B45309;
  --amber-600: #D97706;
  --amber-100: #FEF3C7;
  --red-700: #B91C1C;
  --red-600: #DC2626;
  --red-100: #FEE2E2;
  --sky-600: #0284C7;

  --white: #FFFFFF;
  --black: #000000;

  /* Spacing */
  --sp-xxs: 2px;
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-hero: 64px;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Layout */
  --container: 1200px;
  --header-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 200ms;
  --dur-norm: 300ms;
  --dur-slow: 500ms;

  /* Signature gradients */
  --grad-night: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --grad-gold: linear-gradient(135deg, #D4A574 0%, #B8884F 100%);
  --grad-aurora: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #4A3720 100%);
}

/* ---------- THEME: DARK (default) ---------- */
:root,
[data-theme="dark"] {
  --bg: var(--slate-950);
  --bg-elev: var(--slate-900);
  --surface: #131c30;
  --surface-2: #1a2540;
  --surface-glass: rgba(15, 23, 42, 0.72);
  --text: #F1F5F9;
  --text-soft: #CBD5E1;
  --text-muted: #94A3B8;
  /* text-faint bumped from slate-500 (#64748B, ~3.6:1 on surface — failed AA)
     to slate-400 for WCAG AA on small disclaimer text. */
  --text-faint: #94A3B8;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --accent: var(--gold-500);
  --accent-text: var(--gold-400);
  --accent-on: var(--gold-900);
  /* accent-surface bumped 0.10 -> 0.16 for better readability of overlaid text. */
  --accent-surface: rgba(212, 165, 116, 0.16);
  --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.5);
  --shadow-md: 0 8px 24px rgba(2, 6, 23, 0.4), 0 2px 6px rgba(2, 6, 23, 0.3);
  --shadow-lg: 0 24px 60px rgba(2, 6, 23, 0.55), 0 8px 20px rgba(2, 6, 23, 0.35);
  --shadow-glow: 0 0 0 1px rgba(212, 165, 116, 0.18), 0 18px 50px rgba(212, 165, 116, 0.16);
  --save-color: var(--emerald-500);
}

/* ---------- THEME: LIGHT ---------- */
[data-theme="light"] {
  --bg: var(--slate-50);
  --bg-elev: var(--white);
  --surface: var(--white);
  --surface-2: var(--slate-50);
  --surface-glass: rgba(255, 255, 255, 0.78);
  --text: var(--slate-900);
  --text-soft: var(--slate-700);
  --text-muted: var(--slate-600);
  --text-faint: var(--slate-500);
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.18);
  --accent: var(--gold-600);
  --accent-text: var(--gold-700);
  --accent-on: var(--white);
  --accent-surface: rgba(212, 165, 116, 0.14);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12), 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 0 1px rgba(184, 136, 79, 0.22), 0 18px 50px rgba(184, 136, 79, 0.14);
  --save-color: var(--emerald-600);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--dur-norm) var(--ease-out), color var(--dur-norm) var(--ease-out);
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
strong { font-weight: 600; color: var(--text); }
em { font-style: italic; }

.tnum { font-variant-numeric: tabular-nums; }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

section { padding-block: var(--sp-hero); position: relative; }

.section-head {
  max-width: 760px;
  margin: 0 auto var(--sp-xxl);
  text-align: center;
}

.section-title {
  font-size: clamp(28px, 4.2vw, 36px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.4px;
  margin-top: var(--sp-md);
  color: var(--text);
}

.section-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: var(--sp-md);
}

.text-accent { color: var(--accent-text); }

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: var(--accent-on);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { left: var(--sp-md); top: var(--sp-md); }

/* ---------- EYEBROW ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--accent-text);
  background: var(--accent-surface);
  border: 1px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: var(--r-full);
  letter-spacing: 0.1px;
}
.eyebrow-static { letter-spacing: 0.3px; }

/* "Em breve / opcional" inline labels — honesty markers next to gated features. */
.cred-soon,
.inline-soon {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  vertical-align: middle;
  padding: 2px 8px;
  margin-left: 4px;
  border-radius: var(--r-full);
  background: var(--accent-surface);
  color: var(--accent-text);
  border: 1px solid var(--border-strong);
}
.inline-soon { text-transform: none; letter-spacing: 0.1px; }

.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: var(--r-full);
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.22);
  animation: pulse-dot 2s var(--ease-out) infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.22); }
  50% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(212, 165, 116, 0.08); }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  min-height: 44px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.btn svg { flex-shrink: 0; }
.btn-sm { padding: 10px 16px; min-height: 40px; font-size: 14px; }
.btn-lg { padding: 16px 28px; min-height: 52px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-accent {
  background: var(--grad-gold);
  color: var(--gold-900);
  box-shadow: var(--shadow-glow);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(212,165,116,0.3), 0 22px 56px rgba(212, 165, 116, 0.28); }
.btn-accent:active { transform: scale(0.98); }

/* Hero primary CTA: a touch larger + gentle attention pulse on first paint.
   Pulse is purely additive (box-shadow) and disabled under reduced-motion. */
.hero-ctas .btn-accent.btn-lg {
  font-size: 17px;
  min-height: 56px;
  animation: cta-pulse 2.8s var(--ease-out) 1.2s 3;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: var(--shadow-glow); }
  50% { box-shadow: 0 0 0 1px rgba(212,165,116,0.35), 0 0 0 6px rgba(212,165,116,0.12), 0 22px 56px rgba(212,165,116,0.30); }
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-text); background: var(--accent-surface); }
.btn-outline:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--accent-text); background: var(--accent-surface); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-norm) var(--ease-out);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--sp-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.brand-mark { width: 40px; height: 40px; border-radius: 10px; }
.brand-name { font-size: 20px; letter-spacing: -0.3px; color: var(--text); }

.primary-nav ul { display: flex; align-items: center; gap: var(--sp-xl); }
.primary-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: var(--r-full);
  transition: width var(--dur-norm) var(--ease-out);
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: var(--sp-sm); flex-shrink: 0; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { color: var(--accent-text); border-color: var(--border-strong); background: var(--accent-surface); }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: var(--r-full);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--sp-xs);
  padding: var(--sp-md) var(--sp-lg) var(--sp-xl);
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 14px 8px;
  border-radius: var(--r-sm);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:not(.btn):hover { color: var(--accent-text); }
.mobile-menu .btn { margin-top: var(--sp-md); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: var(--sp-xxl);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  max-width: 130vw;
  background: radial-gradient(circle at center, rgba(212, 165, 116, 0.18) 0%, rgba(212, 165, 116, 0.05) 35%, transparent 68%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-content { max-width: 600px; }
.hero-title {
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-top: var(--sp-lg);
  color: var(--text);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--text-soft);
  margin-top: var(--sp-lg);
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}
.hero-micro {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: var(--sp-lg);
  letter-spacing: 0.2px;
}

/* Phone mockup */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-glow {
  position: absolute;
  inset: -8% -4%;
  background: radial-gradient(circle at 60% 40%, rgba(212,165,116,0.22), transparent 60%);
  filter: blur(50px);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 264px;
  max-width: 100%;
  aspect-ratio: 264 / 560;
  background: var(--grad-night);
  border: 8px solid #0a1120;
  border-radius: 42px;
  padding: 14px 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212,165,116,0.10);
  overflow: hidden;
  animation: float 6s var(--ease-out) infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 22px;
  background: #0a1120;
  border-radius: var(--r-full);
  z-index: 3;
}
.phone-screen {
  height: 100%;
  border-radius: 28px;
  background: var(--slate-900);
  padding: 34px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.app-header { display: flex; justify-content: space-between; align-items: center; }
.app-greeting { font-size: 14px; font-weight: 600; color: #F1F5F9; }
.app-sub { font-size: 11px; color: #94A3B8; }
.app-avatar {
  width: 34px; height: 34px;
  border-radius: var(--r-full);
  background: var(--grad-gold);
  color: var(--gold-900);
  font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.app-hero-card {
  background: linear-gradient(135deg, rgba(212,165,116,0.14), rgba(212,165,116,0.04));
  border: 1px solid rgba(212,165,116,0.2);
  border-radius: var(--r-md);
  padding: 14px;
}
.app-card-label { font-size: 10px; color: #CBD5E1; text-transform: uppercase; letter-spacing: 0.5px; }
.app-card-value { font-size: 24px; font-weight: 700; color: #F8FAFC; margin-top: 2px; }
.app-card-value span { font-size: 15px; color: #94A3B8; }
.app-card-trend { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.trend-up { font-size: 12px; font-weight: 600; color: var(--emerald-500); }
.trend-sub { font-size: 10px; color: #94A3B8; }
.app-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: rgba(148,163,184,0.08); border: 1px solid rgba(148,163,184,0.12); border-radius: var(--r-sm); padding: 8px 6px; }
.kpi-label { font-size: 9px; color: #94A3B8; }
.kpi-value { font-size: 13px; font-weight: 700; color: #F1F5F9; margin-top: 2px; }
.app-section-title { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; color: #CBD5E1; margin-top: 2px; }
.dot-gold { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--gold-500); box-shadow: 0 0 8px rgba(212,165,116,0.6); }
.app-alert {
  display: flex; align-items: center; gap: 10px;
  background: rgba(212,165,116,0.10);
  border: 1px solid rgba(212,165,116,0.2);
  border-radius: var(--r-sm);
  padding: 10px;
}
.app-alert.subtle { background: rgba(148,163,184,0.06); border-color: rgba(148,163,184,0.12); }
.alert-icon {
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(212,165,116,0.2);
  color: var(--gold-400);
  font-size: 14px; flex-shrink: 0;
}
.alert-icon.yellow { background: rgba(217,119,6,0.18); color: var(--amber-600); font-weight: 700; }
.alert-title { font-size: 11px; font-weight: 600; color: #F1F5F9; }
.alert-sub { font-size: 10px; color: #94A3B8; margin-top: 1px; }

/* Credibility strip */
.cred-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-md) var(--sp-xl);
  margin-top: var(--sp-xxl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--border);
}
.cred-strip li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.cred-strip svg { color: var(--accent-text); flex-shrink: 0; }

/* ==========================================================================
   PROBLEM
   ========================================================================== */
.problem { background: var(--bg-elev); border-block: 1px solid var(--border); }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}
.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl) var(--sp-lg);
  transition: transform var(--dur-norm) var(--ease-out), border-color var(--dur-norm) var(--ease-out), box-shadow var(--dur-norm) var(--ease-out);
}
.pain-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.pain-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--accent-surface);
  color: var(--accent-text);
  margin-bottom: var(--sp-md);
}
.pain-card h3 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: var(--sp-sm); line-height: 1.3; }
.pain-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }
.problem-bridge {
  max-width: 720px;
  margin: var(--sp-xxl) auto 0;
  text-align: center;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  color: var(--text-soft);
}

/* ==========================================================================
   SOLUTION
   ========================================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-lg);
  max-width: 980px;
  margin-inline: auto;
}
.pillar {
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
  padding: var(--sp-lg);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: border-color var(--dur-norm) var(--ease-out), background var(--dur-norm) var(--ease-out);
}
.pillar:hover { border-color: var(--border); background: var(--surface); }
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--accent-surface);
  color: var(--accent-text);
  flex-shrink: 0;
}
.pillar h3 { font-size: 16.5px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.pillar p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }

.solution-synthesis {
  margin-top: var(--sp-xxl);
  text-align: center;
}
.solution-synthesis > p {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
}
.synthesis-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}

/* ==========================================================================
   FEATURES (detailed rows)
   ========================================================================== */
.features { background: var(--bg-elev); border-block: 1px solid var(--border); }
.feature-rows { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--sp-sm);
}
.feature-num {
  display: inline-grid;
  place-items: center;
  min-width: 26px; height: 26px;
  padding-inline: 6px;
  border-radius: var(--r-sm);
  background: var(--accent-surface);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  color: var(--accent-text);
}
.feature-text h3 {
  font-size: clamp(20px, 2.6vw, 25px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: var(--sp-md);
}
.feature-points { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-md); }
.feature-points li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft);
}
.feature-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: var(--r-full);
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-surface);
}
.feature-benefit {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
  padding: var(--sp-md);
  border-left: 3px solid var(--accent);
  background: var(--accent-surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.feature-disclaimer {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-faint);
  margin-top: var(--sp-md);
  font-style: italic;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.feature-tag.premium { background: var(--grad-gold); color: var(--gold-900); }
.feature-tag.soon { background: var(--accent-surface); color: var(--accent-text); border: 1px solid var(--border-strong); }

/* Feature visuals */
.feature-visual { display: flex; justify-content: center; }
.visual-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-md);
}
.visual-card-head, .pay-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-md); }
.visual-pill {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-full);
  background: var(--accent-surface); color: var(--accent-text);
}
.visual-status {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; gap: 5px;
}
.visual-status.ok { background: rgba(16,185,129,0.14); color: var(--emerald-500); }
.visual-status.ok::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-500); }
.visual-title { font-size: 17px; font-weight: 700; color: var(--text); }
.visual-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.visual-divider { height: 1px; background: var(--border); margin-block: var(--sp-md); }
.visual-kv { display: flex; justify-content: space-between; align-items: center; padding-block: 5px; font-size: 14px; color: var(--text-muted); }
.visual-kv strong { color: var(--text); font-weight: 600; }
/* Higher specificity than `.visual-kv strong` so no !important is needed. */
.visual-kv strong.ok-text,
.ok-text { color: var(--save-color); }

/* score card */
.score-card { text-align: center; }
.score-ring {
  --score: 87;
  width: 132px; height: 132px;
  border-radius: var(--r-full);
  margin: 0 auto var(--sp-md);
  display: grid; place-items: center;
  background:
    radial-gradient(closest-side, var(--surface) 78%, transparent 79% 100%),
    conic-gradient(var(--gold-500) calc(var(--score) * 1%), var(--border-strong) 0);
  position: relative;
}
.score-value { font-size: 38px; font-weight: 700; color: var(--text); grid-column: 1; grid-row: 1; line-height: 1; }
.score-of { font-size: 13px; color: var(--text-muted); position: absolute; bottom: 30px; }
.score-label { font-size: 14px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--emerald-500); }

/* contract card */
.contract-lines { display: flex; flex-direction: column; gap: 9px; }
.contract-lines span { height: 9px; border-radius: var(--r-full); background: var(--border-strong); }
.contract-lines span.short { width: 60%; }
.contract-sign { display: flex; align-items: center; gap: var(--sp-md); }
.sign-badge {
  width: 38px; height: 38px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: rgba(16,185,129,0.14); color: var(--emerald-500); flex-shrink: 0;
}
.sign-title { font-size: 14px; font-weight: 600; color: var(--text); }
.sign-sub { font-size: 12.5px; color: var(--text-muted); }

/* pay card */
.pay-method { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.pay-progress { height: 8px; border-radius: var(--r-full); background: var(--border-strong); overflow: hidden; margin-bottom: var(--sp-sm); }
.pay-progress span { display: block; height: 100%; background: var(--grad-gold); border-radius: var(--r-full); }

/* dash card */
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-sm); margin-bottom: var(--sp-md); }
.dash-k { font-size: 11px; color: var(--text-muted); }
.dash-v { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 2px; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 86px; padding: var(--sp-sm); background: var(--surface-2); border-radius: var(--r-sm); margin-bottom: var(--sp-sm); }
.dash-bars span { flex: 1; background: var(--grad-gold); border-radius: var(--r-xs) var(--r-xs) 0 0; min-height: 8px; }

/* Feature trio */
.feature-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}
.feature-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl) var(--sp-lg);
  transition: transform var(--dur-norm) var(--ease-out), border-color var(--dur-norm) var(--ease-out), box-shadow var(--dur-norm) var(--ease-out);
}
.feature-mini:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.mini-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--accent-surface);
  color: var(--accent-text);
  margin-bottom: var(--sp-md);
}
.feature-mini .feature-kicker { margin-bottom: var(--sp-xs); }
.feature-mini h3 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: var(--sp-sm); line-height: 1.3; }
.feature-mini p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* Roadmap note */
.roadmap-note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-top: var(--sp-xxl);
  padding: var(--sp-lg) var(--sp-xl);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.roadmap-badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--accent-surface);
  color: var(--accent-text);
  border: 1px solid var(--border-strong);
}
.roadmap-note p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; flex: 1; min-width: 260px; }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-lg);
  position: relative;
}
.step { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  margin: 0 auto var(--sp-md);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-900);
  background: var(--grad-gold);
  box-shadow: var(--shadow-glow);
  position: relative;
  z-index: 2;
}
.step-body h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: var(--sp-sm); line-height: 1.3; }
.step-body p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
/* connector line on wide screens */
.steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
  z-index: 0;
}
.how-foot {
  text-align: center;
  margin-top: var(--sp-xxl);
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-soft);
}
.how-cta { text-align: center; margin-top: var(--sp-lg); }

/* ==========================================================================
   SECURITY
   ========================================================================== */
.security { background: var(--bg-elev); border-block: 1px solid var(--border); }
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}
.security-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl) var(--sp-lg);
  transition: transform var(--dur-norm) var(--ease-out), border-color var(--dur-norm) var(--ease-out), box-shadow var(--dur-norm) var(--ease-out);
}
.security-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.security-icon {
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--accent-surface);
  color: var(--accent-text);
  margin-bottom: var(--sp-md);
}
.security-card h3 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: var(--sp-sm); line-height: 1.3; }
.security-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }

.security-honesty {
  margin-top: var(--sp-xl);
  padding: var(--sp-lg) var(--sp-xl);
  border-radius: var(--r-lg);
  background: var(--accent-surface);
  border: 1px solid var(--border-strong);
}
.security-honesty p { font-size: 14.5px; color: var(--text-soft); line-height: 1.6; }
.security-disclaimer {
  margin-top: var(--sp-lg);
  font-size: 13px;
  font-style: italic;
  color: var(--text-faint);
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  line-height: 1.6;
}
.security-cta { text-align: center; margin-top: var(--sp-lg); }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: var(--sp-xxl) var(--sp-xl) var(--sp-xl);
}
.price-card.popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-surface), var(--surface) 22%);
  box-shadow: var(--shadow-glow);
}
.badge-popular {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-gold);
  color: var(--gold-900);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 16px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.price-card-head { text-align: center; margin-bottom: var(--sp-md); }
.plan-name { font-size: 18px; font-weight: 700; color: var(--text); }
.plan-tag { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.plan-price {
  text-align: center;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-top: var(--sp-sm);
}
.plan-currency { font-size: 22px; color: var(--text-muted); }
.plan-price > .tnum { font-size: 48px; line-height: 1; letter-spacing: -1px; }
.plan-period { font-size: 18px; color: var(--text-muted); font-weight: 500; }
.plan-plus { text-align: center; font-size: 16px; font-weight: 600; color: var(--accent-text); margin-top: var(--sp-sm); }
.plan-desc { text-align: center; font-size: 13.5px; color: var(--text-muted); margin-top: var(--sp-xs); }

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: var(--sp-lg) 0;
  padding: var(--sp-lg) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.4;
}
.plan-features svg { color: var(--save-color); flex-shrink: 0; margin-top: 2px; }
.price-reassure { text-align: center; font-size: 12.5px; color: var(--text-muted); margin-top: var(--sp-md); }

.price-side { display: flex; flex-direction: column; gap: var(--sp-lg); }

.price-table-wrap, .calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
}
.price-table-wrap h3, .calc h3 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: var(--sp-md); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.price-table th, .price-table td {
  text-align: left;
  padding: 11px 10px;
  font-size: 13.5px;
}
.price-table th { font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.price-table td { color: var(--text-soft); border-bottom: 1px solid var(--border); }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table .strong { color: var(--text); font-weight: 700; }
.price-table .muted { color: var(--text-muted); }
.price-table .save { color: var(--save-color); font-weight: 700; }
.table-note { font-size: 12px; color: var(--text-faint); margin-top: var(--sp-md); line-height: 1.5; }

/* Calculator */
.calc-intro { font-size: 13.5px; color: var(--text-muted); margin-top: -8px; margin-bottom: var(--sp-md); }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); margin-bottom: var(--sp-lg); }
.calc-field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: var(--sp-xs); }
.calc-field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.calc-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-surface);
}
.calc-results { display: flex; flex-direction: column; gap: var(--sp-sm); }
.calc-line {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label value" "formula value";
  align-items: center;
  gap: 2px var(--sp-md);
  padding: 12px var(--sp-md);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.calc-line > span:first-child { grid-area: label; font-size: 14px; font-weight: 500; color: var(--text-soft); }
.calc-formula { grid-area: formula; font-size: 11.5px; color: var(--text-faint); }
.calc-line strong { grid-area: value; font-size: 18px; font-weight: 700; color: var(--text); }
.calc-line.highlight { background: var(--accent-surface); border: 1px solid var(--border-strong); }
.calc-line .save { color: var(--save-color); }
.calc-foot { font-size: 12px; color: var(--text-faint); margin-top: var(--sp-md); line-height: 1.5; font-style: italic; }

.pricing-foot {
  text-align: center;
  margin-top: var(--sp-xxl);
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--bg-elev); border-block: 1px solid var(--border); }
.faq-container { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: var(--sp-sm); }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform var(--dur-norm) var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(225deg); border-color: var(--accent); }
.faq-item summary:hover { color: var(--accent-text); }
.faq-body { padding: 0 var(--sp-lg) var(--sp-lg); }
.faq-body p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.faq-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.faq-cta {
  text-align: center;
  margin-top: var(--sp-xl);
  font-size: 15px;
  color: var(--text-muted);
}
.faq-cta a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 6px;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-final { padding-bottom: var(--sp-xxl); }
.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--grad-aurora);
  border: 1px solid var(--gold-800);
  border-radius: var(--r-xl);
  padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-glow {
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  max-width: 120%;
  background: radial-gradient(circle, rgba(212,165,116,0.28), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card .eyebrow { background: rgba(212,165,116,0.15); border-color: rgba(212,165,116,0.3); color: var(--gold-300); }
.cta-card h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--slate-50);
  margin-top: var(--sp-md);
}
.cta-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
  text-align: left;
}
.cta-path {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(212,165,116,0.2);
  border-radius: var(--r-lg);
  padding: var(--sp-xl) var(--sp-lg);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-norm) var(--ease-out), border-color var(--dur-norm) var(--ease-out);
}
.cta-path:hover { transform: translateY(-4px); border-color: rgba(212,165,116,0.45); }
.path-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: rgba(212,165,116,0.18);
  color: var(--gold-300);
  margin-bottom: var(--sp-md);
}
.cta-path h3 { font-size: 17px; font-weight: 600; color: var(--slate-50); margin-bottom: var(--sp-sm); }
.cta-path p { font-size: 14px; color: var(--slate-300); line-height: 1.5; margin-bottom: var(--sp-lg); flex: 1; }
.cta-path .btn-outline { color: var(--slate-50); border-color: rgba(212,165,116,0.4); }
.cta-path .btn-outline:hover { color: var(--gold-300); border-color: var(--gold-400); background: rgba(212,165,116,0.12); }
.cta-micro { font-size: 13.5px; color: var(--slate-400); margin-top: var(--sp-xl); }

/* QR card */
.qr-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  text-align: left;
  margin-top: var(--sp-xxl);
  padding: clamp(24px, 4vw, 40px);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(212,165,116,0.22);
  border-radius: var(--r-lg);
}
.qr-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--sp-sm);
}
.qr-title { font-size: clamp(20px, 3vw, 24px); font-weight: 700; color: var(--slate-50); margin-bottom: var(--sp-sm); line-height: 1.25; }
.qr-desc { font-size: 15px; color: var(--slate-300); line-height: 1.6; margin-bottom: var(--sp-md); }
.qr-steps { display: flex; flex-direction: column; gap: var(--sp-sm); counter-reset: qr; }
.qr-steps li {
  position: relative;
  padding-left: 32px;
  font-size: 14px;
  color: var(--slate-300);
  line-height: 1.5;
  counter-increment: qr;
}
.qr-steps li::before {
  content: counter(qr);
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  background: rgba(212,165,116,0.2);
  color: var(--gold-300);
}
.qr-steps a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 2px; }
.qr-wrap { text-align: center; }
.qr-wrap img {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto var(--sp-md);
  background: var(--white);
  padding: 14px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.qr-foot { font-size: 12px; color: var(--slate-400); }
.qr-alt { font-size: 13px; color: var(--text-muted); margin-top: var(--sp-md); }
.qr-alt a { color: var(--accent-text); text-decoration: underline; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding-block: var(--sp-xxl) var(--sp-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--border);
}
.foot-brand .brand { margin-bottom: var(--sp-md); }
.foot-brand .brand-mark { width: 36px; height: 36px; border-radius: 9px; }
.foot-tagline { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: var(--sp-md); }
.foot-cred { display: flex; flex-direction: column; gap: 6px; }
.foot-cred li {
  font-size: 12.5px;
  color: var(--text-faint);
  padding-left: 18px;
  position: relative;
}
.foot-cred li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent-surface);
  border: 1px solid var(--accent);
}
.site-footer h4 { font-size: 13px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: var(--sp-md); }
.site-footer nav ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a, .foot-contact a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.site-footer nav a:hover, .foot-contact a:hover { color: var(--accent-text); }
.foot-contact p { font-size: 14px; margin-bottom: var(--sp-sm); }
.foot-contact .muted { color: var(--text-faint); }
.muted { color: var(--text-faint); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding-top: var(--sp-lg);
}
.foot-bottom p { font-size: 13px; color: var(--text-muted); }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   FOCUS VISIBLE (a11y)
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: var(--sp-xl); }
  .steps::before { display: none; }
  .cta-paths { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }
  .nav-actions .btn-accent { display: none; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-mockup { margin-top: var(--sp-md); }

  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }
  .feature-visual { order: 2; }
  /* Moved from 1024px so the trio stays 3-up on mid tablets (~1000px)
     and collapses in step with the other feature rows. */
  .feature-trio { grid-template-columns: 1fr; }

  .pricing-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* Dedicated tablet/large-phone tuning (375–768px DevTools targets). */
@media (max-width: 768px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .phone { width: clamp(220px, 80vw, 280px); }
}

@media (max-width: 560px) {
  .container { padding-inline: var(--sp-md); }
  section { padding-block: var(--sp-xxl); }
  .pain-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .calc-fields { grid-template-columns: 1fr; }
  .qr-card { grid-template-columns: 1fr; text-align: center; }
  .qr-steps { text-align: left; max-width: 320px; margin-inline: auto; }
  .qr-wrap { order: -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; }
  /* Tighter gaps so 4-up cards breathe when stacked. */
  .pain-grid, .security-grid, .feature-trio { gap: var(--sp-md); }
  .phone { width: clamp(200px, 78vw, 250px); }
}

/* ==========================================================================
   PREFERS REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  /* Global motion kill-switch — !important needed to beat inline/element
     animation declarations across the whole tree. */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Same specificity + later source order than `.reveal` base, so the
     reveal state resolves to visible without needing !important. */
  .reveal { opacity: 1; transform: none; }
  .phone { animation: none; }
  .eyebrow-dot { animation: none; }
  .hero-ctas .btn-accent.btn-lg { animation: none; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .site-header, .hero-glow, .phone-glow, .cta-glow, .theme-toggle, .menu-toggle { display: none; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
