/* ═══════════════════════════════════════════════
   Mahealio — Landing Page Styles
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700;800&family=Manrope:wght@300;400;500;600;700&display=swap');

/* ─── Tokens ──────────────────────────────────── */
:root {
  --teal: #2a9d8f;
  --teal-light: #3dbdad;
  --teal-dark: #1e7268;
  --espresso: #2c1e14;
  --charcoal: #1a1a2e;
  --warm-gray: #8a7f78;
  --sand: #e8e0d5;
  --ivory: #fdfbf7;
  --sage-soft: #d8eee8;
  --honey-soft: #fdf0d0;
  --blush-soft: #fce8e8;
  --lavender-soft: #ede8f5;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  --max-w: 1160px;
  --section-pad: 100px 24px;
}

/* ─── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--espresso);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── Shared ──────────────────────────────────── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--sage-soft);
  border-radius: var(--r-full);
  padding: 4px 14px;
  margin-bottom: 20px;
}

h1, h2, h3 { text-wrap: balance; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--warm-gray);
  max-width: 520px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* ─── Buttons ─────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: white;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 32px hsla(172,57%,39%,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px hsla(172,57%,39%,0.4);
}
.btn-primary.btn-large {
  font-size: 1.1rem;
  padding: 18px 36px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--warm-gray);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--teal); }

/* ─── NAV ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(253,251,247,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--espresso);
}
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: white;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-mark-sm { width: 30px; height: 30px; font-size: 0.7rem; border-radius: 8px; }
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--warm-gray);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--espresso); }
.btn-nav {
  display: inline-flex;
  align-items: center;
  background: var(--espresso);
  color: white;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--r-full);
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--teal); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--espresso);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: white;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--sand);
  gap: 4px;
}
.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--warm-gray);
  padding: 12px 0;
  border-bottom: 1px solid var(--sand);
}
.nav-mobile a:last-child { border-bottom: none; }
.btn-nav-mobile {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: white !important;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--r-full);
  text-align: center;
  margin-top: 12px;
}

/* ─── HERO ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: linear-gradient(180deg, #d6f0ec 0%, #e8f7f4 25%, #f4faf9 55%, var(--ivory) 80%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, hsla(172,57%,80%,0.5), transparent 70%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, hsla(36,80%,85%,0.5), transparent 70%);
  bottom: 0; left: 5%;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, hsla(270,50%,85%,0.4), transparent 70%);
  top: 40%; right: 5%;
}

/* ── Centered hero wrapper ── */
.hero-center {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo mark */
.hero-logo-mark {
  width: 56px; height: 56px;
  background: var(--espresso);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.hero-logo-mark span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

/* Headline */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: normal;
  color: var(--teal);
}

/* Subtitle */
.hero-sub {
  font-size: 1.05rem;
  color: var(--warm-gray);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 36px;
}

/* Email CTA bar */
.hero-email-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: white;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 6px 6px 6px 20px;
  width: 100%;
  max-width: 480px;
  margin-bottom: 20px;
}
.hero-email-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--espresso);
  min-width: 0;
}
.hero-email-input::placeholder {
  color: #b5ada6;
}
.hero-email-btn {
  display: inline-flex;
  align-items: center;
  background: var(--espresso);
  color: white;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.hero-email-btn:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

/* Social proof row */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.hero-proof p {
  font-size: 0.85rem;
  color: var(--warm-gray);
}
.hero-proof strong { color: var(--espresso); }

/* Stats strip */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  background: white;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 20px;
  padding: 20px 36px;
  margin-bottom: 60px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1;
}
.hero-stat-plus {
  font-size: 1.1rem;
  color: var(--teal);
}
.hero-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-stat-divider {
  font-size: 1.5rem;
  color: var(--sand);
  font-weight: 300;
  line-height: 1;
  padding-bottom: 12px;
}

/* Shared proof avatars (used in hero + other sections) */
.proof-avatars { display: flex; }
.proof-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: -8px;
}
.proof-avatars .proof-avatar:first-child { margin-left: 0; }

/* Global h1 */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
h1 em { font-style: normal; color: var(--teal); }

/* Phone wrap — centered, fades out at bottom */
.hero-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  /* Gradient mask: full opacity top, transparent bottom ~35% */
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

/* Phone mockup scene */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

/* Perspective scene */
.hero-phone-scene {
  perspective: 1400px;
  perspective-origin: 50% 0%;
}

