/* ===========================================================
   VATSA PARENTING — SHARED DESIGN SYSTEM
   Used by: index, signup, signin, dashboard, all 4 pillars, waitlist
   =========================================================== */

:root {
  /* Colors */
  --coral: #FF6B4A;
  --coral-dark: #E54D2A;
  --coral-light: #FFE5DC;
  --mustard: #FFB627;
  --mustard-dark: #C19612;
  --mustard-light: #FFF0CC;
  --teal: #0E5E6F;
  --teal-dark: #073E4A;
  --teal-light: #D5EBEF;
  --green: #5B9143;
  --green-light: #E5F0DC;
  --green-dark: #3F7530;
  --cream: #FFF8F0;
  --cream-warm: #FFF1E0;
  --ink: #1a1a2e;
  --ink-soft: #4a4a5e;
  --muted: #8a8a9a;
  --line: rgba(14, 94, 111, 0.12);
  --error: #DC2626;
  --error-light: #FEF2F2;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(14, 94, 111, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 94, 111, 0.10);
  --shadow-lg: 0 20px 50px rgba(14, 94, 111, 0.15);
  
  /* Fonts */
  --font-d: 'Fredoka', 'Trebuchet MS', sans-serif;
  --font-b: 'Quicksand', -apple-system, sans-serif;
  --font-s: 'Lora', Georgia, serif;
  
  /* Spacing */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ===========================================================
   RESET & BASE
   =========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-b);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 500;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

h1, h2, h3, h4 { font-family: var(--font-d); color: var(--teal); line-height: 1.2; font-weight: 600; }
a { color: var(--coral); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--coral-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ===========================================================
   TYPOGRAPHY UTILITIES
   =========================================================== */
.eyebrow {
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--coral);
}

.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ===========================================================
   NAVIGATION (PUBLIC)
   =========================================================== */
.nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.nav-logo svg { height: 36px; width: auto; }
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--coral); }
.nav-links a.active { color: var(--coral); }

/* User menu (authenticated) */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--mustard));
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 8px;
  min-width: 200px;
  display: none;
  z-index: 110;
}
.user-dropdown.open { display: block; }
.user-dropdown a, .user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: background 0.15s;
  text-decoration: none;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--cream-warm); color: var(--coral); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: 16px; box-shadow: var(--shadow-md); align-items: stretch; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; border-radius: 8px; }
  .nav-links a:hover { background: var(--cream-warm); }
  .nav-toggle { display: flex; }
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: white !important;
}
.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 107, 74, 0.3);
}
.btn-secondary {
  background: var(--teal);
  color: white !important;
}
.btn-secondary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  background: white;
  color: var(--teal) !important;
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--coral);
  color: var(--coral) !important;
}
.btn-large { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-mark { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-b);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--mustard); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   PAGE HERO
   =========================================================== */
.page-hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream) 100%);
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.page-hero p { font-size: 17px; color: var(--ink-soft); max-width: 600px; }

/* ===========================================================
   FORMS (Sign in, sign up, waitlist)
   =========================================================== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  min-height: calc(100vh - 80px);
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream) 100%);
}
.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.auth-card-header {
  text-align: center;
  margin-bottom: 28px;
}
.auth-card-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}
.auth-card-header p { color: var(--muted); font-size: 15px; }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--cream-warm);
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  transition: all 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--coral);
  background: white;
}
.form-input::placeholder { color: var(--muted); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.age-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.age-option {
  padding: 14px 8px;
  background: var(--cream-warm);
  border: 2px solid transparent;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.age-option:hover { border-color: var(--coral-light); }
.age-option.selected {
  border-color: var(--coral);
  background: var(--coral-light);
}
.age-option-num {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
}
.age-option-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.form-message {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  display: none;
}
.form-message.show { display: block; }
.form-message.error { background: var(--error-light); color: var(--error); }
.form-message.success { background: var(--green-light); color: var(--green); }

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}
.auth-footer a {
  font-weight: 700;
  color: var(--coral);
}

/* ===========================================================
   CARDS (used across pillars)
   =========================================================== */
.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--line);
  transition: all 0.25s;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.list-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.list-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--coral-light);
}
.list-card-emoji {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--cream-warm);
  font-size: 26px;
  flex-shrink: 0;
}
.list-card-body { flex: 1; min-width: 0; }
.list-card-title {
  font-family: var(--font-d);
  font-weight: 600;
  color: var(--teal);
  font-size: 15px;
  margin-bottom: 2px;
}
.list-card-meta {
  font-size: 12px;
  color: var(--muted);
}
.list-card-arrow { color: var(--muted); flex-shrink: 0; }

/* ===========================================================
   PILLAR PAGE LAYOUT
   =========================================================== */
