:root {
  /* brand vars overridden per-brand in each HTML entry file */
  --brand: #3B9B13;
  --brand-dark: #2f7d0f;
  --brand-soft: #ecf6e7;
  --ring: rgba(59, 155, 19, .22);
  --on-brand: #ffffff;

  /* corporate-clean palette, white base, light grey cards */
  --bg: #ffffff;
  --card: #f4f4f4;
  --card-on-card: #ffffff;
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --line-strong: #cfcfcf;

  --ok: #1b7f4b;  --ok-bg: #e9f5ee;  --ok-line: #bfe3cd;
  --warn: #8a5a00; --warn-bg: #fbf1dc; --warn-line: #efd49a;
  --bad: #b3261e; --bad-bg: #fbe9e7; --bad-line: #f0c4bf;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 15px;
}

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .inner {
  max-width: 1180px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; gap: 28px;
}
.site-header img.logo { height: 42px; width: auto; display: block; }
.site-header .titles { flex: 1; }
.site-header h1 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.site-header p { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .85rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: var(--brand-dark); }
.site-header nav a.active { color: var(--ink); border-bottom-color: var(--brand); }

/* ---------- layout ---------- */
.wrap {
  max-width: 1180px; margin: 0 auto; padding: 32px 28px 64px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start;
}
@media (max-width: 900px) { .wrap { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 26px;
}
.card > h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 0 0 20px;
  display: flex; align-items: center; gap: 10px; letter-spacing: -.01em;
}
.card > h2 .fa-solid { color: var(--brand); font-size: .85em; }

#result-card { position: sticky; top: 20px; }

/* ---------- form ---------- */
fieldset { border: none; padding: 0; margin: 0 0 22px; }
fieldset:last-of-type { margin-bottom: 0; }
legend {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink); font-weight: 800; width: 100%;
  padding-bottom: 8px; margin-bottom: 14px;
  border-bottom: 2px solid var(--brand);
  display: flex; align-items: center; gap: 8px;
}
legend .fa-solid { color: var(--brand); }

/* ---------- callout note (conditional inline) ---------- */
.callout-note {
  display: none; gap: 10px; align-items: flex-start;
  background: #fff8e1; border: 1px solid #f0d99a; border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm); padding: 11px 13px; margin-bottom: 14px;
  font-size: .82rem; color: #5a3f00; line-height: 1.45;
}
.callout-note.show { display: flex; }
.callout-note .fa-solid { color: var(--warn); margin-top: 2px; flex-shrink: 0; }
.callout-note strong { color: var(--ink); }

/* ---------- info box (section help banner) ---------- */
.info-box {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 16px;
  font-size: .8rem; color: var(--ink-soft); line-height: 1.45;
}
.info-box .fa-solid { color: var(--brand-dark); margin-top: 2px; flex-shrink: 0; }
.info-box strong { color: var(--ink); }

.field { margin-bottom: 14px; }
.field.hidden { display: none; }
label {
  display: flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700; margin-bottom: 5px; color: var(--ink);
}
.hint { font-size: .73rem; color: var(--muted); font-weight: 400; margin-top: 4px; }

input, select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: .9rem; font-family: inherit; background: #fff; color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b6b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
input:focus, select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring);
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
input[aria-invalid="true"]:focus, select[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, .18); }

input:disabled, select:disabled, input[type="range"]:disabled {
  background: #ededed; color: #999; cursor: not-allowed; opacity: 1;
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.field.is-disabled label,
.field.is-disabled .hint { opacity: .55; }
.field.is-disabled .tip { background: #ededed; color: #999; }
.field.is-disabled .seg-toggle,
.field.is-disabled .slider-row { opacity: .6; pointer-events: none; }

/* ---------- tooltips ---------- */
.tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--line); color: var(--ink-soft);
  font-size: .65rem; font-weight: 700; cursor: help; position: relative;
}
.tip:hover, .tip:focus-visible { background: var(--brand-soft); color: var(--brand-dark); outline: none; }
.tip::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  background: #1a1a1a; color: #fff; padding: 8px 10px;
  border-radius: 6px; font-size: .72rem; font-weight: 400; line-height: 1.4;
  width: max-content; max-width: 260px; text-align: left;
  opacity: 0; pointer-events: none; transition: opacity .12s;
  z-index: 50; white-space: normal;
}
.tip::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #1a1a1a;
  opacity: 0; transition: opacity .12s;
}
.tip:hover::after, .tip:hover::before,
.tip:focus-visible::after, .tip:focus-visible::before { opacity: 1; }

