/* =========================================================================
   coheal.ai — v2 site CSS
   Built from brand-tokens.json v2.2 (canonical). Do not hand-edit color/font
   values here without updating brand-tokens.json first — see BRAND.md.
   Component classes (.ch-capsule, .ch-dcard) per component-library-proposal.md
   (adopted Option A). Everything else below extends that same system for the
   v2 marketing pages (hero, nav, footer, forms, stepper, phone mockup, etc.)
   ========================================================================= */

:root {
  /* Color — 60% primary / 30% secondary / 10% accent (brand-tokens.json) */
  --color-primary-teal: #00424E;
  --color-primary-teal-tint: #73979E;
  --color-primary-teal-shade: #002B33;
  --color-neutral-ink: #31383F;
  --color-neutral-ink-soft: #5B6169;
  --color-neutral-paper: #FFFFFF;
  --color-neutral-paper-warm: #FBFAF8;
  --color-neutral-rule: #E4E1DC;
  --color-secondary-mint: #C4EBE7;
  --color-secondary-brown: #6F4E37;
  --color-secondary-stone: #DCDCDC;
  --color-accent-gold: #FFD700;
  --color-accent-rust: #C06014;

  /* Derived tints — alpha-only mixes of the tokens above, per
     component-library-proposal.md's "Teal-Tint-at-18%, Gold-at-16%" stat
     tile spec. No new hues introduced. */
  --fill-teal-tint-18: rgba(115, 151, 158, 0.18);
  --fill-gold-16: rgba(255, 215, 0, 0.16);
  --fill-mint-40: rgba(196, 235, 231, 0.4);
  --fill-rust-12: rgba(192, 96, 20, 0.12);
  --fill-paper-08: rgba(255, 255, 255, 0.08);
  --fill-paper-14: rgba(255, 255, 255, 0.14);

  /* Typography */
  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', 'Calibri', -apple-system, sans-serif;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* Shadow */
  --shadow-card: 0 1px 2px rgba(49,56,63,0.06), 0 8px 24px rgba(49,56,63,0.05);

  /* Layout */
  --wrap-max: 1180px;
  --wrap-pad: 32px;
}

@media (max-width: 640px) {
  :root { --wrap-pad: 20px; }
}

/* ---------- Base ---------- */
.ch-wrap { max-width: var(--wrap-max); margin: 0 auto; padding-left: var(--wrap-pad); padding-right: var(--wrap-pad); }

/* Every Elementor section on this site uses layout:"full_width" (see
   elementor_builder.py) so Elementor itself adds no max-width/gutter to the
   .elementor-container. We add it here, once, at the container level —
   this is what actually keeps every section's content centered with a
   consistent side gutter, regardless of how many columns it has, without
   needing a manual wrapper div repeated inside every column. */
.elementor-section > .elementor-container {
  max-width: var(--wrap-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--wrap-pad);
  padding-right: var(--wrap-pad);
  box-sizing: border-box;
  gap: 40px;
}
@media (max-width: 640px) { .elementor-section > .elementor-container { gap: 24px; } }
body.coheal { font-family: var(--font-body); color: var(--color-neutral-ink); background: var(--color-neutral-paper-warm); }
body.coheal * { box-sizing: border-box; }
.ch-section { padding: 88px 0; }
.ch-section--tight { padding: 56px 0; }
@media (max-width: 782px) {
  .ch-section { padding: 56px 0; }
  .ch-section--tight { padding: 36px 0; }
}
.ch-bg-paper { background: var(--color-neutral-paper); }
.ch-bg-paper-warm { background: var(--color-neutral-paper-warm); }
.ch-bg-dark {
  background: var(--color-primary-teal-shade);
  background-image:
    linear-gradient(rgba(0,66,78,0.35), rgba(0,66,78,0.35)),
    repeating-linear-gradient(0deg, rgba(196,235,231,0.05) 0px, rgba(196,235,231,0.05) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(196,235,231,0.05) 0px, rgba(196,235,231,0.05) 1px, transparent 1px, transparent 40px);
  color: var(--color-neutral-paper);
}
.ch-bg-mint { background: var(--color-secondary-mint); color: var(--color-neutral-ink); }

/* ---------------------------------------------------------------------
   Fluid dot-field background (hero sections)
   A mouse-reactive canvas layer, drawn by assets/js/site-motion.js, that
   sits behind a hero section's content. Nearby dots draw a faint connecting
   line as the cursor approaches them — a nod to the logo's "woven stroke"
   (documented in brand-guidelines-v2.html as reading "connection — care
   that stays linked across a system"), not a generic particle effect.
   Falls back to a static, non-animated grid for prefers-reduced-motion.
   ------------------------------------------------------------------- */
