/* ==========================================================================
   Caliber Tutors — styles.css
   Design system: Part A of the website spec. Mobile-first.
   Breakpoints: 480 · 768 · 1024 · 1280
   ========================================================================== */

/* ---------- A2. Tokens ---------- */
:root {
  --navy-900: #0F1F3D;
  --navy-700: #1E3461;
  --emerald-600: #0F766E;
  --emerald-700: #0B5E58;
  --emerald-50: #E8F5F3;
  --gold-500: #D4A23A;
  --gold-50: #FBF3E2;
  --ivory: #FAF7F2;
  --white: #FFFFFF;
  --ink: #1E2430;
  --muted: #5B6474;
  --border: #E6E1D8;
  --error: #B42318;
  --success: #027A48;

  /* Input borders need 3:1 against white (WCAG 1.4.11), so they use a mix of muted */
  --field-border: #848A96;

  --shadow-sm: 0 1px 2px rgba(15, 31, 61, .06);
  --shadow-md: 0 8px 24px rgba(15, 31, 61, .08);
  --shadow-lg: 0 20px 48px rgba(15, 31, 61, .12);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-btn: 999px;
  --r-card: 18px;
  --r-input: 12px;
  --r-img: 20px;

  --container: 1180px;
  --pad: 16px;
  --section: 64px;
  --header-h: 72px;
}
@media (min-width: 768px) { :root { --pad: 24px; } }
@media (min-width: 1024px) { :root { --section: 96px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 16.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

a { color: var(--emerald-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--emerald-700); }

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

h1, h2, h3, h4 { color: var(--navy-900); margin: 0 0 .5em; }
h1 { font: 600 38px/1.1 var(--serif); letter-spacing: -.02em; }
h2 { font: 600 30px/1.15 var(--serif); letter-spacing: -.01em; }
h3 { font: 700 20px/1.3 var(--sans); }
h4 { font: 600 17px/1.4 var(--sans); }
@media (min-width: 1024px) {
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  h3 { font-size: 22px; }
  h4 { font-size: 18px; }
}
h1 em, h2 em, .serif-em em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--emerald-600);
}
p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; }
small, .small { font: 500 14px/1.5 var(--sans); }
.muted { color: var(--muted); }
.center { text-align: center; }
.center p, p.center { margin-inline: auto; }

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

/* Owner placeholders: visibly marked so they are easy to find.
   Delete this rule once every placeholder has been replaced. */
