/* =========================================================
   ENTRRO v7 — Neon-noir design system
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Tokens ---------- */
:root {
  --bg-0: #06060c;
  --bg-1: #0b0b14;
  --bg-2: #11111d;
  --bg-3: #1a1a2a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text-0: #f5f5fa;
  --text-1: #c9c9d6;
  --text-2: #8a8aa0;
  --text-3: #5a5a72;

  /* Promoter accents — electric cyan/violet */
  --accent-p1: #00e5ff;
  --accent-p2: #6a5cff;
  --accent-p3: #ff2db6;
  --p-glow: 0 0 40px rgba(0, 229, 255, 0.45);
  --p-grad: linear-gradient(135deg, #00e5ff 0%, #6a5cff 50%, #ff2db6 100%);

  /* Business accents — champagne / classic gold / antique gold */
  --accent-b1: #ffe69b;
  --accent-b2: #d4af37;
  --accent-b3: #a17a1b;
  --b-glow: 0 0 40px rgba(212, 175, 55, 0.5);
  --b-grad: linear-gradient(135deg, #ffe69b 0%, #d4af37 50%, #a17a1b 100%);

  /* Active set — defaults to promoter, overridden on body.business */
  --a1: var(--accent-p1);
  --a2: var(--accent-p2);
  --a3: var(--accent-p3);
  --a-glow: var(--p-glow);
  --a-grad: var(--p-grad);

  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.55);

  --container: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

body.business {
  --a1: var(--accent-b1);
  --a2: var(--accent-b2);
  --a3: var(--accent-b3);
  --a-glow: var(--b-glow);
  --a-grad: var(--b-grad);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { background: var(--bg-0); }
body {
  margin: 0;
  background: transparent;
  color: var(--text-0);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Background ambient ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-0);
  overflow: hidden;
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.bg-orb.o1 { top: -10%; left: -10%; width: 700px; height: 700px; background: radial-gradient(circle, var(--a1), transparent 60%); animation: drift 24s ease-in-out infinite; }
.bg-orb.o2 { top: 30%; right: -15%; width: 600px; height: 600px; background: radial-gradient(circle, var(--a2), transparent 60%); animation: drift 28s ease-in-out infinite reverse; }
.bg-orb.o3 { bottom: -20%; left: 25%; width: 800px; height: 800px; background: radial-gradient(circle, var(--a3), transparent 60%); animation: drift 32s ease-in-out infinite; opacity: 0.4;}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.1); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(6, 6, 12, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--a-grad);
  position: relative;
  box-shadow: var(--a-glow);
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg-0);
  border-radius: 5px;
}
.brand-mark::before {
  content: 'E';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  z-index: 1;
  background: var(--a-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub {
  font-size: 11px;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-1);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: #fff; }

.nav-spacer { flex: 1; }

/* Side toggle */
.side-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  position: relative;
}
.side-toggle a {
  position: relative;
  z-index: 1;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  border-radius: 999px;
  transition: color 0.25s var(--ease);
}
.side-toggle a.active { color: #06060c; }
.side-toggle .toggle-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--a-grad);
  box-shadow: var(--a-glow);
  transition: left 0.35s var(--ease), width 0.35s var(--ease);
  z-index: 0;
}
/* Pill defaults to right half on the Business page (where second link is active) */
body.business .side-toggle .toggle-pill { left: 50%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--a-grad);
  color: #06060c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--a-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 60px rgba(0, 229, 255, 0.6); }
