/* AHPC Portal training site, written by training/tools/build.py: do not edit here (edit training/tools/head.css,
   base-rest.css or extra.css). Brand: the portal's green-teal with gold, Inter text and Fraunces headings.
   Light and dark: system preference or the toggle. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter.woff2") format("woff2-variations"), url("fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/fraunces.woff2") format("woff2-variations"), url("fonts/fraunces.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --bg: #f7faf9; --bg-2: #eef5f3; --card: #ffffff; --card-2: #f6faf8; --glass: rgb(255 255 255 / .74);
  --fg: #10211e; --muted: #4f625d; --subtle: #6a7d78; --line: #dde5e2; --line-2: #cbd8d4;
  --grid-line: rgb(14 107 97 / .07);
  --primary: #0e6b61; --primary-2: #b8892e; --primary-soft: #def0ec; --primary-ink: #06332d; --on-primary: #ffffff;
  --gold: #b8892e; --gold-soft: #faf1dc;
  --ok: #047857; --ok-bright: #10b981; --ok-soft: #dcfce9; --warn: #b45309; --warn-soft: #fef3c7;
  --danger: #be123c; --danger-soft: #ffe4ea;
  --chart-1: #0e6b61; --chart-2: #b8892e; --chart-3: #1e9684; --chart-4: #9b2c2c;
  --wa-bg: #efeae2; --wa-out: #d9fdd3; --wa-in: #ffffff; --wa-head: #008069; --wa-text: #111b21; --wa-meta: #667781; --wa-tick: #53bdeb;
  --phone: #0f172a;
  --grad: linear-gradient(135deg, #06332d 0%, #0e6b61 55%, #1e9684 100%);
  --grad-text: linear-gradient(100deg, #0e6b61 0%, #1e9684 50%, #b8892e 100%);
  --grad-soft: linear-gradient(135deg, rgb(14 107 97 / .10), rgb(184 137 46 / .10));
  --aurora-1: rgb(30 150 132 / .26); --aurora-2: rgb(184 137 46 / .20); --aurora-3: rgb(14 107 97 / .12);
  --shadow-xs: 0 1px 2px rgb(15 23 42 / .05);
  --shadow: 0 1px 2px rgb(15 23 42 / .04), 0 2px 6px -2px rgb(15 23 42 / .05), 0 12px 32px -12px rgb(6 51 45 / .14);
  --shadow-lift: 0 1px 2px rgb(15 23 42 / .04), 0 8px 20px -6px rgb(6 51 45 / .14), 0 30px 60px -20px rgb(14 107 97 / .24);
  --shadow-float: 0 2px 4px rgb(15 23 42 / .04), 0 18px 36px -10px rgb(6 51 45 / .2), 0 48px 90px -30px rgb(14 107 97 / .3);
  --ring: 0 0 0 4px rgb(14 107 97 / .18);
  --radius: 18px; --radius-lg: 24px; --gutter: 16px; --max: 1320px; --header-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #07110f; --bg-2: #0a1714; --card: #0e1c19; --card-2: #11221e; --glass: rgb(14 28 25 / .7);
    --fg: #e7f1ee; --muted: #a3b8b2; --subtle: #8aa29b; --line: #1d302b; --line-2: #2a433c; --grid-line: rgb(94 234 212 / .06);
    --primary: #5fd0bd; --primary-2: #e3b65a; --primary-soft: #10302a; --primary-ink: #b8efe4; --on-primary: #04211c;
    --gold: #e3b65a; --gold-soft: #33270f;
    --ok: #34d399; --ok-bright: #34d399; --ok-soft: #0a3228; --warn: #fbbf24; --warn-soft: #3a2709; --danger: #fb7185; --danger-soft: #431220;
    --grad-text: linear-gradient(100deg, #5fd0bd 0%, #9be7d9 50%, #e3b65a 100%);
    --grad-soft: linear-gradient(135deg, rgb(95 208 189 / .14), rgb(227 182 90 / .1));
    --aurora-1: rgb(30 150 132 / .28); --aurora-2: rgb(184 137 46 / .2); --aurora-3: rgb(14 107 97 / .14);
    --shadow-xs: 0 1px 2px rgb(0 0 0 / .4);
    --shadow: 0 1px 0 rgb(255 255 255 / .03) inset, 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .6);
    --shadow-lift: 0 1px 0 rgb(255 255 255 / .04) inset, 0 24px 60px -20px rgb(0 0 0 / .7), 0 30px 64px -24px rgb(14 107 97 / .35);
    --shadow-float: 0 1px 0 rgb(255 255 255 / .05) inset, 0 30px 70px -20px rgb(0 0 0 / .8), 0 40px 90px -30px rgb(14 107 97 / .4);
    --ring: 0 0 0 4px rgb(95 208 189 / .22);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07110f; --bg-2: #0a1714; --card: #0e1c19; --card-2: #11221e; --glass: rgb(14 28 25 / .7);
  --fg: #e7f1ee; --muted: #a3b8b2; --subtle: #8aa29b; --line: #1d302b; --line-2: #2a433c; --grid-line: rgb(94 234 212 / .06);
  --primary: #5fd0bd; --primary-2: #e3b65a; --primary-soft: #10302a; --primary-ink: #b8efe4; --on-primary: #04211c;
  --gold: #e3b65a; --gold-soft: #33270f;
  --ok: #34d399; --ok-bright: #34d399; --ok-soft: #0a3228; --warn: #fbbf24; --warn-soft: #3a2709; --danger: #fb7185; --danger-soft: #431220;
  --grad-text: linear-gradient(100deg, #5fd0bd 0%, #9be7d9 50%, #e3b65a 100%);
  --grad-soft: linear-gradient(135deg, rgb(95 208 189 / .14), rgb(227 182 90 / .1));
  --aurora-1: rgb(30 150 132 / .28); --aurora-2: rgb(184 137 46 / .2); --aurora-3: rgb(14 107 97 / .14);
  --shadow-xs: 0 1px 2px rgb(0 0 0 / .4);
  --shadow: 0 1px 0 rgb(255 255 255 / .03) inset, 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .6);
  --shadow-lift: 0 1px 0 rgb(255 255 255 / .04) inset, 0 24px 60px -20px rgb(0 0 0 / .7), 0 30px 64px -24px rgb(14 107 97 / .35);
  --shadow-float: 0 1px 0 rgb(255 255 255 / .05) inset, 0 30px 70px -20px rgb(0 0 0 / .8), 0 40px 90px -30px rgb(14 107 97 / .4);
  --ring: 0 0 0 4px rgb(95 208 189 / .22);
}
/* -- base --------------------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--font);
  font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; text-rendering: optimizeLegibility;
}
/* A very faint film grain over the whole page, for depth. */
body::after { content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] body::after { opacity: .05; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -0.045em; line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -0.04em; line-height: 1.08; }
h3 { font-size: 1.1rem; letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong, b { font-weight: 600; }
ul, ol { padding-left: 1.2em; }
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--primary-2) 26%, transparent); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--card); color: var(--fg);
  padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-lift); }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }
@media (min-width: 1280px) { :root { --gutter: 32px; } }
.num, .stat b, .plan .price b, .tnum { font-variant-numeric: tabular-nums; }
/* -- header ------------------------------------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.no-js .site-header, .site-header.scrolled { border-bottom-color: var(--line); }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); box-shadow: 0 8px 24px -18px rgb(15 23 42 / .25); }
.bar { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.12rem; color: var(--fg);
  text-decoration: none; letter-spacing: -0.03em; margin-right: auto; }
.brand svg { flex: none; width: 30px; height: 30px; filter: drop-shadow(0 4px 8px rgb(67 56 202 / .3)); }
.brand span b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .92rem; padding: 7px 11px;
  border-radius: 9px; white-space: nowrap; transition: color .15s ease, background .15s ease; }
.nav a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.nav a[aria-current="page"] { color: var(--fg); background: color-mix(in srgb, var(--primary) 9%, transparent); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 14px; height: 2px; margin-left: -7px;
  border-radius: 2px; background: var(--grad); }
.nav .nav-cta { display: none; }
/* French labels are longer: a little less padding keeps the menu on one line. */
html[lang="fr"] .nav a { padding: 7px 8px; font-size: .9rem; }
html[lang="fr"] .actions { gap: 6px; }
.actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); color: var(--fg); cursor: pointer; padding: 0; box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, transform .15s ease; }
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn:active { transform: scale(.95); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; } :root[data-theme="dark"] .theme-moon { display: none; }
#menu-toggle { display: none; }
/* Language switch (FR on English pages, EN on French pages): a small pill next to the theme toggle, on every width. */
.lang-switch { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--card); color: var(--fg); font-weight: 600; font-size: .78rem;
  letter-spacing: .06em; text-decoration: none; box-shadow: var(--shadow-xs); }
