:root {
  --bg: #F6FAF9;
  --surface: #FFFFFF;
  --ink: #0B211C;
  --ink-secondary: #46605A;
  --ink-muted: #7C948D;
  --teal-900: #04342C;
  --teal-800: #085041;
  --teal-700: #0F6E56;
  --teal-500: #1D9E75;
  --teal-300: #5DCAA5;
  --teal-150: #C7ECDD;
  --teal-100: #E1F5EE;
  --line: #DCE9E5;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--teal-900);
  margin: 0;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }

p { margin: 0; color: var(--ink-secondary); }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 250, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--teal-900);
}
.brand svg { display: block; }
.nav-links {
  display: flex;
  gap: 2.2rem;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}
.nav-links a:hover { color: var(--teal-700); }
.nav-cta {
  border: 1px solid var(--teal-900);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--teal-900);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--teal-900); color: #fff; }

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(4,52,44,0.92) 0%, rgba(4,52,44,0.55) 45%, rgba(4,52,44,0.2) 75%, rgba(4,52,44,0.08) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 2rem 4rem;
  max-width: 640px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-150);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 { color: #fff; }
.hero p.lead {
  color: var(--teal-100);
  font-size: 1.05rem;
  margin-top: 0.9rem;
  max-width: 480px;
}
.hero-ctas { display: flex; gap: 0.9rem; margin-top: 1.8rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
}
.btn-primary { background: #fff; color: var(--teal-900); }
.btn-primary:hover { background: var(--teal-100); }
.btn-outline { border: 1px solid rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Sections */
section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }
.eyebrow-dark {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 0.7rem;
  display: block;
}

/* Split cards */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.path-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(4,52,44,0.04), 0 8px 24px rgba(4,52,44,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}
.path-card:hover { box-shadow: 0 4px 8px rgba(4,52,44,0.06), 0 16px 32px rgba(4,52,44,0.09); transform: translateY(-3px); }
.path-card .icon-wrap {
  width: 48px; height: 48px;
  background: var(--teal-100);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
}
.path-card-body { padding: 2.2rem; }
.path-card h3 { margin-bottom: 0.7rem; }
.path-card p { font-size: 0.95rem; margin-bottom: 1.5rem; }
.path-link { font-size: 0.9rem; font-weight: 500; color: var(--teal-700); }

/* Stats */
.stats-strip {
  background: var(--teal-900);
  border-radius: 20px;
  padding: 3.2rem 2.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  box-shadow: 0 20px 50px rgba(4,52,44,0.18);
}
.stat { padding-left: 1.4rem; border-left: 2px solid rgba(93,202,165,0.35); }
.stat .num {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  color: #fff;
  font-weight: 500;
  line-height: 1;
}
.stat .label { color: var(--teal-150); font-size: 0.88rem; margin-top: 0.6rem; line-height: 1.45; }
.stats-note { font-size: 0.78rem; color: var(--ink-muted); margin-top: 1.2rem; }

/* Generic content blocks */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.list-clean { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.list-clean li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.97rem;
  color: var(--ink-secondary);
}
.list-clean li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 6px; height: 6px;
  background: var(--teal-500);
  border-radius: 1px;
  transform: rotate(45deg);
}
.list-clean strong { color: var(--teal-900); font-weight: 500; }

/* Proof stats mini */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1rem; }
.proof-card {
  background: var(--teal-100);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: 0 1px 2px rgba(4,52,44,0.03), 0 6px 16px rgba(4,52,44,0.04);
}
.proof-card p { font-size: 0.88rem; color: var(--teal-800); line-height: 1.5; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
.step { border-top: 2px solid var(--teal-300); padding-top: 1rem; }
.step .step-num { font-family: 'Fraunces', serif; font-size: 0.85rem; color: var(--teal-500); }
.step h3 { font-size: 1.05rem; margin: 0.4rem 0 0.5rem; }
.step p { font-size: 0.9rem; }

/* Component grid (12 items) */
.component-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.component-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 1px 2px rgba(4,52,44,0.03), 0 6px 16px rgba(4,52,44,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.component-item:hover { box-shadow: 0 4px 8px rgba(4,52,44,0.05), 0 12px 24px rgba(4,52,44,0.07); transform: translateY(-2px); }
.component-item .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--teal-100);
  border-radius: 6px;
  font-size: 0.68rem;
  color: var(--teal-700);
  font-weight: 600;
}
.component-item h3 { font-size: 0.98rem; margin: 0.5rem 0 0.4rem; }
.component-item p { font-size: 0.83rem; color: var(--ink-secondary); }

