/* ─── Variables ───────────────────────────────────────────────────────────── */
:root {
  --white: #FFFFFF;
  --black: #0A0A0A;
  --surface: #F4F4F5;
  --border: #E4E4E7;
  --muted: #A1A1AA;
  --muted-2: #71717A;
  --strength: #EF4444;
  --sharpness: #3B82F6;
  --discipline: #22C55E;
  --vision: #8B5CF6;
  --vitality: #F97316;
  --nav-h: 72px;
  --max-w: 1160px;
  --radius-card: 18px;
  --radius-pill: 99px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.08;
}

h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.4px;
}

p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 100px 0;
}

.bg-white {
  background: var(--white);
  color: var(--black);
}

.bg-surface {
  background: var(--surface);
  color: var(--black);
}

.bg-dark {
  background: var(--black);
  color: var(--white);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.bg-white .btn-primary,
.bg-surface .btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--black);
}

.btn-white {
  background: var(--white);
  color: var(--black);
}

.full-width {
  width: 100%;
}

/* ─── Section badges ─────────────────────────────────────────────────────── */
.section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.section-badge.dark {
  background: var(--surface);
  color: var(--black);
}

.section-badge.light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─── Section header ─────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}

.section-header p {
  margin-top: 14px;
}

/* ─── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  height: 40px;
  font-size: 0.85rem;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-subtitle {
  margin: 20px 0 36px;
  max-width: 440px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-n {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.stat-l {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

/* ─── Waitlist Form ──────────────────────────────────────────────────────── */
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  width: 100%;
}

.waitlist-form-centered {
  margin: 24px auto 0;
}

.waitlist-form input {
  flex: 1;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  padding: 0 18px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s;
}

.waitlist-form .waitlist-email-input {
  height: 52px !important;
  min-height: 52px;
  padding: 0 22px !important;
  border-radius: 18px;
  font-size: 1rem !important;
}

.waitlist-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.waitlist-form input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.success-msg {
  margin-top: 16px;
  font-weight: 700;
  color: var(--discipline);
  font-size: 0.95rem;
}

.cta-legal {
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-2);
}

/* ─── Phone Outer (sizing + side buttons) ────────────────────────────────── */
.phone-wrap {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.phone-outer {
  position: relative;
  width: 295px;
}

.phone-outer-sm {
  width: 255px;
}

/* Volume up + down (left side) */
.phone-outer::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 118px;
  width: 3px;
  height: 28px;
  background: #383838;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 40px 0 #383838;
  z-index: 0;
}

/* Power button (right side) */
.phone-outer::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 140px;
  width: 3px;
  height: 52px;
  background: #383838;
  border-radius: 0 2px 2px 0;
  z-index: 0;
}