.hero-phone-scene .phone-frame {
  transform: rotateX(12deg);
  transform-style: preserve-3d;
  box-shadow:
    0 80px 160px rgba(0,0,0,0.28),
    0 24px 48px rgba(0,0,0,0.14),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  transition: transform 0.6s ease;
}

.hero-phone-scene .phone-frame:hover {
  transform: rotateX(7deg);
}

.hero-phone-scene .phone-screen {
  height: 500px;
}

.phone-frame {
  width: 280px;
  background: #ffffff;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 
    inset 0 0 0 2px #d2d4d6,
    inset 0 0 0 6px #e0e2e5,
    0 40px 80px rgba(0,0,0,0.15);
  position: relative;
  border: 1px solid #c0c2c5;
  background-image: linear-gradient(135deg, #e8eaeb 0%, #ffffff 50%, #d8dadc 100%);
  transform-style: preserve-3d;
}

.hero-phone-left .phone-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 46px;
  background: #a4a7ab;
  transform: translateZ(-15px);
  z-index: -1;
  box-shadow: inset -10px 0 20px rgba(255,255,255,0.5), -20px 20px 40px rgba(0,0,0,0.2);
}

.hero-phone-right .phone-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 46px;
  background: #a4a7ab;
  transform: translateZ(-15px);
  z-index: -1;
  box-shadow: inset 10px 0 20px rgba(255,255,255,0.5), 20px 20px 40px rgba(0,0,0,0.2);
}

/* Side Buttons (Power & Volume) for straight-on phones */
.phone-frame::before {
  content: ''; position: absolute;
  left: -2px; top: 100px;
  width: 2px; height: 32px;
  background: #c0c2c5;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 45px 0 #c0c2c5, 0 110px 0 #c0c2c5;
}
.phone-frame::after {
  content: ''; position: absolute;
  right: -2px; top: 120px;
  width: 2px; height: 48px;
  background: #c0c2c5;
  border-radius: 0 2px 2px 0;
}

/* Dynamic Island — modern iPhone pill */
.phone-notch {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 30px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}
.phone-notch::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #111;
  box-shadow: inset 0 0 2px rgba(255,255,255,0.2);
}
.phone-notch::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0c1524;
}