.ph {
  background: var(--gold-50);
  color: var(--navy-900);
  outline: 1px dashed var(--gold-500);
  outline-offset: 1px;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--narrow { max-width: calc(820px + 2 * var(--pad)); }

.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--tint { background: var(--emerald-50); }
.section--gold { background: var(--gold-50); }
.section--dark { background: var(--navy-900); color: rgba(255, 255, 255, .86); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark h1 em, .section--dark h2 em, .section--dark .serif-em em { color: var(--emerald-50); }
.section--dark a:not(.btn) { color: #fff; }
.section--tight { padding-block: calc(var(--section) * .66); }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head p { color: var(--muted); }
.section--dark .section-head p { color: rgba(255, 255, 255, .78); }
@media (min-width: 1024px) { .section-head { margin-bottom: 56px; } }

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font: 600 12px/1.4 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emerald-600);
}
@media (min-width: 1024px) { .eyebrow { font-size: 13px; } }
.section--dark .eyebrow { color: var(--emerald-50); }

.grid { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
  .split--top { align-items: start; }
}

/* ---------- A5. Motifs ---------- */
.grid-paper {
  background-color: var(--ivory);
  background-image:
    linear-gradient(rgba(230, 225, 216, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 225, 216, .35) 1px, transparent 1px);
  background-size: 24px 24px;
}

.squiggle { position: relative; white-space: nowrap; display: inline-block; }
.squiggle svg {
  position: absolute; left: -2%; bottom: -.14em; width: 104%; height: .32em;
  color: var(--emerald-600); overflow: visible; pointer-events: none;
}

.math {
  position: absolute; display: none; pointer-events: none; user-select: none;
  font: 500 15px/1 var(--mono); color: var(--muted); opacity: .75; white-space: nowrap;
}
@media (min-width: 1024px) { .math { display: block; } }

/* ---------- A6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 16px 28px;
  border: 2px solid transparent; border-radius: var(--r-btn);
  font: 600 16px/1.2 var(--sans); text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--emerald-600); color: #fff; }
.btn--primary:hover { background: var(--emerald-700); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--primary:active { background: var(--emerald-700); transform: none; }
.btn--secondary { background: transparent; border-color: var(--navy-900); color: var(--navy-900); }
.btn--secondary:hover { background: var(--navy-900); color: #fff; }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--emerald-50); color: var(--navy-900); }
.btn--outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--navy-900); }
.btn--block { width: 100%; }
.btn--nav { padding: 12px 22px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--center { justify-content: center; }
@media (max-width: 479px) { .btn-row > .btn { width: 100%; } }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--emerald-600); text-decoration: none;
}
.link:hover { text-decoration: underline; text-underline-offset: 2px; }
.link .arrow { transition: transform .2s; }
.link:hover .arrow { transform: translateX(3px); }

/* ---------- Announcement bar ---------- */
.announce {
  position: relative;
  background: var(--gold-50); color: var(--navy-900);
  font: 400 14px/1.5 var(--sans); text-align: center;
  padding: 10px 52px;
  border-bottom: 1px solid var(--border);
}
.announce a { color: var(--navy-900); font-weight: 600; text-decoration: underline; white-space: nowrap; }
.announce__close {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; color: var(--navy-900); cursor: pointer;
}
.announce__close:hover { background: rgba(15, 31, 61, .06); }
.announce-off .announce { display: none; }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.logo {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font: 600 22px/1 var(--serif); color: var(--navy-900); text-decoration: none; letter-spacing: -.01em;
}
.logo:hover { color: var(--navy-900); }
.logo__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--emerald-600); color: #fff;
  font: italic 600 22px/1 var(--serif);
}
.logo--light { color: #fff; }
.logo--light:hover { color: #fff; }

.nav__links { display: none; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 10px 9px; border-radius: 8px;
  font: 500 15px/1.3 var(--sans); color: var(--navy-900); text-decoration: none; white-space: nowrap;
}
.nav__links a:hover { color: var(--emerald-600); }
.nav__links a[aria-current="page"] { color: var(--emerald-600); box-shadow: inset 0 -2px 0 var(--emerald-600); border-radius: 0; }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__cta { display: none; }
.nav__toggle {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 12px; background: transparent; color: var(--navy-900); cursor: pointer;
}
.nav__toggle:hover { background: rgba(15, 31, 61, .06); }
@media (min-width: 640px) { .nav__cta { display: inline-flex; } }
@media (min-width: 1160px) {
  .nav__links { display: flex; gap: 2px; }
  .nav__toggle { display: none; }
}

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  background: var(--navy-900); color: #fff;
  padding: 16px var(--pad) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: 24px; }
.mobile-menu__close {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
}
.mobile-menu ul { list-style: none; padding: 0; margin: 0 0 32px; }
.mobile-menu li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.mobile-menu ul a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; min-height: 56px;
  font: 600 26px/1.2 var(--serif); color: #fff; text-decoration: none;
}
.mobile-menu ul a[aria-current="page"] { color: var(--emerald-50); }
.mobile-menu__cta { margin-top: auto; display: grid; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 48px 64px; }
@media (min-width: 1024px) { .hero { padding-block: 72px 104px; } }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.12fr .88fr; gap: 72px; } }
.hero__copy { position: relative; }
.hero__sub { font-size: 1.06em; margin-top: 20px; }
.hero__actions { margin: 32px 0 20px; }
.reassure {
  display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0;
  font: 500 14px/1.5 var(--sans); color: var(--muted);
}
.reassure li { display: inline-flex; align-items: center; gap: 6px; }
.reassure svg { color: var(--emerald-600); flex: none; }

.hero__media { position: relative; max-width: 480px; width: 100%; margin-inline: auto; }
@media (min-width: 1024px) { .hero__media { max-width: none; } }
.hero__card {
  position: absolute; left: 12px; bottom: 20px; right: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-md); padding: 16px 20px; max-width: 300px;
}
@media (min-width: 1024px) { .hero__card { left: -36px; right: auto; bottom: 32px; } }
.hero__card-title { font: 600 17px/1.35 var(--sans); color: var(--navy-900); margin: 0 0 4px; }
.hero__card-title span { display: block; font: 500 14px/1.4 var(--sans); color: var(--emerald-600); }
.hero__card-cap { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }

/* Decorative math annotations (desktop) */
.math--1 { top: -34px; left: 8%; transform: rotate(-4deg); }
.math--2 { top: -30px; right: 6%; transform: rotate(4deg); }
.math--3 { bottom: -40px; right: 14%; transform: rotate(-2deg); }
.math--4 { bottom: -64px; left: 0; transform: rotate(2deg); }

/* Inner-page hero */
.page-hero { position: relative; overflow: hidden; padding-block: 48px 56px; }
@media (min-width: 1024px) { .page-hero { padding-block: 80px 88px; } }
.page-hero__inner { max-width: 820px; }
.page-hero--center .page-hero__inner { margin-inline: auto; text-align: center; }
.page-hero--center .page-hero__inner p { margin-inline: auto; }
.page-hero--center .btn-row { justify-content: center; }
.page-hero .lead { font-size: 1.06em; margin-top: 16px; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero__note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---------- Photos ---------- */
.photo {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--r-img); aspect-ratio: 4 / 5;
  background-color: var(--emerald-50);
  background-image:
    linear-gradient(rgba(15, 118, 110, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, .08) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--border);
}
.photo--landscape { aspect-ratio: 5 / 4; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo__ph {
  position: absolute; inset: 16px; display: grid; place-content: center; gap: 6px; text-align: center;
  border: 2px dashed rgba(15, 118, 110, .35); border-radius: 14px;
  font: 600 14px/1.5 var(--sans); color: var(--emerald-700); padding: 16px;
}
.photo__ph small { font: 500 13px/1.4 var(--mono); color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust { background: #fff; border-block: 1px solid var(--border); }
.trust__list { display: grid; grid-template-columns: 1fr 1fr; list-style: none; margin: 0; padding: 0; }
.trust__item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 20px 12px; font: 400 14px/1.45 var(--sans); color: var(--muted);
}
.trust__item svg { color: var(--emerald-600); flex: none; margin-top: 1px; }
.trust__item strong { display: block; font: 600 15px/1.35 var(--sans); color: var(--navy-900); }
.trust__item:nth-child(odd) { border-right: 1px solid var(--border); }
.trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) {
  .trust__list { grid-template-columns: repeat(4, 1fr); }
  .trust__item { padding: 28px 24px; border: 0 !important; }
  .trust__item + .trust__item { border-left: 1px solid var(--border) !important; }
}

/* ---------- Cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 24px; transition: transform .25s ease, box-shadow .25s ease;
}
@media (min-width: 768px) { .card { padding: 32px; } }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card p { color: var(--ink); }
.card h3 { margin-bottom: 10px; }
.card--flat { background: transparent; border: 0; padding: 0; }

.icon-bubble {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--emerald-50); color: var(--emerald-600); margin-bottom: 20px;
}
.section--tint .icon-bubble { background: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 20px; }
.chip {
  display: inline-block; background: var(--ivory); color: var(--navy-900);
  border: 1px solid var(--border); border-radius: 999px;
  font: 500 13px/1.2 var(--sans); padding: 7px 12px;
}
.chips--lg .chip { font-size: 15px; padding: 10px 16px; background: #fff; }

/* Track cards */
.track-card { display: flex; flex-direction: column; }
.track-card .link { margin-top: auto; }

/* Pain cards */
.pain-card h3 { font-size: 19px; line-height: 1.35; }
@media (min-width: 1024px) { .pain-card h3 { font-size: 20px; } }
.pain-card__q { display: block; font: italic 600 40px/0.6 var(--serif); color: var(--gold-500); margin-bottom: 14px; height: 22px; }
.bridge {
  max-width: 760px; margin: 48px auto 0; text-align: center;
  font: italic 600 24px/1.35 var(--serif); color: var(--navy-900);
}
.bridge em { color: var(--emerald-600); }
@media (min-width: 1024px) { .bridge { font-size: 28px; margin-top: 64px; } }

/* Feature blocks */
.feature { display: flex; gap: 20px; align-items: flex-start; }
.feature .icon-bubble { margin: 0; }
.feature h3 { margin-bottom: 8px; }

/* Icon points (near-peer, how plans work) */
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.point {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px 24px;
}
.point .icon-bubble { margin: 0; background: var(--emerald-50); }
.point p { margin: 0; }
.point strong { color: var(--navy-900); }

/* Ticks list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex: none; color: var(--emerald-600); margin-top: 4px; }
.section--dark .ticks svg { color: var(--emerald-50); }

.who-grid { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .who-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.who-grid li {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px;
}
.who-grid svg { flex: none; color: var(--emerald-600); margin-top: 3px; }

/* ---------- Steps (How it works) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; }
.step { position: relative; padding-left: 76px; }
.step__num {
  position: absolute; left: 0; top: 0; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--emerald-600); color: var(--emerald-600);
  font: 600 24px/1 var(--serif);
}
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 27px; top: 64px; bottom: -28px;
  border-left: 2px dashed rgba(15, 118, 110, .4);
}
.step h3 { margin-bottom: 8px; padding-top: 12px; }
.step p { margin: 0; }
@media (min-width: 1024px) {
  .steps--h { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps--h .step { padding-left: 0; padding-top: 80px; }
  .steps--h .step h3 { padding-top: 0; }
  .steps--h .step:not(:last-child)::before {
    left: 68px; right: -20px; top: 27px; bottom: auto;
    border-left: 0; border-top: 2px dashed rgba(15, 118, 110, .4);
  }
}
.steps-cta { margin-top: 48px; text-align: center; }

/* Detailed steps (How it works page) */
.steps--detail .step { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px 28px 28px 100px; }
.steps--detail .step__num { left: 24px; top: 24px; }
.steps--detail .step h3 { padding-top: 4px; }
.steps--detail .step:not(:last-child)::before { left: 51px; top: 82px; bottom: -34px; }
@media (max-width: 479px) {
  .steps--detail .step { padding: 88px 20px 24px; }
  .steps--detail .step::before { display: none; }
  .steps--detail .step__num { left: 20px; top: 20px; }
}

/* Numbered approach list */
.num-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: n; }
.num-list li {
  counter-increment: n; position: relative;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 24px 24px 24px 84px; min-height: 88px;
}
.num-list li::before {
  content: counter(n); position: absolute; left: 24px; top: 22px;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--emerald-600); color: var(--emerald-600); font: 600 20px/1 var(--serif);
}
.num-list strong { color: var(--navy-900); }
@media (min-width: 1024px) {
  .num-list--cols { grid-template-columns: repeat(var(--cols, 3), 1fr); }
  .num-list--cols li { padding: 84px 24px 28px; }
  .num-list--cols li::before { top: 24px; }
}

