*, *::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.12);
  border: 1px solid rgba(93, 202, 165, 0.4);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  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;
}

.hero-trust {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-top: 20px;
  animation: fadeUp 0.6s 0.4s 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;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: fadeUp 0.8s 0.4s ease both;
}

.pm-phone-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pm-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transform-origin: top center;
}

/* ── Physical device frame ── */
.pm-device {
  background: linear-gradient(160deg, #252525 0%, #101010 55%, #1C1C1C 100%);
  border-radius: 46px;
  padding: 12px 8px 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10),
    0 40px 90px rgba(0,0,0,0.70),
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
}

/* Volume buttons (left) */
.pm-device::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 108px;
  width: 3px;
  height: 26px;
  background: #1E1E1E;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 38px 0 #1E1E1E;
}

/* Power button (right) */
.pm-device::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 126px;
  width: 3px;
  height: 38px;
  background: #1E1E1E;
  border-radius: 0 2px 2px 0;
}

/* ── Phone shell (screen) ── */
.pm-shell {
  width: 280px;
  height: 640px;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: 'DM Sans', sans-serif;
  /* Gothic defaults */
  --pm-bg: #0E0B09;
  --pm-surface: #1B1612;
  --pm-border: #2E2418;
  --pm-text: #C8B48C;
  --pm-text-dim: #6E5E46;
  --pm-bar: #7A6848;
  --pm-bar-track: #2A2018;
  --pm-bar-over: #C82020;
  --pm-under-col: #C8B48C;
  --pm-over-col: #C82020;
  --pm-add: #C82020;
  --pm-nav-icon: #4A3A2A;
  --pm-nav-active: #C8B48C;
  --pm-pill-bg: rgba(255,255,255,0.07);
  --pm-pill-text: #6E5E46;
  --pm-pill-abg: rgba(100,70,140,0.38);
  --pm-pill-atxt: #C0A0E8;
  --pm-insight-bg: #1B1612;
  --pm-insight-bd: #2E2418;
  --pm-today-bg: #1B1612;
  --pm-card-bg: rgba(255,255,255,0.04);
  --pm-tab-active: #C8B48C;
  --pm-tab-inactive: #4A3C2C;
  --pm-tab-line: #C8B48C;
  --pm-th-color: #C8B48C;
  --pm-mc-label: #6E5E46;
  --pm-c-eating-out: #B090A8;
  --pm-c-fun: #C0A060;
  --pm-c-giving: #C4A860;
  --pm-c-groceries: #A888B8;
  --pm-c-household: #B8A070;
  --pm-c-personal-care: #8890C0;
  --pm-c-pets: #B09878;
  --pm-c-snacks: #C0A860;
  --pm-c-transport: #CC4444;
  --pm-pie-c1: #B090A8;
  --pm-pie-c2: #CC4444;
  --pm-pie-c3: #A888B8;
  --pm-pie-c4: #8890C0;
  --pm-pie-c5: #C0A060;
  --pm-pie-c6: #5C5048;
  --pm-pie: conic-gradient(var(--pm-pie-c1) 0% 25%, var(--pm-pie-c2) 25% 49%, var(--pm-pie-c3) 49% 68%, var(--pm-pie-c4) 68% 80%, var(--pm-pie-c5) 80% 89%, var(--pm-pie-c6) 89% 100%);
  background: var(--pm-bg);
}

