/* Hacking Trainer design system: ui-ux-pro-max "Dark Mode (OLED) + Bento Grid" (28 Oct 2026).
   Midnight near-black ground, brand red for action, green for success, Inter throughout.
   Tokens and rules: design-system/hacking-trainer-academy/MASTER.md. Earlier themes: docs/design-archive/. */

/* Inter, self-hosted (SIL Open Font License). The rupee sign (U+20B9) has its own 1 KB file. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('/assets/fonts/inter-rupee.woff2') format('woff2'); unicode-range: U+20B9; }

:root {
  /* Dark Mode (OLED) tokens from MASTER.md, brand red for action. */
  color-scheme: dark;
  --bg: #030712;          /* background */
  --bg-soft: #070d1c;     /* alternate section */
  --panel: #0e1526;       /* card */
  --panel-2: #141d33;     /* card hover / raised */
  --line: #1e293b;        /* border */
  --line-strong: #334155; /* strong border */
  --text: #f8fafc;        /* foreground */
  --text-2: #cbd5e1;      /* body copy */
  --muted: #94a3b8;       /* muted foreground */
  --label: #a5b4cf;
  --accent: #f87171;      /* accent text and icons on dark */
  --accent-hover: #fca5a5;
  --accent-dim: #dc2626;  /* accent fill: buttons (white text 4.8:1) */
  --accent-ink: #ffffff;
  --accent-tint: rgba(239, 68, 68, .12);
  --btn: #dc2626;
  --btn-hover: #b91c1c;
  --btn-text: #ef4444;   /* the button red as text on dark: 5.4:1 (#dc2626 text is only 4.2:1) */
  --glow: 0 0 0 1px rgba(248, 113, 113, .35), 0 12px 32px rgba(220, 38, 38, .18);
  --orange: #fbbf24;
  --ok: #22c55e;          /* success */
  --red: #fbbf24;         /* offence tags */
  --cyan: #38bdf8;        /* defence tags */
  --navy: #0f172a;
  --navy-2: #60a5fa;
  --glass: none;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 4px 6px rgba(0, 0, 0, .25);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, .35);
  --radius: 16px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1200px;
  --font-display: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: var(--font-body);
  --font-code: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Former navy bands: same tokens, one slightly raised surface */