/* CTA band */
.cta-band {
  background: var(--teal-900);
  border-radius: 16px;
  padding: 3.5rem 3rem;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.8rem; }
.cta-band p { color: var(--teal-150); max-width: 480px; margin: 0 auto 1.6rem; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Pathfinder quiz */
.pathfinder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.8rem;
  box-shadow: 0 1px 2px rgba(4,52,44,0.04), 0 8px 24px rgba(4,52,44,0.05);
}
.pf-progress { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 0.6rem; }
.pf-question { font-size: 1.15rem; margin-bottom: 1.3rem; max-width: 480px; }
.pf-options { display: flex; flex-direction: column; gap: 0.7rem; max-width: 560px; }
.pf-option {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.94rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pf-option:hover { border-color: var(--teal-300); background: var(--teal-100); }
.pf-result { display: none; }
.pf-result-inner { display: flex; gap: 1.6rem; align-items: flex-start; flex-wrap: wrap; }
.pf-result-badge { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 0.5rem; display: block; }
.pf-result h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.pf-result p { font-size: 0.95rem; max-width: 480px; margin-bottom: 1.3rem; }
.pf-restart { font-size: 0.85rem; color: var(--ink-muted); background: none; border: none; text-decoration: underline; cursor: pointer; padding: 0; margin-left: 1rem; }

@media (max-width: 860px) {
  .pathfinder { padding: 1.8rem; }
}

@media (max-width: 860px) {
  .split, .two-col, .stats-strip, .proof-grid, .steps, .component-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 3.5rem 0; }
}

/* Packages */
.package-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.package-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: 0 1px 2px rgba(4,52,44,0.04), 0 8px 24px rgba(4,52,44,0.05);
}
.package-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.package-card .package-problem { font-size: 0.9rem; color: var(--ink-secondary); font-style: italic; margin-bottom: 1rem; }
.package-tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.package-tile {
  font-size: 0.76rem;
  background: var(--teal-100);
  color: var(--teal-800);
  padding: 4px 10px;
  border-radius: 6px;
}
@media (max-width: 860px) {
  .package-grid { grid-template-columns: 1fr; }
}

/* Component tile: things we hear / what we solve */
.component-item .cw-label {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-top: 0.7rem;
  margin-bottom: 0.2rem;
}
.component-item .cw-label:first-of-type { margin-top: 0.5rem; }
.component-item .cw-hear {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-secondary);
  margin: 0;
}
.component-item .cw-solve {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  margin: 0;
}

.component-item .cw-hear-only {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-secondary);
  margin: 0.4rem 0 0;
}

/* Interactive tile selection */
.component-item {
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: 'Inter', sans-serif;
}
.component-item.selected {
  border-color: var(--teal-500);
  background: var(--teal-100);
  box-shadow: 0 0 0 2px var(--teal-300);
}
.component-item .n { transition: background 0.15s, color 0.15s; }
.component-item.selected .n { background: var(--teal-500); color: #fff; }

.pkg-match-banner {
  display: none;
  background: var(--teal-900);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin-top: 1.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.pkg-match-banner.visible { display: flex; }
.pkg-match-text { color: #fff; font-size: 0.95rem; }
.pkg-match-text strong { color: var(--teal-150); }
.pkg-match-link {
  background: #fff;
  color: var(--teal-900);
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
}

.package-card.highlighted {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 2px var(--teal-300), 0 8px 24px rgba(4,52,44,0.08);
}

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-direct { padding-top: 0.5rem; }
.contact-direct-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.contact-direct-item a { color: var(--teal-700); font-weight: 500; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(4,52,44,0.04), 0 8px 24px rgba(4,52,44,0.05);
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-secondary);
  margin-bottom: 0.35rem;
  margin-top: 1rem;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--teal-500);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form button {
  margin-top: 1.4rem;
  background: var(--teal-900);
  color: #fff;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.contact-form button:hover { background: var(--teal-800); }
.form-success {
  display: none;
  background: var(--teal-100);
  color: var(--teal-800);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  margin-top: 1rem;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Pathfinder progress bar */
.pf-progress-bar-track {
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.pf-progress-bar-fill {
  height: 100%;
  background: var(--teal-500);
  border-radius: 999px;
  width: 20%;
  transition: width 0.25s ease;
}