.pm-shell.score {
  --pm-bg: #EDEAE5;
  --pm-surface: #E2DFDA;
  --pm-border: #D0CCC6;
  --pm-text: #1A1614;
  --pm-text-dim: #88807A;
  --pm-bar: #5B90A8;
  --pm-bar-track: #CECAC4;
  --pm-bar-over: #9B3030;
  --pm-under-col: #4A88A8;
  --pm-over-col: #9B3030;
  --pm-add: #5B90A8;
  --pm-nav-icon: #B0A89E;
  --pm-nav-active: #1A1614;
  --pm-pill-bg: rgba(0,0,0,0.07);
  --pm-pill-text: #88807A;
  --pm-pill-abg: #5B90A8;
  --pm-pill-atxt: #fff;
  --pm-insight-bg: #FFFFFF;
  --pm-insight-bd: #D8D4CE;
  --pm-today-bg: #E2DFDA;
  --pm-card-bg: #FFFFFF;
  --pm-tab-active: #1A1614;
  --pm-tab-inactive: #B0A89E;
  --pm-tab-line: #1A1614;
  --pm-th-color: #4A88A8;
  --pm-mc-label: #88807A;
  --pm-c-eating-out: #9B7840;
  --pm-c-fun: #9B7840;
  --pm-c-giving: #7068A8;
  --pm-c-groceries: #9B7840;
  --pm-c-household: #5F80A0;
  --pm-c-personal-care: #4F78B0;
  --pm-c-pets: #907058;
  --pm-c-snacks: #907058;
  --pm-c-transport: #A83828;
  --pm-pie-c1: #9B7840;
  --pm-pie-c2: #A83828;
  --pm-pie-c3: #5A7850;
  --pm-pie-c4: #4F78B0;
  --pm-pie-c5: #7068A8;
  --pm-pie-c6: #B0A898;
  --pm-pie: conic-gradient(var(--pm-pie-c1) 0% 25%, var(--pm-pie-c2) 25% 49%, var(--pm-pie-c3) 49% 68%, var(--pm-pie-c4) 68% 80%, var(--pm-pie-c5) 80% 89%, var(--pm-pie-c6) 89% 100%);
}

.pm-shell.kpop {
  --pm-bg: #0A0808;
  --pm-surface: #160A10;
  --pm-border: #2A1020;
  --pm-text: #F0E0E8;
  --pm-text-dim: #6A3A50;
  --pm-bar: #FF2D78;
  --pm-bar-track: #280818;
  --pm-bar-over: #FFD700;
  --pm-under-col: #FF4488;
  --pm-over-col: #FFD700;
  --pm-add: #8B1040;
  --pm-nav-icon: #5A2840;
  --pm-nav-active: #FF2D78;
  --pm-pill-bg: rgba(255,255,255,0.07);
  --pm-pill-text: #6A3A50;
  --pm-pill-abg: rgba(180,20,70,0.45);
  --pm-pill-atxt: #FF90B8;
  --pm-insight-bg: #160A10;
  --pm-insight-bd: #2A1020;
  --pm-today-bg: #160A10;
  --pm-card-bg: rgba(255,45,120,0.08);
  --pm-tab-active: #F0E0E8;
  --pm-tab-inactive: #4A2030;
  --pm-tab-line: #FF2D78;
  --pm-th-color: #FF2D78;
  --pm-mc-label: #FF2D78;
  --pm-c-eating-out: #FF4488;
  --pm-c-fun: #FF4488;
  --pm-c-giving: #B060DD;
  --pm-c-groceries: #FFB820;
  --pm-c-household: #909080;
  --pm-c-personal-care: #FF4488;
  --pm-c-pets: #B060DD;
  --pm-c-snacks: #FFB820;
  --pm-c-transport: #FFB820;
  --pm-pie-c1: #FF2D78;
  --pm-pie-c2: #FFD700;
  --pm-pie-c3: #8840DD;
  --pm-pie-c4: #FF4488;
  --pm-pie-c5: #FFB820;
  --pm-pie-c6: #CC2060;
  --pm-pie: conic-gradient(var(--pm-pie-c1) 0% 25%, var(--pm-pie-c2) 25% 49%, var(--pm-pie-c3) 49% 68%, var(--pm-pie-c4) 68% 80%, var(--pm-pie-c5) 80% 89%, var(--pm-pie-c6) 89% 100%);
}

