/* =============================================================
   SkilledHat - Design System
   Founder-led software, cloud, and engineering delivery.

   Brand palette (locked):
     #0B2F43  primary anchor  (navbar, footer, hero backgrounds, dark sections, headings)
     #082D45  secondary dark  (layered surfaces, cards on dark, hover states)
     #3A78A1  accent          (buttons, links, CTA highlights, active states)
     #FFFFFF  surface         (whitespace foundation)
   ============================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand surfaces */
  --sh-bg: #0B2F43;            /* primary anchor */
  --sh-bg-alt: #082D45;        /* layered dark surface */
  --sh-bg-soft: #F4F7FA;       /* light neutral section */
  --sh-surface: #FFFFFF;
  --sh-line: rgba(255,255,255,0.10);
  --sh-line-strong: rgba(255,255,255,0.18);
  --sh-line-light: #E3E9EF;

  /* Text */
  --sh-text: #0B2F43;          /* headings on light = primary anchor */
  --sh-text-body: #2A4A5E;     /* body text on light, slightly softer */
  --sh-text-muted: #5C7283;
  --sh-text-invert: #FFFFFF;
  --sh-text-invert-muted: #B8C8D4;

  /* Brand accent */
  --sh-accent: #3A78A1;
  --sh-accent-hi: #5A95BC;     /* hover / illumination on dark */
  --sh-accent-deep: #2E6488;   /* pressed / depth */
  --sh-accent-soft: rgba(58,120,161,0.10);
  --sh-accent-line: rgba(58,120,161,0.28);

  /* Status (used sparingly) */
  --sh-warn: #B47A1A;
  --sh-danger: #B0463B;

  /* Type */
  --sh-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sh-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Radii - rounded but professional, never pill on cards */
  --sh-r-xs: 6px;
  --sh-r-sm: 8px;
  --sh-r-md: 12px;
  --sh-r-lg: 18px;
  --sh-r-pill: 999px;

  /* Shadows - soft, low-contrast, and restrained */
  --sh-shadow-sm: 0 1px 2px rgba(11,47,67,0.06);
  --sh-shadow-md: 0 6px 20px rgba(11,47,67,0.08), 0 2px 4px rgba(11,47,67,0.04);
  --sh-shadow-lg: 0 18px 48px rgba(11,47,67,0.14);
  --sh-shadow-accent: 0 8px 24px rgba(58,120,161,0.22);

  /* Motion */
  --sh-ease: cubic-bezier(.2,.7,.2,1);
  --sh-fast: 160ms;
  --sh-base: 240ms;

  /* Layout */
  --sh-container: 1200px;
}

