:root {
  --ink: #17231f;
  --muted: #68736e;
  --paper: #f6f4ed;
  --surface: #ffffff;
  --green: #0f5b46;
  --green-dark: #093e31;
  --green-soft: #dce9e3;
  --gold: #c6984b;
  --line: #dfe4df;
  --danger: #a63d40;
  --shadow: 0 24px 70px rgba(20, 45, 36, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.65;
}
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  top: -60px;
  right: 20px;
  z-index: 100;
  padding: 10px 18px;
  background: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 10px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 clamp(24px, 6vw, 96px);
  background: rgba(246, 244, 237, .92);
  border-bottom: 1px solid rgba(15, 91, 70, .12);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--green);
  border-radius: 10px 2px 10px 10px;
  font-size: 23px;
  font-weight: 800;
}
.brand strong, .brand small { display: block; line-height: 1.3; }
.brand strong { font-size: 18px; }
.brand small { color: var(--muted); font-size: 11px; }
nav { display: flex; gap: 28px; font-size: 14px; font-weight: 600; }
nav a { position: relative; }
nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .2s;
}
nav a:hover::after { width: 100%; }

.ghost-button, .primary-button, .source-button {
  border: 0;
  border-radius: 8px;
  font-weight: 700;
}
.ghost-button {
  padding: 10px 16px;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--green);
}
.primary-button {
  padding: 13px 24px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 9px 24px rgba(15, 91, 70, .2);
}
.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  min-height: 670px;
  padding: 80px clamp(24px, 8vw, 130px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  left: -180px;
  top: -130px;
  border: 1px solid rgba(198, 152, 75, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(198, 152, 75, .04), 0 0 0 120px rgba(198, 152, 75, .025);
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.18;
  letter-spacing: -.04em;
}
h1 span { color: var(--green); }
.hero-lead { max-width: 660px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.text-link { color: var(--green); font-weight: 700; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: var(--muted); font-size: 13px; }

.exam-card {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid rgba(15, 91, 70, .08);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.exam-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18px -18px -18px 18px;
  background: var(--green);
  border-radius: 20px;
}
.exam-card-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.live-dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  background: #2da06f;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(45, 160, 111, .12);
}
.progress-ring {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin: 30px auto;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--progress) * 1%), var(--green-soft) 0);
}
.progress-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 145px;
  height: 145px;
  background: #fff;
  border-radius: 50%;
}
.progress-ring div { z-index: 1; grid-area: 1 / 1; text-align: center; }
.progress-ring strong { display: block; font-size: 38px; line-height: 1.1; }
.progress-ring span { color: var(--muted); font-size: 13px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.mini-stats div { padding: 16px 4px; text-align: center; }
.mini-stats div + div { border-right: 1px solid var(--line); }
.mini-stats strong, .mini-stats span { display: block; }
.mini-stats strong { font-size: 20px; }
.mini-stats span { color: var(--muted); font-size: 10px; }
.next-task { margin: 18px 0 8px; color: var(--muted); font-size: 11px; }
.task-preview { display: flex; align-items: center; gap: 12px; }
.task-preview div { flex: 1; }
.task-preview strong, .task-preview small { display: block; }
.task-preview small { color: var(--muted); }

.section { padding: 90px clamp(24px, 8vw, 130px); }
.intro-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 28px;
  padding-bottom: 28px;
  color: #fff;
  background: var(--green-dark);
}
.intro-strip div { display: flex; align-items: center; gap: 12px; padding: 5px 20px; }
.intro-strip div + div { border-right: 1px solid rgba(255,255,255,.14); }
.intro-strip strong { color: var(--gold); font-family: Georgia, serif; font-size: 24px; }
.intro-strip span { font-size: 13px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 36px; }
.section-heading h2, .lesson-copy h2, .exam-intro h2 {
  max-width: 730px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.25;
  letter-spacing: -.025em;
}
.section-heading > p { max-width: 470px; margin-bottom: 4px; color: var(--muted); }

