/* Course landing page (jop/*). Uses --eh-* tokens from header.css; theme via [data-theme] on <html>.
   Radius scale: controls 10px, panels 14px, pills/avatars full. */
body { margin: 0; background: var(--eh-bg); color: var(--eh-text); font-family: var(--eh-font); font-size: 16px; line-height: 1.55; }
.cp, .cp * { box-sizing: border-box; }
.cp { padding-top: var(--eh-h); }
:where(.cp) a { color: inherit; text-decoration: none; }
:where(.cp) ul, :where(.cp) ol { list-style: none; margin: 0; padding: 0; }
:where(.cp) :is(h1, h2, h3, p, figure, dl, dd) { margin: 0; }
.cp :focus-visible { outline: 2px solid var(--eh-accent); outline-offset: 2px; border-radius: 6px; }
.cp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.cp i.ph, .cp i.ph-fill { flex-shrink: 0; }

.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; border: 1px solid transparent; transition: background-color .15s ease, transform .1s ease, border-color .15s ease; }
.cp-btn:active { transform: scale(.98); }
.cp-btn--primary { background: var(--eh-accent); color: var(--eh-accent-ink) !important; }
.cp-btn--primary:hover { background: var(--eh-accent-hover); }
.cp-btn--ghost { background: var(--eh-bg); border-color: var(--eh-border); color: var(--eh-text); }
.cp-btn--ghost:hover { background: var(--eh-bg-soft); }
.cp-btn--block { width: 100%; }

/* hero */
.cp-hero { background: var(--eh-accent-soft); border-bottom: 1px solid var(--eh-border); }
.cp-hero .cp-wrap { padding-top: 28px; padding-bottom: 44px; }
.cp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--eh-muted); }
.cp-crumbs a:hover { color: var(--eh-accent); }
.cp-hero-copy { max-width: calc(100% - 420px); margin-top: 20px; }
.cp-hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.cp-sub { margin-top: 14px; font-size: 18px; color: var(--eh-muted); max-width: 60ch; }
.cp-facts { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; font-size: 14.5px; }
.cp-facts li { display: inline-flex; align-items: center; gap: 7px; }
.cp-facts i { color: var(--eh-accent); font-size: 19px; }
.cp-by { margin-top: 18px; font-size: 15px; color: var(--eh-muted); }
.cp-by a { color: var(--eh-accent); font-weight: 700; }
.cp-by a:hover { text-decoration: underline; }

/* layout: main column + sticky purchase card */
.cp-body { padding-bottom: 96px; }
.cp-body .cp-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.cp-aside { position: relative; align-self: stretch; }
.cp-card { position: sticky; top: calc(var(--eh-h) + 20px); margin-top: -290px; z-index: 5; background: var(--eh-bg); border: 1px solid var(--eh-border); border-radius: 14px; box-shadow: var(--eh-shadow); overflow: hidden; }
.cp-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--eh-bg-soft); }
.cp-card-body { padding: 22px 22px 24px; display: grid; gap: 16px; }
.cp-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cp-price b { font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.cp-price s { color: var(--eh-muted); }
.cp-price span { color: var(--eh-muted); font-size: 14px; }
.cp-buy { display: grid; gap: 10px; margin: 0; }
.cp-assure { font-size: 13px; color: var(--eh-muted); text-align: center; }
.cp-incl h2 { font-size: 15px; margin-bottom: 10px; letter-spacing: -.01em; }
.cp-incl ul { display: grid; gap: 9px; font-size: 14.5px; }
.cp-incl li { display: flex; gap: 10px; align-items: flex-start; }
.cp-incl i { color: var(--eh-accent); font-size: 18px; margin-top: 2px; }
.cp-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--eh-accent); cursor: pointer; text-align: center; }
.cp-link:hover { text-decoration: underline; }

