/* ═══════════════════════════════════════════════════════════════
   KOSMOID — Astroship-inspired styling
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Original Kosmoid palette ── */
  --navy: #132058;
  --navy-mid: #1F3A8F;
  --blue: #2B5DBF;
  --sky: #2BB5E0;
  --sky-light: #EEF4FB;
  --mid-text: #3A5A8A;
  --light-text: #6A8AAA;
  --card-bg: #DCE9F7;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;

  /* ── Mapped aliases (so existing var() refs keep working) ── */
  --indigo: #2B5DBF;
  --indigo-hover: #1F3A8F;
  --indigo-50: #EEF4FB;
  --indigo-100: #DCE9F7;
  --indigo-200: rgba(43,93,191,0.3);
  --indigo-900: #132058;
  --purple-100: #EEF4FB;
  --purple-200: #DCE9F7;
  --purple-600: #1F3A8F;
  --orange-500: #f59e0b;
  --orange-700: #d97706;
  --red-500: #ef4444;
  --slate-50: #f8fbfe;
  --slate-100: #EEF4FB;
  --slate-200: #DCE9F7;
  --slate-300: #b8ceea;
  --slate-400: #6A8AAA;
  --slate-500: #6A8AAA;
  --slate-600: #3A5A8A;
  --slate-700: #1F3A8F;
  --slate-800: #132058;
  --neutral-200: #DCE9F7;
  --neutral-500: #6A8AAA;
  --neutral-600: #3A5A8A;
  --neutral-800: #132058;
  --gray-50: #f5f8fd;
  --gray-100: #EEF4FB;
  --gray-200: #DCE9F7;
  --gray-600: #3A5A8A;
  --gray-800: #132058;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }


body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--white);
  color: var(--slate-800);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

/* ── HEADER / NAV ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  padding: 20px 0;
  will-change: transform;
}

header.scrolled {
  padding: 8px 0;
  background: rgba(255,255,255,0.8);
  border-bottom-color: var(--gray-200);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 18px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 14px;
  color: var(--gray-600);
  padding: 8px 12px;
  border-radius: 9999px;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--indigo);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-login {
  font-size: 14px;
  color: var(--gray-600);
  padding: 10px 20px;
  border-radius: 9999px;
  background: var(--gray-100);
  transition: background 0.15s;
}

.btn-login:hover { background: var(--gray-200); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  padding: 10px 28px;
  border-radius: 9999px;
  background: var(--indigo);
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--indigo-hover); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--indigo);
  padding: 10px 28px;
  border-radius: 9999px;
  background: var(--white);
  border: 2px solid var(--indigo);
  transition: background 0.15s;
  cursor: pointer;
}

.btn-outline:hover { background: var(--indigo-50); }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--indigo-900);
  padding: 10px 28px;
  border-radius: 9999px;
  background: var(--white);
  border: 2px solid transparent;
  transition: opacity 0.15s;
  cursor: pointer;
}

.btn-white:hover { opacity: 0.9; }

.btn-sm {
  font-size: 13px;
  padding: 8px 16px;
}

.btn-arrow {
  transition: transform 0.15s;
}

.btn-primary:hover .btn-arrow,
.btn-outline:hover .btn-arrow {
  transform: translateX(2px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--gray-800);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 20px 80px;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

/* Decorative gradient blurs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  opacity: 0.6;
}

.hero::before {
  background: radial-gradient(circle, var(--indigo-200), transparent);
  top: -100px;
  right: 10%;
}

.hero::after {
  background: radial-gradient(circle, var(--purple-200), transparent);
  bottom: -100px;
  left: 5%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--indigo-100);
  border: 1px solid var(--indigo-200);
  color: var(--indigo);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--slate-800);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin: 0 auto 20px;
  text-wrap: balance;
}

.hero h1 .accent { color: var(--indigo); }

.hero-sub {
  font-size: 18px;
  color: var(--slate-500);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
  text-wrap: pretty;
}

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

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--slate-200);
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--indigo);
}
.hero-stat .label {
  font-size: 13px;
  color: var(--slate-500);
  margin-top: 4px;
}

/* ── SECTIONS ── */
.section {
  padding: 96px 20px;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple-100);
  border: 1px solid var(--purple-200);
  color: var(--purple-600);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-badge.indigo {
  background: var(--indigo-100);
  border-color: var(--indigo-200);
  color: var(--indigo);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-wrap: balance;
}

.section-sub {
  font-size: 18px;
  color: var(--slate-500);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
  text-wrap: pretty;
}