.lang-switch:hover { border-color: var(--line-2); color: var(--primary); }
.signin { white-space: nowrap; color: var(--fg); font-weight: 500; text-decoration: none; padding: 7px 10px; border-radius: 9px; font-size: .92rem; }
.signin:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }
@media (max-width: 1279px) {
  .js #menu-toggle { display: inline-grid; }
  .js .nav { position: fixed; inset: var(--header-h) 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; box-shadow: var(--shadow-lift);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .js .nav.open { display: flex; animation: drop .22s var(--ease); }
  .js .nav a { padding: 12px 14px; font-size: 1.02rem; }
  .js .nav a[aria-current="page"]::after { left: 4px; top: 50%; bottom: auto; width: 3px; height: 16px; margin: -8px 0 0; }
  .js .nav .nav-cta { display: flex; margin-top: 8px; text-align: center; }
  .js .actions .btn-demo, .js .actions .signin { display: none; }
  .no-js .bar { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .no-js .nav { order: 3; width: 100%; flex-wrap: wrap; }
}
@media (max-width: 1279px) { body.menu-open { overflow: hidden; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* -- buttons ------------------------------------------------------------------------------------------------------ */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 12px; font: 500 .95rem/1.2 var(--font); letter-spacing: -0.005em; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--grad); color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 1px 2px rgb(30 27 75 / .25), 0 8px 22px -8px rgb(99 70 229 / .65); }
.btn-primary:hover { transform: translateY(-1px); color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 1px 2px rgb(30 27 75 / .25), 0 14px 30px -10px rgb(99 70 229 / .8); }
.btn-primary svg { transition: transform .18s var(--ease); }
.btn-primary:hover svg { transform: translateX(2px); }
.btn-ghost { background: var(--card); color: var(--fg); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--line-2); color: var(--fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-light { background: #fff; color: #3730a3; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .35); }
.btn-light:hover { color: #312e81; transform: translateY(-1px); }
.btn-outline-light { border-color: rgb(255 255 255 / .35); color: #fff; background: rgb(255 255 255 / .06); }
.btn-outline-light:hover { background: rgb(255 255 255 / .14); color: #fff; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: .9rem; border-radius: 11px; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn svg { width: 17px; height: 17px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
/* -- sections ----------------------------------------------------------------------------------------------------- */
section { padding: 56px 0; position: relative; }
@media (min-width: 900px) { section { padding: 72px 0; } }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); overflow: clip; }
.section-alt::before { content: ""; position: absolute; left: 50%; top: -240px; width: 900px; height: 480px; margin-left: -450px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary-2) 9%, transparent), transparent); pointer-events: none; }
.section-alt > .wrap { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok-bright);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok-bright) 22%, transparent); }
.lead { font-size: clamp(1.04rem, 1.6vw, 1.18rem); line-height: 1.62; color: var(--muted); max-width: 40em; }
.section-head { max-width: 800px; margin-bottom: 36px; }
.section-head .lead { margin-bottom: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.section-foot { margin: 28px 0 0; }
/* -- hero backgrounds: aurora mesh + fading grid (CSS only) ------------------------------------------------------- */
.hero, .page-hero { position: relative; overflow: clip; isolation: isolate; }
.hero::before, .page-hero::before { content: ""; position: absolute; z-index: -2; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(38% 46% at 22% 28%, var(--aurora-1), transparent 70%),
    radial-gradient(34% 42% at 78% 18%, var(--aurora-2), transparent 70%),
    radial-gradient(28% 36% at 62% 72%, var(--aurora-3), transparent 70%);
  filter: blur(36px); pointer-events: none; }
.hero::after, .page-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 75%); }
@media (prefers-reduced-motion: no-preference) {
  .hero::before, .page-hero::before { animation: aurora 22s ease-in-out infinite alternate; }
}
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.06) rotate(2deg); }
  100% { transform: translate3d(-3%, -1%, 0) scale(1.02) rotate(-2deg); }
}
/* -- hero --------------------------------------------------------------------------------------------------------- */
.hero { padding: 40px 0 56px; }
.hero > .wrap { position: relative; display: grid; gap: 44px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 64px 0 88px; } .hero > .wrap { grid-template-columns: 1.02fr .98fr; gap: 40px; } }
@media (min-width: 1280px) { .hero > .wrap { grid-template-columns: 1fr 1fr; gap: 56px; } }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.hero-meta > span { display: inline-flex; align-items: center; }
.hero-meta > span > svg { margin-right: 7px; flex: none; }
.hero-meta svg { width: 17px; height: 17px; color: var(--ok); flex: none; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-xs), inset 0 1px 0 rgb(255 255 255 / .5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--fg); font-size: .86rem; font-weight: 500;
  text-decoration: none; max-width: 100%; transition: border-color .18s ease, box-shadow .18s ease; }