.pillar-page-hero {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.pillar-page-hero[data-pillar="sanskara"] {
  background: linear-gradient(135deg, var(--coral-light) 0%, var(--mustard-light) 100%);
}
.pillar-page-hero[data-pillar="aahaar"] {
  background: linear-gradient(135deg, var(--mustard-light) 0%, #FFF6E0 100%);
}
.pillar-page-hero[data-pillar="vyavahaar"] {
  background: linear-gradient(135deg, var(--green-light) 0%, #F0F7E8 100%);
}
.pillar-page-hero[data-pillar="vikaas"] {
  background: linear-gradient(135deg, var(--teal-light) 0%, #E5F2F5 100%);
}
.pillar-page-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.pillar-meaning-tag {
  font-family: var(--font-s);
  font-style: italic;
  font-size: 18px;
  color: var(--coral);
  margin-bottom: 16px;
}
.pillar-page-hero p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 600px;
  line-height: 1.6;
}

.pillar-content { padding: 60px 0; }
.pillar-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

/* Featured story / hero card on pillar pages */
.pillar-feature {
  background: linear-gradient(135deg, var(--coral) 0%, var(--mustard) 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.pillar-feature::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.pillar-feature-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}
.pillar-feature h2 {
  color: white;
  font-size: 28px;
  margin-bottom: 8px;
  position: relative;
}
.pillar-feature p {
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  margin-bottom: 18px;
  position: relative;
}

/* Section heads inside pillar pages */
.section-title {
  font-family: var(--font-d);
  font-size: 22px;
  color: var(--teal);
  font-weight: 700;
  margin: 0 0 16px;
}

/* Habit / milestone special cards */
.habit-card, .milestone-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.habit-row { display: flex; align-items: center; gap: 14px; }
.habit-check {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.habit-check.checked { background: var(--green); border-color: var(--green); }
.habit-check svg { width: 16px; height: 16px; color: white; opacity: 0; transition: opacity 0.2s; }
.habit-check.checked svg { opacity: 1; }
.habit-info { flex: 1; }
.habit-name { font-family: var(--font-d); font-weight: 600; color: var(--teal); font-size: 15px; }
.habit-streak { font-size: 12px; color: var(--coral); font-weight: 600; }

.milestone-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.milestone-category {
  font-size: 11px; font-weight: 700; color: var(--coral);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.milestone-status {
  font-size: 11px; padding: 4px 10px; border-radius: 100px;
  font-weight: 700;
}
.milestone-status.observed { background: var(--green-light); color: var(--green); }
.milestone-status.pending { background: var(--cream-warm); color: var(--muted); }
.milestone-text { font-size: 15px; color: var(--ink); font-weight: 500; line-height: 1.5; }

/* ===========================================================
   DASHBOARD SPECIFIC
   =========================================================== */
.greeting { margin: 8px 0 24px; }
.greeting-time { font-size: 14px; color: var(--muted); font-weight: 600; }
.greeting-name {
  font-family: var(--font-d);
  font-size: 32px;
  color: var(--teal);
  font-weight: 700;
  margin-top: 4px;
  line-height: 1.15;
}
.greeting-name span { color: var(--coral); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .dashboard-grid { grid-template-columns: 2fr 1fr; }
}

.moment-card {
  background: linear-gradient(135deg, var(--coral) 0%, #FF8866 60%, var(--mustard) 100%);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: white;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  display: block;
}
.moment-card:hover { transform: translateY(-3px); }
.moment-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.moment-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.92;
  margin-bottom: 12px;
  position: relative;
}
.moment-title {
  font-family: var(--font-d);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  position: relative;
}
.moment-meta { font-size: 14px; opacity: 0.92; margin-bottom: 18px; position: relative; }
.moment-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: var(--coral-dark);
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  position: relative;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pillar-tile {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.pillar-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar-tile::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
}
.pillar-tile[data-p="sanskara"]::after { background: var(--coral); }
.pillar-tile[data-p="aahaar"]::after { background: var(--mustard); }
.pillar-tile[data-p="vyavahaar"]::after { background: var(--green); }
.pillar-tile[data-p="vikaas"]::after { background: var(--teal); }
.pillar-tile-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.pillar-tile[data-p="sanskara"] .pillar-tile-icon { background: var(--coral-light); }
.pillar-tile[data-p="aahaar"] .pillar-tile-icon { background: var(--mustard-light); }
.pillar-tile[data-p="vyavahaar"] .pillar-tile-icon { background: var(--green-light); }
.pillar-tile[data-p="vikaas"] .pillar-tile-icon { background: var(--teal-light); }
.pillar-tile-name {
  font-family: var(--font-d);
  font-size: 17px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 2px;
}
.pillar-tile-meaning { font-size: 12px; color: var(--muted); }

.insight-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.insight-card h4 { font-size: 15px; margin-bottom: 12px; }
.insight-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.insight-label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.insight-value { font-family: var(--font-d); font-size: 15px; color: var(--teal); font-weight: 700; }
.progress-bar { height: 8px; background: var(--cream-warm); border-radius: 100px; overflow: hidden; margin-top: 4px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--coral), var(--mustard)); border-radius: 100px; }

/* ===========================================================
   LANDING PAGE SPECIFIC (index.html)
   =========================================================== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--coral) 0%, var(--mustard) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.55;
}
.hero-subtitle strong { color: var(--teal); font-weight: 700; }
.hero-cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-trust { font-size: 13px; color: var(--muted); }

.section { padding: 80px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.section-head p {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink-soft);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.problem-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--line);
  transition: all 0.25s;
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.problem-card .stat {
  font-family: var(--font-d);
  font-size: 40px;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 10px;
}
.problem-card h3 { font-size: 18px; margin-bottom: 8px; }
.problem-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

.solution-bg {
  background: var(--teal);
  color: white;
}
.solution-bg h2, .solution-bg h3 { color: white; }
.solution-bg .section-head p { color: rgba(255,255,255,0.85); }
.solution-bg .eyebrow { color: var(--mustard); }
.solution-bg .eyebrow::before { background: var(--mustard); }

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 768px) { .solution-grid { grid-template-columns: 1fr; } }
.solution-card { text-align: center; padding: 16px 12px; }
.solution-card .num {
  font-family: var(--font-d);
  font-size: 13px;
  color: var(--mustard);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.solution-card .icon-wrap {
  width: 80px; height: 80px;
  margin: 0 auto 18px;
  background: rgba(255, 182, 39, 0.15);
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--mustard);
}
.solution-card h3 { font-size: 20px; margin-bottom: 10px; }
.solution-card p { font-size: 14px; color: rgba(255,255,255,0.8); }

.pillars-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .pillars-showcase { grid-template-columns: 1fr; } }
.pillar-feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  display: block;
  position: relative;
  overflow: hidden;
}
.pillar-feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.pillar-feature-card[data-p="sanskara"]::before { background: var(--coral); }
.pillar-feature-card[data-p="aahaar"]::before { background: var(--mustard); }
.pillar-feature-card[data-p="vyavahaar"]::before { background: var(--green); }
.pillar-feature-card[data-p="vikaas"]::before { background: var(--teal); }

.pillar-feature-header { display: flex; gap: 16px; margin-bottom: 14px; }
.pillar-feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pillar-feature-card[data-p="sanskara"] .pillar-feature-icon { background: var(--coral-light); }
.pillar-feature-card[data-p="aahaar"] .pillar-feature-icon { background: var(--mustard-light); }
.pillar-feature-card[data-p="vyavahaar"] .pillar-feature-icon { background: var(--green-light); }
.pillar-feature-card[data-p="vikaas"] .pillar-feature-icon { background: var(--teal-light); }
.pillar-feature-name {
  font-family: var(--font-d);
  font-size: 24px;
  color: var(--teal);
  font-weight: 700;
}
.pillar-feature-card .pillar-meaning {
  font-family: var(--font-s);
  font-style: italic;
  font-size: 13px;
  color: var(--coral);
}
.pillar-feature-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* CTA Section */
.cta-band {
  background: linear-gradient(135deg, var(--coral) 0%, #FF8866 100%);
  color: white;
  text-align: center;
  padding: 80px 24px;
}
.cta-band h2 { color: white; font-size: clamp(28px, 4.5vw, 44px); margin-bottom: 14px; }
.cta-band p { font-size: 17px; opacity: 0.95; max-width: 520px; margin: 0 auto 28px; }

/* ===========================================================
   WAITLIST PAGE
   =========================================================== */
.waitlist-page-hero {
  background: linear-gradient(135deg, var(--coral) 0%, var(--mustard) 100%);
  color: white;
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.waitlist-page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.waitlist-page-hero h1 { color: white; font-size: clamp(32px, 5vw, 48px); margin-bottom: 14px; position: relative; }
.waitlist-page-hero p { color: rgba(255,255,255,0.95); font-size: 17px; max-width: 540px; margin: 0 auto; position: relative; }
.waitlist-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: -40px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
  border: 2px solid var(--coral);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}
.pricing-tier {
  font-family: var(--font-d);
  font-size: 22px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 4px;
}
.pricing-tagline { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.pricing-amount {
  font-family: var(--font-d);
  font-size: 40px;
  color: var(--coral);
  font-weight: 700;
  line-height: 1;
}
.pricing-amount small { font-size: 14px; color: var(--muted); font-weight: 600; }
.pricing-note { font-size: 12px; color: var(--muted); margin-top: 4px; margin-bottom: 22px; }

.feature-list { list-style: none; margin-bottom: 24px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}
.feature-list li::before {
  content: '';
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: var(--green-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B9143' stroke-width='3'%3E%3Cpath d='M5 12 L10 17 L19 7'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 600px;
  margin: 40px auto 0;
}
.perk {
  text-align: center;
  padding: 18px 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.perk-emoji { font-size: 28px; margin-bottom: 6px; }
.perk-text { font-size: 12px; color: var(--ink-soft); font-weight: 600; line-height: 1.3; }

/* ===========================================================
   STORY DETAIL (used on Sanskara stories)
   =========================================================== */
.story-text {
  font-family: var(--font-s);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
.story-text p { margin-bottom: 14px; }
.story-text p:first-child:first-letter {
  font-size: 38px;
  font-family: var(--font-d);
  font-weight: 700;
  color: var(--coral);
  float: left;
  line-height: 1;
  padding: 4px 8px 0 0;
}

.reflection-card {
  background: var(--teal);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 28px 0;
}
.reflection-card h4 {
  color: var(--mustard);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-b);
  font-weight: 700;
}
.reflection-card .question {
  font-family: var(--font-s);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 10px;
}
.reflection-card .question:last-child { margin-bottom: 0; }

/* ===========================================================
   ANIMATIONS
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ===========================================================
   COMING SOON SECTION (engagement tools)
   =========================================================== */
.coming-soon-section {
  background: linear-gradient(135deg, var(--cream-warm) 0%, var(--coral-light) 100%);
  padding: 56px 32px;
  border-radius: var(--radius-xl);
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}
.coming-soon-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,182,39,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.coming-soon-head {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}
.coming-soon-head h2 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 8px;
}
.coming-soon-head p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 540px;
  margin: 0 auto;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  position: relative;
}

.coming-soon-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.25s;
}
.coming-soon-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--coral-light);
}

.coming-soon-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--cream-warm);
  margin-bottom: 14px;
  font-size: 28px;
}
.coming-soon-card[data-c="motor"] .coming-soon-icon { background: var(--coral-light); }
.coming-soon-card[data-c="writing"] .coming-soon-icon { background: var(--mustard-light); }
.coming-soon-card[data-c="thinking"] .coming-soon-icon { background: var(--teal-light); }
.coming-soon-card[data-c="creative"] .coming-soon-icon { background: #FFE0E5; }
.coming-soon-card[data-c="focus"] .coming-soon-icon { background: var(--green-light); }
.coming-soon-card[data-c="social"] .coming-soon-icon { background: #E5E5FF; }

.coming-soon-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--mustard-light);
  color: var(--mustard-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.coming-soon-title {
  font-family: var(--font-d);
  font-size: 18px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 4px;
}
.coming-soon-sanskrit {
  font-family: var(--font-s);
  font-style: italic;
  font-size: 13px;
  color: var(--coral);
  margin-bottom: 12px;
}
.coming-soon-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.coming-soon-list li {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
}
.coming-soon-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
  margin-top: 7px;
}

@media (max-width: 600px) {
  .coming-soon-section { padding: 40px 20px; }
}

/* ===========================================================
   CHATBOT WIDGET STYLES (widgets.js)
   =========================================================== */
.vatsa-bot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-b);
}

