/* ============================================================
   Full Heart Leadership — design system
   Palette: deep purple ink, lavender-tinted paper, emerald +
   rose used sparingly. No yellow. No orange. Ever.
   Type: Bricolage Grotesque (display) / Instrument Sans (body)
   ============================================================ */

:root {
  --ink: #221733;
  --ink-soft: #4a3d5e;
  --paper: #faf9fc;
  --surface: #f1edf7;
  --line: #ddd5ea;
  --purple: #5b3e96;
  --purple-deep: #3b2568;
  --green: #2e7d5f;
  --rose: #b4425f;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Bricolage Grotesque", Georgia, serif;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

p + p { margin-top: 1em; }

a { color: var(--purple); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--purple-deep); }

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

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1rem;
}

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--max); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Bricolage Grotesque", serif;
  font-weight: 700; font-size: 1.05rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--purple-deep); }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); color: #fff; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple-deep); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #24634b; color: #fff; }

/* ---------- hero ---------- */
.hero { padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 7vw, 88px); }
.hero h1 { max-width: 17ch; }
.hero .lede {
  margin-top: 1.4rem; max-width: 46ch;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
}
.hero .actions { margin-top: 2.2rem; display: flex; gap: 14px; flex-wrap: wrap; }

/* the signature: "heart" carries a hand-drawn full-heart underline */
.heart-word { position: relative; white-space: nowrap; color: var(--purple-deep); }
.heart-word svg {
  position: absolute; left: 0; right: 0; bottom: -0.18em;
  width: 100%; height: 0.32em; overflow: visible;
}
.heart-word path {
  stroke: var(--rose); stroke-width: 7; fill: none;
  stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: drawheart 1.1s ease 0.4s forwards;
}
@keyframes drawheart { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .heart-word path { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- two doors ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 0 72px; }
.door {
  display: block; text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.door:hover { border-color: var(--purple); transform: translateY(-3px); color: var(--ink); }
.door .eyebrow { margin-bottom: 0.6rem; }
.door h3 { font-size: 1.5rem; }
.door p { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.98rem; }
.door .go { display: inline-block; margin-top: 1.1rem; font-weight: 600; color: var(--purple); }
.door:hover .go { color: var(--purple-deep); }

/* ---------- sections ---------- */
section { padding: clamp(48px, 7vw, 88px) 0; }
section.tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.narrow { max-width: 720px; }

.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 2rem; }
.value {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
}
.value h3 { font-size: 1.08rem; color: var(--purple-deep); }
.value p { font-size: 0.97rem; color: var(--ink-soft); margin-top: 0.4rem; }

.quote {
  border-left: 3px solid var(--rose);
  padding-left: 22px; margin: 2rem 0;
  font-size: 1.15rem; color: var(--ink);
  font-style: italic;
}
.quote cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- pricing tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 2rem; }
.tier {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px;
}
.tier .level { font-family: "Bricolage Grotesque", serif; font-weight: 700; font-size: 1.15rem; }
.tier .note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.5rem; }
.tier.anchor-tier { border-color: var(--purple); background: #fff; }

.steps { counter-reset: step; margin-top: 2rem; display: grid; gap: 16px; }
.step { display: flex; gap: 18px; align-items: baseline; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: "Bricolage Grotesque", serif; font-weight: 700;
  color: var(--rose); font-size: 1.3rem; min-width: 1.4ch;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--purple-deep); color: #fff;
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { color: #cfc4e6; max-width: 44ch; }
.cta-band .btn-primary { background: #fff; color: var(--purple-deep); }
.cta-band .btn-primary:hover { background: var(--surface); }

/* ---------- blog ---------- */
.post-list { display: grid; gap: 18px; margin-top: 2rem; }
.post-card {
  display: block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; background: var(--paper);
  transition: border-color 0.15s ease;
}
.post-card:hover { border-color: var(--purple); color: var(--ink); }
.post-card .date { font-size: 0.85rem; color: var(--ink-soft); }
.post-card h3 { margin-top: 0.3rem; }
.post-card p { color: var(--ink-soft); font-size: 0.97rem; margin-top: 0.4rem; }

article.post { max-width: 680px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) 24px; }
article.post h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
article.post .meta { margin: 1rem 0 2.5rem; color: var(--ink-soft); font-size: 0.92rem; }
article.post p { margin-top: 1.2em; }
article.post ul { margin: 1.2em 0 0 1.2em; }
article.post li { margin-top: 0.6em; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 40px; }
.foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--ink-soft);
}
.foot a { color: var(--ink-soft); }
.foot .brand { font-size: 0.95rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .doors, .value-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 14px; }
  .nav-links li.hide-m { display: none; }
}
@media (max-width: 560px) {
  .tiers { grid-template-columns: 1fr; }
}

:focus-visible { outline: 2.5px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   Accessibility pass (v2)
   ============================================================ */

/* Fix: nav link color was overriding the button's white text */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; background: var(--purple-deep); }

/* Skip link: hidden until keyboard focus */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--purple-deep); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* Stronger link affordance inside body copy (not just color) */
main p a, main li a { text-decoration: underline; }

/* Larger tap targets on mobile nav */
@media (max-width: 860px) {
  .nav-links a { padding: 8px 2px; display: inline-block; }
}

/* Contrast: lift muted text slightly (was borderline on tinted surfaces) */
:root { --ink-soft: #453956; }

/* Buttons: visible focus that isn't only color */
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* CTA band body text: ensure strong contrast on deep purple */
.cta-band p { color: #d9d0ec; }