/* ─── Phone Frame ────────────────────────────────────────────────────────── */
.phone-frame {
  width: 100%;
  background: #0d0d0d;
  border-radius: 52px;
  border: 2px solid #3c3c3c;
  box-shadow:
    0 0 0 1px #1a1a1a,
    0 60px 120px rgba(0, 0, 0, 0.85),
    0 25px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ─── Status Bar ─────────────────────────────────────────────────────────── */
.phone-status-bar {
  display: flex;
  align-items: center;
  padding: 10px 20px 0;
  height: 44px;
  position: relative;
  flex-shrink: 0;
  background: var(--white);
}

.phone-status-dark {
  background: #0f0f0f;
}

.status-time {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #0a0a0a;
  line-height: 1;
  flex-shrink: 0;
}

.phone-status-dark .status-time {
  color: rgba(255, 255, 255, 0.95);
}

.phone-di {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 6px;
  width: 108px;
  height: 30px;
  background: #0a0a0a;
  border-radius: 20px;
}

.phone-status-dark .phone-di {
  background: #000;
}

.status-icons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ─── Phone Screen ───────────────────────────────────────────────────────── */
.phone-screen {
  background: var(--white);
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 14px 0;
}

.phone-screen-dark {
  background: #0f0f0f;
}

/* ─── Phone Tab Bar ──────────────────────────────────────────────────────── */
.phone-tabbar {
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0 18px;
  gap: 0;
}

.phone-frame:has(.phone-status-dark) .phone-tabbar {
  background: rgba(12, 12, 12, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  font-size: 8px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

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

.phone-frame:has(.phone-status-dark) .tab-item {
  color: rgba(255, 255, 255, 0.28);
}

.phone-frame:has(.phone-status-dark) .tab-item.active {
  color: rgba(255, 255, 255, 0.95);
}

.tab-center {
  width: 44px;
  height: 44px;
  background: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* ─── App Screen – Dashboard ─────────────────────────────────────────────── */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4px 0 2px;
}

.app-greeting {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}

.app-name {
  font-size: 17px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.rank-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 800;
  color: var(--black);
}

.rank-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.app-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.app-card-dark {
  background: var(--black);
  border-color: var(--black);
}

.app-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-card-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--black);
}

.app-card-meta {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
}

.app-card-sub {
  font-size: 8px;
  color: var(--muted);
  font-weight: 500;
}

.mini-bar-track {
  width: 100%;
  height: 5px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  animation: barFill 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

@keyframes barFill {
  to {
    width: var(--w);
  }
}

.app-rings {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.app-ring-label {
  font-size: 7px;
  font-weight: 700;
}

.app-section-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 0 2px;
}

.app-tasks {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.app-task {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 7px 9px;
}

.app-task.done {
  background: var(--surface);
  border-color: var(--surface);
}

.task-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 8px;
  color: white;
  font-weight: 900;
}

.task-info {
  flex: 1;
}

.task-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--black);
}

.task-done-label {
  text-decoration: line-through;
  color: var(--muted);
}

.task-pillar {
  font-size: 7.5px;
  font-weight: 500;
  color: var(--muted);
}

.task-xp {
  font-size: 8px;
  font-weight: 800;
  color: var(--black);
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 99px;
}

.streak-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}

/* ─── Rank reveal screen ─────────────────────────────────────────────────── */
.rr-headline {
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.8px;
  line-height: 1.15;
  padding: 4px 2px 2px;
}

.rr-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rr-badge {
  width: 52px;
  height: 52px;
}

.rr-rank-name {
  font-size: 14px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.4px;
}

.rr-rank-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.rr-xp-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.rr-xp-text strong {
  color: var(--white);
  font-weight: 800;
}

.rr-tiers {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}

.rr-tier {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
}

.rr-tier.active {
  background: rgba(255, 255, 255, 0.07);
}

.rr-tier-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rr-tier-name {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  flex: 1;
}

.rr-tier.active .rr-tier-name {
  color: var(--white);
  font-weight: 900;
}

.rr-tier-xp {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.rr-you {
  background: var(--white);
  color: var(--black);
  font-size: 7px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 99px;
  letter-spacing: 0.3px;
}

/* ─── Pillars Layout ─────────────────────────────────────────────────────── */
.pillars-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: start;
  margin-top: 60px;
}

.pillar-mobile-preview {
  display: none;
}