.vatsa-bot-fab {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral) 0%, var(--mustard) 100%);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 107, 74, 0.4);
  transition: all 0.25s;
  border: none;
}
.vatsa-bot-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(255, 107, 74, 0.55);
}

.vatsa-bot-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--coral);
  animation: vatsaBotPulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes vatsaBotPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.vatsa-bot-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(14, 94, 111, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
}
.vatsa-bot-panel.open {
  display: flex;
  animation: vatsaBotSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes vatsaBotSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.vatsa-bot-header {
  background: linear-gradient(135deg, var(--coral) 0%, var(--mustard) 100%);
  color: white;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.vatsa-bot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: white;
  display: grid;
  place-items: center;
}
.vatsa-bot-avatar svg { display: block; }
.vatsa-bot-name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 16px;
}
.vatsa-bot-status {
  font-size: 11px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.vatsa-bot-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
}

.vatsa-bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vatsa-bot-messages::-webkit-scrollbar { width: 4px; }
.vatsa-bot-messages::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.vatsa-bot-msg {
  display: flex;
  animation: vatsaBotMsg 0.3s ease;
}
@keyframes vatsaBotMsg {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.vatsa-bot-msg-bot { justify-content: flex-start; }
.vatsa-bot-msg-user { justify-content: flex-end; }

.vatsa-bot-bubble {
  max-width: 80%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}
.vatsa-bot-msg-bot .vatsa-bot-bubble {
  background: white;
  color: var(--ink);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(14, 94, 111, 0.05);
}
.vatsa-bot-msg-user .vatsa-bot-bubble {
  background: var(--coral);
  color: white;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.vatsa-bot-typing .vatsa-bot-bubble {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
}
.vatsa-bot-typing span {
  width: 7px;
  height: 7px;
  background: var(--muted);
  border-radius: 50%;
  display: block;
}
.vatsa-bot-dot1 { animation: vatsaBotDot 1.4s infinite; }
.vatsa-bot-dot2 { animation: vatsaBotDot 1.4s infinite 0.2s; }
.vatsa-bot-dot3 { animation: vatsaBotDot 1.4s infinite 0.4s; }
@keyframes vatsaBotDot {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}

.vatsa-bot-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.vatsa-bot-quick-reply {
  background: white;
  border: 1.5px solid var(--coral-light);
  color: var(--teal);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.vatsa-bot-quick-reply:hover {
  background: var(--coral-light);
  border-color: var(--coral);
  transform: translateX(2px);
}

.vatsa-bot-cta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.vatsa-bot-cta-btn {
  background: var(--coral);
  color: white;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.18s;
}
.vatsa-bot-cta-btn:hover { background: var(--coral-dark); color: white; }
.vatsa-bot-cta-secondary {
  background: transparent;
  color: var(--muted);
  padding: 8px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}

.vatsa-bot-input-area {
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.vatsa-bot-input-hint {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.vatsa-bot-email-link {
  font-size: 12px;
  color: var(--coral);
  font-weight: 700;
  text-decoration: none;
}
.vatsa-bot-email-link:hover { color: var(--coral-dark); }

@media (max-width: 480px) {
  .vatsa-bot { bottom: 16px; right: 16px; }
  .vatsa-bot-panel { width: calc(100vw - 32px); right: 0; bottom: 76px; height: calc(100vh - 120px); }
}

/* ===========================================================
   PROBLEM / SOLUTION / MECHANISM SECTIONS
   =========================================================== */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}
@media (max-width: 768px) {
  .problem-solution { grid-template-columns: 1fr; }
}

.ps-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.ps-card-problem {
  background: linear-gradient(135deg, #FEF2F2 0%, #FFE5DC 100%);
  border-color: rgba(220, 38, 38, 0.15);
}
.ps-card-solution {
  background: linear-gradient(135deg, var(--green-light) 0%, #F0F7E8 100%);
  border-color: rgba(91, 145, 67, 0.2);
}
.ps-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ps-label-problem { color: #DC2626; }
.ps-label-solution { color: var(--green); }
.ps-emoji {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}
.ps-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--teal);
}
.ps-card ul {
  list-style: none;
  padding: 0;
}
.ps-card ul li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}
.ps-card-problem ul li::before {
  content: '×';
  color: #DC2626;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  flex-shrink: 0;
}
.ps-card-solution ul li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  flex-shrink: 0;
}

/* Mechanism (How it works) */
.mechanism {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  margin: 32px 0;
  border: 1px solid var(--line);
}
.mechanism-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 28px;
  position: relative;
}
.mechanism-step {
  text-align: center;
  position: relative;
}
.mechanism-step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral) 0%, var(--mustard) 100%);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.3);
}
.mechanism-step h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--teal);
}
.mechanism-step p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  font-weight: 500;
}