/* ---------- 2. Reset polish ---------- */
*,*::before,*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sh-font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--sh-text-body);
  background: var(--sh-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { max-width: 100%; display: block; }

a { color: var(--sh-accent); text-decoration: none; transition: color var(--sh-fast) var(--sh-ease); }
a:hover { color: var(--sh-accent-deep); }

p { margin: 0 0 1rem; color: var(--sh-text-body); }

h1,h2,h3,h4,h5,h6 {
  margin: 0 0 .75rem;
  color: var(--sh-text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); letter-spacing: -0.022em; line-height: 1.18; }
h2 { font-size: clamp(1.75rem, 2.6vw, 2.375rem); }
h3 { font-size: clamp(1.2rem, 1.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

/* Selection - brand-coloured */
::selection { background: var(--sh-accent); color: #FFFFFF; }

/* Focus ring - accessible, brand-aligned */
:where(a,button,input,textarea,select):focus-visible {
  outline: 2px solid var(--sh-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 3. Layout primitives ---------- */
.container { max-width: var(--sh-container); margin: 0 auto; padding: 0 1.5rem; width: 100%; }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-sm { padding: clamp(48px, 6vw, 72px) 0; }

.section-dark {
  background: var(--sh-bg);
  color: var(--sh-text-invert);
}
.section-dark p { color: var(--sh-text-invert-muted); }
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--sh-text-invert); }
.section-dark .eyebrow {
  color: #8CBDD9;
  background: rgba(140,189,217,0.16);
  border-color: rgba(140,189,217,0.40);
}

.section-soft { background: var(--sh-bg-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sh-accent-deep);
  background: var(--sh-accent-soft);
  border: 1px solid var(--sh-accent-line);
  border-radius: var(--sh-r-pill);
}
.eyebrow .bi { font-size: .85rem; }

.section-title {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-title .eyebrow { margin-bottom: 1rem; }
.section-title h2 { margin-bottom: .75rem; }
.section-title p { color: var(--sh-text-muted); font-size: 1.0625rem; }

.section-dark .section-title p { color: var(--sh-text-invert-muted); }

/* ---------- 4. Buttons ---------- */
.btn-sh {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--sh-r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--sh-fast) var(--sh-ease);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-sh .bi { font-size: 1rem; transition: transform var(--sh-fast) var(--sh-ease); }
.btn-sh:hover .bi-arrow-right { transform: translateX(3px); }

.btn-primary-sh {
  /* Uses accent-deep for WCAG AA contrast on white (5.71:1).
     The plain --sh-accent is reserved for links, borders and icons where the surrounding
     context provides additional cues. */
  background: var(--sh-accent-deep);
  color: #FFFFFF;
  border-color: var(--sh-accent-deep);
}
.btn-primary-sh:hover {
  background: #234F6C;        /* one tone deeper for press feedback */
  border-color: #234F6C;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--sh-shadow-accent);
}

.btn-ghost-sh {
  background: transparent;
  color: var(--sh-text);
  border-color: var(--sh-line-light);
}
.btn-ghost-sh:hover {
  border-color: var(--sh-text);
  color: var(--sh-text);
  background: var(--sh-bg-soft);
}

/* Ghost button inverted treatment - applied to ANY dark surface, not just .section-dark.
   The .hero, .page-hero and .cta-banner all use the navy anchor background, so they
   need white text + faint white border by default. */
.section-dark .btn-ghost-sh,
.hero .btn-ghost-sh,
.page-hero .btn-ghost-sh,
.cta-banner .btn-ghost-sh {
  color: var(--sh-text-invert);
  border-color: var(--sh-line-strong);
  background: transparent;
}
.section-dark .btn-ghost-sh:hover,
.hero .btn-ghost-sh:hover,
.page-hero .btn-ghost-sh:hover,
.cta-banner .btn-ghost-sh:hover {
  border-color: var(--sh-text-invert);
  color: var(--sh-text-invert);
  background: rgba(255,255,255,0.06);
}

.btn-link-sh {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--sh-accent);
}
.btn-link-sh:hover { color: var(--sh-accent-deep); }
.section-dark .btn-link-sh { color: #8CBDD9; }
.section-dark .btn-link-sh:hover { color: #FFFFFF; }
.btn-link-sh .bi { transition: transform var(--sh-fast) var(--sh-ease); }
.btn-link-sh:hover .bi { transform: translateX(3px); }

/* ---------- 5. Header / nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--sh-line-light);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 76px;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--sh-text);
  line-height: 1;
}
.brand:hover { color: var(--sh-text); }
.brand-logo {
  display: block;
  width: 168px;
  height: auto;
  max-width: 100%;
}

.navmenu { display: flex; align-items: center; gap: .15rem; flex-shrink: 0; }
/* Layout pattern: brand on the left, then flexible space, then navmenu + CTAs
   grouped on the right. This is the AWS / Stripe / Cloudflare pattern - it scales
   gracefully because the nav and CTA cluster move together as the viewport shrinks. */
@media (min-width: 992px) {
  .brand { margin-right: auto; flex-shrink: 0; }
  .nav-cta { flex-shrink: 0; }
  /* Tighten nav link padding slightly so 7 links + 2 buttons fit comfortably
     inside the 1200px container at all desktop widths. */
  .navmenu a { padding: .55rem .75rem; }
}
.navmenu ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: .15rem;
}
.navmenu a {
  color: var(--sh-text-body);
  font-size: .94rem;
  font-weight: 500;
  padding: .55rem .9rem;
  border-radius: var(--sh-r-sm);
  transition: background var(--sh-fast) var(--sh-ease), color var(--sh-fast) var(--sh-ease);
}
.navmenu a:hover { background: var(--sh-bg-soft); color: var(--sh-text); }
/* Active state uses the deeper brand tone on text + a clean, visible underline.
   No pale fill that disappears against the blurred sticky header. */
.navmenu a.active,
.navmenu .has-dropdown.active > .nav-parent {
  color: var(--sh-text);
  background: transparent;
  position: relative;
  font-weight: 600;
}
.navmenu a.active::after,
.navmenu .has-dropdown.active > .nav-parent::after {
  content: "";
  position: absolute;
  left: .75rem; right: .75rem;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--sh-accent);
}

/* Dropdown menus */
.navmenu .has-dropdown { position: relative; }
.navmenu .nav-parent {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--sh-text-body);
  font-size: .94rem;
  font-weight: 500;
  padding: .55rem .9rem;
  border-radius: var(--sh-r-sm);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--sh-fast) var(--sh-ease), color var(--sh-fast) var(--sh-ease);
}
.navmenu .nav-parent:hover { background: var(--sh-bg-soft); color: var(--sh-text); }
.navmenu .nav-parent .caret {
  font-size: .7rem;
  transition: transform var(--sh-fast) var(--sh-ease);
}
.navmenu .has-dropdown.open > .nav-parent .caret { transform: rotate(180deg); }
.navmenu .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  padding: .4rem;
  background: var(--sh-surface);
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  box-shadow: var(--sh-shadow-md);
  z-index: 60;
  list-style: none;
  margin: 0;
  flex-direction: column;
  gap: 0;
}
.navmenu .has-dropdown.open > .dropdown-menu { display: flex; }
.navmenu .dropdown-menu li { width: 100%; }
.navmenu .dropdown-menu a {
  display: block;
  padding: .65rem .85rem;
  font-size: .92rem;
  color: var(--sh-text-body);
  border-radius: var(--sh-r-sm);
  font-weight: 500;
}
.navmenu .dropdown-menu a:hover { background: var(--sh-bg-soft); color: var(--sh-text); }
.navmenu .dropdown-menu a.active {
  color: var(--sh-accent-deep);
  background: var(--sh-accent-soft);
}
.navmenu .dropdown-menu a.active::after { display: none; }
.navmenu .dropdown-menu .group-label {
  font-family: var(--sh-font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sh-text-muted);
  padding: .65rem .85rem .25rem;
  font-weight: 600;
}

.nav-cta { display: flex; align-items: center; gap: .75rem; }

.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.4rem;
  color: var(--sh-text);
  cursor: pointer;
}

/* Mobile nav */
@media (max-width: 991px) {
  .navmenu ul { display: none; }
  .nav-cta .btn-sh.btn-ghost-sh { display: none; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }

  body.mobile-open .navmenu {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--sh-surface);
    padding: 1.5rem 1.5rem 2rem;
    overflow-y: auto;
    z-index: 50;
  }
  body.mobile-open .navmenu ul {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    align-items: stretch;
  }
  body.mobile-open .navmenu a {
    padding: .85rem 1rem;
    font-size: 1rem;
    border-radius: var(--sh-r-sm);
  }
  /* On mobile, the active state becomes a left border + accent color
     since an underline across a wide stacked link reads as a separator. */
  body.mobile-open .navmenu a.active {
    color: var(--sh-accent-deep);
    background: var(--sh-accent-soft);
  }
  body.mobile-open .navmenu a.active::after { display: none; }

  /* Mobile dropdown: full-width inline accordion, no floating menu */
  body.mobile-open .navmenu .nav-parent {
    width: 100%;
    justify-content: space-between;
    padding: .85rem 1rem;
    font-size: 1rem;
    border-radius: var(--sh-r-sm);
  }
  body.mobile-open .navmenu .has-dropdown.active > .nav-parent {
    color: var(--sh-accent-deep);
    background: var(--sh-accent-soft);
  }
  body.mobile-open .navmenu .has-dropdown.active > .nav-parent::after { display: none; }
  body.mobile-open .navmenu .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: .25rem 0 .5rem .75rem;
    min-width: 0;
  }
  body.mobile-open .navmenu .dropdown-menu a {
    padding: .65rem .85rem;
    font-size: .95rem;
  }
  body.mobile-open .navmenu .dropdown-menu .group-label {
    padding-left: .85rem;
  }
}