.section-center {
  text-align: center;
}

.section-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.bg-gray { background: var(--gray-50); }
.bg-slate { background: var(--slate-100); }
.bg-white { background: var(--white); }

/* ── SCOPE / ENTITY GRID ── */
.scope-note {
  font-size: 13px;
  color: var(--slate-400);
  line-height: 1.6;
  margin-bottom: 24px;
}

.entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.entity-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.entity-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-color: var(--slate-200);
}

.entity-card.active {
  border-color: var(--indigo);
  background: var(--indigo-50);
  box-shadow: 0 4px 24px rgba(43,93,191,0.12);
}

.entity-card .ec-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--indigo);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.entity-card .ec-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 4px;
}

.entity-card .ec-desc {
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.5;
}

.entity-card .ec-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--indigo-100);
  color: var(--indigo);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

.entity-detail {
  margin-top: 32px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--indigo-200);
  padding: 32px;
  display: none;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 4px 24px rgba(43,93,191,0.08);
}

.entity-detail.visible { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.entity-detail h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 8px;
}

.entity-detail .ed-sub {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 24px;
}

.ed-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ed-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ed-col ul { list-style: none; }
.ed-col ul li {
  font-size: 14px;
  color: var(--slate-600);
  padding: 6px 0;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  gap: 8px;
}

.ed-col ul li::before {
  content: '→';
  color: var(--indigo);
  flex-shrink: 0;
  font-weight: 600;
}

.ed-insight {
  margin-top: 16px;
  padding: 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.6;
}

.ed-insight strong { color: var(--slate-800); }

.btn-close-detail {
  margin-top: 20px;
  padding: 8px 20px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 9999px;
  cursor: pointer;
  font-size: 13px;
  color: var(--slate-600);
  transition: all 0.15s;
}

.btn-close-detail:hover {
  background: var(--gray-50);
  border-color: var(--slate-200);
}

/* ── REGULATORY TIMELINE ── */
.reg-timeline { display: flex; gap: 0; position: relative; }

/* Line segments between dots — drawn per item, stop at dot edges */
.reg-item { flex: 1; text-align: center; position: relative; z-index: 1; }

/* Right half of line (from dot edge to cell edge) */
.reg-item::before {
  content: '';
  position: absolute;
  top: 35px;
  left: calc(50% + 36px); /* dot radius = 36px */
  right: 0;
  height: 3px;
  background: var(--slate-300);
  z-index: 0;
}
.reg-item:last-child::before { display: none; }

/* Left half of line (from cell edge to dot edge) */
.reg-item::after {
  content: '';
  position: absolute;
  top: 35px;
  left: 0;
  right: calc(50% + 36px);
  height: 3px;
  background: var(--slate-300);
  z-index: 0;
}
.reg-item:first-child::after { display: none; }

/* Color each segment to create gradient effect */
.reg-item:nth-child(1)::before { background: var(--slate-400); }
.reg-item:nth-child(2)::after  { background: var(--slate-400); }
.reg-item:nth-child(2)::before { background: var(--slate-400); }
.reg-item:nth-child(3)::after  { background: var(--slate-400); }
.reg-item:nth-child(3)::before { background: var(--indigo-200); }
.reg-item:nth-child(4)::after  { background: var(--indigo-200); }
.reg-item:nth-child(4)::before { background: var(--indigo); }
.reg-item:nth-child(5)::after  { background: var(--indigo); }

.reg-dot {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; color: white;
  position: relative; z-index: 2;
}
.reg-dot.past { background: var(--slate-500); }
.reg-dot.near { background: var(--indigo); opacity: 0.7; }
.reg-dot.now { background: var(--indigo); box-shadow: 0 0 0 6px rgba(43,93,191,0.2); animation: pulse-halo 2s ease-in-out infinite; }
.reg-dot.future { background: var(--slate-400); }

@keyframes pulse-halo {
  0%, 100% { box-shadow: 0 0 0 6px rgba(43,93,191,0.2); }
  50% { box-shadow: 0 0 0 14px rgba(43,93,191,0.08); }
}

.reg-item .reg-year { font-size: 12px; color: var(--slate-500); margin-bottom: 4px; }
.reg-item .reg-name { font-size: 15px; font-weight: 700; color: var(--slate-800); margin-bottom: 8px; }
.reg-item .reg-desc { font-size: 12.5px; color: var(--slate-500); max-width: 160px; margin: 0 auto; line-height: 1.5; }