/* ---------- Trial table ---------- */
.trial-table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-sm); }
.trial-table { width: 100%; border-collapse: collapse; }
.trial-table caption { text-align: left; }
.trial-table th, .trial-table td { text-align: left; vertical-align: top; padding: 18px 20px; }
.trial-table thead th {
  background: var(--navy-900); color: #fff; font: 600 13px/1.4 var(--sans);
  letter-spacing: .12em; text-transform: uppercase;
}
.trial-table tbody tr + tr td, .trial-table tbody tr + tr th { border-top: 1px solid var(--border); }
.trial-table tbody th { font: 500 15px/1.6 var(--mono); color: var(--emerald-600); white-space: nowrap; width: 1%; }
@media (min-width: 768px) { .trial-table th, .trial-table td { padding: 22px 32px; } }
.after-table { text-align: center; margin: 28px auto 0; color: var(--ink); }

/* ---------- Founder ---------- */
.signature { font: italic 600 22px/1.3 var(--serif); color: var(--navy-900); margin: 24px 0 16px; }
.founder__photo { max-width: 460px; width: 100%; margin-inline: auto; }

/* ---------- Testimonials ---------- */
.t-row { display: grid; gap: 24px; }
@media (min-width: 768px) { .t-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .t-row--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) {
  .t-row--scroll {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    margin-inline: calc(var(--pad) * -1); padding: 4px var(--pad) 12px;
    scrollbar-width: thin;
  }
  .t-row--scroll > * { flex: 0 0 86%; scroll-snap-align: start; }
}
.t-card {
  margin: 0; display: flex; flex-direction: column; gap: 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px;
}
.t-card blockquote { margin: 0; font: italic 400 18px/1.6 var(--sans); color: var(--ink); }
.t-card blockquote::before {
  content: "\201C"; display: block; font: italic 600 48px/0.6 var(--serif); color: var(--gold-500); height: 24px; margin-bottom: 8px;
}
.t-card figcaption { margin-top: auto; font: 500 14px/1.5 var(--sans); color: var(--muted); }
.t-card figcaption .who { color: var(--navy-900); font-weight: 600; }
.pill {
  display: inline-block; margin-top: 10px;
  background: var(--emerald-50); color: var(--emerald-700);
  font: 600 13px/1.2 var(--sans); padding: 6px 12px; border-radius: 999px;
}
.t-extra { text-align: center; margin: 28px auto 0; font-size: 15px; color: var(--muted); }
.t-extra q { font-style: italic; color: var(--ink); }