@media (max-width: 575px) {
  .header-inner { gap: .75rem; }
  .brand-logo { width: 140px; }
  .navmenu { margin-left: auto; }
  .nav-cta { gap: .25rem; }
  .nav-cta > .btn-primary-sh { display: none; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--sh-bg);
  color: var(--sh-text-invert);
  padding: clamp(88px, 12vw, 144px) 0 clamp(64px, 8vw, 104px);
}
/* Subtle directional wash - no neon, no rainbow */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 65%;
  height: 70%;
  background: radial-gradient(ellipse at 65% 35%, rgba(58,120,161,0.22), transparent 65%);
  pointer-events: none;
}
/* Oversized brand emblem, kept quiet behind the message */
.hero::after {
  content: "";
  position: absolute;
  width: min(48vw, 680px);
  aspect-ratio: 1.3;
  right: -8%;
  bottom: -8%;
  background: url("../img/emblem.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: .045;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: #8CBDD9;
  background: rgba(140,189,217,0.16);
  border: 1px solid rgba(140,189,217,0.40);
  border-radius: var(--sh-r-pill);
  margin-bottom: 1.75rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #8CBDD9;
}

.hero h1 {
  color: var(--sh-text-invert);
  max-width: 22ch;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.hero h1 .accent { color: var(--sh-accent-hi); }

.hero-lede {
  font-size: clamp(1.05rem, 1.2vw, 1.18rem);
  color: var(--sh-text-invert-muted);
  max-width: 58ch;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 2.5rem;
  padding-top: 2rem;
  margin-top: .5rem;
  border-top: 1px solid var(--sh-line);
  max-width: 980px;
}
.hero-meta .meta-item { min-width: 0; }
/* Adjective-friendly emphasis: large enough to read as a value,
   restrained enough not to shout. Bottom label gets the explanatory weight. */
.hero-meta .meta-item .num {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sh-accent-hi);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.hero-meta .meta-item .lbl {
  display: block;
  font-size: .88rem;
  line-height: 1.45;
  color: var(--sh-text-invert-muted);
  margin-top: .4rem;
}
@media (max-width: 767px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.5rem; }
}
@media (max-width: 420px) {
  .hero-meta { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ---------- 7. Logo strip ---------- */
.logo-strip {
  padding: 2.75rem 0;
  border-top: 1px solid var(--sh-line-light);
  border-bottom: 1px solid var(--sh-line-light);
  background: var(--sh-surface);
}
.logo-strip-label {
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sh-text-muted);
  margin-bottom: 1.5rem;
}
.logo-strip-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem 2rem;
  align-items: center;
  justify-items: center;
}
.logo-strip-item {
  font-weight: 600;
  color: #7A8C9A;
  font-size: 1rem;
  letter-spacing: -.005em;
}
@media (max-width: 767px) {
  .logo-strip-row { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 8. Cards ---------- */
.card-sh {
  background: var(--sh-surface);
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  padding: 1.85rem;
  transition: transform var(--sh-base) var(--sh-ease), box-shadow var(--sh-base) var(--sh-ease), border-color var(--sh-base) var(--sh-ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-sh:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-shadow-md);
  border-color: #CBD5DF;
}
.card-sh .card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--sh-accent-soft);
  color: var(--sh-accent);
  display: grid; place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}
.card-sh h3 { font-size: 1.15rem; }
.card-sh p { font-size: .95rem; color: var(--sh-text-muted); }
.card-sh .card-foot { margin-top: auto; padding-top: 1rem; }

/* Dark card variant - uses #082D45 layered surface */
.section-dark .card-sh {
  background: var(--sh-bg-alt);
  border-color: rgba(255,255,255,0.08);
}
.section-dark .card-sh:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
}
.section-dark .card-sh p { color: var(--sh-text-invert-muted); }
.section-dark .card-sh .card-icon {
  background: rgba(58,120,161,0.18);
  color: var(--sh-accent-hi);
}

/* Pillar card with index number */
.pillar-card {
  position: relative;
  padding-top: 2.25rem;
}
.pillar-card .pillar-num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--sh-font-mono);
  font-size: .76rem;
  color: var(--sh-text-muted);
  letter-spacing: .08em;
}
.section-dark .pillar-card .pillar-num { color: var(--sh-text-invert-muted); }

/* Programme card (services) */
.programme-card {
  border-left: 3px solid var(--sh-accent);
  padding: 1.6rem 1.85rem;
  background: var(--sh-surface);
  border-radius: 0 var(--sh-r-md) var(--sh-r-md) 0;
  border-top: 1px solid var(--sh-line-light);
  border-right: 1px solid var(--sh-line-light);
  border-bottom: 1px solid var(--sh-line-light);
  margin-bottom: 1rem;
  transition: box-shadow var(--sh-base) var(--sh-ease), transform var(--sh-base) var(--sh-ease);
}
.programme-card:hover {
  box-shadow: var(--sh-shadow-sm);
  border-left-color: var(--sh-accent-deep);
}
.programme-card .programme-eyebrow {
  font-family: var(--sh-font-mono);
  font-size: .76rem;
  color: var(--sh-accent);
  letter-spacing: .08em;
  margin-bottom: .5rem;
}

/* ---------- 9. Feature lists ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex;
  gap: .75rem;
  padding: .5rem 0;
  align-items: flex-start;
}
.feature-list li::before {
  content: "";
  width: 15px;
  height: 12px;
  margin-top: .35rem;
  background: url("../img/emblem.png") center / contain no-repeat;
  flex-shrink: 0;
}
.feature-list li span { color: var(--sh-text-body); }
.section-dark .feature-list li span { color: var(--sh-text-invert-muted); }
.section-dark .feature-list li::before { filter: brightness(0) invert(1); opacity: .7; }

/* ---------- 10. Stat block ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  overflow: hidden;
  background: var(--sh-surface);
}
.stat-cell {
  padding: 1.85rem;
  border-right: 1px solid var(--sh-line-light);
  border-bottom: 1px solid var(--sh-line-light);
}
/* Use container queries (size) - when content is short (numbers like 6 wks)
   it can be larger; when content is a word (Clear / Practical / Measured)
   we want a calmer treatment. We default to a balanced size that reads well for both. */
