/* Public course overviews (netlify/functions/utils/courseLanding.mjs).
   Mirrors the homepage: src/brand-system.css + src/components/marketing/marketing.css. */
.cp-page {
  --ink: #173144;
  --muted: #52676c;
  --paper: #f7f8f6;
  --surface: #ffffff;
  --line: #dee5e5;
  --teal: #146f69;
  --teal-hover: #105b56;
  --soft: #e6f1ee;
  --serif: Georgia, "Times New Roman", serif;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.cp-page * { box-sizing: border-box; }
.cp-page h1, .cp-page h2, .cp-page h3, .cp-page p { margin: 0; }
.cp-page h1, .cp-page h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.035em; text-wrap: balance; }
.cp-page h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.06; }
.cp-page h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.14; }
.cp-page h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.cp-page p { color: var(--muted); }
.cp-page a { color: inherit; text-decoration: none; }
.cp-page a:hover { color: var(--teal); }
.cp-page :is(a, button, summary):focus-visible { outline: 3px solid #a08034; outline-offset: 4px; }
.cp-page [id] { scroll-margin-top: 100px; }
.cp-wrap { max-width: 1200px; width: calc(100% - 96px); margin-inline: auto; }
.cp-skip { position: fixed; top: -100px; left: 20px; z-index: 60; background: var(--ink); color: #fff !important; padding: 10px 16px; border-radius: 6px; }
.cp-skip:focus { top: 12px; }

/* Header: same as the homepage */
.cp-header { position: sticky; top: 0; z-index: 40; background: #f7f8f6f5; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.cp-nav { max-width: 1320px; margin: auto; padding: 0 36px; height: 88px; display: flex; align-items: center; gap: 26px; }
.cp-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-weight: 650; font-size: 19px; letter-spacing: -0.02em; }
.cp-logo img { width: 44px; height: 44px; border-radius: 10px; }
.cp-links { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 520; white-space: nowrap; }
.cp-links a[aria-current="page"] { color: var(--teal); }
.cp-menu { display: none; }

/* Buttons */
.cp-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 12px 22px; border-radius: 6px; background: var(--teal); color: #fff !important; font-size: 14px; font-weight: 600; line-height: 1.4; border: 1px solid transparent; transition: background 0.2s, box-shadow 0.2s; }
.cp-button:hover { background: var(--teal-hover); box-shadow: 0 5px 14px #146f691c; }
.cp-button.secondary { background: transparent; border-color: #cfd6d4; color: var(--ink) !important; }
.cp-button.secondary:hover { background: #eef2ef; box-shadow: none; }
.cp-navjoin { min-height: 44px; padding: 10px 18px; gap: 14px; white-space: nowrap; }
.cp-textlink { color: var(--teal) !important; font-weight: 600; font-size: 14px; }

/* Type helpers */
.cp-eyebrow { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.14em; color: var(--teal) !important; margin-bottom: 18px !important; }
.cp-lede { font-size: 18px; max-width: 640px; }
.cp-small { font-size: 13px; }

/* Hero */
.cp-hero { padding: 36px 0 64px; display: grid; grid-template-columns: 1fr 1.04fr; gap: 48px; align-items: center; }
.cp-breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 36px; }
.cp-hero h1 { margin-bottom: 22px; }
.cp-facts-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cp-facts-list li { background: var(--soft); color: var(--teal); font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 14px; }
.cp-member { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--teal) !important; text-decoration: underline !important; text-underline-offset: 4px; }
.cp-screen { margin: 0; padding: 16px 16px 12px; background: #e7efec; border-radius: 16px; }
.cp-screen img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 18px 40px #17314421; }
.cp-screen figcaption { font-size: 12px; color: var(--muted); padding-top: 10px; }

.cp-subnav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.cp-subnav .cp-wrap { display: flex; gap: 32px; overflow-x: auto; }
.cp-subnav a { padding: 16px 0; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* Sections */
.cp-section { padding: 76px 0; }
.cp-section + .cp-section { border-top: 1px solid var(--line); }
.cp-sectionhead { display: flex; gap: 45px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.cp-sectionhead > p { max-width: 380px; }
.cp-outcomes { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cp-outcomes li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: grid; gap: 12px; align-content: start; }
.cp-outcomes span, .cp-steps span { font-size: 13px; color: var(--teal); border-top: 2px solid #9fd3c9; padding-top: 7px; width: 30px; }
.cp-outcomes h3 { font-size: 17px; }

.cp-contents { margin: 48px 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.cp-contents-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.cp-contents-head h3 { font-size: 22px; }
.cp-contents-head p { font-size: 14px; }
.cp-chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; counter-reset: ch; }
.cp-chapters li { counter-increment: ch; display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.cp-chapters li span::before { content: counter(ch, decimal-leading-zero) "  "; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: pre; }
.cp-chapters small { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.lm-curriculum-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lm-curriculum-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.lm-curriculum-card .cp-eyebrow { margin-bottom: 0 !important; }
.lm-curriculum-card h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -0.02em; }
.lm-curriculum-card .cp-facts { font-size: 13px; font-weight: 600; color: var(--ink); }
.lm-curriculum-card p:not(.cp-facts):not(.cp-eyebrow) { font-size: 14px; flex-grow: 1; }

.cp-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cp-steps li { display: grid; gap: 12px; align-content: start; }
.cp-steps p { font-size: 15px; }

.cp-educator { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 56px; align-items: center; }
.cp-educator img { width: 100%; height: auto; border-radius: 14px; }
.cp-educator h2 { margin-bottom: 18px; }
.cp-educator p:not(.cp-eyebrow) { margin-bottom: 22px; max-width: 560px; }

/* Membership: same cards as the homepage */
.cp-membership { background: var(--surface); }
.cp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cp-plan { padding: 28px 25px; background: #fff; border: 1px solid #dbd9d4; border-radius: 9px; display: flex; flex-direction: column; }
.cp-plan.featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 16px 36px #146f6917; }
.cp-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cp-plan-top h3 { font-size: 21px; }
.cp-plan-top span { font-size: 12px; font-weight: 700; color: var(--teal); background: var(--soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.cp-price { font-size: 43px; letter-spacing: -0.04em; color: var(--ink) !important; line-height: 1.3; margin: 22px 0 4px !important; font-weight: 550; }
.cp-price span { font-size: 12px; letter-spacing: 0; font-weight: 450; }
.cp-permonth { font-size: 14px; }
.cp-plan .cp-button { margin-top: 22px; width: 100%; }
.cp-inclusions { list-style: none; padding: 30px 0 0; margin: 34px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; font-size: 14px; }
.cp-inclusions li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 10px; }
.cp-note { margin: 24px 0 12px; font-size: 14px; }
.cp-note summary { cursor: pointer; font-weight: 600; }
.cp-note p { margin-top: 8px !important; max-width: 760px; }

.cp-guide { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cp-guide h2 { margin-bottom: 12px; }

.cp-faq { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; }
.cp-faq h2 { margin-bottom: 16px; }
.cp-faq .cp-small { margin-bottom: 14px; }
.lm-faq-list { border-top: 1px solid var(--line); }
.lm-faq-list details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.lm-faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-weight: 600; font-size: 16px; }
.lm-faq-list summary::-webkit-details-marker { display: none; }
.lm-faq-list summary span { color: var(--teal); font-size: 20px; line-height: 1; }
.lm-faq-list details[open] summary span { transform: rotate(45deg); }
.lm-faq-list details > div { padding-top: 10px; display: grid; gap: 8px; }
.lm-faq-list details a { color: var(--teal) !important; font-size: 14px; font-weight: 600; }

.cp-closing { background: var(--ink); color: #fff; text-align: center; padding: 78px 0; }
.cp-closing h2 { font-size: clamp(40px, 5.5vw, 64px); }
.cp-closing .cp-eyebrow { color: #9fd3c9 !important; }
.cp-closing p:not(.cp-eyebrow) { color: #c9d7d3; font-size: 15px; margin: 22px 0 !important; }
.cp-closing .cp-button { background: #fff; color: var(--ink) !important; min-width: 200px; }

/* Footer: same as the homepage */
.cp-footer { padding: 48px 0 30px; background: #f1f4f1; }
.cp-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.cp-footer-top p { font-family: var(--serif); font-style: italic; font-size: 18px; }
.cp-footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; padding: 38px 0; }
.cp-footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 13px; }
.cp-footer-grid strong { font-size: 13px; margin-bottom: 6px; font-weight: 600; }
.cp-footer-grid a { color: var(--muted); }
.cp-fineprint { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 22px 0 12px; font-size: 12px; }
.cp-fineprint nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .cp-links { gap: 18px; }
  .cp-chapters, .lm-curriculum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cp-wrap { width: calc(100% - 40px); }
  .cp-nav { padding: 0 20px; height: 68px; gap: 12px; }
  .cp-links, .cp-navjoin { display: none; }
  .cp-menu { display: block; margin-left: auto; position: relative; }
  .cp-menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 16px; border: 1px solid #cfd6d4; border-radius: 6px; font-size: 14px; font-weight: 600; }
  .cp-menu summary::-webkit-details-marker { display: none; }
  .cp-menu nav { position: absolute; right: 0; top: 52px; width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px #17314421; padding: 8px; display: grid; }
  .cp-menu nav a { padding: 12px 14px; border-radius: 6px; font-size: 15px; }
  .cp-hero, .cp-educator, .cp-faq { grid-template-columns: 1fr; }
  .cp-hero { padding: 24px 0 48px; gap: 32px; }
  .cp-breadcrumb { margin-bottom: 24px; }
  .cp-section { padding: 56px 0; }
  .cp-outcomes, .cp-steps, .cp-plans, .cp-inclusions { grid-template-columns: 1fr; }
  .cp-sectionhead, .cp-guide { flex-direction: column; align-items: flex-start; }
  .cp-educator img { max-width: 360px; }
  .cp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .cp-actions { flex-direction: column; align-items: stretch; }
  .cp-actions .cp-button { justify-content: space-between; }
  .cp-chapters, .lm-curriculum-grid { grid-template-columns: 1fr; }
  .cp-contents { padding: 20px; }
  .cp-lede { font-size: 17px; }
  .cp-footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-page * { transition: none !important; }
}
/* Free course module cards: numbered lessons inside each module. */
.cp-module-lessons { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.cp-module-lessons li::marker { color: var(--muted, #5b6b7a); font-weight: 600; }