/* Indianised Family Illustration container */
.family-illustration {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: block;
}

/* Section: Email contact band */
.email-band {
  background: var(--teal);
  color: white;
  padding: 28px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
}
.email-band h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 4px;
}
.email-band p {
  font-size: 14px;
  opacity: 0.9;
}
.email-band a {
  background: var(--mustard);
  color: var(--teal-dark);
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s;
}
.email-band a:hover { transform: translateY(-2px); color: var(--teal-dark); }

/* ===========================================================
   v3 ENGAGEMENT ENGINE STYLES
   =========================================================== */

/* Weekly calendar widget on dashboard */
.week-calendar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.week-calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.week-calendar-head h4 {
  font-size: 15px;
  margin: 0;
}
.week-calendar-streak {
  font-family: var(--font-d);
  font-size: 13px;
  color: var(--coral);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.week-day {
  text-align: center;
  padding: 8px 4px;
  border-radius: 10px;
  background: var(--cream-warm);
  position: relative;
  transition: all 0.2s;
}
.week-day-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.week-day-num {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.week-day-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 auto;
  background: var(--line);
}
.week-day.has-activity {
  background: linear-gradient(135deg, var(--coral-light) 0%, var(--mustard-light) 100%);
}
.week-day.has-activity .week-day-status {
  background: var(--coral);
}
.week-day.has-activity .week-day-num { color: var(--teal); }
.week-day.is-today {
  border: 2px solid var(--coral);
  background: linear-gradient(135deg, var(--coral) 0%, var(--mustard) 100%);
}
.week-day.is-today .week-day-name,
.week-day.is-today .week-day-num { color: white; }
.week-day.is-today .week-day-status { background: white; }

.week-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.week-summary-stat {
  text-align: center;
}
.week-summary-stat-num {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
}
.week-summary-stat-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Toast notifications */
.vatsa-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--teal);
  color: white;
  padding: 12px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(14, 94, 111, 0.3);
  z-index: 9998;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.vatsa-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.vatsa-toast-success { background: var(--green); }