.pm-shell.midnight {
  --pm-bg: #080D14;
  --pm-surface: #0D1520;
  --pm-border: #182030;
  --pm-text: #B8C8D8;
  --pm-text-dim: #3A4A5A;
  --pm-bar: #6888C8;
  --pm-bar-track: #182035;
  --pm-bar-over: #C06040;
  --pm-under-col: #6888C8;
  --pm-over-col: #C07850;
  --pm-add: #354880;
  --pm-nav-icon: #2A3848;
  --pm-nav-active: #6888C8;
  --pm-pill-bg: rgba(255,255,255,0.06);
  --pm-pill-text: #3A4A5A;
  --pm-pill-abg: rgba(80,110,180,0.4);
  --pm-pill-atxt: #A0C0E8;
  --pm-insight-bg: #0D1520;
  --pm-insight-bd: #182030;
  --pm-today-bg: #0D1520;
  --pm-card-bg: rgba(104,136,200,0.08);
  --pm-tab-active: #B8C8D8;
  --pm-tab-inactive: #2A3848;
  --pm-tab-line: #6888C8;
  --pm-th-color: #6888C8;
  --pm-mc-label: #6888C8;
  --pm-c-eating-out: #5880B8;
  --pm-c-fun: #5880B8;
  --pm-c-giving: #7880CC;
  --pm-c-groceries: #A88850;
  --pm-c-household: #A89060;
  --pm-c-personal-care: #58A880;
  --pm-c-pets: #8878C0;
  --pm-c-snacks: #A89060;
  --pm-c-transport: #C06040;
  --pm-pie-c1: #5880B8;
  --pm-pie-c2: #C06040;
  --pm-pie-c3: #A88850;
  --pm-pie-c4: #58A880;
  --pm-pie-c5: #7880CC;
  --pm-pie-c6: #384858;
  --pm-pie: conic-gradient(var(--pm-pie-c1) 0% 25%, var(--pm-pie-c2) 25% 49%, var(--pm-pie-c3) 49% 68%, var(--pm-pie-c4) 68% 80%, var(--pm-pie-c5) 80% 89%, var(--pm-pie-c6) 89% 100%);
}

.pm-shell.forest {
  --pm-bg: #080E0A;
  --pm-surface: #0E1810;
  --pm-border: #1A2820;
  --pm-text: #B8D0C0;
  --pm-text-dim: #3A5040;
  --pm-bar: #3DCC98;
  --pm-bar-track: #142010;
  --pm-bar-over: #C05038;
  --pm-under-col: #3DCC98;
  --pm-over-col: #D06848;
  --pm-add: #1A5038;
  --pm-nav-icon: #2A4030;
  --pm-nav-active: #3DCC98;
  --pm-pill-bg: rgba(255,255,255,0.06);
  --pm-pill-text: #3A5040;
  --pm-pill-abg: rgba(30,140,100,0.5);
  --pm-pill-atxt: #60E0B0;
  --pm-insight-bg: #0E1810;
  --pm-insight-bd: #1A2820;
  --pm-today-bg: #0E1810;
  --pm-card-bg: rgba(61,204,152,0.08);
  --pm-tab-active: #B8D0C0;
  --pm-tab-inactive: #2A4030;
  --pm-tab-line: #3DCC98;
  --pm-th-color: #3DCC98;
  --pm-mc-label: #3DCC98;
  --pm-c-eating-out: #D07850;
  --pm-c-fun: #D07850;
  --pm-c-giving: #9070C0;
  --pm-c-groceries: #C0A040;
  --pm-c-household: #C0A040;
  --pm-c-personal-care: #D07850;
  --pm-c-pets: #5090A0;
  --pm-c-snacks: #C0A040;
  --pm-c-transport: #C05038;
  --pm-pie-c1: #3DCC98;
  --pm-pie-c2: #C05038;
  --pm-pie-c3: #C0A040;
  --pm-pie-c4: #D07850;
  --pm-pie-c5: #5090A0;
  --pm-pie-c6: #386840;
  --pm-pie: conic-gradient(var(--pm-pie-c1) 0% 25%, var(--pm-pie-c2) 25% 49%, var(--pm-pie-c3) 49% 68%, var(--pm-pie-c4) 68% 80%, var(--pm-pie-c5) 80% 89%, var(--pm-pie-c6) 89% 100%);
}

/* Viewport + track */
.pm-viewport { flex: 1; overflow: hidden; position: relative; }


.pm-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.pm-slide {
  width: 280px;
  flex-shrink: 0;
  padding: 14px 16px 8px;
  overflow: hidden;
  background: var(--pm-bg);
  color: var(--pm-text);
  box-sizing: border-box;
  height: 100%;
}