.phone-screen {
  background: #000;
  border-radius: 34px;
  padding: 0;
  height: 556px;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  display: flex;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.phone-screen::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.bottom-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.05);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 10px; /* for safe area */
  z-index: 10;
}
.nav-item {
  color: #c0b8b0;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav-item.active {
  color: #2a9d8f;
}
.ios-alert {
  position: absolute;
  top: 40px;
  left: 10px; right: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  z-index: 30;
  animation: slideDownAlert 5s infinite;
}
@keyframes slideDownAlert {
  0%, 10% { transform: translateY(-100%); opacity: 0; }
  15%, 85% { transform: translateY(0); opacity: 1; }
  90%, 100% { transform: translateY(-100%); opacity: 0; }
}
.app-task-animated { animation: slideInTask 0.5s ease-out both; }
.app-check-animated { animation: checkPop 4s infinite; }
.app-check-animated svg { opacity: 0; animation: checkSvg 4s infinite; }
@keyframes slideInTask {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes checkPop {
  0%, 75% { background: transparent; border-color: #e8e0d5; }
  80% { transform: scale(1.15); }
  85%, 100% { background: #2a9d8f; border-color: #2a9d8f; transform: scale(1); }
}
@keyframes checkSvg {
  0%, 75% { opacity: 0; }
  85%, 100% { opacity: 1; }
}
.evidence-thumb {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.evidence-thumb:hover { transform: scale(1.2) rotate(3deg); z-index: 10; }
.floating-person {
  position: absolute; background: white; border-radius: 16px; padding: 10px 14px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  z-index: 20; animation: floatCard 4s ease-in-out infinite;
}
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.floating-person-dark { background: #1a1a2e; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.floating-person-dark strong { color: white; }
.floating-person-dark span { color: rgba(255,255,255,0.6); }

/* ─── Hero floating badge pills ──────────────── */
.hero-badge-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 10px 16px 10px 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 20;
  white-space: nowrap;
}
.hero-badge-left {
  left: 40px;
  top: 50px;
  animation: floatBadge 4s ease-in-out infinite;
}
.hero-badge-right {
  right: 40px;
  top: 130px;
  animation: floatBadge 4s ease-in-out infinite 2s;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hbf-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--sage-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.hbf-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hbf-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hbf-value {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--espresso);
}
.hbf-avatars {
  display: flex;
  flex-direction: row;
}
.hbf-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: -6px;
  flex-shrink: 0;
}
.hbf-avatars .hbf-avatar:first-child { margin-left: 0; }

/* ═══════════════════════════════════════════════
   HERO V2 — reference-style centered layout
   ═══════════════════════════════════════════════ */

/* Override hero background for v2 — cleaner & lighter */
.hero.hero-v2 {
  background: linear-gradient(180deg, #eaf7f5 0%, #f5fbfa 30%, #fdfbf7 70%);
  align-items: flex-start;
  padding-bottom: 0;
}

/* Main wrapper */
.hero-v2-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 90px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Override hero-title for v2 */
.hero-v2 .hero-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  margin-bottom: 20px;
}

/* Override hero-sub for v2 */
.hero-v2 .hero-sub {
  font-size: 1.15rem;
  max-width: 640px;
  margin-bottom: 0;
  color: #6b6360;
}

/* ── Trust Badges ── */
.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 999px;
  padding: 8px 18px 8px 10px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
}

.trust-icon-wrap {
  font-size: 1rem;
  width: 32px; height: 32px;
  background: var(--sage-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.trust-icon-honey { background: var(--honey-soft); }

.trust-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--espresso);
  line-height: 1.2;
  text-align: left;
}

.trust-sub {
  font-size: 0.66rem;
  color: var(--warm-gray);
  margin-top: 1px;
  text-align: left;
}

.hero-divider {
  font-size: 1.4rem;
  color: var(--sand);
  font-weight: 300;
  line-height: 1;
}

/* ── Phone Scene ── */
.hero-v2-phone-scene {
  position: relative;
  width: 820px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 60px;
}

.hero-v2-phone {
  position: relative;
  z-index: 5;
  /* Expand bounding box so the mask doesn't clip the massive drop shadows */
  padding: 60px 140px 140px 140px;
  margin: -60px -140px -60px -140px;
  /* Bottom mask fade so the phone bleeds into the next section */
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

/* Larger phone frame for hero */
.hero-phone-frame {
  width: 300px;
  box-shadow:
    0 60px 120px rgba(0,0,0,0.25),
    0 20px 40px rgba(0,0,0,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.1);
}

/* Override phone-screen height for hero */
.hero-phone-frame .phone-screen {
  height: 590px;
}

/* ── Slide system (override default horizontal scroll) ── */
.hero-slide-screen {
  display: block !important;
  overflow: hidden !important;
  scroll-snap-type: none !important;
  position: relative !important;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
  flex-shrink: unset !important;
  scroll-snap-align: none !important;
}

.hero-slide.active {
  opacity: 1;
}

/* Slide indicator dots */
.hero-slide-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.hero-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #c8c0b8;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot.active {
  background: var(--teal);
  width: 20px;
}

/* ── Floating Notification Cards ── */
.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
  z-index: 20;
  white-space: nowrap;
  text-align: left;
}

.hfc-pos-left-top {
  left: 0;
  top: 50px;
  animation: floatCard 4s ease-in-out infinite;
}

.hfc-pos-right-top {
  right: 0;
  top: 160px;
  animation: floatCard 4s ease-in-out infinite 1.4s;
}

.hfc-pos-left-bottom {
  left: 0;
  top: 310px;
  animation: floatCard 4s ease-in-out infinite 2.8s;
}

.hfc-pos-right-bottom {
  right: 0;
  top: 390px;
  animation: floatCard 4s ease-in-out infinite 0.7s;
}

.hfc-icon-wrap {
  font-size: 1rem;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.hfc-teal   { background: var(--sage-soft); }
.hfc-purple { background: var(--lavender-soft); }
.hfc-honey  { background: var(--honey-soft); }
.hfc-flame  { background: #fff0e8; }

.hfc-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--espresso);
  line-height: 1.2;
}

.hfc-sub {
  font-size: 0.66rem;
  color: var(--warm-gray);
  margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero-v2-phone-scene {
    width: 100%;
    margin-top: 40px;
  }
  /* Scale down floating cards on mobile instead of hiding them */
  .hero-float-card {
    padding: 8px 12px;
    gap: 8px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }
  .hfc-icon-wrap { width: 26px; height: 26px; font-size: 0.8rem; border-radius: 8px; }
  .hfc-title { font-size: 0.7rem; }
  .hfc-sub { font-size: 0.58rem; margin-top: 0; }

  /* Adjust positions to overlap the phone edges */
  .hfc-pos-left-top { left: -10px; top: 60px; z-index: 30; }
  .hfc-pos-right-top { right: -10px; top: 130px; z-index: 30; }
  .hfc-pos-left-bottom { left: -10px; top: 240px; z-index: 30; }
  .hfc-pos-right-bottom { right: -10px; top: 310px; z-index: 30; }
}

@media (max-width: 480px) {
  /* Stack all 4 cards vertically on small screens */
  .hfc-pos-left-top { left: -5px; top: 30px; }
  .hfc-pos-right-top { right: -5px; top: 110px; }
  .hfc-pos-left-bottom { left: -5px; top: 200px; display: flex; }
  .hfc-pos-right-bottom { right: -5px; top: 280px; display: flex; }
}

@media (max-width: 600px) {
  .hero-v2 .hero-title { font-size: 2.4rem; }
  .hero-phone-frame { width: 260px; }
  .hero-phone-frame .phone-screen { height: 510px; }
  .hero-slide-screen { height: 510px !important; }
}



.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.app-greeting {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #2c1e14;
}
.app-date { font-size: 0.72rem; color: #8a7f78; margin-top: 2px; }
.app-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.app-card {
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}
.progress-card {
  background: linear-gradient(135deg, #2a9d8f, #3dbdad);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.app-card-label { font-size: 0.72rem; font-weight: 700; opacity: 0.85; }
.app-streak {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  display: inline-block;
  border-radius: 20px;
  padding: 2px 10px;
  width: fit-content;
}
.app-pills { display: flex; gap: 5px; margin-top: 4px; }
.app-pill {
  width: 28px; height: 13px;
  border-radius: 6px;
  background: rgba(255,255,255,0.3);
}
.app-pill.taken { background: white; }
.app-ring {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
}
.app-ring span {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: white;
}
.app-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2c1e14;
  margin-bottom: 8px;
}
.app-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 6px;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.app-task.done { opacity: 0.55; }
.app-task.active-task { border: 1.5px solid #2a9d8f; }
.app-task-time { font-size: 0.65rem; font-weight: 600; color: #8a7f78; min-width: 36px; }
.app-task-info { flex: 1; }
.app-task-name { font-size: 0.78rem; font-weight: 700; color: #2c1e14; }
.app-task-sub { font-size: 0.65rem; color: #8a7f78; }
.app-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid #e8e0d5;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.app-check.active { background: #2a9d8f; border-color: #2a9d8f; }
.app-check.pulse-check {
  border-color: #2a9d8f;
  animation: ring-pulse 1.5s ease infinite;
}
@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(42,157,143,0.4); }
  50% { box-shadow: 0 0 0 5px rgba(42,157,143,0); }
}

/* ─── TRUST BAR ───────────────────────────────── */
.trust-bar {
  background: white;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  padding: 28px 24px;
}
.trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-inner > p {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--warm-gray);
  white-space: nowrap;
}
.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-tags span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--espresso);
  background: var(--ivory);
  border: 1px solid var(--sand);
  border-radius: var(--r-full);
  padding: 5px 14px;
}

/* ─── ALTERNATING FEATURE SECTIONS ────────────── */
.feat-section {
  background: var(--ivory);
  overflow: hidden;
  padding: 70px 0;
}
.feat-section.feat-dark {
  background: var(--charcoal);
}
.feat-section.feat-warm {
  background: #fdf8f0;
}

.feat-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Use order instead of direction: rtl for reversing */
.feat-inner.feat-reverse .feat-text { order: 2; }
.feat-inner.feat-reverse .feat-phone { order: 1; }

.feat-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.feat-text h2 {
  margin-bottom: 16px;
}
.feat-text p {
  font-size: 1rem;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 28px;
}
.feat-dark .feat-text h2 { color: white; }
.feat-dark .feat-text p { color: rgba(255,255,255,0.55); }
.feat-dark .section-label {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--warm-gray);
  line-height: 1.6;
}
.feat-list-dark li { color: rgba(255,255,255,0.6); }
.feat-list-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.feat-list-icon-dark {
  background: rgba(42,157,143,0.2);
  color: var(--teal-light);
}

/* Phone wrapper with colored glow bg */
.feat-phone {
  position: relative;
  display: flex;
  justify-content: center;
}
.feat-phone-right { justify-content: flex-end; }
.feat-phone-left { justify-content: flex-start; }

.feat-phone-bg {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.feat-phone-bg-teal { background: radial-gradient(circle, hsla(172,57%,70%,0.8), transparent 70%); }
.feat-phone-bg-purple { background: radial-gradient(circle, hsla(260,50%,70%,0.7), transparent 70%); }
.feat-phone-bg-honey { background: radial-gradient(circle, hsla(40,90%,75%,0.7), transparent 70%); }
.feat-phone-bg-lavender { background: radial-gradient(circle, hsla(270,60%,80%,0.7), transparent 70%); }

.feat-phone .phone-frame {
  position: relative;
  z-index: 1;
  width: 280px;
}

.feat-dark .phone-frame {
  background: #151520;
}
.feat-dark .phone-notch {
  background: #151520;
}

/* Divider between sections */
.feat-section + .feat-section:not(.feat-dark):not(.feat-warm) {
  border-top: 1px solid var(--sand);
}

/* Feature 1 — phone left, text right, centred gap */
.feat-split-right {
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
}
/* Text column sits 80px lower than phone on desktop */
.feat-text-meds {
  margin-top: 80px;
}

/* Accountability Partner floating card */
.floating-person-partner {
  left: -80px;
  bottom: 180px;
}

@media (max-width: 900px) {
  .feat-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .feat-inner.feat-reverse .feat-text { order: 1; }
  .feat-inner.feat-reverse .feat-phone { order: 2; }
  .feat-text { align-items: center; }
  .feat-phone { justify-content: center !important; }
  .feat-phone .phone-frame { width: 260px; }
  .feat-list { text-align: left; }
}


/* ─── HOW IT WORKS — 2×2 CARD GRID ──────────── */
.how-it-works { background: white; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.step-card {
  background: var(--ivory);
  border: 1px solid var(--sand);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}
.step-card.step-card-dark {
  background: var(--charcoal);
  border-color: transparent;
  color: white;
}
.step-card.step-card-dark h3 { color: white; }
.step-card.step-card-dark p { color: rgba(255,255,255,0.6); }

.step-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: var(--teal);
  opacity: 0.12;
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 24px;
  letter-spacing: -0.04em;
}
.step-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* ─── APP SCREENS ────────────────────────────── */
.screens-section { background: var(--charcoal); overflow: hidden; }
.screens-section .section-label { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.screens-section h2 { color: white; }
.screens-section .section-sub { color: rgba(255,255,255,0.5); }

.screens-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 24px;
  align-items: end;
}

.screen-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.screen-item-featured {
  transform: translateY(-24px);
}

.screen-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-full);
  padding: 4px 14px;
}
.screen-label-featured {
  color: var(--teal-light);
  background: rgba(42,157,143,0.2);
}