/* ---------- segmented toggle (used for age-mode AND 2-option fields) ---------- */
.seg-toggle {
  display: inline-flex; background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 3px; gap: 3px; width: fit-content;
}
.seg-toggle.full { display: flex; width: 100%; }
.seg-toggle.full label { flex: 1; text-align: center; }
.seg-toggle label {
  margin: 0; cursor: pointer; padding: 0; font-size: .8rem; font-weight: 600;
  border-radius: 4px; color: var(--muted); user-select: none;
  display: inline-block;
}
.seg-toggle input { display: none; }
.seg-toggle label span {
  display: block; padding: 7px 14px; border-radius: 4px;
  color: var(--muted);
}
.seg-toggle input:checked + span { background: var(--brand); color: #fff; }

/* ---------- slider + number ---------- */
.slider-row {
  display: grid; grid-template-columns: 1fr 88px auto; gap: 12px; align-items: center;
}
.slider-row .unit { font-size: .78rem; color: var(--muted); font-weight: 600; }
.slider-row input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; padding: 0;
  background: var(--line); border: none; border-radius: 4px; cursor: pointer;
  box-shadow: none;
}
.slider-row input[type="range"]:focus { box-shadow: none; outline: 2px solid var(--brand); outline-offset: 4px; }
.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); cursor: pointer;
}
.slider-row input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); cursor: pointer;
}
.slider-row input[type="number"] { padding: 8px 10px; text-align: center; font-weight: 600; }

/* ---------- inline messages ---------- */
.field-error, .field-warning {
  display: none; font-size: .73rem; font-weight: 600; margin-top: 6px;
}
.field-error.show, .field-warning.show { display: block; }
.field-error { color: var(--bad); }
.field-warning { color: var(--warn); }
.field-error .fa-solid, .field-warning .fa-solid { margin-right: 4px; font-size: .85em; }

/* ---------- submit button ---------- */
button.submit {
  width: 100%; padding: 13px;
  background: var(--brand); color: var(--on-brand);
  border: none; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 700; font-family: inherit; cursor: pointer;
  margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: background .12s, transform .04s;
}
button.submit:hover { background: var(--brand-dark); }
button.submit:active { transform: translateY(1px); }