/* Status bar */
.pm-statusbar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: relative;
  flex-shrink: 0;
  background: var(--pm-bg);
  color: var(--pm-text);
}

.pm-sb-time {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.pm-sb-cam {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.88);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}

.pm-shell.score .pm-sb-cam {
  background: rgba(0,0,0,0.72);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18);
}

.pm-sb-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* System gesture bar */
.pm-sysbar {
  height: 20px;
  background: var(--pm-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pm-sysbar-pill {
  width: 90px;
  height: 4px;
  border-radius: 2px;
  background: var(--pm-text-dim);
  opacity: 0.45;
}

/* App header */
.pm-app-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pm-arr {
  font-size: 18px;
  color: var(--pm-text-dim);
  line-height: 1;
  padding: 0 2px;
}

.pm-hdr-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--pm-th-color);
}

/* Insight card */
.pm-insight-card {
  background: var(--pm-insight-bg);
  border: 1px solid var(--pm-insight-bd);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 11px;
  color: var(--pm-text);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 12px;
  line-height: 1.45;
}

.pm-insight-icon {
  color: var(--pm-th-color);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Bar chart */
.pm-chart-area { margin-bottom: 3px; }

.pm-bars-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2px;
  height: 130px;
  position: relative;
  border-bottom: 1px solid var(--pm-border);
  padding-bottom: 2px;
}

/* Budget threshold line */
.pm-bars-row::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: calc(88px + 2px);
  height: 1px;
  background: var(--pm-border);
  opacity: 0.7;
}

.pm-bc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.pm-bb {
  width: 100%;
  background: var(--pm-bar);
  border-radius: 2px 2px 0 0;
}

.pm-bo {
  width: 100%;
  background: var(--pm-bar-over);
  border-radius: 2px 2px 0 0;
}

.pm-bc-cur .pm-bb { opacity: 0.5; }

.pm-bars-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.pm-bars-labels span {
  font-size: 7.5px;
  color: var(--pm-text-dim);
  flex: 1;
  text-align: center;
}

.pm-chart-range {
  font-size: 9px;
  color: var(--pm-text-dim);
  text-align: center;
  margin-top: 3px;
  margin-bottom: 10px;
}

/* Filter pills */
.pm-pills-row {
  display: flex;
  gap: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.pm-pill {
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  background: var(--pm-pill-bg);
  color: var(--pm-pill-text);
  flex-shrink: 0;
}

.pm-pill-active {
  background: var(--pm-pill-abg);
  color: var(--pm-pill-atxt);
}

/* Pie */
.pm-pie-container { display: flex; justify-content: center; margin-top: 14px; }

.pm-pie {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--pm-pie);
}

/* Pie legend */
.pm-pie-legend {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pm-pie-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--pm-text-dim);
}
.pm-pie-legend-item span:last-child {
  margin-left: auto;
  font-size: 10px;
  color: var(--pm-text);
}
.pm-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pm-legend-dot-1 { background: var(--pm-pie-c1); }
.pm-legend-dot-2 { background: var(--pm-pie-c2); }
.pm-legend-dot-3 { background: var(--pm-pie-c3); }
.pm-legend-dot-4 { background: var(--pm-pie-c4); }
.pm-legend-dot-5 { background: var(--pm-pie-c5); }
.pm-legend-dot-6 { background: var(--pm-pie-c6); }

/* ── Slide 1: Budget overview ── */
.pm-takehome-row {
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.45;
}

.pm-th-amt {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--pm-th-color);
}

.pm-th-lbl {
  font-size: 9px;
  color: var(--pm-text-dim);
}

.pm-tab-row {
  display: flex;
  border-bottom: 1px solid var(--pm-border);
  margin-bottom: 20px;
}

.pm-tab {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px 5px 0;
  color: var(--pm-tab-inactive);
  position: relative;
  margin-right: 8px;
}

.pm-tab-active {
  color: var(--pm-tab-active);
}

.pm-tab-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: var(--pm-tab-line);
  border-radius: 2px;
}

.pm-month-card {
  background: var(--pm-card-bg);
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 22px;
}