.phone-sm {
  width: 220px;
}
.phone-sm .phone-screen {
  height: 420px;
  padding: 12px 10px;
}
.phone-sm .phone-notch {
  width: 70px;
  height: 20px;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
  .screens-row { grid-template-columns: 1fr; align-items: center; }
  .screen-item-featured { transform: none; }
  .phone-sm { width: 260px; }
}
@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ─── TESTIMONIALS ────────────────────────────── */
.testimonials { background: var(--ivory); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: white;
  border-radius: var(--r-xl);
  padding: 32px;
  border: 1px solid var(--sand);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-card.testimonial-featured {
  background: var(--charcoal);
  border-color: transparent;
  color: white;
}
.testimonial-card.testimonial-featured p { color: rgba(255,255,255,0.8); }
.testimonial-stars { color: #f4c542; letter-spacing: 2px; }
.testimonial-card p {
  font-size: 0.92rem;
  color: var(--warm-gray);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--charcoal); }
.testimonial-card.testimonial-featured .testimonial-author strong { color: white; }
.testimonial-author span { font-size: 0.78rem; color: var(--warm-gray); }

/* ─── COMING SOON — Split Layout ──────────────── */
.cs-section {
  padding: 110px 0 120px;
  background: var(--sand);
  overflow: hidden;
}

.cs-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ── Left column ── */
.cs-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cs-label {
  display: inline-block;
  background: rgba(42, 157, 143, 0.12);
  color: var(--teal);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 22px;
  border: 1px solid rgba(42, 157, 143, 0.22);
}

.cs-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--espresso);
  line-height: 1.12;
  margin-bottom: 20px;
}

