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

:root {
  --teal: #5DCAA5;
  --teal-dark: #0F6E56;
  --teal-dim: rgba(93, 202, 165, 0.15);
  --coral: #D4756A;
  --bg: #0A0F0D;
  --bg-card: #0F1612;
  --bg-card2: #141C18;
  --border: rgba(93, 202, 165, 0.12);
  --text: #E8F0EB;
  --text-muted: #7A9E8A;
  --text-dim: #3A5445;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 15, 13, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--teal);
  letter-spacing: -0.3px;
  text-decoration: none;
}

.nav-cta {
  background: var(--teal);
  color: #0A0D0C;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.nav-cta:hover { opacity: 0.85; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(93,202,165,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(93, 202, 165, 0.1);
  border: 1px solid rgba(93, 202, 165, 0.35);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(42px, 8vw, 80px);
  line-height: 1.05;
  letter-spacing: 1.5px;
  color: var(--text);
  max-width: 780px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  background: var(--teal);
  color: #0A0D0C;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-secondary {
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
  padding: 16px 8px;
  transition: color 0.2s;
}

.btn-secondary:hover { color: var(--text); }

/* MOCKUP */
.mockup-section {
  padding: 40px 24px 100px;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s 0.4s ease both;
}

.phone-frame {
  width: 280px;
  background: var(--bg-card);
  border-radius: 40px;
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 20px 16px;
  position: relative;
}

.phone-notch {
  width: 80px;
  height: 28px;
  background: var(--bg);
  border-radius: 14px;
  margin: 0 auto 16px;
}

.screen-date {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.screen-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 100px;
  padding: 3px;
  margin-bottom: 20px;
}

.toggle-item {
  flex: 1;
  text-align: center;
  font-size: 12px;
  padding: 6px 4px;
  border-radius: 100px;
  color: var(--text-muted);
}

.toggle-item.active {
  background: var(--teal);
  color: #0A0D0C;
  font-weight: 600;
}

.summary-card {
  background: rgba(93,202,165,0.12);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
}

.summary-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.prog-track {
  height: 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.prog-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
  position: relative;
}

.prog-tick {
  position: absolute;
  right: 0; top: -2px;
  width: 2px; height: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1px;
}

.cat-row {
  margin-bottom: 16px;
}

.cat-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.cat-name {
  font-size: 13px;
  font-weight: 500;
}

.cat-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.cat-pace {
  font-size: 11px;
  color: var(--teal);
  margin-top: 3px;
  padding-left: 4px;
}

.cat-pace.over { color: var(--coral); }

.screen-tabs {
  display: flex;
  justify-content: space-around;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.tab-icon {
  width: 20px; height: 20px;
  background: var(--text-dim);
  border-radius: 4px;
}

.tab-icon.active { background: var(--teal); }

/* STATS */
.stats-section {
  padding: 80px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.stat-item {
  background: var(--bg-card);
  padding: 36px 32px;
  text-align: center;
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
}

/* FEATURES */
.features-section {
  padding: 80px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: 1.5px;
  margin-bottom: 64px;
  max-width: 560px;
}

.section-title em {
  font-style: italic;
  color: var(--teal);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: rgba(93,202,165,0.35); }

.feature-icon {
  width: 44px; height: 44px;
  background: var(--teal-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.feature-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* PHILOSOPHY */
.philosophy-section {
  padding: 100px 24px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-quote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.3;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 24px;
}

.philosophy-quote em {
  font-style: italic;
  color: var(--teal);
}

.philosophy-attr {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
}

/* SCIENCE */
.science-section {
  padding: 100px 24px;
  max-width: 860px;
  margin: 0 auto;
}

.science-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}

.science-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(93,202,165,0.6), transparent);
}

.science-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.science-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
  max-width: 520px;
}

.science-title em {
  font-style: italic;
  color: var(--teal);
}

.science-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  max-width: 640px;
  margin-bottom: 16px;
}

.science-body em {
  color: var(--text);
  font-style: normal;
  font-weight: 400;
}

