/* ==========================================================================
   GBM Studies — Prototype 01 "Emerald Charter" — course detail page
   Builds on tokens.css + site.css. Animates transform/opacity only;
   sticky elements use CSS position: sticky (no JS pinning).
   ========================================================================== */

html { background: var(--emerald-950); }
html.is-booting body { opacity: 0; animation: cBoot 0s 3s forwards; }
@keyframes cBoot { to { opacity: 1; } }
.course-page { transition: opacity .45s var(--ease-out); overflow-x: clip; }
.course-page .progress span { transform: scaleX(var(--p, 0)); }
.btn--block { width: 100%; justify-content: center; }
.btn--line { color: var(--emerald-900); box-shadow: inset 0 0 0 1px var(--line-light); background: transparent; }
.btn--line::after { background: var(--emerald-900); }
.btn--line:hover { color: var(--ivory-50); }
.btn--dark::after { background: var(--gold-500); }

/* Reveal: IntersectionObserver adds .is-in */
.js .rv { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .8s var(--ease-out) var(--rd, 0s), transform .8s var(--ease-out) var(--rd, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.c-hero { position: relative; overflow: hidden; isolation: isolate; color: var(--ivory-50); background: var(--emerald-950); padding: 8.5rem 0 4.5rem; }
.c-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .22; transform: scale(1.08); }
.c-hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--emerald-950) 25%, rgba(3,17,11,.75) 60%, rgba(3,17,11,.55)), linear-gradient(0deg, var(--emerald-950), transparent 40%); }
.c-hero__grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 3.5rem; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(246,238,219,.55); margin-bottom: 1.4rem; }
.crumbs a { color: var(--gold-300); }
.crumbs a:hover { color: var(--ivory-50); }
.crumbs i { font-size: .55rem; opacity: .6; }
.c-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.c-cats span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .65rem; border-radius: var(--radius-xs); color: var(--gold-300); box-shadow: inset 0 0 0 1px var(--line-dark); }
.c-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.8rem); line-height: 1.02; letter-spacing: -0.015em; max-width: 18ch; }
.c-tagline { margin-top: 1.1rem; font-size: var(--fs-lead); color: rgba(246,238,219,.75); max-width: 52ch; }
.c-rating { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; margin-top: 1.4rem; font-size: .88rem; color: rgba(246,238,219,.72); }
.c-rating > b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--gold-300); line-height: 1; }
.c-rating a { color: var(--ivory-50); border-bottom: 1px solid var(--line-dark); }
.c-rating i { color: var(--gold-400); margin-right: .3rem; }
.c-rating .stars i { margin: 0; }
.c-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(246,238,219,.3); }
.c-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 2rem; border-radius: var(--radius-md); overflow: hidden; background: var(--line-dark); }
.c-stats li { display: flex; align-items: center; gap: .6rem; padding: .95rem 1rem; background: rgba(3,17,11,.82); font-size: .86rem; }
.c-stats i { color: var(--gold-400); }
.c-hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.c-preview { position: relative; display: block; width: 100%; aspect-ratio: 16 / 11; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-dark); cursor: pointer; text-align: left; }
.c-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.c-preview:hover img { transform: scale(1.06); }
.c-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,17,11,.75), transparent 55%); }
.c-preview__play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: var(--emerald-950); font-size: 1.3rem; box-shadow: var(--shadow-gold); transition: transform .5s var(--ease-out); }
.c-preview__play i { margin-left: 4px; }
.c-preview__play::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold-300); animation: cRing 2.2s var(--ease-out) infinite; }
@keyframes cRing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
.c-preview:hover .c-preview__play { transform: scale(1.08); }
.c-preview__label { position: absolute; left: 1.2rem; bottom: 1.1rem; z-index: 1; font-size: .9rem; color: var(--ivory-50); }
.c-preview__label i { color: var(--gold-400); margin-right: .4rem; }

/* ---------- Sticky tabs ---------- */
.c-tabs { position: sticky; top: 0; z-index: 40; background: var(--ivory-50); border-bottom: 1px solid var(--line-light); transition: transform .5s var(--ease-out); }
/* When the nav returns on scroll-up, the bar slides under it and a solid band fills the gap,
   so page content never shows between the nav and the tabs. */
