:root {
  /* Cizogn Academy palette: deep forest green, terracotta, warm gold on cream */
  --ink: #1e2a23;
  --muted: #5f6b63;
  --line: #e8e0d3;
  --bg: #fffdf9;
  --soft: #f6f0e6;
  --brand: #1f4d3a;          /* forest green */
  --brand-dark: #14372a;
  --brand-soft: #e3eee6;
  --accent: #e3a83b;         /* warm gold */
  --terracotta: #b8572a;
  --terracotta-soft: #f7e6da;
  --navy: #1d3557;
  --navy-soft: #e3e9f2;
  --danger: #b42318;
  --radius: 16px;
  --shadow: 0 14px 34px rgba(31, 42, 35, .10);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .6em; font-family: var(--serif); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.01em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 20px; }
.band { background: var(--soft); }
.muted { color: var(--muted); }
.center { text-align: center; }
.fine { font-size: .85rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin: 0 0 .7em; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 40px; }
.inline { display: inline; }

/* nav */
.nav { border-bottom: 1px solid var(--line); background: rgba(255,253,249,.96); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 20; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--brand); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav nav { display: flex; gap: 18px; align-items: center; }
.nav nav a { text-decoration: none; color: var(--ink); font-weight: 500; }

/* buttons */
.btn { display: inline-block; background: var(--brand); color: #fff !important; border: 0; border-radius: 10px; padding: 12px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .7; cursor: default; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.08rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-ghost { background: transparent; color: var(--brand) !important; border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--soft); }
.link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; margin-right: 10px; }
.link.danger { color: var(--danger); }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--brand); color: #fbf6ec; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -140px; top: -180px; background: #2b5f48; }
.hero::after { width: 260px; height: 260px; right: 60px; bottom: -150px; background: var(--terracotta); opacity: .9; }
.hero .hero-inner { position: relative; z-index: 1; }
.hero h1 { color: #fffaf0; }
.hero .lead, .hero .muted { color: #d9e4dc; }
.hero .eyebrow, .hero .eyebrow a { color: var(--accent); }
.hero .btn { background: var(--accent); color: #2a1e05 !important; }
.hero .btn:hover { background: #f0bb57; }
.hero .btn-ghost { background: transparent; color: #fffaf0 !important; border-color: rgba(255,250,240,.45); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero-inner { padding: 88px 20px 72px; max-width: 820px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 28px; }

/* lists */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 6px 0 6px 32px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }

/* curriculum */
.modules { display: grid; gap: 14px; margin-top: 24px; }
.module { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 4px 20px; }
.module summary, .module h3 { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; padding: 14px 0; cursor: pointer; font-size: 1.05rem; margin: 0; }
.module summary span { color: var(--muted); font-weight: 500; font-size: .9rem; white-space: nowrap; }
.module ol { margin: 0 0 14px; padding-left: 20px; }
.module li { padding: 8px 0; border-top: 1px solid var(--line); }
.module li > span:first-child, .module li > a, .module li > .locked { display: block; }
.module li .muted { font-size: .85rem; }
.module li.done > a { color: var(--muted); }
.tag { font-style: normal; font-size: .72rem; background: var(--terracotta-soft); color: var(--terracotta); padding: 2px 8px; border-radius: 99px; font-weight: 700; margin-left: 6px; }
.locked { color: var(--muted); }

.instructor { display: flex; gap: 28px; align-items: flex-start; }
.avatar { flex: 0 0 96px; height: 96px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 2.4rem; font-weight: 800; display: grid; place-items: center; }

/* pricing */
.price-card { max-width: 480px; margin: 0 auto; background: #fff; border: 2px solid var(--brand); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.price { font-size: 3rem; font-weight: 800; margin: 0 0 18px; letter-spacing: -.02em; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.price-card .btn { margin-top: 22px; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { padding: 16px 0; font-weight: 600; cursor: pointer; }
.final-cta { text-align: center; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .85rem; color: var(--muted); }

/* cards / forms */
body.auth main { background: var(--soft); min-height: calc(100vh - 64px); padding: 48px 16px; }
.card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 36px; }
.narrow { max-width: 480px; margin: 0 auto; }
.step { font-size: .82rem; font-weight: 700; color: var(--brand); margin: 0 0 8px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], input:not([type]) { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .86rem; color: var(--muted); }
label.check input { margin-top: 4px; }
.error { background: #fdecea; color: var(--danger); padding: 10px 14px; border-radius: 10px; }
.notice { background: #fff8e6; color: #6b4a00; padding: 10px 14px; border-radius: 10px; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 18px 0; }
.price-sm { font-size: 1.5rem; font-weight: 800; }
.big-check { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 2.2rem; display: grid; place-items: center; font-weight: 800; }

/* dashboard */
.callout, .progress-card { background: var(--soft); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; display: grid; gap: 14px; justify-items: start; }
progress.bar { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: #dfe7ea; }
progress.bar::-webkit-progress-bar { background: #dfe7ea; border-radius: 99px; }
progress.bar::-webkit-progress-value { background: var(--brand); border-radius: 99px; }
progress.bar::-moz-progress-bar { background: var(--brand); border-radius: 99px; }

/* lesson */
.lesson-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding-top: 32px; padding-bottom: 64px; }
.lesson-nav { font-size: .9rem; position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; }
.lesson-nav .mod { font-weight: 700; margin: 18px 0 6px; }
.lesson-nav ol { margin: 0; padding-left: 18px; }
.lesson-nav li { padding: 3px 0; }
.lesson-nav li.current a { font-weight: 700; color: var(--ink); }
.lesson { min-width: 0; }
.protected-content { position: relative; }
.prose { font-size: 1.05rem; max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose blockquote { border-left: 4px solid var(--accent); margin: 1.2em 0; padding: 4px 18px; background: #fffaf0; }
.slides { display: grid; gap: 18px; margin-bottom: 28px; }
.slide-frame { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.slide { display: block; width: 100%; height: auto; pointer-events: none; }
.video-frame { position: relative; border-radius: 12px; overflow: hidden; background: #0d1620; margin-bottom: 28px; aspect-ratio: 16/9; }
.video-frame video { width: 100%; height: 100%; display: block; }
.video-frame.placeholder { display: grid; place-items: center; color: #cbd5df; padding: 20px; text-align: center; }
.wm-float { position: absolute; z-index: 3; pointer-events: none; color: rgba(255,255,255,.55); font-size: .8rem; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.6); transition: left 1.2s ease, top 1.2s ease; white-space: nowrap; }
.lesson-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------------------------------------------------------------- protection */
body.protected { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.protected img, body.protected video { -webkit-user-drag: none; user-select: none; }
.wm-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 70px 90px; padding: 20px; transform: rotate(-22deg) scale(1.6); opacity: .09; font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.wm-layer.wm-page { position: fixed; z-index: 15; opacity: .045; }
#shield { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(13, 22, 32, .92); color: #fff; text-align: center; cursor: pointer; }
#shield[hidden] { display: none; }
body.shielded main, body.devtools main { filter: blur(28px); }
body.devtools main::after { content: ""; }

@media print {
  body * { display: none !important; }
  body::before { content: "Printing course materials is not permitted."; display: block; font-size: 20pt; padding: 40pt; }
}

/* admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 18px 0 36px; }
.stats div { background: var(--soft); border-radius: 12px; padding: 18px; }
.stats strong { display: block; font-size: 1.6rem; }
.stats span { color: var(--muted); font-size: .88rem; }
.table-wrap { overflow-x: auto; margin-bottom: 36px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--soft); font-weight: 700; }

@media (max-width: 820px) {
  .lesson-wrap { grid-template-columns: 1fr; gap: 20px; }
  .lesson-nav { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .section { padding: 44px 16px; }
  .wrap { padding: 0 16px; }
  .instructor { flex-direction: column; }
  .card, .price-card { padding: 24px; }
  .nav nav { gap: 12px; font-size: .92rem; }
}

/* ---------------------------------------------------------------- catalogue */
.small { font-size: .88rem; }
.h3 { font-size: 1.25rem; }
.spaced { margin-top: 48px; }
.section-lead { max-width: 720px; margin-top: -4px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 24px; }
.course-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 2px 10px rgba(21,33,46,.04); transition: box-shadow .15s, transform .15s; }
.course-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.course-card h3 { font-size: 1.08rem; margin-bottom: .5em; }
.course-card h3 a { color: var(--ink); text-decoration: none; }
.course-card p { margin: 0 0 10px; color: var(--muted); font-size: .94rem; }
.course-card .meta { font-size: .82rem; }
.course-card.bundle { border: 2px solid var(--accent); }
.course-card.mine progress { margin: 4px 0 6px; }
.ribbon { position: absolute; top: -12px; left: 18px; background: var(--accent); color: #3d2a00; font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price-tag { font-size: 1.2rem; }
.price-tag s { font-size: .85rem; color: var(--muted); font-weight: 500; }
.owned { color: var(--brand); font-weight: 700; font-size: .9rem; }
.eyebrow a { color: inherit; text-decoration: none; }

.q-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 24px; }
.q-list li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .94rem; }
.q-code { flex: 0 0 auto; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; min-width: 2.6em; }
.q-list span { color: var(--muted); }

.save { color: var(--brand); font-weight: 700; margin: -10px 0 16px; }
.upsell { max-width: 640px; margin: 24px auto 0; display: flex; gap: 16px; align-items: center; justify-content: space-between; background: #fff8e6; border-radius: var(--radius); padding: 18px 22px; }
.upsell p { margin: 4px 0 0; }
.disclaimer { margin-top: 18px; }

.enr { font-size: .85rem; white-space: nowrap; }
.enr.off { opacity: .55; }
.admin-actions { display: flex; gap: 8px; align-items: center; }
.admin-actions select { font: inherit; font-size: .82rem; padding: 4px; max-width: 180px; }

@media (max-width: 820px) {
  .hide-sm { display: none; }
  .upsell { flex-direction: column; align-items: flex-start; }
  .q-list { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- category colours */
.cat-nurse-interview { --cat: var(--navy); --cat-soft: var(--navy-soft); }
.cat-meal-plan { --cat: #2f6b46; --cat-soft: var(--brand-soft); }
.cat-skincare { --cat: var(--terracotta); --cat-soft: var(--terracotta-soft); }
.cat-section h2 { color: var(--cat); }
.cat-eyebrow { color: var(--cat); }
.course-card { border-top: 5px solid var(--cat, var(--brand)); }
.course-card.bundle { border: 2px solid var(--accent); border-top: 5px solid var(--accent); background: linear-gradient(180deg, #fffaf0, #fff); }
.course-card h3 a:hover { color: var(--cat, var(--brand)); }
.course-card .btn-ghost { color: var(--cat, var(--brand)) !important; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 99px; background: rgba(255,250,240,.1); border: 1px solid rgba(255,250,240,.3); color: #fffaf0; text-decoration: none; font-weight: 600; transition: background .15s; }
.pill:hover { background: rgba(255,250,240,.2); }
.pill span { width: 12px; height: 12px; border-radius: 50%; background: var(--cat); box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.hero-course.cat-nurse-interview { background: var(--navy); }
.hero-course.cat-nurse-interview::before { background: #2a4a72; }
.hero-course.cat-nurse-interview::after { background: #3a8f86; }
.hero-course.cat-skincare { background: #2c3a2a; }
.hero-course.cat-skincare::before { background: #3c4e39; }
.band { background: var(--soft); }
.band.cat-section { background: var(--soft); }
.q-list.recipes .q-code { min-width: 7.5em; color: var(--terracotta); }
.price-card { border-color: var(--brand); background: #fff; }
.ribbon { background: var(--accent); }
.footer { background: var(--brand); color: #cddbd1; border-top: 0; }
.footer a { color: #fff; }
body.auth main { background: var(--soft); }
progress.bar::-webkit-progress-value { background: var(--terracotta); }
progress.bar::-moz-progress-bar { background: var(--terracotta); }
.avatar { background: var(--terracotta); font-family: var(--serif); }

/* wider lesson layout + tap-to-enlarge slides */
.lesson-wrap { max-width: 1320px; grid-template-columns: 250px 1fr; }
.lesson-nav ol { padding-left: 28px; }
.slide-frame { cursor: zoom-in; }
.slide-frame.zoomed { position: fixed; inset: 0; z-index: 60; border-radius: 0; border: 0; background: #141c17; display: grid; place-items: center; cursor: zoom-out; padding: 2vh 2vw; }
.slide-frame.zoomed .slide { width: auto; height: auto; max-width: 100%; max-height: 96vh; }
.zoom-hint { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