.vatsa-toast-celebration {
  background: linear-gradient(135deg, var(--coral), var(--mustard));
  font-family: var(--font-d);
  font-size: 15px;
  padding: 14px 28px;
}

/* Milestone Indianised wording — special status badges */
.milestone-status.observed-rooted {
  background: var(--mustard-light);
  color: var(--mustard-dark);
  font-weight: 700;
}
.milestone-status.pending-rooted {
  background: var(--cream-warm);
  color: var(--muted);
  font-style: italic;
  font-size: 11px;
}

/* Milestone card observed state */
.milestone-card.is-observed {
  border-color: var(--mustard);
  background: linear-gradient(135deg, white 0%, var(--mustard-light) 100%);
}
.milestone-card.is-observed .milestone-text {
  color: var(--teal);
}

/* Loading state for cards */
.is-loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

/* Note pill */
.indianised-note {
  background: linear-gradient(135deg, var(--cream-warm), var(--coral-light));
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px dashed var(--coral);
  margin-bottom: 20px;
  text-align: center;
}
.indianised-note .sanskrit {
  font-family: var(--font-s);
  font-style: italic;
  font-size: 16px;
  color: var(--coral);
  margin-bottom: 4px;
  font-weight: 500;
}
.indianised-note .english {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ===========================================================
   v4 — WEEKLY CONTENT, SCORE CIRCLES, MEAL PLAN
   =========================================================== */

/* Smooth scroll behaviour */
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 90px; }