.cs-sub {
  font-size: 1.05rem;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
}

/* App Store badges */
.cs-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--espresso);
  color: white;
  padding: 11px 20px;
  border-radius: 12px;
  text-decoration: none;
  width: fit-content;
  min-width: 180px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.16);
}

.cs-badge:hover {
  background: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(42,157,143,0.3);
}

.cs-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cs-badge-text span {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.cs-badge-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

/* ── Right column — 2 phones side-by-side ── */
.cs-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cs-two-phones {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.cs-phone-card {
  width: 200px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.14),
    0 6px 16px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.cs-phone-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 32px 60px rgba(0,0,0,0.16),
    0 10px 24px rgba(0,0,0,0.08);
}

/* Stagger: low phone sits lower, high phone elevated */
.cs-phone-low  { transform: translateY(40px); }
.cs-phone-high { transform: translateY(0); }
.cs-phone-low:hover  { transform: translateY(30px); }
.cs-phone-high:hover { transform: translateY(-10px); }

.cs-phone-card img {
  width: 100%;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cs-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 0 32px;
  }
  .cs-left { align-items: center; text-align: center; }
  .cs-sub { max-width: 100%; }
  .cs-badges { align-items: center; }
  .cs-right { justify-content: center; }
  .cs-phone-card { width: 170px; }
}