body.business .btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 60px rgba(212, 175, 55, 0.65); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  color: var(--text-0);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); }
.btn-arrow svg { transition: transform 0.25s var(--ease); }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
section { position: relative; padding: 96px 0; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-1);
  text-transform: uppercase;
}
.section-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--a1);
  box-shadow: 0 0 10px var(--a1);
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 18px 0 14px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-1);
  max-width: 640px;
  line-height: 1.55;
}
.eyebrow-grad {
  background: var(--a-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero { padding: 80px 0 60px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 24px 0 24px;
}
.hero h1 .grad { background: var(--a-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead {
  font-size: 20px;
  color: var(--text-1);
  max-width: 540px;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta .m {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta .m .v {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-meta .m .l { font-size: 13px; color: var(--text-2); }

/* Hero visual — phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}
.phone {
  width: 320px;
  height: 640px;
  background: linear-gradient(180deg, #181828, #0a0a14);
  border-radius: 44px;
  padding: 14px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255,255,255,0.02);
  position: relative;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}
.phone::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #06060c;
  border-radius: 14px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0c0c18 0%, #06060c 100%);
  border-radius: 32px;
  padding: 50px 18px 18px;
  overflow: hidden;
  position: relative;
}
.phone-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}
.phone-card .row { display: flex; align-items: center; gap: 10px; }
.phone-card .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--a-grad); flex-shrink: 0; }
.phone-card .ttl { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2; }
.phone-card .meta { font-size: 11px; color: var(--text-2); margin-top: 2px;}
.phone-card .amt { margin-left: auto; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--a1); font-size: 15px; }
.phone-card .bar { margin-top: 10px; height: 4px; background: rgba(255,255,255,0.06); border-radius: 99px; position: relative; overflow: hidden;}
.phone-card .bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--w, 70%);
  background: var(--a-grad);
  border-radius: 99px;
}
.phone-balance {
  background: var(--a-grad);
  color: #06060c;
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.phone-balance::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.phone-balance .l { font-size: 11px; opacity: 0.7; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;}
.phone-balance .v { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 30px; line-height: 1.1; margin-top: 2px;}

/* Hero side decorations */
.hero-spark {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-2);
  background: rgba(6, 6, 12, 0.75);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.hero-spark .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  margin-right: 6px;
  box-shadow: 0 0 8px #34d399;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-spark.s1 { top: 12%; left: -30px; animation: floaty 7s ease-in-out infinite; }
.hero-spark.s2 { bottom: 18%; right: -10px; animation: floaty 8s ease-in-out infinite 0.5s; }
.hero-spark.s3 { top: 48%; right: -50px; animation: floaty 9s ease-in-out infinite 1s; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: scroll 36s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-1);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 500;
}
.marquee-item .num {
  background: var(--a-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: 24px;
}
.marquee-sep {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.step-card {
  position: relative;
  padding: 32px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.step-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--a-grad);
  border-radius: var(--radius-lg);
  opacity: 0;
  z-index: -1;
  filter: blur(20px);
  transition: opacity 0.4s var(--ease);
}
.step-card:hover::before { opacity: 0.18; }
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--a-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
}
.step-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.step-card p {
  color: var(--text-1);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Calculator ---------- */
.calc {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}
.calc::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--a1), transparent 60%);
  opacity: 0.15;
  filter: blur(60px);
  pointer-events: none;
}
.calc-controls .ctrl { margin-bottom: 28px; }
.calc-controls label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.calc-controls .val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--a-grad);
  cursor: pointer;
  box-shadow: var(--a-glow);
  border: 3px solid var(--bg-0);
}
.slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--a1);
  cursor: pointer;
  box-shadow: var(--a-glow);
  border: 3px solid var(--bg-0);
}

.calc-output {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}
.calc-output .l {
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.calc-output .v {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 12px 0 6px;
  background: var(--a-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.calc-output .sub {
  color: var(--text-1);
  font-size: 14px;
}
.calc-disclaimer { margin-top: 18px; font-size: 12px; color: var(--text-3); }

/* ---------- Personas / Industries grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.persona {
  padding: 26px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.persona:hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}
.persona-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--a-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--a-glow);
}
.persona-icon svg { width: 22px; height: 22px; color: #06060c; }
.persona h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}
.persona p { color: var(--text-1); font-size: 14px; margin: 0; line-height: 1.5; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}
.feature {
  background: var(--bg-1);
  padding: 36px 32px;
  transition: background 0.3s var(--ease);
}
.feature:hover { background: var(--bg-2); }
.feature-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--a1);
}
.feature-icon svg { width: 18px; height: 18px; }
.feature h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.feature p { color: var(--text-1); font-size: 15px; line-height: 1.55; margin: 0; }

/* ---------- Compare flip ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  align-items: stretch;
}
.compare-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  position: relative;
}
.compare-card.p { border-color: rgba(0, 229, 255, 0.18); }
.compare-card.b { border-color: rgba(212, 175, 55, 0.22); }
.compare-card .tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.compare-card.p .tag { background: rgba(0, 229, 255, 0.12); color: var(--accent-p1); }
.compare-card.b .tag { background: rgba(212, 175, 55, 0.14); color: var(--accent-b1); }
.compare-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
}
.compare-card ul { padding: 16px 0 0; margin: 0; list-style: none; }
.compare-card li {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-1);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.compare-card li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 11px;
}
.compare-card.p li::before { background-color: rgba(0, 229, 255, 0.18); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>"); }
.compare-card.b li::before { background-color: rgba(212, 175, 55, 0.20); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffe69b' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>"); }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.testimonial {
  padding: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.testimonial blockquote {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-0);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}
.testimonial blockquote::before {
  content: '"';
  font-size: 60px;
  line-height: 0;
  color: var(--a1);
  font-family: serif;
  margin-right: 4px;
  vertical-align: -28px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-author .av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--a-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #06060c;
  font-size: 14px;
}
.testimonial-author .nm { font-weight: 600; font-size: 14px; }
.testimonial-author .rl { font-size: 13px; color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; max-width: 800px; margin-left: auto; margin-right: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--text-2);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--a1); }
.faq-item summary:hover { color: var(--a1); }
.faq-item p {
  margin: 0 0 24px;
  color: var(--text-1);
  line-height: 1.65;
  font-size: 16px;
  max-width: 700px;
}

/* ---------- CTA ---------- */
.cta-block {
  margin: 96px 0;
  padding: 80px 56px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--a-grad);
  filter: blur(80px);
  opacity: 0.18;
  z-index: -1;
}
.cta-block h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.cta-block p {
  font-size: 18px;
  color: var(--text-1);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 18px;
}
.footer-col a {
  display: block;
  color: var(--text-1);
  font-size: 14.5px;
  padding: 5px 0;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--a1); }
.footer-blurb { color: var(--text-2); font-size: 14px; max-width: 280px; margin-top: 14px; line-height: 1.55;}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.modal p { color: var(--text-1); margin: 0 0 24px; font-size: 15px; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-form input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border 0.2s var(--ease), background 0.2s var(--ease);
}
.modal-form input:focus {
  outline: none;
  background: rgba(255,255,255,0.06);
  border-color: var(--a1);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.1);
}
body.business .modal-form input:focus { box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12); }
.modal-form input::placeholder { color: var(--text-3); }
.modal-form button { margin-top: 8px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s var(--ease);
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.modal-success {
  text-align: center;
  padding: 12px 0;
}
.modal-success .ok-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--a-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--a-glow);
}