/* ============= 7-DAY WEEKLY VIEW ============= */
.weekly-view {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.weekly-view-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.weekly-view-head h3 {
  font-size: 18px;
  margin: 0;
}
.weekly-view-head .week-stat {
  font-family: var(--font-d);
  font-size: 13px;
  color: var(--coral);
  font-weight: 700;
  background: var(--coral-light);
  padding: 4px 10px;
  border-radius: 100px;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.week-strip-cell {
  background: var(--cream-warm);
  border-radius: 14px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  position: relative;
}
.week-strip-cell:hover { transform: translateY(-2px); }
.week-strip-cell.today {
  border-color: var(--coral);
  background: linear-gradient(135deg, var(--coral-light), var(--mustard-light));
}
.week-strip-cell.completed {
  background: linear-gradient(135deg, var(--green-light), #F0F7E8);
}
.week-strip-cell.completed::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 6px;
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
}
.week-strip-day {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.week-strip-emoji {
  font-size: 22px;
  margin: 4px 0;
}
.week-strip-title {
  font-size: 10px;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============= SCORE CIRCLE ============= */
.score-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}
.score-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.score-circle-bg {
  stroke: var(--cream-warm);
  fill: none;
  stroke-width: 10;
}
.score-circle-fill {
  stroke: url(#scoreGrad);
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s;
}
.score-circle-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-circle-num {
  font-family: var(--font-d);
  font-size: 32px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.score-circle-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* Score panel showing all 4 pillars + overall */
.score-panel {
  background: linear-gradient(135deg, var(--coral) 0%, var(--mustard) 100%);
  border-radius: var(--radius-xl);
  padding: 28px;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.score-panel::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.score-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
}
.score-panel-head h3 {
  color: white;
  font-size: 18px;
  margin: 0;
}
.score-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
  position: relative;
}
.score-overall {
  text-align: center;
}
.score-overall .score-circle-num {
  color: white;
  font-size: 44px;
}
.score-overall .score-circle-label {
  color: rgba(255,255,255,0.8);
}
.score-overall .score-circle-bg {
  stroke: rgba(255,255,255,0.2);
}
.score-overall .score-circle-fill {
  stroke: white;
}
.score-pillars-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.score-pillar-mini {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}
.score-pillar-mini-name {
  display: flex;
  align-items: center;
  gap: 6px;
}
.score-pillar-mini-bar {
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  overflow: hidden;
}
.score-pillar-mini-fill {
  height: 100%;
  background: white;
  border-radius: 2px;
  transition: width 0.5s;
}

/* ============= MEAL PLAN CARD (Aahaar) ============= */
.meal-day-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  transition: all 0.25s;
}
.meal-day-card:hover { box-shadow: var(--shadow-md); }
.meal-day-card.is-today {
  border-color: var(--mustard);
  background: linear-gradient(135deg, white 0%, var(--mustard-light) 100%);
}
.meal-day-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}
.meal-day-name {
  font-family: var(--font-d);
  font-size: 18px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 2px;
}
.meal-day-theme {
  font-size: 12px;
  color: var(--coral);
  font-weight: 600;
  font-style: italic;
}
.meal-day-badge {
  background: var(--mustard);
  color: var(--teal-dark);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.meal-day-badge.today { background: var(--coral); color: white; }

.meal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.meal-slot {
  background: var(--cream-warm);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  position: relative;
}
.meal-slot-time {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.meal-slot-emoji {
  font-size: 26px;
  margin: 4px 0;
}
.meal-slot-name {
  font-family: var(--font-d);
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 6px;
}
.meal-slot-protein {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
}
.meal-slot-highlight {
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-weight: 500;
}

/* Meal "did we have it" toggle */
.meal-day-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.meal-day-track-text {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.meal-track-btn {
  background: var(--coral);
  color: white;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.meal-track-btn:hover { background: var(--coral-dark); }
.meal-track-btn.completed {
  background: var(--green);
  pointer-events: none;
}

/* ============= STORY DAY CARD (Sanskara weekly) ============= */
.story-day-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  background: white;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.story-day-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.story-day-card.is-today {
  border-color: var(--coral);
  background: linear-gradient(135deg, white 0%, var(--coral-light) 100%);
}
.story-day-card.completed {
  background: linear-gradient(135deg, white 0%, var(--green-light) 100%);
  border-color: var(--green);
}
.story-day-side {
  text-align: center;
  width: 56px;
}
.story-day-name {
  font-family: var(--font-d);
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.story-day-emoji {
  font-size: 30px;
  margin-top: 4px;
}
.story-day-content { min-width: 0; }
.story-day-title {
  font-family: var(--font-d);
  font-size: 15px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 4px;
}
.story-day-snippet {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-bottom: 6px;
}
.story-day-meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.story-day-status {
  font-size: 22px;
}
.story-day-card.is-today .story-day-status::after { content: '👈'; }
.story-day-card.completed .story-day-status::after { content: '✅'; }
.story-day-card:not(.is-today):not(.completed) .story-day-status::after {
  content: '→'; color: var(--muted); font-size: 18px; font-weight: bold;
}

/* ============= NUTRITION SUMMARY ============= */
.nutrition-summary {
  background: linear-gradient(135deg, var(--mustard-light) 0%, var(--cream-warm) 100%);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 600px) { .nutrition-summary { grid-template-columns: repeat(2, 1fr); } }
.nutrition-stat {
  text-align: center;
}
.nutrition-stat-num {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.nutrition-stat-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ============= TIME SLOT CARDS (Vyavahaar) ============= */
.time-slot-section {
  margin-bottom: 20px;
}
.time-slot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.time-slot-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cream-warm);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.time-slot-name {
  font-family: var(--font-d);
  font-size: 14px;
  color: var(--teal);
  font-weight: 700;
}
.time-slot-time {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

/* ===========================================================
   STORE PAGE STYLES
   =========================================================== */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.store-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px 22px;
  position: relative;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.store-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--mustard);
}
.store-card-emoji {
  font-size: 38px;
  margin-bottom: 10px;
  line-height: 1;
}
.store-card-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--mustard);
  color: var(--teal-dark);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.store-card h3 {
  font-family: var(--font-d);
  font-size: 18px;
  color: var(--teal);
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}
.store-card p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 12px;
  flex: 1;
}
.store-card-meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.store-card-meta span {
  display: inline-block;
  background: var(--cream-warm);
  padding: 3px 8px;
  border-radius: 100px;
  margin-right: 4px;
  margin-bottom: 4px;
}

.store-notify-btn {
  width: 100%;
  padding: 10px 14px !important;
  font-size: 13px !important;
}

/* Notify modal */
.notify-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 94, 111, 0.55);
  backdrop-filter: blur(6px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.notify-modal[style*="display:none"],
.notify-modal[style*="display: none"] {
  display: none !important;
}
.notify-modal-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 36px 28px 28px;
  max-width: 420px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 30px 60px rgba(14, 94, 111, 0.3);
}
.notify-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.2s;
}
.notify-modal-close:hover {
  background: var(--cream-warm);
  color: var(--teal);
}
.notify-modal-content h3 {
  font-family: var(--font-d);
  color: var(--teal);
}

/* ===========================================================
   v5 — DIET TOGGLE, AUDIO PLAYER, VIDEO PLAYER, SCREEN TIME
   =========================================================== */

/* Diet toggle */
#diet-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin-bottom: 18px;
  background: white;
  border: 2px solid var(--mustard);
  gap: 16px;
}
.diet-toggle-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.diet-toggle {
  display: inline-flex;
  background: var(--cream-warm);
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
  flex-shrink: 0;
}
.diet-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 40px;
  -webkit-appearance: none;
  appearance: none;
}
.diet-btn:hover { color: var(--coral); }
.diet-btn.active {
  background: var(--coral);
  color: white;
  box-shadow: 0 4px 10px rgba(255, 107, 74, 0.25);
}

