/* ============================================
   CareAtlas Landing Page — Theme CSS
   ============================================ */

:root {
  --forest: #1C3A2C;
  --forest-light: #2A5442;
  --cream: #F7F4EE;
  --cream-dark: #EDE8DF;
  --amber: #D4923A;
  --amber-light: #E8AA5A;
  --sage: #6B8E72;
  --sage-light: #8AAD94;
  --stone: #8A7F72;
  --text: #2C2825;
  --text-mid: #5C5450;
  --text-light: #9A908A;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: rgba(247, 244, 238, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28, 58, 44, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Shared Section Styles */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 48px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6B8E7240 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #D4923A30 0%, transparent 70%);
  bottom: 100px;
  left: -100px;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #1C3A2C 0%, transparent 70%);
  top: 40%;
  right: 30%;
  opacity: 0.06;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-family {
  display: flex;
  align-items: center;
  gap: 16px;
}

.family-icon svg {
  width: 48px;
  height: 48px;
}

.fm-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.fm-avatars {
  display: flex;
  gap: 6px;
  align-items: center;
}

.fm-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: white;
}

.fm-avatar-count {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px dashed var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--stone);
}

/* Hero Dashboard Card */
.hero-dashboard {
  display: flex;
  justify-content: center;
}

.dash-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 24px rgba(28, 58, 44, 0.08), 0 1px 3px rgba(28, 58, 44, 0.04);
  border: 1px solid rgba(28, 58, 44, 0.06);
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-week {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--forest);
}

.dash-badge {
  background: rgba(212, 146, 58, 0.15);
  color: var(--amber);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
}

.dash-ai {
  background: linear-gradient(135deg, #F0FAF4 0%, #F7F4EE 100%);
  border: 1px solid rgba(107, 142, 114, 0.2);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 5px;
  flex-shrink: 0;
}

.ai-text {
  font-size: 0.78rem;
  color: var(--forest);
  line-height: 1.55;
}

.dash-divider {
  height: 1px;
  background: var(--cream-dark);
  margin-bottom: 14px;
}

.dash-items { display: flex; flex-direction: column; gap: 12px; }

.dash-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.di-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.med-icon { background: rgba(107, 142, 114, 0.15); color: var(--sage); }
.appt-icon { background: rgba(28, 58, 44, 0.08); color: var(--forest); }
.note-icon { background: rgba(212, 146, 58, 0.12); color: var(--amber); }

.di-icon svg { width: 16px; height: 16px; }

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

.di-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.di-meta {
  display: block;
  font-size: 0.68rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.di-check svg { width: 16px; height: 16px; }

.di-status {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.appt-pending {
  background: rgba(212, 146, 58, 0.15);
  color: var(--amber);
}

.dash-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--cream-dark);
}

.df-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--text-light);
  font-style: italic;
}

/* ============================================
   PAIN
   ============================================ */

.pain {
  padding: 100px 40px;
  background: var(--forest);
  color: var(--cream);
  position: relative;
}

.pain-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.pain .section-eyebrow { color: var(--amber-light); }
.pain .section-heading { color: var(--cream); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.pain-card {
  padding: 28px 24px;
  background: rgba(247, 244, 238, 0.04);
  border: 1px solid rgba(247, 244, 238, 0.1);
  border-radius: 12px;
}

.pain-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--amber);
}

.pain-icon svg { width: 100%; height: 100%; }

.pain-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.pain-card p {
  font-size: 0.88rem;
  color: rgba(247, 244, 238, 0.65);
  line-height: 1.65;
}

.pain-stat {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(247, 244, 238, 0.7);
  border-top: 1px solid rgba(247, 244, 238, 0.1);
  padding-top: 40px;
}

.pain-stat strong { color: var(--cream); font-weight: 600; font-style: normal; }

/* ============================================
   HOW
   ============================================ */

.how {
  padding: 100px 40px;
  background: var(--cream);
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.step {
  padding: 0 24px;
  border-left: 1px solid var(--cream-dark);
  padding-left: 32px;
}

.step:first-child { border-left: none; padding-left: 0; }

.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--forest);
  opacity: 0.15;
  margin-bottom: 16px;
}

.step-num-end {
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 10px;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Step visuals */
.step-visual {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.circle-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--cream);
}

.circle-node.you { background: var(--amber); }
.circle-node.care { background: var(--sage); }

.pill-row { gap: 6px; }

.pill {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 500;
  background: var(--forest);
  color: var(--cream);
}

.rx2 { background: var(--sage); }
.rx3 { background: rgba(28, 58, 44, 0.3); }
.rx4 { background: transparent; border: 1px solid var(--cream-dark); color: var(--text-light); }

.note-stack { gap: 8px; }