.ch-section { position: relative; }
.ch-hero-dotfield { overflow: hidden; }
.ch-hero-dotfield > .ch-dotfield-canvas {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; display: block;
}
.ch-hero-dotfield > .elementor-container { position: relative; z-index: 1; }
@media (max-width: 640px) {
  /* Keep the section calm and battery-friendly on small screens. */
  .ch-hero-dotfield > .ch-dotfield-canvas { opacity: 0.6; }
}

/* ---------------------------------------------------------------------
   Flowing highlight — a light travels along a step tracker, arriving at
   each step in turn (a brief glow + lift), then pauses before the lap
   repeats. Replaces the earlier static "orbit" corner ornament with
   something tied to the actual content: the real steps light up in
   sequence, so the animation IS the process, not a decoration next to it.
   Used on the 8-step POSH tracker, the 5-step Culture value tracker
   (both get a travelling dot along their connecting line), and the
   5-card Well-being programs grid (no line to travel along, so just the
   sequential card glow). Per-item timing comes from an inline
   `animation-delay` set at build time in build_pages.py, so one shared
   keyframe set serves any item count. Fully still under
   prefers-reduced-motion, and the travelling dot is hidden on narrow
   screens where the tracker also switches to a vertical/wrapped layout.
   ------------------------------------------------------------------- */
.ch-stepper, .ch-vsteps { position: relative; }
.ch-flow-dot {
  position: absolute; top: 22px; left: 0; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--color-secondary-mint);
  box-shadow: 0 0 12px 3px rgba(196,235,231,0.9);
  z-index: 3; pointer-events: none; opacity: 0;
  animation: ch-flow-travel 14s linear infinite;
}
.ch-vsteps .ch-flow-dot { top: 19px; background: var(--color-primary-teal); box-shadow: 0 0 12px 3px rgba(0,66,78,0.4); }
/* .ch-stepper gets extra top padding (below) to keep the pulsing circle's
   scale+glow from clipping against the tracker's horizontal-scroll overflow
   box, so its travelling dot needs a matching vertical offset. */
