/* ============================================================
   ClinicalSkillsPrep — www.clinicalskillsprep.com
   One coherent stylesheet for the whole marketing site.
   Palette: deep petrol teal + calm teal + warm amber accent
   on a warm off-white ground. Clinical, but warm.

   Design system notes:
   - Layered, teal-tinted shadows (never flat grey) for depth.
   - Gradient surfaces reserved for brand moments: logo mark,
     primary buttons, hero plan, dark-section glows.
   - Type scale on a 1.25 rhythm; prices/stats use tabular
     numerals so figures align like a real product.
   ============================================================ */

:root {
  --bg: #fbf8f2;
  --surface: #ffffff;
  --surface-soft: #f4efe6;
  --ink: #122e39;
  --ink-soft: #3a5764;
  --muted: #57707d;
  --deep: #0a3542;
  --deep-2: #062631;
  --teal: #0e7c86;
  --teal-dark: #0a5e66;
  --teal-bright: #14a3ae;
  --teal-soft: #e2f1ef;
  --accent: #e8a33d;
  --accent-dark: #b97a18;
  --accent-soft: #fbeecd;
  --line: #e2e0d5;
  --line-teal: #cfe3df;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 55px -20px rgba(10, 53, 66, 0.30), 0 4px 14px -6px rgba(10, 53, 66, 0.10);
  --shadow-sm: 0 8px 24px -10px rgba(10, 53, 66, 0.20), 0 1px 3px rgba(10, 53, 66, 0.06);
  --shadow-lg: 0 34px 70px -24px rgba(6, 38, 49, 0.38), 0 6px 18px -6px rgba(10, 53, 66, 0.12);
  --max: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 1, "cv11" 1;
}

::selection { background: var(--accent-soft); color: var(--deep-2); }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: var(--teal-dark); text-underline-offset: 3px; }

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--teal-bright) 0%, var(--teal) 55%, var(--teal-dark) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px -3px rgba(14, 124, 134, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-top: 3px;
}

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

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 550;
  font-size: 0.98rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover { color: var(--ink); background: var(--surface-soft); }