.c-tabs::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 80px; background: var(--ivory-50); opacity: 0; transition: opacity .3s; pointer-events: none; }
.c-tabs.is-shifted { transform: translate3d(0, 76px, 0); }
.c-tabs.is-shifted::before { opacity: 1; }
.c-tabs__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 62px; }
.c-tabs nav { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; height: 100%; }
.c-tabs nav::-webkit-scrollbar { display: none; }
.c-tabs nav a { position: relative; display: flex; align-items: center; padding: 0 .9rem; font-size: .9rem; color: var(--ink-500); white-space: nowrap; transition: color .3s; }
.c-tabs nav a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: -1px; height: 2px; background: var(--emerald-700); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out); }
.c-tabs nav a:hover { color: var(--ink-900); }
.c-tabs nav a.is-on { color: var(--ink-900); }
.c-tabs nav a.is-on::after { transform: scaleX(1); }
.c-tabs__buy { display: none; align-items: center; gap: .8rem; flex: none; }
.c-tabs__price b { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; }
.c-tabs__price s { margin-left: .4rem; color: var(--ink-300); font-size: .82rem; }

/* ---------- Body ---------- */
.c-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 4.5rem; padding-top: 1rem; padding-bottom: 6rem; }
.c-sec { padding-top: 4rem; scroll-margin-top: 70px; }
.c-h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin: .9rem 0 1.6rem; }
[data-theme="dark"] .c-h2 em, .c-cert .c-h2 em { color: var(--gold-300); }
.c-main .c-h2 em, .c-related .c-h2 em { color: var(--emerald-600); }
.c-main .c-cert .c-h2 em { color: var(--gold-300); }
.c-learn { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2rem; padding: 1.6rem; border-radius: var(--radius-lg); background: var(--ivory-50); box-shadow: inset 0 0 0 1px var(--line-light); }
.c-learn li { display: flex; gap: .8rem; align-items: flex-start; font-size: .96rem; color: var(--ink-700); }
.c-learn li i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: .1rem; font-size: .65rem; background: rgba(35,112,79,.1); color: var(--emerald-600); }
.c-overview { margin: 1.8rem 0; font-size: 1.04rem; color: var(--ink-700); max-width: 68ch; }
.c-includes { padding: 1.5rem 1.6rem; border-radius: var(--radius-lg); background: var(--sand-200); }
.c-includes h3, .c-req h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; margin-bottom: 1rem; }
.c-includes ul { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.6rem; }
.c-includes li { display: flex; gap: .7rem; align-items: center; font-size: .93rem; color: var(--ink-700); }
.c-includes li i { width: 20px; text-align: center; color: var(--emerald-700); }

/* Outline */
.c-outline__meta { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: var(--ink-500); margin-bottom: 1rem; }
.c-outline { border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-light); background: var(--ivory-50); }
.c-mod + .c-mod { border-top: 1px solid var(--line-light); }
.c-mod summary { display: grid; grid-template-columns: 54px 1fr auto 28px; align-items: center; gap: .8rem; padding: 1.1rem 1.3rem; cursor: pointer; list-style: none; transition: background-color .3s; }
.c-mod summary::-webkit-details-marker { display: none; }
.c-mod summary:hover { background: rgba(35,112,79,.04); }
.c-mod__no { font-family: var(--font-mono); font-size: .72rem; color: var(--gold-700); letter-spacing: .08em; }
.c-mod__title { font-weight: 500; line-height: 1.35; }
.c-mod__meta { font-size: .8rem; color: var(--ink-500); white-space: nowrap; }
.c-mod__chev { color: var(--ink-500); font-size: .8rem; transition: transform .4s var(--ease-out); }
.c-mod[open] .c-mod__chev { transform: rotate(180deg); }
.c-mod ul { padding: 0 1.3rem 1.1rem calc(54px + 2.1rem); display: grid; gap: .55rem; }
.c-mod li { display: flex; align-items: center; gap: .7rem; font-size: .92rem; color: var(--ink-700); }
.c-mod li i { width: 18px; text-align: center; color: var(--emerald-600); }
.c-mod li .lock { color: var(--ink-300); }
.c-mod li button { margin-left: auto; font-size: .78rem; font-weight: 500; color: var(--emerald-700); border-bottom: 1px solid currentColor; }
.c-note { margin-top: 1rem; font-size: .82rem; color: var(--ink-500); }
.c-note i { color: var(--gold-700); margin-right: .35rem; }