@media (max-width: 1000px) {
  .pillars-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pillar-mobile-preview {
    display: block;
    order: 1;
  }

  .pillar-phone-wrap {
    display: none;
  }

  .pillars-layout .pillar-tabs {
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .pillars-layout .pillar-tab {
    padding: 12px;
    border-radius: 14px;
  }

  .pillars-layout .pillar-tab .pt-row {
    margin-bottom: 6px;
    gap: 8px;
  }

  .pillars-layout .pillar-tab .pt-name {
    font-size: 0.84rem;
  }

  .pillars-layout .pillar-tab .pt-bar-wrap {
    margin-bottom: 0;
  }

  .pillars-layout .pillar-tab .pt-body,
  .pillars-layout .pillar-tab.active .pt-body {
    display: none;
  }

  .pillar-mobile-preview .mobile-screen-preview {
    padding: 12px;
    border-radius: 28px;
  }

  .pillar-mobile-preview .mobile-screen-body {
    height: clamp(470px, 74vh, 620px);
    min-height: 470px;
  }

  .mobile-screen-body .log-screen {
    padding: 14px 14px 16px;
  }

  .mobile-screen-body .ls-nav {
    padding-bottom: 10px;
  }

  .mobile-screen-body .ls-two-col {
    gap: 8px;
  }

  .mobile-screen-body .ls-muscle-col {
    width: 68px;
  }

  .mobile-screen-body .ls-timer-center {
    padding: 6px 0 12px;
  }

  .mobile-screen-body .ls-timer-center svg {
    width: 124px;
    height: 124px;
  }

  .mobile-screen-body .ls-session-stats {
    padding: 10px 6px;
    margin-bottom: 10px;
  }

  .mobile-screen-body .ls-macros {
    padding-bottom: 12px;
  }

  .mobile-screen-body .ls-macro svg {
    width: 58px;
    height: 58px;
  }

  .mobile-screen-body .ls-goal {
    padding: 9px 10px;
  }

  .mobile-screen-body .ls-btn {
    margin-top: 12px;
  }
}

/* Pillar Tabs */
.pillar-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-tab {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.pillar-tab:hover {
  background: #ECECED;
}

.pillar-tab.active {
  background: var(--white);
  border-color: var(--border);
  border-left-color: var(--pc, #000);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

.pt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pt-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pt-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--black);
  flex: 1;
}

.pt-pct {
  display: none;
}

.pt-bar-wrap {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.pt-bar-fill {
  height: 100%;
  border-radius: 99px;
}

.pt-body {
  display: none;
}

.pillar-tab.active .pt-body {
  display: block;
}

.pt-desc {
  font-size: 0.82rem;
  color: var(--muted-2);
  margin-bottom: 10px;
  line-height: 1.5;
}

.pt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pt-tags span {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--muted-2);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 99px;
}

/* Mobile Pillar Preview */
.mobile-screen-preview {
  --preview-accent: #EF4444;
  --preview-glow: rgba(239, 68, 68, 0.16);
  position: relative;
  padding: 14px;
  border-radius: 30px;
  border: 1px solid rgba(10, 10, 10, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f6 100%);
  box-shadow:
    0 24px 50px var(--preview-glow),
    0 28px 80px rgba(0, 0, 0, 0.12),
    0 10px 26px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.mobile-screen-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top, var(--preview-glow) 0%, transparent 62%);
  pointer-events: none;
}

.mobile-screen-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--preview-accent);
  opacity: 0.16;
  pointer-events: none;
}

.mobile-screen-top {
  display: flex;
  justify-content: center;
  padding: 2px 0 14px;
}

.mobile-screen-notch {
  width: 92px;
  height: 10px;
  border-radius: 999px;
  background: #111111;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.mobile-screen-body {
  position: relative;
  height: clamp(420px, 68vh, 560px);
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.08);
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 30px rgba(0, 0, 0, 0.08);
}

.mobile-screen-body .phone-screen.ls-host {
  height: 100%;
  min-height: 0;
  border-radius: inherit;
}

/* Pillar Phone Sticky */
.pillar-phone-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  justify-content: center;
}

/* ─── Phone Stack (3-card) ───────────────────────────────────────────────── */
.pillar-phone-wrap {
  overflow: visible;
  align-items: flex-start;
  padding-top: 10px;
}

.phone-stack {
  position: relative;
  width: 295px;
  height: 590px;
}

/* All stack cards share the same phone size */
.phone-stack .phone-outer {
  width: 295px;
}

.phone-stack .phone-frame {
  height: 590px;
}

.stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 295px;
  /* Smooth spring for cards coming forward */
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Fast ease-in for the card being dismissed */
.stack-card.is-exiting {
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.8, 1),
    opacity 0.22s ease !important;
}

