/* ==========================================================================
   MyCareHuddle — Marketing Site Stylesheet
   Palette:
     --huddle-blue      #2E4BC6  primary
     --huddle-blue-deep #1F3494  headings / hover
     --growth-green     #7AB93D  accent / secondary CTA
     --soft-mist        #F4F7FB  page background
     --slate            #4A5568  body text
     --charcoal         #1B2233  dark sections / headings
   Type: 'Sora' (display) + 'Inter' (body)
   ========================================================================== */

:root {
  --huddle-blue: #2E4BC6;
  --huddle-blue-deep: #1F3494;
  --huddle-blue-pale: #E8ECFB;
  --growth-green: #7AB93D;
  --growth-green-deep: #5C8F2A;
  --growth-green-pale: #EAF5DC;
  --soft-mist: #F4F7FB;
  --white: #FFFFFF;
  --slate: #4A5568;
  --slate-light: #7C879B;
  --charcoal: #1B2233;
  --border: #E1E7F2;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(27, 34, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 34, 51, 0.08);
  --shadow-lg: 0 16px 48px rgba(27, 34, 51, 0.12);

  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--soft-mist);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--huddle-blue);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--growth-green);
  border-radius: 2px;
}

/* -------------------------- Buttons -------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--huddle-blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--huddle-blue-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  color: var(--huddle-blue);
  border-color: var(--huddle-blue-pale);
}
.btn-secondary:hover { border-color: var(--huddle-blue); background: var(--huddle-blue-pale); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
}
.btn-ghost:hover { color: var(--huddle-blue); }

.btn-on-dark {
  background: var(--growth-green);
  color: var(--white);
}
.btn-on-dark:hover { background: var(--growth-green-deep); transform: translateY(-1px); }

/* -------------------------- Header -------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 251, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 42px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--slate);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--huddle-blue-pale); color: var(--huddle-blue-deep); }
.main-nav a.active { color: var(--huddle-blue-deep); background: var(--huddle-blue-pale); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--charcoal); }

/* -------------------------- Hero -------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 70px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy p.lead {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 46ch;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--growth-green-deep);
  margin: -6px 0 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--slate-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Care Ring — signature graphic */
.care-ring-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.care-ring {
  width: 100%;
  max-width: 440px;
  height: auto;
}

.care-ring .orbit-path {
  fill: none;
  stroke: var(--huddle-blue-pale);
  stroke-width: 1.5;
  stroke-dasharray: 4 8;
}

.care-ring .orbit-node {
  animation: orbit-float 6s ease-in-out infinite;
}
.care-ring .orbit-node.n2 { animation-delay: 1.2s; }
.care-ring .orbit-node.n3 { animation-delay: 2.4s; }
.care-ring .orbit-node.n4 { animation-delay: 3.6s; }

@keyframes orbit-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .care-ring .orbit-node { animation: none; }
}

/* -------------------------- Arc divider (signature) -------------------------- */

.arc-divider {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0 auto;
}
.arc-divider path {
  fill: none;
  stroke: var(--border);
  stroke-width: 2;
}

/* -------------------------- Sections -------------------------- */

section { padding: 76px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { margin: 0 0 48px; text-align: left; }

.bg-white { background: var(--white); }
.bg-pale { background: var(--huddle-blue-pale); }
.bg-charcoal { background: var(--charcoal); color: #C7CEDE; }
.bg-charcoal h2, .bg-charcoal h3 { color: var(--white); }

/* Problem / pain points */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pain-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
}
.pain-card .glyph {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--huddle-blue-pale);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--huddle-blue);
}
.pain-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.pain-card p { font-size: 0.95rem; margin: 0; color: var(--slate); }

/* Feature list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-grid.centered-last-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.feature-grid.centered-last-row .feature-card {
  flex: 0 1 calc(33.333% - 18.667px);
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.feature-card .mini-shot {
  width: 64px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.feature-card .mini-shot img { width: 100%; display: block; }
.feature-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--growth-green-deep);
  background: var(--growth-green-pale);
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; margin: 0; }

/* Audience split (For Families / For Care Teams) */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.audience-card {
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  position: relative;
  overflow: hidden;
}
.audience-card.blue { background: var(--huddle-blue); color: #DDE4FA; }
.audience-card.green { background: var(--charcoal); color: #C7CEDE; }
.audience-card h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 12px; }
.audience-card p { color: inherit; opacity: 0.92; }
.audience-card ul { margin: 20px 0 28px; padding: 0; list-style: none; }
.audience-card li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px; font-size: 0.95rem;
}
.audience-card li::before {
  content: "✓";
  flex-shrink: 0;
  font-weight: 700;
  color: var(--growth-green);
}

/* Steps (how it works) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  text-align: left;
  padding-top: 18px;
  border-top: 3px solid var(--growth-green);
}
.step .step-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-light);
  margin-bottom: 10px;
  display: block;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.92rem; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--huddle-blue) 0%, var(--huddle-blue-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: #DDE4FA; max-width: 46ch; margin: 0 auto 30px; }
.cta-banner .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Testimonial-style quote / trust */
.quote-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.quote-block p.quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--charcoal);
  font-weight: 600;
  line-height: 1.4;
}
.quote-block .attribution {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--slate-light);
}

