/* Self-hosted variable fonts — no third-party request, no render-blocking
   round trip to fonts.googleapis.com. Latin + Latin Extended only. */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   aiconsultant.co.ke — Design System
   Palette: warm paper + ink, terracotta primary, deep teal, savanna gold.
   Written mobile-first. No frameworks, no build step.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  /* Brand */
  --brand:        #DE5B37;   /* vivid — fills, borders, large display text  */
  --brand-text:   #B4451F;   /* AA-safe on every light surface (>=4.9:1)     */
  --brand-600:    #C64A2A;
  --brand-700:    #A63C21;
  --brand-soft:   #FDEDE7;
  --btn-bg:       #C0431F;   /* white text on this = 5.17:1                  */
  --btn-bg-h:     #A63C21;
  --btn-fg:       #FFFFFF;
  --wa-bg:        #17853F;   /* white text on this = 4.71:1                  */
  --wa-bg-h:      #116B33;
  --wa-fg:        #FFFFFF;
  --wa-shadow:    rgba(23,133,63,.38);
  --teal:         #0C5A55;
  --teal-600:     #094642;
  --teal-soft:    #E3F1EF;
  --gold:         #E9B44C;
  --gold-soft:    #FCF3DF;

  /* Neutrals (warm) */
  --ink:          #0C1015;
  --ink-2:        #2A3340;
  --ink-3:        #55606E;
  --ink-4:        #6B7480;
  --line:         #E5DFD7;
  --line-2:       #F0EBE4;
  --paper:        #FBF9F6;
  --paper-2:      #F5F1EB;
  --card:         #FFFFFF;
  --card-2:       #FFFDFB;

  /* Semantic */
  --bg:           var(--paper);
  --fg:           var(--ink);
  --muted:        var(--ink-3);
  --border:       var(--line);
  --surface:      var(--card);
  --surface-2:    var(--paper-2);
  --accent:       var(--brand);
  --accent-fg:    #fff;
  --ring:         color-mix(in srgb, var(--brand) 45%, transparent);

  /* Type */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --t-xs:   clamp(.75rem, .72rem + .12vw, .8125rem);
  --t-sm:   clamp(.8125rem, .79rem + .14vw, .875rem);
  --t-base: clamp(.9375rem, .91rem + .18vw, 1.0625rem);
  --t-lg:   clamp(1.0625rem, 1.01rem + .28vw, 1.1875rem);
  --t-xl:   clamp(1.1875rem, 1.1rem + .38vw, 1.375rem);
  --t-2xl:  clamp(1.375rem, 1.24rem + .62vw, 1.75rem);
  --t-3xl:  clamp(1.625rem, 1.4rem + 1.05vw, 2.25rem);
  --t-4xl:  clamp(2rem, 1.6rem + 1.85vw, 3rem);
  --t-5xl:  clamp(2.35rem, 1.75rem + 2.75vw, 3.9rem);
  --t-6xl:  clamp(2.7rem, 1.9rem + 3.7vw, 4.75rem);

  /* Space */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 2.75rem; --sp-8: 3.5rem;
  --sp-9: 4.5rem;  --sp-10: 6rem;   --sp-11: 8rem;

  /* Shape */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;

  /* Elevation — warm, low-contrast, layered */
  --sh-1: 0 1px 2px rgba(20,14,8,.05), 0 1px 3px rgba(20,14,8,.04);
  --sh-2: 0 2px 4px rgba(20,14,8,.04), 0 6px 16px -4px rgba(20,14,8,.07);
  --sh-3: 0 4px 8px rgba(20,14,8,.05), 0 16px 32px -8px rgba(20,14,8,.10);
  --sh-4: 0 8px 16px rgba(20,14,8,.06), 0 32px 64px -16px rgba(20,14,8,.16);

  --container: 1200px;
  --container-narrow: 760px;
  --header-h: 68px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

