/* ===== Spark — shared styles ===== */
:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --text: #16203a;
  --muted: #5b6684;
  --border: #dfe3ee;
  --sun: #f5a524;
  --sun-strong: #e08a00;
  --ongrid: #2f7df6;
  --offgrid: #19a974;
  --hybrid: #8b5cf6;
  --danger: #e5484d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--sun-strong); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: .2em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .92em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand .logo { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }
.icon-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 10px; width: 38px; height: 38px; cursor: pointer; display: grid; place-items: center; font-size: 1rem; }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .menu-btn { display: grid; margin-left: auto; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
}

/* ----- Hero ----- */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sun) 35%, transparent), transparent 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sun-strong); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: .98rem; font-family: inherit; }
.btn-primary { background: var(--sun); color: #1b1300; }
.btn-primary:hover { background: var(--sun-strong); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }

/* Page hero for topic pages */
.page-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--border); }
.page-hero .tag { display: inline-flex; gap: 8px; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: #fff; margin-bottom: 14px; }
.tag.ongrid { background: var(--ongrid); } .tag.offgrid { background: var(--offgrid); } .tag.hybrid { background: var(--hybrid); }

/* ----- Sections & cards ----- */
section { padding: 56px 0; }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card.link { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; display: flex; flex-direction: column; }
.card.link:hover { transform: translateY(-3px); }
.card .more { margin-top: auto; padding-top: 12px; font-weight: 600; }
.sys-card { border-top: 4px solid var(--c); }
.sys-card .more { color: var(--c); }
.sys-card h3 { color: var(--c); }
.ongrid-c { --c: var(--ongrid); } .offgrid-c { --c: var(--offgrid); } .hybrid-c { --c: var(--hybrid); }
.muted { color: var(--muted); }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 0; list-style: none; }
.pill-list li { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

/* ----- Tables ----- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; font-family: var(--display); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ----- Steps ----- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps > li { counter-increment: step; position: relative; padding: 20px 20px 20px 72px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps > li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-family: var(--display);
  background: color-mix(in srgb, var(--c, var(--sun)) 18%, transparent); color: var(--c, var(--sun-strong));
}
.steps h3 { margin-bottom: .3em; }
.formula {
  font-family: var(--mono); font-size: .9rem; background: var(--surface-2); border-left: 3px solid var(--c, var(--sun));
  padding: 10px 14px; border-radius: 6px; margin: 10px 0; overflow-x: auto; white-space: nowrap;
}

/* ----- Callouts ----- */
.callout { border-radius: var(--radius); padding: 16px 20px; border: 1px solid var(--border); background: var(--surface); display: flex; gap: 14px; }
.callout .ic { font-size: 1.3rem; line-height: 1.3; }
.callout.tip { border-color: color-mix(in srgb, var(--offgrid) 40%, var(--border)); background: color-mix(in srgb, var(--offgrid) 7%, var(--surface)); }
.callout.warn { border-color: color-mix(in srgb, var(--sun) 50%, var(--border)); background: color-mix(in srgb, var(--sun) 9%, var(--surface)); }
.callout p:last-child { margin: 0; }

/* ----- Diagram ----- */
.diagram { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { font-size: .88rem; color: var(--muted); padding: 8px 4px 0; }
.dg-box { fill: var(--surface-2); stroke: var(--border); stroke-width: 1.5; }
.dg-label { fill: var(--text); font-family: var(--font); font-size: 13px; font-weight: 600; text-anchor: middle; }
.dg-sub { fill: var(--muted); font-family: var(--font); font-size: 11px; text-anchor: middle; }
.flow { fill: none; stroke-width: 3; stroke-dasharray: 8 8; animation: flow 1.2s linear infinite; }
.flow.dc { stroke: var(--sun); }
.flow.ac { stroke: var(--ongrid); }
.flow.bat { stroke: var(--offgrid); }
.flow.rev { animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { .flow { animation: none; } }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); padding: 8px 4px 0; }
.legend span::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; background: var(--k); }

/* ----- Calculator ----- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .9rem; }
.field small { color: var(--muted); font-size: .8rem; }
.field input, .field select {
  font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--c, var(--sun)); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.results { background: var(--surface-2); border-radius: var(--radius); padding: 20px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.stat .k { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat .v { font-family: var(--display); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.stat.hl { border-color: var(--c, var(--sun)); }
.work { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin-top: 14px; line-height: 1.8; overflow-x: auto; }

/* Load table (off-grid) */
.load-table input { font: inherit; width: 100%; min-width: 60px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); }
.load-table td { padding: 8px; }
.load-table .del { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 1.1rem; }

/* ----- Quiz ----- */
.quiz .q { margin-bottom: 20px; }
.quiz .q p { font-weight: 600; }
.quiz label { display: block; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; cursor: pointer; background: var(--surface); }
.quiz label:hover { background: var(--surface-2); }
.quiz label.correct { border-color: var(--offgrid); background: color-mix(in srgb, var(--offgrid) 12%, var(--surface)); }
.quiz label.wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.quiz input { margin-right: 8px; }
.quiz .explain { font-size: .9rem; color: var(--muted); display: none; margin-top: 4px; }
.quiz .q.answered .explain { display: block; }
.score { font-weight: 700; font-family: var(--display); }

/* ----- Checklist ----- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.checklist input { margin-top: 5px; accent-color: var(--c, var(--sun)); }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }
.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 10px 0 16px; }
.progress > div { height: 100%; width: 0; background: var(--c, var(--sun)); transition: width .25s; }

/* ----- Sub-nav (TOC) ----- */
.toc { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.toc a { font-size: .88rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--muted); background: var(--surface); }
.toc a:hover { color: var(--text); }

/* ----- Glossary ----- */
.glossary dt { font-weight: 700; font-family: var(--display); margin-top: 14px; }
.glossary dd { margin: 2px 0 0; color: var(--muted); }

/* ----- Footer ----- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: .9rem; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

.page-next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ===== Stylish extras ===== */
.grad-text {
  background: linear-gradient(100deg, var(--sun) 0%, #ff6b3d 45%, var(--hybrid) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero.fancy { padding: 88px 0 72px; }
.hero.fancy::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(600px 300px at 10% 0%, color-mix(in srgb, var(--ongrid) 14%, transparent), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, color-mix(in srgb, var(--hybrid) 14%, transparent), transparent 70%);
}
.hero.fancy { isolation: isolate; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(16,24,40,.15)); }
.sun-rays { transform-origin: 360px 70px; animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .sun-rays, .float { animation: none; } }

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 760px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stats-band div { background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stats-band b { display: block; font-family: var(--display); font-size: 1.6rem; }
.stats-band span { font-size: .82rem; color: var(--muted); }

.sys-card { position: relative; overflow: hidden; }
.sys-card::before {
  content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
  transition: transform .4s;
}
.sys-card:hover::before { transform: scale(1.4); }
.sys-card:hover { border-color: var(--c); box-shadow: 0 12px 40px color-mix(in srgb, var(--c) 22%, transparent); }
.sys-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px;
  background: color-mix(in srgb, var(--c) 15%, transparent); }