/* -------------------------- Footer -------------------------- */

.site-footer {
  background: var(--charcoal);
  color: #9AA5BD;
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand img { height: 34px; }
.footer-brand p { color: #9AA5BD; font-size: 0.92rem; max-width: 32ch; margin-top: 14px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.92rem;
  color: #9AA5BD;
  margin-bottom: 11px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* -------------------------- Simple content pages (legal) -------------------------- */

.legal-hero {
  padding: 64px 0 40px;
  text-align: center;
}
.legal-doc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  max-width: 820px;
  margin: 0 auto 80px;
}
.legal-doc .meta {
  color: var(--slate-light);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-doc h2 {
  font-size: 1.35rem;
  margin-top: 42px;
  padding-top: 8px;
}
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h3 { font-size: 1.05rem; margin-top: 26px; }
.legal-doc p, .legal-doc li { font-size: 0.98rem; color: var(--slate); }
.legal-doc ul { padding-left: 22px; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc strong { color: var(--charcoal); }
.legal-doc a { color: var(--huddle-blue); font-weight: 600; }
.legal-doc a:hover { text-decoration: underline; }

.legal-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.legal-index-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.legal-index-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.legal-index-card h3 { margin-bottom: 8px; }
.legal-index-card p { font-size: 0.92rem; }
.legal-index-card .go { color: var(--huddle-blue); font-weight: 600; font-size: 0.9rem; margin-top: 12px; display: inline-block; }

/* Simple page hero (About, Pricing) */
.page-hero {
  padding: 80px 0 50px;
  text-align: center;
}
.page-hero p.lead {
  max-width: 56ch;
  margin: 0 auto;
  font-size: 1.1rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card { text-align: center; padding: 20px; }
.value-card .glyph {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--growth-green-pale);
  color: var(--growth-green-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.price-card.featured {
  border-color: var(--huddle-blue);
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-card .badge {
  position: absolute;
  top: -14px; left: 40px;
  background: var(--growth-green);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.price-card .amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 14px 0 6px;
}
.price-card .amount span { font-size: 0.95rem; font-weight: 500; color: var(--slate-light); }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; }
.price-card li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.94rem; }
.price-card li::before { content: "✓"; color: var(--growth-green-deep); font-weight: 700; }

/* -------------------------- App screenshots / tag pill -------------------------- */

.tag-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: var(--huddle-blue-pale);
  color: var(--huddle-blue-deep);
}
.tag-pill.green { background: var(--growth-green-pale); color: var(--growth-green-deep); }

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  background: #10131c;
  border-radius: 30px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}
.phone-frame img { width: 100%; border-radius: 22px; display: block; }
.phone-frame .notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 18px;
  background: #10131c;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.screens-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 520px;
  margin: 0 auto;
}
.screen-card { text-align: center; }
.screen-card h3 { margin: 22px 0 8px; font-size: 1.05rem; }
.screen-card p { font-size: 0.92rem; color: var(--slate); margin: 0; }

/* Care Recipient Profile showcase */
.profile-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.profile-copy .check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.profile-copy .check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px; font-size: 0.95rem;
}
.profile-copy .check-list li::before {
  content: "✓"; flex-shrink: 0; font-weight: 700; color: var(--growth-green-deep);
}

.profile-cards { display: flex; flex-direction: column; gap: 18px; }
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.info-card .k {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--slate-light); font-weight: 700; margin-bottom: 4px;
}
.info-card .v { font-size: 0.92rem; color: var(--charcoal); line-height: 1.55; margin: 0 0 14px; }
.info-card .v:last-child { margin-bottom: 0; }
.info-card .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.info-card .chip {
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px;
  font-size: 0.82rem; color: var(--charcoal); background: var(--soft-mist);
}

/* Recent Care Snapshot mini card */
.snapshot-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}
.snapshot-entry { border-left: 3px solid var(--huddle-blue-pale); padding: 2px 0 2px 16px; margin-bottom: 18px; }
.snapshot-entry:last-child { margin-bottom: 0; }
.snapshot-entry .badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 6px; margin-bottom: 6px;
  background: var(--huddle-blue-pale); color: var(--huddle-blue-deep);
}
.snapshot-entry .badge.flag { background: var(--charcoal); color: var(--white); }
.snapshot-entry .when { font-size: 0.78rem; color: var(--slate-light); margin-left: 8px; }
.snapshot-entry p { margin: 4px 0 0; font-size: 0.9rem; color: var(--charcoal); line-height: 1.5; }

/* -------------------------- Mobile nav -------------------------- */

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero .container { grid-template-columns: 1fr; }
  .care-ring-wrap { order: -1; max-width: 320px; margin: 0 auto; }
  .pain-grid, .feature-grid, .steps, .audience-grid, .legal-index-grid, .value-grid, .pricing-grid { grid-template-columns: 1fr; }
  .screens-grid, .screens-grid.two-col, .profile-showcase { grid-template-columns: 1fr; }
  .profile-showcase { gap: 32px; }
  .feature-grid.centered-last-row .feature-card { flex-basis: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .legal-doc { padding: 32px 24px; }
  .cta-banner { padding: 40px 26px; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--white);
    padding: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .header-actions .btn-secondary { display: none; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