:root[data-theme="dark"] {
  --ink:      #F2EFEA;
  --ink-2:    #D5D0C9;
  --ink-3:    #A29C94;
  --ink-4:    #8A857D;
  --line:     #262B33;
  --line-2:   #1C212A;
  --paper:    #0A0D12;
  --paper-2:  #111620;
  --card:     #121822;
  --card-2:   #161D28;

  --brand:      #F0714B;
  --brand-text: #F0714B;   /* already >=5.7:1 on every dark surface          */
  --brand-600:  #E2593A;
  --brand-700:  #C64A2A;
  --brand-soft: #2A1710;
  --btn-bg:     #F0714B;   /* dark text on this = 6.55:1                     */
  --btn-bg-h:   #F2825E;
  --btn-fg:     #160D08;
  --wa-bg:      #25D366;   /* dark text on this = 8.34:1                     */
  --wa-bg-h:    #3FE07C;
  --wa-fg:      #08240F;
  --wa-shadow:  rgba(37,211,102,.32);
  --teal:       #4FBFB2;
  --teal-600:   #3AA79A;
  --teal-soft:  #0E2422;
  --gold:       #F0C46A;
  --gold-soft:  #2A2113;

  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 2px 6px rgba(0,0,0,.4), 0 8px 20px -6px rgba(0,0,0,.5);
  --sh-3: 0 4px 10px rgba(0,0,0,.45), 0 18px 38px -10px rgba(0,0,0,.6);
  --sh-4: 0 10px 20px rgba(0,0,0,.5), 0 36px 70px -18px rgba(0,0,0,.7);
}

/* ------------------------------------------------------------ 2. Reset/base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "cv05" 1;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
.ic { display: inline-block; width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4, h5 {
  font-weight: 800; line-height: 1.12; letter-spacing: -.022em;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }
:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--brand); color: #fff; }
hr { border: 0; border-top: 1px solid var(--border); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-md) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ----------------------------------------------------------- 3. Layout core */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: 1360px; }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--surface-2); }
/* Dark bands keep literal colours: deriving them from --ink / --paper would
   invert them in dark mode, where those tokens swap roles. */
.section--ink {
  background: #0C1015; color: #F2EFEA;
  --fg: #F2EFEA; --ink-2: #D5D0C9; --ink-3: #A9A49C; --ink-4: #8A857D;
  --muted: #A9A49C; --border: #262B33; --surface: #151B24;
  --brand-text: #F0714B; --btn-bg: #F0714B; --btn-bg-h: #F2825E; --btn-fg: #160D08;
}
:root[data-theme="dark"] .section--ink { background: #06090D; }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }

.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split--reverse > :first-child { order: 2; }
  .split--narrow-left { grid-template-columns: .85fr 1fr; }
}

/* ------------------------------------------------------- 4. Type utilities */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand-text);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--brand); flex: none;
}
.eyebrow--plain::before { display: none; }

.h1 { font-size: var(--t-5xl); }
.h2 { font-size: var(--t-4xl); }
.h3 { font-size: var(--t-2xl); letter-spacing: -.018em; }
.h4 { font-size: var(--t-xl); letter-spacing: -.012em; }
.h5 { font-size: var(--t-lg); letter-spacing: -.008em; }
.display { font-size: var(--t-6xl); letter-spacing: -.032em; line-height: 1.03; }

.serif {
  font-family: var(--font-display);
  font-weight: 600; font-style: italic;
  font-variation-settings: "opsz" 96;
  letter-spacing: -.012em;
}
.lead { font-size: var(--t-lg); color: var(--muted); line-height: 1.6; }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: .875em; letter-spacing: -.02em; }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }
.center.measure, .center.measure-sm { margin-inline: auto; }
.mark {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold) 55%, transparent) 0);
  padding-inline: .08em;
}
.brand-text { color: var(--brand-text); }
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------- 5. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem; border-radius: var(--r-full);
  font-size: var(--t-sm); font-weight: 700; letter-spacing: -.005em;
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s,
              box-shadow .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--sh-2); }
.btn--primary:hover { background: var(--btn-bg-h); box-shadow: var(--sh-3); }

.btn--ink { background: var(--ink); color: var(--paper); box-shadow: var(--sh-2); }
.btn--ink:hover { background: var(--ink-2); box-shadow: var(--sh-3); }
:root[data-theme="dark"] .btn--ink { background: var(--ink); color: #0A0D12; }

.btn--ghost { background: transparent; border-color: var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); background: color-mix(in srgb, var(--fg) 4%, transparent); }