.ch-stepper .ch-flow-dot { top: 42px; }
@keyframes ch-flow-travel {
  0%   { left: 0%;   opacity: 0; }
  3%   { opacity: 1; }
  65%  { left: 100%; opacity: 1; }
  70%  { left: 100%; opacity: 0; }
  100% { left: 0%;   opacity: 0; }
}
.ch-step .circ, .ch-vstep .circ { animation: ch-flow-pulse-dark 14s ease-in-out infinite; }
.ch-vstep .circ { animation-name: ch-flow-pulse-light; }
@keyframes ch-flow-pulse-dark {
  0%, 100% { box-shadow: none; transform: scale(1); }
  2% { box-shadow: 0 0 0 7px rgba(196,235,231,0.35); transform: scale(1.14); }
  7% { box-shadow: none; transform: scale(1); }
}
@keyframes ch-flow-pulse-light {
  0%, 100% { box-shadow: none; transform: scale(1); }
  2% { box-shadow: 0 0 0 7px rgba(0,66,78,0.18); transform: scale(1.14); }
  7% { box-shadow: none; transform: scale(1); }
}
.ch-flow-card {
  animation: ch-flow-card-pulse 12s ease-in-out infinite;
  transition: none;
}
@keyframes ch-flow-card-pulse {
  0%, 100% { box-shadow: var(--shadow-card); transform: translateY(0); }
  4% { box-shadow: 0 0 0 3px rgba(0,66,78,0.22), var(--shadow-card); transform: translateY(-4px); }
  11% { box-shadow: var(--shadow-card); transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ch-flow-dot { display: none; }
  .ch-step .circ, .ch-vstep .circ, .ch-flow-card { animation: none; }
}
@media (max-width: 640px) {
  .ch-flow-dot { display: none; }
}

/* ---------------------------------------------------------------------
   Home hero — fluid shield mark
   A large, softly breathing/shimmering copy of the actual logo mark (the
   shield's line art, cropped straight from the master badge asset — not
   a redrawn approximation) sitting behind the hero's dashboard-card
   mockup. `mask-image` clips two layered divs to the shield's own
   silhouette: a faint, slowly "breathing" base fill, and a diagonal
   sheen that sweeps across it like light moving through liquid glass —
   the "fluidic" quality applied to the brand mark itself, replacing the
   generic dot-field on this one page per the brand owner's steer.
   Progressive enhancement: browsers without mask-image support simply
   don't render the (purely decorative) layers.
   ------------------------------------------------------------------- */
.ch-hero-shieldmark-wrap { overflow: hidden; }
.ch-hero-shieldmark {
  position: absolute; top: -60px; right: -140px; width: 640px; height: 640px;
  z-index: 0; pointer-events: none;
}
.ch-shieldmark-base, .ch-shieldmark-sheen {
  position: absolute; inset: 0;
  -webkit-mask-image: url('../img/coheal-shield-mark.png');
  mask-image: url('../img/coheal-shield-mark.png');
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
}
.ch-shieldmark-base {
  background: rgba(196,235,231,0.16);
  animation: ch-shield-breathe 18s ease-in-out infinite;
}
.ch-shieldmark-sheen {
  background: linear-gradient(120deg, transparent 32%, rgba(196,235,231,0.7) 50%, transparent 68%);
  background-size: 260% 260%;
  mix-blend-mode: screen;
  animation: ch-shield-sheen 13s ease-in-out infinite;
}
@keyframes ch-shield-breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.035); }
}
@keyframes ch-shield-sheen {
  0% { background-position: -60% -60%; }
  50% { background-position: 160% 160%; }
  100% { background-position: -60% -60%; }
}
@supports not ((mask-image: none) or (-webkit-mask-image: none)) {
  .ch-shieldmark-base, .ch-shieldmark-sheen { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ch-shieldmark-base, .ch-shieldmark-sheen { animation: none; }
}
@media (max-width: 900px) {
  .ch-hero-shieldmark { display: none; }
}

h1.ch-h1, h2.ch-h2, h3.ch-h3, .ch-h1, .ch-h2, .ch-h3 { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.01em; margin: 0; color: var(--color-neutral-ink); }
.ch-bg-dark h1.ch-h1, .ch-bg-dark h2.ch-h2, .ch-bg-dark .ch-h1, .ch-bg-dark .ch-h2 { color: var(--color-neutral-paper); }
.ch-h1 { font-size: 52px; line-height: 1.06; }
.ch-h2 { font-size: 38px; line-height: 1.12; }
.ch-h3 { font-size: 22px; line-height: 1.25; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
@media (max-width: 782px) {
  .ch-h1 { font-size: 34px; }
  .ch-h2 { font-size: 27px; }
  .ch-h3 { font-size: 19px; }
}
.ch-accent { color: var(--color-secondary-mint); }
.ch-bg-paper .ch-accent, .ch-bg-paper-warm .ch-accent { color: var(--color-primary-teal); }

p.ch-lede, .ch-lede { font-size: 18px; line-height: 1.6; color: var(--color-neutral-ink-soft); max-width: 46ch; }
.ch-bg-dark .ch-lede { color: var(--fill-paper-14); color: rgba(255,255,255,0.78); }
.ch-body { font-size: 16px; line-height: 1.6; color: var(--color-neutral-ink-soft); }

/* ---------- Eyebrow / Capsule component (component-library-proposal.md) ---------- */
.ch-capsule {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  border-radius: var(--radius-pill); border: 1px solid var(--color-primary-teal-tint);
  padding: 6px 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-primary-teal-tint); background: transparent;
}
.ch-capsule--on-dark { border-color: rgba(196,235,231,0.4); color: var(--color-secondary-mint); }
.ch-capsule--centered { display: flex; margin: 0 auto; } /* base .ch-capsule is inline-flex, so
  plain auto margins don't center it (auto margins only center a block-level
  box) — overriding display to flex (still width:fit-content) makes the
  auto-margin centering trick actually work. */
.ch-capsule .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.ch-status { display: inline-flex; align-items: center; width: fit-content; border-radius: var(--radius-pill); padding: 4px 12px; font-size: 11.5px; font-weight: 600; }
.ch-status--review { background: var(--fill-rust-12); color: var(--color-accent-rust); }
.ch-status--closed { background: var(--fill-teal-tint-18); color: var(--color-primary-teal); }
.ch-status--pending { background: rgba(111,78,55,0.12); color: var(--color-secondary-brown); }

/* ---------- Buttons ---------- */
.ch-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: 15px; padding: 14px 26px; border-radius: var(--radius-sm); text-decoration: none !important; border: 1.5px solid transparent; line-height: 1.2; cursor: pointer; transition: opacity .15s ease, transform .15s ease; }
.ch-btn:hover { opacity: 0.88; }
.ch-btn-primary { background: var(--color-primary-teal); color: var(--color-neutral-paper) !important; }
.ch-btn-oncolor { background: var(--color-secondary-mint); color: var(--color-primary-teal-shade) !important; }
.ch-btn-outline { background: transparent; border-color: var(--color-neutral-rule); color: var(--color-neutral-ink) !important; }
.ch-btn-outline--on-dark { border-color: rgba(255,255,255,0.35); color: var(--color-neutral-paper) !important; }
.ch-btn-sm { padding: 10px 18px; font-size: 14px; }
.ch-btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.ch-header { background: var(--color-neutral-paper); border-bottom: 1px solid var(--color-neutral-rule); position: sticky; top: 0; z-index: 999; }
.ch-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.ch-brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; flex: none; }
.ch-brand img { height: 32px; width: 32px; display: block; border-radius: var(--radius-sm); }
.ch-brand-text { font-family: var(--font-body); font-weight: 800; font-size: 20px; letter-spacing: 0; }
.ch-brand-text .c1 { color: var(--color-neutral-ink); }
.ch-brand-text .c2 { color: var(--color-primary-teal); }
.ch-bg-dark .ch-brand-text .c1, footer.ch-footer .ch-brand-text .c1 { color: var(--color-neutral-paper); }
.ch-bg-dark .ch-brand-text .c2, footer.ch-footer .ch-brand-text .c2 { color: var(--color-primary-teal-tint); }