@media (max-width: 500px) {
  .cs-phone-card { width: 145px; border-radius: 22px; }
  .cs-two-phones { gap: 12px; }
}

/* ─── CTA SECTION ─────────────────────────────── */
.cta-section {
  background: var(--charcoal);
  overflow: hidden;
}
.cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-blob {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(172,57%,40%,0.3), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-logo { margin-bottom: 28px; }
.cta-inner h2 { color: white; margin-bottom: 12px; }
.cta-inner > p { color: rgba(255,255,255,0.55); margin-bottom: 36px; font-size: 1rem; }
.cta-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0 !important;
}

/* ─── FOOTER ──────────────────────────────────── */
.footer {
  background: #111118;
  padding: 60px 24px 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .nav-logo { color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.35); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .feat-inner[style*="grid-template-columns: auto auto"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 1; }
  .hero-phone { order: 2; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.feature-large { grid-column: span 2; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }

  /* Problem statement section responsive */
  #problem-statement > div {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
    padding: 0 24px !important;
  }

  /* Feature 1 (meds) inline grid override */
  .feat-split-right {
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 40px !important;
  }
  .feat-split-right .feat-text {
    text-align: center;
    align-items: center;
    margin-top: 0 !important;
  }
  /* Reset the desktop offset so text isn't pushed down */
  .feat-text-meds { margin-top: 0; }
}

@media (max-width: 768px) {
  /* Reduce section vertical padding */
  :root { --section-pad: 80px 20px; }

  /* Hide desktop nav, show hamburger */
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: flex; }

  /* Floating partner card no longer overflows */
  .floating-person {
    display: none;
  }

  /* Coming soon section padding */
  .cs-section { padding: 72px 0 80px; }
  .cs-inner { padding: 0 20px; }

  /* Footer */
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --section-pad: 60px 16px; }
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open { display: flex; }
  .hide-mobile { display: none !important; }

  /* Problem statement */
  #problem-statement {
    padding: 64px 0 !important;
  }
  #problem-statement > div {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 0 16px !important;
  }
  #problem-statement > div > div:first-child > a {
    display: flex !important;
    margin: 0 auto !important;
    width: fit-content !important;
  }

  /* Feature sections */
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.feature-large { grid-column: span 1; }
  .steps { flex-direction: column; }
  .step-line { width: 2px; height: 32px; }
  .feat-inner { padding: 48px 16px !important; gap: 36px; }
  .feat-section { padding: 48px 0; }

  /* How it works */
  .steps-grid { grid-template-columns: 1fr; }
  .how-it-works .section-inner { padding: 60px 16px; }

  /* Footer */
  .footer { padding: 48px 16px 0; }
  .footer-inner { gap: 24px; padding-bottom: 32px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { padding: 16px 0; font-size: 0.72rem; }

  /* CTA section */

  /* Phone frame small */
  .phone-frame { width: 240px; }

  /* Trust bar */
  .trust-inner { flex-direction: column; align-items: flex-start; }

  /* Typography */
  h1 { letter-spacing: -0.01em; }
  h2 { font-size: clamp(1.6rem, 5.5vw, 2.6rem); }

  /* Social proof section */
  #social-proof { padding: 64px 0 !important; }
  #social-proof > div { padding: 0 16px !important; }
}