.stack-card[data-pos="front"] {
  transform: none;
  opacity: 1;
  z-index: 3;
}

.stack-card[data-pos="mid"] {
  transform: translateX(22px) translateY(14px) rotate(4.5deg) scale(0.91);
  opacity: 0.58;
  z-index: 2;
}

.stack-card[data-pos="back"] {
  transform: translateX(42px) translateY(28px) rotate(9deg) scale(0.83);
  opacity: 0.30;
  z-index: 1;
}

/* Exit sinks back into the deck — no sideways flying */
.stack-card[data-pos="exit"] {
  transform: translateY(12px) scale(0.87);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.stack-card.no-transition {
  transition: none !important;
}

/* Decorative screen for back/mid cards */
.stack-screen {
  flex: 1;
  background: var(--surface);
}

/* Screen content fade-in when a new pillar becomes active */
@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Log Screens Host */
.phone-screen.ls-host {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.log-screen {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 16px 16px 14px;
  gap: 0;
}

.log-screen.active {
  display: flex;
  animation: screenIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Log Nav */
.ls-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 12px;
  flex-shrink: 0;
}

.ls-back {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.ls-nav-title {
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--black);
}

.ls-xp-badge {
  font-size: 9.5px;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 99px;
}

.ls-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted);
  margin-bottom: 8px;
  flex-shrink: 0;
}

/* Chips */
.ls-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.ls-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 99px;
  background: var(--border);
  color: var(--muted-2);
  border: 1px solid transparent;
}

.ls-chip-on {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.22);
}

/* Two-col layout (exercises + muscle) */
.ls-two-col {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex: 1;
  min-height: 0;
}

.ls-exercises {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ls-ex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
}

.ls-ex-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ls-ex-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--black);
}

.ls-ex-detail {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
}

.ls-ex-pr {
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  flex-shrink: 0;
}

/* Muscle map column */
.ls-muscle-col {
  width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.ls-muscle-body {
  margin-bottom: 8px;
}

.ls-muscle-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.ls-mtag {
  font-size: 8px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 5px;
  text-align: center;
}

/* Muscle shapes */
.ls-muscle-shape {
  fill: #E4E4E7;
  stroke: white;
  stroke-width: 0.5;
  stroke-linejoin: round;
}

/* Log button — always sticks to bottom */
.ls-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-size: 12px;
  font-weight: 900;
  color: white;
  text-align: center;
  cursor: pointer;
  margin-top: auto;
  flex-shrink: 0;
  letter-spacing: -0.2px;
  margin-top: 14px;
}

/* Timer (Sharpness) */
.ls-timer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 16px;
  flex: 1;
}

/* Note block */
.ls-note-block {
  background: var(--surface);
  border-radius: 11px;
  padding: 11px 13px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.ls-note-text {
  font-size: 10px;
  color: var(--muted-2);
  line-height: 1.55;
  font-weight: 500;
  font-style: italic;
}

/* Session stats row (Sharpness) */
.ls-session-stats {
  display: flex;
  justify-content: space-around;
  background: var(--surface);
  border-radius: 11px;
  padding: 11px 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.ls-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.ls-stat-val {
  font-size: 15px;
  font-weight: 900;
  color: var(--black);
}

.ls-stat-label {
  font-size: 8px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Habits (Discipline) */
.ls-date-row {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.ls-date-cell {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  background: var(--surface);
}

.ls-date-cell.today {
  background: var(--black);
  color: var(--white);
}

.ls-date-day {
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--muted);
}

.ls-date-cell.today .ls-date-day {
  color: rgba(255, 255, 255, 0.6);
}

.ls-date-num {
  font-size: 12px;
  font-weight: 900;
  color: var(--black);
}

.ls-date-cell.today .ls-date-num {
  color: var(--white);
}

.ls-habits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  flex: 1;
}

.ls-habit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--surface);
}

.ls-check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ls-check-done {
  background: var(--black);
  border-color: var(--black);
}