.ch-nav { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.ch-nav li { position: relative; }
.ch-nav a { color: var(--color-neutral-ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.ch-nav a:hover { color: var(--color-primary-teal); }
.ch-nav .menu-item-has-children > a::after { content: '▾'; font-size: 10px; margin-left: 5px; opacity: .6; }
/* top:100% with NO margin (padding does the spacing instead) so the
   submenu's hoverable box starts exactly where the parent <li> ends —
   a margin-based gap here creates a dead zone the mouse has to cross
   that belongs to neither element, which drops :hover before the
   pointer ever reaches the dropdown. */
.ch-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; margin: 0; background: var(--color-neutral-paper); border: 1px solid var(--color-neutral-rule); border-radius: var(--radius-md); box-shadow: var(--shadow-card); min-width: 240px; list-style: none; padding: 16px 8px 8px; z-index: 20; }
.ch-nav li:hover > .sub-menu, .ch-nav li:focus-within > .sub-menu { display: block; }
.ch-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-weight: 500; }
.ch-nav .sub-menu a:hover { background: var(--color-neutral-paper-warm); }
.ch-header-actions { display: flex; align-items: center; gap: 20px; flex: none; }
.ch-header-actions a.ch-signin { font-size: 15px; font-weight: 500; color: var(--color-neutral-ink); text-decoration: none; }
.ch-header-actions a.ch-signin:hover { color: var(--color-primary-teal); }

.ch-nav-toggle { display: none; }
@media (max-width: 960px) {
  .ch-nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--color-neutral-rule); border-radius: var(--radius-sm); background: none; cursor: pointer; }
  .ch-nav-toggle span, .ch-nav-toggle span::before, .ch-nav-toggle span::after { content: ''; display: block; width: 18px; height: 2px; background: var(--color-neutral-ink); position: relative; }
  .ch-nav-toggle span::before { position: absolute; top: -6px; }
  .ch-nav-toggle span::after { position: absolute; top: 6px; }
  .ch-nav { display: none; flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; background: var(--color-neutral-paper); position: absolute; top: 100%; left: 0; padding: 20px var(--wrap-pad); border-bottom: 1px solid var(--color-neutral-rule); }
  .ch-nav.is-open { display: flex; }
  .ch-nav .sub-menu { position: static; box-shadow: none; border: none; padding-left: 12px; margin-top: 4px; display: none; }
  .ch-nav li.is-open > .sub-menu { display: block; }
  .ch-header-actions .ch-signin { display: none; }
}

/* ---------- Hero ---------- */
.ch-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.ch-hero--single { grid-template-columns: 1fr; max-width: 760px; }
@media (max-width: 900px) { .ch-hero { grid-template-columns: 1fr; } }
.ch-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.ch-hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.ch-hero-trust .avatars { display: flex; }
.ch-hero-trust .avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--color-primary-teal-shade); margin-left: -10px; display: inline-block; }
.ch-hero-trust .avatars span:first-child { margin-left: 0; }
.ch-hero-trust .avatars span:nth-child(1) { background: var(--color-primary-teal-tint); }
.ch-hero-trust .avatars span:nth-child(2) { background: var(--color-primary-teal); }
.ch-hero-trust .avatars span:nth-child(3) { background: var(--color-secondary-mint); }
.ch-hero-trust p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,0.65); max-width: 26ch; }

