/* Clarion public site — shares the app's palette and typefaces so the
   site and the app read as one product. */
:root {
  --paper: #F6F1E4;
  --paper-deep: #EAE1CA;
  --line: #CDBE9C;
  --ink: #1C2B45;
  --ink-soft: #55617E;
  --gold: #A8792A;
  --green: #2F6B4F;
  --white: #FFFDF8;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 68ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.seal { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--gold); background: var(--white); flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.1; }
.brand-parent img { height: 14px; width: auto; vertical-align: -2px; margin: 0 1px; }
.brand-parent { display: block; white-space: nowrap; font-size: 12.5px; color: var(--ink-soft); font-family: var(--sans); font-weight: 400; }
.header-actions { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.header-actions .plain { text-decoration: none; }

/* Buttons */
.btn { white-space: nowrap; display: inline-block; font-family: var(--sans); font-size: 16px; font-weight: 500; padding: 12px 22px; border-radius: 3px; text-decoration: none; border: 1px solid var(--ink); line-height: 1.2; }
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { background: #26395A; color: var(--white); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--paper-deep); color: var(--ink); }
.btn-small { padding: 8px 14px; font-size: 14.5px; }

/* Hero: the whole Next-Gen Academy illustration beside the headline and
   the virtual-academy statement (stacked on small screens) */
.hero { background: var(--ink); color: var(--white); padding: 48px 0 56px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 48px; align-items: center; }
.hero-figure { position: relative; margin: 0; }
.hero-figure picture { display: block; }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 1448 / 1086; border: 1px solid rgba(231, 201, 141, 0.55); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 18px; color: var(--white); }
.hero .lede { font-size: 18px; color: #E4E8F0; max-width: 56ch; margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 14.5px; color: #C9D0DD; margin: 16px 0 0; }
/* The virtual-academy statement: plain, prominent, and part of the
   headline block so nobody reads the illustration as a real campus */
.virtual-note { display: flex; gap: 10px; align-items: flex-start; max-width: 60ch; margin: 0 0 20px; padding: 10px 14px; font-size: 15px; line-height: 1.5; color: var(--white); background: rgba(255, 253, 248, 0.10); border: 1px solid rgba(255, 253, 248, 0.35); border-radius: 4px; }
.virtual-note svg { flex-shrink: 0; margin-top: 1px; color: #E7C98D; }
.virtual-note strong { font-weight: 600; }
.illus-tag { position: absolute; top: 10px; right: 10px; font-size: 12.5px; padding: 3px 9px; border-radius: 3px; background: rgba(28, 43, 69, 0.78); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: #F1E6CC; color: var(--ink); border-color: #F1E6CC; }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 253, 248, 0.75); }
.btn-outline-light:hover { background: rgba(255, 253, 248, 0.12); color: var(--white); }

/* Sample question section */
.sample-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.sample .intro { margin-bottom: 0; }

/* The worked question — the page's one standout element */
.worked { margin: 0; background: var(--white); border: 1px solid var(--line); padding: 28px 28px 24px; box-shadow: 8px 8px 0 var(--paper-deep); }
.worked-meta { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }
.worked-q { font-family: var(--serif); font-size: 20px; line-height: 1.45; margin: 0 0 18px; }
.choices { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.choices li { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.bubble { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--ink-soft); flex-shrink: 0; }
.choices .is-answer .bubble { border: 2px solid var(--gold); background: var(--gold); color: var(--white); }
.choices .is-answer { font-weight: 600; }
.explain { border-top: 1px solid var(--line); padding-top: 16px; }
.explain-by { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.explain-by .seal { width: 24px; height: 24px; font-size: 12px; border-width: 1.5px; }
.explain p { margin: 0; font-size: 16px; line-height: 1.6; }
.math { font-family: var(--serif); font-style: italic; white-space: nowrap; }

/* Sections (page sections) */
.band { padding: 72px 0; border-top: 1px solid var(--line); }
.band-deep { background: var(--white); }
.band h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(27px, 3vw, 34px); line-height: 1.2; margin: 0 0 12px; }
.band .intro { color: var(--ink-soft); max-width: 58ch; margin: 0 0 40px; }

/* How it works — a real sequence, so it's numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); font-family: var(--serif); font-weight: 600; margin-bottom: 14px; }
.steps h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* What you get in each section */
.study-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; margin: 0; padding: 0; list-style: none; }
.study-list li { padding-left: 20px; position: relative; }
.study-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.study-list strong { font-weight: 600; }

/* The two tests */
.tests { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.test h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 4px; }
.test-sub { color: var(--ink-soft); font-size: 15px; margin: 0 0 18px; }
.section-row { padding: 16px 0; border-top: 1px solid var(--line); }
.section-row:last-child { border-bottom: 1px solid var(--line); }
.section-name { font-weight: 600; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.optional { font-weight: 400; font-size: 13.5px; color: var(--ink-soft); border: 1px solid var(--line); padding: 1px 8px; border-radius: 10px; }
.domains { color: var(--ink-soft); font-size: 15px; margin: 4px 0 0; }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.price-box { border: 1px solid var(--ink); background: var(--white); padding: 28px; }
.price-line { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1; margin: 0 0 8px; }
.price-per { color: var(--ink-soft); margin: 0 0 22px; }
.price-box .btn { width: 100%; text-align: center; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 14px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts strong { display: block; font-weight: 600; }
.facts span { color: var(--ink-soft); font-size: 15.5px; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 12px 48px; font-size: 18px; }
.contact dt { font-size: 14.5px; color: var(--ink-soft); }
.contact dd { margin: 0 0 8px; }

/* Footer */
.site-footer { background: var(--ink); color: #D9DEE8; padding: 40px 0 48px; font-size: 14.5px; }
.footer-brand { display: flex; align-items: center; gap: 18px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid rgba(255, 253, 248, 0.15); }
.footer-brand p { margin: 0; max-width: 40ch; color: #D9DEE8; }
.logo-tile { background: #FFFFFF; border-radius: 6px; padding: 8px; display: inline-flex; flex-shrink: 0; }
.logo-tile img { width: 76px; height: auto; display: block; }
.site-footer a { color: var(--white); text-decoration-color: rgba(255, 253, 248, 0.4); }
.site-footer a:hover { color: #E7C98D; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.fine { color: #AEB6C7; max-width: 80ch; margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4vw, 42px); line-height: 1.15; margin: 0 0 8px; }
.legal .updated { color: var(--ink-soft); margin: 0 0 32px; font-size: 15px; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 40px 0 10px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
.legal p, .legal li { max-width: var(--measure); line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .summary { background: var(--white); border: 1px solid var(--line); padding: 18px 22px; margin: 0 0 8px; }
.legal .summary p { margin: 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15.5px; margin: 8px 0 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; border-top: 1px solid var(--line); padding: 10px 12px 10px 0; }
.legal th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.legal .caps { font-size: 14.5px; letter-spacing: 0.01em; }
mark.todo { background: #FFE7A3; color: var(--ink); padding: 0 3px; }

/* Responsive */
@media (max-width: 860px) {
  .tests, .pricing, .sample-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .study-list { grid-template-columns: 1fr; }
  .band { padding: 56px 0; }
}
@media (max-width: 860px) {
  .hero { padding: 0 0 40px; }
  .hero .hero-split { grid-template-columns: 1fr; gap: 28px; padding: 0; }
  .hero-photo { border: 0; }
  .hero .hero-text { padding: 0 24px; }
}
@media (max-width: 520px) {
  .hero .hero-text { padding: 0 18px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .header-actions .plain { display: none; }
  .brand-name { font-size: 19px; }
  .site-header .btn-small { padding: 8px 12px; font-size: 14px; }
  .choices { grid-template-columns: 1fr; }
  .worked { padding: 22px 20px 20px; box-shadow: 5px 5px 0 var(--paper-deep); }
  .contact { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