.ls-check-done::after {
  content: '✓';
  font-size: 10px;
  color: white;
  font-weight: 900;
}

.ls-habit-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--black);
  flex: 1;
}

.ls-habit-done .ls-habit-name {
  text-decoration: line-through;
  color: var(--muted);
}

.ls-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.18);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  color: #F97316;
  align-self: flex-start;
  margin-bottom: 12px;
  flex-shrink: 0;
}

/* Goals (Vision) */
.ls-goals {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  margin-bottom: 0;
  min-height: 0;
}

.ls-goal {
  background: var(--surface);
  border-radius: 11px;
  padding: 10px 12px;
}

.ls-goal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ls-goal-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--black);
}

.ls-goal-pct {
  font-size: 10px;
  font-weight: 900;
}

.ls-goal-bar {
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}

.ls-goal-fill {
  height: 100%;
  border-radius: 99px;
}

.ls-goal-sub {
  font-size: 9px;
  color: var(--muted);
  font-weight: 600;
}

/* Milestone list inside goal */
.ls-ms-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.ls-ms {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 600;
}

.ls-ms-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--border);
}

.ls-ms-done {
  color: var(--muted);
}

.ls-ms-done .ls-ms-dot {
  background: #22C55E;
}

.ls-ms-active {
  color: var(--black);
  font-weight: 800;
}

.ls-ms-pending {
  color: rgba(0, 0, 0, 0.25);
}

/* Macros (Vitality) */
.ls-macros {
  display: flex;
  justify-content: space-around;
  padding: 4px 0 16px;
  flex-shrink: 0;
}

.ls-macro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.ls-macro-label {
  font-size: 8.5px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ls-meals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  flex: 1;
}

.ls-meal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--surface);
}

.ls-meal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ls-meal-info {
  flex: 1;
}

.ls-meal-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--black);
}

.ls-meal-time {
  font-size: 9px;
  color: var(--muted);
  font-weight: 600;
}

.ls-meal-cal {
  font-size: 11px;
  font-weight: 800;
  color: var(--black);
  flex-shrink: 0;
}

.ls-hydration {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.ls-hydration-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ls-hydration-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ls-water-count {
  font-size: 10px;
  font-weight: 800;
}

.ls-water-row {
  display: flex;
  gap: 5px;
}

.ls-water {
  flex: 1;
  height: 28px;
  border-radius: 7px;
  background: rgba(59, 130, 246, 0.07);
  border: 1.5px solid rgba(59, 130, 246, 0.15);
  position: relative;
  overflow: hidden;
}

.ls-water.filled {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

.ls-water.filled::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: rgba(59, 130, 246, 0.25);
  border-radius: 0 0 5px 5px;
}

#premium {
  display: none !important;
}

/* ─── Rank Section ───────────────────────────────────────────────────────── */
.rank-layout {
  display: flex;
  gap: 80px;
  align-items: center;
}

.rank-text {
  flex: 1;
}

.rank-text h2 {
  margin-bottom: 16px;
}

.rank-text>p {
  max-width: 440px;
  margin-bottom: 36px;
}

.rank-ladder {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}

.rank-row.active {
  background: rgba(255, 255, 255, 0.06);
}

.rank-row-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rank-row.active .rank-row-dot {
  width: 13px;
  height: 13px;
}

.rank-row-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  flex: 1;
}

.rank-row.active .rank-row-name {
  color: var(--white);
  font-weight: 900;
}

.rank-row-xp {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

.rank-you-badge {
  background: var(--white);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 99px;
  letter-spacing: 0.4px;
}

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

.bento-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.bento-dark {
  background: var(--black);
  border-color: rgba(255, 255, 255, 0.07);
}

.bento-dark:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.bento-col2 {
  grid-column: span 2;
}

.bento-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-bottom: 8px;
}

.bento-dark .bento-tag {
  color: rgba(255, 255, 255, 0.3);
}