.band-dark {
  background: linear-gradient(135deg, #111a33, #1d1747 60%, #2a1640);
  color: #e8ecf6; border-radius: 24px; padding: 48px; position: relative; overflow: hidden;
}
.band-dark::before { content: ""; position: absolute; width: 400px; height: 400px; right: -100px; bottom: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,165,36,.35), transparent 70%); }
.band-dark .muted, .band-dark p { color: #b7c0dc; }
.band-dark h2 { color: #fff; }
@media (max-width: 620px) { .band-dark { padding: 28px 20px; } }
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; margin-top: 24px; }
@media (max-width: 860px) { .path { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .path { grid-template-columns: 1fr; } }
.path div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px; }
.path b { font-family: var(--display); color: var(--sun); font-size: .85rem; letter-spacing: .08em; }
.path h4 { color: #fff; margin: 6px 0; font-size: 1.05rem; }
.path p { font-size: .9rem; margin: 0; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 260px at 85% 0%, color-mix(in srgb, var(--c, var(--sun)) 18%, transparent), transparent 70%); }

/* ===== Spark sky-blue theme ===== */
:root { --sky: #87ceeb; --sky-deep: #4fb3e0; }
:root { --bg: #eef8fd; --surface-2: #e3f2fa; --border: #cfe6f2; }
.site-header {
  background: linear-gradient(90deg, var(--sky), #a8ddf3 60%, var(--sky));
  border-bottom: 1px solid var(--sky-deep);
  box-shadow: 0 2px 12px rgba(79, 179, 224, .25);
}
.site-header .brand { color: #0b2540; font-size: 1.35rem; letter-spacing: .01em; }
.site-header .nav-links a { color: #123a5c; }
.site-header .nav-links a:hover, .site-header .nav-links a.active { background: rgba(255,255,255,.55); color: #0b2540; }
.site-header .icon-btn { background: rgba(255,255,255,.6); border-color: rgba(11,37,64,.15); color: #0b2540; }
@media (max-width: 820px) { .site-header .nav-links { background: #a8ddf3; border-bottom-color: var(--sky-deep); } }

/* ===== Sky blue + navy design ===== */
:root { --navy: #0b2545; --navy-2: #13315c; --sky-ink: #1d7fb8; }
:root { --text: #0b2545; --muted: #4a6283; }

/* Header: sky blue bar with a navy accent line */
.site-header { border-bottom: 3px solid var(--navy); }

/* Accents */
.eyebrow { color: var(--sky-ink); }
.grad-text { background-image: linear-gradient(100deg, var(--sky-deep) 0%, #2a6fb0 50%, var(--navy) 100%); }
a { color: var(--sky-ink); }

/* Buttons */
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(11,37,69,.25); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--sky-deep); color: var(--text); }
.btn-ghost:hover { background: color-mix(in srgb, var(--sky) 25%, var(--surface)); }

/* Hero glow in sky blue */
.hero::before { background: radial-gradient(circle, color-mix(in srgb, var(--sky) 55%, transparent), transparent 65%); }
.hero.fancy::after {
  background:
    radial-gradient(600px 300px at 10% 0%, color-mix(in srgb, var(--sky) 30%, transparent), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, color-mix(in srgb, var(--navy) 10%, transparent), transparent 70%);
}
.page-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--sky) 22%, transparent), transparent); }

/* Cards, stats, steps */
.card, .stat, .stats-band div { border-color: color-mix(in srgb, var(--sky) 55%, var(--border)); }
.stats-band b { color: var(--navy); }
.steps > li::before { background: var(--navy); color: #fff; }
.formula { border-left-color: var(--sky-deep); }
th { background: var(--navy); color: #fff; }
.results { background: color-mix(in srgb, var(--sky) 20%, var(--surface)); }
.stat.hl { border-color: var(--navy); border-width: 2px; }

/* Navy band */
.band-dark { background: linear-gradient(135deg, var(--navy), var(--navy-2) 60%, #1b4f86); }
.band-dark::before { background: radial-gradient(circle, rgba(135,206,235,.45), transparent 70%); }
.band-dark .eyebrow, .path b { color: var(--sky); }

/* Footer in navy */
.site-footer { background: var(--navy); color: #c9dff0; border-top: 3px solid var(--sky); }
.site-footer strong { color: var(--sky); }

/* Keep long formulas scrolling inside their box, not the page */
.steps { grid-template-columns: minmax(0, 1fr); }
.steps > li, .calc > *, .grid > * { min-width: 0; }
body { overflow-x: hidden; }

/* =====================================================================
   Reference-style layout: navy top bar, white nav, floating contacts
   ===================================================================== */
:root { --navy: #1f2370; --navy-2: #2b2f8f; --orange: #f39c12; --wa: #25d366; --font: "Plus Jakarta Sans", system-ui, sans-serif; --display: var(--font); }
:root { --bg: #f6f7fc; --surface: #ffffff; --surface-2: #eef0f8; --border: #e2e5f1; --text: #1f2370; --muted: #4d5590; --sky-ink: #2b2f8f; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }

/* Header shell */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 2px 14px rgba(31,35,112,.06); backdrop-filter: none; }
.topbar { background: var(--navy); color: #fff; font-size: .92rem; font-weight: 600; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 46px; flex-wrap: wrap; }
.topbar a, .topbar span { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar a:hover { color: #ffd27a; }
.ti { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; }
.ti svg { width: 14px; height: 14px; }
.ti-white { background: #fff; color: var(--navy); }
.ti-wa { background: var(--wa); color: #fff; }
.pill-yellow { background: #f5b400; color: var(--navy) !important; padding: 4px 14px; border-radius: 8px; }
.pill-yellow svg { width: 16px; height: 16px; }
.badge { font-size: .62rem; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: .03em; vertical-align: middle; color: #fff; }
.badge.free { background: #e8336d; }
.badge.new { background: #2f5df6; }
@media (max-width: 1100px) { .topbar { display: none; } }

.nav { height: 86px; gap: 20px; }
.brand { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: var(--navy); letter-spacing: -.03em; }
.brand-name span { color: var(--orange); }
.brand small { font-size: .74rem; font-weight: 700; color: var(--navy); margin-top: 2px; }
.site-header .brand { color: var(--navy); }
.nav-links { gap: 2px; margin-left: auto; align-items: center; }
.nav-links > li { position: relative; }
.site-header .nav-links a, .menu-toggle { color: var(--muted); font-size: 1.02rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; background: none; border: 0; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.site-header .nav-links a:hover, .menu-toggle:hover, .site-header .nav-links a.active, .menu-toggle.active { color: var(--navy); background: var(--surface-2); }
.chev svg { width: 14px; height: 14px; display: block; transition: transform .2s; }
.has-menu.open .chev svg, .has-menu:hover .chev svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 6px 0 0; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(31,35,112,.15); display: none; z-index: 60; }
.dropdown::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.has-menu:hover .dropdown, .has-menu.open .dropdown { display: block; }
.dropdown a { display: block !important; width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.round-btn svg { width: 20px; height: 20px; }
.round-btn.navy { background: var(--navy); }
.round-btn.green { background: var(--wa); }
.btn-enroll { background: var(--navy); color: #fff; font-weight: 800; padding: 15px 26px; border-radius: 6px; text-decoration: none; letter-spacing: .01em; }
.btn-enroll:hover { background: var(--navy-2); }
.site-header .icon-btn { background: var(--surface); border-color: var(--border); color: var(--navy); }
.menu-btn { display: none; }
@media (max-width: 1400px) {
  .menu-btn { display: grid; }
  .nav-links { display: none; position: absolute; top: 86px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface) !important; border-bottom: 1px solid var(--border); padding: 8px 16px 16px; margin: 0; box-shadow: 0 16px 30px rgba(31,35,112,.12); }
  .nav-links.open { display: flex; }
  .dropdown { position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; margin: 0; }
  .has-menu:hover .dropdown { display: none; }
  .has-menu.open .dropdown { display: block; }
  .menu-toggle { width: 100%; justify-content: space-between; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 620px) {
  .round-btn, .btn-enroll { display: none; }
  .brand-name { font-size: 1.5rem; }
  .nav { height: 72px; }
  .nav-links { top: 72px; }
}

/* Hero (reference style) */
.hero2 { padding: 90px 0 110px; position: relative; overflow: hidden; isolation: isolate; }
.hero2::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 420px at 85% 10%, rgba(135,206,235,.30), transparent 70%), radial-gradient(500px 300px at 95% 40%, rgba(43,47,143,.10), transparent 70%); }
.hero2-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero2-grid { grid-template-columns: 1fr; } }
.hero2 h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); color: var(--navy); line-height: 1.05; letter-spacing: -.04em; margin-bottom: 28px; }
.hero2 .sub { font-size: clamp(1.15rem, 2vw, 1.6rem); color: var(--navy-2); font-weight: 500; max-width: 30ch; line-height: 1.4; margin-bottom: 36px; }
.feat { list-style: none; padding: 0; margin: 0 0 48px; display: grid; gap: 18px; }
.feat li { display: flex; align-items: center; gap: 16px; font-size: clamp(1.05rem, 1.6vw, 1.4rem); color: var(--navy-2); font-weight: 500; }
.feat svg { width: 24px; height: 24px; color: var(--navy); flex: none; }
.btn-square { display: inline-block; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.35rem; padding: 22px 90px; text-decoration: none; letter-spacing: .01em; box-shadow: 0 10px 24px rgba(31,35,112,.25); }
.btn-square:hover { background: var(--navy-2); }
@media (max-width: 520px) { .btn-square { padding: 18px 40px; font-size: 1.1rem; } }

.qa-card { background: var(--surface); border-top: 14px solid var(--navy); box-shadow: 0 24px 60px rgba(31,35,112,.14); padding: 26px 34px 34px; position: relative; }
.qa-tag { text-align: right; font-weight: 700; font-size: .9rem; color: var(--navy-2); letter-spacing: .04em; margin-bottom: 14px; }
.qa-q { background: var(--navy); color: #fff; font-weight: 600; font-size: 1.08rem; padding: 16px 20px; border-radius: 12px; margin-left: 14%; margin-bottom: 18px; }
.qa-a { border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; box-shadow: 0 6px 18px rgba(31,35,112,.06); background: var(--surface); }
.qa-a .who { font-weight: 800; font-size: .82rem; color: var(--navy-2); letter-spacing: .05em; margin-bottom: 8px; }
.qa-a ol { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; counter-reset: qa; }
.qa-a li { counter-increment: qa; display: flex; gap: 12px; align-items: baseline; color: var(--navy); font-size: 1rem; }
.qa-a li::before { content: counter(qa); width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--surface-2); color: var(--navy); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.qa-ans { background: var(--surface-2); padding: 12px 14px; border-radius: 6px; font-weight: 700; color: var(--navy); }
.qa-more { font-style: italic; font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 520px) { .qa-card { padding: 20px 16px 24px; } .qa-q { margin-left: 0; } }

/* Floating contact buttons */
.float-social { position: fixed; right: 22px; top: 50%; transform: translateY(-30%); display: flex; flex-direction: column; gap: 14px; z-index: 40; align-items: center; }
.fs { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.18); transition: transform .15s; }
.fs:hover { transform: scale(1.08); }
.fs svg { width: 22px; height: 22px; }
.fs.big { width: 60px; height: 60px; }
.fs.big svg { width: 28px; height: 28px; }
.fs.insta { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.fs.linkedin { background: #0a66c2; }
.fs.mail { background: #e5484d; }
.fs.wa { background: var(--wa); }
.fs.call { background: var(--navy); }
.float-pill { position: fixed; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.float-pill svg { width: 18px; height: 18px; }
.float-pill.left { left: 22px; }
.float-pill.left.orange { bottom: 84px; }
.float-pill.right { right: 22px; }
.float-pill.navy { background: var(--navy); }
.float-pill.orange { background: #e8711a; }
@media (max-width: 760px) {
  .float-social { right: 10px; gap: 10px; transform: none; top: auto; bottom: 84px; }
  .float-social .insta, .float-social .linkedin, .float-social .mail { display: none; }
  .fs.big { width: 50px; height: 50px; }
  .float-pill.left.orange { display: none; }
  .float-pill { padding: 10px 14px; font-size: .9rem; }
}

/* Footer */
.site-footer { background: var(--navy); color: #c9cdf0; border-top: 0; padding: 48px 0 24px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 960px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-cols h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-cols a, .footer-cols span { display: block; color: #c9cdf0; text-decoration: none; margin-bottom: 8px; }
.footer-cols a:hover { color: #fff; }
.brand-name.light { color: #fff; margin-bottom: 8px; }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: .82rem; color: #9ea4d6; }
.site-footer p { color: #c9cdf0; }

/* Accents retuned to indigo-navy */
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.steps > li::before { background: var(--navy); color: #fff; }
th { background: var(--navy); color: #fff; }
.eyebrow { color: var(--orange); }
.grad-text { background-image: linear-gradient(100deg, var(--navy-2), #4f7ad8 60%, #5fb6e3); }
.band-dark { background: linear-gradient(135deg, #171a5a, var(--navy) 55%, #2c3aa0); }
section[id], #contact { scroll-margin-top: 140px; }

/* Wider header, no wrapping */
.site-header .container { width: min(1560px, 100% - 48px); }
.brand-name, .brand small { white-space: nowrap; }
.topbar-inner { gap: 22px; flex-wrap: nowrap; }
.site-header .nav-links a, .menu-toggle { white-space: nowrap; }
@media (max-width: 1320px) { .topbar-inner > :nth-child(2), .topbar-inner > :nth-child(3) { display: none; } }
.hero2 .container, .hero2-grid { width: min(1400px, 100% - 48px); }
@media (min-width: 761px) { .hero2-grid { padding-right: 72px; } main { padding-right: 0; } }
@media (max-width: 1400px) { .menu-toggle { justify-content: flex-start; } .menu-toggle .chev { margin-left: auto; } }

/* ===== 3 kW installation training highlight ===== */
.hero-ribbon { display: inline-flex; align-items: center; gap: 10px; background: #fff4e0; color: var(--navy); border: 1px solid #ffd58a; padding: 6px 8px 6px 6px; border-radius: 999px; font-weight: 700; font-size: .92rem; text-decoration: none; margin-bottom: 22px; }
.hero-ribbon .tag-new { background: #e8711a; color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .75rem; letter-spacing: .04em; }
.hero-ribbon:hover { background: #ffecc7; }

.training { padding: 24px 0 64px; }
.training-card { background: var(--surface); border-radius: 22px; padding: 40px; box-shadow: 0 24px 60px rgba(31,35,112,.12); border: 1px solid var(--border); border-top: 6px solid #e8711a; position: relative; overflow: hidden; }
.training-card::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(243,156,18,.18), transparent 70%); pointer-events: none; }
.training-head { max-width: 760px; margin-bottom: 28px; position: relative; }
.training-head h2 { color: var(--navy); font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.training-head p { color: var(--muted); font-size: 1.08rem; }
.hot-badge { display: inline-block; background: linear-gradient(90deg, #e8711a, #f5a524); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .06em; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; box-shadow: 0 6px 16px rgba(232,113,26,.3); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 6px 26px rgba(232,113,26,.55); } }
@media (prefers-reduced-motion: reduce) { .hot-badge { animation: none; } }

.training-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; position: relative; }
@media (max-width: 960px) { .training-grid { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.gallery .g-main { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.gallery .g-main img { object-position: center 30%; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; font-size: .78rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(11,20,60,.8)); }

.training-info h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: 14px; }
.tick-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 32px; color: var(--text); line-height: 1.5; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.tick-list b { color: var(--navy); }
.training-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.training-facts div { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; text-align: center; }
.training-facts b { display: block; font-size: 1.3rem; color: var(--navy); }
.training-facts span { font-size: .8rem; color: var(--muted); }
.training .btn-enroll { display: inline-block; }
@media (max-width: 620px) { .training-card { padding: 24px 18px; } .training .btn-enroll { display: inline-block !important; } }

/* =====================================================================
   Professional polish (same colour palette)
   ===================================================================== */
body { font-size: 16.5px; text-rendering: optimizeLegibility; }
::selection { background: rgba(31,35,112,.15); }
.i16 { width: 16px; height: 16px; flex: none; }

/* Header gains depth on scroll */
.site-header { transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(31,35,112,.12); }
.site-header .nav { transition: height .25s; }
.site-header.scrolled .nav { height: 72px; }
.site-header.scrolled .nav-links { top: 72px; }

/* Hero: subtle engineering grid */
.pro-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(31,35,112,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(31,35,112,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 75%); }
.pro-hero { padding-bottom: 130px; }
.hero-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.link-arrow { color: var(--navy); font-weight: 700; text-decoration: none; font-size: 1.05rem; border-bottom: 2px solid rgba(31,35,112,.2); padding-bottom: 2px; }
.link-arrow span { display: inline-block; transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }
.qa-card { border-radius: 4px 4px 18px 18px; }

/* Stats strip overlapping hero */
.stats-strip { position: relative; z-index: 2; margin-top: -64px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 20px 50px rgba(31,35,112,.12); display: grid; grid-template-columns: repeat(5, 1fr); padding: 26px 10px; }
.stats-strip > div { text-align: center; padding: 6px 12px; border-right: 1px solid var(--border); }
.stats-strip > div:last-child { border-right: 0; }
.stats-strip b { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.1; }
.stats-strip span { font-size: .86rem; color: var(--muted); font-weight: 500; }
@media (max-width: 860px) { .stats-strip { grid-template-columns: repeat(3, 1fr); row-gap: 18px; } .stats-strip > div:nth-child(3) { border-right: 0; } }
@media (max-width: 520px) { .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: -40px; } .stats-strip > div { border-right: 0; } .stats-strip > div:last-child { grid-column: 1 / -1; } }

.training { padding-top: 72px; }
.hot-badge::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }

/* Section rhythm */
.pro-section { padding: 96px 0; }
.pro-section.tight { padding: 40px 0; }
.pro-section.alt { background: linear-gradient(180deg, transparent, rgba(31,35,112,.035) 20%, rgba(31,35,112,.035) 80%, transparent); }
.section-head.center { text-align: center; margin: 0 auto 48px; max-width: 720px; }
.section-head h2, .two-col h2 { color: var(--navy); font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -.03em; }
.section-head p { font-size: 1.08rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .14em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* Icon tiles */
.icon-tile { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; box-shadow: 0 10px 22px rgba(31,35,112,.25); margin-bottom: 18px; }
.icon-tile svg { width: 28px; height: 28px; }
.icon-tile.sm { width: 48px; height: 48px; border-radius: 12px; }
.icon-tile.sm svg { width: 24px; height: 24px; }
.sys-card .icon-tile { background: var(--c); box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 35%, transparent); }

/* System cards */
.sys-card { padding: 32px; border-radius: 18px; border-top-width: 0; transition: transform .25s, box-shadow .25s, border-color .25s; }
.sys-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.card.link:hover { transform: translateY(-6px); }
.course-no { font-size: .74rem; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.sys-card h3 { font-size: 1.5rem; margin-top: 4px; }
.check-mini { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.check-mini li { font-size: .88rem; color: var(--text); font-weight: 500; padding-left: 22px; position: relative; }
.check-mini li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 1.5px var(--c); }
.sys-card .more { padding-top: 22px; margin-top: auto; }

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 16px 40px rgba(31,35,112,.07); }
.why { padding: 34px 30px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background .2s; }
.why:nth-child(3n) { border-right: 0; }
.why:nth-last-child(-n+3) { border-bottom: 0; }
.why:hover { background: var(--surface-2); }
.why h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: 6px; }
.why p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } .why:nth-child(3n) { border-right: 1px solid var(--border); } .why:nth-child(2n) { border-right: 0; } .why:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); } .why:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } .why { border-right: 0 !important; border-bottom: 1px solid var(--border) !important; } .why:last-child { border-bottom: 0 !important; } }

/* Component cards */
.comp { border-radius: 16px; padding: 26px; transition: transform .25s, box-shadow .25s; }
.comp:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31,35,112,.12); }
.comp h3 { color: var(--navy); font-size: 1.08rem; }
.comp p { font-size: .92rem; }

/* Glossary + FAQ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }
.pro-gloss { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 8px 26px 22px; box-shadow: 0 12px 32px rgba(31,35,112,.06); }
.pro-gloss dt { color: var(--navy); font-size: .98rem; padding-top: 14px; border-top: 1px solid var(--border); margin-top: 14px; }
.pro-gloss dt:first-child { border-top: 0; margin-top: 4px; }
.pro-gloss dd { font-size: .92rem; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; box-shadow: 0 6px 18px rgba(31,35,112,.05); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: rgba(31,35,112,.35); box-shadow: 0 14px 30px rgba(31,35,112,.1); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--navy); padding: 18px 30px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; color: var(--navy); transition: transform .2s; }
.faq details[open] summary::after { content: "–"; background: var(--navy); color: #fff; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Closing CTA */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 52px 56px; border-radius: 24px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #171a5a, var(--navy) 50%, #2c3aa0); box-shadow: 0 24px 60px rgba(31,35,112,.3); }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; right: -80px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(243,156,18,.35), transparent 70%); }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 6px; }
.cta-band p { color: #c9cdf0; margin: 0; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cta-light, .btn-cta-outline { padding: 15px 26px; border-radius: 8px; font-weight: 800; text-decoration: none; transition: transform .15s, background .15s; }
.btn-cta-light { background: #fff; color: var(--navy); }
.btn-cta-light:hover { transform: translateY(-2px); }
.btn-cta-outline { border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-cta-outline:hover { background: rgba(255,255,255,.1); }
@media (max-width: 620px) { .cta-band { padding: 34px 22px; } }

/* Lesson pages: refined surfaces */
.page-hero { padding: 72px 0 44px; }
.page-hero h1 { color: var(--navy); letter-spacing: -.035em; }
.card, .diagram, .table-wrap, .steps > li { border-radius: 16px; }
.steps > li { box-shadow: 0 6px 18px rgba(31,35,112,.05); transition: box-shadow .2s, border-color .2s; }
.steps > li:hover { box-shadow: 0 14px 32px rgba(31,35,112,.1); border-color: rgba(31,35,112,.25); }
.steps h3 { color: var(--navy); }
.formula { border-radius: 8px; }
.table-wrap { box-shadow: 0 10px 28px rgba(31,35,112,.06); }
td { color: var(--text); }
tbody tr:nth-child(even) td { background: rgba(31,35,112,.025); }
.toc a { font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.toc a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.calc.card, form.card { border-radius: 20px; box-shadow: 0 20px 50px rgba(31,35,112,.1); }
.quiz label { border-radius: 10px; transition: border-color .15s, background .15s; }
.checklist label { border-radius: 10px; }

/* Footer brand + floating buttons visible on navy */
.footer-cols .brand-name span { display: inline; color: var(--orange); margin: 0; }
.fs.call, .float-pill.navy { box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 8px 20px rgba(0,0,0,.25); }
.site-footer { padding-bottom: 96px; }

/* ===== Solar panel design banner ===== */
.panel-banner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; padding: 56px 56px 48px; border-radius: 26px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 400px at 85% 10%, rgba(245,180,0,.22), transparent 60%), linear-gradient(135deg, #12164d, var(--navy) 55%, #26318f); box-shadow: 0 30px 70px rgba(31,35,112,.32); }
.panel-banner::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(143,176,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(143,176,255,.07) 1px, transparent 1px); background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); }
.panel-banner > * { position: relative; }
.pb-text h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.pb-text > p { color: #c9cdf0; font-size: 1.05rem; margin-bottom: 22px; }
.pb-steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; counter-reset: pb; }
.pb-steps li { counter-increment: pb; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 14px 12px 50px; position: relative; }
.pb-steps li::before { content: counter(pb); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: #f5b400; color: var(--navy); font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.pb-steps b { display: block; color: #fff; }
.pb-steps span { font-size: .84rem; color: #b9bfe6; }
.pb-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.pb-rays { transform-origin: 520px 80px; animation: spin 40s linear infinite; }
.pb-shine { animation: pbShine 4.5s ease-in-out infinite; }
@keyframes pbShine { 0% { transform: translateX(0) skewX(-15deg); } 60%, 100% { transform: translateX(620px) skewX(-15deg); } }
.pb-beams path, .pb-flow { animation: flow 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .pb-rays, .pb-shine, .pb-beams path, .pb-flow { animation: none; } }
@media (max-width: 960px) { .panel-banner { grid-template-columns: 1fr; padding: 40px 28px; } }
@media (max-width: 520px) { .pb-steps { grid-template-columns: 1fr; } .panel-banner { padding: 30px 18px; } }

/* ===== Solar photo gallery ===== */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.photo-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: 16px; background: var(--surface-2); box-shadow: 0 12px 30px rgba(31,35,112,.1); }
.photo-grid figure.wide { grid-column: span 2; }
.photo-grid figure.tall { grid-row: span 2; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.photo-grid figure:hover img { transform: scale(1.06); }
.photo-grid figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: #fff; font-weight: 700; font-size: .95rem; background: linear-gradient(transparent, rgba(12,16,60,.85)); }
.photo-grid figcaption small { display: block; font-weight: 500; font-size: .74rem; color: #c9cdf0; margin-top: 2px; }
.photo-grid figcaption a { color: #c9cdf0; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 520px) { .photo-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; } .photo-grid figure.wide, .photo-grid figure.tall { grid-column: auto; grid-row: auto; } }

.photo-grid { grid-auto-flow: dense; }

/* ===== Founder ===== */
.founder-card { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 48px 56px; box-shadow: 0 20px 50px rgba(31,35,112,.1); position: relative; overflow: hidden; }
.founder-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--orange), var(--navy)); }
.founder-badge { position: relative; display: grid; place-items: center; }
.monogram { width: 220px; height: 220px; border-radius: 50%; display: grid; place-items: center; font-size: 4.6rem; font-weight: 800; letter-spacing: -.04em; color: #fff;
  background: radial-gradient(circle at 30% 25%, #3a43b8, var(--navy) 60%, #12164d); box-shadow: 0 0 0 10px #fff, 0 0 0 12px rgba(243,156,18,.55), 0 24px 50px rgba(31,35,112,.3); }
.role-pill { position: absolute; bottom: 4px; background: var(--orange); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; box-shadow: 0 8px 18px rgba(243,156,18,.4); }
.founder-text h2 { color: var(--navy); font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 6px 0 4px; }
.founder-title { color: var(--orange); font-weight: 700; margin-bottom: 16px; }
.founder-text > p { color: var(--muted); font-size: 1.05rem; }
.founder-text blockquote { margin: 18px 0 26px; padding: 14px 20px; border-left: 4px solid var(--orange); background: var(--surface-2); border-radius: 0 12px 12px 0; color: var(--navy); font-weight: 600; font-style: italic; }
@media (max-width: 860px) { .founder-card { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; gap: 28px; } .monogram { width: 170px; height: 170px; font-size: 3.6rem; } .founder-text blockquote { text-align: left; } .founder-text .btn-row { justify-content: center; } }
.footer-founder { color: #fff; font-weight: 600; margin-top: 4px; }
.footer-founder span { color: var(--orange); }

/* ===== Founder profile page ===== */
.fp-hero { padding: 72px 0 64px; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(700px 360px at 85% 0%, rgba(135,206,235,.28), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(243,156,18,.10), transparent 70%); }
.fp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(31,35,112,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(31,35,112,.045) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 30%, transparent 75%); }
.fp-hero-grid { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: center; }
.fp-photo-wrap { position: relative; display: grid; justify-items: center; }
.fp-photo { width: 320px; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; position: relative;
  background: radial-gradient(circle at 30% 25%, #3a43b8, var(--navy) 60%, #12164d);
  box-shadow: 0 0 0 8px #fff, 0 0 0 10px rgba(243,156,18,.6), 0 30px 60px rgba(31,35,112,.3); }
.fp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; position: relative; z-index: 1; }
.fp-mono { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 6rem; font-weight: 800; letter-spacing: -.04em; }
.fp-role { position: absolute; bottom: -16px; background: var(--orange); color: #fff; font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; padding: 8px 20px; border-radius: 999px; box-shadow: 0 10px 22px rgba(243,156,18,.45); z-index: 2; }
.fp-intro h1 { color: var(--navy); font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.035em; margin: 8px 0 6px; }
.fp-title { color: var(--orange); font-weight: 700; font-size: 1.12rem; margin-bottom: 16px; }
.fp-lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; }
.fp-meta { list-style: none; padding: 0; margin: 18px 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.fp-meta li { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: .9rem; font-weight: 600; color: var(--navy); box-shadow: 0 4px 12px rgba(31,35,112,.05); }
.fp-meta svg { width: 16px; height: 16px; color: var(--orange); }
.fp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fp-block { padding: 36px; border-radius: 20px; }
.fp-block h2 { color: var(--navy); font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 6px 0 14px; }
.fp-block p { color: var(--muted); }
.fp-mission { background: linear-gradient(135deg, #171a5a, var(--navy) 55%, #2c3aa0); border: 0; color: #fff; }
.fp-mission h2 { color: #fff; }
.fp-mission p { color: #c9cdf0; }
.fp-mission blockquote { margin: 18px 0 0; padding: 14px 18px; border-left: 4px solid var(--orange); background: rgba(255,255,255,.08); border-radius: 0 12px 12px 0; font-style: italic; font-weight: 600; color: #fff; }
.fp-gallery { grid-template-columns: repeat(3, 1fr); }
.fp-gallery figure { aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .fp-hero-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .fp-meta, .fp-intro .btn-row { justify-content: center; }
  .fp-lead { margin-inline: auto; }
  .fp-two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .fp-photo { width: 240px; } .fp-mono { font-size: 4.4rem; } .fp-gallery { grid-template-columns: 1fr; } .fp-block { padding: 26px 20px; } }
.founder-photo-link { display: inline-block; margin-top: 4px; }

.monogram { position: relative; overflow: hidden; }
.monogram img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; z-index: 1; }

/* Header fit with Founder link */
.btn-enroll { white-space: nowrap; }
@media (max-width: 1440px) { .site-header .nav-links a, .menu-toggle { padding: 8px 9px; font-size: .97rem; } .nav { gap: 14px; } }
@media (max-width: 1500px) and (min-width: 1401px) { .nav-actions .round-btn, .nav-actions .nav-phone { display: none; } }

/* ===== Founder credentials ===== */
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .cred-grid { grid-template-columns: 1fr; } }
.cred { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: 0 12px 30px rgba(31,35,112,.07); border-top: 4px solid var(--orange); }
.cred .icon-tile { margin: 0; flex: none; }
.cred-k { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.cred h3 { color: var(--navy); font-size: 1.12rem; margin: 4px 0 6px; }
.cred p { color: var(--muted); font-size: .92rem; margin: 0; }
.cred-chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.cred-chips li { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: .88rem; font-weight: 700; color: var(--navy); }
.cred-chips svg { width: 16px; height: 16px; color: var(--orange); }
@media (max-width: 860px) { .cred-chips { justify-content: center; } }

/* ===== Orange buttons and borders ===== */
:root { --border: #f5b041; --btn-orange: #e8850c; --btn-orange-hover: #cf7408; }
.btn-primary, .btn-enroll, .btn-square { background: var(--btn-orange); color: #fff; box-shadow: 0 6px 18px rgba(232,133,12,.28); }
.btn-primary:hover, .btn-enroll:hover, .btn-square:hover { background: var(--btn-orange-hover); }
.btn-ghost { border-color: var(--btn-orange); }
.btn-ghost:hover { background: #fff3e3; }
.site-header { border-bottom-color: var(--btn-orange); }

/* ===== Plain white backgrounds ===== */
:root { --bg: #ffffff; --surface: #ffffff; }
.hero::before, .hero.fancy::after, .hero2::after, .pro-hero::before, .fp-hero::before { background: none; }
.page-hero, .pro-section.alt, .fp-hero { background: #fff; }

/* ===== Navy buttons -> orange ===== */
.round-btn.navy, .fs.call, .float-pill.navy { background: var(--btn-orange); }
.round-btn.navy:hover, .fs.call:hover, .float-pill.navy:hover { background: var(--btn-orange-hover); }
.toc a:hover { background: var(--btn-orange); border-color: var(--btn-orange); }

/* ===== Orange footer and top bar ===== */
.topbar, .site-footer { background: var(--btn-orange); }
.topbar a:hover { color: var(--navy); }
.site-footer, .site-footer p, .footer-cols a, .footer-cols span, .footer-cols h4, .site-footer strong { color: #fff; }
.footer-cols a:hover { color: var(--navy); }
.footer-note { color: #fff; border-top-color: rgba(255,255,255,.35); }
.footer-cols .brand-name span, .footer-founder span { color: var(--navy); }

/* ===== White banner sections ===== */
.band-dark, .cta-band, .panel-banner, .fp-mission { background: #fff; color: var(--navy); border: 2px solid var(--border); box-shadow: 0 16px 40px rgba(31,35,112,.08); }
.band-dark::before, .cta-band::before, .cta-band::after, .panel-banner::before { display: none; }
.band-dark h2, .cta-band h2, .pb-text h2, .fp-mission h2, .path h4, .pb-steps b { color: var(--navy); }
.band-dark p, .band-dark .muted, .cta-band p, .pb-text > p, .fp-mission p, .pb-steps span { color: var(--muted); }
.band-dark .eyebrow, .path b { color: var(--btn-orange); }
.path div, .pb-steps li { background: var(--surface-2); border-color: var(--border); }
.fp-mission blockquote { background: var(--surface-2); color: var(--navy); }
.pb-art svg { filter: drop-shadow(0 16px 24px rgba(31,35,112,.15)); }
.btn-cta-light { background: var(--btn-orange); color: #fff; }
.btn-cta-outline { border-color: var(--btn-orange); color: var(--btn-orange); }
.btn-cta-outline:hover { background: #fff3e3; }

/* ===== Orange table headers ===== */
th { background: var(--btn-orange); color: #fff; }

/* ===== Course colours: On-Grid blue, Off-Grid green ===== */
:root { --ongrid: #1f6fe0; --offgrid: #13995f; }
:is(main[style*="--ongrid"], main[style*="--offgrid"]) .page-hero { background: color-mix(in srgb, var(--c) 9%, #fff); border-bottom: 3px solid var(--c); }
:is(main[style*="--ongrid"], main[style*="--offgrid"]) .page-hero h1,
:is(main[style*="--ongrid"], main[style*="--offgrid"]) .section-head h2 { color: var(--c); }
:is(main[style*="--ongrid"], main[style*="--offgrid"]) .eyebrow { color: var(--c); }
:is(main[style*="--ongrid"], main[style*="--offgrid"]) .toc a { border-color: color-mix(in srgb, var(--c) 45%, #fff); }
:is(main[style*="--ongrid"], main[style*="--offgrid"]) .toc a:hover { background: var(--c); border-color: var(--c); color: #fff; }
:is(main[style*="--ongrid"], main[style*="--offgrid"]) th { background: var(--c); }
:is(main[style*="--ongrid"], main[style*="--offgrid"]) .steps > li::before { background: var(--c); color: #fff; }
:is(main[style*="--ongrid"], main[style*="--offgrid"]) .card { border-color: color-mix(in srgb, var(--c) 35%, #fff); }
:is(main[style*="--ongrid"], main[style*="--offgrid"]) .results { background: color-mix(in srgb, var(--c) 8%, #fff); }
/* Home page course cards */
.sys-card.ongrid-c, .sys-card.offgrid-c { border: 2px solid color-mix(in srgb, var(--c) 45%, #fff); background: color-mix(in srgb, var(--c) 6%, #fff); }
.sys-card.ongrid-c .more, .sys-card.offgrid-c .more { color: var(--c); font-weight: 700; }
:is(main[style*="--ongrid"], main[style*="--offgrid"]) { --border: color-mix(in srgb, var(--c) 35%, #fff); }

/* =====================================================================
   Hi-fi design (Oct 2026): navy text on orange, new home sections
   ===================================================================== */
/* Brand */
.site-header .brand { flex-direction: row; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--navy); color: #f5a524; display: grid; place-items: center; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-header .brand-name { font-size: 1.6rem; }
.site-header .brand small { color: #4d5590; font-weight: 600; }
@media (max-width: 520px) { .site-header .brand-name { font-size: 1.3rem; } .brand-mark { width: 36px; height: 36px; } .site-header .brand small { font-size: .66rem; } }

/* Navy text on orange: white on this orange is hard to read */
.btn-primary, .btn-enroll, .btn-square, .btn-cta-light, .round-btn.navy, .fs.call, .float-pill.navy { color: var(--navy); }
.topbar, .topbar a, .topbar span { color: var(--navy); }
.topbar a:hover { color: #fff; }
.site-footer, .site-footer p, .footer-cols a, .footer-cols span, .footer-cols h4, .site-footer strong, .footer-note, .footer-founder, .brand-name.light { color: var(--navy); }
.footer-cols a:hover { color: #fff; }
.footer-note { border-top-color: rgba(31,35,112,.25); }
.btn-cta-outline { border-color: var(--navy); color: var(--navy); }
.btn-cta-outline:hover { background: #f6f7fc; }

/* Shared hi-fi pieces */
.hf-eyebrow { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #b45f00; margin-bottom: 10px; }
.hf-head { max-width: 44rem; }
.hf-head h2 { margin: 0 0 12px; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -.03em; color: var(--navy); }
.hf-head p { margin: 0; font-size: 1.12rem; line-height: 1.6; color: var(--muted); }
.hf-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--btn-orange); color: var(--navy); font-weight: 800; font-size: 1.05rem; padding: 17px 28px; border-radius: 12px; text-decoration: none; transition: background .15s, transform .15s; box-shadow: 0 8px 22px rgba(232,133,12,.28); }
.hf-btn:hover { background: #f5a524; color: var(--navy); transform: translateY(-2px); }
.hf-btn svg { width: 18px; height: 18px; }
.hf-btn-outline { display: inline-flex; align-items: center; border: 2px solid var(--navy); color: var(--navy); font-weight: 800; font-size: 1.05rem; padding: 15px 26px; border-radius: 12px; text-decoration: none; transition: background .15s; }
.hf-btn-outline:hover { background: #f6f7fc; color: var(--navy); }
.hf-link { font-weight: 700; color: var(--navy); }
.hf-section { padding: 96px 0; }

/* Hero */
.hf-hero { padding: 72px 0 80px; }
.hf-hero-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hf-hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hf-ribbon { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #f1d9b8; border-radius: 999px; padding: 6px 16px 6px 6px; font-size: .9rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.hf-ribbon span { background: var(--navy); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: .75rem; }
.hf-ribbon:hover { background: #fff7ec; color: var(--navy); }
.hf-hero h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; color: var(--navy); }
.hf-sub { margin: 0; font-size: 1.18rem; line-height: 1.6; color: var(--muted); max-width: 34rem; }
.hf-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hf-stats { display: flex; flex-wrap: wrap; gap: 14px 30px; padding-top: 8px; }
.hf-stats div { display: flex; flex-direction: column; padding-right: 30px; border-right: 1px solid #f1d9b8; }
.hf-stats div:last-child { border-right: 0; padding-right: 0; }
.hf-stats b { font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.hf-stats span { font-size: .88rem; font-weight: 600; color: var(--muted); }
.hf-hero-art { flex: 1 1 420px; min-width: 0; }
.hf-art-panel { background: var(--navy); border-radius: 28px; padding: 28px 28px 0; overflow: hidden; }
.hf-art-panel svg { display: block; width: 100%; height: auto; }
.hf-tutor { position: relative; margin: -110px 20px 0 auto; max-width: 340px; background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 24px 60px rgba(31,35,112,.22); display: flex; flex-direction: column; gap: 12px; }
.hf-tutor-tag { font-size: .75rem; font-weight: 800; letter-spacing: .08em; color: #0f7a4c; }
.hf-tutor p { margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.45; color: var(--navy); }
.hf-tutor-calc { font-family: var(--mono); font-size: .82rem; line-height: 1.7; background: #f6f7fc; border-radius: 10px; padding: 10px 12px; color: #2b2f8f; }
.hf-tutor-ans { display: flex; justify-content: space-between; align-items: center; background: #e7f6ee; border-radius: 10px; padding: 10px 12px; color: #0b5e3a; font-size: .9rem; font-weight: 700; }
.hf-tutor-link { font-size: .88rem; font-weight: 700; color: var(--navy); }
@media (max-width: 520px) { .hf-tutor { margin: -60px 10px 0; max-width: none; } .hf-stats div { padding-right: 0; border-right: 0; } }

/* Courses */
.hf-courses { background: #f6f7fc; padding: 88px 0; }
.hf-head-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.hf-head-row .hf-head h2 { margin: 0; }
.hf-course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.hf-course { --cc: #1f6fe0; --cc-ink: #1658b8; --cc-soft: #ecf3fe; --cc-line: #c9dcfb;
  display: flex; flex-direction: column; gap: 14px; background: #fff; border: 2px solid var(--cc-line); border-radius: 22px; padding: 30px; text-decoration: none; color: var(--navy); transition: transform .2s, box-shadow .2s, border-color .2s; }
.hf-course:hover { transform: translateY(-4px); border-color: var(--cc); box-shadow: 0 18px 40px rgba(31,35,112,.12); color: var(--navy); }
.hf-green { --cc: #13995f; --cc-ink: #0b5e3a; --cc-soft: #e7f6ee; --cc-line: #bfe6d2; }
.hf-purple { --cc: #7c4ddb; --cc-ink: #5a32ad; --cc-soft: #f2edfd; --cc-line: #ddd0fb; }
.hf-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--cc); color: #fff; display: grid; place-items: center; }
.hf-icon svg { width: 28px; height: 28px; }
.hf-course-no { font-size: .8rem; font-weight: 800; letter-spacing: .08em; color: var(--cc-ink); }
.hf-course h3 { margin: 0; font-size: 1.65rem; letter-spacing: -.02em; color: var(--navy); }
.hf-course p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.hf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-pills span { background: var(--cc-soft); color: var(--cc-ink); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 700; }
.hf-more { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--cc-ink); }

/* Workflow */
.hf-steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.hf-steps li { border-top: 4px solid var(--navy); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.hf-steps li:last-child { border-top-color: var(--btn-orange); }
.hf-steps span { font-family: var(--mono); font-size: .9rem; color: #b45f00; }
.hf-steps b { font-size: 1.3rem; color: var(--navy); }
.hf-steps p { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--muted); }

/* Calculators */
.hf-calc-wrap { padding: 0 0 96px; }
.hf-calc { background: var(--navy); color: #fff; border-radius: 32px; padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hf-calc-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hf-calc .hf-eyebrow { color: #f5b041; margin: 0; }
.hf-calc h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.hf-calc p { margin: 0; font-size: 1.12rem; line-height: 1.6; color: #d4d7f5; }
.hf-calc-list { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hf-calc-list a { display: flex; align-items: center; gap: 16px; background: #2b2f8f; border-radius: 16px; padding: 18px 20px; color: #fff; text-decoration: none; transition: background .15s, transform .15s; }
.hf-calc-list a:hover { background: #363bab; color: #fff; transform: translateX(4px); }
.hf-calc-list i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.hf-calc-list .dot-blue { background: #5b9bff; }
.hf-calc-list .dot-green { background: #3fd08e; }
.hf-calc-list .dot-purple { background: #b394ff; }
.hf-calc-list span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hf-calc-list b { font-size: 1.05rem; }
.hf-calc-list small { font-size: .88rem; color: #c7cbf0; }
.hf-calc-list em { font-style: normal; font-weight: 800; }

/* Hero photo */
.hf-art-photo { margin: 0; position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: #e9ecf6; box-shadow: 0 24px 60px rgba(31,35,112,.18); }
.hf-art-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-art-photo figcaption { position: absolute; left: 12px; top: 12px; font-size: .7rem; font-weight: 600; color: #fff; background: rgba(0,0,0,.45); padding: 4px 8px; border-radius: 6px; }
.hf-art-photo figcaption a { color: #fff; }

/* Solar products */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.prod { display: flex; flex-direction: column; background: #fff; border: 2px solid #e2e5f1; border-radius: 20px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.prod:hover { transform: translateY(-4px); border-color: var(--btn-orange); box-shadow: 0 18px 40px rgba(31,35,112,.12); }
.prod-art { background: var(--pa, #f6f7fc); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; }
.prod-art svg { width: 100%; height: 100%; }
.prod-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.prod-body h3 { margin: 0; font-size: 1.25rem; color: var(--navy); }
.prod-body p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .96rem; }
.prod-specs { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.prod-specs li { background: #f6f7fc; color: var(--navy); border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 700; }
.prod-body .btn-enroll { margin-top: auto; text-align: center; padding: 12px 18px; }
.prod-note { margin-top: 24px; font-size: .92rem; }

/* ===== Software training ===== */
.hf-red { --cc: #d64545; --cc-ink: #a32c2c; --cc-soft: #fdeeee; --cc-line: #f6cfcf; }
.hf-orange { --cc: #e8850c; --cc-ink: #a85d00; --cc-soft: #fff3e0; --cc-line: #fbdcb0; }
.hf-teal { --cc: #0e9488; --cc-ink: #0a6b62; --cc-soft: #e3f6f4; --cc-line: #b6e6e1; }

.sw-window { padding-top: 0; overflow: hidden; }
.sw-bar { display: flex; align-items: center; gap: 6px; margin: 0 -22px; padding: 10px 14px; background: #f1f2f9; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.sw-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e5f1; }
.sw-bar i:nth-child(1) { background: #ff6058; } .sw-bar i:nth-child(2) { background: #ffbd2e; } .sw-bar i:nth-child(3) { background: #28c940; }
.sw-bar span { margin-left: 8px; }
.sw-bars { display: grid; gap: 8px; }
.sw-bars div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.sw-bars b { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #f5a524, #e8711a); }

.sw-combo { margin-top: 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: #fff; border: 2px dashed var(--btn-orange, #e8850c); border-radius: 22px; padding: 26px 30px; text-decoration: none; color: var(--navy); transition: transform .2s, box-shadow .2s; }
.sw-combo:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(31,35,112,.12); color: var(--navy); }
.sw-combo .hot-badge { margin: 0; }
.sw-combo > div { flex: 1 1 320px; }
.sw-combo h3 { margin: 0 0 6px; font-size: 1.35rem; color: var(--navy); }
.sw-combo p { margin: 0; color: var(--muted); line-height: 1.6; }

.sw-who { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sw-who span { background: #fff; border: 2px solid var(--border); border-radius: 999px; padding: 10px 18px; font-weight: 700; color: var(--navy); }

.sw-enroll { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; background: #fff; border: 2px solid var(--border); border-radius: 24px; padding: 44px; box-shadow: 0 16px 40px rgba(31,35,112,.08); }
.sw-enroll-text h2 { margin: 8px 0 12px; }
.sw-enroll-text p { color: var(--muted); line-height: 1.65; margin: 0 0 20px; }
.sw-form { display: grid; gap: 14px; background: #f6f7fc; border-radius: 18px; padding: 24px; }
.sw-form label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--navy); }
.sw-form input, .sw-form select, .sw-form textarea { font: inherit; font-weight: 500; padding: 11px 13px; border: 1.5px solid #d5d9ea; border-radius: 10px; background: #fff; color: var(--navy); width: 100%; box-sizing: border-box; }
.sw-form input:focus, .sw-form select:focus, .sw-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31,35,112,.12); }
.sw-form button { border: 0; cursor: pointer; justify-self: start; font: inherit; }
.sw-form-note { margin: 0; font-size: .82rem; color: var(--muted); }
.sw-faq { max-width: 820px; }
@media (max-width: 820px) { .sw-enroll { grid-template-columns: 1fr; padding: 26px 18px; gap: 24px; } .sw-form { padding: 18px; } }
@media (max-width: 420px) { .sw-bars div { grid-template-columns: 96px 1fr; } }
@media (max-width: 620px) { main .btn-enroll { display: inline-block; } }

/* Software logos */
.sw-logo { height: 64px; display: flex; align-items: center; gap: 14px; }
.sw-logo img { max-height: 52px; max-width: 200px; width: auto; object-fit: contain; }
.sw-logo b { font-size: 1.15rem; color: #1f2370; letter-spacing: -.01em; }
.sw-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 34px; background: #fff; border: 2px solid var(--border); border-radius: 18px; padding: 18px 24px; margin-bottom: 28px; }
.sw-strip img { height: 38px; width: auto; max-width: 150px; object-fit: contain; }
.sw-strip-x { font-weight: 800; font-size: 1.15rem; color: #107c41; }
@media (max-width: 560px) { .sw-strip { gap: 14px 22px; padding: 14px; } .sw-strip img { height: 28px; } .sw-logo img { max-width: 150px; } }
.sw-logo-2 img { max-width: calc(50% - 7px); max-height: 44px; }
.sw-logo img[src*="pvsol"] { max-height: 64px; }
.sw-strip img[src*="pvsol"] { height: 50px; }

/* ===== Card borders: thin light-grey outline, soft corners ===== */
:root { --card-line: #e3e6ef; }
.hf-course, .hf-course:hover, .sw-combo, .sw-strip, .sw-enroll, .why-grid, .founder-card, .cta-band, .faq details, .sw-who span, .card, .hf-tutor, .training-card {
  border: 1px solid var(--card-line) !important; border-radius: 14px; box-shadow: 0 1px 3px rgba(16,24,40,.04);
}
.hf-course:hover, .sw-combo:hover { box-shadow: 0 10px 28px rgba(16,24,40,.08); }
.why { border-color: var(--card-line) !important; }
.sw-form { border: 1px solid var(--card-line); border-radius: 12px; }
.founder-card::before { display: none; }

/* ===== Blue theme (indigo top bar + buttons) ===== */
:root { --blue-bar: #1e1f6b; --blue-btn: #3b3b9c; --blue-btn-hover: #2c2c84; --btn-orange: var(--blue-btn); --btn-orange-hover: var(--blue-btn-hover); }
.topbar, .site-footer { background: var(--blue-bar); }
.topbar, .topbar a, .topbar span { color: #fff; }
.topbar a:hover { color: #ffd27a; }
.site-footer, .site-footer p, .footer-cols a, .footer-cols span, .footer-cols h4, .site-footer strong, .footer-note, .footer-founder, .brand-name.light, .footer-founder span { color: #fff; }
.footer-cols a:hover { color: #ffd27a; }
.site-header { border-bottom: 1px solid var(--card-line); }
.btn-primary, .btn-enroll, .btn-square, .btn-cta-light, .hf-btn, .round-btn.navy, .fs.call, .float-pill.navy { background: var(--blue-btn); color: #fff; box-shadow: 0 6px 16px rgba(59,59,156,.25); }
.btn-primary:hover, .btn-enroll:hover, .btn-square:hover, .btn-cta-light:hover, .hf-btn:hover, .round-btn.navy:hover, .fs.call:hover, .float-pill.navy:hover { background: var(--blue-btn-hover); color: #fff; }
.hf-btn-outline { border-color: var(--blue-btn); color: var(--blue-btn); }
button.pill-yellow { border: 0; font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
button.pill-yellow[hidden] { display: none; }
.nav-install { display: none; }
@media (max-width: 1100px) { .nav-install { display: block; padding: 10px 0; } .nav-install button { padding: 10px 16px; } }

/* ===== KVA Spark — hi-fi brand lockup ===== */
.site-header .brand { gap: 12px; }
.site-header .brand-mark { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(145deg, #2a2c8f 0%, #1e1f6b 55%, #12134a 100%); box-shadow: 0 8px 20px rgba(30,31,107,.28), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .25s ease, box-shadow .25s ease; }
.site-header .brand-mark svg { width: 38px; height: 38px; }
.site-header .brand:hover .brand-mark { transform: translateY(-1px) rotate(-4deg); box-shadow: 0 12px 26px rgba(30,31,107,.34), inset 0 1px 0 rgba(255,255,255,.18); }
.site-header .brand-name { font-size: 1.55rem; font-weight: 800; letter-spacing: -.025em; color: var(--blue-bar); }
.site-header .brand-name span { background: linear-gradient(90deg, #2f6bf6, #3b3b9c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-header .brand small { margin-top: 4px; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #c27a00; display: flex; align-items: center; gap: 6px; }
.site-header .brand small::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #ffd36b, #f59e0b); }
.footer-tag { margin: -4px 0 10px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
@media (max-width: 520px) {
  .site-header .brand-mark { width: 40px; height: 40px; border-radius: 11px; }
  .site-header .brand-mark svg { width: 30px; height: 30px; }
  .site-header .brand-name { font-size: 1.2rem; }
  .site-header .brand small { font-size: .56rem; letter-spacing: .1em; }
  .site-header .brand small::before { display: none; }
}

/* ===== Premium polish layer ===== */
html { scroll-behavior: smooth; }
::selection { background: rgba(47,107,246,.18); color: var(--navy); }
:focus-visible { outline: 3px solid rgba(47,107,246,.45); outline-offset: 3px; border-radius: 8px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.grad-text { background-image: linear-gradient(100deg, #2f6bf6 0%, #4f46e5 60%, #3b3b9c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header: frosted glass on scroll */
.site-header { background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }

/* Hero: soft light mesh + faint grid */
.hf-hero { position: relative; overflow: hidden; isolation: isolate; }
.hf-hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(900px 480px at 85% 10%, rgba(47,107,246,.14), transparent 60%),
              radial-gradient(700px 420px at 5% 90%, rgba(245,158,11,.12), transparent 60%),
              linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%); }
.hf-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(30,31,107,.09) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%); }
.hf-ribbon { background: rgba(255,255,255,.8); box-shadow: 0 4px 14px rgba(30,31,107,.06); }
.hf-art-photo { border-radius: 28px; box-shadow: 0 30px 60px -20px rgba(30,31,107,.35), 0 0 0 8px rgba(255,255,255,.7); }
.hf-tutor { box-shadow: 0 24px 50px -12px rgba(30,31,107,.3); }
.hf-btn { box-shadow: 0 10px 24px -6px rgba(59,59,156,.55); transition: transform .2s ease, box-shadow .2s ease, background .2s; }
.hf-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(59,59,156,.6); }
.hf-btn-outline { background: rgba(255,255,255,.7); transition: background .2s, transform .2s; }
.hf-btn-outline:hover { background: #fff; transform: translateY(-2px); }
.hf-stats b { background: linear-gradient(180deg, var(--navy), #3b3b9c); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Eyebrows as pills */
.hf-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff4e2; color: #b45f00; letter-spacing: .12em; font-size: .74rem; }

/* Course cards: accent bar + refined hover */
.hf-course { position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(180deg, #fff 0%, var(--cc-soft) 220%); box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 30px -12px rgba(31,35,112,.12); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.hf-course::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--cc), color-mix(in srgb, var(--cc) 40%, #fff)); }
.hf-course:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -18px color-mix(in srgb, var(--cc) 45%, transparent); }
.hf-course .hf-more { transition: gap .2s, transform .2s; }
.hf-course:hover .hf-more { transform: translateX(4px); }
.sw-strip img { filter: grayscale(1) opacity(.65); transition: filter .25s; }
.sw-strip img:hover { filter: none; }
.sw-combo { border-radius: 24px; background: linear-gradient(120deg, #fff 0%, #f3f4ff 60%, #fff6e8 100%); box-shadow: 0 20px 44px -20px rgba(30,31,107,.3); }

/* Learning path: dark feature band */
#path { position: relative; background: radial-gradient(800px 400px at 90% 0%, rgba(47,107,246,.35), transparent 60%), radial-gradient(600px 360px at 0% 100%, rgba(245,158,11,.18), transparent 60%), linear-gradient(160deg, #1e1f6b 0%, #12134a 100%); color: #fff; }
#path .hf-head h2 { color: #fff; }
#path .hf-head p { color: #c9cdf0; }
#path .hf-eyebrow { background: rgba(255,255,255,.1); color: #ffd36b; }
#path .hf-steps { counter-reset: none; }
#path .hf-steps li { border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 26px 24px; background: rgba(255,255,255,.05); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .3s, background .3s, border-color .3s; }
#path .hf-steps li:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); border-color: rgba(255,211,107,.45); }
#path .hf-steps span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #ffd36b, #f59e0b); color: #1e1f6b; font-weight: 800; box-shadow: 0 8px 20px -6px rgba(245,158,11,.6); }
#path .hf-steps b { color: #fff; font-size: 1.15rem; }
#path .hf-steps p { color: #c9cdf0; margin: 0; }

/* What you get: separate cards */
.why-grid { gap: 20px; border: 0; background: transparent; box-shadow: none; overflow: visible; }
.why { border: 1px solid var(--border) !important; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px -16px rgba(31,35,112,.18); transition: transform .3s, box-shadow .3s, border-color .3s; }
.why:hover { background: #fff; transform: translateY(-5px); border-color: rgba(47,107,246,.35) !important; box-shadow: 0 24px 44px -18px rgba(47,107,246,.35); }
.why .icon-tile { background: linear-gradient(135deg, #2f6bf6, #1e1f6b); }

/* Who should join chips */
.sw-who span { border-width: 1px; box-shadow: 0 4px 12px -6px rgba(31,35,112,.2); transition: transform .2s, border-color .2s, background .2s; }
.sw-who span:hover { transform: translateY(-2px); border-color: #2f6bf6; background: #f3f6ff; }

/* Enroll card + form */
.sw-enroll { border-radius: 28px; box-shadow: 0 30px 60px -28px rgba(30,31,107,.35); }
.sw-form input, .sw-form select, .sw-form textarea { transition: border-color .2s, box-shadow .2s; }
.sw-form input:focus, .sw-form select:focus, .sw-form textarea:focus { outline: none; border-color: #2f6bf6; box-shadow: 0 0 0 4px rgba(47,107,246,.15); }

/* Founder + FAQ + CTA */
.founder-card { border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(30,31,107,.35); }
.faq details { border-radius: 16px; }
.faq summary::after { transition: transform .25s, background .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.cta-band { border-radius: 28px; box-shadow: 0 30px 60px -24px rgba(30,31,107,.55); }

/* Consistent buttons */
.btn-enroll, .btn-cta-light { transition: transform .2s, box-shadow .2s, background .2s; }
.btn-enroll:hover, .btn-cta-light:hover { transform: translateY(-2px); }

@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } .hf-art-photo { border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hf-course, .why, .hf-btn, .sw-who span, #path .hf-steps li { transition: none; }
  .hf-course:hover, .why:hover, .hf-btn:hover, #path .hf-steps li:hover { transform: none; }
}

/* ===== Navy & gold theme (classic: serif headings, square buttons) ===== */
:root {
  --navy: #1b2b52; --navy-2: #263a6b; --gold: #b08d57; --gold-ink: #8a6a37; --gold-soft: #f6efe3;
  --blue-bar: var(--navy); --blue-btn: var(--navy); --blue-btn-hover: #2a3f74;
  --btn-orange: var(--navy); --btn-orange-hover: #2a3f74;
  --text: #1b2b52; --muted: #4f5b75; --border: #e6e1d6; --card-line: #e6e1d6; --orange: var(--gold);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
}
h1, h2, h3, .hf-hero h1, .hf-head h2, .hf-course h3, .hf-calc h2, .site-header .brand-name { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.hf-hero h1, .hero2 h1 { font-weight: 800; letter-spacing: -.015em; }
::selection { background: rgba(176,141,87,.25); color: var(--navy); }
:focus-visible { outline-color: rgba(176,141,87,.6); }
a { color: var(--navy); }

/* Top bar + footer */
.topbar, .site-footer { background: var(--navy); }
.topbar a:hover, .footer-cols a:hover { color: #d9bf8f; }
.site-footer { border-top: 4px solid var(--gold); }
.footer-cols .brand-name span, .footer-founder span { color: #d9bf8f; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--card-line); }
.site-header .brand-mark { background: #fff; border: 2px solid var(--navy); border-radius: 4px; box-shadow: none; color: var(--navy); }
.site-header .brand-name { color: var(--navy); }
.site-header .brand-name span { background: none; color: var(--navy); -webkit-text-fill-color: currentColor; }
.site-header .brand small { color: var(--gold); letter-spacing: .22em; }
.site-header .brand small::before { display: none; }
.site-header .nav-links a, .menu-toggle { color: var(--navy); border-radius: 0; }
.site-header .nav-links a:hover, .menu-toggle:hover { background: none; color: var(--gold-ink); }
.site-header .nav-links a.active, .menu-toggle.active { background: none; color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); }

/* Buttons: square, navy, uppercase */
.btn-primary, .btn-enroll, .btn-square, .btn-cta-light, .hf-btn, .round-btn.navy, .fs.call, .float-pill.navy { background: var(--navy); color: #fff; box-shadow: none; }
.btn-primary:hover, .btn-enroll:hover, .btn-square:hover, .btn-cta-light:hover, .hf-btn:hover, .round-btn.navy:hover, .fs.call:hover, .float-pill.navy:hover { background: var(--btn-orange-hover); color: #fff; box-shadow: none; }
.btn-primary, .btn-enroll, .btn-square, .btn-cta-light, .hf-btn, .hf-btn-outline, .btn-ghost, .btn-cta-outline { border-radius: 2px; text-transform: uppercase; letter-spacing: .1em; font-size: .92rem; font-weight: 700; }
.hf-btn-outline, .btn-cta-outline { border-color: var(--navy); color: var(--navy); }
.btn-ghost { border-color: var(--navy); }
.btn-ghost:hover, .hf-btn-outline:hover, .btn-cta-outline:hover { background: var(--gold-soft); }
.pill-yellow { background: var(--gold); color: #fff !important; }

/* Eyebrows: solid gold label */
.hf-eyebrow, .eyebrow { display: inline-block; background: var(--gold); color: #fff; border-radius: 0; padding: 7px 16px; letter-spacing: .14em; font-size: .78rem; font-weight: 800; }
#path .hf-eyebrow, .hf-calc .hf-eyebrow { background: var(--gold); color: #fff; }
.hf-ribbon { border-color: var(--gold); border-radius: 2px; }
.hf-ribbon span { background: var(--gold); border-radius: 2px; }
.hot-badge { background: var(--gold); box-shadow: none; animation: none; border-radius: 2px; }

/* Hero: warm, light wash */
.hf-hero::before { background: radial-gradient(900px 480px at 85% 10%, rgba(176,141,87,.14), transparent 60%), linear-gradient(180deg, #fbf9f5 0%, #fff 100%); }
.hf-hero::after { background-image: radial-gradient(rgba(27,43,82,.07) 1px, transparent 1px); }
.hf-stats b { background: none; color: var(--navy); -webkit-text-fill-color: currentColor; font-family: var(--display); }
.hf-stats div { border-right-color: var(--border); }
.grad-text { background-image: linear-gradient(100deg, var(--navy), var(--gold)); }
.hf-art-photo { border-radius: 6px; box-shadow: 0 30px 60px -24px rgba(27,43,82,.35); }

/* Dark bands */
#path, .hf-calc { background: linear-gradient(160deg, var(--navy) 0%, #14213f 100%); }
#path .hf-steps span { background: var(--gold); color: #fff; box-shadow: none; border-radius: 2px; }
#path .hf-steps li:hover { border-color: rgba(217,191,143,.5); }
.hf-calc-list a { background: var(--navy-2); }
.hf-calc-list a:hover { background: #31477f; }
.hf-steps li:last-child { border-top-color: var(--gold); }
.hf-steps span { color: var(--gold-ink); }

/* Cards and accents */
.why .icon-tile, .icon-tile { background: var(--navy); box-shadow: none; border-radius: 4px; }
.why:hover { border-color: var(--gold) !important; box-shadow: 0 24px 44px -20px rgba(27,43,82,.3); }
.sw-who span:hover { border-color: var(--gold); background: var(--gold-soft); }
.sw-combo { background: linear-gradient(120deg, #fff 0%, var(--gold-soft) 100%); border-color: var(--gold) !important; }
.prod:hover { border-color: var(--gold); }
.tick-list li::before, .steps > li::before { background: var(--navy); }
.faq details[open] summary::after { background: var(--gold); }
.faq details[open] { border-color: var(--gold) !important; }
th { background: var(--navy); }
.toc a:hover { background: var(--navy); border-color: var(--navy); }
.cred { border-top-color: var(--gold); }
.role-pill, .fp-role { background: var(--gold); box-shadow: none; }
.fp-mission blockquote { border-left-color: var(--gold); }
.sw-form input:focus, .sw-form select:focus, .sw-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176,141,87,.18); }

/* ===== Course pages: navy & gold instead of track colours ===== */
main[style*="--c"] { --c: var(--navy) !important; --border: var(--card-line) !important; }
main[style*="--c"] .page-hero { background: #fbf9f5; border-bottom: 3px solid var(--gold); }
main[style*="--c"] .page-hero::after { background: radial-gradient(700px 260px at 85% 0%, rgba(176,141,87,.16), transparent 70%); }
main[style*="--c"] .page-hero h1, main[style*="--c"] .section-head h2, main[style*="--c"] h2, main[style*="--c"] h3 { color: var(--navy); }
.page-hero .tag, .page-hero .tag.ongrid, .page-hero .tag.offgrid, .page-hero .tag.hybrid { background: var(--gold); border-radius: 2px; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 800; padding: 6px 14px; }
main[style*="--c"] .eyebrow { color: #fff; }
main[style*="--c"] .toc a { border-color: var(--card-line); color: var(--navy); }
main[style*="--c"] .toc a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
main[style*="--c"] .card { border-color: var(--card-line); }
main[style*="--c"] .results { background: var(--gold-soft); }

/* =====================================================================
   Hi-fi v2 (KVA Spark): classic navy & gold layout
   ===================================================================== */
/* Top bar */
.topbar { background: var(--navy); color: #dfe4f0; font-weight: 500; font-size: .9rem; }
.topbar-inner { justify-content: space-between; min-height: 46px; gap: 16px; }
.topbar-msg { color: #dfe4f0 !important; letter-spacing: .01em; }
.topbar-links { display: inline-flex; align-items: center; gap: 26px; }
.topbar a { color: #fff; font-weight: 600; gap: 8px; }
.topbar a svg { width: 15px; height: 15px; color: #d9bf8f; }
.topbar a:hover { color: #d9bf8f; }
.topbar-install { background: none; border: 1px solid rgba(217,191,143,.6); color: #fff; font: inherit; font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 2px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.topbar-install svg { width: 14px; height: 14px; }
.topbar-install[hidden] { display: none; }
@media (max-width: 1100px) { .topbar { display: block; } }
@media (max-width: 700px) { .topbar-msg, .topbar-install { display: none !important; } .topbar-inner { justify-content: center; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--card-line); box-shadow: none; }
.site-header.scrolled { box-shadow: 0 8px 28px rgba(27,43,82,.1); }
.nav { height: 92px; gap: 28px; }
.site-header .brand { flex-direction: row; align-items: center; gap: 14px; }
.site-header .brand-mark { width: 48px; height: 48px; border-radius: 0; background: #fff; border: 1.5px solid var(--navy); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(176,141,87,.55); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.55rem; color: var(--navy); transform: none !important; }
.site-header .brand-text { gap: 2px; }
.site-header .brand small { order: -1; margin: 0; font-size: .66rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.site-header .brand-name { font-family: var(--display); font-size: 1.55rem; font-weight: 700; letter-spacing: -.005em; color: var(--navy); line-height: 1.1; }
.site-header .brand-name span { color: var(--navy); }
.site-header .nav-links { gap: 6px; }
.site-header .nav-links a, .menu-toggle { color: var(--navy); font-weight: 500; font-size: 1.02rem; padding: 10px 12px; position: relative; }
.site-header .nav-links > li > a::after, .menu-toggle::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-header .nav-links > li > a:hover::after, .site-header .nav-links a.active::after, .menu-toggle:hover::after, .menu-toggle.active::after { transform: scaleX(1); }
.site-header .nav-links a.active, .menu-toggle.active { box-shadow: none; }
.dropdown { border-radius: 2px; border: 1px solid var(--card-line); border-top: 3px solid var(--gold); padding: 6px; }
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--gold-soft) !important; }
.nav-actions { gap: 22px; }
.nav-phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--navy); text-decoration: none; white-space: nowrap; }
.nav-phone svg { width: 20px; height: 20px; color: var(--gold); }
.nav-phone:hover { color: var(--gold-ink); }
.site-header .btn-enroll { padding: 14px 22px; font-size: .82rem; }
.site-header .icon-btn { border-radius: 2px; border-color: var(--navy); }
@media (max-width: 1400px) { .nav-links { top: 92px; } }
@media (max-width: 760px) { .nav-phone { display: none; } }
@media (max-width: 620px) {
  .nav { height: 76px; } .nav-links { top: 76px; }
  .site-header .brand-mark { width: 40px; height: 40px; font-size: 1.3rem; }
  .site-header .brand-name { font-size: 1.15rem; }
  .site-header .brand small { font-size: .56rem; letter-spacing: .18em; }
}

/* Hero */
.hx-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 620px; display: flex; align-items: center; padding: 96px 0 140px; }
.hx-bg { position: absolute; inset: 0; z-index: -2; }
.hx-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; display: block; }
.hx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.93) 38%, rgba(255,255,255,.55) 60%, rgba(255,255,255,0) 82%); }
.hx-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hx-label { display: inline-block; background: var(--gold); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; padding: 10px 18px; }
.hx-hero h1 { margin: 0; max-width: 14ch; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.08; letter-spacing: -.015em; color: var(--navy); }
.hx-hero h1 em { font-style: normal; color: var(--gold-ink); }
.hx-sub { margin: 0; max-width: 36rem; font-size: 1.18rem; line-height: 1.7; color: #3e4a66; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hx-btn, .hx-btn-ghost { display: inline-flex; align-items: center; gap: 12px; padding: 18px 30px; font-weight: 800; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-radius: 0; transition: background .2s, color .2s, transform .2s; }
.hx-btn { background: var(--navy); color: #fff; }
.hx-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.hx-btn:hover { background: #2a3f74; color: #fff; }
.hx-btn:hover svg { transform: translateX(4px); }
.hx-btn-ghost { border: 2px solid var(--navy); color: var(--navy); background: rgba(255,255,255,.7); padding: 16px 28px; }
.hx-btn-ghost:hover { background: var(--navy); color: #fff; }
@media (max-width: 860px) {
  .hx-hero { min-height: 0; padding: 64px 0 120px; }
  .hx-hero::before { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.86)); }
  .hx-sub { font-size: 1.05rem; }
}
@media (max-width: 480px) { .hx-btn, .hx-btn-ghost { width: 100%; justify-content: center; } }

/* Stats bar overlapping the hero */
.hx-stats-wrap { position: relative; z-index: 2; margin-top: -72px; }
.hx-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); color: #fff; box-shadow: 0 30px 60px -24px rgba(27,43,82,.55); border-bottom: 4px solid var(--gold); }
.hx-stats div { padding: 30px 28px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid rgba(255,255,255,.12); }
.hx-stats div:last-child { border-right: 0; }
.hx-stats b { font-family: var(--display); font-size: 2.3rem; line-height: 1.1; color: #d9bf8f; }
.hx-stats span { font-size: .95rem; color: #d6dcea; }
@media (max-width: 860px) { .hx-stats { grid-template-columns: 1fr 1fr; } .hx-stats div:nth-child(2) { border-right: 0; } .hx-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); } }
@media (max-width: 420px) { .hx-stats div { padding: 22px 18px; } .hx-stats b { font-size: 1.8rem; } }

/* Sections */
.hf-courses { background: #fff; padding: 96px 0; }
.hf-head h2, .section-head h2 { font-family: var(--display); color: var(--navy); }
.section-head.center .eyebrow { margin-inline: auto; }
.sw-strip { border-radius: 0; border-color: var(--card-line) !important; }
/* Course cards: one consistent navy & gold card */
.hf-course.hf-course { --cc: var(--navy); --cc-ink: var(--gold-ink); --cc-soft: var(--gold-soft); --cc-line: var(--card-line);
  border-radius: 0; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04); padding: 34px 30px; }
.hf-course.hf-course::before { height: 3px; background: var(--gold); transform: scaleX(.18); transform-origin: left; transition: transform .35s ease; }
.hf-course.hf-course:hover { transform: translateY(-6px); border-color: var(--card-line) !important; box-shadow: 0 30px 50px -26px rgba(27,43,82,.4); }
.hf-course.hf-course:hover::before { transform: scaleX(1); }
.hf-course h3 { font-family: var(--display); }
.hf-pills span { border-radius: 0; font-weight: 600; }
.hf-more { color: var(--navy); letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; }
.sw-combo { border-radius: 0; background: var(--navy) !important; color: #fff; border: 0 !important; box-shadow: 0 30px 60px -28px rgba(27,43,82,.6); }
.sw-combo h3 { color: #fff; font-family: var(--display); }
.sw-combo p { color: #d6dcea; }
.sw-combo .btn-enroll { background: var(--gold); color: #fff; }
.sw-combo:hover .btn-enroll { background: #9b7a46; }
#path { border-radius: 0; }
.why, .sw-enroll, .founder-card, .faq details, .sw-form, .sw-who span { border-radius: 0 !important; }
.sw-enroll { border-top: 4px solid var(--gold) !important; }
.founder-card { border-left: 4px solid var(--gold) !important; }
.monogram span, .fp-mono { font-family: var(--display); }

/* Closing banner */
.cta-band { background: linear-gradient(120deg, #14213f, var(--navy) 60%, #263a6b) !important; color: #fff; border: 0 !important; border-radius: 0 !important; }
.cta-band h2 { color: #fff !important; font-family: var(--display); }
.cta-band p { color: #d6dcea !important; }
.cta-band .btn-cta-light { background: var(--gold); color: #fff; }
.cta-band .btn-cta-light:hover { background: #9b7a46; color: #fff; }
.cta-band .btn-cta-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.cta-band .btn-cta-outline:hover { background: rgba(255,255,255,.1); }

/* Footer */
.site-footer { background: #14213f; border-top: 4px solid var(--gold); padding: 64px 0 26px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { font-family: var(--display); font-size: 1.15rem; color: #fff !important; margin: 0 0 18px; padding-bottom: 10px; position: relative; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--gold); }
.site-footer .footer-cols a, .site-footer .footer-cols span, .site-footer p { color: #c3cbe0 !important; }
.site-footer .footer-cols a { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; transition: color .2s; }
.site-footer .footer-cols a:hover { color: #d9bf8f !important; }
.site-footer .footer-cols a svg { width: 16px; height: 16px; flex: none; color: #d9bf8f; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-brand .brand-mark { width: 46px; height: 46px; border-radius: 0; background: none; box-shadow: none; display: grid; place-items: center; border: 1.5px solid #d9bf8f; font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: #fff; }
.footer-brand b { display: block; font-family: var(--display); font-size: 1.35rem; color: #fff; line-height: 1.1; }
.footer-brand small { display: block !important; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: #d9bf8f !important; margin: 4px 0 0 !important; }
.footer-about p { line-height: 1.7; max-width: 30rem; }
.site-footer .footer-about .footer-cta { color: #d9bf8f !important; font-weight: 700; }
.footer-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12) !important; color: #8f9ab8 !important; font-size: .82rem; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; gap: 28px; } }

/* Floating WhatsApp + call */
.wa-bubble, .call-bubble { position: fixed; right: 24px; z-index: 45; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.22); transition: transform .2s; }
.wa-bubble { bottom: 24px; width: 62px; height: 62px; background: #25d366; }
.wa-bubble svg { width: 32px; height: 32px; }
.call-bubble { bottom: 100px; width: 50px; height: 50px; background: var(--navy); }
.call-bubble svg { width: 22px; height: 22px; }
.wa-bubble:hover, .call-bubble:hover { transform: scale(1.08); color: #fff; }
@media (max-width: 520px) { .wa-bubble, .call-bubble { right: 16px; } }
.topbar-inner > .topbar-links { display: inline-flex; }
@media (max-width: 480px) {
  .nav { gap: 10px; }
  .site-header .brand { gap: 10px; min-width: 0; }
  .site-header .brand-mark { width: 36px; height: 36px; font-size: 1.15rem; flex: none; }
  .site-header .brand-name { font-size: .98rem; white-space: nowrap; }
  .site-header .brand small { font-size: .5rem; letter-spacing: .14em; }
  .site-header .icon-btn { flex: none; }
}

/* =====================================================================
   Hi-fi v3 (KVA Spark): colourful — sunrise gradients over the v2 layout
   ===================================================================== */
:root {
  --navy: #1a1d5e; --navy-2: #2a2f8a;
  --c-orange: #ff7a18; --c-pink: #ff3d7f; --c-violet: #7b3fe4; --c-sky: #0ea5e9; --c-green: #10b981; --c-yellow: #ffc23d; --c-teal: #14b8a6;
  --grad-sun: linear-gradient(100deg, #ff7a18 0%, #ff3d7f 55%, #7b3fe4 100%);
  --grad-sky: linear-gradient(120deg, #0ea5e9 0%, #7b3fe4 100%);
  --gold: #ff7a18; --gold-ink: #e8590c; --gold-soft: #fff3e8;
  --text: #1a1d5e; --muted: #535a8c; --border: #e7e8f5; --card-line: #e7e8f5;
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
}
body { background: #fff; }
h1, h2, h3, .hf-head h2, .section-head h2, .hf-course h3, .site-header .brand-name, .hx-hero h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; }
::selection { background: rgba(255,61,127,.2); }
:focus-visible { outline-color: rgba(123,63,228,.6); }

/* Top bar, header */
.topbar { background: var(--grad-sun); }
.topbar a svg, .topbar a:hover { color: #fff; }
.topbar-install { border-color: rgba(255,255,255,.7); border-radius: 999px; }
.site-header .brand-mark { background: var(--grad-sun); border: 0; box-shadow: 0 8px 20px -6px rgba(255,61,127,.55); color: #fff; border-radius: 14px; }
.site-header .brand-name span { background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.site-header .brand small { color: var(--c-pink); }
.site-header .nav-links > li > a::after, .menu-toggle::after { background: var(--grad-sun); height: 3px; border-radius: 3px; }
.site-header .nav-links a:hover, .menu-toggle:hover { color: var(--c-pink); }
.dropdown { border-top-color: var(--c-pink); border-radius: 12px; }
.nav-phone svg { color: var(--c-pink); }
.badge.free { background: var(--grad-sun); border-radius: 999px; padding: 2px 7px; margin-left: 4px; }

/* Buttons: rounded, gradient */
.btn-primary, .btn-enroll, .btn-square, .hf-btn, .hx-btn, .pill-yellow { background: var(--grad-sun); color: #fff !important; border-radius: 999px; box-shadow: 0 12px 26px -10px rgba(255,61,127,.6); border: 0; }
.btn-primary:hover, .btn-enroll:hover, .btn-square:hover, .hf-btn:hover, .hx-btn:hover { background: var(--grad-sun); filter: brightness(1.08) saturate(1.1); transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(255,61,127,.7); }
.btn-ghost, .hf-btn-outline, .hx-btn-ghost, .btn-cta-outline { border-radius: 999px; border-color: var(--c-violet); color: var(--c-violet); }
.hx-btn-ghost:hover, .btn-ghost:hover { background: var(--c-violet); color: #fff; border-color: var(--c-violet); }

/* Eyebrows */
.hf-eyebrow, .eyebrow, .hx-label, #path .hf-eyebrow, .hf-calc .hf-eyebrow { background: var(--grad-sun); color: #fff; border-radius: 999px; padding: 8px 18px; box-shadow: 0 8px 18px -8px rgba(255,61,127,.6); }
.hot-badge { background: var(--grad-sun); border-radius: 999px; animation: pulse 2.4s ease-in-out infinite; }

/* Hero: colour wash over the photo */
.hx-hero::before { background:
  radial-gradient(600px 400px at 8% 18%, rgba(255,194,61,.28), transparent 70%),
  radial-gradient(520px 380px at 40% 95%, rgba(255,61,127,.16), transparent 70%),
  linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 40%, rgba(255,255,255,.35) 66%, rgba(123,63,228,.12) 100%); }
.hx-hero h1 { color: var(--navy); }
.hx-hero h1 em { background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-sub { color: #464d80; }

/* Stats: coloured tiles */
.hx-stats { background: transparent; box-shadow: none; border: 0; gap: 16px; }
.hx-stats div { border: 0 !important; border-radius: 22px; color: #fff; box-shadow: 0 24px 40px -22px rgba(26,29,94,.55); }
.hx-stats div:nth-child(1) { background: linear-gradient(135deg, #ff7a18, #ff3d7f); }
.hx-stats div:nth-child(2) { background: linear-gradient(135deg, #7b3fe4, #a855f7); }
.hx-stats div:nth-child(3) { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.hx-stats div:nth-child(4) { background: linear-gradient(135deg, #10b981, #14b8a6); }
.hx-stats b { color: #fff; }
.hx-stats span { color: rgba(255,255,255,.92); }
.hx-calc-pill { display: flex; width: fit-content; max-width: 100%; margin: 22px auto 0; align-items: center; gap: 10px; padding: 10px 20px 10px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--navy); font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -14px rgba(26,29,94,.4); transition: transform .2s; }
.hx-calc-pill span { background: var(--grad-sun); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: .74rem; letter-spacing: .08em; flex: none; }
.hx-calc-pill:hover { transform: translateY(-2px); color: var(--c-pink); }

/* Course cards: one colour per software */
.hf-courses { background: linear-gradient(180deg, #fff 0%, #fbf7ff 100%); }
.hf-course.hf-course { --cc: #0ea5e9; border-radius: 24px; border: 1px solid var(--border); background: #fff; }
.hf-course.hf-red { --cc: #ef4444; } .hf-course.hf-green { --cc: #10b981; } .hf-course.hf-orange { --cc: #ff7a18; }
.hf-course.hf-purple { --cc: #7b3fe4; } .hf-course.hf-teal { --cc: #14b8a6; }
.hf-course.hf-course::before { height: 5px; background: var(--cc); transform: scaleX(1); border-radius: 24px 24px 0 0; }
.hf-course.hf-course:hover { border-color: var(--cc) !important; box-shadow: 0 30px 50px -26px color-mix(in srgb, var(--cc) 70%, transparent); }
.hf-course-no { color: var(--cc) !important; font-weight: 800; }
.hf-pills span { border-radius: 999px; background: color-mix(in srgb, var(--cc) 10%, #fff); color: color-mix(in srgb, var(--cc) 70%, #1a1d5e); border-color: transparent; }
.hf-more { color: var(--cc); }
.hf-course .hf-icon { background: var(--cc); color: #fff; border-radius: 14px; }
.sw-strip { border-radius: 20px; }
.sw-combo { border-radius: 28px; background: linear-gradient(120deg, #1a1d5e 0%, #4c1d95 55%, #be185d 100%) !important; }
.sw-combo .btn-enroll { background: #fff; color: var(--c-pink) !important; box-shadow: none; }
.sw-combo:hover .btn-enroll { background: #fff; filter: none; }

/* Learning path */
#path { background: linear-gradient(140deg, #1a1d5e 0%, #3b1a7a 60%, #7a1d5c 100%); }
#path .hf-steps span { border-radius: 14px; }
#path .hf-steps li:nth-child(1) span { background: #ff7a18; } #path .hf-steps li:nth-child(2) span { background: #ff3d7f; }
#path .hf-steps li:nth-child(3) span { background: #a855f7; } #path .hf-steps li:nth-child(4) span { background: #0ea5e9; }
.hf-steps li:last-child { border-top-color: var(--c-sky); }

/* What you get, who, enroll, founder, FAQ */
.pro-section.alt { background: linear-gradient(180deg, #fff8f1 0%, #fdf2ff 100%); }
.why, .sw-enroll, .founder-card, .faq details, .sw-form { border-radius: 22px !important; }
.why .icon-tile { border-radius: 14px; }
.why:nth-child(6n+1) .icon-tile { background: linear-gradient(135deg, #ff7a18, #ff3d7f); }
.why:nth-child(6n+2) .icon-tile { background: linear-gradient(135deg, #7b3fe4, #a855f7); }
.why:nth-child(6n+3) .icon-tile { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.why:nth-child(6n+4) .icon-tile { background: linear-gradient(135deg, #10b981, #14b8a6); }
.why:nth-child(6n+5) .icon-tile { background: linear-gradient(135deg, #ffc23d, #ff7a18); }
.why:nth-child(6n+6) .icon-tile { background: linear-gradient(135deg, #ff3d7f, #7b3fe4); }
.why:hover { border-color: var(--c-pink) !important; box-shadow: 0 24px 44px -20px rgba(255,61,127,.35); }
.sw-who span { border-radius: 999px !important; }
.sw-who span:nth-child(3n+1):hover { background: #fff1e6; border-color: #ff7a18; }
.sw-who span:nth-child(3n+2):hover { background: #f4ecff; border-color: #7b3fe4; }
.sw-who span:nth-child(3n+3):hover { background: #e6f7fe; border-color: #0ea5e9; }
.sw-enroll { border-top: 0 !important; box-shadow: 0 30px 60px -34px rgba(123,63,228,.45); position: relative; overflow: hidden; }
.sw-enroll::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--grad-sun); }
.founder-card { border-left: 0 !important; box-shadow: 0 30px 60px -34px rgba(255,61,127,.4); }
.role-pill { background: var(--grad-sun); border-radius: 999px; }
.tick-list li::before { background: var(--c-green); }
.faq details[open] { border-color: var(--c-violet) !important; }
.faq details[open] summary::after { background: var(--c-violet); }
.sw-form input:focus, .sw-form select:focus, .sw-form textarea:focus { border-color: var(--c-violet); box-shadow: 0 0 0 4px rgba(123,63,228,.16); }
.cta-band { background: var(--grad-sun) !important; border-radius: 28px !important; }
.cta-band p { color: rgba(255,255,255,.92) !important; }
.cta-band .btn-cta-light { background: #fff; color: var(--c-pink); border-radius: 999px; }
.cta-band .btn-cta-light:hover { background: #fff; color: var(--c-violet); }
.cta-band .btn-cta-outline { border-color: #fff; color: #fff; }

/* Footer */
.site-footer { background: #12143f; border-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--grad-sun); }
.site-footer h4::after { background: var(--grad-sun); width: 40px; height: 3px; border-radius: 3px; }
.site-footer .footer-cols a svg, .site-footer .footer-about .footer-cta, .site-footer .footer-cols a:hover, .footer-brand small { color: #ffb38a !important; }
.footer-brand .brand-mark { background: var(--grad-sun); border: 0; border-radius: 12px; }
.call-bubble { background: var(--grad-sky); }

/* Course pages */
main[style*="--c"] .page-hero { background: linear-gradient(120deg, #fff6ee 0%, #fbefff 100%); border-bottom: 4px solid #ff3d7f; }
.page-hero .tag, .page-hero .tag.ongrid, .page-hero .tag.offgrid, .page-hero .tag.hybrid { background: var(--grad-sun); border-radius: 999px; }
main[style*="--c"] .results { background: #fff3e8; }

/* ----- Free solar calculator ----- */
.sc-wrap { padding: 96px 0; background:
  radial-gradient(700px 400px at 0% 0%, rgba(255,194,61,.22), transparent 70%),
  radial-gradient(700px 420px at 100% 100%, rgba(14,165,233,.18), transparent 70%),
  linear-gradient(180deg, #fffaf4 0%, #f7f3ff 100%); }
.sc-head { text-align: center; max-width: 720px; margin: 0 auto 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sc-head h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--navy); }
.sc-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.sc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: stretch; }
.sc-inputs, .sc-results { min-width: 0; border-radius: 28px; padding: clamp(22px, 3.5vw, 36px); }
.sc-inputs { background: #fff; border: 1px solid var(--border); box-shadow: 0 30px 60px -38px rgba(26,29,94,.4); display: flex; flex-direction: column; gap: 20px; }
.sc-results { background: linear-gradient(150deg, #1a1d5e 0%, #3b1a7a 55%, #7a1d5c 100%); color: #fff; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 60px -30px rgba(59,26,122,.6); }
.sc-field { display: flex; flex-direction: column; gap: 8px; font-weight: 700; color: var(--navy); font-size: .95rem; margin: 0; }
.sc-field > span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sc-field output { font-size: 1.5rem; font-weight: 800; background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-field input[type=number], .sc-field select { width: 100%; font: inherit; font-weight: 600; color: var(--navy); padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 14px; background: #fbfbff; }
.sc-field input[type=number]:focus, .sc-field select:focus { outline: none; border-color: var(--c-violet); box-shadow: 0 0 0 4px rgba(123,63,228,.15); }
.sc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sc input[type=range] { --p: 10%; -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #ff7a18, #ff3d7f var(--p), #ececf7 var(--p)); cursor: pointer; margin: 8px 0; }
.sc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 6px solid #ff3d7f; box-shadow: 0 6px 14px rgba(255,61,127,.45); }
.sc input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 6px solid #ff3d7f; box-shadow: 0 6px 14px rgba(255,61,127,.45); }
.sc-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #f3f2fb; padding: 6px; border-radius: 16px; }
.sc-seg label { position: relative; cursor: pointer; }
.sc-seg input { position: absolute; opacity: 0; inset: 0; }
.sc-seg b { display: block; text-align: center; padding: 10px; border-radius: 12px; font-size: .92rem; color: var(--muted); transition: background .2s, color .2s; }
.sc-seg input:checked + b { background: var(--grad-sun); color: #fff; box-shadow: 0 8px 18px -8px rgba(255,61,127,.6); }
.sc-seg input:focus-visible + b { outline: 2px solid var(--c-violet); outline-offset: 2px; }
.sc-note { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--muted); background: #fff7ec; border-radius: 14px; padding: 12px 14px; }
.sc-hero-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 18px 22px; display: flex; flex-direction: column; gap: 2px; }
.sc-hero-card small { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: #ffcfa8; }
.sc-hero-card b { font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1.1; font-weight: 800; background: linear-gradient(90deg, #ffc23d, #ff7a18, #ff7aa8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-hero-card > span { color: #dcd8ff; font-size: .95rem; }
.sc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sc-tile { border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sc-tile small { font-size: .76rem; font-weight: 600; opacity: .92; line-height: 1.3; }
.sc-tile b { font-size: 1.35rem; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.sc-tile em { font-style: normal; font-size: .74rem; opacity: .9; }
.t-green { background: linear-gradient(135deg, #10b981, #059669); }
.t-sky { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.t-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.t-orange { background: linear-gradient(135deg, #ff9f1c, #ff6a00); }
.t-pink { background: linear-gradient(135deg, #ff5c9a, #e11d74); }
.t-teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.sc-meter-top { display: flex; justify-content: space-between; font-size: .9rem; color: #dcd8ff; margin-bottom: 8px; }
.sc-meter-top b { color: #fff; }
.sc-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.sc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffc23d, #ff7a18, #ff3d7f); transition: width .4s ease; }
.sc-cta { margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 16px 22px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 800; text-decoration: none; text-align: center; box-shadow: 0 14px 28px -12px rgba(37,211,102,.7); transition: transform .2s, filter .2s; }
.sc-cta:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.05); }
@media (max-width: 900px) { .sc { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .hx-stats div:nth-child(-n+2) { border-bottom: 0; } }
@media (max-width: 560px) {
  .sc-wrap { padding: 64px 0; }
  .sc-grid { grid-template-columns: 1fr 1fr; }
  .sc-tile b { font-size: 1.2rem; }
  .sc-row { grid-template-columns: 1fr; }
  .hx-stats { gap: 10px; }
}

/* =====================================================================
   v4 (KVA Spark): blue & green — recolours the v3 layout
   ===================================================================== */
:root {
  --navy: #0b2a4a; --navy-2: #134e7a;
  --c-orange: #16a34a; --c-pink: #0284c7; --c-violet: #2563eb; --c-sky: #0ea5e9; --c-green: #10b981; --c-yellow: #84cc16; --c-teal: #14b8a6;
  --grad-sun: linear-gradient(100deg, #2563eb 0%, #0ea5e9 50%, #10b981 100%);
  --grad-sky: linear-gradient(120deg, #0ea5e9 0%, #10b981 100%);
  --gold: #10b981; --gold-ink: #059669; --gold-soft: #ecfdf5;
  --text: #0b2a4a; --muted: #4a6378; --border: #e1ecf2; --card-line: #e1ecf2;
}
::selection { background: rgba(14,165,233,.2); }
:focus-visible { outline-color: rgba(37,99,235,.6); }
.site-header .brand-mark { box-shadow: 0 8px 20px -6px rgba(14,165,233,.55); }
.site-header .brand small { color: var(--gold-ink); }
.btn-primary, .btn-enroll, .btn-square, .hf-btn, .hx-btn, .pill-yellow { box-shadow: 0 12px 26px -10px rgba(14,165,233,.6); }
.btn-primary:hover, .btn-enroll:hover, .btn-square:hover, .hf-btn:hover, .hx-btn:hover { box-shadow: 0 18px 32px -12px rgba(14,165,233,.7); }
.hf-eyebrow, .eyebrow, .hx-label, #path .hf-eyebrow, .hf-calc .hf-eyebrow { box-shadow: 0 8px 18px -8px rgba(14,165,233,.6); }

/* Hero */
.hx-hero::before { background:
  radial-gradient(600px 400px at 8% 18%, rgba(16,185,129,.22), transparent 70%),
  radial-gradient(520px 380px at 40% 95%, rgba(14,165,233,.18), transparent 70%),
  linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 40%, rgba(255,255,255,.35) 66%, rgba(37,99,235,.12) 100%); }
.hx-sub { color: #3d5670; }

/* Stats tiles */
.hx-stats div { box-shadow: 0 24px 40px -22px rgba(11,42,74,.55); }
.hx-stats div:nth-child(1) { background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.hx-stats div:nth-child(2) { background: linear-gradient(135deg, #059669, #10b981); }
.hx-stats div:nth-child(3) { background: linear-gradient(135deg, #0284c7, #14b8a6); }
.hx-stats div:nth-child(4) { background: linear-gradient(135deg, #16a34a, #84cc16); }

/* Course cards */
.hf-courses { background: linear-gradient(180deg, #fff 0%, #f0f9ff 100%); }
.hf-course.hf-red { --cc: #2563eb; } .hf-course.hf-orange { --cc: #0891b2; } .hf-course.hf-purple { --cc: #1d4ed8; }
.hf-course.hf-green { --cc: #10b981; } .hf-course.hf-teal { --cc: #14b8a6; }
.hf-pills span { color: color-mix(in srgb, var(--cc) 70%, #0b2a4a); }
.sw-combo { background: linear-gradient(120deg, #0b2a4a 0%, #1d4ed8 55%, #059669 100%) !important; }

/* Learning path */
#path { background: linear-gradient(140deg, #0b2a4a 0%, #134e7a 55%, #065f46 100%); }
#path .hf-steps li:nth-child(1) span { background: #2563eb; } #path .hf-steps li:nth-child(2) span { background: #0ea5e9; }
#path .hf-steps li:nth-child(3) span { background: #14b8a6; } #path .hf-steps li:nth-child(4) span { background: #10b981; }

/* Sections */
.pro-section.alt { background: linear-gradient(180deg, #f0f9ff 0%, #ecfdf5 100%); }
.why:nth-child(6n+1) .icon-tile { background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.why:nth-child(6n+2) .icon-tile { background: linear-gradient(135deg, #059669, #10b981); }
.why:nth-child(6n+3) .icon-tile { background: linear-gradient(135deg, #0284c7, #14b8a6); }
.why:nth-child(6n+4) .icon-tile { background: linear-gradient(135deg, #16a34a, #84cc16); }
.why:nth-child(6n+5) .icon-tile { background: linear-gradient(135deg, #1d4ed8, #6366f1); }
.why:nth-child(6n+6) .icon-tile { background: linear-gradient(135deg, #0ea5e9, #10b981); }
.why:hover { box-shadow: 0 24px 44px -20px rgba(14,165,233,.35); }
.sw-who span:nth-child(3n+1):hover { background: #eff6ff; border-color: #2563eb; }
.sw-who span:nth-child(3n+2):hover { background: #ecfdf5; border-color: #10b981; }
.sw-who span:nth-child(3n+3):hover { background: #ecfeff; border-color: #0891b2; }
.sw-enroll { box-shadow: 0 30px 60px -34px rgba(37,99,235,.45); }
.founder-card { box-shadow: 0 30px 60px -34px rgba(16,185,129,.4); }
.sw-form input:focus, .sw-form select:focus, .sw-form textarea:focus { box-shadow: 0 0 0 4px rgba(37,99,235,.16); }

/* Footer */
.site-footer { background: #0a2236; }
.site-footer .footer-cols a svg, .site-footer .footer-about .footer-cta, .site-footer .footer-cols a:hover, .footer-brand small { color: #6ee7b7 !important; }

/* Course pages */
main[style*="--c"] .page-hero { background: linear-gradient(120deg, #eff6ff 0%, #ecfdf5 100%); border-bottom-color: #0ea5e9; }
main[style*="--c"] .results { background: #ecfdf5; }

/* Solar calculator */
.sc-wrap { background:
  radial-gradient(700px 400px at 0% 0%, rgba(16,185,129,.18), transparent 70%),
  radial-gradient(700px 420px at 100% 100%, rgba(14,165,233,.18), transparent 70%),
  linear-gradient(180deg, #f3fbff 0%, #f0fdf7 100%); }
.sc-inputs { box-shadow: 0 30px 60px -38px rgba(11,42,74,.4); }
.sc-results { background: linear-gradient(150deg, #0b2a4a 0%, #134e7a 55%, #065f46 100%); box-shadow: 0 30px 60px -30px rgba(19,78,122,.6); }
.sc-field input[type=number], .sc-field select { background: #f8fbfd; }
.sc-field input[type=number]:focus, .sc-field select:focus { box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.sc input[type=range] { background: linear-gradient(90deg, #2563eb, #10b981 var(--p), #e6eef3 var(--p)); }
.sc input[type=range]::-webkit-slider-thumb { border-color: #0ea5e9; box-shadow: 0 6px 14px rgba(14,165,233,.45); }
.sc input[type=range]::-moz-range-thumb { border-color: #0ea5e9; box-shadow: 0 6px 14px rgba(14,165,233,.45); }
.sc-seg { background: #eef5f9; }
.sc-seg input:checked + b { box-shadow: 0 8px 18px -8px rgba(14,165,233,.6); }
.sc-note { background: #ecfdf5; }
.sc-hero-card small { color: #a7f3d0; }
.sc-hero-card b { background: linear-gradient(90deg, #6ee7b7, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-hero-card > span, .sc-meter-top { color: #cfe6f5; }
.sc-bar i { background: linear-gradient(90deg, #38bdf8, #10b981, #84cc16); }
.t-violet { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.t-orange { background: linear-gradient(135deg, #84cc16, #16a34a); }
.t-pink { background: linear-gradient(135deg, #22d3ee, #0891b2); }

/* ----- Basic Electrical: home band + study page ----- */
.be-band { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin: 0 0 28px; padding: 26px 28px; border-radius: 24px; background: linear-gradient(120deg, #eff6ff 0%, #ecfdf5 100%); border: 1px solid #cfe7f3; box-shadow: 0 24px 44px -30px rgba(11,42,74,.45); }
.be-band-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-sun); color: #fff; box-shadow: 0 12px 24px -10px rgba(14,165,233,.6); }
.be-band-icon svg { width: 30px; height: 30px; }
.be-band-tag { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }
.be-band h3 { margin: 0 0 6px; font-size: 1.45rem; color: var(--navy); }
.be-band p { margin: 0; color: var(--muted); }
.be-band-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.be-band-actions .btn-enroll { white-space: nowrap; text-decoration: none; }
.be-band-link { font-weight: 700; color: var(--c-violet); text-decoration: none; font-size: .92rem; }
.be-band-link:hover { color: var(--gold-ink); }
@media (max-width: 760px) {
  .be-band { grid-template-columns: 1fr; padding: 22px; text-align: left; }
  .be-band-actions { align-items: flex-start; }
}
.be-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
#calc-electrical select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); }
@media print {
  #site-header, #site-footer, .wa-bubble, .call-bubble, .topbar, .toc, .be-hero-actions, #calculator, #checklist, #quiz, .page-next { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  section { padding: 16px 0 !important; break-inside: avoid-page; }
  body { background: #fff; }
}

/* ----- Core courses row (home), catalog bits, control plot ----- */
.core-row { margin: 0 0 32px; padding: 24px; border-radius: 24px; background: linear-gradient(120deg, #eff6ff 0%, #ecfdf5 100%); border: 1px solid #cfe7f3; box-shadow: 0 24px 44px -30px rgba(11,42,74,.45); }
.core-row-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.core-row-head .be-band-tag { margin: 0; }
.core-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.core-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--border); text-decoration: none; color: var(--navy); transition: transform .2s, box-shadow .2s; min-width: 0; }
.core-card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgba(14,165,233,.55); color: var(--navy); }
.core-card .be-band-icon { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.core-card .be-band-icon svg { width: 24px; height: 24px; }
.core-card b { display: block; font-size: 1.02rem; }
.core-card small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.35; margin-top: 2px; }
.core-row-more { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.core-row-more a { color: var(--c-violet); font-weight: 600; text-decoration: none; }
.core-row-more a:hover { text-decoration: underline; }
@media (max-width: 900px) { .core-cards { grid-template-columns: 1fr; } }
.cal-link { text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
.cal-link:hover { transform: translateY(-3px); border-color: var(--c-sky); color: inherit; }
.cal-link h3 { color: var(--navy); }
.abbr { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.abbr dt { font-weight: 800; color: var(--c-violet); font-family: "JetBrains Mono", monospace; font-size: .88rem; }
.abbr dd { margin: 0; color: var(--text); }
.cs-plot { width: 100%; height: auto; margin-top: 12px; background: #f8fbfd; border: 1px solid var(--border); border-radius: 14px; }
.cs-axis { stroke: var(--muted); stroke-width: 1.2; }
.cs-ref { stroke: var(--c-green); stroke-width: 1; stroke-dasharray: 4 4; }
.cs-tick { fill: var(--muted); font-size: 10px; text-anchor: end; font-family: var(--display); }
.cs-line { fill: none; stroke: var(--c-violet); stroke-width: 2.5; stroke-linejoin: round; }
#calc-rlc select, #calc-stardelta select, #calc-control select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); }
