/* ═══════════════════════════════════════════════════════════
   Metadaptive AI — Design System v2
   Theme: Deep Indigo + Amber — Premium Healthcare Ops Intelligence
   Drop-in replacement for v1. All class names preserved.
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* ── Brand: Deep Violet replacing flat blue ── */
  --brand:        #6D28D9;   /* violet-700 — richer, more premium than #1D58D8 */
  --brand-dark:   #5B21B6;   /* violet-800 */
  --brand-light:  #EDE9FE;   /* violet-100 */
  --brand-mid:    #C4B5FD;   /* violet-300 */

  /* ── Backgrounds: Purple-shifted navys ── */
  --navy:         #0F0C1D;   /* almost-black with purple undertone */
  --navy-2:       #160F2E;   /* deep plum-navy */
  --navy-3:       #1E1645;   /* indigo-navy */
  --navy-4:       #271D5A;   /* mid indigo — used for table headers */

  /* ── Teal: kept as secondary signal color (referrals, health) ── */
  --teal:         #0D9488;
  --teal-light:   #CCFBF1;

  /* ── Amber: stronger presence as primary action accent ── */
  --amber:        #F59E0B;
  --amber-bright: #F59E0B;
  --amber-light:  #FEF3C7;
  --amber-deep:   #92400E;

  /* ── Surface & Layout ── */
  --bg:           #F5F3FF;   /* lavender-tinted off-white — distinct from generic gray */
  --surface:      #FFFFFF;
  --border:       #E2DDFF;   /* purple-tinted border */
  --border-dark:  #C4B5FD;

  /* ── Text ── */
  --text:         #0F0C1D;
  --muted:        #5B5380;   /* purple-gray — more sophisticated than blue-gray */
  --hint:         #9590B8;

  /* ── Status ── */
  --success:      #059669;
  --success-bg:   #ECFDF5;

  /* ── Typography ── */
  --font:         'DM Sans', system-ui, sans-serif;
  --font-display: 'Syne', system-ui, sans-serif;
  --mono:         'DM Mono', 'SFMono-Regular', monospace;

  /* ── Shape & Depth ── */
  --radius:       8px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --shadow:       0 1px 3px rgba(15,12,29,0.08), 0 1px 2px rgba(15,12,29,0.05);
  --shadow-md:    0 4px 20px rgba(109,40,217,0.10), 0 2px 6px rgba(15,12,29,0.06);
  --shadow-brand: 0 4px 24px rgba(109,40,217,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ──────────────────────────────────────────────────── */
nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  /* Subtle top accent line — signals premium/premium segment */
  box-shadow: inset 0 1px 0 rgba(109,40,217,0.6);
}
.nav-inner {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 1rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px #F59E0B;
}
.nav-logo-mark img {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 50%;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}
.nav-logo-name span { color: #C4B5FD; }  /* violet-300 — warmer than prior #7AADFF */
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: #9590B8;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: #FFFFFF; }
.nav-cta {
  background: var(--brand);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 0 0 rgba(109,40,217,0);
}
.nav-cta:hover {
  background: var(--brand-dark);
  box-shadow: var(--shadow-brand);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 80px 2rem 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Layered gradient — deeper, more spatial than v1 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(109,40,217,0.30) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 15% 80%, rgba(217,119,6,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 35% 25% at 85% 75%, rgba(13,148,136,0.07) 0%, transparent 55%);
  pointer-events: none;
}
/* Subtle grid texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(109,40,217,0.18);
  border: 1px solid rgba(196,181,253,0.35);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #C4B5FD;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 780px;
  margin: 0 auto 1.25rem;
  position: relative;
}
.hero h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(135deg, #C4B5FD 0%, #A78BFA 50%, #D97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: #9590B8;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  position: relative;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  background: var(--brand);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(109,40,217,0.3);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}

.btn-ghost {
  background: transparent;
  color: #9590B8;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(196,181,253,0.2);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover { border-color: rgba(196,181,253,0.45); color: #FFFFFF; }

/* ── Section Common ───────────────────────────────────────── */
.section { padding: 80px 2rem; }
.section-inner { max-width: 90%; margin: 0 auto; }
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
}