@media (max-width: 400px) {
  :root { --section-pad: 48px 14px; }
  .nav-inner { padding: 14px 16px; gap: 12px; }
  .hero-v2 .hero-title { font-size: 2rem; }
  .hero-phone-frame { width: 230px; }
  .hero-phone-frame .phone-screen { height: 450px; }
  .cs-phone-card { width: 130px; border-radius: 18px; }
  .phone-frame { width: 220px; }
  .feat-section { padding: 36px 0; }
  .feat-inner { gap: 28px; }
  .step-card { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.app-bottom-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 16px 20px 24px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
  z-index: 50;
  display: flex;
  flex-direction: column;
  animation: slideUpSheet 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15) both;
  animation-delay: 0.5s;
}
.app-sheet-handle {
  width: 36px; height: 4px;
  background: #e0e0e0;
  border-radius: 4px;
  margin: 0 auto 16px;
}
@keyframes slideUpSheet {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

/* Center Stage Layout */
.feat-inner.feat-center {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 40px;
}
.feat-inner.feat-center .feat-text {
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}
.feat-inner.feat-center .feat-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.feat-inner.feat-center .feat-list li {
  margin-bottom: 0;
}
.feat-inner.feat-center .feat-phone {
  justify-content: center;
  position: relative;
  margin-top: 20px;
}
.feat-inner.feat-center .feat-phone-bg {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  opacity: 0.8;
}

/* Dark Bento Card Layout */
.feat-bento {
  max-width: var(--max-w);
  margin: 0 auto;
  border-radius: 40px;
  background: var(--dark);
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 60px;
}
.feat-bento .feat-inner {
  padding: 0;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
}
.feat-bento .feat-phone {
  margin-bottom: -120px; 
  align-self: flex-start;
}
@media (max-width: 900px) {
  .feat-bento {
    padding: 48px 24px;
    border-radius: 24px;
    margin-left: 16px;
    margin-right: 16px;
    width: auto;
  }
  .feat-bento .feat-inner {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .feat-bento .feat-text {
    align-items: center;
  }
  .feat-bento .feat-list {
    text-align: left;
  }
  .feat-bento .feat-phone {
    margin-bottom: 0 !important;
    justify-content: center !important;
    align-self: center !important;
  }
}

/* Glassmorphism Focus Layout */
.feat-section.feat-glass-bg {
  background: linear-gradient(120deg, #f0faf8 0%, #e3f2fd 50%, #fdf9f0 100%);
  background-size: 200% 200%;
  animation: bgPan 10s ease infinite;
}
@keyframes bgPan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.feat-inner.feat-glass {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 60px 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.05);
  margin-top: 40px;
  margin-bottom: 40px;
}
.feat-inner.feat-glass .feat-phone {
  transform: translateY(-20px);
}
@media (max-width: 900px) {
  .feat-inner.feat-glass {
    padding: 30px 20px;
  }
}

/* Editorial Split-Bleed Layout */
.feat-section.feat-split-bleed {
  background: linear-gradient(90deg, #faf0e6 0%, #faf0e6 50%, #fdfbf7 50%, #fdfbf7 100%);
}
.feat-split-bleed .feat-text {
  background: #fdfbf7;
  padding: 40px 0;
}
@media (max-width: 900px) {
  .feat-section.feat-split-bleed {
    background: #faf0e6;
  }
  .feat-split-bleed .feat-text {
    padding: 20px 0;
    background: transparent;
  }
}

/* Dashboard Grid Layout */
.feat-inner.feat-dashboard {
  grid-template-columns: 1.2fr auto 0.8fr;
  align-items: center;
  gap: 40px;
}
.feat-dashboard-metrics {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}
.feat-metric-card {
  background: white;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.02);
  transition: transform 0.3s;
}
.feat-metric-card:hover {
  transform: translateY(-5px);
}
@media (max-width: 1000px) {
  .feat-inner.feat-dashboard {
    grid-template-columns: 1fr 1fr;
  }
  .feat-dashboard-metrics {
    display: none;
  }
}
@media (max-width: 900px) {
  .feat-inner.feat-dashboard {
    grid-template-columns: 1fr;
  }
}

/* Irregularity Fixes */
.feat-bento {
  background: var(--charcoal) !important;
  color: var(--ivory) !important;
}
.feat-bento .feat-text h2 {
  color: var(--ivory) !important;
}
.feat-bento .feat-text p {
  color: rgba(255, 255, 255, 0.8) !important;
}
.feat-bento .feat-list li {
  color: var(--ivory) !important;
}
.feat-inner.feat-center .feat-phone-bg {
  width: 400px !important;
  height: 400px !important;
}

/* Fixing UI issues in Partner Bento Card Desktop */
#feature-partner {
  padding-bottom: 100px;
}
.feat-bento .feat-phone {
  margin-bottom: 0; 
  align-self: center;
  justify-content: flex-end;
}

/* Fix text-align inheritance breaking phone UI */
.phone-screen {
  text-align: left !important;
}

/* Right-aligned text block */
.feat-text-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.feat-text-right .feat-list {
  align-items: flex-end;
}
.feat-text-right .feat-list li {
  flex-direction: row-reverse;
  text-align: right;
}

/* Bottom Sheet for Phone Mockup */
.app-bottom-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 14px 18px 24px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.1);
  z-index: 10;
  animation: slideUpSheet 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.8s;
  transform: translateY(100%);
}
@keyframes slideUpSheet {
  to { transform: translateY(0); }
}
.sheet-pill {
  width: 36px; height: 5px;
  background: #e0e0e0;
  border-radius: 4px;
  margin: 0 auto 16px;
}
.sheet-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #2c1e14;
  margin-bottom: 8px;
}
.sheet-text {
  font-size: 0.75rem;
  color: #8a7f78;
  line-height: 1.5;
  margin-bottom: 16px;
}
.sheet-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed #2a9d8f;
  background: #e9f5f4;
  color: #2a9d8f;
  border-radius: 100px;
  padding: 12px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.sheet-btn:hover {
  background: #d8f0ed;
}