.reg-impact {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.reg-impact-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
}

.reg-impact-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.reg-impact-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 8px;
}

.reg-impact-card p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ── MODULES ── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.module-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.2s;
  cursor: default;
}

.module-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.module-num {
  width: 40px;
  height: 40px;
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(43,93,191,0.1);
}

.module-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 8px;
}

.module-card p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.6;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.module-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--indigo);
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  padding: 3px 10px;
  border-radius: 9999px;
}

/* ── LEGAL DEFENSIBILITY ── */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.legal-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
}

.legal-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.legal-card .lc-icon {
  font-size: 24px;
  margin-bottom: 14px;
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(43,93,191,0.1);
}

.legal-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 8px;
}

.legal-card p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.6;
}

/* ── SOCIAL PROOF ── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.proof-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--gray-200);
  position: relative;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.proof-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.proof-card::before {
  content: '\201C';
  position: absolute;
  top: 48px;
  right: 28px;
  font-size: 72px;
  color: var(--indigo);
  opacity: 0.08;
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 0;
}

.proof-sector {
  display: inline-block;
  background: var(--indigo-100);
  border: 1px solid var(--indigo-200);
  color: var(--indigo);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.proof-card blockquote {
  font-size: 15px;
  color: var(--slate-700);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
  z-index: 1;
  text-wrap: pretty;
}

.proof-outcomes { margin-bottom: 20px; }

.proof-outcome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-200);
  font-size: 13px;
  color: var(--slate-500);
}

.proof-outcome .po-val {
  font-weight: 700;
  color: var(--indigo);
  min-width: 80px;
}

.proof-persona {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proof-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.proof-persona .pp-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-800);
}

.proof-persona .pp-role {
  font-size: 12px;
  color: var(--slate-500);
}

.proof-disclaimer {
  font-size: 12px;
  color: var(--slate-500);
  font-style: italic;
  margin-top: 32px;
  text-align: center;
  padding: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}

/* ── PRICING ── */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.tier-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.2s;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.tier-card .tier-features {
  flex: 1;
}

.tier-card.featured {
  border: 2px solid var(--indigo);
  box-shadow: 0 8px 24px rgba(43,93,191,0.15);
  transform: translateY(-8px);
}

.tier-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--indigo);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 9999px;
  white-space: nowrap;
}

.tier-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tier-name.indigo { color: var(--indigo); }
.tier-name.orange { color: var(--orange-700); }
.tier-name.purple { color: var(--purple-600); }
.tier-name.slate { color: var(--slate-600); }

.tier-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.tier-price-sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--neutral-500);
}

.tier-price-from {
  font-size: 10px;
  font-weight: 400;
  color: var(--neutral-500);
  white-space: nowrap;
  margin-left: 6px;
}

.tier-who {
  font-size: 13px;
  color: var(--neutral-500);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-200);
}

.tier-features { list-style: none; }
.tier-features li {
  font-size: 14px;
  color: var(--neutral-800);
  padding: 6px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.tier-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232B5DBF'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.tier-card .tier-cta {
  margin-top: 24px;
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ── PRICING COMPARISON TABLE ── */
.comparison-wrap {
  margin-top: 64px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  position: relative;
  /* overflow visible on large screens so sticky works */
  overflow: visible;
}

.comparison-inner {
  min-width: max-content;
}

.comparison-header {
  position: sticky;
  top: 48px; /* matches collapsed nav height (py-2 = 0.5rem*2 + content ~48px) */
  z-index: 10;
  padding: 24px 0;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  border-radius: 8px 8px 0 0;
}

.comparison-header .comp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 0;
  align-items: center;
  background: var(--white);
}

.comp-header-cell {
  padding: 0 20px;
  text-align: center;
}

.comp-header-cell .comp-plan-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.comp-header-cell .comp-plan-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--slate-800);
  margin-top: 4px;
}

.comp-header-cell .comp-plan-price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--neutral-600);
}

.comp-header-cell .comp-cta {
  margin-top: 12px;
}

.comp-header-cell .comp-cta a {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.15s;
}

.comp-cta-outline {
  color: var(--indigo);
  border: 2px solid var(--indigo);
  background: var(--white);
}

.comp-cta-outline:hover {
  background: var(--indigo-50) !important;
}

.comp-cta-filled {
  color: var(--white) !important;
  border: 2px solid var(--indigo);
  background: var(--indigo) !important;
}

.comp-cta-filled:hover {
  background: var(--indigo-hover) !important;
}