.pm-mc-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pm-mc-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pm-mc-label);
}

.pm-mc-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 9.5px;
  color: var(--pm-text-dim);
}

/* Progress bar */
.pm-progbar {
  height: 18px;
  background: var(--pm-bar-track);
  border-radius: 4px;
  position: relative;
  overflow: visible;
}

.pm-pbfill {
  height: 100%;
  background: var(--pm-bar);
  border-radius: 4px;
}

.pm-pbtick {
  position: absolute;
  left: 45%;
  top: 0;
  width: 2px;
  height: 18px;
  background: rgba(255,255,255,0.55);
  border-radius: 1px;
  transform: translateX(-50%);
}

.pm-shell.score .pm-pbtick { background: rgba(0,0,0,0.28); }

.pm-catblock { margin-bottom: 24px; }

.pm-cb-hdr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.pm-cb-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 9px;
  color: var(--pm-text-dim);
}

/* ── Slide 2: Daily category list ── */
.pm-catlist { margin-bottom: 8px; }

.pm-cl { margin-bottom: 20px; }

.pm-cl-hdr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

.pm-thinbar {
  height: 5px;
  background: var(--pm-bar-track);
  border-radius: 2px;
  position: relative;
  overflow: visible;
}

.pm-tbf {
  height: 100%;
  background: var(--pm-bar);
  border-radius: 2px;
}

.pm-tbf-over { background: var(--pm-bar-over); }

.pm-tbtick {
  position: absolute;
  left: 45%;
  top: 0;
  width: 2px;
  height: 5px;
  background: rgba(255,255,255,0.45);
  border-radius: 1px;
  transform: translateX(-50%);
}

.pm-shell.score .pm-tbtick { background: rgba(0,0,0,0.22); }

/* Voice entry */
.pm-voice-quote {
  font-style: italic;
  font-size: 10px;
  color: var(--pm-text-dim);
  line-height: 1.6;
  padding: 10px 0;
  border-top: 1px solid var(--pm-border);
  border-bottom: 1px solid var(--pm-border);
  margin-bottom: 12px;
}

.pm-voice-fields {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.pm-vf-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--pm-border);
  font-size: 10.5px;
}
.pm-vf-row:last-child { border-bottom: none; }

.pm-vf-label { color: var(--pm-text-dim); }
.pm-vf-value { color: var(--pm-text); font-weight: 500; }

.pm-log-btn {
  display: block;
  width: 100%;
  background: var(--pm-bar);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: default;
  margin-bottom: 9px;
}

.pm-edit-link {
  text-align: center;
  font-size: 10px;
  color: var(--pm-text-dim);
}

/* Today card */
.pm-today-card {
  background: var(--pm-today-bg);
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  padding: 8px 10px;
}

.pm-today-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pm-text-dim);
  margin-bottom: 6px;
}

.pm-today-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 3px 0;
  color: var(--pm-text);
}

.pm-today-row:not(:last-child) { border-bottom: 1px solid var(--pm-border); }

/* Shared labels */
.pm-under { font-size: 10px; color: var(--pm-under-col); }
.pm-over  { font-size: 10px; color: var(--pm-over-col); font-weight: 600; }

/* Category name colors */
.pm-cn { font-size: 12px; font-weight: 500; }
.pm-cn.eating-out    { color: var(--pm-c-eating-out); }
.pm-cn.fun           { color: var(--pm-c-fun); }
.pm-cn.giving        { color: var(--pm-c-giving); }
.pm-cn.groceries     { color: var(--pm-c-groceries); }
.pm-cn.household     { color: var(--pm-c-household); }
.pm-cn.personal-care { color: var(--pm-c-personal-care); }
.pm-cn.pets          { color: var(--pm-c-pets); }
.pm-cn.snacks        { color: var(--pm-c-snacks); }
.pm-cn.transport     { color: var(--pm-c-transport); }