.main-nav a.btn-primary { color: #fff; margin-left: 8px; }
.main-nav a.btn-primary:hover { color: #fff; background: var(--teal-dark); }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(160deg, var(--teal-bright) 0%, var(--teal) 45%, var(--teal-dark) 130%);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(14, 124, 134, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 90%); box-shadow: 0 14px 26px -10px rgba(14, 124, 134, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2); }

.btn-accent {
  background: linear-gradient(160deg, #f2b95c 0%, var(--accent) 55%, #dd9426 100%);
  color: #23180a;
  box-shadow: 0 10px 22px -10px rgba(232, 163, 61, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-accent:hover { background: linear-gradient(160deg, var(--accent) 0%, #d18d22 100%); color: #1c1206; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border-color: #c6cabe;
}
.btn-ghost:hover { border-color: var(--ink-soft); background: #fff; }

.btn-light {
  background: #fff;
  color: var(--deep);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { background: var(--teal-soft); }

.btn-sm { padding: 9px 18px; font-size: 0.94rem; }

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

.hero {
  padding: 92px 0 80px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(14, 124, 134, 0.15), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(232, 163, 61, 0.13), transparent 55%),
    radial-gradient(rgba(10, 53, 66, 0.055) 1px, transparent 1.4px),
    var(--bg);
  background-size: auto, auto, 26px 26px, auto;
  overflow: hidden;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-teal);
  box-shadow: var(--shadow-sm);
  padding: 7px 15px;
  border-radius: 999px;
  margin: 0 0 24px;
}

.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

h1, h2, h3 {
  line-height: 1.14;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: balance;
}

h1 { font-size: clamp(2.55rem, 5.4vw, 3.85rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.65rem); font-weight: 780; }
h3 { font-size: 1.22rem; font-weight: 700; }

h1 .hl, h2 .hl {
  background-image: linear-gradient(transparent 60%, var(--accent-soft) 60%, var(--accent-soft) 94%, transparent 94%);
  padding: 0 0.06em;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.58;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 33em;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }

.hero-note { font-size: 0.92rem; color: var(--muted); margin: 0; }
.hero-note strong { color: var(--ink-soft); font-weight: 650; }

/* App preview mock (pure CSS/HTML) */

.app-mock {
  background: var(--surface);
  border: 1px solid #e7e4d8;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 20px 24px 20px;
  position: relative;
  transform: rotate(0.6deg);
}

.app-mock::before {
  content: "";
  position: absolute;
  inset: -16px -16px auto auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.28) 0%, rgba(232, 163, 61, 0) 70%);
  z-index: -1;
}

.app-mock::after {
  content: "";
  position: absolute;
  inset: 14px auto auto -14px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 124, 134, 0.20) 0%, rgba(14, 124, 134, 0) 70%);
  z-index: -1;
}

.mock-chrome {
  display: flex;
  gap: 7px;
  padding-bottom: 14px;
  margin-bottom: 2px;
}

.mock-chrome span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #e5e1d3;
}
.mock-chrome span:first-child { background: #eec27f; }
.mock-chrome span:nth-child(2) { background: #a8d5cf; }
.mock-chrome span:nth-child(3) { background: #bcd8dc; }

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  margin-bottom: 8px;
}

.mock-head .course-name { font-weight: 750; font-size: 1.04rem; letter-spacing: -0.01em; }
.mock-head .course-sub { font-size: 0.8rem; color: var(--muted); margin-top: 1px; }

.mock-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border: 1px solid var(--line-teal);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.concept {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed #eceade;
}
.concept:last-of-type { border-bottom: none; }

.concept-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  box-shadow: 0 0 0 3px rgba(10, 53, 66, 0.05);
}
.dot-high { background: #2e9e6b; }
.dot-mid { background: var(--accent); }
.dot-low { background: #d96b4f; }

.concept-name { font-weight: 620; font-size: 0.97rem; flex: 1; letter-spacing: -0.005em; }
.concept-page { font-size: 0.8rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.mastery {
  height: 7px;
  border-radius: 99px;
  background: #eee9dd;
  overflow: hidden;
  width: 92px;
  flex: none;
}
.mastery span { display: block; height: 100%; border-radius: 99px; background: var(--teal); }
.mastery .fill-high { background: linear-gradient(90deg, #35b57c, #2e9e6b); }
.mastery .fill-mid { background: linear-gradient(90deg, #f0b95e, var(--accent)); }
.mastery .fill-low { background: linear-gradient(90deg, #e07f63, #d96b4f); }

.mock-tutor {
  margin-top: 14px;
  background: linear-gradient(165deg, #f7f3ea 0%, var(--surface-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.92rem;
}

.mock-tutor .who { font-weight: 700; color: var(--teal-dark); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.mock-tutor p { margin: 5px 0 9px; color: var(--ink-soft); }

.grounded-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 650;
  color: #1d6b4a;
  background: #e0f2e7;
  border: 1px solid #bfe3cf;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- Stat strip ---------- */

.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 0;
}

.stat { text-align: center; padding: 0 10px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.025em; color: var(--deep); font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: 0.9rem; color: var(--muted); margin-top: 3px; line-height: 1.45; }

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

.section { padding: 92px 0; }
.section-soft { background: linear-gradient(180deg, var(--surface-soft) 0%, #efe9dc 100%); }
.section-white { background: var(--surface); }

.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; line-height: 1.6; }

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 13px;
}

/* How it works */

.flow-diagram { margin: 0 auto 56px; max-width: 900px; display: block; width: 100%; height: auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.step .step-num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(150deg, #155263 0%, var(--deep) 60%, var(--deep-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 5px 12px -4px rgba(10, 53, 66, 0.5);
  color: #fff;
  font-weight: 750;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 17px;
}

.step h3 { margin-bottom: 8px; font-size: 1.09rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; line-height: 1.58; }

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-bright) 55%, var(--accent) 130%);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-teal); }
.feature:hover::before { opacity: 1; }

.feature .icon {
  width: 47px; height: 47px;
  border-radius: 13px;
  background: linear-gradient(150deg, #eef7f5 0%, var(--teal-soft) 100%);
  border: 1px solid var(--line-teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 17px;
}

.feature h3 { font-size: 1.11rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.58; }

/* Dark moat section */

.section-dark {
  background:
    radial-gradient(760px 420px at 88% -10%, rgba(20, 163, 174, 0.22), transparent 60%),
    radial-gradient(620px 380px at -8% 108%, rgba(232, 163, 61, 0.13), transparent 55%),
    linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
  color: #dcebec;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: var(--accent); }
.section-dark .section-head p { color: #b9d2d8; }

.moat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.moat-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.035) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 20px 40px -22px rgba(0, 0, 0, 0.5);
}

.moat-card h3 { font-size: 1.36rem; }
.moat-card p { color: #c3d9dd; margin: 0 0 14px; line-height: 1.62; }
.moat-card p:last-child { margin-bottom: 0; }

.pattern-panel {
  background: rgba(6, 38, 49, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 19px 19px 9px;
  margin-top: 20px;
}

.pattern-panel .pp-title {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: #9fc3ca; margin-bottom: 13px;
}

.pattern-row { margin-bottom: 13px; }
.pattern-row .pr-label {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; color: #e6f0f1; margin-bottom: 6px;
}
.pattern-bar { height: 8px; background: rgba(255, 255, 255, 0.14); border-radius: 99px; overflow: hidden; }
.pattern-bar span { display: block; height: 100%; border-radius: 99px; }
.pb-accent { background: linear-gradient(90deg, #f0b95e, var(--accent)); }
.pb-teal { background: #45b3bc; }
.pb-soft { background: #8fd0d4; }
.pb-faint { background: #5d8894; }

/* Contrast table */

.contrast-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.99rem;
}

.contrast-table th, .contrast-table td {
  text-align: left;
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}

.contrast-table thead th {
  background: var(--surface-soft);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contrast-table thead th.avidia-col { background: linear-gradient(150deg, var(--teal) 0%, var(--teal-dark) 100%); color: #fff; }
.contrast-table tbody th { font-weight: 650; color: var(--ink); width: 22%; }
.contrast-table td { color: var(--ink-soft); width: 39%; }
.contrast-table td.avidia-cell { color: var(--ink); font-weight: 560; background: #f2f8f7; }
.contrast-table tr:last-child th, .contrast-table tr:last-child td { border-bottom: none; }

.contrast-quote {
  text-align: center;
  font-size: clamp(1.35rem, 2.7vw, 1.78rem);
  font-weight: 750;
  letter-spacing: -0.018em;
  line-height: 1.3;
  max-width: 760px;
  margin: 0 auto 42px;
  color: var(--ink);
  text-wrap: balance;
}
.contrast-quote em { font-style: normal; color: var(--teal-dark); }

/* Founding cohort */

.cohort {
  background:
    radial-gradient(560px 300px at 92% -20%, rgba(20, 163, 174, 0.25), transparent 60%),
    radial-gradient(480px 280px at -6% 115%, rgba(232, 163, 61, 0.16), transparent 55%),
    linear-gradient(150deg, #123f4d 0%, var(--deep-2) 90%);
  border-radius: 26px;
  padding: 56px 50px;
  color: #e8f1f2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 46px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cohort h2 { color: #fff; }
.cohort p { color: #c3d9dd; }
.cohort .price-big {
  font-size: 2.7rem; font-weight: 800; color: #fff; letter-spacing: -0.025em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cohort .price-big small { font-size: 1rem; font-weight: 600; color: #9fc3ca; }
.cohort ul { margin: 20px 0 0; padding: 0; list-style: none; }
.cohort li { padding: 7px 0 7px 28px; position: relative; color: #dcebec; }
.cohort li::before {
  content: "";
  position: absolute; left: 2px; top: 14px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.18);
}

.cohort-form-card {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.45);
}
.cohort-form-card h3 { margin-bottom: 6px; }
.cohort-form-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 18px; }

.capture-form { display: flex; gap: 10px; }
.capture-form input[type="email"] {
  flex: 1;
  font: inherit;
  padding: 12px 17px;
  border: 1px solid #c6cabe;
  border-radius: 999px;
  min-width: 0;
  background: #fffdf9;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.capture-form input[type="email"]:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px var(--teal-soft); }

.form-success {
  display: none;
  background: #e0f2e7;
  border: 1px solid #bfe3cf;
  color: #1d6b4a;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.96rem;
}
.form-success.show { display: block; }
.form-fineprint { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pricing-grid.teaser {
  grid-template-columns: repeat(3, 1fr);
  max-width: 920px;
  margin: 0 auto;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 27px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-teal); }

.plan.hero-plan {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #ffffff 0%, #f4faf9 100%);
}
.plan.hero-plan:hover { box-shadow: var(--shadow-lg); }

.plan .plan-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(160deg, #f2b95c 0%, var(--accent) 60%, #dd9426 100%);
  color: #23180a;
  font-size: 0.76rem; font-weight: 750;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 15px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 14px -5px rgba(232, 163, 61, 0.75);
}

.plan .plan-name { font-weight: 750; font-size: 1.03rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.plan .plan-desc { font-size: 0.9rem; color: var(--muted); margin: 0 0 19px; }
.plan .plan-price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .plan-price small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.plan .plan-per { font-size: 0.88rem; color: var(--muted); margin: 7px 0 21px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.plan li { padding: 5px 0 5px 26px; position: relative; font-size: 0.95rem; color: var(--ink-soft); }
.plan li::before {
  content: "";
  position: absolute; left: 0; top: 12px;
  width: 14px; height: 8px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; }

.pricing-note { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 28px; }

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.97rem;
}
.compare-table th, .compare-table td {
  padding: 15px 19px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  line-height: 1.55;
}
.compare-table thead th { background: var(--surface-soft); font-size: 0.9rem; }
.compare-table tbody th { font-weight: 600; color: var(--ink); }
.compare-table tbody tr:nth-child(even) { background: #fdfcf9; }
.compare-table td { color: var(--ink-soft); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--teal-dark); font-weight: 700; }

/* FAQ */

.faq-list { max-width: 820px; margin: 0 auto; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 4px 24px;
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}
.faq-list details[open] { box-shadow: var(--shadow-sm); border-color: var(--line-teal); }

.faq-list summary {
  cursor: pointer;
  font-weight: 680;
  font-size: 1.05rem;
  padding: 17px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--teal);
  flex: none;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-soft);
  border-radius: 50%;
  line-height: 1;
}
.faq-list details[open ] summary::after { content: "–"; }
.faq-list details p { color: var(--ink-soft); margin: 0 0 19px; line-height: 1.62; }

/* CTA band */

.cta-band { text-align: center; max-width: 680px; margin: 0 auto; }
.cta-band p { color: var(--ink-soft); font-size: 1.08rem; }

/* Legal / prose pages */

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.48rem; margin-top: 46px; letter-spacing: -0.018em; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.7; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.page-head { padding: 68px 0 10px; }
.page-head .lede { max-width: 44em; }
.updated-line { color: var(--muted); font-size: 0.92rem; margin-top: -6px; }

/* Blog */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex; flex-direction: column;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.post-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-bright) 55%, var(--accent) 130%);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-teal); }
.post-card:hover::before { opacity: 1; }
.post-card .tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--teal-dark);
  margin-bottom: 13px;
}
.post-card h3 { color: var(--ink); font-size: 1.19rem; }
.post-card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0 0 19px; flex: 1; line-height: 1.58; }
.post-card .meta { font-size: 0.85rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.post-card .read { color: var(--teal-dark); font-weight: 650; }

/* Footer */

.site-footer {
  background:
    radial-gradient(640px 260px at 90% -30%, rgba(20, 163, 174, 0.16), transparent 60%),
    var(--deep-2);
  color: #b9d2d8;
  padding: 64px 0 36px;
  margin-top: 0;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-dark) 0%, var(--teal-bright) 45%, var(--accent) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 38px;
  margin-bottom: 46px;
}

.site-footer .logo { color: #fff; }
.site-footer .logo small { color: #7fa3ad; }
.footer-blurb { font-size: 0.95rem; color: #9fc0c8; max-width: 30em; margin: 15px 0 0; line-height: 1.6; }

.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 6px 0 15px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b9d2d8; text-decoration: none; font-size: 0.96rem; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #84a7b1;
}

/* ---------- Responsive ---------- */

@media (min-width: 1021px) {
  .pricing-grid .plan.hero-plan { transform: translateY(-8px); }
  .pricing-grid .plan.hero-plan:hover { transform: translateY(-11px); }
}

@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
  .stat + .stat { border-left: none; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero { padding: 58px 0 54px; background-size: auto, auto, 22px 22px, auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .app-mock { transform: none; }
  .moat-grid { grid-template-columns: 1fr; }
  .cohort { grid-template-columns: 1fr; padding: 40px 28px; gap: 34px; }
  .section { padding: 64px 0; }
  .page-head { padding: 52px 0 8px; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 34px -20px rgba(10, 53, 66, 0.35);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 10px; }
  .main-nav .btn { margin-top: 8px; margin-left: 0; }
  .site-header .wrap { position: relative; }

  .contrast-table th, .contrast-table td { padding: 13px 13px; font-size: 0.9rem; }
  .capture-form { flex-direction: column; }
  .capture-form .btn { width: 100%; }
}

@media (max-width: 560px) {
  .steps, .features-grid, .pricing-grid, .blog-grid, .footer-grid { grid-template-columns: 1fr; }
  .pricing-grid.teaser { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .stat .num { font-size: 1.45rem; }
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .plan .plan-badge { top: -12px; }
  .hero-plan { margin-top: 10px; }
  .cohort .price-big { font-size: 2.3rem; }
  .mock-chrome { padding-bottom: 10px; }
  .concept-page { display: none; }
  .mastery { width: 64px; }
  .faq-list details { padding: 4px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