.band { --bg: #070d1c; background: var(--bg); color: var(--text); }

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis: style;
  text-rendering: optimizeLegibility;
}
img, svg{ max-width: 100%; display: block; }
a{ color: var(--text); text-decoration-color: var(--accent-dim); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover{ color: var(--accent); }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4{
  font-family: var(--font-display);
 
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}
h1{ font-size: clamp(1.9rem, 3.4vw + .6rem, 3rem); font-weight: 700; }
h2{ font-size: clamp(1.5rem, 2vw + .7rem, 2.15rem); }
h3{ font-size: 1.15rem; line-height: 1.25; }
p{ margin: 0 0 1em; }
ul, ol{ padding-left: 1.2em; margin: 0 0 1em; }

.skip-link{
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--btn); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus{ left: 8px; }

.container{ width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section{ padding-block: clamp(32px, 4vw, 56px); }
.section--soft{ background: var(--bg-soft); border-block: 1px solid var(--line); }

/* section label, e.g. "// 01 — courses" */
.label{
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--label);
  margin: 0 0 14px;
}
.label::before{ content: ""; display: inline-block; width: 18px; height: 2px; margin: 0 10px 4px 0; background: var(--accent); vertical-align: middle; }
.section-head{ max-width: 720px; margin-bottom: clamp(24px, 3.5vw, 36px); }
.section-head p{ color: var(--muted); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; letter-spacing: .01em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn--primary{ background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover{ background: var(--accent-hover); color: var(--accent-ink); }

.btn--ghost{ border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover{ border-color: var(--accent); color: var(--accent); }
.btn--sm{ padding: 9px 16px; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 10, 28, .72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner{ display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand{ display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--text); }
.brand svg{ width: 34px; height: 34px; flex: none; }
.brand-name{ white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: 0; line-height: 1; text-transform: uppercase; }
.brand-name small{ display: block; font-family: var(--font-mono); font-weight: 400; font-size: .8125rem; color: var(--muted); margin-top: 4px; }

.nav-toggle{ display: none; }
.sub-toggle, .nav-home{ display: none; }
button.nav-link{ background: none; border: 0; font: inherit; font-weight: 500; font-size: .97rem; cursor: pointer; text-align: left; color: var(--text); }
.sub-parent::after{ content: "▾"; margin-left: 6px; font-size: .75em; color: var(--muted); }
.site-nav ul{ list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a.nav-link, .site-nav button.nav-link{
  display: block; padding: 10px 14px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.97rem;
}
.site-nav a.nav-link:hover, .site-nav button.nav-link:hover, .site-nav a.nav-link[aria-current="page"], .site-nav button.nav-link[aria-current="page"]{ color: var(--accent); background: var(--accent-tint); }
.has-sub{ position: relative; }
.sub-menu{
  position: absolute; top: 100%; left: 0; min-width: 330px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 10px; display: none; flex-direction: column; gap: 2px; box-shadow: var(--shadow);
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu{ display: flex; }
.sub-menu .sub-group{ font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); padding: 8px 12px 4px; }
.sub-menu a{ display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.sub-menu a:hover{ background: var(--panel-2); color: var(--accent); }
.header-cta{ display: flex; align-items: center; gap: 10px; }
.header-phone{ font-family: var(--font-mono); font-size: 0.9rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.header-phone:hover{ color: var(--accent); }

@media (max-width: 1140px) {
  .header-phone{ display: none; }
  .nav-toggle{
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); cursor: pointer;
  }
  .nav-toggle svg{ width: 22px; height: 22px; }
  .site-nav{ position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .js .site-nav{ display: none; max-height: calc(100vh - 140px); overflow-y: auto; }
  .js .site-nav.is-open{ display: block; }
  .site-nav ul{ flex-direction: column; align-items: stretch; }
  .has-sub{ display: flex; flex-wrap: wrap; align-items: center; }
  .has-sub > .nav-link{ flex: 1; }
  .sub-toggle{ display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 0; color: var(--label); cursor: pointer; font-family: var(--font-mono); font-size: 1.4rem; }
  .sub-toggle::before{ content: "+"; }
  .has-sub.is-open .sub-toggle::before{ content: "–"; }
  .has-sub .sub-menu{ position: static; display: none; width: 100%; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 12px; }
  .has-sub.is-open .sub-menu{ display: flex; }
  .site-nav button.sub-parent{ display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .sub-parent::after{ content: "+"; margin: 0; font-family: var(--font-mono); font-size: 1.4rem; color: var(--label); }
  .has-sub.is-open .sub-parent::after{ content: "–"; }
  .nav-home{ display: block; }
  .header-cta{ display: none; }
  .nav-toggle{ margin-left: auto; }
  .site-header .container{ position: relative; }
}

/* ---------- Hero: navy band, the real classroom, and the admission pass ---------- */
.hero{ position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(36px, 6vw, 84px) clamp(44px, 6vw, 88px); }

.hero::before{ content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 500px at 15% 10%, rgba(227, 71, 59, .22), transparent 60%), linear-gradient(100deg, #071030 30%, rgba(7, 16, 48, .85) 62%, rgba(7, 16, 48, .6)); }

.kicker{ font-family: var(--font-mono); font-size: .8125rem; color: var(--label); margin: 0 0 18px; }
.hero h1{ font-size: clamp(2.05rem, 3.6vw + .8rem, 3.35rem); margin-bottom: 20px; }
.hero h1 em{ font-style: normal; color: var(--accent); }
.hero-lead{ font-size: 1.08rem; color: var(--text-2); max-width: 52ch; margin-bottom: 0; }

.hero-actions{ display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* the memorable bit: the lead form as an admission pass, perforated, with a red stamp */
.pass{
  --bg: #f5f6fa; --panel: #ffffff; --panel-2: #f1f3f9; --line: #dfe3ee; --line-strong: #c6cddf;
  --text: #0b1736; --text-2: #2c365a; --muted: #525d80; --label: #3b4878;
  --accent: #c62d23; --accent-hover: #a8241b; --accent-ink: #ffffff; --ok: #1d7a36;
  position: relative; background: var(--panel); color: var(--text); border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .38); animation: rise .7s .15s cubic-bezier(.2, .7, .2, 1) both;
}

.pass .lead-form--mini{ padding: 20px 22px 22px; }
.pass .lead-form--mini h2, .pass .lead-form--mini h3{ font-size: 1.22rem; margin-bottom: 2px; }

@keyframes stamp { from { opacity: 0; transform: rotate(-7deg) scale(1.7); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }
@media (max-width: 900px) {  .pass{ max-width: 560px; } }
@media (max-width: 720px) {
  .hero .hero-actions{ display: none; }
  .kicker{ font-size: .8125rem; }
  
  
  
}

/* ---------- Home: proof, fee strip, final call ---------- */

/* ---------- Tracks & course cards ---------- */
.tag{ font-family: var(--font-mono); font-size: .8125rem; padding: 4px 10px; border-radius: 6px; border: 1px solid; }
.tag--red{ color: var(--red); border-color: currentColor; background: var(--panel); }
.tag--cyan{ color: var(--cyan); border-color: currentColor; background: var(--panel); }
.topic-nav{ display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.topic-nav a{ display: inline-block; font-family: var(--font-mono); font-size: .8125rem; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); background: var(--panel); text-decoration: none; }
.topic-nav a:hover, .topic-nav a:focus-visible{ border-color: var(--red); color: var(--red); }
.track > p{ color: var(--muted); margin-bottom: 20px; }
.course-card{
  display: block; position: relative; padding: 22px 22px 20px 26px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.course-card::before{ content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--red); }
.course-card:hover{ border-color: var(--accent-dim); background: var(--panel-2); transform: translateX(4px); color: var(--text); }
.course-card .meta{ font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); margin-bottom: 8px; }
.course-card h3{ margin-bottom: 6px; }
.course-card p{ color: var(--text-2); font-size: 1rem; margin-bottom: 12px; }
.chips{ display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; padding: 0; margin: 0; }
.chips li{ font-size: 1rem; color: var(--text); }
.chips li::before{ content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--accent-dim); }
.card-link{ display: inline-block; margin-top: 14px; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-dim); text-underline-offset: 4px; }

/* ---------- Generic card grid ---------- */
.grid{ display: grid; gap: 18px; }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid--3{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2{ grid-template-columns: 1fr; } }
.card{ background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3{ margin-bottom: 8px; }
.card p, .card li{ color: var(--text-2); font-size: 1rem; }
.card ul{ margin: 0; padding-left: 1.1em; }
.card--feature{ background: linear-gradient(160deg, var(--panel-2), var(--panel)); border-color: var(--line-strong); }

/* ---------- Programme plan: shared core, then a track ---------- */

/* ---------- Batches table ---------- */
.table-wrap{ overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); }
table{ border-collapse: collapse; width: 100%; min-width: 440px; }
th, td{ text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); }
th{ font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); font-weight: 500; background: var(--bg-soft); }
tr:last-child td{ border-bottom: 0; }
td:first-child{ font-weight: 600; }
td time{ font-family: var(--font-mono); color: var(--text); }

/* ---------- FAQ ---------- */
.faq{ display: grid; gap: 10px; max-width: 840px; }
.faq details{ background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary{
  cursor: pointer; padding: 18px 54px 18px 22px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; list-style: none; position: relative; color: var(--text);
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{ content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after{ content: "–"; }
.faq details[open]{ border-color: var(--line-strong); }
.faq .answer{ padding: 0 22px 20px; color: var(--text-2); }
.faq .answer p:last-child{ margin-bottom: 0; }

/* ---------- CTA band + form ---------- */
.cta-band{
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 22px;
  padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; color: var(--text);
}
.cta-band h2{ margin-bottom: 14px; }
.cta-band p{ color: var(--muted); }
.contact-list{ list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.contact-list li{ display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: 0.98rem; }
.contact-list b{ font-family: var(--font-mono); font-weight: 500; font-size: .8125rem; color: var(--label); padding-top: 3px; }
.contact-list a{ color: var(--text); }
.contact-list a:hover{ color: var(--accent); }
@media (max-width: 880px) { .cta-band{ grid-template-columns: 1fr; } }

.form{ display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 24px; color: var(--text); }
.form h3{ margin-bottom: 2px; }
.field{ display: grid; gap: 6px; }
.field label{ font-size: 0.88rem; font-weight: 500; }
.field input, .field select, .field textarea{
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text);
  font: inherit; font-size: 1rem;
}
.field textarea{ min-height: 96px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible{ outline: 2px solid var(--accent); outline-offset: 1px; }
.form-note{ font-size: 0.84rem; color: var(--muted); margin: 0; }

/* ---------- Inner pages ---------- */
.page-hero{ padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-hero p.lead{ color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.breadcrumb{ font-family: var(--font-mono); font-size: .875rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb ol{ display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before{ content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a{ color: var(--muted); display: inline-block; padding: 10px 4px; margin: -10px -4px; }
.breadcrumb a:hover{ color: var(--accent); }

.course-layout{ display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .course-layout{ grid-template-columns: 1fr; } }
.prose h2{ font-size: clamp(1.28rem, 1.6vw + .55rem, 1.6rem); margin-top: 1.7em; }
.prose h2:first-child{ margin-top: 0; }
.prose li{ color: var(--text-2); margin-bottom: 4px; }
.prose p{ color: var(--text-2); }
.tick-list{ list-style: none; padding: 0; display: grid; gap: 10px; }
.tick-list li{ padding-left: 28px; position: relative; }
.tick-list li::before{ content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.module-list{ columns: 2; column-gap: 32px; counter-reset: m; list-style: none; padding: 0; }
.module-list li{ counter-increment: m; break-inside: avoid; padding: 9px 0 9px 44px; border-bottom: 1px dashed var(--line); position: relative; }
.module-list li::before{ content: counter(m, decimal-leading-zero); position: absolute; left: 0; font-family: var(--font-mono); color: var(--label); font-size: 0.85rem; top: 11px; }
@media (max-width: 720px) { .module-list{ columns: 1; } }

.facts{ position: sticky; top: 92px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 24px; }
.facts h2{ font-size: 1.1rem; font-family: var(--font-mono); color: var(--label); }
.facts dl{ margin: 0 0 20px; }
.facts dt{ font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); margin-top: 14px; }
.facts dd{ margin: 2px 0 0; font-weight: 500; }
.facts .btn{ width: 100%; justify-content: center; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer{ border-top: 4px solid var(--accent); padding-block: 56px 28px; margin-top: 0; }
.footer-grid{ display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 28px 32px; }
.footer-grid h2{ font-family: var(--font-mono); font-size: .8125rem; color: var(--label); margin-bottom: 14px; }
.footer-grid ul{ list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer-grid a{ color: var(--muted); text-decoration: none; }
.footer-grid a:hover{ color: var(--accent); }
.footer-grid p{ color: var(--muted); font-size: .95rem; }
.footer-bottom{ margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 1080px) { .footer-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand{ grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .footer-grid{ grid-template-columns: 1fr; } }

.center{ text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation: none !important; transition: none !important; }
}

/* ---------- Blog ---------- */
.post-card{ display: flex; flex-direction: column; }
.post-card p{ flex: 1; }
.post-meta{ font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); margin: 14px 0 0; }
.article .prose{ max-width: 760px; margin-inline: auto; }
.article .prose p, .article .prose li{ font-size: 1.0625rem; line-height: 1.75; }
.article .prose ul{ padding-left: 1.3em; }
.lead-in{ font-size: 1.1rem !important; color: var(--text) !important; border-left: 3px solid var(--accent); padding-left: 18px; }
.prose strong{ color: var(--text); }
.note{ margin-top: 2.2em; padding: 20px 24px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.note p{ margin: 0; }

/* ---------- Lead capture ---------- */
.hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status{ min-height: 1.4em; margin: 0; font-size: .92rem; color: var(--accent); }
.form-status.is-error{ color: var(--accent); }
.form-note a{ color: var(--muted); }
.lead-form--mini{ padding: 0; background: transparent; border: 0; gap: 12px; }
.lead-form--mini .btn{ width: 100%; justify-content: center; }
.facts .lead-form--mini h3{ font-family: var(--font-mono); font-size: .875rem; color: var(--label); margin-bottom: 0; }
.footer-links{ margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-links h2{ font-family: var(--font-mono); font-size: .8125rem; color: var(--label); margin-bottom: 12px; }
.footer-links ul{ list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a{ color: var(--muted); text-decoration: none; font-size: .95rem; }
.footer-links a:hover{ color: var(--accent); }
.footer-bottom a{ color: var(--muted); }

/* WhatsApp button (desktop) and sticky contact bar (mobile) */
.wa-float{
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px; background: #25d366; color: #052e16; font-weight: 700; text-decoration: none;
  font-family: var(--font-display); box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .15s ease;
}
.wa-float:hover{ transform: translateY(-2px); color: #052e16; background: #4be286; }
.wa-float svg{ width: 24px; height: 24px; }
.sticky-bar{ display: none; }
@media (max-width: 720px) {
  .wa-float{ display: none; }
  .sticky-bar{
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 1px;
    background: var(--line-strong); border-top: 1px solid var(--line-strong);
  }
  .sticky-bar a{ padding: 14px 8px; text-align: center; background: var(--panel); color: var(--text); text-decoration: none; font-weight: 600; font-family: var(--font-display); font-size: .95rem; }
  .sticky-bar a.primary{ background: var(--btn); color: #fff; }
  body{ padding-bottom: 54px; }
}

/* ---------- Course finder ---------- */
.quiz{ max-width: 760px; }
.quiz-step{ border: 0; padding: 0; margin: 0 0 20px; }
.quiz-step legend{ font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 22px; padding: 0; }
.quiz-step legend:focus{ outline: none; }
.quiz-count{ display: block; font-family: var(--font-mono); font-weight: 400; font-size: .8125rem; color: var(--label); margin-bottom: 10px; }
.quiz-options{ display: grid; gap: 12px; }
.quiz-option{ display: block; cursor: pointer; }
.quiz-option input{ position: absolute; opacity: 0; }
.quiz-option span{ display: block; padding: 16px 20px; background: var(--panel); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .15s ease, background .15s ease; }
.quiz-option:hover span{ border-color: var(--accent-dim); background: var(--panel-2); }
.quiz-option input:checked + span{ border-color: var(--accent); background: var(--panel-2); }
.quiz-option input:focus-visible + span{ outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz-result h2{ font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.quiz-result h2:focus{ outline: none; }
.quiz-meta{ color: var(--muted); }
.quiz-lead{ margin-top: 28px; padding: 24px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.quiz-lead .lead-form--mini{ max-width: 420px; }

@media (max-width: 1280px) { .header-phone{ display: none; } }

/* let grid children shrink below the width of long <select> options (prevents sideways scroll on phones) */
.cta-band > *, .course-layout > *, .grid > *, .form, .field{ min-width: 0; }
.field select{ max-width: 100%; text-overflow: ellipsis; }

/* ---------- Admission pack and programme streams ---------- */
.package{ width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--panel); margin: 0 0 1em; }
.package th, .package td{ padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--line); text-align: left; }
.package tr:last-child th, .package tr:last-child td{ border-bottom: 0; }
.package th{ width: 42%; font-family: var(--font-body); font-size: .92rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); background: var(--bg-soft); }
.package td{ color: var(--text); }
.package .pending{ color: var(--muted); font-style: italic; }
.streams{ display: grid; gap: 14px; margin: 0 0 1em; }
.stream{ border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); padding: 18px 20px; }
.stream-head{ display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; }
.stream-head h3{ min-width: 0; }
.stream-head h3{ margin: 0; font-size: 1.1rem; }
.stream-head span{ font-family: var(--font-mono); color: var(--label); font-size: .9rem; white-space: nowrap; }
.stream ul{ margin: 0; padding-left: 1.2em; }
.stream li{ color: var(--text-2); margin-bottom: 3px; font-size: .98rem; }
.check{ display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text); }
.check input{ margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.form-status a{ color: inherit; text-decoration: underline; }

/* Parent company accreditation bar (full legal name) */
.footer-atc{ display: flex; gap: 10px; align-items: flex-start; margin: 32px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); font-size: .9rem; line-height: 1.55; color: var(--muted); }
.footer-atc .ico{ flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }
.footer-atc strong{ color: var(--text); font-weight: 600; }

/* ---------- Course categories ---------- */
.tag--green{ color: var(--text); border-color: var(--line-strong); background: var(--panel-2); }
.cat-block{ margin-bottom: clamp(36px, 5vw, 56px); }
.cat-block:last-child{ margin-bottom: 0; }
.cat-head{ display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.cat-head h2, .cat-head h3{ margin: 0 0 4px; font-size: clamp(1.2rem, 2vw, 1.45rem); }
.cat-head p{ margin: 0; color: var(--muted); font-size: .98rem; }
.cat-head a{ font-weight: 600; white-space: nowrap; }
.cat-block .course-card{ height: 100%; }
.sub-menu{ max-height: 78vh; overflow-y: auto; }

/* ---------- Free trial, outcomes, trainer, programme detail ---------- */
.trial{ display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.trial h2{ margin-bottom: 10px; }
.trial p{ color: var(--text-2); margin-bottom: 0; }
@media (max-width: 820px) { .trial{ grid-template-columns: 1fr; } }
.callout{ padding: 16px 20px; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--panel); color: var(--text) !important; }
.big{ display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.3rem); color: var(--accent); line-height: 1; margin-bottom: 10px; }
.fineprint{ color: var(--muted); font-size: .93rem; margin-top: 18px; max-width: 78ch; }
.fineprint strong{ color: var(--text); }
.trainer{ display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); }
.trainer-mark{ width: 96px; height: 96px; border-radius: 20px; border: 2px solid var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--accent); background: var(--bg-soft); }
.trainer h3{ margin-bottom: 4px; }
.trainer h3 span{ color: var(--muted); font-weight: 600; }
.trainer-role{ color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.trainer .chips{ margin-bottom: 14px; }
.trainer p:last-child{ margin-bottom: 0; color: var(--text-2); }
@media (max-width: 560px) { .trainer{ grid-template-columns: 1fr; } .trainer-mark{ width: 72px; height: 72px; font-size: 2rem; } }
.reports{ display: grid; gap: 10px; margin: 0 0 1.2em; }
.report{ display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.report b{ font-family: var(--font-mono); font-weight: 500; color: var(--label); padding-top: 3px; }
.report h3{ margin: 0 0 2px; font-size: 1.02rem; }
.report p{ margin: 0; color: var(--muted); font-size: .95rem; }
.steps{ counter-reset: s; list-style: none; padding: 0; display: grid; gap: 8px; }
.steps li{ counter-increment: s; padding-left: 40px; position: relative; }
.steps li::before{ content: counter(s, decimal-leading-zero); position: absolute; left: 0; font-family: var(--font-mono); color: var(--label); font-size: .85rem; top: 3px; }
.weights{ display: grid; gap: 8px; margin: 0 0 1em; }
.weight{ display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.weight b{ font-family: var(--font-mono); font-weight: 500; color: var(--text); }
.kv{ display: grid; gap: 8px; margin-bottom: 1em; }
.kv > div{ display: grid; grid-template-columns: minmax(0, 11rem) 1fr; gap: 14px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.kv b{ font-weight: 600; color: var(--text); }
.kv span{ color: var(--text-2); }
@media (max-width: 560px) { .kv > div{ grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Trial, report, compare pages ---------- */
.proof{ margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.next-batch{ margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--accent-dim); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent-tint); color: var(--text); font-size: 1rem; }
.markup{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 1em; }
.markup-col{ min-width: 0; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); }
.markup-col--notes{ border-left: 3px solid var(--accent); }
.markup-col h3{ margin: 0 0 8px; font-size: 1.05rem; }
.markup-col p, .markup-col li{ color: var(--text-2); font-size: .98rem; }
.markup-col ol{ margin: 0; padding-left: 1.2em; }
@media (max-width: 760px) { .markup{ grid-template-columns: 1fr; } }
table.compare th[scope="row"]{ text-align: left; white-space: normal; min-width: 150px; }
table.compare td{ min-width: 180px; vertical-align: top; }

.sr-only{ position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Reading width and tap targets ---------- */
.prose > p, .prose > ul, .prose > ol{ max-width: 68ch; }
.contact-list a, .form-note a, .proof a{ display: inline-block; padding-block: 6px; }

/* ---------- Accordions for long content ---------- */
.stream{ padding: 0; }
.stream > summary{ list-style: none; cursor: pointer; padding: 16px 20px; margin: 0; align-items: center; position: relative; padding-right: 48px; }
.stream > summary::-webkit-details-marker{ display: none; }
.stream > summary::after{ content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 1.3rem; color: var(--label); }
.stream[open] > summary::after{ content: "–"; }
.stream > summary:hover h3{ color: var(--accent); }
.stream > ul{ margin-inline: 20px; }
.stream > ul{ padding-bottom: 18px; }
.stream-code{ display: block; font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; color: var(--label); margin-bottom: 2px; }
.stream-body{ padding: 0 20px 18px; }
.stream-body ul{ margin: 0 0 4px; padding-left: 1.2em; }
.stream-body .chips{ padding-left: 0; }
.stream-outcome{ margin: 0 0 10px; color: var(--text); }
.stream-label{ margin: 12px 0 4px; font-family: var(--font-mono); font-size: .8125rem; color: var(--label); }
.stream-body > p:not(.stream-label):not(.stream-outcome){ margin: 0; color: var(--text-2); }
.more{ margin: 0 0 1em; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); }
.more > summary{ list-style: none; cursor: pointer; padding: 14px 20px; font-weight: 600; }
.more > summary::-webkit-details-marker{ display: none; }
.more > summary::after{ content: "+"; float: right; font-family: var(--font-mono); font-size: 1.2rem; color: var(--label); }
.more[open] > summary::after{ content: "–"; }
.more > :not(summary){ margin-inline: 20px; }
.more > :last-child{ margin-bottom: 18px; }
.more > h3:first-of-type{ margin-top: 4px; }

/* ---------- In-page outline (long pages) ---------- */
.page-outline{ position: sticky; top: 68px; z-index: 40; background: rgba(5, 10, 28, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.page-outline ul{ display: flex; gap: 6px; list-style: none; margin: 0; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.page-outline ul::-webkit-scrollbar{ display: none; }
.page-outline a{ display: block; padding: 8px 14px; border-radius: 999px; white-space: nowrap; text-decoration: none; font-size: .9rem; color: var(--muted); border: 1px solid transparent; }
.page-outline a:hover{ color: var(--text); }
.page-outline a.is-active{ color: var(--text); border-color: var(--line-strong); background: var(--panel-2); }
h2[id]{ scroll-margin-top: 130px; }

/* ---------- Mobile navigation: collapsible submenus ---------- */
.sub-menu .sub-all{ display: block; padding: 8px 12px; font-weight: 600; }

/* ---------- Tables: two-column tables fit; wider ones become stacked cards on phones ---------- */
@media (max-width: 640px){
  table { min-width: 0; }
  table[data-stack] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table[data-stack], table[data-stack] tbody, table[data-stack] tr, table[data-stack] th, table[data-stack] td { display: block; }
  table[data-stack] tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table[data-stack] tr:last-child { border-bottom: 0; }
  table[data-stack] th, table[data-stack] td { padding: 3px 0; border: 0; background: none; }
  table[data-stack] td[data-label]::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); }
  table.compare th[scope="row"] { font-family: var(--font-display); font-size: 1.05rem; text-transform: none; letter-spacing: 0; color: var(--text); min-width: 0; margin-bottom: 4px; }
  table.compare td { min-width: 0; margin-top: 6px; }
  th, td { padding: 12px 14px; }
}

/* ---------- Phones: shorter pages ---------- */
table.matrix{ min-width: 0; }
table.matrix th, table.matrix td{ padding: 10px 12px; }
@media (max-width: 640px) {
  table.matrix th, table.matrix td{ padding: 9px 8px; font-size: .9rem; }
  table.matrix th{ letter-spacing: 0; }
  .package, .package tbody, .package tr, .package th, .package td{ display: block; width: 100%; }
  .package th{ padding: 12px 16px 2px; border-bottom: 0; background: none; color: var(--muted); font-size: .875rem; }
  .package td{ padding: 0 16px 12px; }
  .facts dl, .facts > h2{ display: none; }
  .card{ padding: 16px 18px; }
  .grid{ gap: 12px; }
  .course-card{ padding: 18px 18px 18px 22px; }
  .course-card .chips{ display: none; }
  }
.footer-grid a, .footer-links a, td a{ display: inline-block; padding-block: 5px; }
.footer-bottom a{ display: inline-block; padding-block: 6px; }

/* ---------- Guide cards and cookie notice ---------- */
.guide-card{ display: block; text-decoration: none; color: var(--text); }
.guide-card:hover{ border-color: var(--accent-dim); background: var(--panel-2); color: var(--text); }
.guide-card p{ color: var(--muted); }
.consent{ position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.consent p{ margin: 0; flex: 1 1 260px; font-size: .95rem; }
.consent-actions{ display: flex; gap: 8px; }
@media (max-width: 640px) { .consent{ bottom: 76px; } }
.course-index{ margin: 24px 0 0; color: var(--muted); font-size: .95rem; line-height: 2; }
.course-index a{ display: inline-block; padding-block: 4px; }

/* ---------- Fees: course and certification pages, cards and lists ---------- */
.fee-box{ display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; margin: 0 0 1.4em; padding: 20px 24px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.fee-main{ display: grid; gap: 2px; }
.fee-main strong{ font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.1; }
.fee-main strong small{ font-size: .5em; font-weight: 600; color: var(--muted); }
.fee-main span:last-child{ color: var(--muted); font-size: .92rem; }
.fee-box .tick-list{ grid-column: 1 / -1; order: 3; margin: 0; font-size: .95rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.fee-box .tick-list li{ margin: 0; }
@media (max-width: 640px) { .fee-box{ grid-template-columns: 1fr; } .fee-box .tick-list{ grid-template-columns: 1fr; } .fee-box .btn{ justify-content: center; } }
.card-fee{ margin: 0 0 12px; font-family: var(--font-mono); font-size: .9rem; color: var(--text); }

/* ---------- Plain-words line, photos, reviews ---------- */
.plain{ max-width: 68ch; margin: 14px 0; padding-left: 14px; border-left: 3px solid var(--accent-dim); color: var(--text); }
.photo-grid{ display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; align-items: start; }
.photo-grid figure{ margin: 0; }
picture{ display: block; }
.photo-grid img{ width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line-strong); }
@media (max-width: 760px) { .photo-grid{ grid-template-columns: 1fr; } .photo-grid img{ height: auto; max-height: 300px; } }
.photo-grid figcaption, figure.card figcaption{ margin-top: 8px; color: var(--muted); font-size: .9rem; }
figure.card{ margin: 0; }
figure.card blockquote{ margin: 0 0 12px; }

/* ---------- Brand wordmark: HACKING in red, TRAINER in light, like the signboard ---------- */
/* HACKING in the brand red, the same red as the buttons (logotype, so exempt from text-contrast rules) */
.brand-name .b-red, .band .brand-name .b-red{ color: var(--btn-text); }

/* Phones: keep the lead paragraph compact so the main button is visible sooner */
@media (max-width: 600px){
  .hero-lead, .page-hero p.lead { font-size: 1.02rem; line-height: 1.55; }
}

/* Phones: fold secondary blocks (main.js) and trim repeated detail */
.m-more > summary{ cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 8px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-weight: 600; font-size: .95rem; background: var(--panel); }
.m-more > summary::-webkit-details-marker{ display: none; }
.m-more > summary::after{ content: "+"; color: var(--accent); font-weight: 700; }
.m-more[open] > summary::after{ content: "−"; }
.m-more[open] > summary{ margin-bottom: 16px; }
@media (max-width: 720px) {
  .guide-card p{ display: none; }
  .guide-card{ padding: 16px 18px; }
  .guide-card h3{ margin-bottom: 6px; }
  .course-layout .facts dl{ display: none; }
}

/* ==========================================================================
   Structured components (Oct 2026): icons, fact tiles, route map, pricing,
   module and report cards, fit lists, step timelines, batch cards.
   ========================================================================== */
.ico-sprite{ position: absolute; width: 0; height: 0; overflow: hidden; }
.ico{ display: inline-block; vertical-align: middle; width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Key facts as tiles under a page title */
.spec-strip{ list-style: none; padding: 0; margin: 22px 0 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 10px; max-width: 1100px; }
.spec{ display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.spec .ico{ grid-row: 1 / 3; width: 20px; height: 20px; padding: 7px; box-sizing: content-box; color: var(--accent); background: var(--accent-tint); border-radius: 9px; }
.spec-k{ font-family: var(--font-mono); font-size: .8125rem; color: var(--label); }
.spec-v{ font-family: var(--font-display); font-size: .98rem; font-weight: 700; line-height: 1.15; color: var(--text); }

/* Lists with an icon per item */
.icon-list, .prose .icon-list, .article .prose .icon-list{ list-style: none; padding-left: 0; display: grid; gap: 10px; margin: 6px 0 1.2em; max-width: none; }
.icon-list--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.icon-list li{ display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text-2); font-size: 1rem; line-height: 1.45; }
.icon-list .ico{ color: var(--ok); width: 20px; height: 20px; margin-top: 1px; }
.price-card .icon-list li, .fit .icon-list li{ padding: 0; background: none; border: 0; }

/* Icon cards */
.feature-grid{ display: grid; gap: 14px; margin: 8px 0 1.4em; }
.feature-grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature{ padding: 18px 18px 16px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.feature .ico{ width: 22px; height: 22px; padding: 8px; box-sizing: content-box; color: var(--accent); background: var(--accent-tint); border-radius: 10px; margin-bottom: 12px; }
.feature h3{ font-size: 1.06rem; margin: 0 0 6px; }
.feature p{ font-size: .98rem; color: var(--text-2); margin: 0; }

/* Who it is for / not for */
.fit-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 1.4em; }
.fit{ padding: 20px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.fit--yes{ border-top: 4px solid var(--ok); }
.fit--no{ border-top: 4px solid var(--accent); }
.fit h3{ font-size: 1.08rem; }
.fit--no .icon-list .ico{ color: var(--accent); }

/* The route map: the track as a 12-week rail, SOC and DFIR as a dashed branch */
.route{ --grid: rgba(255, 255, 255, .045); margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: 14px 32px; align-items: center; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line-strong); border-radius: var(--radius); background-color: var(--panel); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 22px 22px; }
.route a{ text-decoration: none; color: var(--text); }
.route-branch{ position: relative; }
.route-branch::after{ content: ""; position: absolute; top: 50%; right: -32px; width: 32px; border-top: 2px dashed var(--cyan); }
.route-node{ display: block; padding: 16px; background: var(--panel); border: 2px dashed var(--cyan); border-radius: var(--radius); transition: background .2s; }
.route-node:hover, .route-seg a:hover{ background: var(--panel-2); }
.route-code{ display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .8125rem; color: var(--label); }
.route-code .ico{ width: 16px; height: 16px; color: var(--accent); }
.route strong{ display: block; font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; line-height: 1.15; margin: 8px 0; }
.route-note{ display: inline-flex; gap: 6px; align-items: center; font-size: .88rem; font-weight: 600; color: var(--cyan); margin-bottom: 8px; }
.route-note .ico{ width: 16px; height: 16px; }
.route .chips li{ font-size: .85rem; }
.route-fee{ display: block; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.route-label{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .8125rem; color: var(--label); margin: 0 0 16px; }
.route-label .ico{ color: var(--accent); }
.route-label b{ color: var(--text); }
.route-rail{ list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.route-seg a{ position: relative; display: block; height: 100%; padding: 18px 16px 14px; background: var(--panel); border: 1px solid var(--line-strong); transition: background .2s; }
.route-seg a::before{ content: ""; position: absolute; top: -10px; left: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 3px solid var(--seg); }
.route-seg--a{ --seg: var(--accent); }
.route-seg--b{ --seg: var(--navy-2); }
.route-seg--a a{ border-radius: var(--radius) 0 0 var(--radius); border-top: 4px solid var(--seg); }
.route-seg--b a{ border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; border-top: 4px solid var(--seg); }
.route-ticks{ display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 10px; font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); }
.route-ticks span{ border-left: 1px solid var(--line-strong); padding-left: 4px; }
.route figcaption{ grid-column: 1 / -1; font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) {
  .route{ grid-template-columns: 1fr; gap: 26px; }
  .route-branch::after{ top: auto; right: auto; bottom: -26px; left: 30px; width: 0; height: 26px; border-top: 0; border-left: 2px dashed var(--cyan); }
  .route-rail{ grid-template-columns: 1fr; gap: 16px; }
  .route-seg--a a, .route-seg--b a{ border-radius: var(--radius); border-left: 1px solid var(--line-strong); }
  .route-ticks{ display: none; }
}

/* Pricing */
.price-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 14px 0 1.4em; max-width: 900px; }
.price-card{ position: relative; display: flex; flex-direction: column; padding: 24px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.price-card--feat{ border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-card .price-badge{ position: absolute; top: -13px; right: 18px; margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: .8125rem; }
.price-card .price-tag{ display: flex; gap: 8px; align-items: center; margin: 0 0 8px; font-family: var(--font-mono); font-size: .8125rem; color: var(--label); }
.price-card .price-tag .ico{ color: var(--accent); }
.price-card .price{ margin: 0; font-size: 1.05rem; color: var(--muted); }
.price-card .price span{ font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; line-height: 1; color: var(--text); }
.price-card .price-sub{ margin: 4px 0 16px; font-size: .92rem; color: var(--muted); }
.price-card .icon-list{ gap: 9px; flex: 1; margin-bottom: 20px; }
.price-card .btn{ align-self: flex-start; }

/* Module and report cards on the track page */
.mod-grid{ list-style: none; padding: 0; margin: 6px 0 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: none !important; }
.mod{ display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; margin: 0 !important; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mod-code{ grid-row: 1 / 3; align-self: start; padding: 4px 7px; border-radius: 6px; background: var(--accent-tint); color: var(--accent); font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; }
.mod-name{ color: var(--text); font-weight: 600; font-size: .98rem; line-height: 1.25; }
.mod-h{ font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.mod-bar{ grid-column: 2 / 4; height: 5px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; }
.mod-bar::before{ content: ""; display: block; height: 100%; width: var(--w); background: var(--accent); opacity: .75; border-radius: 3px; }
.report-grid{ list-style: none; padding: 0; margin: 6px 0 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: none !important; }
.report{ display: flex; flex-direction: column; gap: 4px; margin: 0 !important; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.report .ico{ width: 22px; height: 22px; color: var(--accent); margin-bottom: 4px; }
.report-id{ font-family: var(--font-mono); font-size: .8125rem; color: var(--label); }
.report-name{ font-weight: 600; color: var(--text); line-height: 1.25; }
.report-when{ font-size: .85rem; color: var(--muted); }

/* Articles: numbered steps, code chips, warning callouts */
.step-block{ position: relative; padding-left: 58px; }
.step-block::before{ content: ""; position: absolute; left: 19px; top: 3.4em; bottom: -1.2em; width: 2px; background: var(--line-strong); }
.step-block h2{ position: relative; }
.step-num{ position: absolute; left: -58px; top: -.15em; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--btn); box-shadow: var(--glow); color: #fff; font-family: var(--font-mono); font-size: 1rem; font-weight: 500; }
.code-chip{ display: inline-block; margin-right: 10px; padding: 3px 8px; border-radius: 6px; background: var(--btn); color: #fff; font-family: var(--font-mono); font-size: .62em; font-weight: 500; vertical-align: .22em; }
.callout--warn{ margin: 1.8em 0 1.2em; padding: 18px 20px 6px; border: 1px solid rgba(255, 167, 55, .35); border-left: 4px solid var(--orange); background: rgba(255, 167, 55, .07); }
.callout--warn h2{ display: flex; gap: 10px; align-items: center; margin-top: 0 !important; font-size: clamp(1.18rem, 1.6vw, 1.38rem); }
.callout--warn h2 .ico{ color: var(--orange); width: 26px; height: 26px; }

/* Batch cards on the schedule page */
.batch-list{ list-style: none; padding: 0; margin: 6px 0 12px; display: grid; gap: 12px; max-width: none !important; }
.batch{ display: flex; gap: 16px; margin: 0 !important; padding: 14px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.batch-date{ flex: none; width: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0; border-radius: 10px; background: var(--btn); box-shadow: var(--glow); color: #fff; font-family: var(--font-mono); font-size: .8125rem; }
.batch-date b{ font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; line-height: 1; letter-spacing: 0; }
.batch-course{ display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 1.02rem; line-height: 1.25; text-decoration: none; }
.batch-course .ico{ color: var(--accent); width: 22px; height: 22px; }
.batch-course small{ display: block; font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; color: var(--accent); }
.batch-meta{ list-style: none; padding: 0 !important; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .95rem; color: var(--text-2); }
.batch-meta li{ display: flex; gap: 6px; align-items: center; margin: 0 !important; }
.batch-meta .ico{ width: 16px; height: 16px; color: var(--label); }

.course-card .meta .ico{ width: 16px; height: 16px; color: var(--accent); margin: -2px 6px 0 0; }
.section--tight{ padding-block: clamp(24px, 3.5vw, 40px); }

@media (max-width: 900px) {
  .feature-grid--3, .report-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .icon-list--2, .feature-grid--3, .feature-grid--2, .fit-grid, .price-grid, .mod-grid, .report-grid{ grid-template-columns: 1fr; }
  .step-block{ padding-left: 46px; }
  .step-block::before{ left: 16px; }
  .step-num{ left: -46px; width: 34px; height: 34px; font-size: .9rem; }
  .batch-date{ width: 68px; }
}

/* ---------- Header menus and footer (28 Oct 2026) ---------- */
.sub-menu--rich{ min-width: 410px; }
.sub-item{ display: flex !important; gap: 12px; align-items: flex-start; padding: 10px 12px !important; }
.sub-item .ico{ flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--accent-tint); color: var(--accent); }
.sub-item b{ display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--text); }
.sub-item small{ display: block; margin-top: 2px; font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); }
.sub-item:hover b{ color: var(--accent); }
.sub-menu--mega{ left: 50%; transform: translateX(-50%); min-width: 700px; }
.has-sub:hover .sub-menu--mega, .has-sub:focus-within .sub-menu--mega{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; }
.sub-menu--mega > div{ display: flex; flex-direction: column; gap: 2px; }
.sub-menu--mega a{ font-size: .9rem; }
@media (max-width: 1140px) {
  .sub-menu--rich{ min-width: 0; }
  .sub-menu--mega{ transform: none; min-width: 0; }
  .has-sub.is-open .sub-menu--mega{ display: flex; flex-direction: column; }
  .has-sub:not(.is-open) .sub-menu--mega{ display: none; }
}
.footer-brand p{ margin: 12px 0 14px; max-width: 34ch; font-size: .9rem; }
.site-footer .brand{ display: flex; color: var(--text); padding-block: 0; }
.footer-contact{ gap: 4px !important; }
.footer-contact li{ display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.45; }
.footer-contact svg{ flex: none; width: 16px; height: 16px; margin-top: 7px; color: var(--accent); }
.footer-contact .f-wa svg{ color: #25d366; }
.footer-contact span{ color: var(--muted); padding-block: 5px; }
.footer-grid ul a{ font-size: .9rem; line-height: 1.4; }
.footer-grid h2{ margin-bottom: 10px; }
.footer-legal{ display: inline-flex; gap: 18px; }
.footer-legal a{ color: var(--muted); text-decoration: none; }
.footer-legal a:hover{ color: var(--accent); }
.footer-tm{ flex-basis: 100%; font-size: .8125rem; }

/* Footer: compact topic chips and a quieter accreditation line */
.footer-links{ margin-top: 28px; padding-top: 20px; border-top: 0; }
.footer-links ul{ gap: 8px; }
.footer-links a{ padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; }
.footer-links a:hover{ border-color: var(--accent); }
.footer-atc{ margin-top: 22px; padding: 12px 16px; font-size: .84rem; }
.footer-bottom{ margin-top: 22px; font-size: .8125rem; align-items: center; border-top: 0; }
.footer-tm{ font-size: .8125rem; }

/* Header: breathing room between the name and the menu, smaller menu type */
.header-inner{ gap: 24px; }
.site-nav{ margin-left: auto; }
.site-nav a.nav-link, .site-nav button.nav-link{ padding: 8px 12px; font-size: .9rem; }
.header-cta{ margin-left: 12px; }
@media (max-width: 1440px) { .header-phone{ display: none; } }
@media (min-width: 1141px) and (max-width: 1240px) { .site-nav a.nav-link, .site-nav button.nav-link{ padding: 8px 9px; font-size: .86rem; } .brand-name{ font-size: 1.02rem; } }
/* Long button labels wrap on phones instead of pushing the page wider */
@media (max-width: 560px){ .btn { white-space: normal; text-align: center; justify-content: center; max-width: 100%; line-height: 1.25; } }
.f-open{ color: var(--text); font-weight: 600; }

/* Home FAQ with a help card; related local pages on course pages */

.related-links{ display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.related-links .ico{ flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }


/* ==========================================================================
   ui-ux-pro-max layer: Dark Mode (OLED) + Bento Box Grid (28 Oct 2026)
   Type: display 48 / H1 32 / H2 24 / H3 18-20 / body 16 / labels 12.5.
   Space: 16-64px (density 6). Cards 16px, large tiles 20px, controls 10px.
   ========================================================================== */
body { background: var(--bg); color: var(--text-2); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 2.4vw, 2rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.375rem, 1.8vw, 1.5rem); }
h3 { font-size: 1.125rem; font-weight: 600; }
p { color: var(--text-2); }
a { color: var(--text); text-decoration-color: rgba(248, 113, 113, .6); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(220, 38, 38, .5); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(100% - 2 * var(--gutter), var(--max)); }

/* Ambient: one faint red glow at the top of the page, nothing else */
body { background: radial-gradient(900px 420px at 15% -120px, rgba(220, 38, 38, .14), transparent 70%), radial-gradient(700px 380px at 95% 0, rgba(56, 189, 248, .07), transparent 70%), var(--bg); background-repeat: no-repeat; }

/* Header: sticky, slightly translucent */
.site-header { background: rgba(3, 7, 18, .82); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.site-nav a.nav-link, .site-nav button.nav-link { border-radius: 8px; }
.site-nav a.nav-link[aria-current="page"], .site-nav button.nav-link[aria-current="page"] { background: var(--accent-tint); color: var(--accent-hover); }
.sub-menu { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.sub-item .ico { border-radius: 8px; }
.brand-name small { font-size: .75rem; letter-spacing: .04em; }

/* Buttons: one radius, solid brand red, visible states */
.btn { border-radius: var(--radius-sm); border: 1px solid transparent; padding: 12px 22px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: 0; gap: 8px; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); clip-path: none; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary, .btn--primary:hover { background: var(--btn); color: #fff; box-shadow: 0 6px 20px rgba(220, 38, 38, .25); filter: none; }
.btn--primary:hover { background: var(--btn-hover); }
.btn--ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, .07); border-color: #475569; color: #fff; }
.btn--light { background: #fff; color: #7f1d1d; }
.btn--light:hover { background: #fee2e2; color: #7f1d1d; }
.btn--wa { background: #15803d; color: #fff; }
.btn--sm { padding: 9px 16px; font-size: .9375rem; }
.sticky-bar a.primary, .skip-link { background: var(--btn); }

/* Surfaces: cards with a hairline border on the dark ground */
.card, .course-card, .feature, .spec, .mod, .report, .price-card, .fit, .stream, .facts, .batch, .note, .fee-box, .callout, .icon-list li, .kv > div, .table-wrap, .route, .route-node, .route-seg a, .quiz-option span { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; background-image: none; }
.card:hover, .course-card:hover, .feature:hover, .price-card:hover, .batch:hover, .mod:hover, .report:hover, .route-seg a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card, .course-card, .feature, .price-card, .batch, .mod, .report, .route-seg a { transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.feature .ico, .spec .ico { color: var(--accent); background: var(--accent-tint); border-radius: 10px; }
.icon-list .ico { color: var(--ok); }
.icon-list--no .ico { color: var(--muted); }
.tag, .tag--red, .tag--cyan, .tag--green { border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); }
.callout--warn { background: rgba(251, 191, 36, .06); border-color: rgba(251, 191, 36, .3); }
.next-batch { border-radius: var(--radius-sm); }
.field input, .field select, .field textarea { background: #0a1122; border: 1px solid var(--line-strong); color: var(--text); border-radius: var(--radius-sm); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(248, 113, 113, .2); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: #7c8aa5; }
.field select option { background: var(--panel); color: var(--text); }
.tick-list li::before { color: var(--ok); }

/* Sections */
.sec { padding-block: clamp(40px, 5vw, 64px); }
.sec--alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 24px; }
.sec-head h2 { margin-bottom: 6px; }
.sec-head p { margin: 0; color: var(--muted); }
.section { padding-block: clamp(36px, 4.5vw, 56px); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 20px; }
.section-head p { color: var(--muted); }

/* Home hero: copy and stats on the left, the booking card on the right */
.hero2 { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 5vw, 64px); }
.hero2-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .03); font-size: .8125rem; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.hero2 h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 16px; max-width: 16ch; }
.hero2-lead { font-size: 1.125rem; line-height: 1.6; color: var(--text-2); max-width: 54ch; margin-bottom: 24px; }
.stat-row { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.stat-row li { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-row b { display: block; font-size: 1.5rem; color: var(--text); letter-spacing: -0.02em; line-height: 1.1; }
.stat-row span { font-size: .8125rem; color: var(--muted); }
.form-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .02); }
.form-card-photo { position: relative; margin: 0; aspect-ratio: 1200 / 477; }
.form-card-photo picture, .form-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.form-card-photo figcaption { position: absolute; left: 12px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(3, 7, 18, .78); font-size: .75rem; color: var(--text); }
.form-card .lead-form--mini { padding: 20px 22px 22px; display: grid; gap: 10px; }
.form-card .lead-form--mini h2 { font-size: 1.125rem; margin: 0 0 2px; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--text-2); text-decoration: none; overflow: hidden; transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
a.tile:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); color: var(--text-2); }
.tile b { color: var(--text); font-size: 1.125rem; line-height: 1.3; }
.tile-k { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile-k .ico { width: 16px; height: 16px; color: var(--accent); }
.tile-big { font-size: 2.5rem !important; letter-spacing: -0.03em; line-height: 1 !important; margin-top: auto; }
.tile-big small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.tile--2x1 { grid-column: span 2; }
.tile--2x2 { grid-column: span 2; grid-row: span 2; }
.tile--photo { padding: 0; min-height: 320px; }
.tile--photo picture, .tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.tile--photo:hover img { transform: scale(1.03); }
.tile-over { position: relative; margin-top: auto; padding: 18px 20px; background: linear-gradient(180deg, transparent, rgba(3, 7, 18, .92) 40%); display: grid; gap: 4px; }
.tile-over b { font-size: 1.25rem; }
.tile-over span { color: var(--text-2); font-size: .9375rem; }
.split-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: auto; font-size: .8125rem; font-weight: 600; }
.split-bar span { padding: 10px 12px; border-radius: 8px; color: #fff; }
.split-bar span:first-child { background: #1e3a8a; }
.split-bar span:last-child { background: var(--btn); }

/* Courses */
.course-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ccard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--text-2); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
a.ccard:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); color: var(--text-2); }
.ccard--feat { grid-row: span 2; border-color: rgba(248, 113, 113, .45); background: linear-gradient(180deg, rgba(220, 38, 38, .12), rgba(220, 38, 38, 0) 55%), var(--panel); }
.ccard--feat:hover { border-color: rgba(248, 113, 113, .7); box-shadow: var(--glow); }
.ccard-badge { position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-hover); font-size: .75rem; font-weight: 600; }
.ccard-code { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.ccard-code .ico { width: 18px; height: 18px; color: var(--accent); }
.ccard-title { font-size: 1.25rem; color: var(--text); line-height: 1.25; }
.ccard--feat .ccard-title { font-size: 1.5rem; }
.ccard-text { font-size: .9375rem; }
.ccard ul, .pcard ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.ccard li, .pcard li { display: flex; gap: 8px; align-items: flex-start; font-size: .9375rem; color: var(--text-2); }
.ccard li .ico, .pcard li .ico { width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.ccard-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.ccard-foot b { color: var(--text); font-size: 1.0625rem; }
.ccard-foot span { color: var(--accent-hover); font-weight: 600; font-size: .9375rem; }
.ccard--feat { grid-column: 1; grid-row: 1 / span 2; }
.ccard--pick { grid-column: 3; grid-row: 2; }
.pick fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.pick legend { font-weight: 700; font-size: 1.125rem; color: var(--text); padding: 0; margin-bottom: 12px; }
.pick-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-opt { position: relative; cursor: pointer; }
.pick-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pick-opt span { display: block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); font-size: .9375rem; font-weight: 600; color: var(--text); transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.pick-opt:hover span { border-color: #475569; background: rgba(255, 255, 255, .07); }
.pick-opt input:checked + span { background: var(--btn); border-color: var(--btn); color: #fff; }
.pick-opt input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.pick-result p { margin: 0 0 12px; }
.js .pick-result { display: none; }
.js .pick-result.is-on { display: block; animation: rise .3s var(--ease) both; }
.pick-result + .pick-result { margin-top: 14px; }
.js .pick-result + .pick-result { margin-top: 0; }

/* What a class looks like */
.session { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.session-part { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.session-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-tint); color: var(--accent); margin-bottom: 6px; }
.session-ico .ico { width: 22px; height: 22px; }
.session-part b { font-size: 1.125rem; color: var(--text); }
.session-time { font-size: .8125rem; font-weight: 600; color: var(--accent-hover); }
.session-part > span:last-child { font-size: .9375rem; }

/* Proof */
.proof-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile--trainer p, .tile--rating p { margin: 4px 0; font-size: .9375rem; }
.tile--trainer .btn, .tile--rating .btn { align-self: flex-start; margin-top: auto; }
.tile-sub2 { margin: 10px 0 2px !important; font-size: .8125rem !important; color: var(--muted) !important; }
.chips2 { list-style: none; padding: 0; margin: 6px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips2 li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .8125rem; color: var(--text-2); }
.gallery4 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery4 figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery4 picture, .gallery4 img { width: 100%; height: 100%; object-fit: cover; }
.gallery4 figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 4px 10px; border-radius: 8px; background: rgba(3, 7, 18, .8); font-size: .75rem; color: var(--text); }

/* Pricing */
.price3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--text-2); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.pcard:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); color: var(--text-2); }
.pcard--feat { border-color: rgba(248, 113, 113, .5); background: linear-gradient(180deg, rgba(220, 38, 38, .12), rgba(220, 38, 38, 0) 60%), var(--panel); }
.pcard--feat:hover { box-shadow: var(--glow); }
.pcard-name { font-weight: 600; color: var(--text); font-size: 1.0625rem; }
.pcard-price { font-size: 2.25rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; line-height: 1.1; }
.pcard-price small { font-size: .9375rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.pcard .btn { margin-top: auto; justify-content: center; }

/* Questions: accordion cards */
.faq-wrap { max-width: 860px; }
.faq.cards { display: grid; gap: 10px; }
.card-q { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s var(--ease); }
.card-q[open] { border-color: var(--line-strong); }
.card-q summary { list-style: none; cursor: pointer; }
.card-q summary::-webkit-details-marker { display: none; }
.card-q .q { display: block; position: relative; padding: 16px 52px 16px 20px; font-weight: 600; color: var(--text); font-size: 1rem; }
.card-q .q::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--text); font-weight: 600; transition: transform .2s var(--ease); }
.card-q[open] .q::after { content: "–"; }
.card-q summary:hover .q { color: var(--accent-hover); }
.card-q p { margin: 0; padding: 0 20px 18px; color: var(--text-2); }
.card-q[open] p { animation: rise .25s var(--ease) both; }

/* Closing call to action */
.cta2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: linear-gradient(120deg, #991b1b, #dc2626 60%, #ef4444); box-shadow: 0 20px 50px rgba(220, 38, 38, .25); }
.cta2 h2 { color: #fff; margin: 0 0 6px; }
.cta2 p { color: #fee2e2; margin: 0; max-width: 56ch; }
.cta2 .btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .08); }
.cta2 .btn--ghost:hover { background: rgba(255, 255, 255, .16); }

/* Inner pages: compact hero with a rounded photo */
.page-hero { position: relative; padding-block: clamp(32px, 4.5vw, 56px) clamp(24px, 3vw, 40px); background: none; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 12px; }
.page-hero p.lead { font-size: 1.0625rem; color: var(--text-2); max-width: 62ch; }
.ph-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 48px); align-items: center; }
.ph-pic { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.ph-pic picture, .ph-pic img { width: 100%; height: 100%; object-fit: cover; }
.ph-pic figcaption { position: absolute; left: 10px; right: auto; bottom: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(3, 7, 18, .8); font-size: .75rem; color: var(--text); max-width: 90%; }
.prose h2 { font-size: clamp(1.25rem, 1.6vw, 1.375rem); line-height: 1.3; margin-top: 1.6em; }
.facts h2, .facts dt { letter-spacing: .06em; }
.spec-strip { gap: 10px; margin-top: 20px; }
.spec { border-radius: var(--radius); }
.page-outline { background: rgba(3, 7, 18, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.related-links { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--muted); }
.related-links .ico { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }

/* Shared components restyled for this system */
.tiles2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0 24px; }
.tiles2 .tile { padding: 22px; }
.tiles2 .tile--3 { border-color: rgba(248, 113, 113, .5); background: linear-gradient(180deg, rgba(220, 38, 38, .12), rgba(220, 38, 38, 0) 60%), var(--panel); }
.tile-name { font-weight: 600; color: var(--text); }
.tile-price { font-size: 2rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; line-height: 1.1; }
.tile-price small { font-size: .9375rem; color: var(--muted); font-weight: 600; }
.tile-sub { font-size: .8125rem; color: var(--muted); }
.tiles2 ul { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; gap: 6px; }
.tiles2 li { position: relative; padding-left: 22px; font-size: .9375rem; }
.tiles2 li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.tile-go { margin-top: auto; color: var(--accent-hover); font-weight: 600; }
.cta-band { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); }
.cta-band h2 { margin-bottom: 8px; }
.inset { padding-block: clamp(36px, 4.5vw, 56px); }
.inset-panel { width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.inset-left { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.inset-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.inset-photo picture, .inset-photo img { width: 100%; height: 100%; object-fit: cover; }
.inset-right { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.inset-right h3 { margin-bottom: 4px; }
.inset-right p { margin: 0; }
.photo-grid--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.photo-grid--3 figure, .photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); clip-path: none; }
.module-list li { border-bottom: 1px solid var(--line); }
.m-more > summary { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03); clip-path: none; padding: 10px 16px; font-weight: 600; color: var(--text); }
.route-branch::after { border-top: 2px dashed var(--cyan); }
.price-card .price-badge { border-radius: 999px; background: var(--btn); color: #fff; }
.chips li::before { background: var(--accent); }
.grid--3 { gap: 14px; }

/* Motion: stagger reveal (MASTER.md: 300-450ms, scale .96, y 16px), reduced-motion safe */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes rv-show { to { opacity: 1; transform: none; } }
.rv-ready .rv { opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .4s var(--ease), transform .45s cubic-bezier(.34, 1.4, .64, 1); transition-delay: var(--d, 0ms); animation: rv-show 0s 2.5s forwards; }
.rv-ready .rv.in { opacity: 1; transform: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .rv-ready .rv { opacity: 1; transform: none; transition: none; }
  .btn:hover, a.tile:hover, a.ccard:hover, .pcard:hover, .card:hover, .feature:hover { transform: none; }
}

/* Responsive: 1024, 768, 375 */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ccard--feat { grid-row: auto; grid-column: span 2; }
  .ccard--pick { grid-column: span 2; grid-row: auto; }
  .gallery4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero2-grid, .ph-split, .proof-bento, .inset-panel { grid-template-columns: minmax(0, 1fr); }
  .price3, .session, .tiles2, .photo-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .page-outline { position: static; }
}
@media (max-width: 640px) {
  .hero2 h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.625rem; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat-row li { padding: 10px; }
  .stat-row b { font-size: 1.25rem; }
  .course-bento { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 16px; }
  .tile b { font-size: 1rem; }
  .tile-big { font-size: 2rem !important; }
  .tile--2x1, .tile--2x2 { grid-column: span 2; }
  .ccard--feat, .ccard--pick, .gallery4 { grid-column: auto; }
  .session-part, .ccard, .pcard { padding: 18px; }
  .tile--2x2, .ccard--feat, .ccard--pick { grid-row: auto; }
  .tile--photo { min-height: 260px; }
  .sec, .section { padding-block: 36px; }
  .cta2 { flex-direction: column; align-items: flex-start; }
}

.faq.cards summary { padding: 0; }
.faq.cards summary::after { content: none; display: none; }
.pcard .ccard-badge { position: static; align-self: flex-start; }
.next-batch { background: var(--panel); border: 1px solid rgba(248, 113, 113, .35); border-left: 3px solid var(--accent); color: var(--text-2); }
.next-batch strong, .next-batch a { color: var(--text); }
.tag--cyan { color: #7dd3fc; background: rgba(56, 189, 248, .08); border-color: rgba(56, 189, 248, .3); }
.tag--red { color: #fcd34d; background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .3); }
.tag--green { color: #86efac; background: rgba(34, 197, 94, .08); border-color: rgba(34, 197, 94, .3); }
.route figcaption { color: var(--text-2); } .route figcaption a { text-decoration: underline; text-decoration-color: var(--accent); }

/* In-page section bar: arrows when the sections do not fit, faded edges, nothing clipped */
.page-outline .container { display: flex; align-items: center; gap: 8px; }
.page-outline ul { flex: 1; min-width: 0; padding-inline: 2px; }
.page-outline.is-overflow ul { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.page-outline.is-overflow.at-start ul { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%); }
.page-outline.is-overflow.at-end ul { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px); mask-image: linear-gradient(90deg, transparent 0, #000 28px); }
.po-arrow { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease); }
.po-arrow svg { width: 18px; height: 18px; }
.po-arrow:hover:not(:disabled) { background: var(--panel-2); border-color: #475569; }
.po-arrow:disabled { opacity: .35; cursor: default; }
.po-arrow[hidden] { display: none; }
@media (max-width: 640px) { .po-arrow { width: 32px; height: 32px; } }