/* App nav bar */
.pm-appnav {
  height: 50px;
  background: var(--pm-surface);
  border-top: 1px solid var(--pm-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
}

.pm-appnav-btn {
  color: var(--pm-nav-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
}

.pm-appnav-active { color: var(--pm-nav-active); }

.pm-appnav-add-dim { opacity: 0.35; }

.pm-appnav-add {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--pm-add);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

/* ── Controls below phone ── */
.pm-ui-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pm-dots-row { display: flex; gap: 12px; align-items: center; }

.pm-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
  flex-shrink: 0;
}
.pm-chevron:hover { background: var(--surface); color: var(--text); }
.pm-chevron:disabled { opacity: 0.2; cursor: default; }

.pm-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.pm-dot-active {
  background: var(--teal);
  transform: scale(1.25);
}

.pm-theme-row {
  display: flex;
  background: rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 3px;
}

html.light-mode .pm-theme-row { background: rgba(0,0,0,0.08); }

.pm-theme-btn {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 18px;
  border-radius: 17px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.02em;
}

.pm-theme-active {
  background: var(--teal);
  color: #0A0D0C;
}

/* 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: 0.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.carlo .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.carlo .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(255, 255, 255, 0.06);
  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 600ms ease-out, transform 600ms ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: 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 16px 60px; overflow: hidden; }
  .pm-phone-row { gap: 12px; }
  .pm-chevron { width: 32px; height: 32px; }

  .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; }
}

/* COMPARE PAGES */
.compare-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 140px 24px 100px;
}

.compare-hero {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}

.compare-position {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-top: 16px;
}

.compare-body {
  margin-bottom: 56px;
}

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

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

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 8px;
}

.cmp-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}

.cmp-table thead th:first-child {
  color: var(--text-dim);
  width: 22%;
}

.cmp-table thead th:nth-child(2) {
  color: var(--text-muted);
}

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

.cmp-table tbody tr {
  border-bottom: 1px solid rgba(93, 202, 165, 0.06);
}

.cmp-table tbody tr:last-child { border-bottom: none; }

.cmp-table tbody td {
  padding: 16px 20px;
  vertical-align: top;
  font-weight: 300;
  line-height: 1.6;
}

.cmp-table tbody td:first-child {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.cmp-table tbody td:nth-child(2) {
  color: var(--text-muted);
}

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

.cmp-footnote {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 56px;
}

.compare-bottom-line {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 56px;
}

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

.compare-bottom-line p:last-child { margin-bottom: 0; }

.compare-bottom-line strong {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 640px) {
  .compare-wrap { padding: 100px 20px 80px; }
  .compare-hero { margin-bottom: 40px; padding-bottom: 40px; }
  .compare-bottom-line { padding: 28px 24px; }

  /* Stack table into cards on mobile */
  .cmp-table thead { display: none; }
  .cmp-table tbody tr {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
  }
  .cmp-table tbody td {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    width: 100%;
  }
  .cmp-table tbody td:first-child {
    font-size: 11px;
    letter-spacing: 0.8px;
    color: var(--teal);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .cmp-table tbody td:nth-child(2)::before {
    content: 'Them — ';
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .cmp-table tbody td:last-child::before {
    content: 'Francis — ';
    font-size: 11px;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .cmp-table tbody td:nth-child(2) { margin-top: 4px; }
  .cmp-table tbody td:last-child { margin-top: 8px; }
}

/* 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);
}

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

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

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

.carlo-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;
}

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

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

.carlo-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; }
  .carlo-bet { padding: 36px 28px; }
}

/* ── Light mode easter egg ── */
html.light-mode {
  --bg: #F5F0E8;
  --bg-card: #F2EDE5;
  --bg-card2: #EDE7DE;
  --border: rgba(15, 110, 86, 0.12);
  --text: #1A2A1E;
  --text-muted: #5A7060;
  --text-dim: #9AAD9E;
}
html.light-mode nav { background: rgba(245, 240, 232, 0.88); }
html.light-mode .ea-overlay { background: rgba(26, 42, 30, 0.55); }
html.light-mode .ea-close { background: rgba(0, 0, 0, 0.06); }
html.light-mode .ea-close:hover { background: rgba(0, 0, 0, 0.08); }
html.light-mode .ea-input { background: rgba(0, 0, 0, 0.05); }
html.light-mode select.ea-input option { background: #EDE7DE; }

.dm-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}
.dm-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