:root[data-theme="dark"] .pill { box-shadow: var(--shadow-xs), inset 0 1px 0 rgb(255 255 255 / .06); }
.pill:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pill .tag { padding: 3px 9px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .02em; flex: none; }
.pill .pill-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill svg { width: 15px; height: 15px; color: var(--muted); flex: none; transition: transform .18s var(--ease); }
.pill:hover svg { transform: translateX(2px); }

/* Product composition: the phone, a floating console card and soft depth. */
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .phone { width: min(400px, 92vw); filter: drop-shadow(0 40px 60px rgb(30 27 75 / .28)); }
.stage { position: relative; width: 100%; max-width: 620px; margin-inline: auto; }
.stage .phone { width: min(360px, 84vw); position: relative; z-index: 1; }
@media (min-width: 980px) { .stage .phone { margin-left: 2%; } }
.stage-glow { position: absolute; inset: 8% 4% 6% 10%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary-2) 30%, transparent), transparent 75%); filter: blur(20px); }
.console { position: absolute; z-index: 2; right: -8px; bottom: 5%; width: 284px; padding: 14px; border-radius: 20px;
  background: var(--glass); border: 1px solid color-mix(in srgb, var(--line-2) 80%, transparent); box-shadow: var(--shadow-float);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); font-size: .8rem; }