.science-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin: 40px 0;
}

.science-stat {
  background: var(--bg-card2);
  padding: 28px 24px;
}

.science-stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 40px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 10px;
}

.science-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

.science-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(93, 202, 165, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.science-link:hover {
  border-color: var(--teal);
}

@media (max-width: 700px) {
  .science-inner { padding: 40px 28px; }
  .science-stats { grid-template-columns: 1fr; }
}

/* COMPARE */
.compare-section {
  padding: 80px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.compare-table th:last-child { color: var(--teal); }

.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(93,202,165,0.06);
  vertical-align: top;
  color: var(--text-muted);
  font-weight: 300;
}

.compare-table td:first-child {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  width: 25%;
}

.compare-table td:last-child { color: var(--text); }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  margin-top: 4px;
}

.badge-good { background: rgba(93,202,165,0.12); color: var(--teal); }
.badge-bad { background: rgba(212,117,106,0.12); color: var(--coral); }

/* COMPARE CARDS (mobile only) */
.compare-cards { display: none; }

.compare-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px 18px;
}

.compare-card-feature {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.compare-card-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  align-items: flex-start;
}

.compare-card-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 54px;
  padding-top: 2px;
}

.compare-card-row.francis .compare-card-brand { color: var(--teal); }

.compare-card-val {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  flex: 1;
  line-height: 1.5;
}

.compare-card-row.francis .compare-card-val { color: var(--text); }

/* PRICING */
.pricing-section {
  padding: 80px 24px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(93,202,165,0.6), transparent);
}

.pricing-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 64px;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-alt {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(93,202,165,0.06);
  font-weight: 300;
}

.pricing-features li::before {
  content: '';
  width: 16px; height: 16px;
  background: var(--teal-dim);
  border: 1px solid var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5 6.5-7' stroke='%235DCAA5' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pricing-trial {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* CTA */
.cta-section {
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(93,202,165,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: 1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 300;
}

/* FOOTER */
footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--teal);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-muted); }

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* EARLY ACCESS MODAL */
.ea-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ea-overlay.open { display: flex; }

.ea-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 52px 48px;
  width: 100%;
  max-width: 480px;
  position: relative;
  animation: fadeUp 0.3s ease both;
}

.ea-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 160px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(93,202,165,0.6), transparent);
}

.ea-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.ea-close:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); }

.ea-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ea-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  letter-spacing: -0.3px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.ea-sub {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 32px;
  line-height: 1.6;
}

.ea-field {
  margin-bottom: 16px;
}

.ea-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.ea-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.ea-input::placeholder { color: var(--text-dim); }
.ea-input:focus { border-color: rgba(93, 202, 165, 0.5); }