/* ---------- Reveal animations ---------- */
/* Reveal animations — additive: visible by default. JS hides briefly, IntersectionObserver re-shows on scroll-in. If JS fails, content remains visible. */
.reveal { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-stagger > * { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
body.js-ready .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
body.js-ready .reveal-stagger:not(.in) > * { opacity: 0; transform: translateY(20px); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }

/* ---------- Mobile menu button ---------- */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-open { display: none; }
.nav-toggle.open .icon-close { display: block; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed !important;
  inset: 0;
  background: rgba(6, 6, 12, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 49;
  display: none !important;
  flex-direction: column;
  padding: 80px 24px 32px;
  overflow-y: auto;
}
.mobile-drawer.open { display: flex !important; }
.mobile-drawer a {
  display: block;
  padding: 18px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}
.mobile-drawer a:hover { color: var(--a1); }
.mobile-drawer .drawer-toggle {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.mobile-drawer .drawer-toggle .l {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.mobile-drawer .drawer-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mobile-drawer .drawer-toggle-row a {
  text-align: center;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-size: 15px;
  border-bottom: 1px solid var(--line-2);
}
.mobile-drawer .drawer-toggle-row a.active {
  background: var(--a-grad);
  color: #06060c;
  border-color: transparent;
}
.mobile-drawer .drawer-cta { margin-top: 32px; }

/* Lock body scroll when drawer is open */
body.drawer-open { overflow: hidden; }

/* ---------- Responsive breakpoints ---------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 480px; }
  .nav-links { gap: 18px; margin-left: 16px; }
  .nav-links a { font-size: 13px; }
}
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid .footer-col:nth-child(5) { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Side toggle stays visible on mobile, just compact */
  .side-toggle a { padding: 6px 10px; font-size: 11.5px; }
}
/* Side-toggle stays in header on tablets and most phones, hides only on tiny screens */
@media (max-width: 500px) {
  .side-toggle { display: none; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav-inner { padding: 12px 18px; gap: 10px; }
  .container { padding: 0 18px; }
  .hero h1 { font-size: clamp(38px, 9vw, 56px); line-height: 1.02; }
  .section-title { font-size: clamp(30px, 7vw, 44px); line-height: 1.08; }
  .hero p.lead { font-size: 17px; }
  .section-sub { font-size: 16px; }
  .hero { padding: 32px 0 40px; }
  .hero-visual { min-height: 380px; margin-top: 8px; }
  .phone { width: 240px; height: 500px; }
  .hero-meta { gap: 20px; padding-top: 24px; margin-top: 28px; }
  .hero-meta .m .v { font-size: 22px; }
  .hero-meta .m .l { font-size: 11.5px; }
  .steps-grid, .cards-grid, .testimonials, .compare { grid-template-columns: 1fr; gap: 14px; }
  .features { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; padding: 24px; gap: 28px;}
  .cta-block { padding: 40px 22px; }
  .cta-block h2 { font-size: clamp(28px, 7vw, 40px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px;}
  .footer-blurb { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-spark { display: none; }
  .marquee { padding: 22px 0; }
  .marquee-item { font-size: 15px; }
  .marquee-item .num { font-size: 18px; }
  .compare-card { padding: 26px 22px; }
  .step-card { padding: 26px 22px; }
  .step-num { font-size: 44px; margin-bottom: 18px; }
  .testimonial { padding: 24px 22px; }
  .testimonial blockquote { font-size: 16px; }
  .feature { padding: 28px 24px; }
  .modal { padding: 32px 24px; }
  .modal h3 { font-size: 24px; }
  .section-title { letter-spacing: -0.02em; }
  /* Side-hustle persona grid */
  section .reveal[style*="grid-template-columns:repeat(3,1fr)"],
  section .reveal[style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* Any inline 2-column or 1.x/0.x ratio grid -> 1 column on mobile */
  section .reveal[style*="grid-template-columns:1.1fr"],
  section .reveal[style*="grid-template-columns: 1.1fr"],
  section .reveal[style*="grid-template-columns:1fr 1fr"],
  section .reveal[style*="grid-template-columns: 1fr 1fr"],
  section [style*="grid-template-columns:1.1fr"],
  section [style*="grid-template-columns: 1.1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* Stripe security section specifically — both columns full-width */
  #payments .reveal > div {
    padding: 28px !important;
  }
  /* Pricing 3-col features feature grid */
  section .features[style*="grid-template-columns: repeat(3, 1fr)"],
  section .features[style*="grid-template-columns:repeat(3, 1fr)"],
  section .features[style*="grid-template-columns: repeat(2, 1fr)"],
  section .features[style*="grid-template-columns:repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* Support page features (4-up via auto-flow → make it 1-up for clarity) */
  section .features[style*="grid-template-columns:1fr 1fr"],
  section .features[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Ensure no horizontal overflow */
  html, body { max-width: 100vw; overflow-x: hidden; }
}
@media (max-width: 560px) {
  .brand { font-size: 18px; }
  .brand-sub { display: none; }
  .btn { padding: 10px 16px; font-size: 13px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-inner { gap: 8px; }
  .phone { width: 220px; height: 460px; }
  .hero-visual { min-height: 340px; }
  .features { gap: 1px; }
  /* Persona/industry grids */
  section .reveal[style*="grid-template-columns:repeat(3,1fr)"],
  section .reveal[style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* Phone mockup tighter */
  .phone { width: 200px; height: 420px; }
  .hero-visual { min-height: 320px; }
  /* Hero stats — full width each */
  .hero-meta { gap: 14px; }
  .hero-meta .m { min-width: 100%; }
  /* Calculator output text smaller */
  .calc-output .v { font-size: clamp(36px, 9vw, 56px) !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================================================
   v21 — Mobile structural overrides (aggressive)
   Forces every multi-column grid to stack on mobile, overriding inline styles.
   =========================================================== */
@media (max-width: 768px) {
  /* === Universal kill switch for any inline grid-template-columns === */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* === Force flex-column layout on the parent rather than relying on grid === */
  section#payments > .reveal,
  section > .container > .reveal[style*="grid"],
  section .reveal[style*="display:grid"],
  section .reveal[style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Stripe security section — both column cards full-width */
  section#payments > .reveal > div {
    padding: 26px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Side-hustle persona grid (3-col) — stack into single column */
  section .reveal[style*="repeat(3"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  section .reveal[style*="repeat(3"] > div {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Site-wide grids — block them out cleanly */
  .cards-grid,
  .steps-grid,
  .testimonials,
  .compare,
  .features,
  .pricing-grid,
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .cards-grid > *,
  .steps-grid > *,
  .testimonials > *,
  .compare > *,
  .features > *,
  .pricing-grid > * {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Footer gets a bit more breathing room */
  .footer-grid { gap: 28px !important; }

  /* Hero meta stack */
  .hero-meta { flex-direction: column !important; gap: 16px !important; }
  .hero-meta .m { width: 100% !important; }

  /* Hard horizontal-overflow guard */
  html, body { max-width: 100% !important; overflow-x: hidden !important; }
  section, .container { max-width: 100% !important; overflow-x: hidden !important; }

  /* Ensure mobile-drawer never bleeds into page flow */
  .mobile-drawer { display: none !important; }
  .mobile-drawer.open { display: flex !important; }
}
