:root {
  --green: #006E46;
  --green-deep: #0B3B2A;
  --mint: #F3FBF6;
  --mint-2: #E2F4EA;
  --ink: #12261D;
  --muted: #4E6359;
  --line: #CFE3D8;
  --marigold: #F2A900;
  --marigold-soft: #FFF3D1;
  --white: #FFFFFF;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --head: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Noto Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--mint); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
}
a { color: var(--green); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* header */
.site-head { padding: 18px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-deep); font: 700 1.25rem var(--head); }
.brand svg { width: 34px; height: 34px; }
.preview { font: 600 .75rem var(--body); color: var(--green); background: var(--mint-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.nav-dl { font: 600 .95rem var(--head); text-decoration: none; color: var(--white); background: var(--green); padding: 9px 16px; border-radius: 999px; white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 1.05rem var(--head); text-decoration: none; padding: 15px 24px; border-radius: 14px; }
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 6px 0 var(--green-deep); }
.btn-primary:hover { background: #005C3A; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--green-deep); }
.btn svg { width: 22px; height: 22px; }
.fine { font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* hero */
.hero { padding: 28px 0 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { font: 700 clamp(2.1rem, 5.5vw, 3.4rem)/1.12 var(--head); letter-spacing: -0.02em; color: var(--green-deep); margin: 0 0 18px; max-width: 16ch; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin: 0 0 28px; }

/* question card — the signature element */
.qcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 18px 40px -24px rgba(0, 70, 45, .35); position: relative; }
.qcard .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag { font: 600 .78rem var(--body); padding: 3px 10px; border-radius: 999px; }
.tag-pyq { background: var(--marigold-soft); color: #7A5200; border: 1px solid #F5D27A; }
.tag-marks { background: var(--mint-2); color: var(--green); border: 1px solid var(--line); }
.qcard h2 { font: 600 1.15rem/1.4 var(--head); margin: 0 0 14px; color: var(--ink); }
.qcard table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.qcard th, .qcard td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--mint-2); vertical-align: top; }
.qcard thead th { color: var(--green); font: 600 .85rem var(--head); border-bottom: 2px solid var(--line); }
.qcard tbody th { font-weight: 600; color: var(--muted); width: 32%; }
.callout { margin-top: 14px; border-left: 4px solid var(--marigold); background: var(--marigold-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 10px 12px; font-size: .92rem; }
.callout b { color: #7A5200; }

/* sections */
section.block { padding: 56px 0; border-top: 1px solid var(--line); }
section.block h2 { font: 700 clamp(1.6rem, 3.6vw, 2.2rem)/1.2 var(--head); color: var(--green-deep); margin: 0 0 10px; letter-spacing: -0.01em; }
section.block > .wrap > p.intro { color: var(--muted); max-width: 60ch; margin: 0 0 28px; }

/* contents list */
.contents { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 22px; max-width: 760px; }
.contents li { list-style: none; display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.contents li:last-child { border-bottom: 0; }
.contents ul { margin: 0; padding: 0; }
.contents .name { font: 600 1.05rem var(--head); }
.contents .dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 20px; }
.contents .count { color: var(--green); font-weight: 600; white-space: nowrap; }
.contents .note { display: block; font-size: .88rem; color: var(--muted); font-weight: 400; font-family: var(--body); }
.soon { margin-top: 14px; color: var(--muted); font-size: .95rem; }

/* features: plain two-column list, not cards */
.features { display: grid; gap: 26px 48px; grid-template-columns: 1fr; max-width: 980px; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.features h3 { font: 600 1.15rem var(--head); margin: 0 0 4px; color: var(--ink); display: flex; gap: 10px; align-items: center; }
.features h3 svg { width: 24px; height: 24px; flex: none; color: var(--green); }
.features p { margin: 0; color: var(--muted); }

/* steps: a real sequence */
.steps { counter-reset: s; display: grid; gap: 18px; padding: 0; margin: 0; max-width: 720px; }
.steps li { counter-increment: s; list-style: none; position: relative; padding-left: 56px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--white); font: 700 1rem/38px var(--head); text-align: center; }
.steps h3 { margin: 4px 0 2px; font: 600 1.08rem var(--head); }
.steps p { margin: 0; color: var(--muted); }

/* download band */
.band { background: var(--green-deep); color: #E6F5EC; border-radius: var(--radius-lg); padding: 36px 28px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .band { grid-template-columns: 1fr auto; padding: 44px; } }
.band h2 { color: var(--white) !important; margin: 0 0 6px !important; }
.band p { margin: 0; color: #B9DCC8; }
.band .btn-primary { background: var(--marigold); color: var(--green-deep); box-shadow: 0 6px 0 #B57F00; }
.band .btn-primary:hover { background: #FFBA1A; }

/* download page */
.dl-hero { padding: 24px 0 48px; }
.dl-hero h1 { font: 700 clamp(2rem, 5vw, 2.8rem)/1.15 var(--head); color: var(--green-deep); margin: 0 0 12px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 26px 0 0; font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; word-break: break-all; }
.facts code { font-size: .82rem; font-weight: 500; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; max-width: 760px; }
.warn { margin-top: 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--marigold-soft); border: 1px solid #F5D27A; font-size: .95rem; }

/* footer */
footer { padding: 36px 0 48px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }

@media (prefers-reduced-motion: no-preference) {
  .qcard { animation: rise .7s ease-out .15s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px) rotate(-1deg); } to { opacity: 1; transform: none; } }
}

/* phone fixes */
.hero .wrap > * { min-width: 0; }
@media (max-width: 480px) {
  .qcard { padding: 16px; }
  .qcard th, .qcard td { padding: 6px 5px; font-size: .86rem; }
  .contents { padding: 4px 16px; }
}

/* semester track */
.sem { max-width: 760px; padding: 18px 0 18px 22px; border-left: 3px solid var(--line); position: relative; }
.sem::before { content: ""; position: absolute; left: -9px; top: 24px; width: 15px; height: 15px; border-radius: 50%; background: var(--mint); border: 3px solid var(--line); }
.sem:first-of-type { border-left-color: var(--green); }
.sem:first-of-type::before { background: var(--green); border-color: var(--green); }
.sem-title { font: 700 1.25rem var(--head); color: var(--green-deep); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status { font: 600 .78rem var(--body); padding: 3px 10px; border-radius: 999px; background: var(--white); color: var(--muted); border: 1px solid var(--line); }
.status-ready { background: var(--green); color: var(--white); border-color: var(--green); }
.subjects { margin: 0; color: var(--muted); max-width: 60ch; }
