/* ==========================================================================
   BISP Trainings — Design System
   Tokens → Base → Layout → Components → Sections → Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand — ocean flow */
  --brand:        #0C8CE9;   /* vibrant ocean blue */
  --brand-600:    #0A6FBF;
  --brand-soft:   rgba(12, 140, 233, 0.11);
  --cyan:         #06B6D4;
  --aqua:         #14B8A6;
  --teal:         #0D9488;
  --sky:          #38BDF8;
  --violet:       #7C5CFF;   /* AI accent */
  --indigo:       #5B5BD6;
  --coral:        #FF6B57;   /* vibrant CTA / price accent */
  --amber:        #FFB020;

  /* Neutrals — light theme (blue-tinted, never pure black) */
  --bg:           #FFFFFF;
  --bg-alt:       #F1F8FC;
  --surface:      #FFFFFF;
  --surface-2:    #E9F3FA;
  --ink:          #062A40;   /* deep ocean navy */
  --ink-2:        #1E4A66;
  --muted:        #557E99;
  --faint:        #8AABC0;
  --line:         #DBEAF3;
  --line-2:       #C3DDEC;

  /* Effects */
  --shadow-sm:  0 1px 2px rgba(6,42,64,.07), 0 1px 3px rgba(6,42,64,.06);
  --shadow-md:  0 4px 14px rgba(6,42,64,.09), 0 2px 4px rgba(6,42,64,.05);
  --shadow-lg:  0 18px 42px -12px rgba(6,42,64,.22), 0 6px 14px -6px rgba(6,42,64,.10);
  --shadow-xl:  0 32px 74px -20px rgba(6,42,64,.30);
  --ring:       0 0 0 3px rgba(12,140,233,.24);

  --grad-brand: linear-gradient(120deg, #0C8CE9 0%, #06B6D4 55%, #14B8A6 100%);
  --grad-ai:    linear-gradient(120deg, #7C5CFF 0%, #0C8CE9 50%, #14B8A6 100%);
  --grad-warm:  linear-gradient(120deg, #FF6B57 0%, #FFB020 100%);
  --grad-ink:   linear-gradient(140deg, #04263B 0%, #073A57 48%, #0A5578 100%);
  --wave-fill:  #04263B;

  /* Logo — official BISP brand colours, kept independent of the site palette */
  --logo-blue: #2E6FD0;
  --logo-red:  #E8262D;
  --logo-navy: #16357E;

  /* Solid "inverse" chip — must stay dark with white text in BOTH themes,
     so it can never be derived from --ink (which flips on dark). */
  --solid-bg: #062A40;
  --solid-fg: #FFFFFF;

  /* Geometry */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  --maxw: 1200px;
  --gut: clamp(18px, 4vw, 40px);
  --sec-y: clamp(64px, 8vw, 116px);

  /* Type */
  --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.22,.7,.3,1);
  --header-h: 72px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg:        #03151F;   /* deep water */
  --bg-alt:    #051E2D;
  --surface:   #082A3C;
  --surface-2: #0C3A50;
  --ink:       #E8F6FD;
  --ink-2:     #BBDCEC;
  --muted:     #8FB6CC;
  --faint:     #63899F;
  --line:      #124057;
  --line-2:    #1A5273;
  --brand-soft: rgba(12, 140, 233, 0.20);

  --shadow-sm: 0 1px 2px rgba(0,10,18,.55);
  --shadow-md: 0 6px 18px rgba(0,10,18,.5);
  --shadow-lg: 0 22px 50px -14px rgba(0,10,18,.7);
  --shadow-xl: 0 36px 80px -22px rgba(0,10,18,.8);
  --grad-ink:  linear-gradient(140deg, #03151F 0%, #073349 50%, #0A4A66 100%);
  --wave-fill: #03151F;

  /* Logo on dark: lift the navy wordmark, keep the brand blue/red intact */
  --logo-blue: #5B9BEE;
  --logo-red:  #FF4D54;
  --logo-navy: #DCEBFF;

  --solid-bg: #0F5C80;   /* lifted so it separates from the deep-water surface */
  --solid-fg: #FFFFFF;
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s var(--ease), color .3s var(--ease);
}
body.nav-open { overflow: hidden; }

h1,h2,h3,h4,h5 { margin: 0 0 .5em; color: var(--ink); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.15rem, 5.2vw, 3.85rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.35rem); }
p  { margin: 0 0 1rem; }
a  { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--brand); color: #fff; }

/* Scrollbars */
.scroll-y { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.scroll-y::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-y::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; }
.scroll-y::-webkit-scrollbar-track { background: transparent; }

/* --------------------------------------------------------------------------
   3. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.stack-sm > * + * { margin-top: .5rem; }

.sec-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.sec-head--left { margin-inline: 0; text-align: left; }
.sec-head p { color: var(--muted); font-size: 1.02rem; margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.eyebrow--ai { color: var(--violet); }
.eyebrow--ai::before { background: var(--violet); }

.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text--ai { background: var(--grad-ai); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   4. BUTTONS / CHIPS / BADGES
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--solid-bg); --btn-fg: var(--solid-fg);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border: 1px solid transparent; border-radius: var(--r-full);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .93rem; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--brand   { --btn-bg: none; background-image: var(--grad-brand); box-shadow: 0 8px 22px -8px rgba(12,140,233,.55); }
.btn--brand:hover { box-shadow: 0 16px 34px -10px rgba(12,140,233,.62); }
.btn--ai      { --btn-bg: none; background-image: var(--grad-ai); box-shadow: 0 8px 22px -8px rgba(124,92,255,.55); }
.btn--ghost   { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--surface-2); }
.btn--light   { --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--light:hover { --btn-bg: rgba(255,255,255,.22); }
.btn--white   { --btn-bg: #fff; --btn-fg: #062A40; }
.btn--sm { padding: 9px 17px; font-size: .84rem; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: .84rem; font-weight: 700;
  cursor: pointer; transition: all .2s var(--ease); white-space: nowrap;
}
.chip:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-1px); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--solid-bg); border-color: var(--solid-bg); color: var(--solid-fg);
}
.chip .count { font-size: .74rem; opacity: .65; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.badge--brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.badge--ai    { background: rgba(124,92,255,.13); color: var(--violet); border-color: transparent; }
.badge--live  { background: rgba(255,107,87,.14); color: var(--brand); border-color: transparent; }
.badge--free  { background: rgba(20,184,166,.15); color: var(--teal); border-color: transparent; }

.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); position: relative; }
.dot-live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--brand); opacity: .6; animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* --------------------------------------------------------------------------
   5. HEADER / NAV
   -------------------------------------------------------------------------- */
.topbar {
  position: relative; overflow: hidden;
  /* Three-colour ocean band: blue → cyan → teal, kept deep enough for white text */
  background: linear-gradient(90deg, #0A5FBF 0%, #0E7490 30%, #0F766E 55%, #0E7490 78%, #0A5FBF 100%);
  background-size: 300% 100%;
  color: rgba(255,255,255,.92);
  font-size: .8rem; padding: 8px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar__note { display: flex; align-items: center; gap: 9px; }
.topbar__links { display: flex; align-items: center; gap: 20px; }
.topbar a:hover { color: #fff; }

.header {
  position: sticky; top: 0; z-index: 90; isolation: isolate;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

/* A soft blue current drifting across the white — see flow.css for the motion */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg,
      transparent 0%,
      rgba(12,140,233,.10) 22%,
      rgba(6,182,212,.13) 42%,
      rgba(20,184,166,.10) 62%,
      rgba(56,189,248,.08) 80%,
      transparent 100%);
  background-size: 260% 100%;
}
:root[data-theme="dark"] .header::before {
  background: linear-gradient(100deg,
      transparent 0%,
      rgba(12,140,233,.20) 22%,
      rgba(6,182,212,.22) 42%,
      rgba(20,184,166,.18) 62%,
      rgba(56,189,248,.16) 80%,
      transparent 100%);
  background-size: 260% 100%;
}

/* Hairline of colour along the bottom edge, brightening once stuck */
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  z-index: -1; pointer-events: none; opacity: .55;
  background: linear-gradient(90deg, transparent, var(--brand), var(--cyan), var(--aqua), transparent);
  background-size: 200% 100%;
  transition: opacity .25s var(--ease);
}
.header.is-stuck::after { opacity: 1; }
.header.is-stuck { border-bottom-color: transparent; }
.header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; position: relative; z-index: 1; }

.logo { display: flex; align-items: center; margin-right: auto; }
.logo__img {
  height: 42px; width: auto; display: block;
  image-rendering: -webkit-optimize-contrast;   /* keeps the small raster crisp */
  transition: transform .3s var(--ease);
}
.logo:hover .logo__img { transform: translateY(-1px); }
.logo--lg .logo__img { height: 52px; }

/* Transparent PNG, two tone variants — the dark one lifts the navy wordmark
   so it stays legible on deep water. Only one is ever shown. */
.logo__img--dark  { display: none; }
:root[data-theme="dark"] .logo__img--light { display: none; }
:root[data-theme="dark"] .logo__img--dark  { display: block; }

@media (max-width: 860px) { .logo__img { height: 36px; } }
@media (max-width: 400px) { .logo__img { height: 32px; } }

/* Legacy lettermark — kept for the avatars/tiles that still use it */
.logo__mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 1.05rem; letter-spacing: -.04em;
  box-shadow: 0 6px 16px -6px rgba(12,140,233,.62);
}

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav > li > a, .nav__toggle {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 11px; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  background: none; border: 0; cursor: pointer;
  white-space: nowrap;                 /* never break a label across lines */
  transition: color .2s var(--ease), background .2s var(--ease);
}

/* Below ~1180px the nine items get tight — shave padding before the
   mobile drawer takes over at 860px. */
@media (max-width: 1180px) {
  .nav > li > a, .nav__toggle { padding: 9px 8px; font-size: .86rem; }
  .header__inner { gap: 12px; }
}
.nav > li > a:hover, .nav__toggle:hover { color: var(--ink); background: var(--surface-2); }
.nav__toggle svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.nav__item.open .nav__toggle svg { transform: rotate(180deg); }

.nav__item { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0;
  width: min(760px, 88vw); padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
  transition: all .24s var(--ease);
}
.nav__item.open .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mega__link { display: flex; gap: 12px; padding: 11px; border-radius: var(--r); transition: background .18s var(--ease); }
.mega__link:hover { background: var(--surface-2); }
.mega__ico { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: .78rem; font-weight: 900; color: #fff; }
.mega__link b { display: block; color: var(--ink); font-size: .9rem; font-weight: 700; }
.mega__link span { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.mega__foot { grid-column: 1 / -1; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.mega__foot span { font-size: .82rem; color: var(--muted); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); cursor: pointer; transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }

.burger { display: none; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 100;
  background: var(--bg); border-left: 1px solid var(--line);
  transform: translateX(102%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; padding: 18px var(--gut) 28px;
  overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.drawer .btn { margin-top: 20px; }
.scrim { position: fixed; inset: 0; background: rgba(4,38,59,.62); backdrop-filter: blur(3px); z-index: 99; opacity: 0; visibility: hidden; transition: all .3s var(--ease); }
.scrim.on { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(52px, 7vw, 96px) clamp(48px, 6vw, 84px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg::before, .hero__bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.hero__bg::before { width: 620px; height: 620px; top: -240px; right: -160px; background: radial-gradient(circle, rgba(12,140,233,.45), transparent 70%); }
.hero__bg::after  { width: 560px; height: 560px; bottom: -300px; left: -180px; background: radial-gradient(circle, rgba(20,184,166,.36), transparent 70%); }
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 62px 62px; opacity: .35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
}

.hero__inner { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero__lede { font-size: clamp(1.02rem, 1.35vw, 1.16rem); color: var(--muted); max-width: 54ch; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.hero__pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 15px 7px 8px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; color: var(--ink-2);
}
.hero__pill .badge { font-size: .62rem; }

.hero__trust { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px; border-radius: 50%; margin-left: -10px;
  border: 2px solid var(--bg); display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; color: #fff;
}
.avatars span:first-child { margin-left: 0; }
.hero__trust p { margin: 0; font-size: .84rem; color: var(--muted); }
.hero__trust b { color: var(--ink); }
.stars { color: var(--amber); letter-spacing: 1px; font-size: .82rem; }

/* Hero visual — illustration + floating AI proof */
.hero__visual { position: relative; padding: 10px 0 46px; }

.hero__art {
  position: relative; z-index: 1;
  width: 100%; max-width: 540px; height: auto; margin-inline: auto;
  filter: drop-shadow(0 26px 44px rgba(6,42,64,.20));
  animation: floatArt 7s ease-in-out infinite;
}
@keyframes floatArt { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Ocean halo + ripple rings behind the artwork */
.hero__halo {
  position: absolute; z-index: 0; inset: 4% 2% 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(12,140,233,.28), transparent 62%),
    radial-gradient(circle at 72% 72%, rgba(20,184,166,.24), transparent 60%);
  filter: blur(28px);
  animation: haloPulse 9s ease-in-out infinite;
}
@keyframes haloPulse {
  0%,100% { transform: scale(1); opacity: .95; }
  50%     { transform: scale(1.07); opacity: .7; }
}

/* Compact AI card over the artwork */
.hero__aicard {
  position: absolute; z-index: 3; left: -6px; bottom: 0; width: min(290px, 82%);
  animation: bob 6s ease-in-out infinite;
}
.hero__aicard .preview__bar { padding: 10px 14px; }
.hero__aicard .preview__body { padding: 12px; }
:root[data-theme="dark"] .hero__art { filter: drop-shadow(0 26px 48px rgba(0,0,0,.55)); }
.glass-card {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl); backdrop-filter: blur(10px);
  overflow: hidden;
}
.preview__bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.preview__bar .avatar-ai { width: 32px; height: 32px; border-radius: 10px; background: var(--grad-ai); display: grid; place-items: center; }
.preview__bar b { font-size: .88rem; color: var(--ink); display: block; line-height: 1.2; }
.preview__bar small { font-size: .72rem; color: var(--teal); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.preview__body { padding: 18px; display: grid; gap: 12px; }

.bubble { max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: .88rem; line-height: 1.55; }
.bubble--user { margin-left: auto; background: var(--solid-bg); color: var(--solid-fg); border-bottom-right-radius: 5px; }
.bubble--ai { background: var(--surface-2); color: var(--ink-2); border-bottom-left-radius: 5px; border: 1px solid var(--line); }
.bubble--ai strong { color: var(--ink); }

.rec-card {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.rec-card__ico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: .72rem; }
.rec-card b { display: block; font-size: .86rem; color: var(--ink); line-height: 1.25; }
.rec-card span { font-size: .74rem; color: var(--muted); }
.rec-card .match { margin-left: auto; text-align: right; }
.rec-card .match b { color: var(--teal); font-size: .92rem; }
.rec-card .match span { font-size: .66rem; }

.float-tag {
  position: absolute; display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: var(--r); z-index: 2;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: .78rem; font-weight: 700; color: var(--ink);
  animation: bob 5s ease-in-out infinite;
}
.float-tag i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; }
.float-tag small { display: block; font-size: .68rem; color: var(--muted); font-weight: 600; }
.float-tag--a { top: 2%; left: -26px; }
.float-tag--b { bottom: 16%; right: -22px; animation-delay: -2.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Stats strip */
.stats { border-block: 1px solid var(--line); background: var(--bg-alt); }
.stats__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.stat { padding: 26px 14px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(1.35rem, 2.3vw, 1.85rem); font-weight: 900; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: .74rem; color: var(--muted); line-height: 1.35; display: block; }

/* --------------------------------------------------------------------------
   7. AI ADVISOR SECTION
   -------------------------------------------------------------------------- */
.ai-sec { position: relative; background: var(--grad-ink); color: #fff; overflow: hidden; }
.ai-sec::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 420px at 15% 0%, rgba(124,92,255,.40), transparent 60%),
              radial-gradient(600px 400px at 90% 100%, rgba(20,184,166,.34), transparent 60%);
}
.ai-sec > * { position: relative; }
.ai-sec h2, .ai-sec h3 { color: #fff; }
.ai-sec .sec-head p { color: rgba(255,255,255,.66); }

.ai-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 52px); align-items: start; }

.ai-feats { display: grid; gap: 14px; }
.ai-feat { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.ai-feat__ico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.ai-feat__ico svg { width: 19px; height: 19px; }
.ai-feat b { display: block; color: #fff; font-size: .96rem; margin-bottom: 3px; }
.ai-feat p { margin: 0; font-size: .84rem; color: rgba(255,255,255,.62); line-height: 1.55; }

/* Chat panel */
.chat {
  background: var(--surface); border-radius: var(--r-xl); border: 1px solid var(--line);
  box-shadow: var(--shadow-xl); overflow: hidden; display: flex; flex-direction: column;
  height: 560px;
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.chat__head .avatar-ai { width: 38px; height: 38px; border-radius: 12px; background: var(--grad-ai); display: grid; place-items: center; flex: none; }
.chat__head .avatar-ai svg { width: 20px; height: 20px; color: #fff; }
.chat__head b { display: block; color: var(--ink); font-size: .95rem; line-height: 1.25; }
.chat__head small { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat__head .badge { margin-left: auto; }

.chat__log { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; max-width: 92%; animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.msg--user { margin-left: auto; flex-direction: row-reverse; }
.msg__av { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: .68rem; font-weight: 900; color: #fff; }
.msg--ai .msg__av { background: var(--grad-ai); }
.msg--user .msg__av { background: var(--solid-bg); }
.msg__txt { padding: 11px 15px; border-radius: 16px; font-size: .89rem; line-height: 1.6; }
.msg--ai .msg__txt { background: var(--surface-2); border: 1px solid var(--line); border-top-left-radius: 5px; color: var(--ink-2); }
.msg--user .msg__txt { background: var(--solid-bg); color: var(--solid-fg); border-top-right-radius: 5px; }
.msg__txt strong { color: var(--ink); font-weight: 800; }
.msg--user .msg__txt strong { color: #fff; }
.msg__txt ul { margin: 8px 0 0; display: grid; gap: 6px; }
.msg__txt li { padding-left: 16px; position: relative; font-size: .86rem; }
.msg__txt li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }

.chat__recs { display: grid; gap: 8px; margin-top: 10px; }
.chat__recs .rec-card { animation: rise .5s var(--ease) both; }

.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.chat__sugg { display: flex; gap: 8px; padding: 0 18px 12px; flex-wrap: wrap; }
.chat__sugg button {
  padding: 7px 13px; border-radius: var(--r-full); border: 1px dashed var(--line-2);
  background: transparent; color: var(--muted); font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: all .2s var(--ease);
}
.chat__sugg button:hover { color: var(--violet); border-color: var(--violet); border-style: solid; background: rgba(124,92,255,.07); }

.chat__form { display: flex; gap: 9px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.chat__form input {
  flex: 1; padding: 12px 16px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface); font-size: .88rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.chat__form input::placeholder { color: var(--faint); }
.chat__form input:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,92,255,.18); }
.chat__send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--grad-ai); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease); }
.chat__send:hover { transform: scale(1.07); }
.chat__send svg { width: 18px; height: 18px; }

.chat__note { text-align: center; font-size: .74rem; color: rgba(255,255,255,.45); margin-top: 14px; }

/* --------------------------------------------------------------------------
   8. COURSES
   -------------------------------------------------------------------------- */
.courses__bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.search {
  position: relative; flex: 1; min-width: 240px;
}
.search input {
  width: 100%; padding: 13px 16px 13px 44px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface); font-size: .9rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--faint); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }

.course {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.course::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--c, var(--grad-brand)); opacity: 0; transition: opacity .3s var(--ease);
}
.course:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course:hover::before { opacity: 1; }
.course.hide { display: none; }

.course__top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.course__ico {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: .78rem; letter-spacing: -.02em;
}
.course__cat { font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.course h3 { font-size: 1.04rem; margin: 3px 0 0; line-height: 1.3; }
.course__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.course__meta span { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--muted); font-weight: 600; }
.course__meta svg { width: 14px; height: 14px; color: var(--faint); }
.course__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price b { font-size: 1.18rem; font-weight: 900; color: var(--ink); letter-spacing: -.02em; }
.price span { font-size: .7rem; color: var(--faint); display: block; }
.course__link { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 800; color: var(--brand); }
.course__link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.course:hover .course__link svg { transform: translateX(3px); }

.ai-pick {
  position: absolute; top: 14px; right: 14px;
  display: none; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: var(--r-full);
  background: var(--grad-ai); color: #fff; font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.course.is-pick .ai-pick { display: inline-flex; }
.course.is-pick { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,92,255,.12); }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); display: none; }
.empty.on { display: block; }
.empty svg { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--faint); }

/* --------------------------------------------------------------------------
   9. PATH / STEPS
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step {
  position: relative; padding: 26px 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step__n {
  counter-increment: s; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-soft); color: var(--brand); font-weight: 900; font-size: 1rem;
}
.step__n::before { content: "0" counter(s); }
.step h3 { font-size: 1.02rem; margin-bottom: 7px; }
.step p { font-size: .87rem; color: var(--muted); margin: 0; line-height: 1.6; }
.step__tag { display: inline-flex; margin-top: 12px; }

/* --------------------------------------------------------------------------
   10. RESOURCE HUB (tabs)
   -------------------------------------------------------------------------- */
.tabs { display: inline-flex; padding: 5px; gap: 4px; border-radius: var(--r-full); background: var(--surface-2); border: 1px solid var(--line); margin: 0 auto 32px; }
.tabs button {
  padding: 9px 20px; border: 0; border-radius: var(--r-full); background: transparent;
  color: var(--muted); font-size: .87rem; font-weight: 700; cursor: pointer; transition: all .22s var(--ease);
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab-panel[hidden] { display: none; }

.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.res {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.res:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.res__thumb {
  aspect-ratio: 16/9; position: relative; display: grid; place-items: center;
  background: var(--c, var(--grad-ink)); overflow: hidden;
}
.res__thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 30px 30px;
}
.res__play {
  width: 54px; height: 54px; border-radius: 50%; z-index: 1;
  background: rgba(255,255,255,.94); display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.28); transition: transform .25s var(--ease);
}
.res:hover .res__play { transform: scale(1.12); }
.res__play svg { width: 20px; height: 20px; color: var(--brand); margin-left: 3px; }
.res__len { position: absolute; bottom: 10px; right: 10px; z-index: 1; padding: 3px 8px; border-radius: 6px; background: rgba(4,38,59,.78); color: #fff; font-size: .7rem; font-weight: 700; }
.res__type { position: absolute; top: 10px; left: 10px; z-index: 1; }
.res__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.res__body small { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.res__body h3 { font-size: .98rem; margin: 6px 0 8px; line-height: 1.35; }
.res__body p { font-size: .84rem; color: var(--muted); margin: 0 0 14px; }
.res__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: var(--muted); font-weight: 600; }

.pdf-icon { width: 46px; height: 56px; border-radius: 6px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); position: relative; z-index: 1; }
.pdf-icon span { font-size: .62rem; font-weight: 900; color: var(--brand); letter-spacing: .04em; }

/* --------------------------------------------------------------------------
   11. WEBINARS
   -------------------------------------------------------------------------- */
.webinars { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.web {
  display: flex; gap: 16px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.web:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.web.is-live { border-color: var(--brand); }
.web__date {
  width: 62px; flex: none; text-align: center; padding: 10px 0; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line);
}
.web__date b { display: block; font-size: 1.35rem; font-weight: 900; color: var(--ink); line-height: 1; }
.web__date span { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.web__body { flex: 1; min-width: 0; }
.web__body h3 { font-size: .98rem; margin: 0 0 6px; }
.web__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.web__row span { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.web__row svg { width: 14px; height: 14px; color: var(--faint); }
.seats { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-bottom: 6px; }
.seats i { display: block; height: 100%; border-radius: 3px; background: var(--grad-brand); }
.seats-txt { font-size: .72rem; color: var(--faint); font-weight: 600; }

/* --------------------------------------------------------------------------
   12. TESTIMONIALS + LOGOS
   -------------------------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  padding: 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column;
}
.quote .stars { margin-bottom: 12px; font-size: .9rem; }
.quote p { font-size: .93rem; color: var(--ink-2); line-height: 1.7; margin-bottom: 20px; }
.quote__by { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote__by i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .84rem; color: #fff; flex: none; }
.quote__by b { display: block; font-size: .88rem; color: var(--ink); line-height: 1.25; }
.quote__by span { font-size: .76rem; color: var(--muted); }

/* --- Logo marquee ------------------------------------------------------- */
.logo-wall { display: grid; gap: 22px; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 18px; width: max-content; animation: slide 46s linear infinite; }
.marquee__track--rev { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

.logo-chip {
  flex: none; display: grid; place-items: center;
  width: 176px; height: 78px; padding: 14px 20px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.logo-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.logo-chip img {
  max-width: 100%; max-height: 42px; width: auto; height: auto; object-fit: contain;
  transition: transform .3s var(--ease);   /* full brand colour, always */
}
.logo-chip:hover img { transform: scale(1.05); }

/* On deep water the chip becomes a light plate, so each mark keeps its own
   brand colours instead of being flattened or washed out. */
:root[data-theme="dark"] .logo-chip {
  background: #FFFFFF; border-color: rgba(255,255,255,.14);
}
:root[data-theme="dark"] .logo-chip:hover {
  border-color: var(--brand); box-shadow: 0 10px 26px -10px rgba(12,140,233,.6);
}

@media (max-width: 620px) {
  .logo-chip { width: 140px; height: 66px; padding: 12px 16px; }
  .logo-chip img { max-height: 34px; }
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary {
  padding: 17px 20px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 700; color: var(--ink); font-size: .96rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 11px; height: 11px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px,-2px); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px,-3px); }
.faq p { padding: 0 20px 18px; margin: 0; color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------------------------------
   14. CTA + FOOTER
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(34px, 5vw, 60px); background: var(--grad-ink); color: #fff; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 20%, rgba(6,182,212,.38), transparent 60%),
              radial-gradient(500px 300px at 10% 90%, rgba(124,92,255,.34), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 16ch; }
.cta-band p { color: rgba(255,255,255,.68); max-width: 48ch; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band__acts { display: flex; gap: 12px; flex-wrap: wrap; }

.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px) 0; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 44px; }
.footer__about p { font-size: .88rem; color: var(--muted); max-width: 40ch; margin: 16px 0 20px; }
.footer h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.footer li { margin-bottom: 10px; }
.footer li a { font-size: .88rem; color: var(--muted); transition: color .2s var(--ease); }
.footer li a:hover { color: var(--brand); }
.socials { display: flex; gap: 9px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--muted); transition: all .2s var(--ease); }
.socials a:hover { color: #fff; background: var(--solid-bg); border-color: var(--solid-bg); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }
.footer__contact { display: grid; gap: 10px; margin-bottom: 18px; }
.footer__contact a { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.footer__contact a:hover { color: var(--brand); }
.footer__contact svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.footer__bar { border-top: 1px solid var(--line); padding-block: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--faint); }
.footer__bar a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   15. FLOATING AI LAUNCHER
   -------------------------------------------------------------------------- */
.ai-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 14px; border: 0; border-radius: var(--r-full);
  background: var(--grad-ai); color: #fff; font-weight: 700; font-size: .88rem;
  box-shadow: 0 14px 32px -10px rgba(124,92,255,.70); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.ai-fab:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 44px -12px rgba(124,92,255,.80); }
.ai-fab svg { width: 20px; height: 20px; }
.ai-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--violet); animation: ping 2.4s var(--ease) infinite;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .float-tag--a { left: -10px; }
  .float-tag--b { right: -10px; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(4n) { border-right: 0; }
  .stat { border-bottom: 1px solid var(--line); }
  .ai-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav, .header__actions .btn, .topbar__note { display: none; }
  .burger { display: grid; }
  .mega { display: none; }
}

@media (max-width: 620px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .chat { height: 500px; }
  .hero__cta .btn { width: 100%; }
  .cta-band__acts .btn { width: 100%; }
  .ai-fab span { display: none; }
  .ai-fab { padding: 15px; border-radius: 50%; }
  .float-tag--a, .float-tag--b { display: none; }
  .tabs { display: flex; width: 100%; overflow-x: auto; }
}

/* --------------------------------------------------------------------------
   17. CORPORATE ENQUIRY FORM
   -------------------------------------------------------------------------- */
.corp-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-lg);
  display: grid; gap: 14px;
}
.corp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.corp-form label {
  display: grid; gap: 6px;
  font-size: .8rem; font-weight: 700; color: var(--ink);
}
.corp-form input, .corp-form select, .corp-form textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--bg);
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.corp-form textarea { resize: vertical; min-height: 84px; font-family: inherit; }
.corp-form input::placeholder, .corp-form textarea::placeholder { color: var(--faint); font-weight: 400; }
.corp-form input:focus, .corp-form select:focus, .corp-form textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: var(--ring);
}
.corp-form .btn { margin-top: 6px; }
.corp-form__note { margin: 0; font-size: .78rem; color: var(--muted); text-align: center; }