.bento-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.2;
}

.bento-dark .bento-title {
  color: var(--white);
}

.bento-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.bento-dark .bento-desc {
  color: rgba(255, 255, 255, 0.38);
}

.bento-vis {
  margin-top: 22px;
  flex: 1;
}

/* Mini Leaderboard */
.mini-lb {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mini-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.mini-lb-you {
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.18);
}

.mini-lb-pos {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.28);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.mini-lb-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

.mini-lb-info {
  flex: 1;
  min-width: 0;
}

.mini-lb-name {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-lb-badge {
  background: rgba(217, 119, 6, 0.2);
  color: #D97706;
  font-size: 8px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
}

.mini-lb-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.mini-lb-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  animation: barFill 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

.mini-lb-xp {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Mini Ranks */
.mini-ranks {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
  border: 1px solid transparent;
}

.mini-rank-active {
  background: var(--surface);
  border-color: var(--border);
  color: var(--black);
  font-weight: 800;
}

.mini-rank-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mini-rank-active .mini-rank-dot {
  width: 10px;
  height: 10px;
}

.mini-rank-xp {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}

.mini-rank-cur {
  margin-left: auto;
  background: var(--black);
  color: var(--white);
  font-size: 8px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 99px;
}

/* Habit Heat Grid */
.mini-heat-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 3px;
  margin-bottom: 10px;
}

.heat-sq {
  aspect-ratio: 1;
  background: var(--border);
  border-radius: 2px;
  opacity: 0.35;
}

.heat-sq-on {
  background: #22C55E;
  opacity: 1;
}

.mini-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  color: #F97316;
}

/* AI Report Card */
.ai-report-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
}

.ai-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ai-week-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

.ai-xp-delta {
  font-size: 11px;
  font-weight: 900;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 8px;
  border-radius: 99px;
}

.ai-insight-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-insight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.ai-insight-item strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.ai-ins-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Analytics Pillar Bars */
.mpb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mpb-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mpb-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted-2);
  width: 58px;
  flex-shrink: 0;
}

.mpb-track {
  flex: 1;
  height: 6px;
  background: var(--surface);
  border-radius: 99px;
  overflow: hidden;
}

.mpb-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  animation: barFill 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.7s;
}

.mpb-val {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}

/* VS / Friend Challenges */
.vs-layout {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px;
}

.vs-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vs-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: white;
}

.vs-name {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.vs-score {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

.vs-pillar-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vs-pt {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.vs-pf {
  height: 100%;
  width: 0;
  border-radius: 99px;
  animation: barFill 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.9s;
}

.vs-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.vs-vs {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
}

.vs-time {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.28);
  white-space: nowrap;
}

/* ─── Insight Section ────────────────────────────────────────────────────── */
.insight-section {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.insight-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.insight-number {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 24px;
}

.insight-text {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--white);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.35;
  letter-spacing: -0.4px;
}

.insight-text em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
}

.insight-text strong {
  color: var(--white);
}

.insight-sub {
  margin-top: 20px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Chart */
.insight-chart-wrap {
  width: 100%;
  max-width: 700px;
  margin-top: 60px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 32px 28px 24px;
}

.insight-chart-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

.chart-legend-line {
  width: 24px;
  height: 2px;
  border-radius: 2px;
}

@keyframes chartDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ─── Pricing ────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  position: relative;
}

.pricing-featured {
  background: var(--black);
  border-color: var(--black);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--discipline);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 16px;
  border-radius: 99px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}

.pricing-featured .pricing-tier {
  color: rgba(255, 255, 255, 0.5);
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--black);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.pricing-featured .pricing-price {
  color: var(--white);
}

.pricing-billed {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 28px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.pricing-featured .pricing-features {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.pricing-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted-2);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--discipline);
  font-weight: 900;
}

.pricing-features-light li {
  color: rgba(255, 255, 255, 0.65);
}

.pricing-features-light li::before {
  color: var(--discipline);
}