.stat-cell .stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sh-text);
  line-height: 1.2;
}
.stat-cell .stat-num .unit { font-size: 1.05rem; color: var(--sh-accent); margin-left: .15rem; font-weight: 600; }
.stat-cell .stat-label { font-size: .92rem; line-height: 1.5; color: var(--sh-text-body); margin-top: .5rem; }
.stat-cell .stat-source { font-size: .78rem; color: var(--sh-text-muted); margin-top: .4rem; }

/* Last row/column on mobile should not have stranded border lines */
@media (max-width: 575px) {
  .stat-cell { border-right: 0; }
  .stat-cell:last-child { border-bottom: 0; }
}
/* On mid-widths, drop trailing right borders for the rightmost column */
@media (min-width: 576px) {
  .stat-grid .stat-cell:nth-last-child(-n+2):nth-child(odd) { border-right: 1px solid var(--sh-line-light); }
}

.section-dark .stat-grid { border-color: rgba(255,255,255,0.10); background: transparent; }
.section-dark .stat-cell { border-color: rgba(255,255,255,0.10); }
.section-dark .stat-cell .stat-num { color: var(--sh-text-invert); }
.section-dark .stat-cell .stat-num .unit { color: var(--sh-accent-hi); }
.section-dark .stat-cell .stat-label { color: var(--sh-text-invert-muted); }
.section-dark .stat-cell .stat-source { color: var(--sh-text-invert-muted); }

/* ---------- 11. Process / Timeline ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.process-step {
  background: var(--sh-surface);
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  padding: 1.6rem;
  position: relative;
}
.section-dark .process-step {
  background: var(--sh-bg-alt);
  border-color: rgba(255,255,255,0.08);
}
.process-step .step-num {
  font-family: var(--sh-font-mono);
  font-size: .72rem;
  color: var(--sh-text-muted);
  letter-spacing: .12em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.section-dark .process-step .step-num { color: var(--sh-text-invert-muted); }
.process-step h4 { margin-bottom: .5rem; }
.process-step p { font-size: .92rem; margin-bottom: 0; }
@media (max-width: 991px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- 12. CTA banner ---------- */
.cta-banner {
  background: var(--sh-bg);
  border-radius: var(--sh-r-lg);
  padding: clamp(2.25rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
  color: var(--sh-text-invert);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: auto auto -40% -10%;
  width: 70%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(58,120,161,0.30), transparent 65%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--sh-text-invert); max-width: 22ch; position: relative; z-index: 1; }
.cta-banner p { color: var(--sh-text-invert-muted); max-width: 60ch; position: relative; z-index: 1; }
.cta-banner .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
  position: relative;
  z-index: 1;
}
.cta-banner .btn-ghost-sh {
  color: var(--sh-text-invert);
  border-color: var(--sh-line-strong);
}
.cta-banner .btn-ghost-sh:hover {
  border-color: var(--sh-text-invert);
  background: rgba(255,255,255,0.06);
}

/* ---------- 13. Quote / Testimonial ---------- */
.quote-card {
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  padding: 2.25rem;
  background: var(--sh-surface);
  position: relative;
}
.quote-card .quote-mark {
  font-size: 2.5rem;
  color: var(--sh-accent);
  line-height: .8;
  margin-bottom: .75rem;
  font-family: Georgia, "Times New Roman", serif;
}
.quote-card blockquote {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--sh-text);
}
.quote-card .quote-author { font-weight: 600; color: var(--sh-text); }
.quote-card .quote-role { font-size: .9rem; color: var(--sh-text-muted); }

