/* Shared styles for the course app pages (checkout, dashboard, lessons, test, trainer, certificates). */
:root {
  --forest: #1f4032;
  --forest-deep: #14291f;
  --cream: #ffffff;
  --paper: #ffffff;
  --sage: #e9efdf;
  --sage-deep: #d6e5c5;
  --ink: #1c2620;
  --ink-soft: #56615a;
  --line: #e3ddcf;
  --gold: #f0a93a;
  --peach: #fbdcc8;
  --alert: #a3341f;
  --ribbon: #2459c4;
  --display: "Newsreader", Georgia, serif;
  --body: "Nunito Sans", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --gutter: clamp(18px, 4vw, 48px);
  --measure: 1180px;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
main { flex: 1; width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* bundles */
.bundles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.bundle { display: grid; grid-template-columns: 160px minmax(0, 1fr); border: 1.5px solid var(--forest); border-radius: 14px; overflow: hidden; background: #fff; }
.bundle img { width: 100%; height: 100%; object-fit: cover; }
.bundle-body { display: flex; flex-direction: column; padding: 18px 20px; }
.bundle-who { font-size: 0.875rem; font-weight: 700; color: var(--forest); }
.bundle-name { margin-top: 2px; font-family: var(--display); font-weight: 600; font-size: 1.375rem; }
.bundle-what { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-soft); }
.bundle-list { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-soft); }
.bundle-buy { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bundle-price { font-family: var(--display); font-size: 1.75rem; line-height: 1.1; }
.bundle-worth { font-family: var(--body); font-size: 0.8125rem; color: var(--ink-soft); }
.bundle .p-save { font-size: 12px; }
.bundle .btn { padding: 10px 18px; font-size: 0.9375rem; }
@media (max-width: 520px) { .bundle { grid-template-columns: minmax(0, 1fr); } .bundle img { aspect-ratio: 16 / 7; } }

/* launch-offer prices */
.p-now { font-weight: inherit; }
.p-was { font-family: var(--body); font-size: 0.55em; font-weight: 600; color: var(--ink-soft); text-decoration-thickness: 1.5px; vertical-align: 0.2em; }
.p-save { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #f6e3b4; color: #5a430d; font-family: var(--body); font-size: max(12px, 0.45em); font-weight: 800; vertical-align: 0.35em; white-space: nowrap; }
.sale-note { font-size: 0.875rem; font-weight: 700; color: #8a5a00; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest); }
.title { font-family: var(--display); font-weight: 500; font-size: clamp(1.875rem, 3.4vw, 2.625rem); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
.subtitle { font-family: var(--display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9375rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 999px; border: 0; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover:not(:disabled) { background: var(--forest-deep); }
.btn-line { color: var(--forest-deep); box-shadow: inset 0 0 0 1.5px var(--forest); background: transparent; }
.btn-line:hover { background: var(--sage); }
.btn-warn { color: var(--alert); box-shadow: inset 0 0 0 1.5px var(--alert); background: transparent; }
.btn-warn:hover { background: #fbe9e4; }
.btn-small { padding: 8px 16px; font-size: 0.9375rem; }
.arrow::after { content: "→"; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* demo notice + header */
.demo-bar { background: #f6e3b4; color: #4a3a12; font-size: 0.875rem; padding-block: 7px; }
.demo-bar .link-btn { margin-left: 6px; }
.app-bar { background: var(--forest-deep); color: #fff; }
.app-bar-inner { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 500; font-size: 1.375rem; text-decoration: none; }
.logo svg { width: 28px; height: 28px; fill: currentColor; }
.app-nav { display: flex; gap: 22px; margin-right: auto; font-weight: 600; font-size: 0.9375rem; }
.app-nav a { text-decoration: none; padding-bottom: 3px; color: #d5ddd3; }
.app-nav a:hover, .app-nav a[aria-current="page"] { color: #fff; box-shadow: 0 2px 0 currentColor; }
.app-who { display: flex; align-items: center; gap: 14px; font-size: 0.9375rem; }
.app-login { color: #fff; font-weight: 700; text-decoration: none; padding: 8px 4px; }
.app-login:hover { text-decoration: underline; }
.app-user { font-weight: 700; }
.app-foot { background: var(--forest-deep); color: #d5ddd3; font-size: 0.9375rem; padding-block: 40px 24px; margin-top: 72px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-cols ul { display: grid; gap: 6px; align-content: start; }
.foot-cols b { color: #fff; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }
.app-foot .logo { color: #fff; }
.foot-tag { margin-top: 6px; }
.foot-base { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.8125rem; }

/* public content pages */
.hero-band { position: relative; isolation: isolate; color: #fff; background: var(--forest-deep); overflow: hidden; }
.hero-band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 26, 17, 0.85), rgba(12, 26, 17, 0.35) 70%, rgba(12, 26, 17, 0.15)); }
.hero-band .wrap { padding-block: clamp(56px, 8vw, 104px); }
.hero-band .eyebrow { color: #fff; }
.hero-band h1 { margin-top: 10px; font-family: var(--display); font-weight: 500; font-size: clamp(2.375rem, 5vw, 3.75rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 14em; }
.hero-band p { margin-top: 16px; max-width: 32em; font-size: 1.125rem; }
.section { padding-block: clamp(48px, 6vw, 80px); }
.section + .section { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.split .title { margin-top: 8px; }
.split p { margin-top: 14px; color: var(--ink-soft); max-width: 34em; }
.split .btn { margin-top: 22px; }
.prose { max-width: 46em; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 1.625rem; margin-top: 36px; }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }
.draft-note { background: #fdf0d6; border-radius: 12px; padding: 14px 18px; font-size: 0.9375rem; max-width: 46em; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.values h3 { font-family: var(--display); font-weight: 600; font-size: 1.3125rem; }
.values p { margin-top: 6px; color: var(--ink-soft); font-size: 0.9375rem; }

/* full course list */
.course-full { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; scroll-margin-top: 20px; }
.course-full + .course-full { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.course-full img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.course-full .subtitle { font-size: 2rem; }
.course-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; color: var(--forest); font-size: 0.9375rem; }
.curriculum { margin-top: 18px; list-style: none; counter-reset: les; display: grid; gap: 2px; }
.curriculum li { counter-increment: les; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.curriculum li::before { content: counter(les) "."; font-weight: 800; color: var(--forest); }
.curriculum .mins { color: var(--ink-soft); }
.curriculum .is-test { counter-increment: none; }
.curriculum .is-test::before { content: "★"; color: var(--gold); }
.buy-row { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.buy-row .price { font-family: var(--display); font-weight: 500; font-size: 2rem; line-height: 1; }

/* faq + contact */
.faq-group + .faq-group { margin-top: 36px; }
.faq-group h2 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding-block: 15px; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--forest); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; color: var(--ink-soft); max-width: 42em; }
.contact-ways { display: grid; gap: 14px; }
.contact-ways .panel h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.contact-ways .panel p { margin-top: 4px; color: var(--ink-soft); font-size: 0.9375rem; }

@media (max-width: 900px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .split, .course-full, .values { grid-template-columns: minmax(0, 1fr); }
  .hero-band::before { background: rgba(12, 26, 17, 0.68); }
}

.page { padding-top: clamp(32px, 5vw, 56px); }
.page-head { margin-bottom: 28px; }
.page-head .title { margin-top: 8px; }
.page-head p { margin-top: 10px; max-width: 40em; }

/* panels + forms */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.field { display: grid; gap: 6px; margin-top: 18px; }
.field label { font-weight: 800; font-size: 0.9375rem; }
.field .hint { font-size: 0.875rem; color: var(--ink-soft); }
.input, .select, .textarea { width: 100%; padding: 12px 16px; background: #fff; border: 1.5px solid #c9c2b2; border-radius: 10px; font-size: 1rem; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--forest); outline: none; box-shadow: 0 0 0 3px rgba(31, 64, 50, 0.18); }
.textarea { min-height: 96px; resize: vertical; }
.error { color: var(--alert); font-weight: 700; font-size: 0.9375rem; margin-top: 12px; }
.notice { background: var(--sage); border-radius: 12px; padding: 14px 18px; font-size: 0.9375rem; }
.notice-warm { background: #fdf0d6; }

.summary img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.summary h2 { margin-top: 16px; }
.summary dl { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.9375rem; }
.summary dt { color: var(--ink-soft); }
.summary dd { text-align: right; font-weight: 700; }
.summary .total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-size: 1.0625rem; }
.checklist { margin-top: 16px; display: grid; gap: 8px; font-size: 0.9375rem; }
.checklist li { display: flex; gap: 10px; }
.checklist li::before { content: "✓"; color: var(--forest); font-weight: 900; }

/* dashboard */
.course-list { display: grid; gap: 18px; }
.course-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.course-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.course-row .subtitle { font-size: 1.375rem; }
.status { margin-top: 6px; font-size: 0.9375rem; font-weight: 700; color: var(--forest); }
.status-wait { color: #8a5a00; }
.status-retry { color: var(--alert); }
.bar { margin-top: 12px; height: 8px; border-radius: 999px; background: var(--sage); overflow: hidden; max-width: 360px; }
.bar span { display: block; height: 100%; background: var(--forest); border-radius: inherit; }
.row-actions { display: grid; gap: 8px; justify-items: end; }
.empty { text-align: center; padding: clamp(32px, 6vw, 64px) 20px; }
.empty p { margin: 10px auto 22px; max-width: 30em; }
.cert-mini-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.cert-mini { display: block; text-decoration: none; background: #fff; border: 1.5px solid var(--forest); border-radius: 12px; padding: 16px 18px; }
.cert-mini b { display: block; font-family: var(--hand); font-size: 2rem; line-height: 1.1; }
.cert-mini span { display: block; font-size: 0.875rem; color: var(--ink-soft); }

/* lesson player */
.player { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.lesson-nav { position: sticky; top: 16px; }
.lesson-nav h2 { font-size: 1.25rem; }
.lesson-nav .bar { max-width: none; margin-bottom: 14px; }
.lesson-nav ol { list-style: none; display: grid; gap: 4px; }
.lesson-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 0.9375rem; }
.lesson-link:hover { background: var(--sage); }
.lesson-link[aria-current="page"] { background: var(--forest); color: #fff; }
.tick { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 0.75rem; font-weight: 900; }
.is-done .tick { background: var(--forest); border-color: var(--forest); color: #fff; }
.lesson-link[aria-current="page"] .tick { border-color: #fff; }
.is-locked { opacity: 0.55; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--forest-deep); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.video-btn { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; }
.video-btn::before { content: ""; border-left: 24px solid var(--forest-deep); border-block: 15px solid transparent; margin-left: 7px; }
.video-note { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; font-weight: 700; font-size: 0.9375rem; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.lesson-body { margin-top: 24px; max-width: 46em; }
.lesson-body .title { margin-top: 6px; }
.lesson-body > p { margin-top: 12px; }
.practice { margin-top: 22px; }
.practice h2 { font-size: 1.25rem; font-family: var(--display); font-weight: 600; }
.practice ol { margin-top: 10px; padding-left: 1.4em; display: grid; gap: 8px; }
.practice li::marker { font-weight: 800; color: var(--forest); }
.lesson-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* final test */
.upload { margin-top: 18px; border: 2px dashed #b9b19f; border-radius: 14px; padding: 22px; text-align: center; background: #fff; }
.upload video { width: 100%; max-height: 360px; border-radius: 10px; background: #000; margin-top: 14px; }
.state { display: flex; gap: 16px; align-items: flex-start; }
.state-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sage-deep); font-size: 1.5rem; }
.trainer-notes { margin-top: 12px; background: #fff; border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 6px; }

/* trainer view */
.review { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px; }
.review video { width: 100%; border-radius: 10px; background: #000; aspect-ratio: 16 / 9; }
.review-novideo { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--sage); color: var(--ink-soft); padding: 20px; text-align: center; font-size: 0.9375rem; }
.review dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 0.9375rem; margin-top: 10px; }
.review dt { color: var(--ink-soft); }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.history { margin-top: 12px; display: grid; gap: 8px; font-size: 0.9375rem; }
.history li { display: flex; justify-content: space-between; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }

/* certificate */
.cert-stage { display: grid; place-items: center; padding: clamp(16px, 4vw, 40px) 0 70px; }
.cert { position: relative; width: min(760px, 100%); background: #fff; padding: 14px; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12), 0 24px 40px -20px rgba(20, 41, 31, 0.45); }
.cert-inner { border: 2px solid var(--forest); outline: 1px solid var(--forest); outline-offset: -8px; padding: clamp(30px, 5vw, 56px) clamp(20px, 4vw, 52px) clamp(26px, 4vw, 40px); text-align: center; }
.cert-school { font-weight: 800; letter-spacing: 0.02em; }
.cert-title { margin-top: 6px; font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.125rem); }
.cert-line { margin-top: clamp(14px, 2.4vw, 24px); font-size: 0.9375rem; color: var(--ink-soft); }
.cert-name { padding-bottom: 4px; border-bottom: 1.5px solid var(--ink); font-family: var(--hand); font-weight: 700; font-size: clamp(3rem, 8vw, 5rem); line-height: 1.05; overflow-wrap: anywhere; }
.cert-course { margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.625rem); }
.cert-foot { margin-top: clamp(24px, 4vw, 40px); padding-right: clamp(110px, 16vw, 150px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; font-size: 0.8125rem; color: var(--ink-soft); }
.cert-foot dd { font-family: var(--hand); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
.cert-id { margin-top: 18px; font-size: 0.8125rem; color: var(--ink-soft); text-align: left; }
.rosette { position: absolute; right: clamp(14px, 3vw, 34px); bottom: clamp(-56px, -5vw, -40px); width: clamp(100px, 14vw, 136px); }
.rosette-disc { position: relative; z-index: 1; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(var(--ribbon) 0 9deg, color-mix(in srgb, var(--ribbon) 80%, #000) 9deg 18deg); display: grid; place-items: center; }
.rosette-center { width: 58%; aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--ribbon); display: grid; place-items: center; font-family: var(--display); font-weight: 600; box-shadow: 0 0 0 3px var(--ribbon), 0 0 0 4px #fff; }
.rosette-tails { display: flex; justify-content: center; gap: 4%; margin-top: -22%; }
.rosette-tails i { width: 27%; aspect-ratio: 1 / 2.6; background: var(--ribbon); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.rosette-tails i:first-child { transform: rotate(10deg); }
.rosette-tails i:last-child { transform: rotate(-10deg); background: color-mix(in srgb, var(--ribbon) 86%, #000); }
.cert-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* verify */
.verify-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; max-width: 520px; }
.verify-form .input { flex: 1 1 240px; text-transform: uppercase; }
.result { margin-top: 24px; max-width: 620px; }
.result-ok { border-left: 5px solid var(--forest); }
.result-bad { border-left: 5px solid var(--alert); }

@media (max-width: 900px) {
  .app-bar-inner { flex-wrap: wrap; gap: 10px 20px; }
  .app-nav { order: 3; width: 100%; flex-wrap: wrap; gap: 2px 18px; margin-right: 0; }
  .app-nav a { padding-block: 6px; white-space: nowrap; }
  .player > article { order: 1; }
  .player > .lesson-nav { order: 2; }
  .app-who { margin-left: auto; }
  .two-col, .player, .review { grid-template-columns: minmax(0, 1fr); }
  .lesson-nav { position: static; }
  .course-row { grid-template-columns: minmax(0, 1fr); }
  .row-actions { justify-items: start; }
  .cert-foot { grid-template-columns: 1fr; }
  .demo-bar .link-btn, .app-who .link-btn { padding: 10px 6px; margin: -10px 0; }
}

@media print {
  .demo-bar, .app-bar, .app-foot, .cert-actions, .no-print { display: none !important; }
  body { background: #fff; }
  .cert { box-shadow: none; }
  .cert-stage { padding: 0; }
}