@media (max-width: 620px) { .corp-form__row { grid-template-columns: 1fr; } }

/* Compact home-page trust strip label */
.strip-label {
  text-align: center; margin: 0 0 26px;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
}

/* Sprite holder: must stay rendered (not display:none) so gradient paint
   servers defined inside it can be referenced via fill:url(#id). */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   18. ABOUT PAGE
   -------------------------------------------------------------------------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-split p { color: var(--muted); }

.timeline { position: relative; padding-left: 26px; display: grid; gap: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--cyan), var(--aqua));
  border-radius: 2px; opacity: .55;
}
.tl { position: relative; }
.tl__dot {
  position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--brand); box-sizing: border-box;
}
.tl__dot--now { background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.tl b { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 4px; }
.tl p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.6; }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.member {
  padding: 26px 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.member__av {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.05rem;
}
.member b { display: block; color: var(--ink); font-size: 1rem; }
.member__role { display: block; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.member p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   19. WHY BISP — comparison table + check lists
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.12); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; background: rgba(255,255,255,.04); }
.compare th, .compare td {
  padding: 15px 18px; text-align: left; font-size: .88rem;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.compare thead th {
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.62); background: rgba(255,255,255,.05); white-space: nowrap;
}
.compare tbody th { color: #fff; font-weight: 700; white-space: nowrap; }
.compare td { color: rgba(255,255,255,.66); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* The BISP column is highlighted end to end */
.compare thead .compare__us {
  color: #fff; background: linear-gradient(180deg, rgba(12,140,233,.34), rgba(20,184,166,.22));
}
.compare td.compare__us {
  color: #fff; font-weight: 700; background: rgba(12,140,233,.12);
  position: relative;
}
.compare td.compare__us::before {
  content: "✓"; margin-right: 8px; color: var(--aqua); font-weight: 900;
}

/* Check lists */
.check-list { display: grid; gap: 11px; margin: 18px 0 22px; }
.check-list li {
  position: relative; padding-left: 30px; font-size: .92rem; color: var(--muted); line-height: 1.6;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(20,184,166,.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314B8A6' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.check-list--no li::before {
  background-color: rgba(255,107,87,.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B57' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

@media (max-width: 620px) { .compare th, .compare td { padding: 12px 14px; font-size: .82rem; } }

/* --------------------------------------------------------------------------
   20. CONTACT PAGE
   -------------------------------------------------------------------------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.contact-card {
  display: block; padding: 26px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
a.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.contact-card__ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
}
.contact-card__ico svg { width: 21px; height: 21px; }
.contact-card b { display: block; color: var(--ink); font-size: 1rem; }
.contact-card__val {
  display: block; font-size: .92rem; font-weight: 800; color: var(--brand); margin: 3px 0 10px;
  word-break: break-word;
}
.contact-card p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* Enquiry form sits on the dark band — lift its surfaces */
.ai-sec .corp-form { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.ai-sec .corp-form label { color: #fff; }
.ai-sec .corp-form input, .ai-sec .corp-form select, .ai-sec .corp-form textarea {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff;
}
.ai-sec .corp-form input::placeholder, .ai-sec .corp-form textarea::placeholder { color: rgba(255,255,255,.45); }
.ai-sec .corp-form select option { color: #062A40; }
.ai-sec .corp-form__note { color: rgba(255,255,255,.55); }

/* --------------------------------------------------------------------------
   21. POLICY PAGES (refund, disclaimer, terms…)
   -------------------------------------------------------------------------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--faint); margin-bottom: 20px; }
.crumbs a { color: var(--brand); font-weight: 700; }
.crumbs a:hover { text-decoration: underline; }

.policy__meta {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--faint);
}
.policy__meta b { color: var(--ink-2); }

.policy-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.policy-card {
  padding: 24px 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.policy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.policy-card__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.policy-card__ico svg { width: 20px; height: 20px; }
.policy-card b { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 6px; }
.policy-card p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.6; }
.policy-card p b { display: inline; color: var(--ink); }

.policy__note {
  max-width: 820px; margin: 34px auto 0; padding: 18px 20px;
  border-radius: var(--r); border: 1px dashed var(--line-2); background: var(--surface);
  font-size: .85rem; color: var(--muted); line-height: 1.65;
}
.policy__note b { color: var(--ink); }

/* Long-form legal prose */
.prose { max-width: 820px; margin-inline: auto; }
.prose h3 { margin: 32px 0 10px; font-size: 1.12rem; }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: .93rem; line-height: 1.75; }
.prose ul { display: grid; gap: 8px; margin: 12px 0 18px; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.prose a { color: var(--brand); font-weight: 700; }
.prose a:hover { text-decoration: underline; }
.prose__block {
  padding: 20px 22px; border-radius: var(--r); border-left: 3px solid var(--brand);
  background: var(--surface-2); margin: 22px 0;
}
.prose__block p:last-child { margin-bottom: 0; }

/* Long-form prose sitting on the dark ocean band */
.prose--dark h3 { color: #fff; }
.prose--dark p, .prose--dark li { color: rgba(255,255,255,.68); }
.prose--dark ul li::before { background: var(--aqua); }
.prose--dark a { color: var(--sky); }
.prose--dark .prose__block {
  background: rgba(255,255,255,.06); border-left-color: var(--aqua);
}
.prose--dark .prose__block p { color: rgba(255,255,255,.82); }

/* --------------------------------------------------------------------------
   22. SITEMAP PAGE
   -------------------------------------------------------------------------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 4vw, 44px); }
.sitemap-col h3 {
  display: flex; align-items: center; gap: 11px;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 16px;
}
.sitemap-col__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.sitemap-col__ico svg { width: 16px; height: 16px; }

.sitemap-list { display: grid; gap: 2px; }
.sitemap-list li { border-bottom: 1px solid var(--line); }
.sitemap-list li:last-child { border-bottom: 0; }
.sitemap-list a {
  display: block; padding: 11px 0 3px;
  font-size: .95rem; font-weight: 700; color: var(--ink);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.sitemap-list a:hover { color: var(--brand); transform: translateX(3px); }
.sitemap-list a[aria-current="page"] { color: var(--brand); }
.sitemap-list span { display: block; padding-bottom: 11px; font-size: .8rem; color: var(--muted); }

/* Course index on the dark band */
.sitemap-courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.sitemap-track {
  padding: 22px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10);
}
.sitemap-track h3 {
  display: flex; align-items: center; gap: 9px;
  font-size: .92rem; color: #fff; margin-bottom: 14px;
}
.sitemap-track__dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.sitemap-track__n {
  margin-left: auto; font-size: .7rem; font-weight: 800;
  padding: 2px 8px; border-radius: var(--r-full);
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.75);
}
.sitemap-track ul { display: grid; gap: 10px; }
.sitemap-track li { padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sitemap-track li:last-child { border-bottom: 0; padding-bottom: 0; }
.sitemap-track a { font-size: .88rem; font-weight: 700; color: #fff; transition: color .2s var(--ease); }
.sitemap-track a:hover { color: var(--sky); }
.sitemap-track span { display: block; font-size: .76rem; color: rgba(255,255,255,.52); margin-top: 2px; }

/* --------------------------------------------------------------------------
   23. TRAINERS PAGE
   -------------------------------------------------------------------------- */
.trainer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.trainer {
  padding: 24px 22px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.trainer:hover {
  transform: translateY(-5px); border-color: rgba(255,255,255,.24);
  box-shadow: 0 20px 44px -18px rgba(0,0,0,.7);
}
.trainer.hide { display: none; }

.trainer__top { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.trainer__av {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: .95rem;
}
.trainer__top b { display: block; color: #fff; font-size: 1rem; line-height: 1.25; }
.trainer__role { display: block; font-size: .78rem; font-weight: 700; color: var(--sky); }
.trainer__yrs {
  margin-left: auto; align-self: flex-start; flex: none;
  padding: 3px 9px; border-radius: var(--r-full);
  background: rgba(255,255,255,.10); color: rgba(255,255,255,.75);
  font-size: .7rem; font-weight: 800; white-space: nowrap;
}
.trainer p { margin: 0 0 14px; font-size: .87rem; line-height: 1.62; color: rgba(255,255,255,.66); }
.trainer__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.trainer__tags span {
  padding: 3px 9px; border-radius: var(--r-full);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10);
  font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.72);
}

/* Filter chips sitting on the dark band */
.ai-sec .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.7); }
.ai-sec .chip:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.ai-sec .chip[aria-pressed="true"], .ai-sec .chip.is-active {
  background: #fff; border-color: #fff; color: #062A40;
}

/* --------------------------------------------------------------------------
   24. CLIENTS & PARTNERS PAGE
   -------------------------------------------------------------------------- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.client-tile {
  display: grid; place-items: center; padding: 24px 20px; min-height: 116px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.client-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.client-tile img {
  max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain;
  transition: transform .3s var(--ease);
}
.client-tile:hover img { transform: scale(1.05); }

/* Wordmark fallback for clients with no logo file yet */
.client-tile--text b, .logo-chip--text b {
  font-size: 1.05rem; font-weight: 900; letter-spacing: -.02em;
  color: var(--ink-2); text-align: center; line-height: 1.25;
}
.logo-chip--text b { font-size: .95rem; }

/* Keep brand colours readable on the deep-water theme */
:root[data-theme="dark"] .client-tile { background: #FFFFFF; border-color: rgba(255,255,255,.14); }
:root[data-theme="dark"] .client-tile--text { background: var(--surface); border-color: var(--line); }
:root[data-theme="dark"] .client-tile--text b { color: var(--ink); }

/* Honest empty state for the partners section */
.partner-empty {
  max-width: 640px; margin-inline: auto; text-align: center;
  padding: clamp(28px, 4vw, 44px);
  background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.20);
  border-radius: var(--r-xl);
}
.partner-empty__ico {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
}
.partner-empty__ico svg { width: 24px; height: 24px; }
.partner-empty b { display: block; color: #fff; font-size: 1.15rem; margin-bottom: 10px; }
.partner-empty p { color: rgba(255,255,255,.62); font-size: .92rem; max-width: 48ch; margin-inline: auto; }
.partner-empty__acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

@media (max-width: 620px) {
  .client-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .client-tile { min-height: 96px; padding: 18px 14px; }
  .client-tile img { max-height: 40px; }
  .partner-empty__acts .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   25. FAQ PAGE
   -------------------------------------------------------------------------- */
.faq-search { position: relative; margin-top: 30px; max-width: 620px; }
.faq-search input {
  width: 100%; padding: 15px 46px 15px 48px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface); font-size: .95rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-search input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }
.faq-search > svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--faint); }
.faq-search button {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--muted); display: grid; place-items: center; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.faq-search button:hover { background: var(--brand); color: #fff; }
.faq-search button svg { width: 15px; height: 15px; }

.faq-group + .faq-group { margin-top: clamp(30px, 4vw, 46px); }
.faq-group__h {
  display: flex; align-items: center; gap: 11px;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
}
.faq-group__h::before { content: ""; width: 20px; height: 2px; background: var(--brand); border-radius: 2px; }
.faq-group__h span {
  font-size: .7rem; letter-spacing: 0; padding: 2px 8px; border-radius: var(--r-full);
  background: var(--brand-soft); color: var(--brand);
}
.faq-group .faq { max-width: none; margin-inline: 0; }
.faq p a { color: var(--brand); font-weight: 700; }
.faq p a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   26. COURSE GRID — progressive reveal
   -------------------------------------------------------------------------- */
.course.hide-more { display: none; }
.course-more { text-align: center; margin-top: 34px; }
.course-more__count { display: block; font-size: .8rem; color: var(--muted); margin-top: 12px; }
.course-more .btn svg { transition: transform .3s var(--ease); }
.course-more .btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   27. BLOG
   -------------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.post {
  display: flex; flex-direction: column; padding: 26px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer;
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand); }

.post__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.post__cat {
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}
.post__tag {
  font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  padding: 3px 9px; border-radius: var(--r-full);
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.post h3 { font-size: 1.06rem; line-height: 1.35; margin: 0 0 10px; }
.post > p { font-size: .88rem; color: var(--muted); line-height: 1.65; margin: 0 0 20px; }

.post__foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.post__by { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--ink); }
.post__by i {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-style: normal; font-size: .66rem; font-weight: 900;
  color: #fff; background: var(--grad-brand);
}
.post__meta { font-size: .76rem; color: var(--faint); }

/* Featured post */
.post--feature {
  flex-direction: row; align-items: center; gap: clamp(20px, 4vw, 44px);
  padding: clamp(26px, 4vw, 40px);
  background: var(--bg-alt); border-color: var(--line-2);
}
.post--feature h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.25; margin: 0 0 12px; }
.post--feature > div { flex: 1; min-width: 0; }
.post--feature p { font-size: .95rem; color: var(--muted); margin: 0 0 22px; max-width: 62ch; }
.post__art {
  width: clamp(110px, 15vw, 168px); aspect-ratio: 1; flex: none;
  border-radius: var(--r-xl); display: grid; place-items: center;
  background: var(--grad-brand); box-shadow: var(--shadow-lg);
}
.post__art svg { width: 44%; height: 44%; color: #fff; opacity: .92; }

@media (max-width: 720px) {
  .post--feature { flex-direction: column-reverse; align-items: flex-start; }
  .post__art { width: 84px; }
}

/* Footer blog column */
.footer__blog li a::before {
  content: "›"; margin-right: 7px; color: var(--brand); font-weight: 800;
}

/* --------------------------------------------------------------------------
   28. TOPIC ARCHIVE PAGES
   -------------------------------------------------------------------------- */
.topic-stats {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px;
  font-size: .86rem; color: var(--muted);
}
.topic-stats b { color: var(--ink); font-weight: 800; }

.topic-course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.topic-course {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.topic-course:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.26); }
.topic-course > div { flex: 1; min-width: 0; }
.topic-course b { display: block; color: #fff; font-size: .92rem; line-height: 1.3; }
.topic-course span { font-size: .76rem; color: rgba(255,255,255,.6); }
.topic-course .btn { flex: none; }

/* --------------------------------------------------------------------------
   29. OFFICES + MAP
   -------------------------------------------------------------------------- */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.office {
  display: flex; flex-direction: column; padding: 26px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.office:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.office.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.office__top { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.office__flag {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  background: var(--surface-2); border: 1px solid var(--line);
}
.office__top b { display: block; color: var(--ink); font-size: 1.02rem; line-height: 1.25; }
.office__role { display: block; font-size: .78rem; color: var(--muted); }
.office__top .badge { margin-left: auto; flex: none; }

.office__list { display: grid; gap: 15px; margin-bottom: 20px; }
.office__list li { display: flex; gap: 12px; }
.office__list > li > svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--brand); }
.office__list b {
  display: block; font-size: .7rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 3px;
}
.office__list address { font-style: normal; font-size: .89rem; color: var(--ink-2); line-height: 1.6; }
.office__list a, .office__list > li > div > span { font-size: .89rem; color: var(--ink-2); }
.office__list a { font-weight: 700; color: var(--brand); }
.office__list a:hover { text-decoration: underline; }

.office__acts { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Fields still awaiting real data — visibly provisional, easy to grep for */
.tbc {
  color: var(--faint); font-style: italic;
  border-bottom: 1px dashed var(--line-2); padding-bottom: 1px;
}
.tbc::before { content: "⚠ "; font-style: normal; color: var(--amber); }

/* Map */
.map-block {
  margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-md);
}
.map-block__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  flex-wrap: wrap;
}
.map-block__bar .tabs { margin: 0; }
.map-block__link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .84rem; font-weight: 800; color: var(--brand);
}
.map-block__link svg { width: 15px; height: 15px; }
.map-block__link:hover { text-decoration: underline; }

.map-block__frame { position: relative; aspect-ratio: 21 / 8; min-height: 300px; background: var(--surface-2); }
.map-block__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-block__fallback { padding: 24px; text-align: center; color: var(--muted); font-size: .9rem; }
:root[data-theme="dark"] .map-block__frame iframe { filter: invert(.92) hue-rotate(180deg) saturate(.8); }

@media (max-width: 620px) {
  .map-block__frame { aspect-ratio: 4 / 3; }
  .map-block__bar { justify-content: center; }
  .office__acts .btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   30. CORPORATE INTRO
   -------------------------------------------------------------------------- */
.intro-split {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.intro-split > * { min-width: 0; }
.intro-split__copy h2 { max-width: 16ch; }
.intro-lede {
  font-size: clamp(1rem, 1.25vw, 1.1rem); line-height: 1.75;
  color: var(--muted); max-width: 56ch;
}
.intro-lede + .intro-lede { margin-top: 4px; }
.intro-split__acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.intro-split__side { display: grid; gap: 14px; }
.intro-stat {
  display: flex; gap: 14px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.intro-stat:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.intro-stat__ico {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
}
.intro-stat__ico svg { width: 19px; height: 19px; }
.intro-stat b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 4px; }
.intro-stat p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) {
  .intro-split { grid-template-columns: 1fr; }
  .intro-split__copy h2 { max-width: none; }
}

/* --------------------------------------------------------------------------
   31. CORPORATE — welcome band, advantages, contact block
   -------------------------------------------------------------------------- */
.welcome-band {
  position: relative; overflow: hidden;
  padding-block: clamp(52px, 7vw, 88px);
  background: var(--grad-ink); color: #fff; text-align: center;
}
.welcome-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 340px at 20% 0%, rgba(12,140,233,.36), transparent 62%),
              radial-gradient(600px 340px at 85% 100%, rgba(20,184,166,.30), transparent 62%);
}
.welcome-band__inner { position: relative; z-index: 1; }
.welcome-band h2 {
  color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 14px;
}
.welcome-band p {
  color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.35vw, 1.14rem);
  max-width: 62ch; margin: 0 auto 28px; line-height: 1.7;
}

.advantages { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.advantage {
  padding: 28px 24px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.advantage:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.advantage__ico {
  width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 18px;
  display: grid; place-items: center;
}
.advantage__ico svg { width: 25px; height: 25px; }
.advantage h3 {
  font-size: .84rem; font-weight: 800; letter-spacing: .07em;
  color: var(--ink); margin-bottom: 10px; line-height: 1.4;
}
.advantage p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.65; }

/* Corporate contact block */
.corp-contact { display: grid; gap: 18px; margin-top: 26px; }
.corp-contact__item { display: flex; gap: 13px; }
.corp-contact__item > svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--brand); }
.corp-contact__item b {
  display: block; font-size: .7rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 4px;
}
.corp-contact__item address { font-style: normal; font-size: .89rem; color: var(--ink-2); line-height: 1.65; }
.corp-contact__item a { font-size: .89rem; font-weight: 700; color: var(--brand); }
.corp-contact__item a:hover { text-decoration: underline; }

/* Message character counter */
.corp-form__hint {
  display: block; margin-top: 6px; font-size: .74rem; font-weight: 600; color: var(--faint);
}
.corp-form__hint.is-ok { color: var(--teal); }
.corp-form__hint.is-short { color: var(--coral); }

/* --------------------------------------------------------------------------
   32. ABOUT — mission / vision / company statistics
   -------------------------------------------------------------------------- */
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.mv {
  padding: clamp(26px, 3.5vw, 38px);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--r-xl);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.mv:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.26); }
