/* Academy home (/academy/): hero, four-step method, subjects, QCM space, plans, FAQ.
   Everything is prefixed .ac-; colours come from the site tokens, so dark mode follows. */
.ac-hero { text-align: center; padding: clamp(56px, 9vw, 112px) 0 clamp(24px, 4vw, 48px); }
.ac-hero h1 { margin: 14px auto 18px; max-width: 14ch; font-size: clamp(40px, 7.4vw, 84px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.ac-hero h1 { max-width: 18ch; }
.ac-grad { background: linear-gradient(100deg, var(--accent) 0%, #4EA3E6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ac-lead { margin: 0 auto 26px; max-width: 640px; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.ac-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 14px; align-items: center; }
.ac-ctas .btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; padding: 0 28px; border: 1.5px solid var(--accent); border-radius: 100px; font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; text-align: center; }
.ac-ctas .btn-primary { background: var(--accent); color: #fff; }
.ac-ctas .btn-outline { background: transparent; color: var(--accent); }
.ac-fine { margin: 0; font-size: 13.5px; color: var(--text-muted); }
.ac-fine--c { text-align: center; margin: 22px 0 0; }

/* method */
.ac-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ac-steps li { display: flex; flex-direction: column; padding: 26px 22px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg-soft); }
.ac-steps b { font: 600 13px 'IBM Plex Mono', monospace; letter-spacing: .1em; color: var(--accent); }
.ac-steps h3 { margin: 14px 0 8px; font: 700 22px/1.15 'Sora', sans-serif; letter-spacing: -.02em; }
.ac-steps p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.ac-steps .link { margin-top: auto; font-weight: 600; font-size: 14.5px; }

/* subjects */
.ac-subjects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ac-subj { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); color: var(--text); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.ac-subj:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 28px -16px rgba(34, 82, 204, .45); }
.ac-subj b { grid-row: 1 / 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--bg-soft); font: 600 12px 'IBM Plex Mono', monospace; letter-spacing: .06em; color: var(--accent); }
.ac-subj strong { font: 600 16px/1.25 'Sora', sans-serif; }
.ac-subj span { font-size: 13.5px; color: var(--text-muted); }
.ac-subj:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* QCM space */
.ac-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.ac-feats > div { padding: 26px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ac-feats > div:nth-child(3n) { border-right: 0; }
.ac-feats > div:nth-last-child(-n + 3) { border-bottom: 0; }
.ac-feats h3 { margin: 0 0 8px; font: 700 18px/1.2 'Sora', sans-serif; letter-spacing: -.015em; }
.ac-feats p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* plans */
.ac-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 860px; margin: 0 auto; }
.ac-plan { display: block; padding: 28px; border: 1px solid var(--border); border-radius: 24px; background: var(--bg-soft); color: var(--text); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.ac-plan:hover { transform: translateY(-2px); border-color: var(--accent); }
.ac-plan small { font: 600 12px 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ac-plan strong { display: block; margin: 12px 0 2px; font: 800 clamp(36px, 5vw, 48px)/1 'Sora', sans-serif; letter-spacing: -.04em; }
.ac-plan strong span { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--text-muted); }
.ac-plan em { display: block; margin-bottom: 14px; font-style: normal; font-size: 14.5px; color: var(--text-muted); }
.ac-plan p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.ac-plan--hi { background: #0E1A3A; border-color: #0E1A3A; color: #fff; }
.ac-plan--hi small { color: #8FB0FF; }
.ac-plan--hi strong, .ac-plan--hi p, .ac-plan--hi em, .ac-plan--hi strong span { color: #fff; }
.ac-plan--hi p, .ac-plan--hi em, .ac-plan--hi strong span { color: #C9D6F2; }

/* FAQ */
.ac-faq { max-width: 820px; margin: 0 auto 8px; border-top: 1px solid var(--border); }
.ac-q { border-bottom: 1px solid var(--border); }
.ac-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 20px 2px; list-style: none; cursor: pointer; font: 600 clamp(16px, 2vw, 19px)/1.3 'Sora', sans-serif; }
.ac-q summary::-webkit-details-marker { display: none; }
.ac-q summary i { position: relative; flex: none; width: 18px; height: 18px; }
.ac-q summary i::before, .ac-q summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--text); transition: transform .25s ease; }
.ac-q summary i::after { transform: rotate(90deg); }
.ac-q[open] summary i::after { transform: rotate(0); }
.ac-q summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ac-q p { margin: 0 0 20px; max-width: 66ch; font-size: 16px; line-height: 1.65; color: var(--text-muted); }

.ac-hero + .container, .container > .section-head { margin-top: clamp(48px, 7vw, 88px); }
@media (max-width: 1000px) { .ac-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ac-subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ac-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ac-feats > div { border-right: 1px solid var(--border) !important; border-bottom: 1px solid var(--border) !important; } .ac-feats > div:nth-child(2n) { border-right: 0 !important; } .ac-feats > div:nth-last-child(-n + 2) { border-bottom: 0 !important; } }
@media (max-width: 600px) { .ac-steps, .ac-subjects, .ac-plans, .ac-feats { grid-template-columns: minmax(0, 1fr); } .ac-feats > div { border-right: 0 !important; border-bottom: 1px solid var(--border) !important; } .ac-feats > div:last-child { border-bottom: 0 !important; } }
@media (prefers-reduced-motion: reduce) { .ac-subj, .ac-plan { transition: none; } }
.container > .section-head { margin-bottom: 28px; }
.ac-feats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ac-feats--3 > div { border-bottom: 0 !important; } @media (max-width: 760px) { .ac-feats--3 { grid-template-columns: minmax(0, 1fr); } .ac-feats--3 > div { border-right: 0 !important; border-bottom: 1px solid var(--border) !important; } .ac-feats--3 > div:last-child { border-bottom: 0 !important; } }
