:root {
  --ink: #15233b;
  --ink-soft: #4a5a72;
  --route: #0e7c7b;
  --route-dark: #0a5c5b;
  --route-tint: #e3f2f1;
  --marker: #f2b01e;
  --marker-tint: #fff4d6;
  --paper: #f6f8fb;
  --card: #ffffff;
  --line: #d8e0eb;
  --alert: #c8453b;
  --alert-tint: #fbeae8;
  --radius: 14px;
  --font-head: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 4.5vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--route-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 18px; }
.section { padding: 40px 0; }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 58px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.logo { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.logo:hover { color: #fff; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: #dbe6f5; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.class-pill { background: var(--marker); color: var(--ink); border: 0; border-radius: 999px; padding: 8px 14px; font: 700 .9rem var(--font-body); cursor: pointer; }
.class-pill:hover { filter: brightness(.95); }

/* buttons */
.btn { display: inline-block; border: 0; border-radius: 12px; padding: 13px 20px; font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--route); color: #fff; }
.btn-primary:hover { background: var(--route-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 11px 18px; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* hero + route selector */
.hero { padding: 44px 0 30px; background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); }
.hero-grid { display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.15fr 1fr; } }
.hero3d { width: 100%; height: 260px; border-radius: 20px; background: radial-gradient(circle at 30% 20%, #eafaf9 0%, var(--paper) 70%); overflow: hidden; }
.hero3d canvas { display: block; width: 100% !important; height: 100% !important; }
@media (min-width: 860px) { .hero3d { height: 340px; } }
.route { list-style: none; display: flex; justify-content: space-between; margin: 28px 0 8px; padding: 0; position: relative; max-width: 620px; }
.route::before { content: ""; position: absolute; left: 24px; right: 24px; top: 22px; height: 4px; background: var(--line); border-radius: 2px; }
.route li { position: relative; z-index: 1; text-align: center; flex: 1; }
.route button { background: none; border: 0; cursor: pointer; padding: 0; font-family: var(--font-body); color: var(--ink); }
.route .dot { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 3px solid var(--route); font: 800 1.05rem var(--font-head); transition: transform .15s; }
.route button:hover .dot { transform: scale(1.08); }
.route .lbl { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.route button[aria-pressed="true"] .dot { background: var(--marker); border-color: var(--ink); }
.route button[aria-pressed="true"] .lbl { color: var(--ink); }
.route-msg { min-height: 1.6em; font-weight: 600; color: var(--route-dark); }

/* cards */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--route); box-shadow: 0 0 0 2px var(--route-tint); color: var(--ink); }
.card h3 { margin: 0; }
.card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.card .meta { margin-top: auto; font-size: .85rem; color: var(--ink-soft); }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--route-tint); color: var(--route-dark); width: fit-content; }
.badge.warn { background: var(--marker-tint); color: #7a5600; }

/* how it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 60px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 .95rem var(--font-head); }
.steps strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }

/* notices */
.note { border-left: 5px solid var(--marker); background: var(--marker-tint); padding: 14px 16px; border-radius: 0 10px 10px 0; margin: 16px 0; }
.note.alert { border-color: var(--alert); background: var(--alert-tint); }
.note.ok { border-color: var(--route); background: var(--route-tint); }
.note p:last-child { margin-bottom: 0; }

/* careers list */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0 22px; }
.search { flex: 1 1 220px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font: 1rem var(--font-body); background: #fff; }
.search:focus { border-color: var(--route); outline: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: 600 .92rem var(--font-body); cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* career page */
.career-head { padding: 34px 0 22px; background: #fff; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .9rem; margin-bottom: 10px; }
.class-banner { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--route-tint); border-radius: 12px; padding: 12px 14px; margin-top: 16px; font-weight: 600; }
.class-banner button { background: #fff; border: 2px solid var(--route); color: var(--route-dark); border-radius: 999px; padding: 5px 12px; font: 700 .88rem var(--font-body); cursor: pointer; }
.block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.block:last-of-type { border-bottom: 0; }

.roadmap { list-style: none; margin: 18px 0 0; padding: 0 0 0 4px; }
.rstep { position: relative; padding: 0 0 22px 46px; }
.rstep::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: -2px; width: 4px; background: var(--route); border-radius: 2px; opacity: .35; }
.rstep:last-child::before { display: none; }
.rstep .pin { position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 4px solid var(--route); }
.rstep.here .pin { background: var(--marker); border-color: var(--ink); }
.rstep .when { font-size: .85rem; font-weight: 700; color: var(--route-dark); }
.rstep.here .when { color: #7a5600; }
.rstep h3 { margin: 2px 0 4px; }
.rstep p { margin: 0; color: var(--ink-soft); }
.here-tag { display: inline-block; background: var(--marker); color: var(--ink); font-size: .78rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
details.earlier { margin: 16px 0 0; background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; }
details.earlier summary { cursor: pointer; font-weight: 700; }
details.earlier .roadmap { margin-top: 14px; }

.two-col { display: grid; gap: 18px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.panel h3 { margin-bottom: 8px; }
.panel ul { margin: 0; padding-left: 20px; }
.panel li { margin-bottom: 6px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.tags li { background: var(--route-tint); color: var(--route-dark); font-weight: 600; font-size: .9rem; padding: 5px 12px; border-radius: 999px; margin: 0; }

table.simple { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .95rem; }
table.simple th, table.simple td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { background: var(--paper); font-family: var(--font-head); }
table.simple tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; }
details.faq p { margin: 10px 0 0; color: var(--ink-soft); }

.check { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--route); flex: none; }
.check.done span { text-decoration: line-through; color: var(--ink-soft); }
.progress { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; margin: 8px 0 16px; }
.progress > div { height: 100%; background: var(--route); width: 0; transition: width .2s; }

/* quiz */
.quiz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
.quiz-progress { font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.opts { display: grid; gap: 10px; margin-top: 16px; }
.opt { text-align: left; background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; font: 600 1rem var(--font-body); color: var(--ink); cursor: pointer; }
.opt:hover { border-color: var(--route); background: var(--route-tint); }
.result { display: grid; gap: 14px; margin-top: 14px; }
.result .card { border-width: 2px; }
.result .card.strong { border-color: var(--route); background: var(--route-tint); }

/* footer */
.site-footer { background: var(--ink); color: #c5d2e6; padding: 28px 0; margin-top: 30px; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer p { max-width: 80ch; }

/* dialog */
dialog { border: 0; border-radius: 16px; padding: 22px; max-width: 420px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(21,35,59,.6); }
.dlg-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.dlg-opts button { padding: 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: 700 1rem var(--font-body); cursor: pointer; }
.dlg-opts button[aria-pressed="true"] { background: var(--marker); border-color: var(--ink); }
.dlg-opts button:hover { border-color: var(--route); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
