/* JointPrep landing — design tokens matched to the app */
:root {
  --bg: #FAF8F3;
  --bg-tint: #F4F1E9;
  --surface: #FFFFFF;
  --ink: #17263C;
  --ink-soft: #4C596B;
  --teal: #0F5E5B;
  --teal-deep: #0A4644;
  --teal-wash: #ECF2F1;
  --amber: #B4762A;
  --amber-wash: #FBF1E2;
  --amber-border: #EBD7B4;
  --line: #E4E0D6;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(23, 38, 60, .05);
  --shadow-card: 0 2px 10px rgba(23, 38, 60, .05);
  --space-section: clamp(3.5rem, 7vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'General Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;      /* 18px body floor — audience 55–75 */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--teal); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--teal); color: #fff;
  padding: .75rem 1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip:focus { left: 0; }

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

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.125rem, 4vw, 2.5rem); }
.wrap--narrow { max-width: 760px; }

h1, h2, h3 { margin: 0 0 .75rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 5.6vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.625rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }

.ink-teal { color: var(--teal); }
.lede { font-size: clamp(1.1875rem, 1.9vw, 1.375rem); color: var(--ink-soft); max-width: 34ch; }
.body-lg { font-size: 1.1875rem; color: var(--ink-soft); max-width: 56ch; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .5rem; color: var(--teal); text-decoration: none; margin-right: auto; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__word { font-weight: 600; font-size: 1.1875rem; letter-spacing: -.02em; color: var(--ink); }
.logo__word-accent { color: var(--teal); }
.nav__links { display: none; gap: .25rem; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem;
  font-size: 1rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; border-radius: var(--radius-sm);
}
.nav__links a:hover { color: var(--teal); background: var(--teal-wash); }
@media (min-width: 900px) { .nav__links { display: flex; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  gap: .5rem; font-family: inherit; font-weight: 600; font-size: 1.0625rem;
  border-radius: var(--radius-sm); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--sm { min-height: 48px; padding: 0 1.125rem; }
.btn--lg { min-height: 56px; padding: .875rem 1.5rem; width: 100%; }
@media (min-width: 640px) { .btn--lg { width: auto; } }
.btn--primary { background: var(--teal); color: #FDFCF9; border-color: var(--teal-deep); }
.btn--primary:hover { background: var(--teal-deep); }
.btn--outline { background: var(--surface); color: var(--teal); border-color: var(--teal); }
.btn--outline:hover { background: var(--teal-wash); }
.btn--amber { background: #FDFCF9; color: var(--teal-deep); border-color: #FDFCF9; }
.btn--amber:hover { background: #F6F1E6; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; min-height: 48px; font-weight: 500;
  color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(15, 94, 91, .3);
}
.link-arrow:hover { border-bottom-color: var(--teal); }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 var(--space-section); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; margin: 2rem 0 1.5rem; }
@media (min-width: 640px) { .hero__cta { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 1.25rem 1.75rem; } }
.trustline {
  font-size: 1rem; color: var(--ink-soft); max-width: 52ch;
  border-left: 3px solid var(--teal-wash); padding-left: 1rem;
}
.hero__art { max-width: 420px; margin: 0 auto; }
.hero__art svg { width: 100%; height: auto; aspect-ratio: 420 / 460; filter: drop-shadow(0 12px 32px rgba(23, 38, 60, .07)); }

/* ---------- sections ---------- */
.section { padding: var(--space-section) 0; }
.section--tint { background: var(--bg-tint); }
.section__title { max-width: 26ch; margin-bottom: 1rem; }
.section__title--left { max-width: 22ch; }
.section:not(#evidence):not(#about) .section__title { margin-left: auto; margin-right: auto; text-align: center; }
.section__sub { text-align: center; color: var(--ink-soft); max-width: 46ch; margin: 0 auto 2.5rem; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 780px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-card);
}
.card__icon {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--teal-wash); color: var(--teal); margin-bottom: 1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card p { color: var(--ink-soft); font-size: 1.0625rem; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 1.25rem; margin-top: 2.5rem; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-card);
}
.step__num {
  flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--teal); color: #FDFCF9;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.0625rem;
}
.step p { color: var(--ink-soft); font-size: 1.0625rem; }

/* ---------- evidence split ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; } }
.note {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm); padding: 1.125rem 1.25rem; font-size: 1.0625rem; color: var(--ink-soft);
}
.note--amber { background: var(--amber-wash); border-color: var(--amber-border); border-left-color: var(--amber); color: #6B4715; margin-top: 1.75rem; }
.note--amber strong { color: #57390F; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(23, 38, 60, .07); overflow: hidden;
}
.panel__head { display: flex; align-items: center; gap: .625rem; padding: 1rem 1.125rem; }
.badge { background: var(--teal-wash); color: var(--teal-deep); font-size: .875rem; font-weight: 600; padding: .25rem .625rem; border-radius: 999px; }
.panel__count { font-size: 1rem; font-weight: 500; }
.panel__chev { width: 22px; height: 22px; margin-left: auto; color: var(--ink-soft); flex: none; }
.panel__body { border-top: 1px solid var(--line); padding: 1.125rem; }
.panel__label { font-size: .9375rem; font-weight: 600; margin-bottom: .25rem; }
.panel__text { font-size: 1rem; color: var(--ink-soft); margin-bottom: 1.125rem; }
.panel__sources li { font-size: 1rem; color: var(--teal); text-decoration: underline; text-underline-offset: 2px; margin-bottom: .5rem; }
.split__art figcaption { margin-top: .875rem; font-size: .9375rem; color: var(--ink-soft); }
figure { margin: 0; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 1.5rem; }
@media (min-width: 880px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
@media (min-width: 1120px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan__note { font-size: .875rem; color: var(--ink-soft); margin-top: .75rem; }
.plan__note a { color: inherit; }
.plan--feature .plan__note { color: rgba(243, 247, 246, .78); }
.plan .btn { width: 100%; font-size: 1rem; padding-left: .5rem; padding-right: .5rem; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-card); scroll-margin-top: 96px;
}
.plan--feature { background: var(--teal); border-color: var(--teal-deep); color: #F3F7F6; }
.plan__eyebrow { font-size: .9375rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .375rem; }
.plan--feature .plan__eyebrow { color: rgba(243, 247, 246, .8); }
.plan__price { font-size: 2.25rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.plan__price-note { font-size: 1rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.plan--feature .plan__price-note { color: rgba(243, 247, 246, .78); }
.ticks { display: grid; gap: .75rem; margin-bottom: 1.75rem; }
.ticks li { position: relative; padding-left: 1.875rem; font-size: 1.0625rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg); border-radius: 1px;
}
.ticks--light li::before { border-color: #A7D6CF; }

/* ---------- forms ---------- */
.capture { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.capture--light { border-top-color: rgba(255, 255, 255, .22); }
.capture label { display: block; font-weight: 600; font-size: 1.0625rem; margin-bottom: .625rem; }
.capture input {
  width: 100%; min-height: 56px; padding: .75rem 1rem; font: inherit; font-size: 1.0625rem;
  color: var(--ink); background: var(--surface);
  border: 1px solid #C9CFCC; border-radius: var(--radius-sm); margin-bottom: .75rem;
}
.capture input::placeholder { color: #8A9490; }
.capture input:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
.capture--light input { border-color: rgba(255, 255, 255, .5); }
.capture--light input:focus-visible { outline-color: #F3F7F6; }
.capture__note { margin-top: .875rem; font-size: 1rem; color: var(--ink-soft); }
.capture--light .capture__note { color: rgba(243, 247, 246, .82); }
.capture input[aria-invalid="true"] { border-color: #B4302F; border-width: 2px; }
.capture__error { margin-top: .5rem; font-size: 1rem; color: #8E2423; font-weight: 500; }
.capture--light .capture__error { color: #FBE3D6; }
.capture__done {
  display: flex; align-items: flex-start; gap: .625rem; margin: 0; padding: 1.125rem 1.25rem;
  background: var(--teal-wash); border: 1px solid #CBE0DC; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--teal-deep);
}
.capture--light .capture__done { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .38); color: #F3F7F6; }
.capture__done::before {
  content: ""; flex: none; margin-top: .35em; width: 16px; height: 9px;
  border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg);
}

/* ---------- about ---------- */
.about { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 880px) { .about { grid-template-columns: 140px 1fr; gap: 3rem; } }
.about__mark { width: 108px; }
.about__mark svg { width: 100%; height: auto; aspect-ratio: 1; }
.quote {
  margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--teal);
  font-size: clamp(1.1875rem, 2.2vw, 1.4375rem); line-height: 1.45; color: var(--ink); text-wrap: pretty;
}

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); margin-top: 2.5rem; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  min-height: 64px; padding: 1rem 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1.125rem; color: var(--ink); text-align: left;
}
.faq__q:hover { color: var(--teal); }
.faq__chev { width: 24px; height: 24px; flex: none; color: var(--teal); transition: transform .2s ease; }
.faq__q[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 3rem 1.375rem 0; color: var(--ink-soft); font-size: 1.0625rem; }

/* ---------- legal pages ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4rem) 0 var(--space-section); }
.legal__updated { font-size: .9375rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.legal__intro { color: var(--ink-soft); font-size: 1.1875rem; max-width: 68ch; margin-bottom: 2rem; }
.legal article { max-width: 68ch; }
.legal article h2 { font-size: 1.375rem; margin-top: 2.25rem; }
.legal article h2:first-of-type { margin-top: 0; }
.legal article h3 { font-size: 1.125rem; margin-top: 1.5rem; }
.legal article p { font-size: 1.125rem; color: var(--ink-soft); }
.legal article ul, .legal article ol { list-style: disc; padding-left: 1.5rem; margin: 0 0 1rem; }
.legal article ol { list-style: decimal; }
.legal article li { font-size: 1.125rem; color: var(--ink-soft); margin-bottom: .5rem; }
.legal article li:last-child { margin-bottom: 0; }
.legal article a { text-decoration: underline; text-underline-offset: 2px; }
.legal article strong { color: var(--ink); }

/* ---------- footer ---------- */
.footer { background: #12312F; color: #DCE6E4; padding: clamp(3rem, 6vw, 4.5rem) 0 3rem; }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 780px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.footer .logo { color: #7FC4BC; }
.footer .logo__word { color: #F2F7F6; }
.footer__head { font-size: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(220, 230, 228, .7); margin: 0 0 1rem; }
.footer__links ul { display: grid; gap: .25rem; margin-bottom: 1.25rem; }
.footer__links li { font-size: 1.0625rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: #DCE6E4; text-decoration: none; border-bottom: 1px solid transparent; }
.footer__links a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .5); }
.footer__note { margin-top: 1rem; font-size: .9375rem; line-height: 1.55; color: rgba(220, 230, 228, .72); max-width: 40ch; }
.logo--footer { margin-bottom: .5rem; }

/* ---------- checklist / sample-week content pages ---------- */
.pdf-cta { display: flex; margin: 1.75rem 0 2.25rem; }
.check-list { display: grid; gap: .625rem; margin: 0 0 1.5rem; padding-left: 0; list-style: none; }
.check-list li {
  position: relative; padding-left: 2.25rem; font-size: 1.125rem; color: var(--ink-soft);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px;
  border: 2px solid var(--teal); border-radius: 5px; background: var(--surface);
}
.legal article .check-list li strong { color: var(--ink); }
.product-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin: 0 0 1.5rem; box-shadow: var(--shadow-card);
}
.product-block h3 { margin-bottom: .5rem; }
.product-block p { font-size: 1.0625rem; color: var(--ink-soft); margin-bottom: .5rem; }
.product-block p:last-child { margin-bottom: 0; }
.product-block .price { font-weight: 600; color: var(--ink); }
.exercise-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.75rem; margin: 0 0 1.5rem; box-shadow: var(--shadow-card);
}
.exercise-block h3 { margin-bottom: .75rem; }
.exercise-block dl { margin: 0; display: grid; gap: .625rem; }
.exercise-block dt { font-weight: 600; color: var(--ink); font-size: 1rem; }
.exercise-block dd { margin: .125rem 0 0; color: var(--ink-soft); font-size: 1.0625rem; }
.cta-band {
  background: var(--teal); color: #F3F7F6; border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem); text-align: center; margin-top: 2.5rem;
}
.cta-band h2 { color: #FDFCF9; }
.cta-band p { color: rgba(243, 247, 246, .85); max-width: 52ch; margin: 0 auto 1.5rem; }
.cta-band .cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Affiliate note */
.affiliate-note {
  font-size: 0.85rem;
  color: #5b6472;
}

/* Pre-order confirmation with pay button */
.capture__done-body { display: grid; gap: .75rem; }
.capture__done-body p { margin: 0; }
.capture__done-body .capture__note { margin: 0; }

/* ---------- blog ---------- */
.wrap--prose { max-width: 720px; }

.post__meta {
  font-size: 1rem; color: var(--ink-soft); margin: 0 0 1.5rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line);
}
.post__meta strong { color: var(--ink); }
.post__crumb { font-size: 1rem; color: var(--ink-soft); margin-bottom: .75rem; }
.post__crumb a { text-decoration: none; border-bottom: 1px solid rgba(15, 94, 91, .3); }
.post__crumb a:hover { border-bottom-color: var(--teal); }

.legal article .data-table { width: 100%; border-collapse: collapse; margin: 0 0 1.75rem; font-size: 1.0625rem; }
.legal article .data-table caption { text-align: left; font-size: 1rem; color: var(--ink-soft); margin-bottom: .625rem; }
.legal article .data-table th,
.legal article .data-table td {
  text-align: left; padding: .75rem .875rem; border-bottom: 1px solid var(--line);
  vertical-align: top; color: var(--ink-soft);
}
.legal article .data-table thead th { background: var(--teal-wash); color: var(--teal-deep); font-weight: 600; }
.legal article .data-table tbody th { color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.faq-block { margin-top: 2.25rem; }
.legal article .faq-block h3 { margin-top: 1.75rem; font-size: 1.1875rem; }

.sources { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal article .sources ol { list-style: decimal; padding-left: 1.5rem; }
.legal article .sources li { font-size: 1rem; overflow-wrap: anywhere; }

.post-list { display: grid; gap: 1.25rem; margin: 2.5rem 0 0; }
.post-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.75rem; box-shadow: var(--shadow-card);
}
.post-card h2 { font-size: clamp(1.3125rem, 2.4vw, 1.625rem); margin-bottom: .5rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--teal); }
.post-card p { color: var(--ink-soft); font-size: 1.0625rem; margin-bottom: .75rem; }
.post-card__date { font-size: .9375rem; color: var(--ink-soft); margin-bottom: .625rem; }