/* ---------- 14. Footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--sh-bg);
  color: var(--sh-text-invert-muted);
  padding: 4.25rem 0 1.75rem;
  border-top: 1px solid var(--sh-bg-alt);
}
.footer::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -105px;
  width: min(34vw, 430px);
  aspect-ratio: 1.3;
  background: url("../img/emblem.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: .025;
  pointer-events: none;
}
.footer > .container { position: relative; z-index: 1; }
.footer h4 {
  color: var(--sh-text-invert);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: .3rem 0; }
.footer a { color: var(--sh-text-invert-muted); font-size: .92rem; }
.footer a:hover { color: #FFFFFF; }
.footer p { color: var(--sh-text-invert-muted); font-size: .92rem; }

.footer-about .brand { color: var(--sh-text-invert); margin-bottom: 1rem; }
.footer-about .brand:hover { color: var(--sh-text-invert); }
.footer-about .brand-logo { width: 156px; }
.footer-about p { font-size: .92rem; max-width: 36ch; }
.footer-about .footer-social { margin-top: 1rem; }
.footer-about .footer-social a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--sh-text-invert);
  font-weight: 600;
}
.footer-about .footer-social i { color: var(--sh-accent-hi); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: .85rem;
}
.footer-bottom .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.footer-bottom .legal-links a { white-space: nowrap; }

@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer::after { display: none; }
}

/* ---------- 15. Page hero (interior pages) ---------- */
.page-hero {
  background: var(--sh-bg);
  color: var(--sh-text-invert);
  padding: clamp(80px, 9vw, 120px) 0 clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 55%; height: 75%;
  background: radial-gradient(ellipse at center, rgba(58,120,161,0.20), transparent 65%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: min(38vw, 500px);
  aspect-ratio: 1.3;
  right: -5%;
  bottom: -24%;
  background: url("../img/emblem.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: .04;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; max-width: 900px; }
.page-hero h1 {
  color: var(--sh-text-invert);
  margin-bottom: 1.25rem;
  max-width: 24ch;
}
.page-hero p {
  color: var(--sh-text-invert-muted);
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  max-width: 60ch;
}
.crumbs {
  font-size: .85rem;
  color: var(--sh-text-invert-muted);
  margin-bottom: 1.25rem;
}
.crumbs a { color: var(--sh-text-invert-muted); }
.crumbs a:hover { color: var(--sh-accent-hi); }
.crumbs .sep { margin: 0 .4rem; opacity: .5; }

/* ---------- 16. Industry grid ---------- */
.industry-card {
  background: var(--sh-surface);
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  padding: 1.85rem;
  transition: all var(--sh-base) var(--sh-ease);
  height: 100%;
}
.industry-card:hover {
  border-color: var(--sh-accent-line);
  box-shadow: var(--sh-shadow-md);
  transform: translateY(-2px);
}
.industry-card .industry-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--sh-accent-soft);
  color: var(--sh-accent);
  display: grid; place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}

/* ---------- 17. Case study card ---------- */
.case-card {
  background: var(--sh-surface);
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--sh-base) var(--sh-ease);
}
.case-card:hover { box-shadow: var(--sh-shadow-md); transform: translateY(-3px); border-color: #CBD5DF; }
.case-card .case-tag {
  display: inline-block;
  font-family: var(--sh-font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sh-accent);
  margin-bottom: .85rem;
}
.case-card .case-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.case-card .case-result {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sh-line-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.case-card .case-result .r-num { font-weight: 700; font-size: 1.25rem; color: var(--sh-text); letter-spacing: -.015em; }
.case-card .case-result .r-lbl { font-size: .78rem; color: var(--sh-text-muted); margin-top: .25rem; }

/* ---------- 18. Insights / article list ---------- */
.article-card {
  background: var(--sh-surface);
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  padding: 1.85rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--sh-base) var(--sh-ease);
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--sh-shadow-md); border-color: #CBD5DF; }
.article-card .article-meta {
  font-size: .78rem;
  color: var(--sh-text-muted);
  font-family: var(--sh-font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.article-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.article-card h3 a { color: var(--sh-text); }
.article-card h3 a:hover { color: var(--sh-accent); }
.article-card p { font-size: .94rem; }
.article-card .read-more { margin-top: auto; padding-top: .85rem; }

/* Long-form article body */
.article-body { max-width: 720px; margin: 0 auto; }
.article-body .article-lede {
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--sh-text-body);
  margin-bottom: 2rem;
}
.article-body h2 {
  font-size: 1.5rem;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}
.article-body h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: .75rem;
}
.article-body p,
.article-body ul,
.article-body ol { font-size: 1.02rem; line-height: 1.75; color: var(--sh-text-body); }
.article-body ul,
.article-body ol { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: .5rem; }
.article-body blockquote {
  border-left: 3px solid var(--sh-accent);
  padding: .25rem 0 .25rem 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--sh-text);
}
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  font-size: .85rem;
  color: var(--sh-text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--sh-line-light);
}
.article-meta-row .tag {
  font-family: var(--sh-font-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sh-accent-deep);
  background: var(--sh-accent-soft);
  border: 1px solid var(--sh-accent-line);
  padding: .25rem .6rem;
  border-radius: var(--sh-r-pill);
}
.article-share {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sh-line-light);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  align-items: center;
}
.article-share .share-label {
  font-size: .85rem;
  color: var(--sh-text-muted);
  margin-right: .5rem;
}

/* Certification-specific UI */
.q-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: .4rem;
  margin-top: .5rem;
}
.q-nav button {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--sh-line-light);
  background: #FFFFFF;
  border-radius: var(--sh-r-sm);
  font-size: .8rem;
  font-weight: 600;
  color: var(--sh-text-muted);
  cursor: pointer;
  transition: all var(--sh-fast) var(--sh-ease);
}
.q-nav button:hover { border-color: var(--sh-accent); color: var(--sh-text); }
.q-nav button.answered { background: var(--sh-accent-soft); border-color: var(--sh-accent); color: var(--sh-accent-deep); }
.q-nav button.flagged { background: #FBF1DE; border-color: #B47A1A; color: #B47A1A; }
.q-nav button.current { background: var(--sh-accent); border-color: var(--sh-accent); color: #FFFFFF; }
.q-nav-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  font-size: .8rem;
  color: var(--sh-text-muted);
  margin-top: .75rem;
}
.q-nav-legend .swatch {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 3px;
  margin-right: .35rem;
  vertical-align: middle;
  border: 1px solid var(--sh-line-light);
}

/* Public credential profile */
.profile-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--sh-accent-soft);
  border: 2px solid var(--sh-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sh-accent-deep);
  flex-shrink: 0;
}
.profile-cred-card {
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  padding: 1.25rem 1.5rem;
  background: #FFFFFF;
}
.profile-cred-card.revoked { border-color: #B0463B; background: #FCEFEC; }
.profile-cred-card .cred-status-active { color: var(--sh-accent-deep); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.profile-cred-card .cred-status-revoked { color: #B0463B; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

/* Tools / interactive assessments */
.tool-card {
  background: var(--sh-surface);
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  padding: 1.85rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--sh-base) var(--sh-ease);
  position: relative;
  overflow: hidden;
}
.tool-card.flagship {
  border-color: var(--sh-accent);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--sh-bg-soft) 100%);
}
.tool-card.flagship::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--sh-accent), var(--sh-accent-hi), var(--sh-accent));
}
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--sh-shadow-md); border-color: #CBD5DF; }
.tool-card.flagship:hover { border-color: var(--sh-accent); }
.tool-card .tool-meta {
  font-family: var(--sh-font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sh-text-muted);
  margin-bottom: .75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}
.tool-card.flagship .tool-meta .flagship-tag {
  color: var(--sh-accent-deep);
  background: var(--sh-accent-soft);
  border: 1px solid var(--sh-accent-line);
  padding: .15rem .5rem;
  border-radius: var(--sh-r-pill);
}
.tool-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.tool-card.flagship h3 { font-size: 1.4rem; }
.tool-card p { font-size: .95rem; }
.tool-card .tool-foot { margin-top: auto; padding-top: 1rem; }