/* ---------- Stat strip ---------- */
.ch-stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--color-neutral-rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-neutral-paper); }
.ch-stat-strip .stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--color-neutral-rule); }
.ch-stat-strip .stat:last-child { border-right: none; }
.ch-stat-strip .num { font-family: var(--font-display); font-weight: 900; font-size: 34px; color: var(--color-primary-teal); display: block; }
.ch-stat-strip .num .g { color: var(--color-secondary-mint); -webkit-text-stroke: .5px var(--color-primary-teal-tint); }
.ch-stat-strip .lbl { font-size: 13px; color: var(--color-neutral-ink-soft); margin-top: 4px; }
@media (max-width: 700px) { .ch-stat-strip { grid-template-columns: repeat(2, 1fr); } .ch-stat-strip .stat:nth-child(2) { border-right: none; } .ch-stat-strip .stat { border-bottom: 1px solid var(--color-neutral-rule); } }

/* ---------- Grid helpers ---------- */
.ch-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ch-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ch-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ch-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 900px) { .ch-grid-3, .ch-grid-4, .ch-grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ch-grid-2, .ch-grid-3, .ch-grid-4, .ch-grid-5 { grid-template-columns: 1fr; } }

/* ---------- Feature / pillar cards ---------- */
.ch-card { background: var(--color-neutral-paper); color: var(--color-neutral-ink); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 32px; }
.ch-card--dark { background: var(--color-primary-teal-shade); color: var(--color-neutral-paper); }
.ch-card--dark .ch-h3 { color: var(--color-neutral-paper); }
.ch-card--dark p { color: rgba(255,255,255,0.72); }
.ch-card--teal { background: var(--color-primary-teal); color: var(--color-neutral-paper); }
.ch-card--teal .ch-h3, .ch-card--teal .ch-card-num { color: var(--color-neutral-paper); }
.ch-card--teal p { color: rgba(255,255,255,0.8); }
.ch-card-num { display: inline-flex; align-items:center; justify-content:center; min-width: 44px; height: 32px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--fill-teal-tint-18); color: var(--color-primary-teal); font-weight: 700; font-size: 14px; font-family: var(--font-body); margin-bottom: 18px; }
.ch-card--teal .ch-card-num, .ch-card--dark .ch-card-num { background: rgba(255,255,255,0.14); }
.ch-card h3.ch-h3 { margin-bottom: 10px; }
.ch-card p { margin: 0; }
.ch-card ul.ch-sublist { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ch-card ul.ch-sublist li { font-size: 14px; font-weight: 600; padding: 12px 14px; border-radius: var(--radius-md); background: rgba(255,255,255,0.08); }
.ch-card--light-sublist ul.ch-sublist li { background: var(--color-neutral-paper-warm); color: var(--color-neutral-ink); }

/* ---------- Founder cards (About Us) ---------- */
.ch-founder-top { display: flex; align-items: center; gap: 16px; }
.ch-founder .av {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-teal-tint); color: var(--color-neutral-paper);
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  object-fit: cover; /* if <div class="av">KK</div> is swapped for
                         <img class="av" src="..."> to show a real photo, this
                         keeps it filling the circle without stretching,
                         whatever the source photo's aspect ratio. */
}
.ch-founder .role { display: block; font-size: 13px; font-weight: 600; color: var(--color-neutral-ink-soft); }
.ch-founder--dark .role, .ch-card--dark.ch-founder .role, .ch-card--teal.ch-founder .role { color: rgba(255,255,255,0.72); }

/* ---------- Old-way / New-way comparison ---------- */
.ch-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .ch-compare { grid-template-columns: 1fr; } }
.ch-compare-col { border-radius: var(--radius-xl); padding: 36px; }
.ch-compare-col.bad { background: var(--color-neutral-paper); border: 1px solid var(--color-neutral-rule); color: var(--color-neutral-ink); }
.ch-compare-col.bad h3.ch-h3 { color: var(--color-neutral-ink); }
.ch-compare-col.good { background: var(--color-primary-teal-shade); color: var(--color-neutral-paper); }
.ch-compare-col.good h3.ch-h3 { color: var(--color-neutral-paper); }
.ch-compare-col.good-light { background: var(--color-neutral-paper); border: 1px solid var(--color-neutral-rule); color: var(--color-neutral-ink); }
.ch-compare-col.good-light h3.ch-h3 { color: var(--color-neutral-ink); }
.ch-compare-col.good-light li::before { content: '✓'; color: var(--color-primary-teal); font-weight: 700; flex: none; }
.ch-compare-col ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ch-compare-col li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.ch-compare-col.bad li::before { content: '✕'; color: var(--color-accent-rust); font-weight: 700; flex: none; }
.ch-compare-col.good li::before { content: '✓'; color: var(--color-secondary-mint); font-weight: 700; flex: none; }

