/* Layout: sticky header, full-width colour bands, centred 1160px content column */
:root {
  --brand: #29a8c9;
  --brand-dark: #1d7f99;
  --brand-soft: #eaf6fb;
  --heading: #0f1e30;
  --band: #1e3450;
  --band-deep: #0f1e30;
  --ink: #2e2e2e;
  --muted: #5c6673;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --surface: #ffffff;
  --header-bg: rgba(255,255,255,.96);
  --radius: 14px;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #3bb6d6; --brand-dark: #6fcbe4; --brand-soft: #16354a; --heading: #eef4fa;
    --band: #16283d; --band-deep: #0a1520; --ink: #dde5ed; --muted: #9fb0c1; --line: #28394c;
    --bg: #0e1924; --bg-alt: #12202e; --surface: #162536; --header-bg: rgba(14,25,36,.96);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #3bb6d6; --brand-dark: #6fcbe4; --brand-soft: #16354a; --heading: #eef4fa;
  --band: #16283d; --band-deep: #0a1520; --ink: #dde5ed; --muted: #9fb0c1; --line: #28394c;
  --bg: #0e1924; --bg-alt: #12202e; --surface: #162536; --header-bg: rgba(14,25,36,.96);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section.navy { background: var(--band); color: #fff; }
.section.navy h2, .section.navy h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-dark); margin-bottom: 12px;
}
.section.navy .eyebrow { color: #8fd6ea; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--header-bg);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--heading); font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--brand-soft); }
.nav a.active { color: var(--brand-dark); }
.nav .btn { margin-left: 8px; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-size: 1.2rem; cursor: pointer; color: var(--heading);
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; padding: 12px 24px;
  border-radius: 999px; background: var(--brand); color: #fff !important; border: 2px solid var(--brand);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.7); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.outline { background: transparent; color: var(--brand-dark) !important; }
.btn.outline:hover { background: var(--brand-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  position: relative; color: #fff; min-height: 560px; display: flex; align-items: center;
  background: var(--band-deep) center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,30,48,.88) 0%, rgba(15,30,48,.55) 60%, rgba(15,30,48,.25) 100%);
}
.hero .container { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: #fff; max-width: 720px; }
.hero p { font-size: 1.15rem; max-width: 620px; color: rgba(255,255,255,.9); }
.hero .eyebrow { color: #8fd6ea; }
.page-hero { min-height: 340px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat strong { display: block; font-size: 2rem; color: var(--brand-dark); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid > *, .split > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column;
}
.card.img { padding: 0; overflow: hidden; }
.card.img img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card.img .card-body { padding: 24px; }
.card .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 800; display: grid; place-items: center; margin-bottom: 16px;
}
.card p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); margin: 0 6px 8px 0;
}
.level-card .level-no { font-size: .8rem; font-weight: 800; color: var(--brand-dark); letter-spacing: .1em; text-transform: uppercase; }
.level-card ul { padding-left: 18px; margin: 8px 0 0; color: var(--muted); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--brand-soft); color: var(--heading); font-size: .9rem; }
tr:last-child td { border-bottom: none; }
tr.total td { font-weight: 700; background: var(--bg-alt); }
td.num, th.num, .stat strong { font-variant-numeric: tabular-nums; }
td.num, th.num { text-align: right; white-space: nowrap; }

/* Lists */
.check { list-style: none; padding: 0; margin: 0 0 1em; }
.check li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.check li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-dark); font-weight: 800;
}
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: s; position: relative; padding: 16px 18px 16px 64px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center;
}

/* Note */
.note {
  border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 24px;
}
.note p:last-child { margin: 0; }

/* Week plan (Appendix A) */
details.level-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 14px; }
details.level-block > summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--heading); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
details.level-block > summary::-webkit-details-marker { display: none; }
details.level-block > summary::after { content: "+"; font-size: 1.4rem; color: var(--brand-dark); }
details.level-block[open] > summary::after { content: "–"; }
details.level-block .inner { padding: 0 22px 22px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 20px 0; font-weight: 700; color: var(--heading); list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-dark); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), var(--band)); color: #fff; border-radius: 20px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; color: var(--heading); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.map-frame { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--band-deep); color: rgba(255,255,255,.78); padding: 56px 0 28px; font-size: .93rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { height: 34px; width: auto; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--surface);
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15,30,48,.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 600px) {
  .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px 12px; }
  .stat strong { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 480px; }
  .page-hero { min-height: 280px; }
  .cta-band { padding: 32px 24px; }
}

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--header-bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.logo .logo-on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .logo .logo-on-dark { display: block; }
}
:root[data-theme="dark"] .logo .logo-on-light { display: none; }
:root[data-theme="dark"] .logo .logo-on-dark { display: block; }