.comp-header-label {
  text-align: left;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-500);
}

.comparison-body .comp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 0;
  align-items: center;
  border-bottom: 1px solid var(--slate-200);
}

.comparison-body .comp-row:nth-child(odd) {
  background: var(--slate-50);
}

.comparison-body .comp-row:last-child {
  border-bottom: none;
}

.comp-cell {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--slate-600);
  text-align: center;
}

.comp-cell:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--slate-800);
}

.comp-cell .check {
  color: var(--indigo);
  display: inline-block;
  vertical-align: middle;
}

.comp-cell .cross {
  color: var(--slate-300);
  font-size: 18px;
}

.lc-icon svg {
  color: var(--indigo);
}

/* ── TRIAL BAR ── */
.trial-bar {
  margin-top: 48px;
  background: var(--indigo-50);
  border: 1px solid var(--indigo-200);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.trial-bar p {
  color: var(--slate-700);
  font-size: 15px;
}

.trial-bar p strong { color: var(--indigo); }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(to bottom left, var(--indigo-900), var(--indigo));
  padding: 80px 20px;
  text-align: center;
}

.cta-section h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  text-wrap: pretty;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Override for outline button inside CTA (dark bg) */
.cta-section .btn-outline {
  color: var(--white);
  background: transparent;
  border-color: rgba(255,255,255,0.4);
}

.cta-section .btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

/* ── FOOTER ── */
footer {
  background: var(--slate-100);
  border-top: 1px solid var(--slate-200);
  padding: 56px 20px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-logo {
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 20px;
  width: auto;
  opacity: 0.7;
}

.footer-brand p {
  font-size: 14px;
  color: var(--slate-600);
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 16px;
}

.footer-col span,
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--slate-600);
  padding: 4px 0;
}

.footer-col a {
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--indigo); }

.footer-company {
  color: var(--slate-400) !important;
  font-size: 13px !important;
}

.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
  text-align: center;
  font-size: 13px;
  color: var(--slate-500);
}

/* ── PAGE HEADER (for inner pages) ── */
.page-header {
  padding: 48px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 40px;
  font-weight: 700;
  color: var(--slate-800);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-wrap: balance;
}

.page-header p {
  font-size: 18px;
  color: var(--slate-500);
  max-width: 640px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tier-card.featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .comparison-wrap {
    overflow-x: auto;
  }
  .comparison-inner {
    min-width: 700px;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; order: 99; margin-left: auto; }
  .nav-actions { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open a {
    padding: 12px 0;
  }

  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 24px; }
  .section-title { font-size: 28px; }

  .modules-grid,
  .tiers-grid,
  .proof-grid,
  .reg-impact,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .ed-cols { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; align-items: center; }

  .reg-timeline {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    padding-left: 36px; /* center of dot column */
  }

  /* Repurpose ::before as vertical line, hide ::after */
  .reg-item::after { display: none !important; }

  .reg-item {
    width: 100%;
    position: relative;
    padding-left: 52px;
    padding-bottom: 40px;
    text-align: left;
  }
  .reg-item:last-child { padding-bottom: 0; }

  /* Vertical line: on the item, from below dot to bottom of item */
  .reg-item::before {
    display: block !important;
    position: absolute !important;
    top: 56px !important;       /* starts at bottom of dot */
    bottom: 0 !important;       /* stretches to end of item (into padding) */
    left: 0 !important;         /* aligned with dot center */
    right: auto !important;
    width: 3px !important;
    height: auto !important;
    transform: none !important;
    background: var(--slate-300);
  }
  .reg-item:last-child::before { display: none !important; }

  .reg-item:nth-child(1)::before { background: var(--slate-400) !important; }
  .reg-item:nth-child(2)::before { background: var(--slate-400) !important; }
  .reg-item:nth-child(3)::before { background: var(--indigo-200) !important; }
  .reg-item:nth-child(4)::before { background: var(--indigo) !important; }

  /* Dot: pinned to the left */
  .reg-item .reg-dot {
    position: absolute;
    left: -28px;
    top: 0;
    width: 56px;
    height: 56px;
    margin: 0;
    font-size: 9px;
  }

  /* Text content: aligned right of dot */
  .reg-item .reg-year { margin-top: 4px; }
  .reg-item .reg-desc { margin: 0; max-width: none; }

  .footer-inner { grid-template-columns: 1fr; }

  .comparison-header .comp-row,
  .comparison-body .comp-row {
    min-width: 700px;
  }
}