/* ---------- Dashboard Card component (component-library-proposal.md) ---------- */
.ch-dcard { position: relative; z-index: 1; background: var(--color-neutral-paper); color: var(--color-neutral-ink); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); overflow: hidden; text-align: left; }
.ch-dcard-chrome { display: flex; align-items: center; justify-content: space-between; background: var(--color-neutral-paper-warm); border-bottom: 1px solid var(--color-neutral-rule); padding: 10px 18px; }
.ch-dcard-chrome .dots { display: flex; gap: 5px; }
.ch-dcard-chrome .dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--color-neutral-rule); display: inline-block; }
.ch-dcard-chrome .url { font-size: 11.5px; color: var(--color-neutral-ink-soft); font-family: monospace; }
.ch-dcard-body { padding: 22px; }
.ch-dcard-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ch-dcard-title strong { font-size: 16px; font-weight: 700; color: var(--color-neutral-ink); }
.ch-dcard-title .chip { font-size: 11.5px; background: var(--color-neutral-paper-warm); border: 1px solid var(--color-neutral-rule); border-radius: var(--radius-pill); padding: 3px 10px; color: var(--color-neutral-ink-soft); }
.ch-dcard-title .chip--live { background: var(--fill-teal-tint-18); border-color: transparent; color: var(--color-primary-teal); }
.ch-dstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.ch-dstat { border-radius: var(--radius-md); padding: 14px 12px; }
.ch-dstat.mint { background: var(--fill-mint-40); }
.ch-dstat.tint { background: var(--fill-teal-tint-18); }
.ch-dstat.gold { background: var(--fill-gold-16); }
.ch-dstat .n { font-size: 22px; font-weight: 800; color: var(--color-neutral-ink); display: block; }
.ch-dstat .l { font-size: 11.5px; color: var(--color-neutral-ink-soft); margin-top: 2px; }
.ch-dpanel { border: 1px solid var(--color-neutral-rule); border-radius: var(--radius-md); padding: 14px; margin-bottom: 12px; }
.ch-dpanel .t { font-size: 12px; color: var(--color-neutral-ink-soft); margin-bottom: 10px; }
.ch-spark { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.ch-spark span { flex: 1; background: var(--color-primary-teal-tint); border-radius: 2px 2px 0 0; }
.ch-spark span.peak { background: var(--color-secondary-mint); }
.ch-drow { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--color-neutral-rule); font-size: 13.5px; }
.ch-drow:first-of-type { border-top: none; }
.ch-drow .case { color: var(--color-neutral-ink); font-weight: 600; }
.ch-dwatch { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--color-neutral-rule); border-radius: var(--radius-md); font-size: 13.5px; margin-bottom: 8px; }
.ch-dwatch:last-child{ margin-bottom:0; }
.ch-dwatch .team { font-weight: 600; color: var(--color-neutral-ink); }
.ch-dwatch .flag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); }
.ch-dwatch .flag.watch { background: var(--fill-gold-16); color: var(--color-secondary-brown); }
.ch-dwatch .flag.healthy { background: var(--fill-teal-tint-18); color: var(--color-primary-teal); }

/* ---------- Phone mockup ---------- */
.ch-phone { width: 280px; margin: 0 auto; background: var(--color-primary-teal-shade); border: 8px solid var(--color-neutral-ink); border-radius: 34px; box-shadow: var(--shadow-card); padding: 18px 16px 22px; }
.ch-phone-time { text-align: center; font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.ch-phone-hi { color: var(--color-neutral-paper); font-size: 15px; font-weight: 700; }
.ch-phone-sub { color: rgba(255,255,255,0.6); font-size: 12px; margin-top: 2px; }
.ch-phone-item { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 12px; margin-top: 12px; }
.ch-phone-item.active { background: var(--color-secondary-mint); border-color: transparent; }
.ch-phone-item .ic { width: 30px; height: 30px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; flex: none; font-size: 14px; color: var(--color-neutral-paper); }
.ch-phone-item.active .ic { background: rgba(0,66,78,0.15); color: var(--color-primary-teal-shade); }
.ch-phone-item .txt strong { display: block; font-size: 13px; color: var(--color-neutral-paper); }
.ch-phone-item.active .txt strong { color: var(--color-primary-teal-shade); }
.ch-phone-item .txt span { font-size: 11px; color: rgba(255,255,255,0.55); }
.ch-phone-item.active .txt span { color: rgba(0,66,78,0.6); }
.ch-phone-stress { margin-top: 18px; }
.ch-phone-stress .lbl { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.ch-phone-bar { height: 6px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.12); overflow: hidden; }
.ch-phone-bar span { display: block; height: 100%; background: var(--color-secondary-mint); border-radius: var(--radius-pill); }
.ch-phone-bar-note { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 6px; }
.ch-phone-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.ch-phone-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.ch-phone-dots span.on { background: var(--color-secondary-mint); }

/* ---------- Stepper / numbered process ---------- */
.ch-stepper { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 20px 0 8px; }
.ch-step { flex: 1; min-width: 110px; text-align: center; position: relative; }
.ch-step .circ { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--color-primary-teal-tint); color: var(--color-primary-teal-tint); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-weight: 700; font-family: var(--font-body); background: var(--color-primary-teal-shade); position: relative; z-index: 2; }
.ch-step.is-last .circ { background: var(--color-secondary-mint); border-color: var(--color-secondary-mint); color: var(--color-primary-teal-shade); }
.ch-step p { font-size: 13px; color: rgba(255,255,255,0.75); margin: 0; }
.ch-stepper-line { display: flex; align-items: center; }
.ch-step::after { content:''; position: absolute; top: 23px; left: 50%; width: 100%; height: 1px; background: rgba(255,255,255,0.2); z-index: 1; }
.ch-step:last-child::after { display: none; }

