:root {
  --paper: #f8f6ee;
  --ink: #1f4d3e;
  --mint: #72c3a7;
  --blue: #2a94d3;
  --amber: #f5a33c;
  --charcoal: #393636;
  --muted: #53635a;
  --line: #ced4c7;
  --sage: #e4ebde;
  --display: "Baloo 2", "Noto Sans TC", system-ui, sans-serif;
  --body: "Noto Sans TC", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--charcoal); background: var(--paper); font: 400 16px/1.6 var(--body); }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(55px,5.55vw,84px); line-height: 1.035; letter-spacing: -.058em; font-weight: 700; }
h2 { font-size: clamp(36px,3.6vw,55px); line-height: 1.1; letter-spacing: -.047em; font-weight: 650; }
h3 { font-size: 23px; line-height: 1.24; letter-spacing: -.034em; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #11679a; outline-offset: 4px; }
.wrap { width: min(calc(100% - 96px), 1184px); margin-inline: auto; }
.section { padding-block: clamp(72px,7.6vw,112px); }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus { position: absolute; top: 10px; left: 10px; z-index: 10; padding: 10px; background: white; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; color: var(--ink);
  font: 700 11px/1.5 var(--body); letter-spacing: .14em; text-transform: uppercase;
}
.rule { width: 26px; height: 2px; background: currentColor; }
.slash { color: #74877b; font-weight: 400; }
.eyebrow + h2 { margin-top: 16px; }
h2 + p { margin-top: 19px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, nav, .actions, .facts { display: flex; align-items: center; }
.header-inner { min-height: 83px; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 101px; }
nav { gap: clamp(21px,2.5vw,40px); font-size: 14px; font-weight: 600; color: var(--ink); }
nav a { padding-block: 10px; }
.nav-section:hover { text-decoration: underline; text-underline-offset: 5px; }
.app-link { display: inline-flex; align-items: center; gap: 16px; border: 1px solid var(--ink); border-radius: 5px; padding-inline: 17px; }
.app-link:hover, .secondary:hover { background-color: var(--sage); }
.app-link span { line-height: 1; font-family: system-ui,sans-serif; }
.hero {
  padding-block: clamp(40px,4.7vw,70px); display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: clamp(32px,4.5vw,74px);
}
.hero-copy { animation: enter 360ms var(--ease) both; }
.hero h1 { margin: 24px 0 22px; }
.hero h1 em { font-style: normal; color: #38745e; }
.hero-lead { max-width: 490px; font-size: clamp(17px,1.35vw,20px); line-height: 1.62; }
.actions { gap: 12px; flex-wrap: wrap; margin-top: 31px; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 16px;
  min-height: 49px; padding: 12px 21px; border-radius: 5px; font-size: 15px; font-weight: 700;
  line-height: 1.35; border: 1px solid transparent;
}
.button span { font: 500 21px/1 system-ui,sans-serif; }
.primary { background: var(--ink); color: white; }
.primary:hover { background: #153e31; }
.secondary { border-color: #a9b6aa; color: var(--ink); }
.facts { list-style: none; padding: 0; flex-wrap: wrap; gap: 8px 15px; margin-top: 28px; font-size: 13px; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts li + li::before { content: ''; width: 6px; height: 6px; background: var(--mint); }
.facts li:nth-child(3)::before { background: var(--blue); }
.facts li:nth-child(4)::before { background: var(--amber); }
.field-plate {
  animation: enter 410ms var(--ease) both;
}
.device-preview {
  isolation: isolate; position: relative; width: 100%; height: clamp(444px,36vw,520px);
  overflow: hidden; border: 1px solid #becdbf; border-radius: 12px; background: #dbe7d8;
}
.orbit { position: absolute; border: 1px solid #afc6b5; border-radius: 50%; pointer-events: none; }
.orbit-a { width: 92%; aspect-ratio: 1; left: -38%; bottom: -30%; }
.orbit-b { width: 111%; aspect-ratio: 1; left: -47.5%; bottom: -40%; }
.orbit-c { width: 133%; aspect-ratio: 1; left: -58.5%; bottom: -52%; }
.registration { position: absolute; height: 15px; width: 15px; color: #7f9f8d; }
.registration::after, .registration::before { content: ''; position: absolute; background: currentColor; }
.registration::before { width: 1px; height: 100%; left: 7px; }
.registration::after { height: 1px; width: 100%; top: 7px; }
.top-left { left: 23px; top: 23px; }.bottom-right { right: 23px; bottom: 23px; }
.device {
  position: absolute; width: 53%; max-width: 309px; left: 34%; top: 44px; transform: rotate(6deg);
  border: 7px solid #213d33; border-radius: 34px; background: #f5f5f3; overflow: hidden;
  box-shadow: 0 0 0 2px #899d8e, 6px 15px 24px #243e342e;
}
.device img { width: 100%; }
.specimen {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px;
  margin-top: 10px; padding-left: 10px; border-left: 3px solid var(--amber);
}
.specimen strong { font: 700 17px/1.3 var(--display); letter-spacing: -.035em; color: var(--ink); }
.specimen .eyebrow { font-size: 9px; gap: 7px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #387860; }
.band { background: var(--ink); color: var(--paper); }
.band h2 { color: var(--paper); }
.band p { color: #deeadf; }
.band .eyebrow { color: #a5dac1; }
.problem-inner { display: grid; grid-template-columns: 1.2fr .85fr; align-items: center; gap: 8%; padding-block: 51px; }
.problem h2 { font-size: clamp(32px,2.95vw,46px); }
.problem h2 + p { max-width: 535px; margin-top: 13px; }
.score-diagram { display: flex; justify-content: center; align-items: center; gap: clamp(14px,2.2vw,35px); }
.score, .map-symbol { display: grid; justify-items: center; gap: 10px; }
.score strong { font: 600 52px/70px var(--display); letter-spacing: -.07em; }
.score strong span { color: #b2cebb; font-size: 32px; }
.score-diagram small { color: #dbe9df; font-size: 12px; }
.diagram-arrow { position: relative; width: clamp(36px,4.7vw,70px); height: 1px; background: #9ec5ad; margin-top: -29px; }
.diagram-arrow::after { content: ''; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border: solid #9ec5ad; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.mini-grid { width: 69px; aspect-ratio: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
.mini-grid i { background: var(--mint); border-radius: 2px; }
.mini-grid i:nth-child(3n+2) { background: #a5d1bc; }
.mini-grid i:nth-child(3), .mini-grid i:nth-child(8) { background: #507661; }
.mini-grid i:nth-child(5) { background: var(--amber); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; margin-top: 46px; }
.steps li { border-top: 1px solid var(--line); padding-top: 20px; }
.step-no { display: inline-block; font: 500 30px/1 var(--display); letter-spacing: -.07em; color: var(--ink); }
.step-no::after { content: ''; display: block; margin-top: 9px; width: 100%; height: 3px; background: var(--mint); }
.steps li:nth-child(2) .step-no::after { background: var(--blue); }
.steps li:nth-child(3) .step-no::after { background: var(--amber); }
.steps h3 { margin: 18px 0 9px; }
.steps p { max-width: 340px; }
.map-section { background: var(--sage); border-block: 1px solid #d3dbce; }
.map-layout, .practice-layout, .school-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(40px,7.8vw,120px); }
.map-layout { padding-block: clamp(56px,6vw,86px); }
.map-intro h2 { max-width: 440px; }
.map-intro > p:not(.eyebrow) { max-width: 385px; }
.map-help { margin-top: 23px; padding-left: 13px; border-left: 2px solid #66967c; font-size: 14px; }
.map-card { background: #fafbf5; border: 1px solid #b8c7b7; border-radius: 10px; padding: clamp(18px,2.1vw,32px); }
.matrix { min-width: 0; border: 0; padding: 0; margin: 0; }
.matrix-body { display: grid; grid-template-columns: minmax(60px,.88fr) repeat(3,minmax(0,1fr)); gap: 6px; align-items: center; }
.col-label, .row-label { font-size: 13px; font-weight: 650; color: var(--ink); }
.col-label { text-align: center; padding-bottom: 4px; }.row-label { padding-right: 4px; }
.cell { position: relative; display: block; cursor: pointer; }
.cell input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.cell span { display: grid; place-items: center; min-height: 49px; border-radius: 4px; background: #dfebdf; color: #365344; font: 600 16px var(--body); }
.cell input:checked + span { background: var(--ink); color: #fff; }
.cell input:checked + span::after { content: '✓'; position: absolute; right: 6px; top: 4px; font: 700 10px/1 system-ui,sans-serif; }
.cell input:focus-visible + span { outline: 3px solid #11679a; outline-offset: 2px; z-index: 1; position: relative; }
.map-detail { display: grid; margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); min-height: 142px; }
.cell-note { grid-area: 1 / 1; visibility: hidden; font-size: 14px; }
.cell-title { color: var(--ink); font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.cell-note blockquote { padding-left: 13px; border-left: 2px solid #b68037; margin-top: 9px; color: var(--ink); }
.map-card:has(#cell-a1:checked) .note-a1,
.map-card:has(#cell-a2:checked) .note-a2,
.map-card:has(#cell-a3:checked) .note-a3,
.map-card:has(#cell-b1:checked) .note-b1,
.map-card:has(#cell-b2:checked) .note-b2,
.map-card:has(#cell-b3:checked) .note-b3,
.map-card:has(#cell-c1:checked) .note-c1,
.map-card:has(#cell-c2:checked) .note-c2,
.map-card:has(#cell-c3:checked) .note-c3 { visibility: visible; }
.practice-layout { grid-template-columns: 1fr .95fr; }
.themes { list-style: none; padding: 0; margin-top: 25px; }
.themes li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 13px; color: var(--ink); font-weight: 600; }
.themes li::before { content: ''; width: 7px; height: 7px; flex: none; border: 1px solid #649077; transform: rotate(45deg); }
.mock { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fffdf5; }
.canyon { background: #fff; border-bottom: 1px solid var(--line); }
.canyon img { width: 100%; height: 215px; object-fit: contain; }
.mock figcaption { padding: 23px 30px 28px; }
.mock h3 { font-size: 48px; letter-spacing: -.06em; margin: 4px 0 9px; }
.mock h3 span { font-size: 24px; letter-spacing: -.04em; }
.levels { border-block: 1px solid var(--line); background: #efefe4; }
.levels .section { padding-block: 72px; }
.levels h2 + p { max-width: 650px; }
.route { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); text-align: center; }
.route li { display: flex; align-items: center; flex-direction: column; gap: 9px; position: relative; }
.route li:not(:last-child)::after { content: ''; position: absolute; inset: 23px auto auto 50%; height: 1px; width: 100%; background: #98ad9a; }
.stop { position: relative; z-index: 1; display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid #a5b49f; background: #f8f8ed; border-radius: 50%; color: var(--ink); font: 600 17px var(--display); }
.milestone .stop { border-color: var(--ink); background: var(--ink); color: white; outline: 1px solid #9bb09c; outline-offset: 3px; }
.certificate-key { display: none; }
.milestone strong { font-size: 13px; color: var(--ink); }
.school-layout { grid-template-columns: 1.3fr .7fr; }
.school-layout h2 + p { max-width: 550px; }
.school-note { padding: 12px 0 10px 30px; border-left: 3px solid var(--mint); display: grid; color: var(--ink); }
.school-note strong { font: 600 43px/1.14 var(--display); letter-spacing: -.055em; margin-top: 12px; }
.endorsement { border-block: 1px solid var(--line); }
.endorsement-inner { display: flex; justify-content: center; align-items: center; gap: 29px; padding-block: 36px; }
.endorsement img { width: 87px; }
.endorsement h2 { font-size: clamp(19px,1.6vw,25px); letter-spacing: -.025em; }
.endorsement p { margin-top: 6px; font-size: 14px; }
.faq-layout { display: grid; grid-template-columns: .65fr 1fr; gap: 8%; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; position: relative; list-style: none; padding: 19px 33px 19px 0; line-height: 1.5; font-weight: 600; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; display: grid; place-items: center; position: absolute; right: 2px; top: 20px; height: 20px; width: 20px; font: 400 21px/1 system-ui,sans-serif; }
details[open] summary::after { content: '−'; }
details p { padding: 0 30px 20px 0; font-size: 15px; }
.final-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-block: 65px; }
.final-inner p { margin-top: 15px; }
.light { background: var(--paper); color: var(--ink); }
.light:hover { background: #dcebdc; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 28px; }
.footer .brand img { width: 78px; }
.footer p { font-size: 12px; flex: 1; }
.educator-link { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.reveal { transition: opacity 360ms var(--ease), transform 360ms var(--ease); }
.awaiting-entry { opacity: 0; transform: translateY(14px); }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 26px; }
  .facts { font-size: 12px; column-gap: 8px; }
  .facts li { gap: 5px; }
  .facts li + li::before { width: 4px; height: 4px; }
  h1 { font-size: clamp(46px,6.35vw,57px); }
  .actions .secondary { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; padding-inline: 5px; }
  .actions .primary { gap: 9px; padding-inline: 14px; }
  .device { width: 66%; left: 28%; }
  .device-preview { height: 421px; }
  .map-layout, .practice-layout { gap: 32px; }
  .steps { gap: 24px; }
  .map-layout { grid-template-columns: .8fr 1.2fr; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 62px; }
  .header-inner .brand img { width: 82px; }
  .nav-section { display: none; }
  .app-link { min-height: 40px; padding: 8px 12px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; padding-block: 38px 28px; gap: 27px; }
  h1 { font-size: clamp(40px,12.6vw,72px); }
  .hero h1 { margin: 15px 0; }
  .hero-lead { font-size: 16px; }
  .actions { margin-top: 21px; gap: 9px; }
  .button { padding: 12px 14px; font-size: 14px; min-height: 45px; gap: 10px; }
  .facts { margin-top: 18px; }
  .device-preview { height: auto; aspect-ratio: 1.12; max-height: 440px; }
  .device { width: 54%; top: 26px; left: 35%; border-radius: 24px; border-width: 5px; }
  .registration { transform: scale(.8); }.top-left { left: 13px; top: 13px; }.bottom-right { right: 13px; bottom: 13px; }
  .section { padding-block: 55px; }
  .eyebrow { font-size: 10px; }
  .problem-inner, .map-layout, .practice-layout, .school-layout, .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .problem-inner { padding-block: 36px; }
  .problem h2 { font-size: 31px; }
  .score-diagram { justify-content: flex-start; padding-top: 18px; border-top: 1px solid #527463; }
  .score-diagram .mini-grid { width: 53px; }
  .score strong { font-size: 42px; line-height: 53px; }
  .steps { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
  .steps li { display: grid; grid-template-columns: 38px 1fr; column-gap: 15px; align-items: start; padding-top: 18px; }
  .steps h3 { margin: 0 0 5px; }
  .steps p { max-width: none; grid-column: 2; font-size: 15px; }
  .step-no { grid-row: span 2; width: fit-content; font-size: 25px; }
  .map-layout { padding-block: 46px; }
  .map-help { margin-top: 16px; }
  .map-card { padding: 17px; }
  .matrix-body { grid-template-columns: minmax(48px,.8fr) repeat(3,minmax(0,1fr)); gap: 4px; }
  .col-label, .row-label { font-size: 11px; }
  .cell span { min-height: 44px; font-size: 14px; }
  .map-detail { display: grid; margin-top: 17px; min-height: 154px; }
  .canyon img { height: auto; }
  .mock figcaption { padding: 20px; }
  .levels .section { padding-block: 48px; }
  .route { margin-top: 28px; }
  .route li:not(:last-child)::after { top: 16px; }
  .stop { width: 33px; height: 33px; font-size: 14px; }
  .milestone strong { font-size: 10px; }
  .school-note { padding: 8px 0 8px 20px; }
  .school-note strong { font-size: 31px; }
  .endorsement-inner { gap: 20px; padding-block: 26px; }
  .endorsement img { width: 60px; flex: none; }
  .endorsement h2 { font-size: 18px; line-height: 1.25; }
  .endorsement p { font-size: 12px; }
  .final-inner, .footer { flex-direction: column; align-items: flex-start; }
  .final-inner { padding-block: 46px; gap: 22px; }
  .footer { gap: 12px; }
}
@media (max-width: 480px) {
  .route .milestone strong { display: none; }
  .certificate-key { display: grid; margin: 22px 0 0; }
  .certificate-key div { display: flex; align-items: baseline; gap: 22px; padding-block: 8px; border-bottom: 1px solid var(--line); }
  .certificate-key dt { color: var(--muted); font-size: 13px; }
  .certificate-key dd { margin: 0; font-size: 15px; font-weight: 650; color: var(--ink); }
}
@media (max-width: 359px) {
  .actions .primary span { display: none; }
  .facts { font-size: 11.5px; column-gap: 3px; }
  .facts li { gap: 2px; }
  .facts li + li::before { width: 3px; height: 3px; }
  .hero { row-gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .field-plate { animation: fade 240ms linear both; }
  .reveal { transition: opacity 240ms linear; }
  .awaiting-entry { transform: none; }
}
@media print {
  .reveal, .hero-copy, .field-plate { animation: none; transition: none; opacity: 1; transform: none; }
}