/* ── Value Props ──────────────────────────────────────────── */
.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.prop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  /* Colored left border accent — one of the key v2 improvements */
  border-left: 3px solid transparent;
}
.prop-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.prop-card:has(.prop-icon.blue)  { border-left-color: var(--brand); }
.prop-card:has(.prop-icon.teal)  { border-left-color: var(--teal); }
.prop-card:has(.prop-icon.amber) { border-left-color: var(--amber); }
.prop-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.prop-icon.blue  { background: var(--brand-light); }
.prop-icon.teal  { background: var(--teal-light); }
.prop-icon.amber { background: var(--amber-light); }
.prop-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.prop-text { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── Problem + Differentiator ─────────────────────────────── */
.diff-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.diff-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 1rem;
}
.diff-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}
.diff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.diff-card:hover {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(109,40,217,0.06);
}
.diff-card-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-row: 1 / 3;
}
.diff-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  align-self: end;
}
.diff-card-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Feature Table ────────────────────────────────────────── */
.features-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-scroll {
  overflow-x: auto;
  overflow-y: clip;
  -webkit-overflow-scrolling: touch;
  margin-top: 2.5rem;
}
.features-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  min-width: 900px;
}

/* ── header table (tier names, separate from accordion) ── */
.features-header-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  min-width: 900px;
  /* gradient spans the full row; cells are transparent so it shows through */
  background:
    radial-gradient(ellipse 55% 120% at 0% 50%, rgba(109,40,217,0.45) 0%, transparent 70%),
    var(--navy-4);
}
.features-header-table th {
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid var(--navy-3);
  white-space: nowrap;
  background: transparent; /* lets table-level gradient show through */
  color: #FFFFFF;
}
.features-header-table th:first-child {
  text-align: left;
  color: rgba(255,255,255,0.4);
}
.features-header-table th.col-soon { color: rgba(255,255,255,0.4); }

/* ── accordion table ── */
.features-table th {
  display: none; /* no thead in accordion table */
}
.th-tier-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: block;
  margin-bottom: 2px;
  color: #FFFFFF;
}
.th-soon-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  margin-top: 4px;
}
.features-table th.col-soon { color: rgba(255,255,255,0.4); }

