/* Mission KAS landing page — mobile first. Colours and fonts per developer brief. */
:root {
  --blue: #284090; --deep: #1A2A80; --navy: #13204A; --orange: #FB9E3A;
  --tile: #EEF2FB; --pale: #F3F6FD; --off: #F5F7FC;
  --text: #424B63; --muted: #6B7280; --border: #E2E6EF; --green: #22C55E; --err: #dc2626;
  --head: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px; --shadow: 0 10px 30px rgba(19, 32, 74, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--body); color: var(--text); background: #fff; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1.35; }
p { margin: 0 0 1em; }
strong { font-weight: 700; color: var(--navy); }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap-text { max-width: 960px; }
.wrap-narrow { max-width: 900px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--navy); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.review-ribbon { background: #FEF3C7; color: #78350f; font-size: 13px; font-weight: 600; text-align: center; padding: 6px 12px; }
.review-ribbon[hidden] { display: none; }
.section-pad { padding: 28px 0; }
.section-pad + .section-pad { padding-top: 12px; }
.band { background: var(--off); padding: 56px 0; margin: 28px 0; }
.section-title { text-align: center; margin-bottom: 28px; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head .section-title { margin-bottom: 0; }
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.eyebrow-light { color: rgba(255,255,255,.85); }
.eyebrow-orange { color: var(--orange); }

/* Placeholder slots (bracketed copy pending from Statecraft) */
.slot { color: var(--muted); }
.slot-label { font-weight: 700; color: var(--blue); font-family: var(--body); font-size: 17px; }
.slot-label-light { color: rgba(255,255,255,.85); font-weight: 400; font-size: 14px; }
.slot-sub { color: var(--muted); font-size: 14px; }
body.slots-empty .slot { display: none; }
body.slots-empty .slot-label, body.slots-empty .slot-sub { visibility: hidden; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--body); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 2px solid transparent; min-height: 48px; padding: 0 22px; line-height: 1.2; transition: background .15s, color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-pill { border-radius: 999px; min-height: 44px; padding: 0 20px; }
.btn-square { border-radius: 8px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-orange:hover { background: #f08f22; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--deep); }
.btn-blue[disabled] { opacity: .7; cursor: progress; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--tile); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-row .btn { flex: 1 1 100%; }

/* 0 Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand img { height: 34px; width: auto; }

/* 1 Hero */
.hero { background: #E0E6F7; }
.hero img { width: 100%; height: auto; }
.hero-slot { min-height: 220px; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; }

/* 2 Open Admissions */
.admissions-card { background: #fff; border: 2px solid #FBCF9A; border-radius: 16px; padding: 20px 16px; box-shadow: var(--shadow); }
.admissions-title { font-family: var(--body); font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.fact-strip { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--pale); }
.fact { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fact:nth-child(2n) { border-right: 0; }
.fact:nth-last-child(-n+2) { border-bottom: 0; }
.ico { width: 18px; height: 18px; fill: var(--blue); flex: none; margin-top: 2px; }
.fact-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact-value { display: block; font-weight: 700; color: var(--navy); font-size: 14px; line-height: 1.35; }
.price-row { margin-top: 14px; background: var(--pale); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.price-name { font-size: 16px; }
.price-right { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-amount { font-family: var(--head); font-size: 26px; font-weight: 700; color: var(--navy); display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-amount small { font-family: var(--body); font-size: 11px; font-weight: 700; color: var(--muted); }
.old-price { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--muted); }

/* 3 Intro */
.intro h1 { margin-bottom: 8px; }
.tagline { font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .01em; font-size: 16px; margin-bottom: 18px; }
.intro p { font-size: 16px; }

/* 4 Video */
.video-frame { max-width: 896px; margin: 0 auto; aspect-ratio: 16 / 9; background: var(--navy); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(19,32,74,.25); position: relative; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-slot { position: absolute; inset: 0; width: 100%; border: 0; background: var(--navy); color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; font-family: var(--body); }
.video-slot[aria-disabled="true"] { cursor: default; }
.play-ring { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--orange); display: grid; place-items: center; }
.play-tri { border-left: 18px solid var(--orange); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }

/* 5 Why choose */
.panel { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.panel-titlebar { background: var(--blue); color: #fff; text-align: center; padding: 18px 16px; }
.panel-titlebar h2 { color: #fff; margin: 0; font-size: 22px; }
.tiles { display: grid; gap: 12px; padding: 16px; }
.tile { background: var(--tile); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.tile h3 { margin-bottom: 6px; }
.tile p { margin: 0; font-size: 14.5px; }

/* 6 Details + form */
.details-grid { display: grid; gap: 20px; }
.details-card { background: var(--navy); color: #fff; border-radius: 16px; padding: 24px 20px; scroll-margin-top: 80px; }
.details-card h2 { color: #fff; font-size: 26px; }
.details-card strong { color: #fff; }
.details-sub { color: var(--orange); font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.details-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: 15px; color: rgba(255,255,255,.9); }
.fee-box { margin-top: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 16px; }
.fee-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.fee-amount { font-family: var(--head); font-size: 30px; font-weight: 700; line-height: 1; }
.fee-amount small { font-family: var(--body); font-size: 12px; font-weight: 700; color: rgba(255,255,255,.8); }
.fee-total { font-size: 13px; color: rgba(255,255,255,.75); margin: 8px 0 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.15); }
.fee-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: rgba(255,255,255,.85); }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px 20px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 24px; margin-bottom: 4px; }
.form-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 13.5px; color: var(--navy); margin-bottom: 6px; }
.field input, .field select { width: 100%; min-height: 48px; font: inherit; font-size: 15px; color: var(--navy); padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23424B63'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field.invalid input, .field.invalid select { border-color: var(--err); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 16px; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.consent.invalid { color: var(--err); }
.form-error { color: var(--err); font-size: 14px; margin: 0 0 10px; }
.form-error[hidden] { display: none; }
.form-thanks { text-align: center; padding: 24px 8px; }
.form-thanks[hidden] { display: none; }
.form-thanks .check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #DCFCE7; color: #15803d; font-weight: 800; font-size: 24px; margin: 0 auto 14px; }
.form-thanks p { color: var(--navy); font-weight: 600; font-size: 16px; margin: 0; }

/* 7 Dual panel */
.dual-panel { border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: grid; gap: 12px; box-shadow: var(--shadow); background: #fff; }
.dual { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.dual-title { background: var(--deep); color: #fff; font-family: var(--body); font-size: 16px; font-weight: 700; text-align: center; padding: 14px 16px; margin: 0; }
.bullets { list-style: none; padding: 18px 18px 18px 36px; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.bullets li { position: relative; }
.bullets li::before { content: ""; position: absolute; left: -16px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* 8 Features */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.features .num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.features h3 { margin-bottom: 4px; font-size: 16px; }
.features p { margin: 0; font-size: 14px; }

/* 9 Tests table + tab tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--deep); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
thead th { background: var(--deep); color: #fff; text-align: left; font-weight: 700; padding: 12px 14px; border-right: 1px solid rgba(255,255,255,.2); }
thead th:last-child { border-right: 0; }
tbody td, tbody th { padding: 12px 14px; border-top: 1px solid var(--border); text-align: left; color: var(--navy); vertical-align: top; }
tbody tr:nth-child(odd) td, tbody tr:nth-child(odd) th { background: var(--pale); }
tbody th[scope="row"] { font-weight: 700; white-space: nowrap; }
.tests tr.total td { font-weight: 700; background: var(--tile); }
.steps { font-size: 14.5px; }

/* 10 Tabs */
.tabs { border: 1.5px solid var(--blue); border-radius: 10px; background: var(--pale); overflow: hidden; }
.tablist { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--orange); background: #fff; }
.tablist [role="tab"] { font: inherit; font-weight: 700; font-size: 14px; color: var(--navy); background: transparent; border: 0; min-height: 48px; padding: 10px 12px; cursor: pointer; }
.tablist [role="tab"]:hover { background: var(--tile); }
.tablist [role="tab"]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.tablist [role="tab"][aria-selected="true"] { background: var(--deep); color: #fff; }
.tabs [role="tabpanel"] { padding: 20px 16px 24px; }
.tabs [role="tabpanel"][hidden] { display: none; }
.tab-intro { font-weight: 600; color: var(--navy); }
.tabs .bullets { padding: 0 0 0 18px; font-size: 14.5px; }
.tabs .bullets li::before { left: -16px; top: 9px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; color: var(--navy); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #DCFCE7; color: #15803d; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.text-link { display: inline-block; margin-top: 14px; font-weight: 700; }

/* 11 FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 0 16px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--navy); font-size: 15px; padding: 16px 32px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--blue); font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.faq details p { margin: 0; padding: 0 0 16px; font-size: 14.5px; }

/* 12 CTA band */
.cta-band { background: var(--navy); color: #fff; padding: 48px 0; }
.cta-row { display: grid; gap: 22px; }
.cta-band h2 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; font-size: 15px; }
.cta-row .btn { justify-self: start; }

/* 13 Footer */
.site-footer { border-top: 1px solid var(--border); padding: 20px 0; font-size: 13px; color: var(--muted); }
.footer-row { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-row a { color: var(--blue); text-decoration: none; font-weight: 600; }
.footer-row a:hover { text-decoration: underline; }

/* Tablet */
@media (min-width: 768px) {
  h1 { font-size: 44px; } h2 { font-size: 34px; }
  .hero-slot { aspect-ratio: 1920 / 600; min-height: 0; }
  .fact-strip { grid-template-columns: repeat(4, 1fr); }
  .fact { border-bottom: 0; }
  .fact:nth-child(2n) { border-right: 1px solid var(--border); }
  .fact:last-child { border-right: 0; }
  .price-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .btn-row .btn { flex: 0 0 auto; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .dual-panel { grid-template-columns: 1fr 1fr; }
  .tablist { grid-template-columns: repeat(4, 1fr); }
  .tablist [role="tab"] { font-size: 15px; }
  .ticks { grid-template-columns: 1fr 1fr; }
  .tabs [role="tabpanel"] { padding: 24px; }
  .cta-row { grid-template-columns: 1fr auto; align-items: center; }
  .footer-row { flex-direction: row; justify-content: space-between; align-items: center; }
  .section-pad { padding: 36px 0; }
}
/* Desktop */
@media (min-width: 1024px) {
  h1 { font-size: 56px; } h2 { font-size: 40px; }
  .panel-titlebar h2 { font-size: 28px; }
  .details-card h2 { font-size: 30px; }
  .form-card h2 { font-size: 26px; }
  .cta-band h2 { font-size: 36px; }
  .intro p { font-size: 17px; }
  .tagline { font-size: 19px; }
  .details-grid { grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
  .details-card, .form-card { padding: 30px 28px; }
  .admissions-card { padding: 24px 24px 28px; }
  .band { padding: 72px 0; }
  .cta-band { padding: 64px 0; }
}