/* Question stepper */
.tool-runner { max-width: 760px; margin: 0 auto; }
.tool-runner .step-meter {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: var(--sh-text-muted);
}
.tool-runner .step-meter .bar { flex: 1; height: 6px; background: var(--sh-line-light); border-radius: var(--sh-r-pill); overflow: hidden; }
.tool-runner .step-meter .bar > span { display: block; height: 100%; background: var(--sh-accent); border-radius: var(--sh-r-pill); transition: width var(--sh-base) var(--sh-ease); }
.tool-question { display: none; }
.tool-question.active { display: block; }
.tool-question h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.tool-question .q-context { color: var(--sh-text-muted); font-size: .95rem; margin-bottom: 1.25rem; }
.tool-options { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .65rem; }
.tool-options li { border: 1px solid var(--sh-line-light); border-radius: var(--sh-r-md); background: #FFFFFF; transition: all var(--sh-fast) var(--sh-ease); }
.tool-options li:hover { border-color: var(--sh-accent); }
.tool-options li.selected { border-color: var(--sh-accent); background: var(--sh-accent-soft); }
.tool-options label { display: flex; gap: .85rem; padding: .9rem 1.1rem; cursor: pointer; align-items: flex-start; font-size: .98rem; color: var(--sh-text); }
.tool-options input { margin-top: .25rem; accent-color: var(--sh-accent); flex-shrink: 0; }
.tool-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Tool result rendering */
.tool-result { display: none; }
.tool-result.active { display: block; }
.result-score-card {
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(135deg, #FFFFFF 0%, var(--sh-bg-soft) 100%);
  position: relative;
  overflow: hidden;
}
.result-score-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--sh-accent), var(--sh-accent-hi), var(--sh-accent));
}
.result-score-card .verdict-label {
  font-family: var(--sh-font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sh-accent-deep);
  font-weight: 600;
}
.result-score-card .verdict-h {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: .35rem 0 .75rem;
}
.result-score-card .verdict-blurb {
  font-size: 1.05rem;
  color: var(--sh-text-body);
  margin-bottom: 1rem;
}
.uncomfortable-truth {
  border-left: 4px solid var(--sh-accent);
  background: var(--sh-accent-soft);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 var(--sh-r-md) var(--sh-r-md) 0;
}
.uncomfortable-truth .ut-label {
  font-family: var(--sh-font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sh-accent-deep);
  font-weight: 600;
  margin-bottom: .35rem;
  display: block;
}
.uncomfortable-truth p { margin-bottom: 0; color: var(--sh-text); font-style: italic; }

/* Radar / dimension bars */
.dimension-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.dimension-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .35rem;
}
.dimension-row .dim-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  font-size: .95rem;
}
.dimension-row .dim-name { font-weight: 600; color: var(--sh-text); }
.dimension-row .dim-score { font-family: var(--sh-font-mono); color: var(--sh-text-muted); font-size: .85rem; }
.dimension-row .dim-bar { height: 8px; background: var(--sh-line-light); border-radius: var(--sh-r-pill); overflow: hidden; }
.dimension-row .dim-bar > span { display: block; height: 100%; background: var(--sh-accent); border-radius: var(--sh-r-pill); transition: width var(--sh-base) var(--sh-ease); }
.dimension-row .dim-bar > span.low { background: #B0463B; }
.dimension-row .dim-bar > span.mid { background: #B47A1A; }
.dimension-row .dim-bar > span.high { background: var(--sh-accent); }
.dimension-row .dim-note { font-size: .85rem; color: var(--sh-text-muted); margin-top: .1rem; }

/* Conversational tool variant */
.tool-conversation {
  display: flex;
  flex-direction: column;
  height: min(70vh, 720px);
  min-height: 480px;
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-lg);
  background: var(--sh-bg-soft);
  overflow: hidden;
}
.tool-conversation .conv-progress {
  flex: 0 0 auto;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--sh-line-light);
  background: #FFFFFF;
  font-family: var(--sh-font-mono);
  font-size: .75rem;
  color: var(--sh-text-muted);
  display: flex;
  gap: 1rem;
  align-items: center;
  letter-spacing: .04em;
}
.tool-conversation .conv-progress .bar { flex: 1; height: 3px; background: var(--sh-line-light); border-radius: var(--sh-r-pill); overflow: hidden; }
.tool-conversation .conv-progress .bar > span { display: block; height: 100%; background: var(--sh-accent); border-radius: var(--sh-r-pill); transition: width .5s var(--sh-ease); }
.tool-conversation .conv-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  .tool-conversation .conv-scroll { scroll-behavior: auto; }
}
.tool-thread { display: flex; flex-direction: column; gap: 1.5rem; }
.thread-turn {
  display: flex; flex-direction: column; gap: .4rem;
  opacity: 0; transform: translateY(8px);
  animation: threadIn .42s var(--sh-ease) forwards;
  max-width: 88%;
}
.thread-turn.turn-ask { align-self: flex-start; }
.thread-turn.turn-answered { align-self: flex-end; }
@keyframes threadIn { to { opacity: 1; transform: translateY(0); } }

.thread-turn .turn-meta {
  font-family: var(--sh-font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sh-text-muted);
  padding: 0 .25rem;
}
.thread-turn.turn-answered .turn-meta { text-align: right; }
.thread-turn .turn-meta .dim-tag { color: var(--sh-accent-deep); }

/* Recap of the question inside the answered turn, so scrolling back through the
   thread reads as a real conversation, not a wall of one-liner answers. */
.thread-turn.turn-answered .answered-question {
  color: var(--sh-text-muted);
  font-size: .88rem;
  line-height: 1.45;
  padding: 0 .25rem;
  text-align: right;
  margin-bottom: .3rem;
  font-style: italic;
}

.turn-bubble {
  border-radius: var(--sh-r-md);
  padding: 1.1rem 1.25rem;
  background: #FFFFFF;
  border: 1px solid var(--sh-line-light);
}
.turn-bubble.ask {
  border-top-left-radius: 4px;
}
.turn-bubble.ask h3 { font-size: 1.1rem; margin: 0 0 .5rem; color: var(--sh-text); line-height: 1.45; font-weight: 600; }
.turn-bubble.ask .q-context { color: var(--sh-text-muted); font-size: .9rem; margin: 0 0 1rem; line-height: 1.5; }