.pricing-features-light strong {
  color: var(--white);
  font-weight: 800;
}

/* ─── CTA Section ────────────────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.cta-inner {
  max-width: 520px;
  margin: 0 auto;
}

.cta-inner h2 {
  margin-bottom: 16px;
}

.cta-inner p {
  max-width: 400px;
  margin: 0 auto;
}

.cta-inner .waitlist-form {
  max-width: 100%;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  padding: 48px 0;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.footer-copy {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-2);
}

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

.footer-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-2);
  transition: color 0.2s;
}

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

/* Legal + Contact Pages */
.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 34%),
    var(--black);
}

.page-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-nav-inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.page-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.3px;
}

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

.page-nav-links a {
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s ease;
}

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

.page-hero {
  padding: 72px 0 36px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: end;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}

.page-hero p {
  max-width: 640px;
  margin-top: 18px;
}

.page-meta-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.page-meta-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.42);
}

.page-meta-value {
  margin-top: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
}

.page-meta-note {
  margin-top: 10px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.5);
}

.content-section {
  padding: 24px 0 100px;
}

.content-card {
  background: var(--white);
  color: var(--black);
  border-radius: 28px;
  padding: 44px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
}

.content-card h2,
.content-card h3 {
  color: var(--black);
}

.content-card p,
.content-card li {
  color: var(--muted-2);
}

.legal-prose {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.legal-prose section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-prose ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 1.14fr);
  gap: 28px;
  align-items: start;
}