/* Certificate block (dark card) */
.c-cert { margin-top: 4rem; padding: 2.6rem; border-radius: var(--radius-xl); background: var(--grad-emerald); color: var(--ivory-50); display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.4rem; align-items: center; scroll-margin-top: 80px; }
.c-cert__copy p:not(.eyebrow) { color: rgba(246,238,219,.72); font-size: .95rem; }
.c-namefield { display: grid; gap: .45rem; margin-top: 1.4rem; }
.c-namefield span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.c-namefield input { height: 48px; padding: 0 1rem; border-radius: var(--radius-pill); border: 0; outline: 0; background: rgba(3,17,11,.6); color: var(--ivory-50); box-shadow: inset 0 0 0 1px var(--line-dark); font: inherit; transition: box-shadow .3s; }
.c-namefield input::placeholder { color: rgba(246,238,219,.4); }
.c-namefield input:focus { box-shadow: inset 0 0 0 1px var(--gold-400), 0 0 0 4px rgba(197,161,90,.18); }
.c-cert__paper { position: relative; aspect-ratio: 1.414 / 1; padding: 7% 8% 6%; border-radius: var(--radius-sm); background: linear-gradient(135deg, #fffdf7, #f4ecd8); color: var(--ink-900); display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: var(--shadow-lg); container-type: inline-size; }
.c-cert__border { position: absolute; inset: 10px; border: 1px solid var(--gold-500); outline: 3px double rgba(197,161,90,.45); outline-offset: 3px; pointer-events: none; }
.c-cert__crest { width: 13%; height: auto; border-radius: 50%; }
.c-cert__kicker { margin-top: 3%; font-family: var(--font-mono); font-size: max(8px, 2.1cqw); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-700); }
.c-cert__presented { margin-top: 2%; font-size: max(8px, 2.3cqw); color: var(--ink-500); }
.c-cert__name { margin: 1.5% 0; padding: 0 1rem .15rem; border-bottom: 1px solid var(--sand-300); font-family: var(--font-display); font-style: italic; font-size: max(18px, 7.5cqw); line-height: 1.1; color: var(--emerald-800); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-cert__course { font-size: max(8px, 2.4cqw); color: var(--ink-700); }
.c-cert__foot { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: .6rem; }
.c-cert__sig { text-align: left; font-size: max(7px, 1.9cqw); color: var(--ink-500); }
.c-cert__sig .sig-crop { width: 70%; border-bottom: 1px solid var(--sand-300); }
.c-cert__seal { width: max(34px, 12cqw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: var(--emerald-900); box-shadow: 0 8px 18px -8px rgba(138,106,47,.8), inset 0 0 0 3px rgba(255,255,255,.35); }
.c-cert__id { text-align: right; font-size: max(7px, 1.8cqw); color: var(--ink-500); }
.c-cert__id b { display: block; font-family: var(--font-mono); font-weight: 500; color: var(--ink-900); }
.sig-crop { overflow: hidden; aspect-ratio: 140 / 75; }
.sig-crop img { width: 357%; max-width: none; margin-left: -123%; }

/* Audience + requirements */
.c-audience { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.c-audience li { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--radius-md); background: var(--ivory-50); box-shadow: inset 0 0 0 1px var(--line-light); font-size: .95rem; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.c-audience li:hover { transform: translate3d(0, -3px, 0); box-shadow: inset 0 0 0 1px var(--gold-500), var(--shadow-sm); }
.c-audience li i { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--emerald-900); color: var(--gold-300); }
.c-req { margin-top: 1.6rem; padding: 1.5rem 1.6rem; border-radius: var(--radius-lg); background: var(--sand-200); }
.c-req h3 i { color: var(--gold-700); margin-right: .4rem; }
.c-req ul { display: grid; gap: .55rem; }
.c-req li { position: relative; padding-left: 1.2rem; font-size: .94rem; color: var(--ink-700); }
.c-req li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-600); }

/* Reviews */
.c-reviews { display: grid; grid-template-columns: 240px 1fr; gap: 1.6rem; align-items: start; }
.c-score { padding: 1.6rem; border-radius: var(--radius-lg); background: var(--emerald-900); color: var(--ivory-50); }
.c-score > b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 4rem; line-height: 1; color: var(--gold-300); }
.c-score > small { display: block; margin-top: .3rem; font-size: .82rem; color: rgba(246,238,219,.65); }
.c-bars { display: grid; gap: .4rem; margin-top: 1.2rem; }
.c-bars li { display: grid; grid-template-columns: 30px 1fr 34px; align-items: center; gap: .5rem; font-size: .72rem; color: rgba(246,238,219,.7); }
.c-bars i { height: 6px; border-radius: 6px; background: rgba(246,238,219,.12); overflow: hidden; }
.c-bars em { display: block; height: 100%; background: var(--grad-gold); transform-origin: 0 50%; transform: scaleX(0); }
.c-review-list { display: grid; gap: .8rem; }
.c-review { padding: 1.3rem 1.4rem; border-radius: var(--radius-lg); background: var(--ivory-50); box-shadow: inset 0 0 0 1px var(--line-light); }
.c-review p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; color: var(--ink-900); margin: .6rem 0 .9rem; }
.c-review footer { display: flex; align-items: center; gap: .7rem; font-size: .86rem; }
.c-review__av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: var(--emerald-950); font-family: var(--font-display); font-size: 1.1rem; }
.c-review footer span { color: var(--ink-500); }
.c-review footer i { color: var(--emerald-600); margin-right: .25rem; }