/* ---------- result ---------- */
.verdict {
  border-radius: var(--radius-sm); padding: 16px 18px;
  font-weight: 700; margin-bottom: 18px;
  border: 1px solid transparent; background: #fff;
  display: flex; align-items: center; gap: 12px;
}
.verdict .ico { font-size: 1.4rem; }
.verdict .txt { font-size: 1rem; }
.verdict .sub { font-size: .78rem; font-weight: 500; opacity: .85; margin-top: 1px; }
.verdict.ok   { background: #fff; color: var(--ok);   border-color: var(--ok-line); }
.verdict.bad  { background: #fff; color: var(--bad);  border-color: var(--bad-line); }
.verdict.idle { background: #fff; color: var(--muted); border-color: var(--line); font-weight: 500; }

.block { margin-bottom: 18px; }
.block:last-child { margin-bottom: 0; }
.block h3 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 9px; color: var(--ink); font-weight: 800;
}
ul.list { list-style: none; padding: 0; margin: 0; }
ul.list li {
  background: #fff; border: 1px solid var(--line);
  padding: 10px 12px 10px 36px; border-radius: var(--radius-sm);
  margin-bottom: 7px; font-size: .84rem; position: relative; color: var(--ink-soft);
}
ul.list li:last-child { margin-bottom: 0; }
li.fail { border-left: 3px solid var(--bad); }
li.cond { border-left: 3px solid var(--warn); }
li.pass { border-left: 3px solid var(--ok); }
li .fa-solid { position: absolute; left: 12px; top: 12px; font-size: .85rem; }
li.fail .fa-solid { color: var(--bad); }
li.cond .fa-solid { color: var(--warn); }
li.pass .fa-solid { color: var(--ok); }

table.struct { width: 100%; border-collapse: collapse; font-size: .85rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
table.struct td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.struct tr:last-child td { border-bottom: none; }
table.struct td:first-child { color: var(--muted); width: 46%; font-weight: 500; }
table.struct td:last-child { font-weight: 700; color: var(--ink); }

.disclaimer {
  font-size: .72rem; color: var(--muted);
  margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px;
}
.brand-switch { font-size: .8rem; color: var(--muted); }
.brand-switch a { color: var(--brand-dark); text-decoration: none; font-weight: 700; }
.brand-switch a:hover { text-decoration: underline; }

.oo-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--brand-soft, #ecf6e7);
  border: 1px solid var(--brand, #3B9B13);
  border-left: 4px solid var(--brand, #3B9B13);
  color: var(--brand-dark, #2f7d0f);
  padding: 12px 14px; border-radius: var(--radius-sm, 8px);
  font-size: .88rem; margin-bottom: 12px;
  font-weight: 600;
}
.oo-banner strong { color: var(--brand-dark, #2f7d0f); font-weight: 800; }
.oo-banner .fa-solid { font-size: 1.05rem; }

.oo-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand, #3B9B13); color: #fff;
  padding: 3px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; margin-left: 8px; vertical-align: middle;
}

ul.pricing-list { list-style: none; margin: 0; padding: 0; }
ul.pricing-list li {
  position: relative; padding: 2px 0 2px 16px; font-weight: 600; color: var(--ink);
}
ul.pricing-list li::before {
  content: "•"; position: absolute; left: 0; color: var(--brand);
}
ul.pricing-list li + li { margin-top: 2px; }
.muted { color: var(--muted); font-weight: 500; }
.muted.small, p.muted.small { font-size: .78rem; margin-top: 8px; }

/* ---------- explainer page layout (single-column, reading-focused) ---------- */
.explainer-wrap {
  max-width: 960px; margin: 0 auto; padding: 32px 28px 64px;
  display: block;
}
.explainer-wrap .card { margin-bottom: 22px; padding: 26px 30px; }
.explainer-wrap .card:last-of-type { margin-bottom: 0; }
.explainer-wrap .card > h2 { font-size: 1.35rem; margin-bottom: 14px; }
.explainer-wrap .card > h3 { font-size: 1rem; margin: 22px 0 10px; color: var(--ink); font-weight: 800; }
.explainer-wrap .card p { margin: 0 0 12px; font-size: .95rem; color: var(--ink-soft); line-height: 1.6; }
.explainer-wrap .card p:last-child { margin-bottom: 0; }
.explainer-wrap .card ul { margin: 6px 0 14px; padding-left: 22px; font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }
.explainer-wrap .card ul li { margin-bottom: 6px; }

.card.intro {
  background: var(--brand-soft);
  border-color: var(--brand);
  border-left: 4px solid var(--brand);
}
.card.intro h2 { color: var(--brand-dark); }
.card.intro p.lead {
  font-size: 1.02rem; color: var(--ink); line-height: 1.6; font-weight: 500;
}

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 780px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 16px 14px;
}
.feature .icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-size: .95rem;
  margin-bottom: 10px;
}
.feature .brand-icon {
  width: 56px; height: 56px;
  display: block;
  margin-bottom: 10px;
  object-fit: contain;
}
.feature h4 { margin: 0 0 6px; font-size: .92rem; font-weight: 800; color: var(--ink); }
.feature p { margin: 0; font-size: .83rem; color: var(--muted); line-height: 1.5; }

/* Inline brand icon used next to card H2s */
.card > h2 .brand-icon-h {
  width: 32px; height: 32px; object-fit: contain; display: inline-block; vertical-align: middle;
}

table.spec { width: 100%; border-collapse: collapse; font-size: .88rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
table.spec td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec tr:last-child td { border-bottom: none; }
table.spec td:first-child { color: var(--muted); width: 40%; font-weight: 600; }
table.spec td:last-child { color: var(--ink); font-weight: 500; }

.timeline-vis {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 12px 0 6px;
}
.timeline-vis .label-row {
  display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-bottom: 6px;
}
.timeline-vis .bar { display: flex; height: 26px; border-radius: 4px; overflow: hidden; }
.timeline-vis .bar .io {
  background: var(--warn-bg); color: var(--warn); border-right: 2px solid #fff;
  display: grid; place-items: center; font-size: .74rem; font-weight: 700;
}
.timeline-vis .bar .pi {
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-size: .74rem; font-weight: 700;
}
.timeline-vis .caption { font-size: .8rem; color: var(--muted); margin-top: 8px; }

.callout-box {
  background: var(--brand-soft); border: 1px solid var(--brand);
  border-left: 4px solid var(--brand); border-radius: var(--radius-sm);
  padding: 14px 16px; margin: 12px 0; font-size: .9rem; color: var(--ink);
}
.callout-box strong { color: var(--brand-dark); }
.callout-box.warn { background: var(--warn-bg); border-color: var(--warn); }
.callout-box.warn strong { color: var(--warn); }

.audience-card {
  border-left: 4px solid var(--brand);
}
.audience-card h2 {
  color: var(--brand-dark);
}
.audience-card .aud-header {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff;
  padding: 4px 12px; border-radius: 999px;
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 12px;
}

.explainer-wrap .disclaimer {
  max-width: none; margin-top: 24px;
}

/* ---------- course / lesson chrome ---------- */
.site-header nav.lesson-nav {
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center;
}
.site-header nav.lesson-nav a {
  padding: 6px 10px; font-size: .82rem; color: var(--ink-soft);
  border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0;
}
.site-header nav.lesson-nav a:hover { color: var(--brand-dark); background: var(--brand-soft); }
.site-header nav.lesson-nav a.active {
  color: var(--brand-dark); border-bottom-color: var(--brand);
  background: transparent;
}
.site-header nav.lesson-nav .divider { color: var(--line-strong); }

.lesson-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  border-bottom: 2px solid var(--brand); padding-bottom: 14px; margin-bottom: 14px;
}
.lesson-head .num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--brand); color: #fff;
  padding: 4px 10px; border-radius: 6px; font-size: .74rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.lesson-head .time { color: var(--muted); font-size: .78rem; margin-left: auto; }
.lesson-head h1 {
  margin: 0; font-size: 1.6rem; letter-spacing: -.01em;
}

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 8px; }
@media (max-width: 780px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 14px 12px;
}
.stat-item .label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.stat-item .value { font-size: 1.4rem; font-weight: 800; color: var(--brand-dark); margin-top: 2px; line-height: 1.1; }
.stat-item .sub { font-size: .78rem; color: var(--muted); margin-top: 4px; }

.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px;
}
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } }
.pager a {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; text-decoration: none; color: var(--ink);
  display: block;
}
.pager a:hover { border-color: var(--brand); }
.pager a .dir {
  font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
.pager a .ttl { font-weight: 700; margin-top: 4px; color: var(--brand-dark); }
.pager a.next { text-align: right; }
.pager a.spacer { visibility: hidden; }

.tocard {
  display: block;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 22px; text-decoration: none; color: var(--ink);
  transition: transform .08s, border-color .1s;
}
.tocard:hover { border-color: var(--brand); transform: translateY(-1px); }
.tocard .num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--brand-dark); font-weight: 700; font-size: .7rem; letter-spacing: .08em;
  text-transform: uppercase;
}
.tocard h3 { margin: 6px 0 4px; font-size: 1.02rem; font-weight: 800; color: var(--ink); }
.tocard p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }

.lesson-index { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 4px; }
@media (max-width: 780px) { .lesson-index { grid-template-columns: 1fr; } }

/* ---------- course header: two-row layout (row1: logo+title, row2: lesson-nav) ---------- */
.site-header.course .inner {
  display: block;
  padding: 12px 28px 0;
}
.site-header.course .inner .top-row {
  display: flex; align-items: center; gap: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.site-header.course .inner .top-row img.logo {
  height: 44px; width: auto; display: block;
}
.site-header.course .inner .top-row .course-title {
  font-family: "Oswald", "Open Sans", "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -.005em;
  line-height: 1.3;
}
.site-header.course .inner nav.lesson-nav {
  padding: 4px 0 12px;
}

/* ---------- worked examples (toggleable, default ON) ---------- */
.example {
  border-left: 4px solid #7A5CA5;
  background: #F5F1FB;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  font-size: .9rem;
  color: var(--ink);
}
body.examples-off .example { display: none !important; }
.example .who {
  font-size: .68rem; font-weight: 800; color: #7A5CA5;
  letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.example .who .fa-solid { font-size: .8rem; }
.example p { margin: 4px 0; line-height: 1.55; }
.example p:last-child { margin-bottom: 0; }
.example .money {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(122,92,165,0.14); color: #5A3D8A;
  padding: 1px 6px; border-radius: 3px; font-size: .95em; font-weight: 600;
}

/* ---------- floating action button (examples toggle) ---------- */
.fab-examples {
  position: fixed; bottom: 22px; right: 22px; z-index: 100;
  background: var(--brand); color: #fff; border: none;
  padding: 14px 20px 14px 18px; border-radius: 999px;
  font-family: inherit; font-size: .85rem; font-weight: 700;
  letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  transition: background .1s, transform .1s, box-shadow .1s;
}
.fab-examples:hover  { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0,0,0,.28); }
.fab-examples:active { transform: translateY(0); }
.fab-examples.is-off { background: #6B7280; }
.fab-examples.is-off:hover { background: #4b5563; }
.fab-examples .fa-solid { font-size: 1rem; }
.fab-examples .fab-label { line-height: 1; }
.fab-examples .fab-state { font-weight: 800; opacity: .85; margin-left: 2px; }
.explainer-wrap { padding-bottom: 96px; } /* room for FAB */
@media (max-width: 640px) {
  .fab-examples { padding: 12px 16px; font-size: .78rem; bottom: 16px; right: 16px; }
}

/* ---------- source citations (internal course only) ---------- */
.src {
  display: inline-block;
  background: #EFEFE9; color: #565C67;
  padding: 1px 8px; border-radius: 999px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .01em;
  margin-left: 6px; vertical-align: 1px;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.src.src-kfs      { background: #EEF3FA; color: #2C5AA7; } /* Key Facts Sheet */
.src.src-cheat    { background: #FBEDE7; color: #94331B; } /* Broker Cheat Sheet */
.src.src-explainer{ background: #F4F9EE; color: #2F7A10; } /* Product Explainer */
.src.src-faq      { background: #FBF3E4; color: #8B5A0A; } /* FAQs */
.src.src-tmd      { background: #F0EAF6; color: #6B3F9E; } /* TMD */
.src.src-rate     { background: #E8F1EC; color: #256644; } /* Rate Card */
.src.src-price    { background: #EAEAEA; color: #333333; } /* Pricing Proposal */
.src.src-note     { background: #EFEFE9; color: #565C67; } /* Internal editorial note */

/* ---------- version tag (subtle, bottom-most on tool pages) ---------- */
.version-tag {
  text-align: center;
  color: var(--muted);
  opacity: .55;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 18px 24px 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.version-tag:hover { opacity: .85; }

/* ---------- form intro: plain paragraph at the top of the form ---------- */
.form-intro {
  padding: 0 2px 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.55;
}
.form-intro strong { color: var(--ink); font-weight: 700; }