.module-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.module-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .2s, box-shadow .2s;
}
.module-card:nth-child(7) { grid-column: 3 / span 2; }
.module-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,45,36,.09); }
.module-card.active { color: #fff; background: var(--green); border-color: var(--green); }
.module-top { display: flex; justify-content: space-between; align-items: center; }
.chapter-number { color: var(--gold); font-family: Georgia, serif; font-size: 24px; }
.status-badge { padding: 4px 9px; color: var(--green); background: var(--green-soft); border-radius: 99px; font-size: 10px; font-weight: 800; }
.module-card.active .status-badge { color: #fff; background: rgba(255,255,255,.15); }
.module-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 30px 0 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 11px;
  font-size: 24px;
  font-weight: 800;
}
.module-card.active .module-icon { color: var(--green); background: #fff; }
.word { background: #185abd; }
.excel { background: #107c41; }
.powerpoint { background: #c43e1c; }
.outlook { background: #0875c1; }
.capstone-icon { background: var(--gold); }
.module-card h3 { margin-bottom: 10px; font-size: 22px; }
.module-card p { flex: 1; color: var(--muted); font-size: 14px; }
.module-card.active p { color: rgba(255,255,255,.78); }
.module-meta { display: flex; gap: 16px; color: var(--muted); font-size: 11px; }
.module-card.active .module-meta { color: rgba(255,255,255,.65); }
.module-card button {
  margin-top: 18px;
  padding: 10px 0 0;
  color: var(--green);
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  text-align: right;
  font-weight: 800;
}
.module-card.active button { color: #fff; border-color: rgba(255,255,255,.2); }

.curriculum {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: clamp(30px, 6vw, 90px);
  margin-top: 85px;
  padding-top: 70px;
  border-top: 1px solid var(--line);
}
.curriculum-heading { position: sticky; top: 110px; align-self: start; }
.curriculum-heading h3 { margin-bottom: 14px; font-size: 34px; }
.curriculum-heading > p:last-child { color: var(--muted); }
.curriculum-list { display: grid; gap: 10px; }
.curriculum-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.curriculum-list details[open] { border-color: rgba(15,91,70,.45); box-shadow: 0 12px 34px rgba(20,45,36,.07); }
.curriculum-list summary {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}
.curriculum-list summary::-webkit-details-marker { display: none; }
.curriculum-list summary div { flex: 1; }
.curriculum-list summary strong, .curriculum-list summary small { display: block; }
.curriculum-list summary small { margin-top: 2px; color: var(--muted); }
.curriculum-list summary i {
  color: var(--green);
  font-size: 24px;
  font-style: normal;
  transition: transform .2s;
}
.curriculum-list details[open] summary i { transform: rotate(45deg); }
.unit-number { color: var(--gold); font-family: Georgia, serif; font-size: 22px; }
.unit-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  padding: 5px 64px 24px 20px;
  border-top: 1px solid var(--line);
}
.unit-body b { display: block; margin-top: 16px; color: var(--green); font-size: 12px; }
.unit-body p, .unit-body li { color: var(--muted); font-size: 13px; }
.unit-body ul { margin: 8px 0 0; padding-right: 18px; }
.unit-body p { margin: 6px 0 0; }

.lab-section { color: #fff; background: var(--green-dark); }
.section-heading.light > p { color: rgba(255,255,255,.65); }
.typing-workspace {
  max-width: 1000px;
  margin: 0 auto;
  color: var(--ink);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
  overflow: hidden;
}
.typing-toolbar {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 20px;
  color: var(--muted);
  background: #f4f6f4;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.typing-toolbar strong { color: var(--ink); }
.typing-toolbar button { margin-right: auto; color: var(--green); background: none; border: 0; font-weight: 700; }
.timer-pill { padding: 5px 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.typing-target { padding: 30px 34px; font-size: 22px; line-height: 2; border-bottom: 1px dashed var(--line); }
.typing-workspace label { display: block; padding: 18px 34px 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.typing-workspace textarea {
  display: block;
  width: calc(100% - 68px);
  margin: 0 34px;
  padding: 18px;
  resize: vertical;
  border: 2px solid var(--line);
  border-radius: 9px;
  outline: none;
  font-size: 20px;
  line-height: 1.8;
}
.typing-workspace textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.typing-feedback { margin: 18px 34px 26px; padding: 12px 15px; color: var(--green); background: var(--green-soft); border-radius: 7px; font-size: 13px; }

.lesson-section {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.lesson-copy > p:not(.eyebrow) { color: var(--muted); }
.steps { margin: 30px 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.steps li > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 50%;
  font-weight: 800;
}
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.evidence-note { margin: 24px 0; padding: 15px; background: #eeeae0; border-right: 3px solid var(--gold); font-size: 12px; }
.evidence-note p { margin: 4px 0 0; }
.source-button { display: inline-block; padding: 11px 16px; color: #fff; background: var(--green); }

.software-shot {
  position: relative;
  min-width: 0;
  background: #fff;
  border: 1px solid #cfd4d1;
  border-radius: 11px;
  box-shadow: var(--shadow);
  overflow: hidden;
  direction: rtl;
}
.shot-label {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 12px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(23,35,31,.78);
  border-radius: 5px;
  font-size: 9px;
}
.window-bar { display: flex; justify-content: space-between; padding: 8px 12px; color: #fff; background: #185abd; font-size: 11px; }
.window-bar div { display: flex; gap: 5px; }
.window-bar i { width: 7px; height: 7px; background: rgba(255,255,255,.7); border-radius: 50%; }
.ribbon-tabs { display: flex; gap: 22px; padding: 8px 16px; font-size: 10px; border-bottom: 1px solid var(--line); }
.ribbon-tabs .selected { color: #185abd; font-weight: 800; border-bottom: 2px solid #185abd; }
.ribbon { display: flex; gap: 8px; min-height: 64px; padding: 9px 16px; background: #fafafa; border-bottom: 1px solid var(--line); }
.ribbon-tool { min-width: 60px; padding: 5px; text-align: center; border: 1px solid transparent; border-radius: 4px; }
.ribbon-tool b, .ribbon-tool small { display: block; }
.ribbon-tool b { font-size: 18px; }
.ribbon-tool small { font-size: 8px; }
.ribbon-tool.highlight { color: #185abd; background: #e8f0fb; border-color: #8bb2e8; }
.document-area { padding: 35px 15%; background: #dfe2e5; }
.paper { min-height: 430px; padding: 34px 40px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.header-zone { display: flex; justify-content: space-between; margin: -18px -20px 45px; padding: 12px 20px; color: #185abd; background: #e8f0fb; border: 1px dashed #185abd; font-size: 8px; }
.paper h4 { text-align: center; }
.paper > p { height: 5px; margin: 20px 0; background: #dfe3e1; border-radius: 4px; }
.paper > p.short { width: 60%; }
.mock-table { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0; border: 1px solid #89918d; }
.mock-table i { height: 28px; border: 1px solid #b9bfbc; }

.exam-section { min-height: 600px; color: #fff; background: #12261f; }
.exam-intro { max-width: 760px; margin: auto; text-align: center; }
.exam-intro h2 { margin-inline: auto; }
.exam-intro > p:not(.eyebrow) { color: rgba(255,255,255,.68); }
.exam-intro ul { display: flex; justify-content: center; gap: 45px; padding: 0; margin: 30px 0; list-style: none; }
.exam-intro li { color: rgba(255,255,255,.65); font-size: 12px; }
.exam-intro li span { display: block; color: #fff; font-family: Georgia, serif; font-size: 27px; }
.exam-section .primary-button { color: var(--green-dark); background: var(--gold); }
.quiz-panel, .result-panel { max-width: 800px; margin: auto; }
.quiz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px; color: rgba(255,255,255,.7); }
.quiz-head > div { flex: 1; }
.quiz-head > strong { margin-right: 30px; color: var(--gold); font-size: 20px; }
.quiz-progress { height: 4px; margin-top: 10px; background: rgba(255,255,255,.13); border-radius: 4px; }
.quiz-progress i { display: block; width: 10%; height: 100%; background: var(--gold); border-radius: 4px; transition: width .3s; }
.question-category { color: var(--gold); font-size: 12px; font-weight: 800; }
.quiz-panel h3 { font-size: clamp(24px, 3vw, 34px); line-height: 1.5; }
.answers { display: grid; gap: 11px; margin: 28px 0; }
.answer-option {
  width: 100%;
  padding: 15px 18px;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9px;
  text-align: right;
}
.answer-option:hover:not(:disabled) { background: rgba(255,255,255,.11); border-color: var(--gold); }
.answer-option.correct { color: #10261e; background: #9ed5b8; border-color: #9ed5b8; }
.answer-option.wrong { background: rgba(166,61,64,.7); border-color: #d87778; }
.answer-feedback { padding: 14px 16px; color: #fff; background: rgba(255,255,255,.07); border-right: 3px solid var(--gold); border-radius: 5px; font-size: 13px; }
.answer-feedback a { color: #efd095; text-decoration: underline; }
.quiz-actions { margin-top: 20px; text-align: left; }
.quiz-actions button:disabled { cursor: not-allowed; opacity: .35; }
.result-panel { text-align: center; }
.result-score {
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  margin: 0 auto 25px;
  color: var(--green-dark);
  background: var(--gold);
  border-radius: 50%;
}
.result-score strong, .result-score span { grid-area: 1 / 1; }
.result-score strong { margin-top: -18px; font-size: 42px; }
.result-score span { margin-top: 48px; font-size: 11px; }
.result-panel h3 { font-size: 30px; }
.result-panel > p { color: rgba(255,255,255,.7); }
.result-breakdown { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0; }
.result-breakdown span { padding: 6px 10px; background: rgba(255,255,255,.08); border-radius: 99px; font-size: 11px; }

.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.source-grid a { display: flex; flex-direction: column; min-height: 160px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.source-grid a:hover { border-color: var(--gold); box-shadow: 0 10px 30px rgba(20,45,36,.07); }
.source-type { color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.source-grid strong { margin: 12px 0; }
.source-grid small { margin-top: auto; color: var(--muted); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 35px clamp(24px, 8vw, 130px);
  color: rgba(255,255,255,.6);
  background: #0b1914;
}
footer p { max-width: 680px; margin: 0; font-size: 11px; text-align: left; }
footer .brand strong { color: #fff; }
.hidden { display: none !important; }

@media (max-width: 980px) {
  nav { display: none; }
  .hero, .lesson-section { grid-template-columns: 1fr; }
  .hero { padding-top: 55px; }
  .exam-card { max-width: 520px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .module-card, .module-card:nth-child(7) { grid-column: span 1; }
  .module-card:last-child { grid-column: 1 / -1; }
  .curriculum { grid-template-columns: 1fr; }
  .curriculum-heading { position: static; }
  .source-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .topbar { min-height: 66px; }
  .topbar .ghost-button { display: none; }
  .hero, .section { padding: 60px 20px; }
  h1 { font-size: 40px; }
  .hero-actions, .section-heading, footer { align-items: flex-start; flex-direction: column; }
  .trust-row { display: grid; }
  .intro-strip { grid-template-columns: repeat(2, 1fr); padding: 20px; }
  .intro-strip div { padding: 8px; }
  .intro-strip div:nth-child(3) { border-right: 0; }
  .module-grid, .source-grid { grid-template-columns: 1fr; }
  .module-card, .module-card:nth-child(7), .module-card:last-child { grid-column: 1; }
  .unit-body { grid-template-columns: 1fr; gap: 0; padding: 5px 20px 22px; }
  .typing-toolbar { flex-wrap: wrap; gap: 10px 18px; }
  .typing-target { padding: 22px; font-size: 18px; }
  .typing-workspace textarea { width: calc(100% - 44px); margin-inline: 22px; }
  .document-area { padding: 24px 5%; }
  .paper { min-height: 360px; padding: 24px; }
  .exam-intro ul { gap: 24px; }
  footer p { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