/* in-page nav */
.cp-tabs { margin: 0 -20px; padding: 0 20px; position: sticky; top: var(--eh-h); z-index: 20; background: var(--eh-bg); border-bottom: 1px solid var(--eh-border); }
.cp-tabs-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cp-tabs-in::-webkit-scrollbar { display: none; }
.cp-tabs a { display: inline-flex; align-items: center; height: 52px; padding: 0 14px; font-weight: 600; font-size: 15px; color: var(--eh-muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.cp-tabs a:hover { color: var(--eh-text); }
.cp-tabs a.is-on { color: var(--eh-accent); border-bottom-color: var(--eh-accent); }

/* sections */
.cp-main > section { padding: 44px 0 4px; scroll-margin-top: calc(var(--eh-h) + 60px); }
.cp-main > section:first-child { padding-top: 40px; }
.cp-main h2.cp-h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
.cp-lead { margin-top: 12px; color: var(--eh-muted); max-width: 66ch; }

.cp-learn { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; padding: 24px 26px; border: 1px solid var(--eh-border); border-radius: 14px; }
.cp-learn li { display: flex; gap: 10px; align-items: flex-start; }
.cp-learn i { color: var(--eh-accent); font-size: 20px; margin-top: 2px; }

.cp-feats { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cp-feat { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 14px; background: var(--eh-bg-soft); }
.cp-feat i { font-size: 24px; color: var(--eh-accent); background: var(--eh-accent-soft); width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.cp-feat strong { display: block; line-height: 1.3; }
.cp-feat p { margin-top: 4px; font-size: 14.5px; color: var(--eh-muted); }

/* curriculum */
.cp-meta { margin-top: 8px; color: var(--eh-muted); font-size: 14.5px; }
.cp-cur { margin-top: 18px; border: 1px solid var(--eh-border); border-radius: 14px; overflow: hidden; }
.cp-mod + .cp-mod { border-top: 1px solid var(--eh-border); }
.cp-mod summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--eh-bg-soft); font-weight: 700; }
.cp-mod summary::-webkit-details-marker { display: none; }
.cp-mod summary i { color: var(--eh-muted); transition: transform .2s ease; }
.cp-mod[open] summary i { transform: rotate(90deg); }
.cp-mod summary small { margin-left: auto; font-weight: 500; color: var(--eh-muted); font-size: 13.5px; white-space: nowrap; }
.cp-mod ol { padding: 6px 20px 10px; }
.cp-mod li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.cp-mod li + li { border-top: 1px solid var(--eh-border); }
.cp-n { width: 26px; height: 26px; border-radius: 999px; background: var(--eh-accent-soft); color: var(--eh-accent); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.cp-cur:not(.is-open) [data-late] { display: none; }
.cp-more { margin-top: 14px; }

/* audience + trainer */
.cp-who { margin-top: 20px; display: grid; gap: 12px; }
.cp-who li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--eh-border); border-radius: 14px; }
.cp-who i { font-size: 24px; color: var(--eh-accent); }
.cp-who strong { display: block; }
.cp-who span { color: var(--eh-muted); font-size: 14.5px; }
.cp-trainer { margin-top: 20px; display: flex; gap: 24px; align-items: flex-start; }
.cp-trainer img { width: 112px; height: 112px; border-radius: 999px; object-fit: cover; border: 1px solid var(--eh-border); flex-shrink: 0; background: var(--eh-bg-soft); }
.cp-trainer h3 { font-size: 20px; letter-spacing: -.01em; }
.cp-role { color: var(--eh-accent); font-weight: 700; font-size: 14.5px; margin-top: 2px; }
.cp-trainer p.cp-bio { margin-top: 10px; color: var(--eh-muted); max-width: 62ch; }
.cp-trainer .cp-btn { margin-top: 14px; height: 42px; }

/* faq */
.cp-faq { margin-top: 18px; }
.cp-faq details { border-bottom: 1px solid var(--eh-border); }
.cp-faq details:first-child { border-top: 1px solid var(--eh-border); }
.cp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; font-weight: 600; }
.cp-faq summary::-webkit-details-marker { display: none; }
.cp-faq summary i { color: var(--eh-muted); transition: transform .2s ease; }
.cp-faq details[open] summary i { transform: rotate(45deg); color: var(--eh-accent); }
.cp-faq details p { padding: 0 4px 20px; color: var(--eh-muted); max-width: 68ch; }
.cp-end { padding: 48px 0 0; }

/* mobile buy bar */
.cp-bar { display: none; }

