:root {
  color-scheme: light;
  --paper: #f5f6ef;
  --white: #fff;
  --ink: #19312a;
  --green: #17382e;
  --dark: #102d26;
  --muted: #4e6258;
  --line: #dce4d9;
  --mint: #e4f1e6;
  --yellow: #f9dc66;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #297263; outline-offset: 4px; }
.skip { position: absolute; top: 10px; left: 12px; padding: 12px; z-index: 5; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1216px; margin: auto; min-height: 73px; padding: 10px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.19rem; font-weight: 850; text-decoration: none; letter-spacing: -.045em; line-height: 1.05; white-space: nowrap; }
.brand small { display: block; margin-top: 4px; font-size: .64rem; font-weight: 800; letter-spacing: .12em; }
.brand-mark { width: 39px; height: 39px; border-radius: 12px; background: var(--dark); display: grid; place-content: center; gap: 3px; }
.brand-mark i { width: 4px; height: 5px; background: var(--yellow); border-radius: 1px; transform: skewX(-24deg); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 11px 16px; border-radius: 10px; font-size: .94rem; font-weight: 700; text-decoration: none; }
.nav a[aria-current] { background: var(--mint); }
.nav a:hover { background: #edf2e9; }
main { width: 100%; max-width: 1216px; padding: 26px 26px 52px; margin: 0 auto; flex: 1; }
main:focus { outline: none; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 25px; background: var(--dark); color: white; min-height: 365px; }
.hero-copy { padding: 40px 49px 44px; position: relative; z-index: 1; width: 57%; }
.overline { color: #4c6559; font-size: .78rem; font-weight: 850; letter-spacing: .13em; margin: 0 0 8px; }
.hero-overline { color: #d8edcd; display: flex; gap: 9px; align-items: center; }
.hero-overline span { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 12px 0 14px; font-size: clamp(3.6rem, 7vw, 6.4rem); line-height: .88; letter-spacing: -.087em; font-weight: 880; }
.hero-copy > p:not(.overline) { max-width: 410px; margin-bottom: 23px; color: #dbebe1; font-size: 1.07rem; line-height: 1.5; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 46px; padding: 11px 17px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; line-height: 1.2; cursor: pointer; text-align: center; font-size: .96rem; font-weight: 800; text-decoration: none; }
.button:disabled { opacity: .55; cursor: default; }
.primary { color: white; background: var(--green); }
.primary:hover:not(:disabled) { background: #245242; }
.accent { background: var(--yellow); color: #1d2f26; }
.accent:hover { background: #ffe889; }
.ghost { border-color: #8aa49a; color: white; background: #ffffff09; }
.ghost:hover { background: #ffffff1c; }
.hero :focus-visible { outline-color: var(--yellow); }
.secondary { background: white; border-color: #bfcec2; color: var(--ink); }
.secondary:hover:not(:disabled) { background: #f0f6ee; }
.road-art { pointer-events: none; position: absolute; inset: 0 0 0 42%; overflow: hidden; background: radial-gradient(ellipse at 73% 56%, #335e40, transparent 67%); }
.art-grid { position: absolute; inset: 0; opacity: .45; background: repeating-linear-gradient(0deg, transparent 0 37px, #b8dca927 38px 39px), repeating-linear-gradient(90deg, transparent 0 37px, #b8dca924 38px 39px); mask-image: linear-gradient(90deg, transparent, #000 38%); }
.art-glow { position: absolute; width: 310px; height: 310px; right: 9%; top: 7%; border: 1px dashed #94bf8d68; border-radius: 50%; box-shadow: 0 0 0 26px #86ae7913, 0 0 0 55px #86ae790d; }
.road { width: 495px; height: 320px; border: 72px solid #173329; border-radius: 49%; position: absolute; top: 38%; right: -3.5%; transform: rotate(-29deg); box-shadow: 0 0 0 3px #658161, inset 0 0 0 3px #59765b, 0 15px 42px #091e1580; }
.lane { position: absolute; inset: -40px; border: 3px dashed #e0ca6cb5; border-radius: 50%; }
.art-sign { position: absolute; display: grid; place-items: center; filter: drop-shadow(0 10px 8px #081c15aa); font-weight: 900; }
.stop-sign { top: 17%; right: 35%; width: 142px; aspect-ratio: 1; color: #fff5db; transform: rotate(-13deg); }
.stop-sign span, .stop-sign::before, .stop-sign::after { clip-path: polygon(29% 0,71% 0,100% 29%,100% 71%,71% 100%,29% 100%,0 71%,0 29%); }
.stop-sign::before, .stop-sign::after { content: ""; position: absolute; inset: 0; background: #fff0d2; }
.stop-sign::after { inset: 6px; background: #d84d37; }
.stop-sign span { font-size: 2.45rem; letter-spacing: -.08em; z-index: 1; }
.yield-sign { width: 116px; aspect-ratio: 1.1; top: 19%; right: 8%; transform: rotate(15deg); background: #f3e9cf; clip-path: polygon(0 0, 100% 0, 50% 100%); color: #b64330; }
.yield-sign::before { content: ""; position: absolute; inset: 5px 8px 10px; background: #c95a42; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.yield-sign::after { content: ""; position: absolute; inset: 18px 26px 33px; background: #fcf0d2; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.yield-sign span { z-index: 1; transform: translateY(-17px); font-size: .8rem; }
.curve-sign { width: 84px; aspect-ratio: 1; border: 5px double #283427; border-radius: 11px; top: 63%; right: 17%; transform: rotate(38deg); background: var(--yellow); color: #20382b; }
.curve-sign span { font-size: 3rem; line-height: 1; transform: rotate(-38deg) translateY(-4px); }
.dashboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(295px, .43fr); gap: 23px; align-items: start; margin-top: 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.section-head h2 { margin: 0; letter-spacing: -.052em; font-size: clamp(1.55rem, 4vw, 2.15rem); }
.section-count { color: var(--muted); font-size: .88rem; font-weight: 700; white-space: nowrap; padding-bottom: 4px; }
.unit-list { display: grid; gap: 10px; }
.unit, .side-card, .study-card, .question, .result-card, .resume-strip { border-radius: 17px; border: 1px solid var(--line); background: white; }
.unit summary { display: flex; gap: 13px; align-items: center; padding: 13px 15px; cursor: pointer; list-style: none; }
.unit summary::-webkit-details-marker { display: none; }
.unit summary:hover { background: #f7faf4; border-radius: inherit; }
.tile-icon { flex: 0 0 auto; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--green); }
.icon { width: 24px; height: 24px; display: block; }
.color-0, .mint { background: #e3f1e3; }
.color-1, .sunshine { background: #fbefc0; }
.color-2 { background: #f8e2dc; }
.color-3 { background: #e1edf4; }
.color-4 { background: #eae5f6; }
.color-5 { background: #f6e8d8; }
.unit-name { flex: 1; min-width: 0; line-height: 1.33; }
.unit-name strong { display: block; font-size: 1.07rem; letter-spacing: -.015em; }
.unit-name > span { color: var(--muted); font-size: .87rem; display: block; margin-top: 3px; }
.unit-count { color: var(--muted); font-size: .87rem; font-weight: 780; white-space: nowrap; }
.chevron { width: 8px; height: 8px; margin: 0 4px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.unit[open] .chevron { transform: rotate(225deg) translate(-2px,-2px); }
.unit ul { padding: 0 15px 7px; margin: 0; list-style: none; }
.unit li a { min-height: 47px; display: flex; align-items: center; gap: 11px; border-top: 1px solid #e9eee6; text-decoration: none; padding: 7px 4px; font-weight: 650; }
.unit li a:hover { background: #f3f8ef; }
.lesson-dot { flex: 0 0 18px; width: 18px; height: 18px; border: 1px solid #a6b7a9; border-radius: 50%; display: grid; place-items: center; }
.lesson-dot.done { background: var(--green); border-color: var(--green); color: white; }
.lesson-dot .icon { width: 13px; height: 13px; }
.lesson-status { margin-left: auto; color: var(--muted); font-size: .84rem; white-space: nowrap; }
.dashboard-side { display: grid; gap: 13px; padding-top: 45px; }
.side-card { padding: 19px; }
.side-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.side-heading h2 { font-size: 1.13rem; margin: 0; }
.score { font-size: 2.55rem; line-height: 1; font-weight: 850; letter-spacing: -.065em; margin: 4px 0 6px; }
.score span { color: var(--muted); font-size: 1.1rem; font-weight: 680; letter-spacing: normal; }
.side-card p, .muted { color: var(--muted); margin-bottom: 12px; }
progress { width: 100%; display: block; appearance: none; border: 0; height: 9px; border-radius: 30px; overflow: hidden; background: #e4ebe1; color: #367252; }
progress::-webkit-progress-bar { background: #e4ebe1; }
progress::-webkit-progress-value { background: #367252; border-radius: 30px; }
progress::-moz-progress-bar { background: #367252; border-radius: 30px; }
.side-bottom { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; align-items: baseline; font-size: .85rem; color: var(--muted); }
.text-link { color: #235a43; font-weight: 760; text-underline-offset: 3px; }
.side-practice { background: #f2f5df; }
.inner { max-width: 790px; margin: 0 auto; }
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .94rem; margin: 3px 0 20px; }
.page-head { margin: 5px 0 20px; }
.page-head h1 { font-size: clamp(2.25rem, 6vw, 4.55rem); letter-spacing: -.073em; line-height: 1; margin: 0; font-weight: 860; }
.page-head > p:not(.overline) { font-size: 1.06rem; line-height: 1.54; color: var(--muted); margin: 12px 0 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 0; margin: 0 0 18px; }
.steps li { border-top: 5px solid #dce5d9; padding: 7px 0; font-weight: 700; color: var(--muted); font-size: .9rem; }
.steps li.active { border-color: #4e8b67; }
.steps li[aria-current] { color: var(--green); font-weight: 850; }
.cards, .source-list { display: grid; gap: 10px; }
.study-card, .question, .result-card, .resume-strip { padding: clamp(16px, 4vw, 27px); }
.study-card h2 { font-size: 1.18rem; letter-spacing: -.025em; margin: 0 0 7px; }
.study-card p, .question p, .result-card p { color: var(--muted); line-height: 1.58; margin: 0; }
.study-card .tile-icon { margin-bottom: 12px; }
.study-card .button { margin-top: 15px; }
.lesson-bottom { margin-top: 17px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.question { margin-top: 15px; }
.question > .overline { margin-bottom: 6px; }
.question h2, .result-card h2 { line-height: 1.2; letter-spacing: -.033em; font-size: clamp(1.33rem, 4vw, 1.85rem); margin-bottom: 16px; }
.choices { display: grid; gap: 8px; }
.choice { text-align: left; cursor: pointer; color: var(--ink); background: #f7f9f4; border: 1px solid #d9e4d9; border-radius: 11px; min-height: 55px; width: 100%; display: flex; gap: 10px; padding: 10px; align-items: center; }
.choice:disabled { cursor: default; }
.choice:hover:not(:disabled) { background: #e9f2e6; border-color: #93b19a; }
.choice > span:first-child { background: #e7eee3; min-width: 30px; border-radius: 8px; min-height: 30px; display: grid; place-items: center; font-weight: 800; }
.choice strong { flex: 1; }
.choice-result { font-size: .8rem; font-weight: 780; text-align: right; }
.choice.correct { background: #e6f4e7; border-color: #83ab8c; }
.choice.incorrect { background: #fff1e5; border-color: #be8f6e; }
.feedback { padding: 13px 17px; border-radius: 10px; margin-top: 15px; background: #fff1de; }
.feedback.right { background: #e6f4e7; }
.feedback h3 { font-size: 1.02rem; margin: 0 0 4px; }
.question-visual { display: grid; place-items: center; margin: 0 0 14px; border-radius: 11px; min-height: 128px; background: #eff3eb; }
.rail-sign { width: 94px; height: 94px; border-radius: 50%; background: var(--yellow); border: 3px solid #252924; display: flex; gap: 7px; justify-content: center; align-items: center; position: relative; color: #222; font-size: 1.12rem; font-weight: 900; }
.rail-sign b { width: 13px; }
.rail-sign::before, .rail-sign::after { content: ""; position: absolute; width: 78px; height: 4px; background: #222; transform: rotate(45deg); }
.rail-sign::after { transform: rotate(-45deg); }
.result-card .tile-icon { margin-bottom: 10px; }
.result-card h2 { margin-bottom: 7px; }
.result-card .actions { margin-top: 16px; }
.stats, .practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats .score { color: var(--ink); line-height: 1; margin: 10px 0; }
.progress-heading { margin: 25px 0 12px; }
.resume-strip { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 12px; background: var(--mint); }
.resume-strip p { margin: 3px 0 0; color: var(--muted); }
.practice-grid + .muted { margin-top: 12px; }
.source-list { line-height: 1.5; padding-left: 22px; }
footer { width: 100%; max-width: 1216px; margin: auto; padding: 15px 26px 25px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
footer a { font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 800px) {
  .dashboard { grid-template-columns: minmax(0,1fr) 250px; gap: 13px; }
  .hero-copy { padding-left: 32px; }
  .road-art { inset-inline-start: 46%; }
  .stop-sign { right: 34%; width: 110px; }
  .stop-sign span { font-size: 1.9rem; }
  .yield-sign { width: 86px; }
  .yield-sign::after { inset: 13px 20px 22px; }
  .yield-sign span { transform: translateY(-12px); font-size: .64rem; }
  .curve-sign { right: 11%; width: 69px; }
}
@media (max-width: 640px) {
  .top-inner { min-height: 64px; padding: 9px 14px; gap: 8px; }
  .nav { gap: 0; }
  .nav a { padding: 12px 8px; font-size: .875rem; }
  .brand { font-size: 1.02rem; gap: 7px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand small { font-size: .58rem; }
  main { padding: 15px 14px 38px; }
  .hero { min-height: 0; border-radius: 18px; }
  .hero-copy { padding: 27px 20px 24px; width: 100%; }
  .hero h1 { font-size: clamp(3.2rem, 11vw, 4.7rem); }
  .hero-copy > p:not(.overline) { max-width: 340px; font-size: 1rem; }
  .road-art { inset: 0 0 35% 43%; opacity: .41; mask-image: linear-gradient(150deg, #000 32%, transparent 87%); }
  .art-glow { width: 190px; height: 190px; right: -26%; }
  .road { right: -154%; top: 23%; }
  .stop-sign { right: 13%; top: 29%; width: 82px; }
  .stop-sign span { font-size: 1.4rem; }
  .yield-sign, .curve-sign { display: none; }
  .dashboard { grid-template-columns: 1fr; margin-top: 21px; }
  .dashboard-side { padding-top: 0; }
  .unit summary { padding: 11px; gap: 9px; }
  .unit ul { padding-inline: 9px; }
  .unit li a { min-height: 48px; }
  footer { padding-inline: 14px; }
}
@media (max-width: 400px) {
  .practice-grid { grid-template-columns: 1fr; }
  .top-inner { padding-inline: 10px; }
  .nav a { padding-inline: 6px; }
  .tile-icon { width: 39px; height: 39px; }
  .hero-copy > p:not(.overline) { max-width: 275px; }
}
.topic-link{display:flex;align-items:center;gap:14px;padding:15px;text-decoration:none}.topic-link:hover{background:#edf5ec}.study-card p+p{margin-top:14px}.result-card{margin-top:18px}.result-card .actions{margin-top:18px}