/* --- LIFESTYLE GALLERY SECTION --- */
.lifestyle-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gal-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.gal-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gal-card:hover img {
  transform: scale(1.05);
}

.gal-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gal-tall {
  grid-row: span 2;
}

.gal-wide {
  grid-column: span 2;
}

.life-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 20px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

@media (max-width: 1024px) {
  .lifestyle-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
  }
  .gal-large, .gal-wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .lifestyle-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }
  .gal-large, .gal-tall, .gal-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* --- PROBLEM STATEMENT SLIDER --- */
.problem-section {
  background: var(--navy);
  color: white;
  padding: 100px 0;
  margin-top: 60px;
}
.problem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.problem-text h2 {
  font-size: 3rem;
  margin-bottom: 24px;
  color: white;
}
.problem-text p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 24px;
}

.problem-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.problem-list li {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.07);
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
}

.problem-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.problem-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideFade 15s infinite;
}

.problem-slider img:nth-child(1) { animation-delay: 0s; }
.problem-slider img:nth-child(2) { animation-delay: 5s; }
.problem-slider img:nth-child(3) { animation-delay: 10s; }

@keyframes slideFade {
  0% { opacity: 0; transform: scale(1.1); }
  5% { opacity: 1; transform: scale(1.05); }
  30% { opacity: 1; transform: scale(1.01); }
  35% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

@media (max-width: 1024px) {
  .problem-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
}

/* Problem section responsive */
@media (max-width: 900px) {
  #problem-statement > div {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
  #problem-statement > div > div:last-child {
    height: 360px !important;
  }
}

/* --- PROBLEM SECTION SLIDER --- */
.prob-slider-wrap {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.13);
}

.prob-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
}

.prob-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.prob-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.prob-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prob-slide-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--espresso);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.prob-dots {
  position: absolute;
  bottom: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.prob-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.prob-dot.active {
  background: white;
  height: 24px;
}

@media (max-width: 900px) {
  .prob-slider { aspect-ratio: 4/3; }
}

/* --- TESTIMONIAL CARDS --- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: end;
}

.testi-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testi-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.12);
}

.testi-card-raised {
  transform: translateY(-24px);
}
.testi-card-raised:hover {
  transform: translateY(-32px);
}

.testi-photo-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.testi-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.testi-photo-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, white, transparent);
}

.testi-body {
  padding: 0 28px 32px;
}

.testi-quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: var(--teal);
  font-family: Georgia, serif;
  margin-bottom: -16px;
  margin-top: -8px;
}

.testi-text {
  font-size: 0.98rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 20px;
}

.testi-attr {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--warm-gray);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .testi-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .testi-card-raised {
    transform: none;
  }
}