.btn--wa { background: var(--wa-bg); color: var(--wa-fg); box-shadow: var(--sh-2); }
.btn--wa:hover { background: var(--wa-bg-h); box-shadow: var(--sh-3); }

.btn--lg { padding: 1rem 1.85rem; font-size: var(--t-base); }
.btn--sm { padding: .5rem 1rem; font-size: var(--t-xs); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: var(--t-sm); color: var(--brand-text);
  text-decoration: none;
}
.link-arrow::after {
  content: "→"; transition: transform .22s var(--ease); font-weight: 400;
}
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- 6. Cards */
.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(1.25rem, 2.5vw, 1.9rem);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.card--link::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card--link:hover::after { transform: scaleX(1); }
.card--flat { box-shadow: none; background: transparent; }
.card--pad-lg { padding: clamp(1.75rem, 3.5vw, 2.75rem); }
.card--feature { background: var(--card-2); }
.card a.stretched::after { content: ""; position: absolute; inset: 0; }

.card__icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--brand-soft); color: var(--brand); flex: none;
}
.card__icon svg { width: 23px; height: 23px; }
.card__icon--teal { background: var(--teal-soft); color: var(--teal); }
.card__icon--gold { background: var(--gold-soft); color: #A97A15; }
:root[data-theme="dark"] .card__icon--gold { color: var(--gold); }

.card__title { font-size: var(--t-lg); font-weight: 750; letter-spacing: -.012em; margin-bottom: .45rem; }
.card__body { color: var(--muted); font-size: var(--t-sm); line-height: 1.62; }
.card__foot { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px dashed var(--border); }

/* --------------------------------------------------------------- 7. Chips */
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .8rem; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--surface);
  font-size: var(--t-xs); font-weight: 600; color: var(--ink-2);
  white-space: nowrap;
}
.chip--accent { border-color: color-mix(in srgb, var(--brand) 30%, transparent); background: var(--brand-soft); color: var(--brand-700); }
:root[data-theme="dark"] .chip--accent { color: var(--brand); }
.chip--dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none;
}
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.badge-live {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--t-xs); font-weight: 700; color: var(--teal);
}
.badge-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #22B573; box-shadow: 0 0 0 0 rgba(34,181,115,.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(34,181,115,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,181,115,0); }
}

