:root {
  --cream: #FAF2E2;
  --ink: #17201E;
  --raspberry: #C42A5B;
  --green: #A9CC1E;
  --paper: #FFFDF8;
  --line: #D8CEBC;
  --muted: #5B625F;
  --danger: #9B1C45;
  --max: 860px;
  color-scheme: light;
  font-family: Arial, Avenir, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { background: var(--cream); color: var(--ink); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); }
button, a { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 50; background: var(--ink); color: white; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem max(1rem, env(safe-area-inset-left)); background: rgba(250,242,226,.98); border-bottom: 2px solid var(--ink); }
.brand { color: var(--ink); text-decoration: none; font-weight: 900; letter-spacing: .08em; font-size: .86rem; }
.top-actions { display: flex; gap: .5rem; align-items: center; }
.projection-toggle, .icon-button { border: 1px solid var(--ink); background: transparent; border-radius: 999px; padding: .6rem .8rem; font-size: .78rem; font-weight: 700; cursor: pointer; }
.projection-toggle[aria-pressed="true"] { background: var(--ink); color: white; }
main { width: min(100%, var(--max)); flex: 1; margin: 0 auto; padding: 1.4rem 1rem 3rem; }
.footer { border-top: 1px solid var(--line); padding: 1.2rem 1rem calc(1.2rem + env(safe-area-inset-bottom)); text-align: center; font-size: .78rem; font-weight: 700; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 .5rem; color: var(--raspberry); font-weight: 900; letter-spacing: .12em; font-size: .74rem; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.08; margin-top: 0; }
h1 { font-size: clamp(2.2rem, 10vw, 4.7rem); letter-spacing: -.055em; margin-bottom: 1rem; }
h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); letter-spacing: -.035em; }
h3 { font-size: 1.15rem; }
p, li { line-height: 1.55; }
.lead { font-size: 1.12rem; max-width: 62ch; }
.muted { color: var(--muted); }
.home { padding-top: 5vh; }
.home__intro { max-width: 700px; margin-bottom: 2rem; }
.route-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.route-card { min-height: 205px; padding: 1.4rem; border: 3px solid var(--ink); border-radius: 18px; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); box-shadow: 7px 7px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.route-card:hover, .route-card:focus-visible { transform: translate(3px,3px); box-shadow: 4px 4px 0 var(--ink); }
.route-card--seo { border-top: 12px solid var(--green); }
.route-card--crm { border-top: 12px solid var(--raspberry); }
.route-card__tag { font-size: .75rem; font-weight: 900; letter-spacing: .1em; }
.route-card strong { display: block; font-size: 1.65rem; line-height: 1.05; margin: .7rem 0; }
.screen { animation: appear .2s ease-out; }
@keyframes appear { from { opacity: .25; transform: translateY(5px); } }
.screen-head { margin-bottom: 1.25rem; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .85rem; }
.level-badge, .count-badge { display: inline-flex; align-items: center; min-height: 32px; border: 1px solid var(--ink); border-radius: 999px; padding: .35rem .7rem; font-weight: 900; font-size: .75rem; background: var(--paper); }
.progress { height: 12px; border: 2px solid var(--ink); background: var(--paper); overflow: hidden; border-radius: 999px; }
.progress__bar { height: 100%; background: var(--green); transition: width .25s; }
.panel { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 1.25rem; margin: 1rem 0; }
.panel--accent { border-left: 9px solid var(--raspberry); }
.panel--green { border-left: 9px solid var(--green); }
.course-list, .takeaways { padding-left: 1.25rem; }
.course-list li, .takeaways li { margin-bottom: .8rem; }
.keyline { margin: 1rem 0; padding: 1rem; background: var(--ink); color: white; border-radius: 10px; font-weight: 800; }
.flow { display: grid; gap: .7rem; }
.flow__item { padding: .9rem; border: 1px solid var(--ink); border-left: 7px solid var(--green); background: var(--paper); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.35rem; }
.button { min-height: 50px; border: 2px solid var(--ink); border-radius: 12px; padding: .8rem 1.1rem; font-weight: 900; cursor: pointer; background: var(--paper); }
.button--primary { background: var(--raspberry); color: white; border-color: var(--raspberry); }
.button--secondary { background: var(--green); color: var(--ink); }
.button--quiet { min-height: 40px; padding: .55rem .7rem; border: 1px solid var(--ink); font-size: .76rem; background: var(--paper); }
.button--danger { color: var(--danger); border-color: var(--danger); }
.button:focus-visible, .option:focus-visible, a:focus-visible { outline: 4px solid var(--green); outline-offset: 3px; }
.question-prompt { font-size: clamp(1.45rem, 5.8vw, 2.25rem); margin-bottom: .6rem; }
.question-context { margin: .7rem 0 1.1rem; padding: .85rem 1rem; border-left: 6px solid var(--green); background: #F1E8D7; line-height: 1.45; }
.options { display: grid; gap: .75rem; }
.option { width: 100%; min-height: 64px; text-align: left; padding: 1rem; border: 2px solid var(--ink); border-radius: 13px; background: var(--paper); font-weight: 800; cursor: pointer; }
.option:hover { background: #F3E8D4; }
.option[disabled] { cursor: default; opacity: .76; }
.option.is-correct { background: #E6F1BA; border-color: #567000; }
.option.is-wrong { background: #F8DCE5; border-color: var(--danger); }
.feedback { margin-top: 1rem; padding: 1rem; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); }
.feedback--hint { border-left: 9px solid var(--raspberry); }
.feedback--success { border-left: 9px solid var(--green); }
.feedback strong { display: block; margin-bottom: .35rem; }
.score-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; margin: 1.2rem 0; }
.score-box { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 1rem; }
.score-box span { display: block; color: var(--muted); font-size: .78rem; font-weight: 800; }
.score-box strong { display: block; margin-top: .3rem; font-size: 1.6rem; }
.badge-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.badge { padding: .55rem .75rem; background: var(--ink); color: white; border-radius: 999px; font-weight: 800; font-size: .78rem; }
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 480px; }
th, td { text-align: left; padding: .75rem; border-bottom: 1px solid var(--line); }
th { background: var(--ink); color: white; }
.dialog { width: min(92vw, 720px); max-height: 86vh; border: 3px solid var(--ink); border-radius: 16px; padding: 0; background: var(--cream); color: var(--ink); }
.dialog::backdrop { background: rgba(23,32,30,.72); }
.dialog__head { position: sticky; top: 0; background: var(--cream); border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 1rem; }
.dialog__head h2 { margin-bottom: 0; }
.dialog__content { padding: 1rem; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 1rem; transform: translate(-50%, 140%); opacity: 0; background: var(--ink); color: white; padding: .8rem 1rem; border-radius: 10px; transition: .2s; max-width: 90vw; }
.toast.show { transform: translate(-50%,0); opacity: 1; }
.noscript { padding: 2rem; }
body.projection { --max: 1160px; font-size: 21px; }
body.projection .topbar { position: static; }
body.projection .projection-toggle { background: var(--ink); color: white; }
body.projection .question-prompt { font-size: clamp(2rem,4.4vw,3.8rem); }
body.projection .course-list li, body.projection p { line-height: 1.45; }
@media (min-width: 720px) {
  main { padding: 2.2rem 1.5rem 4rem; }
  .route-grid { grid-template-columns: 1fr 1fr; }
  .route-card { min-height: 280px; }
  .score-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 430px) {
  .topbar { align-items: flex-start; }
  .top-actions { align-items: flex-end; flex-direction: column-reverse; }
  .brand { padding-top: .7rem; }
  .projection-toggle { padding: .45rem .65rem; }
  .button--quiet { max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
