/* MedStudy Africa public pages (homepage and programme pages). Builds on portal.css colours and fonts. */
.top .wrap { justify-content: space-between }
.top nav.site { margin-left: auto; gap: 18px }
.top nav.site .btn { padding: 8px 14px; font-size: .92rem }
.top nav.site a.btn { color: #062A2A }
@media (max-width: 760px) { .top nav.site .opt { display: none } }

main.site { padding: 0 }
.sec { padding-block: 56px }
.sec.alt { background: var(--surface); border-block: 1px solid var(--line) }
.eyebrow { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--turq-ink) }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch }
.sec h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin: 6px 0 10px }
.center { text-align: center } .center .lede { margin-inline: auto }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #17b8b033, transparent 60%), var(--navy); color: var(--on-navy) }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 56px 64px }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); color: #fff; letter-spacing: -.01em }
.hero h1 em { font-style: normal; color: var(--turq) }
.hero p.lede { color: var(--on-navy-muted); margin-top: 16px }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px }
.hero .btn.ghost { color: #fff; border-color: #ffffff55 }
.hero .ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: .93rem; color: var(--on-navy-muted); padding: 0; list-style: none }
.hero .ticks li::before { content: "✓ "; color: var(--turq); font-weight: 700 }
.hero .shots { position: relative; min-height: 380px }
.hero .shots .desk { width: 100%; border-radius: 12px; box-shadow: 0 20px 50px #0008; border: 1px solid #ffffff22; background: #fff }
.hero .shots .phone { position: absolute; right: -6px; bottom: -28px; width: 34%; border-radius: 22px; border: 6px solid #0a1a30; box-shadow: 0 18px 40px #000a; background: #fff }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr } .hero .shots { min-height: 0; margin-top: 10px } .hero .shots .phone { width: 38%; right: 4px } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 8px }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px }
.stats b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--turq-ink) }
.stats span { color: var(--muted); font-size: .92rem }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) } }

/* Who it is for / programmes */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px }
.chips a, .chips span { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; text-decoration: none; color: var(--fg); font-weight: 600; font-size: .95rem }
.chips a:hover { border-color: var(--turq) }
.prog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px }
.prog-grid a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--fg) }
.prog-grid a:hover { border-color: var(--turq); box-shadow: 0 6px 18px #0b25451a }
.prog-grid h3 { margin-bottom: 6px } .prog-grid p { color: var(--muted); font-size: .95rem } .prog-grid .go { color: var(--turq-ink); font-weight: 600; margin-top: 10px; display: inline-block }
@media (max-width: 860px) { .prog-grid { grid-template-columns: 1fr 1fr } } @media (max-width: 560px) { .prog-grid { grid-template-columns: 1fr } }

/* Feature rows with screenshots */
.feat { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; margin-top: 48px }
.feat.flip > :first-child { order: 2 }
.feat h3 { font-size: 1.35rem; margin: 6px 0 10px } .feat p { color: var(--muted) }
.feat ul { margin: 12px 0 0; padding-left: 20px; color: var(--fg) } .feat li { margin: 4px 0 }
.feat figure { margin: 0 } .feat img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 12px 30px #0b25451f; background: #fff }
.feat figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px }
@media (max-width: 820px) { .feat { grid-template-columns: 1fr; gap: 18px } .feat.flip > :first-child { order: 0 } }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px }
.mini .card h3 { font-size: 1.05rem; margin-bottom: 6px } .mini .card p { color: var(--muted); font-size: .95rem }
@media (max-width: 820px) { .mini { grid-template-columns: 1fr } }

/* Free plan band */
.free { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, var(--turq-soft), var(--surface)); border: 2px solid var(--turq); border-radius: 16px; padding: 28px }
.free ul { margin: 10px 0 0; padding-left: 0; list-style: none } .free li { margin: 6px 0 } .free li::before { content: "✓ "; color: var(--turq-ink); font-weight: 700 }
.free .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600 } .free .price small { font-size: 1rem; color: var(--muted); font-weight: 400 }
@media (max-width: 760px) { .free { grid-template-columns: 1fr } }