/* ---------------------------------------------------------------- 8. Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.header[data-scrolled="true"] { border-bottom-color: var(--border); box-shadow: var(--sh-1); }

.topbar {
  background: #0C1015; color: #E9E4DC; font-size: var(--t-xs);
  padding-block: .45rem;
}
:root[data-theme="dark"] .topbar { background: #06090D; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar__links { display: flex; gap: 1.15rem; align-items: center; }
.topbar a { display: inline-flex; align-items: center; gap: .35rem; }
.topbar .ic { width: 13px; height: 13px; }
@media (max-width: 620px) { .topbar__msg { display: none; } .topbar__inner { justify-content: center; } }

.nav { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; flex: none; }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-weight: 800; font-size: 1.0625rem; letter-spacing: -.03em; }
.logo__sub { font-size: .625rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--brand-text); }

.nav__list { display: none; list-style: none; padding: 0; gap: .1rem; align-items: center; }
@media (min-width: 1024px) { .nav__list { display: flex; } }
.nav__link {
  display: flex; align-items: center; gap: .3rem;
  padding: .5rem .7rem; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 650; text-decoration: none; color: var(--ink-2);
  transition: color .18s, background-color .18s; white-space: nowrap;
}
.nav__link:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--brand-text); }
.nav__caret { width: 9px; height: 9px; opacity: .55; transition: transform .22s; }

.nav__item { position: relative; }
.nav__item--has-menu:hover .nav__caret { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0;
  width: min(660px, 86vw); padding: .75rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-4);
  display: grid; grid-template-columns: 1fr 1fr; gap: .2rem;
  opacity: 0; visibility: hidden; translate: -50% 8px;
  transition: opacity .2s var(--ease), translate .24s var(--ease), visibility .24s;
}
.nav__item--has-menu:hover .mega,
.nav__item--has-menu:focus-within .mega { opacity: 1; visibility: visible; translate: -50% 0; }
.mega__link {
  display: block; padding: .6rem .75rem; border-radius: var(--r-md);
  text-decoration: none; transition: background-color .18s;
}
.mega__link:hover { background: var(--surface-2); }
.mega__t { font-weight: 700; font-size: .875rem; display: flex; align-items: center; gap: .4rem; }
.mega__t::after { content: "→"; opacity: 0; transition: opacity .18s, transform .18s; font-weight: 400; }
.mega__link:hover .mega__t { color: var(--brand-text); }
.mega__link:hover .mega__t::after { opacity: .7; transform: translateX(2px); }
.mega__d { font-size: var(--t-xs); color: var(--muted); }
.mega__foot {
  grid-column: 1 / -1; margin-top: .35rem; padding: .8rem .75rem 0;
  border-top: 1px solid var(--border); display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; flex-wrap: wrap;
}

.nav__actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.icon-btn {
  width: 38px; height: 38px; border-radius: var(--r-full);
  display: grid; place-items: center; background: transparent;
  border: 1px solid var(--border); cursor: pointer;
  transition: background-color .18s, border-color .18s, transform .18s;
}
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }
.nav__cta { display: none; }
@media (min-width: 640px) { .nav__cta { display: inline-flex; } }
.burger { display: grid; }
@media (min-width: 1024px) { .burger { display: none; } }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 200; display: grid;
  grid-template-columns: 1fr min(390px, 90vw);
  visibility: hidden; pointer-events: none;
}
.drawer[data-open="true"] { visibility: visible; pointer-events: auto; }
.drawer__scrim {
  background: rgba(8,6,4,.5); opacity: 0; transition: opacity .3s var(--ease);
  backdrop-filter: blur(2px);
}
.drawer[data-open="true"] .drawer__scrim { opacity: 1; }
.drawer__panel {
  background: var(--bg); border-left: 1px solid var(--border);
  padding: 1.1rem clamp(1.1rem, 4vw, 1.75rem) 2rem;
  overflow-y: auto; overscroll-behavior: contain;
  translate: 100% 0; transition: translate .34s var(--ease);
  display: flex; flex-direction: column; gap: .35rem;
}
.drawer[data-open="true"] .drawer__panel { translate: 0 0; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem .2rem; font-weight: 700; font-size: 1.0625rem;
  text-decoration: none; border-bottom: 1px solid var(--line-2);
}
.drawer__link[aria-current="page"] { color: var(--brand-text); }
.drawer__sub {
  display: block; padding: .5rem .2rem .5rem 1rem; font-size: var(--t-sm);
  color: var(--muted); text-decoration: none; font-weight: 600;
  border-left: 2px solid var(--border); margin-left: .2rem;
}
.drawer__sub:hover { color: var(--brand-text); border-left-color: var(--brand); }
.drawer__cta { margin-top: 1.25rem; display: grid; gap: .6rem; }

/* -------------------------------------------------------------- 9. Hero */
.hero { position: relative; padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero__halo {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(80px); opacity: .5; z-index: 0;
}
.hero__halo--1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 68%);
  top: -12%; right: -10%; opacity: .28; }
.hero__halo--2 { width: 38vw; height: 38vw; max-width: 480px; max-height: 480px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 68%);
  bottom: -18%; left: -12%; opacity: .2; }
:root[data-theme="dark"] .hero__halo--1 { opacity: .2; }
:root[data-theme="dark"] .hero__halo--2 { opacity: .16; }
.hero > .container { position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(2.15rem, 1.5rem + 2.9vw, 3.6rem);
  letter-spacing: -.032em; line-height: 1.06; max-width: 15ch;
}
@media (min-width: 1200px) { .hero__title { max-width: 17ch; } }
.hero__sub { font-size: clamp(1.0625rem, .98rem + .42vw, 1.3125rem); color: var(--ink-2); line-height: 1.55; max-width: 40ch; }
:root[data-theme="dark"] .hero__sub { color: var(--ink-2); }