.cat-header td {
  background: var(--navy-4);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #FFFFFF;
  padding: 12px 16px 8px;
  border-top: 3px solid var(--surface);
}
.features-table .cat-header td:first-child { color: #FFFFFF; text-align: left; }
.cat-header-first td { border-top: 3px solid var(--surface); }
.cat-header:hover td { filter: brightness(1.1); }
.cat-chevron {
  display: inline-block;
  font-size: 10px;
  margin-right: 8px;
  vertical-align: middle;
  transition: transform 0.2s ease;
  transform: rotate(-90deg);
}
.cat-chevron.cat-chevron-open { transform: rotate(0deg); }
.cat-header-first + tr td { padding-top: 20px; }
.features-table .tier-repeat-header td {
  background: var(--surface);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 2px 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-table .tier-repeat-header td:first-child { color: transparent; font-size: 0; }
.features-table .tier-repeat-header td.col-soon { color: var(--hint); }
.features-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  text-align: center;
  vertical-align: middle;
}
.features-table td:first-child { text-align: left; color: var(--muted); }
.features-table tr:last-child td { border-bottom: none; }
.features-table tr:not(.cat-header):not(.tier-repeat-header):not(.sub-header):hover td {
  background: #F5F3FF;  /* lavender tint on hover — brand-aware */
}
.sub-header td {
  background: var(--surface);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brand-dark);
  padding: 6px 16px;
  border-top: 1px solid var(--border);
}
.features-table .sub-header td:first-child { color: var(--brand-dark); text-align: left; }
.feat-name-parent { font-weight: 600; color: var(--navy-4) !important; }
.feat-name-indent { padding-left: 2.25rem !important; font-size: 12px; }
.feat-row-parent { cursor: pointer; user-select: none; }
.feat-row-parent:hover td { background: #EDE9FE !important; }
.feat-chevron {
  display: inline-block;
  font-size: 11px;
  color: var(--brand);
  margin-right: 7px;
  transition: transform 0.18s ease;
  vertical-align: middle;
}
.feat-row-parent.feat-collapsed .feat-chevron { transform: rotate(-90deg); }
.feat-check  { color: var(--brand); display: inline-flex; }
.feat-dash   { color: var(--hint); font-size: 16px; line-height: 1; }
.feat-text   { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.feat-addon  {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: var(--amber-light);
  color: var(--amber);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
td.col-soon { opacity: 0.4; }

/* ── Pricing Calculator ───────────────────────────────────── */
.pricing-section { background: var(--bg); }

.tier-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* overridden by Alpine :style */
  gap: 1rem;
  margin-bottom: 2rem;
}
.tier-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  position: relative;
  overflow: hidden;
}
.tier-card:hover:not(.tier-card-soon):not(.tier-card-inactive) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(109,40,217,0.08);
  transform: translateY(-1px);
}
.tier-card.selected {
  border-color: var(--brand);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(109,40,217,0.12), var(--shadow-md);
}
.tier-card-soon {
  cursor: default;
  opacity: 0.50;
  background: var(--bg);
}
.tier-card-soon-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--navy-3);
  color: #C4B5FD;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid rgba(196,181,253,0.3);
}
.tier-card-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.tier-card-tag       { font-size: 11px; color: var(--muted); margin-bottom: 1rem; line-height: 1.4; }
.tier-card-price     { font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--text); letter-spacing: -0.02em; }
.tier-card-contact   { font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 2px; }
.tier-card-price-unit { font-size: 11px; color: var(--muted); font-family: var(--font); font-weight: 400; }
.tier-card-flat-note { font-size: 11px; color: var(--hint); margin-top: 4px; }
.tier-card-annual-note {
  font-size: 9.5px;
  color: var(--hint);
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}
.tier-selected-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--amber));  /* violet-to-amber gradient on selection */
}
.tier-card-specs {
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.tier-spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-family: var(--font);
  gap: 0.5rem;
}
.tier-spec span:first-child { color: var(--muted); }
.tier-spec span:last-child  { color: var(--text); font-weight: 400; }

/* ── Calculator Panel ─────────────────────────────────────── */
.calc-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.calc-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.calc-left  { display: flex; flex-direction: column; }
.calc-right { display: flex; flex-direction: column; }
.calc-col-footer { margin-top: auto; padding-top: 1rem; }
.calc-col-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* Sliders */
.field { margin-bottom: 0.875rem; }
.field:last-child { margin-bottom: 0; }
.field-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.field-label  { font-size: 13px; color: var(--muted); font-weight: 500; }
.field-sub    { font-size: 11px; color: var(--hint); }
.field-value  { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--text); }
input[type="range"] {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  accent-color: var(--brand);
  cursor: pointer;
  background: var(--border);
  outline: none;
}
.range-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--hint); margin-top: 4px; }