/* Chip-style options */
.chip-options { list-style: none; padding: 0; margin: .25rem 0 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chip-options li { margin: 0; }
.chip-options label {
  display: inline-flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .65rem 1rem;
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-pill);
  background: #FFFFFF;
  cursor: pointer;
  font-size: .93rem;
  line-height: 1.4;
  color: var(--sh-text);
  min-height: 44px;
  transition: border-color var(--sh-fast) var(--sh-ease), background var(--sh-fast) var(--sh-ease), transform var(--sh-fast) var(--sh-ease);
}
.chip-options label:hover { border-color: var(--sh-accent); background: var(--sh-accent-soft); }
.chip-options input { position: absolute; opacity: 0; pointer-events: none; }
.chip-options input:focus-visible + span,
.chip-options label:focus-within { outline: 2px solid var(--sh-accent); outline-offset: 2px; }
.chip-options label.selected {
  border-color: var(--sh-accent);
  background: var(--sh-accent);
  color: #FFFFFF;
  transform: scale(0.98);
}

/* Answered turn - assistant-style right-aligned bubble */
.turn-bubble.answered {
  background: var(--sh-accent);
  border-color: var(--sh-accent);
  color: #FFFFFF;
  border-top-right-radius: 4px;
  padding: .8rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.turn-bubble.answered .answer-text { color: #FFFFFF; font-size: .95rem; line-height: 1.5; flex: 1; }
.turn-bubble.answered .change-btn {
  background: rgba(255,255,255,.15);
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: .35rem .5rem;
  border-radius: var(--sh-r-sm);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .8rem;
  line-height: 1;
}
.turn-bubble.answered .change-btn:hover { background: rgba(255,255,255,.28); }
.turn-bubble.answered .change-btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.turn-bubble.answered .change-btn i { font-size: .95rem; }

/* Typing indicator */
.thread-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: .35rem;
  padding: .95rem 1.15rem;
  background: #FFFFFF;
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  border-top-left-radius: 4px;
  align-items: center;
  opacity: 0;
  animation: threadIn .25s var(--sh-ease) forwards;
}
.thread-typing .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--sh-accent);
  animation: typingBlink 1.3s infinite ease-in-out;
}
.thread-typing .dot:nth-child(2) { animation-delay: .18s; }
.thread-typing .dot:nth-child(3) { animation-delay: .36s; }
@keyframes typingBlink { 0%, 60%, 100% { opacity: .2; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

@media (max-width: 576px) {
  .thread-turn { max-width: 96%; }
  .chip-options label { font-size: .9rem; padding: .6rem .85rem; }
}

/* 2x2 matrix */
.matrix-2x2 {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 1rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  background: #FFFFFF;
}
.matrix-2x2 .quad {
  padding: 1rem;
  font-size: .85rem;
  color: var(--sh-text-muted);
  border-right: 1px solid var(--sh-line-light);
  border-bottom: 1px solid var(--sh-line-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.matrix-2x2 .quad:nth-child(2), .matrix-2x2 .quad:nth-child(4) { border-right: none; }
.matrix-2x2 .quad:nth-child(3), .matrix-2x2 .quad:nth-child(4) { border-bottom: none; }
.matrix-2x2 .quad strong { color: var(--sh-text); font-size: .82rem; display: block; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.matrix-2x2 .you-dot {
  position: absolute;
  width: 18px; height: 18px;
  background: var(--sh-accent);
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--sh-accent), 0 4px 12px rgba(58,120,161,0.4);
  transform: translate(-50%, 50%);
  z-index: 2;
}
.matrix-2x2 .you-label {
  position: absolute;
  transform: translate(-50%, calc(50% + 22px));
  font-size: .8rem;
  font-weight: 600;
  color: var(--sh-accent-deep);
  background: #FFFFFF;
  padding: .15rem .5rem;
  border-radius: var(--sh-r-pill);
  border: 1px solid var(--sh-accent-line);
  white-space: nowrap;
  z-index: 2;
}
.matrix-axis-x, .matrix-axis-y {
  font-size: .8rem;
  color: var(--sh-text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.matrix-axis-x { margin-top: .5rem; max-width: 460px; margin-left: auto; margin-right: auto; }
.matrix-axis-y { writing-mode: vertical-rl; transform: rotate(180deg); position: absolute; left: -2rem; top: 50%; transform-origin: center; }
@media (max-width: 575px) {
  .matrix-2x2 .quad { padding: .65rem; font-size: .75rem; }
}

.track-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--sh-font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sh-accent-deep);
  background: var(--sh-accent-soft);
  border: 1px solid var(--sh-accent-line);
  padding: .2rem .55rem;
  border-radius: var(--sh-r-pill);
}
.cert-card .cert-level {
  font-size: .78rem;
  font-weight: 600;
  color: var(--sh-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}
.exam-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--sh-bg-soft);
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  margin-bottom: 1.75rem;
  font-size: .92rem;
}
.exam-progress .bar {
  flex: 1;
  height: 6px;
  background: var(--sh-line-light);
  border-radius: var(--sh-r-pill);
  overflow: hidden;
  min-width: 120px;
}
.exam-progress .bar > span {
  display: block;
  height: 100%;
  background: var(--sh-accent);
  border-radius: var(--sh-r-pill);
}
.exam-progress .timer {
  font-family: var(--sh-font-mono);
  font-weight: 600;
  color: var(--sh-text);
  white-space: nowrap;
}
.exam-question h2 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}
.exam-options { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .75rem; }
.exam-options li {
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  background: #FFFFFF;
  transition: all var(--sh-fast) var(--sh-ease);
}
.exam-options li:hover { border-color: var(--sh-accent); }
.exam-options label {
  display: flex;
  gap: .85rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--sh-text);
}
.exam-options input[type="radio"] { margin-top: .25rem; accent-color: var(--sh-accent); }
.exam-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.credential-card {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--sh-bg-soft) 100%);
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-lg);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.credential-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--sh-accent), var(--sh-accent-hi), var(--sh-accent));
}
.credential-card .cred-mark {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--sh-accent-soft);
  border: 2px solid var(--sh-accent);
  color: var(--sh-accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1rem;
}
.credential-card .cred-id {
  font-family: var(--sh-font-mono);
  font-size: .9rem;
  color: var(--sh-text-muted);
  background: #FFFFFF;
  border: 1px dashed var(--sh-line-light);
  padding: .5rem .85rem;
  border-radius: var(--sh-r-sm);
  display: inline-block;
  margin-top: .5rem;
}
.credential-card .cred-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.verify-result {
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  padding: 1.5rem 1.75rem;
  background: #FFFFFF;
}
.verify-result.valid { border-color: var(--sh-accent); background: var(--sh-accent-soft); }
.verify-result .status {
  font-family: var(--sh-font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.verify-result.valid .status { color: var(--sh-accent-deep); }
.verify-result dl { display: grid; grid-template-columns: 180px 1fr; gap: .5rem 1rem; margin: 1rem 0 0; }
.verify-result dt { color: var(--sh-text-muted); font-size: .9rem; }
.verify-result dd { color: var(--sh-text); font-size: .95rem; margin: 0; }
@media (max-width: 575px) {
  .verify-result dl { grid-template-columns: 1fr; gap: .15rem .5rem; }
  .verify-result dt { margin-top: .5rem; }
}

/* ---------- 19. Forms ---------- */
.form-sh label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--sh-text);
}
.form-sh .input,
.form-sh input[type="text"],
.form-sh input[type="email"],
.form-sh input[type="tel"],
.form-sh select,
.form-sh textarea {
  width: 100%;
  padding: .8rem 1rem;
  font: inherit;
  color: var(--sh-text);
  background: var(--sh-surface);
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-sm);
  transition: border-color var(--sh-fast) var(--sh-ease), box-shadow var(--sh-fast) var(--sh-ease);
}
.form-sh .input:focus,
.form-sh input:focus,
.form-sh select:focus,
.form-sh textarea:focus {
  outline: none;
  border-color: var(--sh-accent);
  box-shadow: 0 0 0 3px var(--sh-accent-soft);
}
.form-sh textarea { min-height: 140px; resize: vertical; }
.form-sh .field { margin-bottom: 1rem; }
.form-sh .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 575px) { .form-sh .row-2 { grid-template-columns: 1fr; } }