/* FAQ uses the homepage .qa styles */
.c-faq { border-radius: var(--radius-lg); }

/* Purchase card */
.c-buy { position: relative; }
.c-buy__card { transition: transform .5s var(--ease-out); }
.tabs-shifted .c-buy__card { transform: translate3d(0, 76px, 0); }
.c-buy__card { position: sticky; top: 84px; margin-top: 3rem; padding: 1.6rem; border-radius: var(--radius-lg); background: #fffdf8; box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line-light); }
.c-buy__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .7rem; }
.c-buy__price b { font-family: var(--font-display); font-weight: 400; font-size: 3rem; line-height: 1; }
.c-buy__price s { color: var(--ink-300); }
.c-buy__off { padding: .2rem .55rem; border-radius: var(--radius-xs); background: rgba(35,112,79,.1); color: var(--emerald-600); font-size: .78rem; font-weight: 600; }
.c-buy__note { margin: .5rem 0 1.2rem; font-size: .82rem; color: var(--gold-700); }
.c-buy__card .btn + .btn { margin-top: .6rem; }
.c-buy__list { display: grid; gap: .55rem; margin: 1.4rem 0 1.1rem; padding-top: 1.2rem; border-top: 1px solid var(--line-light); }
.c-buy__list li { display: flex; gap: .65rem; align-items: center; font-size: .88rem; color: var(--ink-700); }
.c-buy__list i { width: 18px; text-align: center; color: var(--emerald-700); }
.c-buy__secure { font-size: .78rem; color: var(--ink-500); }
.c-buy__secure i { color: var(--emerald-600); margin-right: .3rem; }
.c-buy__share { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line-light); }
.c-buy__share button { font-size: .85rem; font-weight: 500; color: var(--emerald-700); }
.c-buy__share i { margin-right: .35rem; }
.c-buy__share a { font-size: .85rem; font-weight: 500; color: var(--gold-700); }

/* Related */
.c-related { background: var(--sand-200); padding: var(--section-y) 0; }
.c-related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.c-rel { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--ivory-50); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.c-rel:hover { transform: translate3d(0, -6px, 0); box-shadow: var(--shadow-md); }
.c-rel__img { aspect-ratio: 16 / 10; overflow: hidden; }
.c-rel__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.c-rel:hover .c-rel__img img { transform: scale(1.07); }
.c-rel__body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.c-rel__body small { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald-600); }
.c-rel__body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
.c-rel__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--ink-500); }
.c-rel__foot b { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; color: var(--ink-900); }
.c-rel__foot i { color: var(--gold-600); }

.c-related__all { margin-top: 2rem; text-align: center; }

/* CTA band */
.c-cta { background: var(--grad-emerald); color: var(--ivory-50); padding: 5.5rem 0; }
.c-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.c-cta .h2 { margin-top: 1rem; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.8rem); }

/* Mobile buy bar */
.c-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom)); background: var(--emerald-950); color: var(--ivory-50); box-shadow: 0 -10px 30px rgba(3,17,11,.25); transform: translate3d(0, 110%, 0); transition: transform .5s var(--ease-out); }
.c-mbar.is-on { transform: none; }
.c-mbar b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.c-mbar s { margin-left: .4rem; font-size: .8rem; color: rgba(246,238,219,.5); }