/* unlock dialog */
.cp-dlg { border: 1px solid var(--eh-border); border-radius: 14px; padding: 0; width: min(440px, calc(100% - 32px)); background: var(--eh-bg); color: var(--eh-text); box-shadow: var(--eh-shadow); font-family: var(--eh-font); }
.cp-dlg::backdrop { background: rgba(10, 14, 24, .55); }
.cp-dlg form, .cp-ok { padding: 28px; display: grid; gap: 14px; }
.cp-dlg h2 { font-size: 22px; letter-spacing: -.02em; }
.cp-dlg p { color: var(--eh-muted); font-size: 14.5px; }
.cp-dlg label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.cp-dlg input:not([type=checkbox]), .cp-dlg select { height: 46px; padding: 0 12px; border: 1px solid var(--eh-border); border-radius: 10px; background: var(--eh-bg); color: var(--eh-text); font: inherit; font-weight: 400; }
.cp-dlg input:focus-visible, .cp-dlg select:focus-visible { outline: 2px solid var(--eh-accent); outline-offset: 1px; }
.cp-phone { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
.cp-check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 400 !important; color: var(--eh-muted); }
.cp-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--eh-accent); }
.cp-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; font-size: 20px; color: var(--eh-muted); cursor: pointer; }
.cp-x:hover { background: var(--eh-bg-soft); color: var(--eh-text); }
.cp-ok { text-align: center; justify-items: center; }
.cp-ok i { font-size: 44px; color: var(--eh-accent); }
.cp-dlg [hidden] { display: none !important; }

@media (max-width: 1040px) {
  .cp-hero-copy { max-width: none; }
  .cp-body .cp-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cp-aside { display: none; }
  .cp-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; background: var(--eh-bg); border-top: 1px solid var(--eh-border); box-shadow: var(--eh-shadow); }
  .cp-bar b { font-size: 22px; letter-spacing: -.02em; }
  .cp-bar s { color: var(--eh-muted); font-size: 14px; margin-left: 6px; }
  .cp-bar .cp-btn { height: 46px; }
  .cp-end { padding-bottom: 110px; }
}
@media (max-width: 640px) {
  .cp-learn, .cp-feats { grid-template-columns: 1fr; }
  .cp-trainer { flex-direction: column; gap: 16px; }
  .cp-mod summary small { display: none; }
  .cp-sub { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { .cp * { transition: none !important; } html { scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }
.cp-hero-dl { margin-top: 22px; }

/* course page: preview video in the buy card */
.cp-media { position: relative; aspect-ratio: 16 / 9; background: #0b1220; }
.cp-media iframe, .cp-media > button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cp-media > button { padding: 0; cursor: pointer; background: none; }
.cp-media > button img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; display: block; }
.cp-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 999px; background: var(--eh-bg); color: var(--eh-accent); display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: var(--eh-shadow); transition: transform .15s ease; }
.cp-media > button:hover .cp-play { transform: translate(-50%, -50%) scale(1.08); }
.cp-rating { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-weight: 600; font-size: 14.5px; }
.cp-rating .cp-stars { color: var(--eh-accent); display: inline-flex; gap: 2px; font-size: 17px; }
.cp-mod li.is-ok { align-items: center; }
.cp-mod li i { color: var(--eh-accent); font-size: 18px; margin-top: 2px; }
.cp-modmeta { padding: 12px 20px 0; color: var(--eh-muted); font-size: 14.5px; }
.cp-why { margin-top: 20px; display: grid; gap: 12px; }
.cp-cert { margin-top: 20px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px 26px; border-radius: 14px; background: var(--eh-accent-soft); }
.cp-cert strong { font-size: 18px; letter-spacing: -.01em; display: block; }
.cp-cert div span { color: var(--eh-muted); font-size: 14.5px; }
.cp-cert .cp-btn--primary { background: #1d4ed8; color: #fff !important; }
.cp-cert .cp-btn--primary:hover { background: #1e40af; }

.cp-btn:disabled { opacity: .75; cursor: progress; }
.cp-spin { animation: cp-spin .8s linear infinite; }
@keyframes cp-spin { to { transform: rotate(360deg); } }
.cp-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 40; max-width: min(460px, calc(100% - 32px)); padding: 12px 18px; border-radius: 10px; background: var(--eh-text); color: var(--eh-bg); font-weight: 600; font-size: 14.5px; box-shadow: var(--eh-shadow); }
.cp-toast[hidden] { display: none; }