/* ---------- Guarantee ---------- */
.guarantee {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--gold-50); border-radius: var(--r-card); border-left: 4px solid var(--gold-500);
  padding: 28px 24px; max-width: 880px; margin-inline: auto;
}
@media (min-width: 768px) { .guarantee { padding: 36px 40px; gap: 28px; } }
.guarantee__icon {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; color: var(--navy-900); box-shadow: var(--shadow-sm);
}
.guarantee h3, .guarantee h2 { font: 700 20px/1.3 var(--sans); margin-bottom: 8px; }
@media (min-width: 1024px) { .guarantee h3, .guarantee h2 { font-size: 22px; } }
.guarantee p { margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; position: relative; overflow: hidden; }
.final-cta h2 { max-width: 22ch; margin-inline: auto; }
.final-cta p { margin-inline: auto; }
.final-cta .btn-row { justify-content: center; margin-top: 32px; }
.final-cta__small { margin-top: 20px !important; font-size: 14px; color: rgba(255, 255, 255, .78); }

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--navy-900);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1'%3E%3Crect x='32' y='32' width='32' height='32'/%3E%3Crect x='32' y='32' width='32' height='32' transform='rotate(45 48 48)'/%3E%3Cpath d='M48 0v25.4M48 70.6V96M0 48h25.4M70.6 48H96'/%3E%3C/g%3E%3C/svg%3E");
  color: rgba(255, 255, 255, .78);
  padding-block: 64px 104px;
  font-size: 15px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
@media (min-width: 768px) { .site-footer { padding-bottom: 32px; } }
@media (min-width: 1024px) { .site-footer { padding-block: 88px 40px; } }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 32px; } }
.footer__mission { margin: 20px 0 24px; max-width: 36ch; color: rgba(255, 255, 255, .78); }
.footer__h {
  margin: 0 0 16px; font: 600 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer__list a { display: inline-block; padding: 6px 0; color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer__list a:hover { color: #fff; text-decoration: underline; }
.footer__list li { line-height: 1.5; }
.footer__contact li { padding: 6px 0; }
.social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); color: #fff;
}
.social a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.footer__legal {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .7);
}
.footer__legal p { max-width: none; }

/* ---------- Pricing ---------- */
.tabs-wrap { display: none; justify-content: center; margin-bottom: 48px; }
.js .tabs-wrap { display: flex; }
.tabs {
  display: flex; gap: 4px; padding: 6px; max-width: 100%; overflow-x: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.tab {
  flex: none; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 999px;
  background: transparent; color: var(--navy-900); font: 600 15px/1.2 var(--sans); cursor: pointer;
}
.tab:hover { background: var(--emerald-50); }
.tab[aria-selected="true"] { background: var(--navy-900); color: #fff; }
@media (max-width: 479px) { .tab { padding: 12px 14px; font-size: 14px; } }

.plan-panel + .plan-panel { margin-top: 72px; }
.js .plan-panel + .plan-panel { margin-top: 0; }
.plan-panel__head { text-align: center; margin-bottom: 40px; }
.plan-panel__head h2, .plan-panel__head h3 { margin-bottom: 4px; }
.plan-panel__head p { margin-inline: auto; color: var(--muted); }
.plan-note { text-align: center; max-width: 760px; margin: 32px auto 0; font-size: 15px; color: var(--muted); font-style: italic; }

.price-grid { display: grid; gap: 32px; max-width: 480px; margin-inline: auto; align-items: stretch; }
@media (min-width: 960px) { .price-grid { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 24px; } }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 36px 28px 28px;
}
.price-card--rec { border: 2px solid var(--emerald-600); box-shadow: var(--shadow-lg); }
@media (min-width: 1024px) { .price-card--rec { transform: scale(1.03); z-index: 1; } }
.badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--gold-500); color: var(--navy-900);
  font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.price-card__name { margin: 0; }
