/* Vantage Clear site styles
   Type: Bitter (slab, official-document feel) for headings; Source Sans 3 for text.
   Color: logo green, deep pine for emphasis bands, seal gold reserved for primary actions and "valid" marks. */

@font-face { font-family: "Bitter"; src: url("/assets/fonts/bitter.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3.woff") format("woff"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-italic.woff") format("woff"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --green: #036f2e;        /* logo green */
  --green-dark: #02561f;
  --pine: #0c3b22;         /* emphasis bands */
  --leaf: #e6f2ea;         /* light tint */
  --seal: #e3b341;         /* certificate-seal gold: primary CTAs + valid marks only */
  --seal-dark: #c99a2a;
  --ink: #16221b;
  --muted: #56665d;
  --line: #d9e4dd;
  --paper: #ffffff;
  --radius: 10px;
  --max: 1140px;
  --display: "Bitter", Georgia, serif;
  --text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 18px/1.6 var(--text); color: var(--ink); background: var(--paper); }
a { color: var(--green); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; margin: 0 0 20px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 750; margin: 0 0 14px; }
h3 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.lead { color: var(--muted); font-size: 20px; max-width: 46ch; margin: 0 0 32px; }
.fine { font-size: 15px; color: var(--muted); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; }
.brand img { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }
.nav .btn { color: var(--pine); }
.menu-toggle { display: none; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 18px 24px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
  .nav.open { display: flex; }
}

/* Buttons: gold = the one thing to do; outline = secondary */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--seal); color: var(--pine); padding: 14px 26px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 17px; border: 2px solid var(--seal); cursor: pointer; font-family: var(--text); line-height: 1.2; }
.btn:hover { background: var(--seal-dark); border-color: var(--seal-dark); }
.btn.secondary { background: transparent; color: var(--green); border-color: var(--green); }
.btn.secondary:hover { background: var(--leaf); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.on-dark .btn.secondary { color: #fff; border-color: rgba(255,255,255,.7); }
.on-dark .btn.secondary:hover { background: rgba(255,255,255,.08); }

section { padding: 88px 0; }
section.tint { background: var(--leaf); }
.on-dark { background: var(--pine); color: #e4efe8; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .lead { color: #c9dccf; }
.on-dark a:not(.btn) { color: #fff; }

/* ---------- Home: hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: 21px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.assurances { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #d3e4d9; font-size: 17px; }
.assurances li { padding-left: 30px; position: relative; }
.assurances li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--seal); color: var(--pine); font-weight: 900; font-size: 13px; display: grid; place-items: center; }
.count-line { margin-top: 26px; font-size: 17px; color: #c9dccf; }
.count-line strong { color: #fff; font-family: var(--display); font-size: 24px; }

/* The memorable element: real certificate + the employer's verification result */
.proof { position: relative; padding: 8px 0 150px 0; }
.proof .certificate { display: block; width: 100%; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); transform: rotate(-2deg); background: #fff; }
.verify-card { position: absolute; right: -8px; bottom: 0; width: min(300px, 70%); background: #fff; color: var(--ink); border-radius: 10px; padding: 16px 18px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); border-top: 5px solid var(--seal); font-size: 15px; animation: verify-in .7s cubic-bezier(.2,.8,.2,1) .5s both; }
.verify-card .status { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--green); margin-bottom: 8px; }
.verify-card dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; }
.verify-card dt { color: var(--muted); }
.verify-card dd { margin: 0; font-weight: 600; }
.verify-card .src { margin-top: 8px; font-size: 13px; color: var(--muted); }
@keyframes verify-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .proof { max-width: 560px; }
  .verify-card { right: 8px; }
  .hero { padding-bottom: 64px; }
}

/* ---------- Home: certification rows (comparison, not identical cards) ---------- */
.fields { border-top: 2px solid var(--ink); margin-top: 36px; }
.field-row { display: grid; grid-template-columns: 1.1fr 1.6fr 250px; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; }
.field-row .who { color: var(--muted); font-size: 16px; margin: 0; }
.field-row h3 { font-size: 26px; margin-bottom: 6px; }
.field-row ul { margin: 0; padding-left: 20px; }
.field-row li { margin: 3px 0; }
.field-row .buy { text-align: right; min-width: 190px; }
.field-row .amount { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.field-row .per { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
@media (max-width: 860px) {
  .field-row { grid-template-columns: 1fr; gap: 14px; }
  .field-row .buy { text-align: left; }
}

/* ---------- What's included ---------- */
.included { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: 40px; }
.included h3 { font-size: 20px; }
.included p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .included { grid-template-columns: 1fr; } }

/* ---------- Sequence (a real sequence, so numbered) ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--green); }
.steps li { padding: 26px 22px 0 0; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--green); display: block; line-height: 1; margin-bottom: 12px; }
.steps strong { display: block; font-size: 19px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; gap: 24px 20px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.program .steps { grid-template-columns: 1fr 1fr; gap: 20px 24px; }

/* ---------- Employer band ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.lookup { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px; }
.lookup .row { display: flex; gap: 10px; }
.lookup .row input { flex: 1; }

/* ---------- FAQ ---------- */
details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq:first-of-type { border-top: 1px solid var(--line); }
details.faq summary { font-weight: 700; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: "+"; font-family: var(--display); font-size: 26px; line-height: 1; color: var(--green); }
details.faq[open] summary::after { content: "–"; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq p { margin: 12px 0 0; color: var(--muted); max-width: 70ch; }

.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 22ch; }

/* ---------- Shared components used by other pages ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.card p { color: var(--muted); flex: 1; }
.tag { color: var(--green); font-weight: 700; font-size: 16px; }
.price { font-family: var(--display); font-size: 34px; font-weight: 800; margin: 8px 0 16px; line-height: 1.1; }
.price small { display: block; font-family: var(--text); font-size: 15px; color: var(--muted); font-weight: 500; margin-top: 4px; }

.program { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .program { grid-template-columns: 1fr; } }
.program h2 { font-size: 28px; margin-top: 40px; }
.checklist { padding-left: 0; list-style: none; margin: 0 0 8px; }
.checklist li { padding-left: 30px; position: relative; margin: 8px 0; }
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }
.panel { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: var(--radius); padding: 28px; position: sticky; top: 92px; box-shadow: 0 10px 30px -12px rgba(12,59,34,.18); }
.panel h2 { margin-top: 0; }
.mobile-only { display: none; }
@media (max-width: 900px) { .mobile-only { display: inline-flex; } .panel { position: static; } }

.lessons-list { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid var(--line); }
.lessons-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lessons-list .kind { color: var(--muted); font-size: 15px; white-space: nowrap; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin: 16px 0; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 12px 0; }
.lesson summary { cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.lesson summary .kind { color: var(--muted); font-weight: 400; font-size: 15px; white-space: nowrap; }

/* Forms */
label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: 16px; }
input[type=text], input[type=email], input[type=tel], input[type=number], select { width: 100%; padding: 12px 14px; border: 1px solid #bccbc2; border-radius: 8px; font: inherit; font-size: 17px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 3px solid var(--seal); outline-offset: 1px; border-color: var(--green); }
.hint { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.form-error { color: #9f1c12; background: #fdf0ee; border: 1px solid #f3c4bd; padding: 10px 12px; border-radius: 8px; margin-top: 14px; display: none; }
.form-error.show { display: block; }
label.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--muted); margin-top: 18px; }
label.consent input { margin-top: 4px; }
#code-result.ok { color: var(--green); font-weight: 700; }
#code-result.bad { color: #9f1c12; }
.tiers { border-collapse: collapse; margin: 8px 0 16px; }
.tiers td, .tiers th { padding: 8px 22px 8px 0; text-align: left; border-bottom: 1px solid var(--line); }

/* Status boxes, exam, verify */
.notice { border-radius: var(--radius); padding: 20px 24px; border: 1px solid var(--line); background: #f6faf7; }
.notice.ok { background: var(--leaf); border-color: #b5d6c1; }
.notice.bad { background: #fdf3f1; border-color: #f3c4bd; }
.notice h3 { margin-top: 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 12px 0 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 700; }
.question { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.question p { font-weight: 700; margin: 0 0 12px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-weight: 400; margin: 0; }
.choice:hover { background: #f4f8f5; }
.timer { position: sticky; top: 72px; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 0; z-index: 5; font-weight: 700; }
.weak { background: #fff8e6; border: 1px solid #f0d697; border-radius: 8px; padding: 12px 16px; margin-top: 12px; }
#exam-app .notice + h2, #exam-app .notice + div + h2 { margin-top: 32px; }

/* Footer */
.site-footer { background: var(--pine); color: #c4d8cb; padding: 56px 0 32px; font-size: 16px; }
.site-footer a { color: #eef6f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-family: var(--display); font-size: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.copyright { border-top: 1px solid #24563a; margin-top: 36px; padding-top: 20px; font-size: 14px; }
.hero.simple .wrap { display: block; } .hero.simple h1 { max-width: 20ch; }

/* ---------- Course player ---------- */
.course-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--leaf); border-left: 5px solid var(--green); border-radius: var(--radius); padding: 20px 24px; margin: 8px 0 24px; }
.course-card h3 { margin: 0 0 4px; }
.course-card p { margin: 0; max-width: 52ch; }
.course-section { padding-top: 40px; }
.course { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.course-side { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
.course-name { font-family: var(--display); font-weight: 800; font-size: 20px; margin: 0 0 12px; color: var(--pine); }
.progress { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); transition: width .4s ease; }
.course-head .fine { margin: 8px 0 16px; }
.course-toc summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.course-nav ol { list-style: none; margin: 4px 0 0; padding: 0; }
.course-nav li a { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 16px; line-height: 1.35; }
.course-nav li a:hover { background: #f3f7f4; }
.course-nav li a[aria-current="page"] { background: var(--leaf); font-weight: 700; }
.course-nav .num { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.course-nav li.done .num { background: var(--green); border-color: var(--green); color: #fff; }
.course-nav .min { color: var(--muted); font-size: 14px; font-weight: 400; }
.course-nav-foot { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; }
.module { max-width: 70ch; }
.module h1 { font-size: clamp(30px, 4vw, 40px); margin: 4px 0 20px; }
.module-meta { color: var(--muted); font-size: 16px; margin: 0; }
.objectives { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; margin: 0 0 28px; }
.objectives h2 { font-size: 18px; margin: 0 0 6px; font-family: var(--text); }
.objectives ul { margin: 0; padding-left: 20px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h3 { font-size: 21px; margin: 28px 0 8px; }
.prose li { margin: 6px 0; }
.prose li > ul { margin-top: 4px; }
.prose code { background: #f1f5f2; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--line); color: var(--muted); font-style: italic; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: #f3f7f4; font-weight: 700; }
.callout { margin: 24px 0; padding: 16px 20px; border-radius: var(--radius); background: #f6faf7; border-left: 5px solid var(--green); }
.callout > p:last-child, .callout > ul:last-child { margin-bottom: 0; }
.callout p:first-of-type { margin-top: 6px; }
.callout-title { font-weight: 700; font-family: var(--display); }
.callout.scenario { background: #f4f6fb; border-color: #3d5a99; }
.callout.warning { background: #fdf3f1; border-color: #c0392b; }
.callout.update { background: #fff8e6; border-color: var(--seal-dark); }
.callout.remember { background: var(--leaf); border-color: var(--pine); }
.quiz { margin: 48px 0 8px; padding-top: 28px; border-top: 2px solid var(--line); }
.quiz h2 { margin: 0 0 4px; }
.kc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.kc legend { float: left; width: 100%; font-weight: 700; padding: 0; margin: 0 0 8px; }
.kc legend + * { clear: both; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.choice:hover { background: #f6faf7; }
.choice input { margin-top: 6px; accent-color: var(--green); }
.choice.right { background: var(--leaf); outline: 2px solid var(--green); }
.choice.wrong { background: #fdf3f1; outline: 2px solid #c0392b; }
.btn.small { padding: 8px 16px; font-size: 15px; margin-top: 10px; }
.feedback { margin-top: 10px; font-size: 16px; }
.feedback.ok strong { color: var(--green); }
.feedback.bad strong { color: #a5281b; }
.quiz-result { font-weight: 700; }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 40px 0 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager .btn { max-width: 100%; white-space: normal; text-align: left; }
@media (max-width: 899px) {
  .course { grid-template-columns: 1fr; gap: 24px; }
  .course-side { position: static; max-height: none; }
  .course-toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 14px; }
}
@media (prefers-reduced-motion: reduce) { .progress span { transition: none; } }

/* Verify page: lookup tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 20px; flex-wrap: wrap; }
.tabs [role=tab] { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.tabs [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--green); font-weight: 600; }
.tabs [role=tab]:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.inline-form { display: flex; gap: 12px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 180px; }
.legal h2 { font-size: 21px; margin: 30px 0 8px; }
.legal p { max-width: 72ch; }

/* Course: narrated slides */
.slides { margin: 16px 0 28px; outline: none; }
.slides:focus-visible .slide-frame { outline: 3px solid var(--green); outline-offset: 2px; }
.slide-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--leaf); border: 1px solid var(--line); }
.slide-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.slide-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.slide-count { font-size: 15px; color: var(--muted); }
.slide-bar .btn[disabled] { opacity: .45; cursor: default; }
.slide-notes { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; }
.slide-notes summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted); }
.slide-notes-text p { font-size: 17px; line-height: 1.6; margin: 10px 0 0; max-width: 72ch; }
.slides-toggle { margin: 0 0 24px; }
.slides-toggle > summary { cursor: pointer; font-weight: 600; color: var(--green); }
.slide-bar .btn.small { margin-top: 0; }
