:root {
  --navy: #0F1B3D;
  --blue: #2251C5;
  --blue-dark: #1A41A0;
  --text: #2A3347;
  --muted: #5A6478;
  --line: #E3E7EF;
  --alt: #F6F8FB;
  --white: #FFFFFF;
  --wrap: 1080px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, .wordmark, .price, summary {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.15; font-weight: 700; margin: 0 0 1.5rem; letter-spacing: -0.02em; }
h2 { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.12em; color: var(--blue); margin: 0 0 1.25rem; }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.35; margin: 0 0 0.6rem; }
p { margin: 0 0 1rem; }
strong { color: var(--navy); font-weight: 600; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-mark { flex: none; }
.wordmark { font-size: 1.3rem; letter-spacing: -0.01em; }
.wm-suite { font-weight: 700; color: var(--navy); }
.wm-scale { font-weight: 400; color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--blue); color: var(--white);
  border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: 1rem;
  transition: background 0.15s;
}
.btn:hover { background: var(--blue-dark); color: var(--white); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 0.9rem; white-space: nowrap; }

/* Hero */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 20ch; }
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 46rem; margin-bottom: 2.25rem; }
.hero-stat {
  display: inline-block; margin: 0;
  padding: 14px 20px;
  border-left: 4px solid var(--blue);
  background: var(--alt);
  font-size: 1.1rem; color: var(--navy);
}
.hero-stat strong { font-family: "Sora", sans-serif; font-weight: 700; }
@media (min-width: 768px) { .hero { padding: 112px 0 96px; } }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--alt); }
@media (min-width: 768px) { .section { padding: 104px 0; } }

.lead-in { font-size: 1.35rem; line-height: 1.5; color: var(--navy); max-width: 46rem; margin-bottom: 2.5rem; }
.intro { font-size: 1.15rem; color: var(--navy); max-width: 46rem; }
.close { max-width: 46rem; margin-top: 2rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.trio { display: grid; gap: 16px; margin: 2rem 0; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.trio .card p { margin: 0; }

/* Proof list */
.proof { list-style: none; counter-reset: proof; padding: 0; margin: 2rem 0 0; display: grid; gap: 12px; }
.proof li {
  counter-increment: proof;
  position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 20px 20px 64px;
}
.proof li::before {
  content: counter(proof, decimal-leading-zero);
  position: absolute; left: 20px; top: 20px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--blue);
}
@media (min-width: 900px) { .proof { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* Testimonials */
.quotes { display: grid; gap: 16px; margin-top: 2rem; }
@media (min-width: 900px) { .quotes { grid-template-columns: 1fr 1fr; gap: 24px; } }
.quote { margin: 0; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 1.25rem; flex: 1; }
.quote blockquote p { margin: 0; font-size: 1rem; }
.quote figcaption { border-top: 1px solid var(--line); padding-top: 14px; }
.quote .who { display: block; font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.quote .org { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; display: grid; gap: 32px; max-width: 50rem; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white);
  font-family: "Sora", sans-serif; font-weight: 600;
}

/* Tiers */
.tiers { display: grid; gap: 16px; margin: 2rem 0; }
@media (min-width: 900px) {
  .tiers { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  /* Subgrid lines up name, price, summary and "In practice" across all three cards */
  .tiers .tier { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .tiers .tier .practice { margin-top: 0; }
}
.tier { display: flex; flex-direction: column; }
.tier h3 { font-size: 0.95rem; letter-spacing: 0.04em; }
.price { font-size: 2rem; font-weight: 700; margin: 0 0 1rem; line-height: 1.2; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); font-family: "Inter", sans-serif; }
.practice { font-size: 0.95rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin: auto 0 0; }

/* Terms */
.terms { padding-left: 1.2rem; margin: 0; max-width: 46rem; }
.terms li { margin-bottom: 0.5rem; }

/* FAQ */
.faq { max-width: 50rem; margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 0;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.03em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 8px; }

/* Contact */
.contact { background: var(--navy); color: #D5DBE8; }
.contact h2 { color: #8FB0FF; }
.contact .intro { color: var(--white); }
.contact h3 { color: var(--white); font-size: 1.3rem; }
.contact a:not(.btn) { color: var(--white); display: inline-flex; align-items: center; min-height: 44px; }
.contact a:not(.btn):hover { color: #B9CCFF; }
.contact .person p { margin: 0; }
.contact .btn { margin-top: 16px; }
.people { display: grid; gap: 40px; margin-top: 2.5rem; }
@media (min-width: 700px) { .people { grid-template-columns: 1fr 1fr; } }

/* Footer */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.site-footer .wordmark { font-size: 1rem; }

@media (max-width: 380px) {
  .wordmark { font-size: 1.1rem; }
  .btn-small { padding: 0 12px; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