select.ea-input {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A9088' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

select.ea-input option { background: #141C18; color: var(--text); }

.ea-platform {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ea-platform input { display: none; }

.ea-platform label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-align: center;
}

.ea-platform input:checked + label {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
}

.ea-platform label:hover { border-color: rgba(93,202,165,0.35); color: var(--text); }

.ea-submit {
  width: 100%;
  margin-top: 24px;
  background: var(--teal);
  color: #0A0D0C;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 16px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.ea-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.ea-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.ea-privacy {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* Success state */
.ea-success {
  display: none;
  text-align: center;
  padding: 16px 0;
}

.ea-success.show { display: block; }
.ea-form.hide { display: none; }

.ea-success-icon {
  width: 56px; height: 56px;
  background: var(--teal-dim);
  border: 1px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.ea-success-title {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  margin-bottom: 10px;
}

.ea-success-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  max-width: 320px;
  margin: 0 auto;
}

/* Mobile: full screen */
@media (max-width: 640px) {
  .ea-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100dvh;
    padding: 0;
    flex-direction: column;
    background: var(--bg);
    backdrop-filter: none;
    animation: slideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1) both;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }

  .ea-overlay.open { display: flex; }

  .ea-panel {
    flex: 1;
    width: 100%;
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    padding: 0 24px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y;
    animation: none;
    display: flex;
    flex-direction: column;
  }

  .ea-panel::before { display: none; }

  /* Native-style top bar on mobile */
  .ea-panel::after {
    content: '';
    display: block;
    order: -1;
    height: 56px;
    flex-shrink: 0;
  }

  .ea-close {
    position: fixed;
    top: 12px;
    left: 16px;
    right: auto;
    width: auto;
    height: 44px;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--teal);
    padding: 0 8px;
    gap: 4px;
    white-space: nowrap;
    touch-action: manipulation;
    z-index: 201;
  }

  .ea-close { font-size: 0; color: transparent; }
  .ea-close::before { content: '← Back'; font-size: 15px; color: var(--teal); }

  .ea-eyebrow { margin-top: 8px; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  nav { padding: 16px 20px; }
  nav .nav-cta { font-size: 13px; padding: 9px 16px; }

  .hero { padding: 100px 20px 60px; }

  .mockup-section { padding: 20px 24px 80px; }
  .phone-frame { width: 100%; max-width: 320px; }

  .stats-section { padding: 60px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 24px 16px; }

  .features-section { padding: 60px 16px; }
  .features-grid { grid-template-columns: 1fr; }

  .science-section { padding: 60px 16px; }
  .science-inner { padding: 36px 24px; }
  .science-stats { grid-template-columns: 1fr; }

  .compare-section { padding: 60px 16px; }
  .compare-table { display: none; }
  .compare-cards { display: flex; flex-direction: column; gap: 10px; }

  .pricing-section { padding: 60px 16px; }
  .pricing-card { padding: 36px 24px; }

  .cta-section { padding: 80px 20px; }

  footer { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 20px; }
}

/* NAV BACK (sub-pages) */
.nav-back {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.nav-back:hover { color: var(--text); }

/* SCIENCE PAGE */
.article-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 140px 24px 100px;
}

.article-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.article-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.8px;
  margin-bottom: 24px;
}

.article-lede {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.article-lede strong {
  color: var(--text);
  font-weight: 500;
}

.article-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--text);
  margin: 56px 0 20px;
}

.article-body p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 20px;
}

.article-body p strong {
  color: var(--text);
  font-weight: 500;
}

.pull-quote {
  border-left: 2px solid var(--teal);
  margin: 48px 0;
  padding: 4px 0 4px 28px;
}

.pull-quote p {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.4;
  color: var(--text);
  font-style: italic;
  margin: 0;
}

.citations {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-top: 64px;
}

.citations-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.citation {
  padding: 16px 0;
  border-bottom: 1px solid rgba(93, 202, 165, 0.06);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

.citation:last-child { border-bottom: none; }

.citation strong {
  color: var(--text);
  font-weight: 500;
}

.citation em {
  font-style: italic;
  color: var(--text);
}

.citation a {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: opacity 0.2s;
}

.citation a:hover { opacity: 0.75; }

.article-cta {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.article-cta p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-weight: 300;
}

@media (max-width: 600px) {
  .citations { padding: 28px 24px; }
}

/* WHY FRANCIS PAGE */
.page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 140px 24px 100px;
}

.page-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.page-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.8px;
  margin-bottom: 48px;
}

.bets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 64px;
}

.bet-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 36px;
  transition: border-color 0.2s;
}

.bet-card:hover { border-color: rgba(93, 202, 165, 0.25); }

.bet-label {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 6px;
}

.bet-examples {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-bottom: 16px;
}

.bet-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.francis-bet {
  background: var(--bg-card);
  border: 1px solid var(--teal);
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 64px;
}

.francis-bet::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.francis-bet-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.francis-bet-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin-bottom: 24px;
}

.francis-bet p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 16px;
}

.francis-bet p:last-child { margin-bottom: 0; }

.francis-bet strong {
  color: var(--text);
  font-weight: 500;
}

.page-cta {
  text-align: center;
  padding-top: 16px;
}

.page-cta p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 300;
}

@media (max-width: 600px) {
  .bet-card { padding: 28px 24px; }
  .francis-bet { padding: 36px 28px; }
}