/* horizontal value-development stepper (light bg variant) */
.ch-vsteps { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ch-vstep { flex: 1; min-width: 150px; text-align: center; }
.ch-vstep .circ { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--color-neutral-rule); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-weight: 700; color: var(--color-neutral-ink-soft); }
.ch-vstep.done .circ, .ch-vstep.active .circ { background: var(--color-primary-teal); border-color: var(--color-primary-teal); color: var(--color-neutral-paper); }
.ch-vstep h4 { font-size: 14px; margin: 0 0 6px; }
.ch-vstep p { font-size: 12.5px; color: var(--color-neutral-ink-soft); margin: 0; }

/* ---------- Skill grid ---------- */
.ch-skill { border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 22px; }
.ch-skill .ic {
  width: 38px; height: 38px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.08);
  margin-bottom: 14px; display: flex; align-items: center; justify-content: center;
  color: var(--color-secondary-mint); /* on-dark pairing — this grid sits on .ch-bg-dark;
                                          use var(--color-primary-teal) instead if reused on a light bg */
}
.ch-skill .ic svg { width: 20px; height: 20px; }
.ch-skill h4 { font-size: 14.5px; color: var(--color-neutral-paper); margin: 0; }

/* ---------- Testimonials ---------- */
.ch-quote { background: var(--color-neutral-paper); color: var(--color-neutral-ink); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 30px; }
.ch-quote .mark { font-size: 30px; color: var(--color-primary-teal-tint); font-family: Georgia, serif; line-height: 1; }
.ch-quote p.q { font-size: 15px; line-height: 1.55; color: var(--color-neutral-ink); margin: 10px 0 20px; }
.ch-quote .who { display: flex; align-items: center; gap: 12px; }
.ch-quote .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary-teal-tint); flex: none; }
.ch-quote .who strong { display: block; font-size: 14px; }
.ch-quote .who span { display: block; font-size: 12.5px; color: var(--color-neutral-ink-soft); }

/* ---------- Trust logos ---------- */
.ch-logos { display: flex; gap: 16px; flex-wrap: wrap; }
.ch-logos .logo-pill { flex: 1; min-width: 150px; background: var(--color-neutral-paper); border: 1px solid var(--color-neutral-rule); border-radius: var(--radius-lg); padding: 24px; text-align: center; font-weight: 700; color: var(--color-neutral-ink-soft); }

/* ---------- Icon boxes (used with native Elementor Icon Box widget too) ---------- */
.ch-icon-hex { width: 44px; height: 44px; background: var(--color-primary-teal-shade); clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0% 50%); display:flex; align-items:center; justify-content:center; margin-bottom: 16px; }
.ch-icon-hex.alt { background: var(--color-primary-teal-tint); }

/* ---------- Split section ---------- */
.ch-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .ch-split { grid-template-columns: 1fr; } }
.ch-split.reverse { direction: rtl; }
.ch-split.reverse > * { direction: ltr; }

/* ---------- Demo form (Contact Form 7) ---------- */
/* Split into two adjacent same-colored boxes (top = title, bottom = the
   actual CF7 shortcode) rather than one div, because the shortcode has to
   render through Elementor's native "Shortcode" widget (so do_shortcode()
   actually runs and a real form appears, not literal shortcode text) — and
   that widget's own wrapper element is where the css_classes below land, so
   it can't share a hand-written wrapping <div> with the heading widget next
   to it. Zero gap + matching radius/background/side-padding make the two
   read as one continuous panel. */