:root[data-theme="dark"] .console { border-color: rgb(255 255 255 / .09); }
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.console-title { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: .8rem; color: var(--fg); }
.console-title i { width: 18px; height: 18px; border-radius: 6px; background: var(--grad); flex: none; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; color: var(--ok); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok-bright);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok-bright) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) { .live::before { animation: ping 2s ease-out infinite; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok-bright) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
.console-grid { display: grid; grid-template-columns: 104px 1fr; gap: 8px; }
.c-tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.c-label { display: block; color: var(--subtle); font-size: .68rem; font-weight: 500; letter-spacing: .02em; }
.c-big { display: block; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; color: var(--fg); line-height: 1.15; font-variant-numeric: tabular-nums; }
.c-sub { color: var(--muted); font-size: .68rem; }
.gauge { width: 100%; max-width: 96px; margin: 4px auto -2px; }
.gauge .track { stroke: var(--line); }
.gauge text { fill: var(--fg); font-family: var(--font); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-mini { height: 6px; border-radius: 6px; background: var(--line); margin-top: 6px; overflow: hidden; }
.bar-mini span { display: block; height: 100%; width: 78%; border-radius: inherit; background: var(--grad); }
.spark { width: 100%; height: 38px; margin-top: 4px; }
.spark .area { fill: url(#sp-g); }
.spark .ln { stroke: var(--chart-1); }
.toasts { position: relative; height: 92px; margin-top: 10px; }
.toast { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .76rem; }
.toast b { display: block; color: var(--fg); font-size: .78rem; }
.toast span { color: var(--muted); font-size: .7rem; }
.toast .ok-dot { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 4px 10px -4px rgb(5 150 105 / .7); }
.toast .ok-dot svg { width: 14px; height: 14px; }
.toast em { margin-left: auto; font-style: normal; color: var(--subtle); font-size: .68rem; white-space: nowrap; }
.toast:nth-child(1) { top: 0; }
.toast:nth-child(2) { top: 46px; }
.toast:nth-child(3) { top: 46px; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .toasts .toast { animation: toastcycle 9s var(--ease) infinite; }
  .toasts .toast:nth-child(1) { animation-delay: 0s; }
  .toasts .toast:nth-child(2) { animation-delay: -3s; }
  .toasts .toast:nth-child(3) { animation-delay: -6s; }
}
@keyframes toastcycle {
  0% { top: 92px; opacity: 0; transform: scale(.96); }
  6%, 33% { top: 46px; opacity: 1; transform: none; }
  39%, 66% { top: 0; opacity: 1; transform: none; }
  72%, 100% { top: -30px; opacity: 0; transform: scale(.96); }
}
.example-chip { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: .62rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; background: var(--warn-soft); color: var(--warn); }
@media (min-width: 1280px) { .stage .phone { width: 380px; } .console { right: 0; bottom: 7%; width: 296px; } }
@media (min-width: 980px) and (max-width: 1279px) { .stage .phone { width: 320px; } .console { width: 260px; bottom: 2%; } }
@media (max-width: 979px) {
  .stage { max-width: 620px; }
  .stage .phone { width: min(340px, 82vw); margin-left: 2%; }
  .console { width: min(272px, 70vw); right: 0; bottom: 6%; }
}
@media (max-width: 520px) {
  .stage .phone { width: 84%; margin: 0 auto; }
  .console { position: relative; right: auto; bottom: auto; margin: -14px auto 0; width: 94%; }
}
/* -- page hero ---------------------------------------------------------------------------------------------------- */
.page-hero { padding: 44px 0 36px; }
@media (min-width: 900px) { .page-hero { padding: 72px 0 48px; } }
.page-hero > .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); max-width: 18ch; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .cta-row, .page-hero .toc { margin-top: 26px; }
/* -- chips, cards, grids ------------------------------------------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-size: .86rem; font-weight: 500; color: var(--fg); box-shadow: var(--shadow-xs); }
.chip-soft { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.chip-grad { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -6px rgb(99 70 229 / .6); }
.strip { padding: 20px 0; border-block: 1px solid var(--line); background: var(--card); }
.strip .wrap { display: grid; gap: 18px; }
@media (min-width: 900px) { .strip .wrap { grid-template-columns: auto 1fr; align-items: center; gap: 28px; } }
.strip-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* A 3-column grid that would leave one card alone on its last row (4, 7, 10 cards) goes 4 across instead. */
@media (min-width: 1100px) {
  .grid-3:has(> :nth-child(3n+1):last-child):not(:has(> :only-child)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: .96rem; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--primary); font-weight: 500; font-size: .93rem; }
.card .more svg { width: 16px; height: 16px; transition: transform .18s var(--ease); }
a.card:hover .more svg { transform: translateX(3px); }
.icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; color: #fff;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 6px 14px -6px rgb(99 70 229 / .6); }
.icon svg { width: 20px; height: 20px; }
.icon.ok { background: linear-gradient(135deg, #10b981, #047857); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 6px 14px -6px rgb(5 150 105 / .6); }
.icon.warn { background: linear-gradient(135deg, #f59e0b, #c2410c); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 6px 14px -6px rgb(217 119 6 / .6); }
.icon.danger { background: linear-gradient(135deg, #f43f5e, #be123c); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 6px 14px -6px rgb(225 29 72 / .6); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23059669' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/15px no-repeat;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 22%, transparent); }
:root[data-theme="dark"] .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2334d399' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E"); }
.card .ticks li { color: var(--muted); }
.ticks + p { margin-top: 18px; }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.rev > :first-child { order: 2; } }
.split .lead { margin-bottom: 24px; }
.art { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-lift); }
.art::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary-2) 45%, transparent), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.art svg { width: 100%; }
/* -- faq ---------------------------------------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.section-head.center + .faq { margin-inline: auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; box-shadow: var(--shadow-xs);
  transition: border-color .2s ease, box-shadow .2s ease; overflow: hidden; }
.faq details:hover { border-color: var(--line-2); }
.faq details[open] { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 25%, var(--line)); }
.faq summary { cursor: pointer; font-weight: 500; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq details p { color: var(--muted); padding-bottom: 4px; }
.faq .faq-body { overflow: hidden; }
/* -- code --------------------------------------------------------------------------------------------------------- */
pre { position: relative; background: #0b1020; color: #e4e8f4; border-radius: 16px; padding: 18px 20px; overflow-x: auto; font-size: .84rem; line-height: 1.65;
  border: 1px solid #1f2547; margin: 0 0 14px; box-shadow: var(--shadow-lift); }
:root[data-theme="dark"] pre { background: #090c1a; border-color: #232a4f; }
pre .c { color: #8b93b8; } pre .s { color: #86efac; } pre .k { color: #c4b5fd; }
:not(pre) > code { background: var(--primary-soft); color: var(--primary-ink); padding: 2px 6px; border-radius: 6px; font-size: .86em; overflow-wrap: anywhere;
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent); }
/* -- callouts ----------------------------------------------------------------------------------------------------- */
.note { border-radius: 14px; padding: 14px 18px; background: var(--primary-soft); color: var(--fg); border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent); }
.note.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.note strong { color: inherit; }
.example-tag { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); vertical-align: middle; }
/* -- footer ------------------------------------------------------------------------------------------------------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; font-size: .93rem; overflow: clip; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: 0; width: min(900px, 90%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary-2) 60%, transparent), transparent); }
.foot-grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 32px; } }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-brand { grid-column: auto; } }
.foot-brand p { color: var(--muted); max-width: 32ch; margin-top: 14px; }
.foot-brand .small a { color: var(--fg); }
.site-footer .brand { color: var(--fg); }
.foot-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-size: .8rem; font-weight: 500; }
.foot-badge svg { width: 15px; height: 15px; color: var(--ok); flex: none; }
.site-footer h2 { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--subtle); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: var(--fg); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; justify-content: space-between; border-top: 1px solid var(--line);
  margin-top: 44px; padding-top: 22px; color: var(--subtle); font-size: .85rem; }
.foot-langs { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.foot-langs a, .foot-langs span { padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 500; }
.foot-langs span { background: var(--primary-soft); color: var(--primary-ink); }
.foot-langs a { color: var(--muted); }
/* -- phone illustration ------------------------------------------------------------------------------------------- */
.phone .frame { fill: var(--phone); }
:root[data-theme="dark"] .phone .frame { stroke: rgb(255 255 255 / .14); stroke-width: 1.5; }
.phone .screen { fill: var(--wa-bg); }
.phone .wa-head { fill: var(--wa-head); }
.phone .in { fill: var(--wa-in); }
.phone .out { fill: var(--wa-out); }
.phone .t { fill: var(--wa-text); font-family: var(--font); }
.phone .meta { fill: var(--wa-meta); font-family: var(--font); }
.phone .w { fill: #fff; font-family: var(--font); }
.phone .tick { stroke: var(--wa-tick); }
.phone .btnrow { fill: var(--wa-in); }
.phone .btntxt { fill: #0b8a73; font-family: var(--font); }
:root[data-theme="dark"] .phone .btntxt { fill: #53bdeb; }
.paid-card .bg { fill: var(--card); stroke: var(--line); }
.paid-card .t { fill: var(--fg); font-family: var(--font); }
.paid-card .m { fill: var(--muted); font-family: var(--font); }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 5s ease-in-out infinite; }
  .float-slow { animation: float 7s ease-in-out infinite; }
  .pop { animation: pop .6s cubic-bezier(.2,.8,.2,1) both; }
  .pop.d1 { animation-delay: .3s; } .pop.d2 { animation-delay: .7s; } .pop.d3 { animation-delay: 1.1s; } .pop.d4 { animation-delay: 1.5s; }
  .pop.d5 { animation-delay: 1.9s; } .pop.d6 { animation-delay: 2.4s; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }


/* == training additions ============================================================================================ */
section { padding: 48px 0; }
@media (min-width: 900px) { section { padding: 72px 0; } }
.brand-sub { font-style: normal; font-weight: 600; color: var(--muted); font-size: .9rem; margin-left: 2px; }
.h3 { font-size: 1.15rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--primary-soft); color: var(--primary); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 650; }
caption { text-align: left; padding: 10px 14px; color: var(--muted); }
kbd { font-family: var(--mono); font-size: .86em; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--card);
  border: 1px solid var(--line); border-bottom-width: 2px; color: var(--fg); white-space: nowrap; }
.ui { font-weight: 650; padding: 1px 7px; border-radius: 7px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }

/* search */
.search { position: relative; flex: 1 1 260px; max-width: 360px; margin-left: 8px; display: none; }
.js .search { display: block; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.search input { width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--fg);
  padding: 0 12px 0 38px; font: 500 .95rem var(--font); }
.search input:focus { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 1px; border-color: var(--primary); }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; width: min(520px, 92vw); max-height: 70vh; overflow-y: auto; z-index: 60;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); padding: 6px; }
.search-results a, .search-list a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--fg); }
.search-results a:hover, .search-results a:focus, .search-list a:hover { background: var(--primary-soft); outline: none; }
.search-results small, .search-list small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.search-results .tag, .search-list .tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--primary); margin-right: 6px; }
.search-results .none { padding: 12px; color: var(--muted); font-size: .92rem; }
mark { background: color-mix(in srgb, var(--warn) 25%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
@media (max-width: 720px) { .js .search { order: 4; flex-basis: 100%; max-width: none; margin: 0 0 10px; } .bar { flex-wrap: wrap; height: auto; padding-top: 10px; }
  .search-results { width: calc(100vw - 2 * var(--gutter)); } }
.search-big { display: flex; gap: 10px; max-width: 640px; margin-top: 18px; }
.search-big input { flex: 1; min-width: 0; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--fg); padding: 0 14px; font: 500 1rem var(--font); }
.search-list { list-style: none; padding: 0; display: grid; gap: 6px; max-width: 820px; }
.search-list li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }

/* home */
.hero-tight { padding-bottom: 48px; }
.demo-card h2 { margin-bottom: 6px; }
.demo-card table { font-size: .88rem; }
.demo-card th, .demo-card td { padding: 8px 10px; }
.course-card .aud { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); margin-bottom: 4px; }
.course-card .more svg { width: 16px; height: 16px; }
.more-links { margin-top: 24px; }

/* breadcrumbs, meta */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--subtle); }
.crumbs a { color: var(--muted); }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.lesson-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lesson-meta svg { width: 17px; height: 17px; color: var(--primary); }

/* course page */
.course-body { padding-top: 8px; }
.course-intro { max-width: 760px; margin-bottom: 24px; }
.lesson-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 860px; }
.lesson-card { display: flex !important; gap: 16px; align-items: flex-start; padding: 18px 20px; }
.lesson-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.lesson-card p { margin: 0 0 6px; font-size: .95rem; }
.lesson-card small { display: inline-flex; gap: 6px; align-items: center; color: var(--subtle); }
.lesson-card small svg { width: 15px; height: 15px; }
.n { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--grad-soft);
  color: var(--primary); font-weight: 750; font-size: .9rem; }

/* lesson layout */
.lesson-layout { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 56px; }
@media (min-width: 980px) { .lesson-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding-top: 40px; } }
.course-nav details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px 8px; }
@media (min-width: 980px) { .course-nav { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; } }
.course-nav summary { cursor: pointer; padding: 10px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.course-nav summary small { color: var(--subtle); font-weight: 500; }
.course-nav ol { list-style: none; margin: 0; padding: 0 0 6px; display: grid; gap: 2px; }
.course-nav a { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: .92rem; line-height: 1.3; }
.course-nav a .n { width: 24px; height: 24px; border-radius: 7px; font-size: .78rem; }
.course-nav a:hover { background: var(--primary-soft); color: var(--fg); }
.course-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 650; }
.lesson { max-width: 780px; min-width: 0; }
.lesson h1 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); }
.lesson h2 { font-size: 1.3rem; margin-top: 0; }
.lesson > section, .lesson > aside, .lesson > figure, .lesson > div.prose { margin: 0 0 28px; }
.block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.block-head h2 { margin: 0; }
.block-head svg { width: 22px; height: 22px; color: var(--primary); flex: none; }
.goals { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps > li { counter-increment: step; position: relative; padding: 12px 16px 12px 56px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.steps > li::before { content: counter(step); position: absolute; left: 14px; top: 11px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 750; font-size: .88rem; }
.steps ul { margin: 6px 0 0; }
.see ul, .tips ul { margin: 0; display: grid; gap: 6px; }
.tips { background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); border-radius: var(--radius); padding: 18px 22px; }
.tips .block-head svg { color: var(--ok); }
.note.warn { display: flex; gap: 12px; align-items: flex-start; }
.note.warn svg { width: 22px; height: 22px; flex: none; color: var(--warn); margin-top: 2px; }
.note.warn p:last-child { margin-bottom: 0; }
.demo-box { border-radius: var(--radius); padding: 20px 22px; background: var(--grad-soft); border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line)); }
.demo-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.demo-head h2 { margin: 0; }
.demo-head svg { width: 22px; height: 22px; color: var(--primary); }
.demo-box ol { margin: 0 0 10px; display: grid; gap: 6px; }
.demo-box p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { display: grid; gap: 6px; }
.prose .table-wrap, .demo-card .table-wrap { margin: 0 0 1em; }
.mock { margin: 0 0 28px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.mock svg { margin: 0 auto; }
.mock .mock-phone, .mock .mock-web { max-width: 300px; }
.mock figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* mock-up colours */
.m-bg { fill: var(--bg); } .m-side { fill: var(--card); } .m-top { fill: var(--card); } .m-card { fill: var(--card); stroke: var(--line); }
.m-sub { fill: var(--bg-2); stroke: var(--line); } .m-logo { fill: var(--primary); } .m-frame { fill: var(--phone); }
.m-strong { fill: var(--fg); font-family: var(--font); } .m-text { fill: var(--muted); font-family: var(--font); } .m-faint { fill: var(--subtle); font-family: var(--font); }
.m-faintf { fill: var(--line); } .m-line { stroke: var(--line); } .m-active { fill: var(--primary-soft); stroke: color-mix(in srgb, var(--primary) 35%, transparent); }
.m-active-t { fill: var(--primary); font-family: var(--font); } .m-bar { fill: var(--chart-1); } .m-pill { fill: var(--ok-soft); }
.m-ring { stroke: var(--line); } .m-ring2 { stroke: var(--chart-2); } .m-btn { fill: var(--primary-soft); } .m-btnp { fill: #4f46e5; }
.m-btnp-t { fill: #fff; font-family: var(--font); } .m-phone { fill: var(--phone); } .m-wa { fill: var(--wa-bg); } .m-in { fill: var(--wa-in); }

/* quiz */
.quiz { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.quiz .q { border: 0; padding: 0; margin: 0 0 18px; }
.quiz legend { font-weight: 650; margin-bottom: 8px; display: flex; gap: 10px; align-items: flex-start; }
.quiz .qn { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--primary-soft); color: var(--primary); font-size: .8rem; }
.quiz .opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; margin: 0 0 6px 34px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.quiz .opt:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.quiz .opt input { margin-top: .3em; accent-color: var(--primary); }
.quiz .opt.right { border-color: var(--ok); background: var(--ok-soft); }
.quiz .opt.wrong { border-color: var(--danger); background: var(--danger-soft); }
.quiz .feedback { margin: 6px 0 0 34px; font-size: .92rem; }
.quiz .feedback.ok { color: var(--ok); } .quiz .feedback.no { color: var(--danger); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.quiz .score { margin: 0; font-weight: 650; }

/* pager */
.pager { display: grid; gap: 12px; margin-top: 36px; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; color: var(--fg); font-weight: 650; }
.pager a:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.pager .next { justify-content: flex-end; text-align: right; }
.pager small { display: block; color: var(--subtle); font-weight: 500; font-size: .8rem; }
.pager svg { width: 20px; height: 20px; flex: none; color: var(--primary); }

/* glossary, faq */
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.jump a { display: inline-grid; place-items: center; min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 700; }
.glossary { max-width: 820px; }
.gloss { margin: 0 0 24px; display: grid; gap: 2px; }
.gloss dt { font-weight: 700; margin-top: 10px; scroll-margin-top: 90px; }
.gloss dd { margin: 0; color: var(--muted); }
.faq-page h2 { margin-top: 32px; }
.faq details { scroll-margin-top: 90px; }
:target { animation: flash 1.6s ease; }
@keyframes flash { from { background: var(--primary-soft); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { :target { animation: none; } }

@media print {
  .site-header, .site-footer, .course-nav, .pager, .quiz-actions, .demo-box .small { display: none !important; }
  body { background: #fff; color: #000; } .lesson-layout { display: block; } a { color: inherit; }
}

/* wrapping and tables on small screens */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); max-width: 100%; }
.lesson, .lesson li, .lesson p, .prose, .search-list { overflow-wrap: anywhere; }
@media (max-width: 640px) { .ui, kbd { white-space: normal; } th, td { padding: 8px 10px; } }
@media (max-width: 979px) { .course-nav details:not([open]) { padding: 0 8px; } }

/* language switch (FR / EN) in the header */
.lang-switch { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--fg); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-decoration: none; }
.lang-switch:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); background: var(--primary-soft); }
.lang-switch:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 1px; }
.en-only { font-size: .78rem; font-weight: 600; color: var(--subtle); }
/* -- AHPC training additions ---------------------------------------------------------------------------------------- */
h1, h2, .h1, .h2, .page-hero h1, .hero h1, .lesson h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); object-fit: contain; }
.brand b { color: #9b2c2c; font-weight: 700; }
:root[data-theme="dark"] .brand b { color: #f3a4a4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand b { color: #f3a4a4; } }
.eyebrow { color: var(--gold); }
/* real screenshots of the portal */
figure.shot { margin: 28px 0; }
figure.shot .frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card);
  box-shadow: var(--shadow); }
figure.shot .frame .chrome { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line);
  background: var(--card-2); font: 500 12px/1 var(--font); color: var(--subtle); }
figure.shot .frame .chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: inline-block; }
figure.shot .frame .chrome span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
figure.shot img { width: 100%; height: auto; display: block; }
figure.shot figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
figure.shot a.zoom { display: block; cursor: zoom-in; }
.where { display: grid; gap: 4px; margin: 18px 0; padding: 14px 16px; border-radius: 14px; background: var(--primary-soft);
  color: var(--primary-ink); font-size: .95rem; }
.where strong { font-weight: 600; }
.where code { background: transparent; padding: 0; color: inherit; }
.role-grid td:first-child { white-space: nowrap; }