.contact-shell {
  max-width: 760px;
  margin: 0 auto;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-feature {
  padding: 18px 20px;
  background: rgba(10, 10, 10, 0.03);
  border: 1px solid rgba(10, 10, 10, 0.06);
  border-radius: 18px;
}

.contact-feature h3 {
  margin-bottom: 8px;
}

.contact-form-card {
  background: var(--white);
  color: var(--black);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.contact-form-card p {
  color: var(--muted-2);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--black);
}

.field-label input,
.field-label textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: #FAFAFA;
  color: var(--black);
  font-family: inherit;
  font-size: 0.98rem;
  padding: 16px 18px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field-label input:focus,
.field-label textarea:focus {
  outline: none;
  border-color: rgba(10, 10, 10, 0.28);
  background: var(--white);
}

.field-label textarea {
  min-height: 180px;
  resize: vertical;
}

.field-label input::placeholder,
.field-label textarea::placeholder {
  color: #9CA3AF;
}

.contact-status {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-status.is-success {
  color: var(--discipline);
}

.contact-status.is-error {
  color: #FCA5A5;
}

.page-footer {
  margin-top: 28px;
}

/* ─── Scroll Animations ──────────────────────────────────────────────────── */
.anim-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}

.anim-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 28px 32px;
  flex-direction: column;
  gap: 6px;
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.mobile-nav-link {
  display: block;
  padding: 13px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.mobile-nav-cta {
  text-align: center;
  width: 100%;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (max 768px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Sections */
  .section {
    padding: 72px 0;
  }

  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: 60px;
    gap: 48px;
  }

  .hero-subtitle {
    margin: 0 auto;
    max-width: 340px;
  }

  .hero-stats {
    justify-content: center;
  }

  .phone-wrap {
    width: 100%;
    justify-content: center;
  }

  .phone-outer {
    width: min(295px, 80vw);
  }

  .phone-outer-sm {
    width: min(255px, 70vw);
  }

  /* Stats bar */
  .hero-stats {
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  /* Pillars — hide phone, single column */
  .pillars-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 40px;
  }

  .pillar-phone-wrap {
    display: none;
  }

  .pillar-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .pillar-tab {
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .pillar-tab .pt-row {
    justify-content: center;
  }

  .pillar-tab .pt-dot {
    display: none;
  }

  .pillar-tab .pt-name {
    flex: 0 1 auto;
    text-align: center;
  }

  .pillar-tab .pt-bar-wrap {
    width: 100%;
    max-width: 92px;
    margin: 0 auto;
  }

  .mobile-screen-preview {
    padding: 12px;
    border-radius: 26px;
  }

  .mobile-screen-top {
    padding-bottom: 12px;
  }

  .mobile-screen-body {
    height: clamp(440px, 68vh, 540px);
    min-height: 440px;
    border-radius: 20px;
  }

  .mobile-screen-body #screen-strength .ls-two-col {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-screen-body #screen-strength .ls-muscle-col {
    width: 100%;
  }

  .mobile-screen-body #screen-strength .ls-muscle-body {
    margin-bottom: 10px;
  }

  .mobile-screen-body #screen-strength .ls-muscle-body svg {
    width: 76px !important;
  }

  .mobile-screen-body #screen-strength .ls-muscle-tags {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  #hero-form input,
  #bottom-form input {
    height: 120px;
    padding: 0 22px;
    font-size: 1.02rem;
  }

  #hero-form .btn,
  #bottom-form .btn {
    height: 58px;
  }

  /* Rank */
  .rank-layout {
    flex-direction: column;
    gap: 40px;
  }

  .rank-text>p {
    max-width: 100%;
  }

  /* Bento grid — 2 col then 1 col */
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .bento-card {
    padding: 20px;
    border-radius: 18px;
  }

  /* Insight chart — narrower */
  .insight-chart-wrap {
    padding: 24px 16px 18px;
  }

  /* Pricing — single column */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .page-hero {
    padding-top: 56px;
  }

  .page-hero-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .contact-form-card {
    padding: 24px 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (max 480px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Base */
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 60px 0;
  }

  h2 {
    letter-spacing: -1px;
  }

  /* Hero */
  .hero {
    gap: 36px;
    padding-top: calc(var(--nav-h) + 36px);
  }

  .hero-badge {
    font-size: 0.65rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .phone-outer {
    width: min(295px, 88vw);
  }

  /* Waitlist form */
  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form .btn {
    height: 58px;
    width: 100%;
  }

  /* Stats bar */
  .hero-stats {
    gap: 16px;
  }

  .stat-n {
    font-size: 1.5rem;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 44px;
  }

  /* Pillar tabs — tighten */
  .pillar-tab {
    padding: 11px 12px;
    border-radius: 13px;
  }

  .pt-name {
    font-size: 0.82rem;
  }

  .mobile-screen-preview {
    padding: 10px;
    border-radius: 22px;
  }

  .mobile-screen-top {
    padding-bottom: 10px;
  }

  .mobile-screen-notch {
    width: 78px;
    height: 9px;
  }

  .mobile-screen-body {
    height: min(500px, 68vh);
    min-height: 420px;
    border-radius: 18px;
  }

  .mobile-screen-body .log-screen {
    padding: 13px 13px 15px;
  }

  #hero-form input,
  #bottom-form input {
    height: 120px;
  }

  /* Bento — single column */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bento-col2 {
    grid-column: span 1;
  }

  .bento-card {
    padding: 18px;
  }

  /* Insight */
  .insight-number {
    letter-spacing: -3px;
  }

  .insight-chart-wrap {
    margin-top: 36px;
  }

  /* Rank */
  .rank-layout {
    gap: 32px;
  }

  /* Pricing */
  .pricing-grid {
    max-width: 100%;
  }

  .pricing-card {
    padding: 28px 24px;
  }

  /* Footer */
  .footer {
    padding: 36px 0;
  }

  .footer-logo span {
    display: none;
  }

  .page-nav-inner {
    min-height: 64px;
  }

  .page-nav-links {
    gap: 12px;
  }

  .page-nav-links a {
    font-size: 0.84rem;
  }

  .page-meta-card {
    padding: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL PHONES  (max 360px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .container {
    padding: 0 16px;
  }

  .phone-outer {
    width: calc(100vw - 48px);
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .bento-card {
    padding: 14px;
    border-radius: 14px;
  }
}