.note-card {
  width: 28px;
  height: 36px;
  border-radius: 4px;
  background: var(--cream-dark);
  border: 1px solid rgba(28, 58, 44, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.note-card.active {
  background: var(--forest);
  border-color: var(--forest);
}

.nc-date {
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--text-light);
}

.note-card.active .nc-date { color: var(--cream); }

.nc-line {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: rgba(28, 58, 44, 0.15);
}

.note-card.active .nc-line { background: rgba(247, 244, 238, 0.3); }
.nc-line.nc-long { width: 18px; }

.digest {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
  width: 100%;
}

.digest-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

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

.dl {
  height: 6px;
  border-radius: 3px;
  background: rgba(28, 58, 44, 0.12);
  width: 100%;
}

.dl-mid { width: 85%; }
.dl-short { width: 60%; }

.digest-badge {
  font-size: 0.65rem;
  color: var(--amber);
  font-weight: 500;
  margin-top: 4px;
}

/* ============================================
   AI SECTION
   ============================================ */

.ai-section {
  padding: 100px 40px;
  background: linear-gradient(160deg, var(--cream-dark) 0%, var(--cream) 100%);
}

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

.ai-phone {
  display: flex;
  justify-content: center;
}

.phone-screen {
  background: white;
  border-radius: 20px;
  padding: 20px;
  width: 260px;
  box-shadow: 0 8px 40px rgba(28, 58, 44, 0.1), 0 2px 8px rgba(28, 58, 44, 0.06);
  border: 1px solid rgba(28, 58, 44, 0.06);
}

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

.ps-from {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.05em;
}

.ps-time {
  font-size: 0.6rem;
  color: var(--text-light);
}

.ps-subject {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 12px;
  line-height: 1.4;
}

.ps-body { display: flex; flex-direction: column; gap: 10px; }

.ps-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(107, 142, 114, 0.1);
  border-radius: 8px;
}

.pm-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
}

.pm-label {
  font-size: 0.65rem;
  color: var(--text-mid);
  line-height: 1.4;
}

.ps-divider {
  height: 1px;
  background: var(--cream-dark);
}

.ps-highlight {
  padding: 8px 10px;
  background: rgba(212, 146, 58, 0.1);
  border-radius: 8px;
  border-left: 3px solid var(--amber);
}

.ph-tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 4px;
}

.ps-highlight p {
  font-size: 0.72rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.ps-entry {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.pe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest);
  opacity: 0.3;
  margin-top: 6px;
  flex-shrink: 0;
}

.ps-entry p {
  font-size: 0.72rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.ai-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--forest);
  margin-bottom: 20px;
}

.ai-text p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.ai-key {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-light);
  padding: 12px 16px;
  border-left: 3px solid var(--amber);
  margin-bottom: 24px;
}

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-tag {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(28, 58, 44, 0.07);
  color: var(--forest);
}

/* ============================================
   WHO
   ============================================ */

.who {
  padding: 100px 40px;
  background: white;
}

.who-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.who-card {
  padding: 28px 24px;
  background: var(--cream);
  border-radius: 12px;
  border: 1px solid var(--cream-dark);
}

.wc-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--forest);
}

.wc-icon svg { width: 100%; height: 100%; }

.who-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 10px;
}

.who-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ============================================
   CLOSING
   ============================================ */

.closing {
  padding: 100px 40px;
  background: linear-gradient(180deg, var(--forest) 0%, #0F2A1E 100%);
  color: var(--cream);
}

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

.closing-compass {
  width: 120px;
  height: 120px;
  opacity: 0.7;
}

.closing-compass svg { width: 100%; height: 100%; }

.closing-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--cream);
  margin-bottom: 20px;
}

.closing-text > p {
  font-size: 1rem;
  color: rgba(247, 244, 238, 0.65);
  line-height: 1.7;
  margin-bottom: 16px;
}

.closing-aside {
  font-size: 1.05rem;
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 20px;
}

.closing-aside strong {
  color: var(--amber);
  font-weight: 600;
}

.closing-note {
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(247, 244, 238, 0.45);
  padding: 12px 16px;
  border: 1px solid rgba(247, 244, 238, 0.1);
  border-radius: 8px;
  max-width: 480px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 48px 40px;
  background: #0F2A1E;
  color: rgba(247, 244, 238, 0.4);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(247, 244, 238, 0.6);
}

.footer-inner p {
  font-size: 0.8rem;
}

.footer-bottom {
  font-size: 0.75rem;
  color: rgba(247, 244, 238, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-dashboard { justify-content: flex-start; }
  .how-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .ai-inner { grid-template-columns: 1fr; }
  .ai-phone { display: none; }
  .closing-inner { grid-template-columns: 1fr; }
  .closing-compass { display: none; }
}

@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  .pain { padding: 80px 24px; }
  .how { padding: 80px 24px; }
  .ai-section { padding: 80px 24px; }
  .who { padding: 80px 24px; }
  .closing { padding: 80px 24px; }
  .footer { padding: 40px 24px; }

  .pain-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; gap: 40px; }
  .who-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.2rem; }
  .dash-card { padding: 16px; }
}