.price-card__hours { margin: 2px 0 10px; font: 600 15px/1.4 var(--sans); color: var(--emerald-600); }
.price-card__best { font-size: 15px; line-height: 1.55; color: var(--muted); min-height: 3.1em; margin-bottom: 20px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.price__amt { font: 600 44px/1 var(--serif); color: var(--navy-900); letter-spacing: -.02em; }
.price__unit { font: 500 15px/1 var(--sans); color: var(--muted); }
.price-card__rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; min-height: 30px; font-size: 14px; color: var(--muted); }
.save-pill {
  display: inline-block; background: var(--emerald-50); color: var(--emerald-700);
  font: 600 13px/1.2 var(--sans); padding: 6px 10px; border-radius: 999px;
}
.price-card hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.checklist svg { flex: none; color: var(--emerald-600); margin-top: 2px; }
.price-card .btn { margin-top: auto; }
.fineprint { margin: 12px auto 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pricing-note { text-align: center; margin: 0 auto 40px; font-size: 15px; color: var(--muted); }

.formats { margin: 32px auto 0; text-align: center; font-size: 15px; color: var(--muted); }
.formats strong { color: var(--navy-900); }

.tier-card h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tier-card .badge { position: static; transform: none; font-size: 11px; padding: 6px 10px; }
.tier-card__hours { font: 600 15px/1.4 var(--sans); color: var(--emerald-600); margin-bottom: 8px; }

.savings-list { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .savings-list { grid-template-columns: repeat(3, 1fr); } }
.savings-list li { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; }
.savings-list strong { display: block; color: var(--navy-900); margin-bottom: 6px; font-size: 17px; }
.savings-fine { text-align: center; margin: 24px auto 0; font-size: 14px; color: var(--muted); font-style: italic; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 48px; padding: 20px 0;
  font: 600 17px/1.4 var(--sans); color: var(--navy-900);
}
@media (min-width: 1024px) { .faq summary { font-size: 18px; } }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--emerald-600); }
.faq__icon {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--emerald-50); color: var(--emerald-600); transition: transform .25s ease;
}
.faq details[open] .faq__icon { transform: rotate(45deg); }
.faq__answer { padding: 0 48px 24px 0; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 26px; max-width: 860px; margin: 0 auto 16px; }
@media (min-width: 1024px) { .faq-group h2 { font-size: 30px; } }
.faq-more { text-align: center; margin-top: 32px; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 24px; box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .form-card { padding: 36px; } }
.progress-wrap { display: none; margin-bottom: 28px; }
.is-stepped .progress-wrap { display: block; }
.progress-label { font: 600 14px/1.4 var(--sans); color: var(--navy-900); margin: 0 0 10px; display: flex; justify-content: space-between; gap: 12px; }
.progress-label span { color: var(--muted); font-weight: 500; }
.progress { height: 6px; background: var(--emerald-50); border-radius: 999px; overflow: hidden; }
.progress__bar { height: 100%; width: 33.333%; background: var(--emerald-600); border-radius: 999px; transition: width .3s ease; }