/* Pricing */
.bill { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); margin-top: 16px }
.bill button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--fg) }
.bill button[aria-pressed="true"] { background: var(--navy); color: #fff }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; align-items: stretch }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative }
.plan.pop { border: 2px solid var(--turq); box-shadow: 0 12px 30px #17b8b026 }
.plan .tag { position: absolute; top: -12px; left: 18px; background: var(--turq); color: #062A2A; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 3px 10px }
.plan h3 { font-size: 1.2rem } .plan .who { color: var(--muted); font-size: .93rem; min-height: 2.8em }
.plan .amt { font-family: var(--font-display); font-size: 2rem; font-weight: 600 } .plan .amt small { font-size: .9rem; color: var(--muted); font-weight: 400 }
.plan .yr { color: var(--muted); font-size: .85rem; min-height: 1.3em }
.plan ul { list-style: none; padding: 0; margin: 4px 0 0; flex: 1 } .plan li { padding: 5px 0; border-top: 1px dashed var(--line); font-size: .95rem } .plan li:first-child { border-top: 0 }
.plan .btn { width: 100%; margin-top: 8px }
@media (max-width: 980px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)) } } @media (max-width: 560px) { .plans { grid-template-columns: 1fr } }
.pack { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px }
.pack p { color: var(--muted) }
.paynote { color: var(--muted); font-size: .92rem; margin-top: 14px }

/* Comparison table */
.cmp-wrap { overflow-x: auto; margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); -webkit-overflow-scrolling: touch }
table.cmp { border-collapse: collapse; width: 100%; min-width: 640px }
table.cmp th, table.cmp td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; font-size: .95rem; vertical-align: middle }
table.cmp th:first-child, table.cmp td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); font-weight: 600; max-width: 230px }
table.cmp thead th { font-family: var(--font-display); font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--fg) }
table.cmp thead th.pop { color: var(--turq-ink) }
table.cmp td.y { color: var(--ok); font-weight: 700 } table.cmp td.n { color: var(--muted) }
table.cmp tr:last-child td { border-bottom: 0 }

/* Credits explainer */
.credits { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px }
.cost { list-style: none; padding: 0; margin: 0 } .cost li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line) }
.cost b { font-family: var(--font-mono); color: var(--turq-ink); white-space: nowrap }
@media (max-width: 760px) { .credits { grid-template-columns: 1fr } }

/* FAQ */
.faq { max-width: 820px; margin: 22px auto 0 }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px }
.faq summary { cursor: pointer; font-weight: 600; list-style-position: outside }
.faq details p { margin-top: 10px; color: var(--muted) }

/* Final call to action */
.cta-band { background: var(--navy); color: #fff; text-align: center }
.cta-band h2 { color: #fff } .cta-band p { color: var(--on-navy-muted); margin: 8px auto 20px; max-width: 56ch }

/* Footer for public pages */
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 22px; padding-block: 34px }
footer.site h4 { color: #fff; font-family: var(--font-display); font-size: .95rem; margin: 0 0 8px }
footer.site ul { list-style: none; padding: 0; margin: 0 } footer.site li { margin: 5px 0 }
footer.site a { text-decoration: none } footer.site a:hover { color: #fff }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid #ffffff1f; padding-top: 14px; font-size: .82rem }
@media (max-width: 760px) { footer.site .wrap { grid-template-columns: 1fr 1fr } }

/* Programme pages */
.crumbs { font-size: .9rem; color: var(--on-navy-muted) } .crumbs a { color: var(--on-navy-muted) }
.years { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 18px }
.years .card h3 { font-size: 1rem; color: var(--turq-ink); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px }
.years ul { margin: 0; padding-left: 18px } .years li { margin: 3px 0; font-size: .95rem }
.regs { width: 100%; border-collapse: collapse; margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden }
.regs th, .regs td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .95rem }
.sample { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-top: 16px }
.sample ol { list-style: upper-alpha; padding-left: 22px } .sample li { margin: 4px 0 }
.sample details { margin-top: 10px } .sample summary { cursor: pointer; color: var(--turq-ink); font-weight: 600 }

/* Layout fixes after review */
.hero .shots { min-height: 0; padding-right: 16% }
.hero .shots .desk { width: 100% }
.hero .shots .phone { width: 27%; right: 0; top: 18%; bottom: auto }
@media (max-width: 860px) { .hero .shots { padding-right: 20% } .hero .shots .phone { width: 30%; top: 12% } }
.top { position: relative; z-index: 5 }
.plan .amt { font-size: 1.75rem; white-space: nowrap } .plan .amt small { white-space: nowrap }
.plan .btn { font-size: .95rem }
table.cmp tbody th { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--fg); font-weight: 600 }
.hero .shots img { height: auto }
.hero .shots .phone { width: 24%; top: 6% }
@media (max-width: 860px) { .hero .shots .phone { width: 26%; top: 4% } }
.regs th { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--fg); font-weight: 600; width: 30% }