/* Dialogs */
.c-dialog { width: min(560px, calc(100% - 2rem)); padding: 0; border: 0; border-radius: var(--radius-lg); background: #fffdf8; color: var(--ink-900); box-shadow: var(--shadow-lg); overflow: hidden; }
.c-dialog--video { width: min(880px, calc(100% - 2rem)); background: var(--emerald-950); color: var(--ivory-50); }
.c-dialog[open] { animation: cDlg .45s var(--ease-out); }
.c-dialog::backdrop { background: rgba(3,17,11,.72); }
@keyframes cDlg { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.98); } }
.c-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; font-size: .9rem; border-bottom: 1px solid var(--line-light); }
.c-dialog--video .c-dialog__head { border-color: var(--line-dark); }
.c-dialog__head i { color: var(--gold-600); margin-right: .35rem; }
.c-dialog__x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px currentColor; opacity: .7; }
.c-dialog__x:hover { opacity: 1; }
.c-dialog__x i { color: inherit; margin: 0; }
.c-dialog video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.c-dialog__note { padding: .8rem 1.2rem 1rem; font-size: .78rem; color: rgba(246,238,219,.6); }
.c-order { padding: 1.3rem 1.3rem 1.4rem; display: grid; gap: 1.1rem; }
.c-order__item { display: flex; gap: .9rem; align-items: center; }
.c-order__item img { width: 84px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.c-order__item b { display: block; font-weight: 600; line-height: 1.3; }
.c-order__item span { font-size: .82rem; color: var(--ink-500); }
.c-order__rows { display: grid; gap: .5rem; padding: 1rem 0; border-block: 1px dashed var(--sand-300); }
.c-order__rows div { display: flex; justify-content: space-between; font-size: .92rem; color: var(--ink-700); }
.c-order__rows dd { margin: 0; }
.c-order__rows .good { color: var(--emerald-600); font-weight: 500; }
.c-order__rows .total { font-weight: 600; color: var(--ink-900); font-size: 1.05rem; }
.c-order__fine { font-size: .76rem; color: var(--ink-500); }

/* Toast */
.c-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; padding: .7rem 1.1rem; border-radius: var(--radius-pill); background: var(--emerald-950); color: var(--ivory-50); font-size: .88rem; box-shadow: var(--shadow-md); opacity: 0; transform: translate3d(-50%, 20px, 0); pointer-events: none; transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.c-toast.is-on { opacity: 1; transform: translate3d(-50%, 0, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .c-body { grid-template-columns: 1fr; gap: 0; }
  .c-buy { display: none; }
  .c-mbar { display: flex; }
  .c-toast { bottom: 90px; }
}
@media (min-width: 641px) and (max-width: 1080px) { .c-tabs__buy { display: flex; } }
@media (max-width: 900px) {
  .c-hero { padding-top: 7rem; }
  .c-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .c-stats { grid-template-columns: 1fr 1fr; }
  .c-learn, .c-includes ul { grid-template-columns: 1fr; }
  .c-cert { grid-template-columns: 1fr; padding: 1.8rem; }
  .c-reviews { grid-template-columns: 1fr; }
  .c-related__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .c-hero__ctas .btn { flex: 1 1 100%; justify-content: center; }
  .c-audience, .c-related__grid { grid-template-columns: 1fr; }
  .c-mod summary { grid-template-columns: 38px 1fr 22px; }
  .c-mod__meta { display: none; }
  .c-mod ul { padding-left: 1.3rem; }
  .c-learn { padding: 1.2rem; }
  .c-tabs nav a { padding: 0 .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Classic course page — clean pass (v2). Later in the file so it refines the
   rules above; carries its own responsive rules.
   ========================================================================== */
.c-hero { padding-bottom: 5rem; }
.c-hero__bg { opacity: .16; }
.c-title { max-width: 16ch; }
.c-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.3rem; margin-top: 1.4rem; font-size: .9rem; color: rgba(246,238,219,.75); }
.c-meta li { display: inline-flex; align-items: center; gap: .45rem; }
.c-meta li i { color: var(--gold-400); font-size: .85rem; }
.c-meta__rate a { display: inline-flex; align-items: center; gap: .5rem; color: var(--ivory-50); }
.c-meta__rate b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1; color: var(--gold-300); }
.c-meta__rate a > span:last-child { border-bottom: 1px solid var(--line-dark); }
.c-price { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); max-width: 620px; }
.c-price__now { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .8rem; }
.c-price__now b { font-family: var(--font-display); font-weight: 400; font-size: 2.8rem; line-height: 1; color: var(--ivory-50); }
.c-price__now s { color: rgba(246,238,219,.45); }
.c-price__now span { font-size: .82rem; color: var(--gold-300); }
.c-price .c-hero__ctas { margin-top: 1.2rem; }
.c-trust { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.2rem; font-size: .8rem; color: rgba(246,238,219,.6); }
.c-trust i { color: var(--gold-400); margin-right: .35rem; }

/* section rhythm: hairline between plain sections, cards keep their own edges */
.c-main > .c-sec:not(.c-cert):not(:first-child) { margin-top: 4rem; border-top: 1px solid var(--line-light); }
.c-sub { font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem; margin: 2.2rem 0 1rem; color: var(--ink-900); }
.c-lead { font-size: 1.12rem; line-height: 1.7; color: var(--ink-700); max-width: 64ch; }

.c-learn { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.2rem; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.c-learn li { padding: .95rem 0; border-top: 1px solid var(--line-light); font-size: .97rem; }
.c-learn li i { background: var(--emerald-900); color: var(--gold-300); }
.c-includes--mobile { display: none; }

.c-who { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.4rem; align-items: start; }
.c-who .c-sub { margin-top: 0; }
.c-audience { display: grid; grid-template-columns: 1fr; gap: 0; }
.c-audience li { padding: .75rem 0; gap: .8rem; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--line-light); font-size: .95rem; }
.c-audience li:hover { transform: none; box-shadow: none; }
.c-audience li i { width: 32px; height: 32px; border-radius: 10px; background: rgba(35,112,79,.1); color: var(--emerald-700); font-size: .85rem; }
.c-req { margin-top: 0; padding: 1.4rem 1.5rem; border-radius: var(--radius-lg); background: var(--sand-200); }
.c-req ul { gap: .7rem; }

.c-faculty { display: grid; grid-template-columns: 88px 1fr auto; gap: 1.2rem; align-items: center; margin-top: 2.4rem; padding: 1.2rem 1.4rem; border-radius: var(--radius-lg); background: var(--ivory-50); box-shadow: inset 0 0 0 1px var(--line-light); }
.c-faculty img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: center 20%; box-shadow: 0 0 0 3px var(--ivory-50), 0 0 0 4px var(--gold-500); }
.c-faculty__k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); }
.c-faculty__t { margin-top: .3rem; font-size: .95rem; color: var(--ink-700); }
.c-faculty__link { font-size: .86rem; font-weight: 500; color: var(--emerald-700); white-space: nowrap; }
.c-faculty__link i { margin-left: .3rem; transition: transform .35s var(--ease-out); }
.c-faculty__link:hover i { transform: translate3d(3px, 0, 0); }