.trust-row {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center;
  font-size: var(--t-xs); font-weight: 650; color: var(--muted);
}
.trust-row > span { display: inline-flex; align-items: center; gap: .4rem; }
.trust-row .ic { width: 15px; height: 15px; color: var(--teal); flex: none; }

/* ------------------------------------------------------- 10. Logo marquee */
.marquee { overflow: hidden; position: relative; padding-block: 1.15rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: .75rem; animation: scroll-x 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee .chip { background: var(--surface); }

/* ------------------------------------------------- 11. Explainer (signature) */
.explainer { border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface); overflow: hidden; box-shadow: var(--sh-2); }
.explainer__head {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding: clamp(1.1rem, 3vw, 1.6rem) clamp(1.25rem, 3.5vw, 2.25rem);
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.seg {
  display: inline-flex; padding: 4px; border-radius: var(--r-full);
  background: var(--bg); border: 1px solid var(--border); gap: 2px;
}
.seg__btn {
  border: 0; background: transparent; cursor: pointer; border-radius: var(--r-full);
  padding: .5rem 1rem; font-size: var(--t-sm); font-weight: 700; color: var(--muted);
  transition: color .2s, background-color .2s; white-space: nowrap;
}
.seg__btn[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: var(--sh-1); }
:root[data-theme="dark"] .seg__btn[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.explainer__body { padding: clamp(1.4rem, 3.5vw, 2.5rem); }
.explainer__pane[hidden] { display: none; }
.explainer__pane { animation: fade-up .38s var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

/* --------------------------------------------------------- 12. Before/After */
.ba { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 820px) { .ba { grid-template-columns: 1fr auto 1fr; gap: 1.25rem; } }
.ba__col { border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 1.85rem); border: 1px solid var(--border); }
.ba__col--before { background: var(--surface-2); }
.ba__col--after { background: var(--surface); border-color: color-mix(in srgb, var(--teal) 32%, var(--border)); box-shadow: var(--sh-2); }
.ba__label { font-size: var(--t-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; display: flex; align-items: center; gap: .45rem; }
.ba__col--before .ba__label { color: var(--ink-3); }
.ba__col--after .ba__label { color: var(--teal); }
.ba__arrow { display: grid; place-items: center; color: var(--brand); }
.ba__arrow svg { width: 30px; height: 30px; }
@media (max-width: 819px) { .ba__arrow svg { rotate: 90deg; } }
.ba ul { list-style: none; padding: 0; display: grid; gap: .6rem; font-size: var(--t-sm); }
.ba li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; }
.ba li svg { width: 17px; height: 17px; flex: none; margin-top: .18em; }
.ba__col--before li { color: var(--muted); }
.ba__col--before li svg { color: #C9553F; }
.ba__col--after li svg { color: var(--teal); }

/* ------------------------------------------------------------- 13. Steps */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 0 clamp(1rem, 3vw, 1.75rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem); position: relative;
}
.step:last-child { padding-bottom: 0; }
.step__num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--border);
  font-weight: 800; font-size: .9375rem; color: var(--brand-text); z-index: 1;
  grid-row: 1 / span 2;
}
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 23px; top: 46px; bottom: 0; width: 1.5px;
  background: linear-gradient(var(--border), color-mix(in srgb, var(--border) 20%, transparent));
}
.step__t { font-size: var(--t-xl); font-weight: 750; letter-spacing: -.015em; padding-top: .5rem; }
.step__d { color: var(--muted); font-size: var(--t-sm); margin-top: .5rem; }
.step__meta { margin-top: .75rem; }

/* --------------------------------------------------------------- 14. Stats */
.stat { text-align: left; }
.stat__n {
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); font-weight: 800;
  letter-spacing: -.035em; line-height: 1; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.stat__l { font-size: var(--t-sm); color: var(--muted); margin-top: .55rem; line-height: 1.45; }
.section--ink .stat__n { color: var(--gold); }