/* Seats side by side */
.seats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Billing toggle */
.billing-toggle {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  width: fit-content;
}
.billing-btn {
  padding: 6px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
  color: var(--muted);
  transition: all 0.12s;
}
.billing-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.billing-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Metrics */
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.metric-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.metric-card.highlight { background: var(--brand-light); border-color: var(--brand-mid); }
.metric-card.highlight .metric-value { color: var(--brand); }
.metric-card.savings-active { background: #F0FDF4; border-color: #86EFAC; }
.metric-card.savings-active .metric-value { color: #16A34A; }
.metric-label { font-size: 11px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.metric-value { font-family: var(--mono); font-size: 24px; font-weight: 500; color: var(--text); letter-spacing: -0.02em; }
.savings-value { color: var(--hint); }
.metric-sub   { font-size: 11px; color: var(--hint); margin-top: 3px; }

/* Signup */
.signup-btn {
  width: 100%;
  background: var(--brand);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(109,40,217,0.25);
}
.signup-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}
.signup-btn.signup-btn-annual { background: #16A34A; box-shadow: none; }
.signup-btn.signup-btn-annual:hover { background: #15803D; transform: translateY(-1px); }
.founder-btn { cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 10px;
  padding: 11px 20px;
  background: #F59E0B;
  border: 1px solid #D97706;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.founder-btn:hover { background: #D97706; transform: translateY(-1px); }
.founder-btn.founder-btn-muted {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
  opacity: 1;
}
.founder-btn.founder-btn-muted:hover { background: var(--border); transform: translateY(-1px); }

/* MRR bar */
.mrr-bar-wrap { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.mrr-bar-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.mrr-bar-label { font-size: 13px; color: var(--text); font-weight: 600; }
.mrr-onboarding-inline { font-size: 12px; color: var(--hint); }
.mrr-onboarding-inline strong { color: var(--muted); font-weight: 600; }
.mrr-bar { height: 14px; border-radius: 7px; overflow: hidden; display: flex; background: var(--border); margin-bottom: 4px; }
.mrr-seg { height: 100%; transition: width 0.35s cubic-bezier(.4,0,.2,1); }
.mrr-legend { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.mrr-legend-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.mrr-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

/* Billing notice */
.billing-success {
  color: var(--success);
  background: var(--success-bg);
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
}
.billing-success-savings {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.billing-success-label { font-size: 12px; opacity: 0.85; }
.billing-success-label strong { font-weight: 700; }
.metric-onetime {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--amber-light);
  color: var(--amber);
  padding: 1px 6px;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 4px;
}
.billing-info { font-size: 12px; color: var(--hint); margin-top: 8px; }

/* Founder panel */
.founder-panel {
  margin-top: 1.5rem;
  background: #FFFBF0;
  border: 1px solid #F59E0B;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.founder-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.founder-panel-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 4px;
}
.founder-panel-sub { font-size: 13px; color: #A16207; line-height: 1.5; }
.founder-claim-btn {
  flex-shrink: 0;
  background: #F59E0B;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(245,158,11,0.30);
}
.founder-claim-btn:hover { background: #D97706; box-shadow: 0 4px 14px rgba(245,158,11,0.40); }
.founder-savings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.founder-stat {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius);
  padding: 0.875rem;
}
.founder-stat.highlight {
  background: #F59E0B;
  border-color: #F59E0B;
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.founder-stat-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #92400E; margin-bottom: 6px; }
.founder-stat.highlight .founder-stat-label { color: rgba(255,255,255,0.75); }
.founder-stat-value { font-family: var(--mono); font-size: 22px; font-weight: 500; color: #78350F; letter-spacing: -0.02em; }
.founder-stat-value.muted { color: #A16207; }
.founder-stat.highlight .founder-stat-value { color: #FFFFFF; }
.founder-stat-sub { font-size: 11px; color: #A16207; margin-top: 3px; }
.founder-stat.highlight .founder-stat-sub { color: rgba(255,255,255,0.8); }

/* Muted variant */
.founder-panel-muted {
  background: var(--surface);
  border-color: var(--border);
}
.founder-panel-muted .founder-panel-title { color: var(--text); }
.founder-panel-muted .founder-panel-title svg path { fill: var(--muted); }
.founder-panel-muted .founder-panel-sub { color: var(--muted); }
.founder-panel-muted .founder-claim-btn { background: var(--muted); box-shadow: none; }
.founder-panel-muted .founder-claim-btn:hover { background: var(--text); }
.founder-panel-muted .founder-stat { background: var(--bg); border-color: var(--border); }
.founder-panel-muted .founder-stat.highlight { background: var(--border); border-color: var(--border); }
.founder-panel-muted .founder-stat-label { color: var(--hint); }
.founder-panel-muted .founder-stat.highlight .founder-stat-label { color: var(--muted); }
.founder-panel-muted .founder-stat-value { color: var(--text); }
.founder-panel-muted .founder-stat-value.muted { color: var(--muted); }
.founder-panel-muted .founder-stat.highlight .founder-stat-value { color: var(--text); }
.founder-panel-muted .founder-stat-sub { color: var(--hint); }
.founder-panel-muted .founder-stat.highlight .founder-stat-sub { color: var(--muted); }

/* Founder note */
.founder-note {
  margin-top: 1.25rem;
  padding: 12px 16px;
  background: var(--brand-light);
  border: 1px solid var(--brand-mid);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.founder-note strong { color: var(--brand); }
.founder-note a { color: var(--brand); font-weight: 600; text-decoration: none; }

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  background: var(--navy);
  padding: 80px 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(109,40,217,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 80% 20%, rgba(217,119,6,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  position: relative;
}
.cta-section p { font-size: 16px; color: #9590B8; max-width: 560px; margin: 0 auto 2.5rem; position: relative; }

.lead-gen-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.lead-email-input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.lead-email-input::placeholder { color: #6B6890; }
.lead-email-input:focus { border-color: rgba(245,158,11,0.5); }
.lead-submit-btn {
  padding: 13px 28px;
  border-radius: var(--radius);
  background: #F59E0B;
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(245,158,11,0.35);
}
.lead-submit-btn:hover { background: #D97706; box-shadow: 0 4px 18px rgba(245,158,11,0.45); }
.lead-submit-btn.muted { background: #F59E0B; opacity: 0.5; box-shadow: none; }
.lead-email-error {
  font-size: 10px;
  font-style: italic;
  color: #FCA5A5;
  margin-top: 11px;
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  padding-left: 25px;
  transform: scale(0.8);
  transform-origin: left center;
}
.lead-email-input.input-error {
  border-color: #FCA5A5;
  outline-color: #FCA5A5;
}
.lead-gen-thanks {
  font-size: 15px;
  color: #F59E0B;
  font-weight: 600;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cta-founder-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #D97706;
  text-decoration: none;
  border: 1px solid rgba(217,119,6,0.40);
  padding: 8px 18px;
  border-radius: 100px;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
  position: relative;
}
.cta-founder-link:hover {
  border-color: #D97706;
  color: #F59E0B;
  box-shadow: 0 0 16px rgba(217,119,6,0.2);
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--navy-2);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 12px;
  color: #7A728F;
}

/* ── Loading ──────────────────────────────────────────────── */
.skeleton {
  background: var(--border);
  border-radius: var(--radius-lg);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

/* ── Utilities ────────────────────────────────────────────── */
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.25rem; }
.mb-1 { margin-bottom: 0.75rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 700px) {
  .calc-grid    { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .nav-links .nav-link { display: none; }
}

/* ── Mobile gate ──────────────────────────────────────────── */
[x-cloak] { display: none !important; }

.mobile-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.mobile-gate-inner {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.mobile-gate-logo {
  width: 120px;
  height: 120px;
}
.mobile-gate-logo img { width: 100%; height: 100%; }
.mobile-gate-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #F5F3FF;
  letter-spacing: -0.02em;
}
.mobile-gate-brand span { color: #C4B5FD; }
.mobile-gate-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-top: 0;
}
.mobile-gate-msg {
  font-size: 1.5rem;
  color: #9590B8;
  line-height: 1.65;
}

/* ── Inactive tier card ───────────────────────────────────── */
.tier-card-inactive {
  cursor: default;
  opacity: 0.55;
  background: var(--bg);
}
.tier-card-inactive-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--hint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
}
.spec-muted { color: var(--hint); }