/* purchase card with preview thumbnail */
.c-buy__card { padding: 0; overflow: hidden; }
.c-buy__thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer; }
.c-buy__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.c-buy__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,17,11,.7), rgba(3,17,11,.1) 60%); }
.c-buy__thumb:hover img { transform: scale(1.06); }
.c-buy__thumb span { position: absolute; left: 50%; top: 45%; z-index: 1; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: var(--emerald-950); box-shadow: var(--shadow-gold); }
.c-buy__thumb span i { margin-left: 3px; }
.c-buy__thumb small { position: absolute; left: 0; right: 0; bottom: .8rem; z-index: 1; text-align: center; font-size: .8rem; color: var(--ivory-50); }
.c-buy__body { padding: 1.4rem 1.5rem 1.3rem; }
.c-buy__h { margin: 1.3rem 0 .2rem; font-size: .82rem; font-weight: 600; color: var(--ink-900); }
.c-buy__list { margin-top: .7rem; padding-top: 0; border-top: 0; }
.c-buy__links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-light); font-size: .85rem; font-weight: 500; }
.c-buy__links button { color: var(--emerald-700); }
.c-buy__links a { color: var(--gold-700); }
.c-buy__links i { margin-right: .35rem; }

@media (max-width: 1080px) {
  .c-includes--mobile { display: block; }
  .c-includes--mobile .c-sub { margin-top: 0; }
  .c-includes--mobile { margin-top: 2rem; }
}
@media (max-width: 900px) {
  .c-learn, .c-who { grid-template-columns: 1fr; }
  .c-who { gap: 1.6rem; }
}
@media (max-width: 560px) {
  .c-price__now b { font-size: 2.3rem; }
  .c-faculty { grid-template-columns: 64px 1fr; }
  .c-faculty img { width: 64px; height: 64px; }
  .c-faculty__link { grid-column: 1 / -1; }
}