/* ---------------------------------------------------------- 15. Accordion */
.acc { border-top: 1px solid var(--border); }
.acc__item { border-bottom: 1px solid var(--border); }
.acc__q {
  width: 100%; display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: var(--t-lg); letter-spacing: -.012em; text-align: left;
  transition: color .18s;
}
.acc__q::-webkit-details-marker { display: none; }
.acc__q:hover { color: var(--brand-text); }
.acc__ico {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border);
  display: grid; place-items: center; flex: none; margin-top: .15em;
  transition: transform .28s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.acc__ico svg { width: 12px; height: 12px; }
details[open] > .acc__q .acc__ico { transform: rotate(45deg); background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.acc__a { padding-bottom: 1.35rem; color: var(--muted); font-size: var(--t-base); max-width: 74ch; }
.acc__a > * + * { margin-top: .75rem; }
details[open] > .acc__a { animation: fade-up .3s var(--ease-out); }

/* ------------------------------------------------------------- 16. Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 560px; }
table.t th, table.t td { padding: .85rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
table.t thead th { background: var(--surface-2); font-weight: 750; font-size: var(--t-xs); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover { background: color-mix(in srgb, var(--brand) 3%, transparent); }
table.t td strong { font-weight: 700; }

/* --------------------------------------------------------------- 17. Prose */
.prose { max-width: 72ch; font-size: var(--t-lg); line-height: 1.72; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--t-3xl); margin-top: 2.2em; letter-spacing: -.022em; }
.prose h3 { font-size: var(--t-xl); margin-top: 1.7em; }
.prose h2 + p, .prose h3 + p { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.35em; display: grid; gap: .55em; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose a { color: var(--brand-text); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.prose a:hover { text-decoration-color: var(--brand); }
.prose blockquote {
  border-left: 3px solid var(--brand); padding: .25rem 0 .25rem 1.35rem;
  font-family: var(--font-display); font-style: italic; font-size: 1.1em;
  font-variation-settings: "opsz" 96; color: var(--ink-2);
}
.prose code { font-family: var(--font-mono); font-size: .875em; background: var(--surface-2); padding: .15em .4em; border-radius: 5px; border: 1px solid var(--border); }
.prose figure { margin-block: 2em; }
.prose figcaption { font-size: var(--t-sm); color: var(--muted); margin-top: .75rem; text-align: center; }
.prose hr { margin-block: 2.5em; }
.prose .callout { font-size: var(--t-base); }

.callout {
  border-radius: var(--r-lg); padding: clamp(1.1rem, 2.5vw, 1.6rem);
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}
.callout--teal { background: var(--teal-soft); border-color: color-mix(in srgb, var(--teal) 25%, transparent); }
.callout--gold { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.callout__t { font-weight: 750; display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.callout__t svg { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------- 18. Answer blocks
   Short, quotable definitions — what AI search engines lift into answers.    */
.answer {
  border-left: 4px solid var(--brand); background: var(--surface);
  border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: clamp(1.1rem, 2.5vw, 1.5rem) clamp(1.15rem, 3vw, 1.75rem);
  box-shadow: var(--sh-1); border-block: 1px solid var(--border); border-right: 1px solid var(--border);
}
.answer__q { font-size: var(--t-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); margin-bottom: .5rem; }
.answer__a { font-size: var(--t-lg); line-height: 1.6; }

/* ----------------------------------------------------------- 19. Forms */
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--t-sm); font-weight: 700; }
.field .hint { font-size: var(--t-xs); color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: var(--r-md);
  border: 1.5px solid var(--border); background: var(--bg); color: var(--fg);
  font-size: var(--t-base); transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring); background: var(--surface);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5 10 4.5' stroke='%237C8794' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.5rem; }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-note { font-size: var(--t-xs); color: var(--muted); }
.alert { border-radius: var(--r-md); padding: .9rem 1.1rem; font-size: var(--t-sm); font-weight: 600; }
.alert--ok { background: var(--teal-soft); color: var(--teal-600); border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent); }
:root[data-theme="dark"] .alert--ok { color: var(--teal); }
.alert--err { background: #FDECEA; color: #A62E1C; border: 1px solid #F3BFB6; }
:root[data-theme="dark"] .alert--err { background: #2A1310; color: #F0937F; border-color: #55231C; }

/* ---------------------------------------------------------- 20. CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 100% at 12% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 62%),
    radial-gradient(52% 90% at 90% 100%, color-mix(in srgb, var(--teal) 30%, transparent), transparent 62%);
  pointer-events: none;
}
.cta-band > * { position: relative; }

/* ------------------------------------------------------------ 21. Footer */
.footer {
  background: #0C1015; color: #C9C3BB; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  --brand-text: #F0714B;
}
:root[data-theme="dark"] .footer { background: #06090D; border-top: 1px solid var(--line); }
.footer a { color: #C9C3BB; text-decoration: none; transition: color .18s; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1.15fr; } }
.footer h3 { color: #fff; font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 800; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .6rem; font-size: var(--t-sm); }
.footer__bottom {
  margin-top: clamp(2.25rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid #22272F;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  align-items: center; font-size: var(--t-xs); color: #8A857E;
}
.footer__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer .logo__name { color: #fff; }
.footer__nap { font-size: var(--t-sm); line-height: 1.75; font-style: normal; }
.footer__nap a { font-weight: 650; color: #fff; }

/* ------------------------------------------------------- 22. Floating CTA */
.fab {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem;
}
.fab__btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.15rem; border-radius: var(--r-full);
  background: var(--wa-bg); color: var(--wa-fg); text-decoration: none; font-weight: 750; font-size: var(--t-sm);
  box-shadow: 0 6px 22px var(--wa-shadow); border: 0; cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s;
}
.fab__btn:hover { transform: translateY(-3px) scale(1.02); background: var(--wa-bg-h); box-shadow: 0 12px 34px var(--wa-shadow); }
.fab__btn svg { width: 21px; height: 21px; flex: none; }
@media (max-width: 480px) { .fab__btn .fab__label { display: none; } .fab__btn { padding: .95rem; } }

/* --------------------------------------------------- 23. Breadcrumb + misc */
.crumbs { font-size: var(--t-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--brand-text); text-decoration: underline; }
.crumbs__sep { opacity: .45; }

.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem); position: relative; }
.page-head--bordered { border-bottom: 1px solid var(--border); }

.tick-list { list-style: none; padding: 0; display: grid; gap: .7rem; }
.tick-list li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.55; }
.tick-list li > svg { width: 19px; height: 19px; flex: none; color: var(--teal); margin-top: .16em; }
.tick-list--brand li > svg { color: var(--brand); }

.kv { display: grid; gap: .1rem; }
.kv__k { font-size: var(--t-xs); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kv__v { font-weight: 650; }

.pill-num {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg);
  font-size: .75rem; font-weight: 800; flex: none;
}

/* Article cards */
.post { display: flex; flex-direction: column; height: 100%; }
.post__thumb { border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); margin-bottom: 1.1rem; aspect-ratio: 16/9; }
.post__thumb svg { width: 100%; height: 100%; }
.post__meta { font-size: var(--t-xs); color: var(--muted); display: flex; gap: .55rem;
  align-items: center; flex-wrap: wrap; margin-bottom: .55rem; }
.post__meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.post__t { font-size: var(--t-lg); font-weight: 750; letter-spacing: -.014em; line-height: 1.25; }
.post__x { color: var(--muted); font-size: var(--t-sm); margin-top: .5rem; flex: 1; }

/* Figures / illustration frames */
.figure {
  border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface); box-shadow: var(--sh-2);
}
.figure__cap {
  padding: .8rem 1.15rem; border-top: 1px solid var(--border); background: var(--surface-2);
  font-size: var(--t-xs); color: var(--muted); text-align: center;
}
.figure--plain { border: 0; box-shadow: none; background: transparent; }

.tag {
  font-size: var(--t-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--teal); background: var(--teal-soft); padding: .22rem .55rem; border-radius: 5px;
}

/* ------------------------------------------------- 24. Reveal + motion */
[data-reveal] { opacity: 0; transform: translateY(18px); }
[data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* --------------------------------------------------------- 25. Utilities */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); } .mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); } .mb-6 { margin-bottom: var(--sp-6); }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); } .wrap { flex-wrap: wrap; }
.hide { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media print {
  .header, .footer, .fab, .drawer, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1rem; }
}