/* Audio player card */
.audio-player-card {
  background: linear-gradient(135deg, var(--teal) 0%, #1A8095 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  box-shadow: 0 8px 22px rgba(14, 94, 111, 0.18);
}
.audio-player-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.audio-player-title {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.audio-player-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}
.audio-player-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.audio-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: grid;
  place-items: center;
}
.audio-btn:hover {
  background: white;
  color: var(--teal);
  transform: scale(1.05);
}
.audio-btn-small {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

/* Video player card */
.video-player-card {
  background: black;
  border-radius: var(--radius-lg);
  margin: 16px 0;
  overflow: hidden;
}
.video-player-frame {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}
.video-player-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Screen time lockout overlay */
#screen-time-lockout {
  position: fixed;
  inset: 0;
  background: rgba(14, 94, 111, 0.95);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: white;
  text-align: center;
}
.lockout-content {
  max-width: 440px;
}
.lockout-emoji {
  font-size: 64px;
  margin-bottom: 16px;
}
.lockout-content h2 {
  color: white;
  font-family: var(--font-d);
  font-size: 28px;
  margin: 0 0 12px;
}
.lockout-content p {
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  line-height: 1.55;
}

/* ===========================================================
   v5.1 — Video coming soon placeholder
   =========================================================== */
.video-coming-soon {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal) 0%, #1A8095 100%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.video-cs-icon {
  font-size: 48px;
  margin-bottom: 14px;
  opacity: 0.85;
}
.video-cs-title {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.video-cs-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 380px;
  line-height: 1.45;
  margin-bottom: 14px;
}
.video-cs-tag {
  background: var(--mustard);
  color: var(--teal-dark);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===========================================================
   MOBILE OPTIMIZATION — comprehensive pass
   Fixes diet toggle, tap targets, iOS zoom, layouts
   =========================================================== */

/* Global tap improvements */
button, .btn, a.btn, .meal-track-btn, .audio-btn, 
.diet-btn, .milestone-toggle-btn, .milestone-tips-btn,
.store-notify-btn, .nav-links a {
  -webkit-tap-highlight-color: rgba(255, 107, 74, 0.2);
  touch-action: manipulation;  /* removes iOS 300ms delay */
}

/* Active state for touch feedback */
button:active, .btn:active, .diet-btn:active, .audio-btn:active {
  transform: scale(0.97);
  transition: transform 0.1s;
}

/* ============================================================ */
/* TABLET / SMALL DESKTOP (768px and below) */
/* ============================================================ */
@media (max-width: 768px) {
  /* Form inputs: 16px prevents iOS Safari from zooming the page */
  .form-input, input[type="text"], input[type="email"], 
  input[type="password"], input[type="tel"], input[type="number"],
  textarea, select {
    font-size: 16px !important;
  }
  
  /* Score panel — stack vertically on narrower screens */
  .score-panel-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .score-overall {
    order: -1;
  }
  
  /* Pillar tiles — bigger touch targets */
  .pillar-tile {
    padding: 18px 14px;
  }
}

/* ============================================================ */
/* MOBILE PHONES (600px and below) — most users live here */
/* ============================================================ */
@media (max-width: 600px) {
  
  /* === GLOBAL: 44px+ tap targets === */
  .btn, button.btn, a.btn {
    min-height: 48px;
    padding: 14px 22px;
  }
  
  /* === DIET TOGGLE FIX (the main bug) === */
  #diet-toggle-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 18px !important;
  }
  
  .diet-toggle {
    display: flex !important;
    width: 100%;
    background: var(--cream-warm);
    padding: 4px;
    border-radius: 100px;
  }
  
  .diet-btn {
    flex: 1;
    padding: 14px 16px !important;
    font-size: 15px !important;
    min-height: 48px;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
  }
  
  /* === MEAL GRID — 2 columns max on mobile === */
  .meal-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .meal-slot {
    padding: 10px 8px !important;
  }
  .meal-slot-name {
    font-size: 12px !important;
  }
  .meal-slot-emoji {
    font-size: 22px !important;
  }
  
  /* Today's fruit/seasonal — stack on narrow */
  .pillar-content > .wrap-narrow > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* === STORY DAY CARDS — simplify === */
  .story-day-card {
    grid-template-columns: 48px 1fr !important;
    gap: 12px !important;
    padding: 14px !important;
  }
  .story-day-status { display: none !important; }
  .story-day-emoji { font-size: 26px !important; }
  .story-day-title { font-size: 14px !important; }
  .story-day-snippet { 
    font-size: 11px !important; 
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* === AUDIO PLAYER — bigger buttons === */
  .audio-player-card {
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 16px !important;
  }
  .audio-btn {
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0;
  }
  .audio-player-title { font-size: 13px !important; }
  .audio-player-sub { font-size: 11px !important; }
  
  /* === SCORE CIRCLES — smaller === */
  .score-circle:not(.score-overall .score-circle) {
    width: 70px !important;
    height: 70px !important;
  }
  
  /* === SCORE PILLAR MINI === */
  .score-pillar-mini {
    padding: 12px 14px !important;
    font-size: 13px !important;
  }
  .score-pillar-mini-bar {
    width: 50px !important;
  }
  
  /* === USER DROPDOWN — bigger tap targets === */
  .user-dropdown a, .user-dropdown button {
    padding: 14px 16px !important;
    min-height: 48px;
    font-size: 14px;
    line-height: 1.3;
  }
  
  /* === MEAL DAY CARDS === */
  .meal-day-card {
    padding: 18px 16px !important;
  }
  .meal-day-name { font-size: 16px !important; }
  .meal-day-theme { font-size: 11px !important; }
  
  /* === MILESTONE CARDS === */
  .milestone-card {
    padding: 18px 16px;
  }
  .milestone-card .milestone-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .milestone-card .milestone-actions button {
    width: 100%;
    padding: 12px 14px !important;
    font-size: 13px !important;
    min-height: 44px;
  }
  
  /* === HABIT CARDS === */
  .habit-card {
    padding: 16px;
  }
  .habit-check {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0;
  }
  
  /* === MODALS — full-width, scrollable === */
  .notify-modal-content,
  #screentime-modal > div {
    margin: 14px !important;
    padding: 28px 20px 20px !important;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  /* === STORE GRID === */
  .store-grid {
    grid-template-columns: 1fr !important;
  }
  .store-card {
    padding: 22px 20px;
  }
  
  /* === COMING SOON GRID === */
  .coming-soon-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  
  /* === GREETING === */
  .greeting-name {
    font-size: 22px !important;
  }
  .greeting-family {
    font-size: 13px !important;
  }
  .greeting-tagline {
    font-size: 12px !important;
  }
  
  /* === HERO === */
  .hero h1 {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }
  .hero-subtitle {
    font-size: 14px !important;
  }
  
  /* === PILLAR FEATURE BLOCKS === */
  .pillar-feature {
    padding: 26px 20px !important;
  }
  .pillar-feature h2 {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }
  
  /* === SECTION TITLES === */
  .section-title {
    font-size: 18px !important;
  }
  
  /* === FOOTER — stack === */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    text-align: left !important;
  }
  
  /* === SCREEN TIME WIDGET === */
  #screen-time-widget {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  #screen-time-widget > button {
    width: 100% !important;
    min-height: 44px;
  }
  
  /* === NUTRITION SUMMARY === */
  .nutrition-summary {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* === WEEKLY VIEW === */
  .weekly-view {
    padding: 18px 14px !important;
  }
  
  /* === WEEK STRIP CELLS === */
  .week-strip-cell {
    padding: 8px 3px !important;
  }
  .week-strip-emoji {
    font-size: 18px !important;
  }
  .week-strip-title {
    font-size: 9px !important;
  }
  
  /* === LOCKOUT OVERLAY === */
  .lockout-content {
    padding: 0 20px;
  }
  .lockout-content h2 {
    font-size: 22px !important;
  }
  .lockout-content p {
    font-size: 14px !important;
  }
  
  /* === CHATBOT — better mobile === */
  .vatsa-bot-window {
    width: calc(100vw - 24px) !important;
    height: calc(100vh - 100px) !important;
    max-height: 600px !important;
    bottom: 80px !important;
    right: 12px !important;
  }
}

/* ============================================================ */
/* VERY NARROW PHONES (380px and below — old iPhones, small Androids) */
/* ============================================================ */
@media (max-width: 380px) {
  .meal-grid {
    grid-template-columns: 1fr !important;
  }
  .week-strip {
    gap: 4px !important;
  }
  .nutrition-summary {
    grid-template-columns: 1fr !important;
  }
  .nav-wrap {
    padding: 10px 14px !important;
  }
  .greeting-name {
    font-size: 20px !important;
  }
  .hero h1 {
    font-size: 26px !important;
  }
  .pillar-feature h2 {
    font-size: 19px !important;
  }
  .btn {
    padding: 12px 18px;
    font-size: 14px;
  }
}