.mv__ico {
  width: 52px; height: 52px; border-radius: 15px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff;
}
.mv__ico svg { width: 23px; height: 23px; }
.mv h2 { color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 14px; }
.mv p { color: rgba(255,255,255,.68); font-size: .93rem; line-height: 1.75; }
.mv p:last-child { margin-bottom: 0; }

.mv__list { display: grid; gap: 13px; }
.mv__list li {
  position: relative; padding-left: 26px;
  color: rgba(255,255,255,.68); font-size: .93rem; line-height: 1.7;
}
.mv__list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--aqua); box-shadow: 0 0 0 4px rgba(20,184,166,.18);
}

/* Company statistics — image left, figures right */
.cstats-split {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px); align-items: start;
}

.cstats-art { margin: 0; position: sticky; top: 96px; }
.cstats-art img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 4 / 3.4; object-fit: cover;
  border-radius: var(--r-xl); border: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
}
.cstats-art::after {
  content: ""; display: block; height: 5px; width: 72%; margin: 16px auto 0;
  border-radius: 3px; background: var(--grad-brand);
  background-size: 220% 100%; opacity: .85;
}

.cstats-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.cstats-list li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 16px 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.cstats-list li:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.cstats-list b {
  flex: none; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 900; letter-spacing: -.03em;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cstats-list span { font-size: .84rem; color: var(--muted); line-height: 1.45; }

/* The two long ones read better across the full width */
.cstats-list li:nth-child(5), .cstats-list li:nth-child(11) { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .cstats-split { grid-template-columns: 1fr; }
  .cstats-art { position: static; max-width: 640px; margin-inline: auto; }
  .cstats-art img { aspect-ratio: 16 / 10; }
}
@media (max-width: 620px) {
  .cstats-list { grid-template-columns: 1fr; }
  .cstats-list li:nth-child(5), .cstats-list li:nth-child(11) { grid-column: auto; }
}

/* --------------------------------------------------------------------------
   33. WEBINARS — illustration beside the session list
   -------------------------------------------------------------------------- */
.webinar-split {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 42px); align-items: start;
}
.webinar-art {
  margin: 0; position: sticky; top: 96px; text-align: center;
  /* pulled out past the container padding so it sits further left */
  margin-left: clamp(-110px, -6vw, -20px);
}
.webinar-art img,
.webinar-art__video {
  width: 100%; max-width: none; height: auto; display: block;
  animation: floatArt 7s ease-in-out infinite;
}
.webinar-art__video {
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  background: var(--surface-2);
}
.webinar-art img { filter: drop-shadow(0 22px 44px rgba(6,42,64,.22)); }
.webinar-art figcaption {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px;
  padding: 9px 16px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
:root[data-theme="dark"] .webinar-art img { filter: drop-shadow(0 18px 36px rgba(0,0,0,.55)); }

/* The list beside it stacks in one column so cards stay readable */
.webinar-split .webinars { grid-template-columns: 1fr; }

@media (max-width: 980px) {
  .webinar-split { grid-template-columns: 1fr; }
  .webinar-art { position: static; max-width: 560px; margin-inline: auto; margin-left: auto; }
  .webinar-split .webinars { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* ISO badge */
.iso-badge {
  height: 40px; width: auto; display: block; margin-top: 4px;
  border-radius: 6px;
}
:root[data-theme="dark"] .iso-badge {
  background: #fff; padding: 4px 7px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* Star ratings — spaced so each star reads separately */
.stars {
  letter-spacing: .32em; padding-right: .32em;
  text-shadow: 0 0 10px rgba(255,176,32,.35);
}
.quote .stars { letter-spacing: .38em; padding-right: .38em; }

/* Webinar status badges — roomier so "Live now" / "Free demo" read clearly */
.web .badge {
  padding: 6px 14px; font-size: .72rem; letter-spacing: .07em; gap: 7px;
  border-radius: var(--r-full);
}
.web .badge--live {
  background: rgba(255,107,87,.16); color: var(--coral);
  box-shadow: 0 0 0 1px rgba(255,107,87,.24) inset;
}
.web .badge--free {
  background: rgba(20,184,166,.16); color: var(--aqua);
  box-shadow: 0 0 0 1px rgba(20,184,166,.24) inset;
}
.web .badge--live .dot-live { background: var(--coral); }
.web .badge--live .dot-live::after { border-color: var(--coral); }

/* If autoplay is refused, show a play affordance over the poster */
.webinar-art { position: relative; }
.webinar-art.needs-tap::after {
  content: ""; position: absolute; left: 50%; top: 42%; translate: -50% -50%;
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230C8CE9'%3E%3Cpath d='M8 5.5v13l11-6.5-11-6.5z'/%3E%3C/svg%3E") center/26px no-repeat;
  box-shadow: 0 10px 26px rgba(0,0,0,.3); pointer-events: none;
}
.webinar-art__video { cursor: pointer; }

/* --------------------------------------------------------------------------
   34. BOOTCAMP DROPDOWN
   Two items only, so a single narrow column reads better than the wide
   two-column mega. Right-aligned because it sits near the end of the nav.
   -------------------------------------------------------------------------- */
.mega--bootcamp {
  width: min(430px, 92vw);
  grid-template-columns: 1fr;
  left: auto; right: 0; translate: none;
  padding: 14px;
}

/* The label/description pair is wrapped in a span, so target it directly */
.mega--bootcamp .mega__link { align-items: flex-start; gap: 13px; }
.mega--bootcamp .mega__link > span:last-child { display: block; min-width: 0; }
.mega--bootcamp .mega__link b {
  display: block; color: var(--ink); font-size: .94rem; font-weight: 800; margin-bottom: 3px;
}
.mega--bootcamp .mega__link > span:last-child > span {
  display: block; font-size: .79rem; color: var(--muted); line-height: 1.5;
}
.mega--bootcamp .mega__ico {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  font-size: .82rem; font-weight: 900; color: #fff; letter-spacing: -.02em;
}
.mega--bootcamp .mega__link:hover b { color: var(--brand); }
.mega--bootcamp .mega__foot {
  margin-top: 6px; padding-top: 13px; gap: 12px; flex-wrap: wrap;
}
.mega--bootcamp .mega__foot span { font-size: .76rem; }

/* Chevron picks up the brand colour while the panel is open */
.nav__item.open .nav__toggle { color: var(--brand); background: var(--brand-soft); }

/* --------------------------------------------------------------------------
   35. LIVE ARCHIVE LINK-OUT (topic pages)
   -------------------------------------------------------------------------- */
.live-archive {
  display: flex; align-items: center; gap: 15px;
  margin: 0 0 clamp(24px, 3vw, 36px);
  padding: 16px 20px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.live-archive:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.live-archive__ico {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.live-archive__ico svg { width: 19px; height: 19px; }
.live-archive > span:nth-child(2) { flex: 1; min-width: 0; }
.live-archive b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.live-archive b + span { font-size: .81rem; color: var(--muted); }
.live-archive__go { width: 18px; height: 18px; flex: none; color: var(--brand); transition: transform .25s var(--ease); }
.live-archive:hover .live-archive__go { transform: translateX(4px); }