.ch-form-panel { background: var(--color-primary-teal-shade); padding-left: 36px; padding-right: 36px; }
.ch-form-panel--top { border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding-top: 36px; padding-bottom: 4px; }
.ch-form-panel--bottom { border-radius: 0 0 var(--radius-xl) var(--radius-xl); padding-top: 4px; padding-bottom: 36px; }
.ch-form-panel h3 { color: var(--color-neutral-paper); font-family: var(--font-body); font-weight: 700; font-size: 20px; margin: 0 0 20px; }
.ch-form-panel .wpcf7-form p { margin: 0 0 16px; }
.ch-form-panel .wpcf7-form label { display: block; font-size: 13.5px; color: rgba(255,255,255,0.75); margin-bottom: 6px; }
.ch-form-panel .wpcf7-form input[type=text], .ch-form-panel .wpcf7-form input[type=email], .ch-form-panel .wpcf7-form textarea {
  width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--color-neutral-paper); font-family: var(--font-body); font-size: 14.5px;
}
.ch-form-panel .wpcf7-form input::placeholder, .ch-form-panel .wpcf7-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.ch-form-panel .wpcf7-form textarea { min-height: 96px; resize: vertical; }
.ch-form-panel .wpcf7-form input[type=submit] {
  width: 100%; background: var(--color-secondary-mint); color: var(--color-primary-teal-shade); border: none;
  border-radius: var(--radius-sm); padding: 14px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: var(--font-body);
}
.ch-form-panel .wpcf7-form input[type=submit]:hover { opacity: .9; }
.ch-form-panel .wpcf7-form .wpcf7-not-valid-tip { color: var(--color-accent-rust); font-size: 12.5px; margin-top: 4px; }
.ch-form-panel .wpcf7-form .wpcf7-response-output { color: var(--color-neutral-paper); border-color: rgba(255,255,255,0.3) !important; border-radius: var(--radius-sm); font-size: 13.5px; }

/* ---------- Legal / policy pages (Privacy Policy, Terms & Conditions) ---------- */
/* Per brand-tokens.json typeScale: only the page's single display-h1 uses
   the display font. Section headings within a long legal document use
   body-font bold (typeScale "section-h2"), not Archivo Black repeated
   at every subsection. */
.ch-legal { max-width: 760px; margin: 0 auto; }
.ch-legal .ch-legal-meta { font-size: 13.5px; color: var(--color-neutral-ink-soft); margin: 0 0 4px; }
.ch-legal h2 { font-family: var(--font-body); font-weight: 700; font-size: 21px; line-height: 1.3; color: var(--color-neutral-ink); margin: 36px 0 10px; }
.ch-legal h2:first-of-type { margin-top: 0; }
.ch-legal p { font-family: var(--font-body); font-size: 15.5px; line-height: 1.7; color: var(--color-neutral-ink); margin: 0 0 16px; }
.ch-legal ul { margin: 0 0 16px; padding-left: 22px; }
.ch-legal li { font-family: var(--font-body); font-size: 15.5px; line-height: 1.7; color: var(--color-neutral-ink); margin-bottom: 6px; }
.ch-legal a { color: var(--color-primary-teal); text-decoration: underline; }
.ch-legal strong { font-weight: 700; }
.ch-legal-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-neutral-rule); }
.ch-legal-footer p { font-size: 14px; color: var(--color-neutral-ink-soft); margin: 0 0 6px; }

/* ---------- Footer ---------- */
.ch-footer { background: var(--color-primary-teal-shade); color: rgba(255,255,255,0.8); padding: 48px 0 28px; }
.ch-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.ch-footer-tagline { font-size: 14px; color: rgba(255,255,255,0.55); margin-left: 4px; }
.ch-footer-nav { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.ch-footer-nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14.5px; }
.ch-footer-nav a:hover { color: var(--color-neutral-paper); }
.ch-footer-bottom {
  padding-top: 22px; font-size: 12.5px; color: rgba(255,255,255,0.45);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.ch-footer-legal { display: flex; gap: 20px; }
.ch-footer-legal a { color: rgba(255,255,255,0.45); text-decoration: none; }
.ch-footer-legal a:hover { color: var(--color-neutral-paper); }
@media (max-width: 700px) { .ch-footer-top { flex-direction: column; align-items: flex-start; } .ch-footer-bottom { justify-content: center; text-align: center; } }

/* ---------- Stub pages ---------- */
.ch-stub-hero { text-align: center; padding: 120px 0 90px; }
.ch-stub-hero .ch-capsule { display: flex; margin: 0 auto 20px; }
.ch-stub-hero p.ch-lede { max-width: 56ch; margin: 18px auto 0; }

/* ---------- Utility ---------- */
.ch-mt-0{margin-top:0}.ch-mb-0{margin-bottom:0}
.ch-center{text-align:center}
.ch-max-640{max-width:640px}
.ch-max-720{max-width:720px}
.ch-mx-auto{margin-left:auto;margin-right:auto}