.form-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step + .form-step { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.is-stepped .form-step + .form-step { margin-top: 0; padding-top: 0; border-top: 0; }
.form-step legend { padding: 0; margin-bottom: 20px; font: 700 20px/1.3 var(--sans); color: var(--navy-900); }
.is-stepped .form-step legend { font-size: 0; height: 0; margin: 0; overflow: hidden; } /* label shown in progress bar */

.field { display: grid; gap: 6px; margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
.field__label, .field > legend { font: 600 15px/1.4 var(--sans); color: var(--navy-900); padding: 0; margin-bottom: 4px; }
.field__opt { font-weight: 500; color: var(--muted); }
.field__hint { font-size: 14px; color: var(--muted); margin: 0; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--field-border); border-radius: var(--r-input);
  background: #fff; color: var(--ink); font: 400 16px/1.4 var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 120px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230F1F3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input:hover { border-color: var(--navy-700); }
.input:focus { border-color: var(--emerald-600); outline: none; box-shadow: 0 0 0 3px var(--gold-500); }
.input[aria-invalid="true"] { border-color: var(--error); }
.error-msg { display: flex; gap: 6px; align-items: flex-start; margin: 2px 0 0; font: 500 14px/1.45 var(--sans); color: var(--error); }

.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip { position: relative; display: inline-flex; }
.opt-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--field-border); border-radius: 999px; background: #fff;
  font: 500 15px/1.2 var(--sans); color: var(--navy-900); cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.opt-chip input:hover + span { border-color: var(--emerald-600); }
.opt-chip input:checked + span { background: var(--emerald-600); border-color: var(--emerald-600); color: #fff; }
.opt-chip input:focus-visible + span { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.field--invalid .opt-chip span { border-color: var(--error); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--emerald-600); cursor: pointer; }

.form-nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.form-nav .btn--primary { margin-left: auto; }
.js-step-btn { display: none !important; }
.is-stepped .js-step-btn { display: inline-flex !important; }
.is-stepped .form-step:not(:last-of-type) .submit-row { display: none; }
.submit-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.form-status--error { background: #FEF3F2; color: var(--error); border: 1px solid #FECDCA; }
.form-status--success { background: #ECFDF3; color: var(--success); border: 1px solid #ABEFC6; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Calendly embed */
.calendly-box {
  position: relative; min-height: 420px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden;
}
.calendly-box.calendly-inline-widget { min-height: 700px; }
.calendly-ph { display: grid; place-content: center; gap: 12px; text-align: center; min-height: 420px; padding: 32px; color: var(--muted); }

/* Note box */
.note-box {
  background: #fff; border: 1px dashed var(--field-border); border-radius: var(--r-card);
  padding: 20px 24px; font-size: 15px; color: var(--muted); max-width: 860px; margin: 40px auto 0;
}
.note-box a { font-weight: 600; }

/* Prose (about, policies) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 56px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; margin-bottom: 1em; }
.prose li::marker { color: var(--emerald-600); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.page-hero--center .toc { justify-content: center; }
.toc a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; text-decoration: none; font: 600 14px/1.2 var(--sans); }
.toc a:hover { border-color: var(--emerald-600); }

.quote-block {
  margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 32px; position: relative;
}
.quote-block blockquote { margin: 0 0 16px; font: italic 400 18px/1.65 var(--sans); }
.quote-block blockquote::before { content: "\201C"; display: block; font: italic 600 56px/0.6 var(--serif); color: var(--gold-500); height: 28px; margin-bottom: 8px; }
.quote-block figcaption { font-size: 14px; color: var(--muted); }

.cred-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .cred-list { grid-template-columns: 1fr 1fr; } }
.cred-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; }
.cred-list svg { flex: none; color: var(--emerald-600); margin-top: 3px; }

/* Pain → solution rows (SAT) */
.ps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ps-row {
  display: grid; gap: 8px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px 24px;
}
.ps-row__pain { font-style: italic; color: var(--muted); }
.ps-row__arrow { display: none; color: var(--emerald-600); }
.ps-row__fix { color: var(--ink); }
@media (min-width: 768px) {
  .ps-row { grid-template-columns: 1fr 32px 1.5fr; gap: 20px; padding: 24px 28px; }
  .ps-row__arrow { display: block; }
}

/* Course cover grid (AP) */
.course-card h3 { font-size: 18px; margin-bottom: 8px; }
.course-card p { color: var(--muted); font-size: 16px; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 10px; align-items: center;
  background: #fff; box-shadow: 0 -8px 32px rgba(15, 31, 61, .14), var(--shadow-lg);
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.mobile-cta.is-visible { transform: none; visibility: visible; transition: transform .3s ease; }
.mobile-cta .btn { flex: 1; padding-inline: 16px; }
.wa-btn {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #25D366; color: #fff;
}
.wa-btn:hover { color: #fff; filter: brightness(.95); }
@media (min-width: 768px) { .mobile-cta { display: none; } }

/* Floating WhatsApp (desktop) */
.wa-float { display: none; }
@media (min-width: 768px) {
  .wa-float {
    position: fixed; right: 24px; bottom: 24px; z-index: 40;
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff; box-shadow: var(--shadow-md);
    transition: transform .2s, box-shadow .2s;
  }
  .wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .wa-float__tip {
    position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
    background: var(--navy-900); color: #fff; font: 500 14px/1.3 var(--sans);
    padding: 9px 14px; border-radius: 10px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; }
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center;
  max-width: 560px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-lg);
  font-size: 15px; line-height: 1.5;
}
.cookie p { margin: 0; flex: 1 1 260px; }
.cookie__actions { display: flex; gap: 8px; }
.cookie .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
@media (min-width: 768px) { .cookie { left: 24px; right: auto; bottom: 24px; } }

/* ---------- A7. Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s ease-out, transform .4s ease-out; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card--hover:hover, .wa-float:hover { transform: none; }
}

/* Print */
@media print {
  .announce, .site-header, .mobile-cta, .wa-float, .cookie, .site-footer { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