.help { font-size: .82rem; color: var(--sh-text-muted); margin-top: .5rem; }

.form-sh.form-submitted > :not([data-form-status]) { display: none; }
.form-success {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
  padding: .5rem 0;
  color: var(--sh-text);
  font-size: 1rem;
  line-height: 1.55;
  outline: none;
}
.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: #fff;
  background: var(--sh-accent);
  font-size: 1.35rem;
}
.form-success strong { display: block; margin-bottom: .25rem; font-size: 1.2rem; }
.form-success strong + span { display: block; color: var(--sh-text-muted); }

/* ---------- 20. Two-col split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 991px) { .split { grid-template-columns: 1fr; } }

/* Code-style snippet visual - brand-coloured */
.snippet {
  background: var(--sh-bg-alt);
  color: #E6EEF5;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--sh-r-md);
  padding: 1.35rem 1.5rem;
  font-family: var(--sh-font-mono);
  font-size: .85rem;
  line-height: 1.7;
  overflow-x: auto;
}
.snippet .c { color: #7A95A8; }
.snippet .k { color: var(--sh-accent-hi); }
.snippet .s { color: #C3D7E5; }

/* ---------- 21. Pricing tiers ---------- */
.tier {
  border: 1px solid var(--sh-line-light);
  border-radius: var(--sh-r-md);
  padding: 2rem;
  background: var(--sh-surface);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--sh-base) var(--sh-ease), border-color var(--sh-base) var(--sh-ease);
}
.tier:hover { box-shadow: var(--sh-shadow-md); border-color: #CBD5DF; }
.tier.tier-featured {
  border-color: var(--sh-accent);
  box-shadow: 0 0 0 1px var(--sh-accent), 0 12px 32px rgba(58,120,161,0.16);
  position: relative;
}
.tier.tier-featured:hover { box-shadow: 0 0 0 1px var(--sh-accent), 0 16px 40px rgba(58,120,161,0.22); }
.tier .tier-name {
  font-family: var(--sh-font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--sh-accent);
  text-transform: uppercase;
}
/* Tier "headline" - used for prices OR durations. Smaller and tighter than a stat,
   so durations like "2-3 weeks" don't compete with the section title above. */
.tier .tier-price {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
  margin: .65rem 0 .35rem;
  color: var(--sh-text);
}
.tier .tier-price .unit { font-size: .95rem; font-weight: 500; color: var(--sh-text-muted); }
.tier .tier-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--sh-accent); color: #FFFFFF;
  padding: .3rem .85rem; border-radius: var(--sh-r-pill);
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.tier .tier-action { margin-top: auto; padding-top: 1.5rem; }

/* Tier inside dark section */
.section-dark .tier {
  background: var(--sh-bg-alt);
  border-color: rgba(255,255,255,0.10);
}
.section-dark .tier:hover { border-color: rgba(255,255,255,0.22); }
.section-dark .tier .tier-name { color: var(--sh-accent-hi); }
.section-dark .tier .tier-price { color: var(--sh-text-invert); }
.section-dark .tier .tier-price .unit { color: var(--sh-text-invert-muted); }
.section-dark .tier.tier-featured {
  border-color: var(--sh-accent-hi);
  box-shadow: 0 0 0 1px var(--sh-accent-hi), 0 14px 36px rgba(0,0,0,0.35);
}
.section-dark .tier .text-muted-sh { color: var(--sh-text-invert-muted); }

/* ---------- 22. Misc ---------- */
.divider {
  height: 1px;
  background: var(--sh-line-light);
  margin: 3rem 0;
}
.section-dark .divider { background: rgba(255,255,255,0.10); }

.text-muted-sh { color: var(--sh-text-muted); }
.section-dark .text-muted-sh { color: var(--sh-text-invert-muted); }

.kicker {
  font-family: var(--sh-font-mono);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sh-accent);
  font-weight: 500;
}
.section-dark .kicker,
.cta-banner .kicker { color: #8CBDD9; }

/* Scroll-to-top */
.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--sh-bg);
  color: var(--sh-text-invert);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--sh-fast) var(--sh-ease), transform var(--sh-fast) var(--sh-ease), background var(--sh-fast) var(--sh-ease);
  border: 1px solid var(--sh-bg-alt);
  z-index: 40;
  font-size: 1.05rem;
}
.scroll-top.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--sh-accent); color: #FFFFFF; border-color: var(--sh-accent); }

/* AOS subtle override */
[data-aos] { will-change: opacity, transform; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
