/* ── Variables ── */
:root {
  --bg: #FDF6EC;
  --bg-alt: #F5EDE0;
  --fg: #1C1410;
  --fg-muted: #6B5E52;
  --accent: #C8773B;
  --accent-dark: #A85E28;
  --primary: #1B4332;
  --primary-light: #2D6A4F;
  --border: #E0D5C5;
  --white: #FFFFFF;
  --tier-ai-bg: #E8F5E9;
  --tier-ai-color: #2E7D32;
  --tier-central-bg: #E3F2FD;
  --tier-central-color: #1565C0;
  --tier-parental-bg: #FCE4EC;
  --tier-parental-color: #AD1457;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--fg);
}

p { max-width: 65ch; }
em { font-style: italic; }

/* ── Nav ── */
.nav {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ── Hero ── */
.hero {
  padding: 5rem 2rem 4rem;
  background: var(--bg);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.hero-lede {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 48ch;
}

/* ── Path Diagram (hero visual) ── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.path-diagram {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(28, 20, 16, 0.06);
  width: 100%;
  max-width: 360px;
}
.path-diagram::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 16px;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(200, 119, 59, 0.04) 8px,
    rgba(200, 119, 59, 0.04) 9px
  );
  pointer-events: none;
}
.path-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.path-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.path-node-active .path-circle {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(27, 67, 50, 0.12);
}
.path-label {
  font-size: 0.875rem;
  color: var(--fg-muted);
  font-weight: 500;
}
.path-node-active .path-label {
  color: var(--primary);
  font-weight: 600;
}
.path-connector {
  width: 2px;
  height: 18px;
  background: var(--border);
  margin-left: 13px;
}
.path-progress {
  margin-top: 1.25rem;
  height: 4px;
  background: var(--bg-alt);
  border-radius: 2px;
  overflow: hidden;
}
.path-progress-fill {
  height: 100%;
  width: 25%;
  background: var(--accent);
  border-radius: 2px;
}
.path-caption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-style: italic;
  max-width: none;
}

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

/* ── The Path ── */
.thepath {
  background: var(--bg-alt);
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.thepath-inner { max-width: 1100px; margin: 0 auto; }
.thepath-header { margin-bottom: 3rem; }
.thepath-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--primary);
  max-width: 22ch;
}
.thepath-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.thepath-statement p {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: none;
}
.thepath-quote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--accent);
  line-height: 0.5;
  display: block;
  margin-bottom: 0.5rem;
}
.thepath-quote p {
  font-family: 'Playfair Display', serif;
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--fg);
  max-width: none;
}
.quote-attr {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-top: 0.5rem;
  display: block;
}
.thepath-sub {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ── Features ── */
.features {
  padding: 5rem 2rem;
  background: var(--bg);
}
.features-inner { max-width: 1100px; margin: 0 auto; }
.features-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 3rem;
  max-width: 18ch;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  box-shadow: 0 6px 24px rgba(28, 20, 16, 0.08);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}
.feature-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--fg);
}
.feature-desc {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: none;
}

/* ── For Families ── */
.forfamilies {
  background: var(--primary);
  padding: 5rem 2rem;
}
.forfamilies-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.forfamilies-text .section-eyebrow { color: rgba(200, 119, 59, 0.9); }
.forfamilies-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}
.forfamilies-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: none;
}
.forfamilies-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}
.tier {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.tier-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  min-width: 70px;
  text-align: center;
}
.tier-ai { background: var(--tier-ai-bg); color: var(--tier-ai-color); }
.tier-central { background: var(--tier-central-bg); color: var(--tier-central-color); }
.tier-parental { background: var(--tier-parental-bg); color: var(--tier-parental-color); }
.tier-desc { font-size: 0.875rem; color: rgba(255,255,255,0.7); }

/* ── Family Visual ── */
.forfamilies-visual {
  display: flex;
  justify-content: center;
}
.family-diagram {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  width: 100%;
  max-width: 300px;
}
.family-circle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0 1rem;
  vertical-align: middle;
}
.family-icon {
  font-size: 2.5rem;
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.family-role {
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
}
.family-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.family-connector-line {
  border-top: 1px dashed rgba(255,255,255,0.2);
  margin: 1.5rem 0;
}
.family-diagram-caption {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  max-width: none;
}

/* ── Closing ── */
.closing {
  padding: 5rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing-inner { max-width: 800px; margin: 0 auto; }
.closing-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.closing-body {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 auto;
}

/* ── Footer ── */
.footer {
  background: var(--primary);
  padding: 2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}
.footer-motto {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}
.footer-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  max-width: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner,
  .thepath-body,
  .forfamilies-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-visual {
    order: -1;
  }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .thepath,
  .features,
  .forfamilies,
  .closing { padding: 3.5rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .nav { padding: 1rem 1.5rem; }
}