/* ============================================================================
   Trustelligence - sales site
   A Planhat-structured marketing page wearing the Trustelligence brand.
   Hand-built, dependency-free. Design tokens live in :root; sections follow.
   Type: Anthropic Serif (display) + Fraunces (wordmark) + Open Sans (body).
   ========================================================================== */

/* ── Anthropic Serif (display/title typeface, loaded locally) ─────────────── */
@font-face {
  font-family: 'Anthropic Serif';
  src: url('../assets/fonts/anthropic-serif/anthropic-serif-light.otf') format('opentype');
  font-weight: 300 360; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Anthropic Serif';
  src: url('../assets/fonts/anthropic-serif/anthropic-serif-regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Anthropic Serif';
  src: url('../assets/fonts/anthropic-serif/anthropic-serif-medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Anthropic Serif';
  src: url('../assets/fonts/anthropic-serif/anthropic-serif-semibold.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Anthropic Serif';
  src: url('../assets/fonts/anthropic-serif/anthropic-serif-bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  /* Brand palette (carried from the Trustelligence app) */
  --paper: #ffffff;
  --mist: #f7f6fb;            /* faint cool wash for section rhythm */
  --tint: #f3f1f8;            /* purple-L50 - card / pill tint */
  --ink: #221f2a;            /* warm near-black, headings */
  --body: #54515e;           /* body copy */
  --muted: #6f6b7a;          /* secondary / captions - AA contrast on tint */
  --line: #e9e7f1;           /* hairline */
  --line-2: #f0eef6;

  --purple: #6a6196;         /* primary accent */
  --purple-d: #574f7c;       /* hover / pressed */
  --purple-l: #b1abcb;       /* purple-L20 */
  --purple-xl: #cfcbdf;      /* purple-L40 */

  --clay: #c2693f;           /* warm clay accent - emphasis only, never stateful */
  --clay-l: #d98a4e;         /* lighter clay for warm contrast on dark bands */

  --espresso: #26221f;       /* warm dark - the Trustelligence mark, dark showcase */
  --deep: #1c1928;           /* deep purple-black - dark bands */
  --deep-2: #2a2640;         /* raised surface on deep */
  --cream: #f3ede2;          /* warm light on dark */
  --jade: #22c55e;           /* reserved for verification / citation-confirmation ticks */

  /* On-dark derivations */
  --on-dark: #f4f1ec;
  --on-dark-muted: rgba(243, 237, 226, 0.66);
  --on-dark-line: rgba(243, 237, 226, 0.14);
  --on-dark-card: rgba(243, 237, 226, 0.05);

  /* Type */
  --sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Anthropic Serif', Georgia, 'Times New Roman', serif;
  --wordmark: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Radii */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(28, 25, 40, 0.05), 0 2px 6px -2px rgba(28, 25, 40, 0.06);
  --shadow: 0 2px 4px rgba(28, 25, 40, 0.04), 0 18px 44px -16px rgba(28, 25, 40, 0.16);
  --shadow-lg: 0 4px 8px rgba(28, 25, 40, 0.05), 0 40px 80px -28px rgba(28, 25, 40, 0.30);

  /* Rhythm */
  --pad-x: clamp(20px, 5vw, 40px);
  --sec-y: clamp(82px, 12vw, 152px);
  --wrap: 1200px;
}

/* ── Reset / base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--purple); color: #fff; }

/* Icons */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── Typography ───────────────────────────────────────────────────────────── */
.h-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
}
.h-sec {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.016em;
  color: var(--ink);
  margin: 0;
}
.h-display, .h-sec { overflow-wrap: break-word; }
.h-display em, .h-sec em {
  font-family: var(--wordmark);   /* Fraunces has a true italic; Anthropic Serif does not */
  font-style: italic;
  font-weight: 500;
  color: var(--clay);
}
.lead {
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
  line-height: 1.65;
  color: var(--body);
  margin: 18px 0 0;
  max-width: 52ch;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 18px;
}
.kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple);
}
.kicker.on-dark { color: var(--cream); }
.kicker.on-dark::before { background: var(--purple-l); }

.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--sec-y); }
.section.mist { background: var(--mist); }
.section.tint { background: var(--tint); }

.head { max-width: 700px; margin-bottom: clamp(46px, 7vw, 78px); }
.head.center { margin-inline: auto; text-align: center; }
.head.center .kicker { justify-content: center; }
.head .lead { margin-top: 20px; }

/* Dark sections */
.deep { background: var(--deep); color: var(--on-dark); }
.deep .h-sec, .deep .h-display { color: var(--cream); }
.deep .lead { color: var(--on-dark-muted); }
.deep .h-sec em { color: var(--clay-l); }
.espresso { background: var(--espresso); color: var(--on-dark); }
.espresso .h-sec, .espresso .h-display { color: var(--cream); }
.espresso .lead { color: var(--on-dark-muted); }
.espresso .h-sec em { color: var(--clay-l); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600;
  padding: 13px 24px; min-height: 48px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 1px 2px rgba(28,25,40,.18); }
.btn-primary:hover { background: var(--purple-d); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--purple-l); background: var(--tint); }
.btn-lg { padding: 16px 30px; min-height: 54px; font-size: 1.04rem; }

/* on dark */
.on-deep .btn-primary, .deep .btn-primary, .espresso .btn-primary { background: #fff; color: var(--espresso); }
.on-deep .btn-primary:hover, .deep .btn-primary:hover, .espresso .btn-primary:hover { background: var(--cream); }
.on-deep .btn-ghost, .deep .btn-ghost, .espresso .btn-ghost { color: var(--cream); border-color: var(--on-dark-line); }
.on-deep .btn-ghost:hover, .deep .btn-ghost:hover, .espresso .btn-ghost:hover { border-color: var(--on-dark-muted); background: var(--on-dark-card); }

/* ── Skip link & focus ────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2.5px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
.deep :focus-visible, .espresso :focus-visible, .on-deep :focus-visible {
  outline-color: #fff; box-shadow: 0 0 0 5px rgba(28,25,40,.6);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 24px -12px rgba(28,25,40,.2); }
.nav .wrap { display: flex; align-items: center; gap: 22px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 1px 3px rgba(28,25,40,.22); }
/* owl logomark: strip the square framing wherever it replaces the "M" mark */
.logo-mark { width: auto !important; border-radius: 0 !important; box-shadow: none !important; }
.brand .logo-mark { height: 30px; }
.isum-bar .mk.logo-mark, .ask-head .mk.logo-mark { height: 25px; }
.brand .wordmark {
  font-family: var(--wordmark); font-weight: 600; font-size: 1.3rem;
  letter-spacing: -0.005em; color: var(--ink); line-height: 1; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav-links a {
  font-size: 0.94rem; font-weight: 500; color: var(--body); white-space: nowrap;
  padding: 9px 12px; border-radius: 9px; transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--tint); }
.nav-links a.active { color: var(--purple); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-right .btn { min-height: 44px; padding: 10px 20px; }
/* register CTA shown inside the mobile drawer (hidden on desktop) */
.nav-cta-m { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--paper); align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle .ic { width: 22px; height: 22px; stroke-width: 2; }

/* mobile drawer - kicks in earlier than the old 920px because the
   "Trustelligence" wordmark is far wider than the previous one */
@media (max-width: 1010px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 0; right: 0; top: 72px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--pad-x) 20px; box-shadow: var(--shadow); margin: 0;
  }
  .nav.scrolled.open .nav-links { top: 73px; }   /* clear the scrolled 1px border */
  .nav.open .nav-links a { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
}
/* below 560px the nav CTA would crowd the toggle: move it into the drawer */
@media (max-width: 560px) {
  .nav-right .btn-primary { display: none; }
  .nav.open .nav-links a.nav-cta-m {
    display: inline-flex; justify-content: center; margin-top: 10px;
    background: var(--purple); color: #fff; border-radius: var(--r-pill);
    padding: 14px 20px; font-weight: 600;
  }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(48px, 8vw, 92px); padding-bottom: clamp(40px, 7vw, 80px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(106,97,150,.10), transparent 60%),
    radial-gradient(50% 40% at 5% 92%, rgba(106,97,150,.07), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-grid > * { min-width: 0; }   /* let the product card shrink below its content width on mobile */
.hero h1 { margin-top: 4px; }
.hero .lead { max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin-top: 30px; font-size: 0.9rem; color: var(--muted);
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--purple-xl); }
.hero-meta strong { color: var(--body); font-weight: 600; }

/* hero "stage" - the proof card emerges from a branded atmospheric ground (bento language) */
.hero-stage {
  position: relative; border-radius: var(--r-xl); padding: clamp(26px, 4vw, 50px); overflow: hidden;
  background:
    radial-gradient(120% 95% at 16% 8%, rgba(141, 131, 187, .55), transparent 60%),
    radial-gradient(130% 130% at 95% 106%, rgba(24, 21, 34, .9), transparent 52%),
    linear-gradient(152deg, #2d2842 0%, #191622 75%);
  box-shadow: 0 44px 86px -30px rgba(28, 25, 40, .55);
}
.hero-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .13; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-stage .proof { position: relative; z-index: 1; box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .6); }

/* ── Hero: blurred portrait background, product card floating in front ──────── */
.hero-bg { display: none; }
.hero-photo::before { display: none; }                 /* drop the light radial wash */
.hero-photo .hero-bg { display: block; position: absolute; inset: 0; z-index: -2; }
.hero-photo .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  filter: blur(34px) saturate(1.15) brightness(.6); transform: scale(1.18); }
.hero-photo .hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(18, 16, 26, .84) 28%, rgba(18, 16, 26, .42)); }
/* the card floats directly on the photo (no gradient stage) */
.hero-photo .hero-stage { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.hero-photo .hero-stage::after { display: none; }
/* light text on the dark hero */
.hero-photo .h-display { color: var(--cream); }
.hero-photo .h-display em { color: var(--purple-l); }
.hero-photo .lead { color: rgba(243, 237, 226, .84); }
.hero-photo .hero-powered .label { color: rgba(243, 237, 226, .72); }
.hero-photo .hero-powered .hp-rule { background: rgba(243, 237, 226, .25); }
.hero-photo .crs-logo { filter: brightness(0) invert(1); opacity: .92; }
.hero-photo .btn-ghost { color: var(--cream); border-color: rgba(243, 237, 226, .32); }
.hero-photo .btn-ghost:hover { border-color: rgba(243, 237, 226, .55); background: rgba(243, 237, 226, .08); }
.hero-photo .proof { box-shadow: 0 44px 86px -24px rgba(0, 0, 0, .72); }

/* hero product visual - floating workspace panel */
.proof {
  margin: 0; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  position: relative;
}
.proof-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.proof-bar .mk { width: 22px; height: 22px; border-radius: 6px; }
.proof-bar .mk.logo-mark { width: auto; height: 25px; border-radius: 0; }   /* owl mark instead of the M square */
.proof-bar .ttl { font-family: var(--serif); font-weight: 600; font-size: .98rem; color: var(--ink);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof-bar .ws { margin-left: auto; font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.proof-bar .ws::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--purple-l); }
.proof-body { padding: 20px; }
.proof .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.proof .stats > div { background: var(--tint); border-radius: var(--r-sm); padding: 12px 14px; }
.proof .stats .k { display: block; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.proof .stats .v { display: block; font-family: var(--serif); font-size: 1.06rem; font-weight: 500; color: var(--ink); margin-top: 4px; white-space: nowrap; }
.proof .ask { font-size: .95rem; color: var(--muted); margin: 0 0 7px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.proof .ask-tag { font-family: var(--sans); font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--purple); background: var(--tint); border: 1px solid var(--purple-xl); padding: 3px 8px; border-radius: var(--r-pill); }
.proof .ans { font-size: 1.14rem; color: var(--ink); font-weight: 600; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.cite {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  background: var(--tint); color: var(--purple-d);
  padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--purple-xl);
}
.cite .tick { width: 15px; height: 15px; fill: none; stroke: var(--jade); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.4);
  transition: opacity .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1); }
.cite.verify.on .tick { opacity: 1; transform: scale(1); }
.cite.verify.on { border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.08); color: #15803d; }
.proof .foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2);
  font-size: .82rem; color: var(--muted);
}
.proof .foot .run { display: inline-flex; align-items: center; gap: 6px; }
.proof .foot .run .ic { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .proof { max-width: 520px; }
}

/* ── Logo / trust strip ───────────────────────────────────────────────────── */
.strip { border-block: 1px solid var(--line); background: var(--mist); }
.strip .wrap { padding-block: 22px; display: flex; align-items: center; justify-content: center; }
.strip-line { margin: 0; text-align: center; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.05rem, 1.9vw, 1.34rem); color: var(--ink); letter-spacing: -.005em; }

/* hero "Powered by | Charles Russell Speechlys" lockup (under the buttons) */
.hero-powered { display: inline-flex; align-items: center; gap: 17px; margin-top: 34px; }
.hero-powered .label { font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hero-powered .hp-rule { width: 1px; height: 46px; background: var(--line); flex: none; }
.crs-logo { height: 52px; width: auto; display: block; }
@media (max-width: 560px) { .crs-logo { height: 44px; } .hero-powered { gap: 14px; } .hero-powered .hp-rule { height: 40px; } }

/* ── Showcase (two-column copy + visual) ─────────────────────────────────── */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 66px); align-items: center; }
.showcase > * { min-width: 0; }
.ticks { margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: 1rem; color: var(--body); }
.on-deep .ticks li { color: var(--on-dark); }
.ticks .ic { width: 18px; height: 18px; color: var(--jade); stroke-width: 3; flex: none; margin-top: 3px; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; gap: 34px; } }

/* Summary section: portrait photo in place of the product panel */
.summary-photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.summary-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; filter: saturate(.92) contrast(1.02); }
.summary-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(106, 97, 150, .15), rgba(38, 34, 31, .06) 60%); }
@media (max-width: 900px) { .summary-photo { max-width: 460px; margin-inline: auto; } }

/* Intelligence Summary panel (faux UI) */
.isum-panel { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.isum-bar { display: flex; align-items: center; gap: 9px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.isum-bar .mk { width: 22px; height: 22px; border-radius: 6px; }
.isum-bar .ttl { font-family: var(--serif); font-weight: 600; font-size: .98rem; color: var(--ink); }
.isum-bar .isum-badge { margin-left: auto; font-size: .76rem; font-weight: 600; color: var(--purple-d); background: var(--tint); border: 1px solid var(--purple-xl); padding: 3px 10px; border-radius: var(--r-pill); }
.isum-body { padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 28px; }
.isum-block { display: flex; flex-direction: column; gap: 15px; }
.isum-h { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); }
.isum-h .ic { width: 15px; height: 15px; }
.isum-rows { display: flex; flex-direction: column; gap: 14px; }
.isum-rows > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; font-size: .92rem; line-height: 1.45; align-items: baseline; }
.isum-rows .r-k { color: var(--muted); }
.isum-rows .r-v { color: var(--ink); font-weight: 600; }
.isum-powers { display: flex; flex-wrap: wrap; gap: 9px; }
.isum-powers .pchip { display: inline-flex; align-items: baseline; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink);
  background: var(--mist); border: 1px solid var(--line); padding: 7px 13px; border-radius: var(--r-pill); }
.isum-powers .pchip i { font-style: normal; font-size: .72rem; color: var(--purple); font-weight: 700; }
@media (max-width: 420px) { .isum-rows > div { grid-template-columns: 1fr; gap: 1px; } }

/* ── Managed onboarding (white-glove setup, centred tiles) ────────────────── */
.mo .head.center { max-width: 760px; margin-bottom: clamp(40px, 6vw, 60px); }
.mo .head.center .lead { margin-inline: auto; }

.mo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1000px; margin-inline: auto; }
.mo-tile {
  text-align: center; padding: 40px 30px;
  background: rgba(243, 237, 226, .04); border: 1px solid var(--on-dark-line);
  border-radius: var(--r-lg);
}
.mo-ic {
  width: 56px; height: 56px; margin: 0 auto 20px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(177, 171, 203, .14); color: var(--purple-l);
}
.mo-ic .ic { width: 25px; height: 25px; }
.mo-tile h3 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--cream); margin: 0 0 9px; }
.mo-tile p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--on-dark-muted); }

.mo-cta { text-align: center; margin-top: clamp(38px, 5vw, 52px); }

@media (max-width: 820px) { .mo-grid { grid-template-columns: 1fr; max-width: 460px; } }

/* ── Cookie consent banner ────────────────────────────────────────────────── */
.cookiebar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
  padding: 16px clamp(18px, 4vw, 32px);
  background: var(--espresso); color: var(--on-dark-muted);
  border-top: 1px solid var(--on-dark-line);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
}
.cookiebar .cb-txt { margin: 0; font-size: .88rem; line-height: 1.5; max-width: 66ch; }
.cookiebar .cb-txt a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.cookiebar .cb-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookiebar .btn-primary { background: #fff; color: var(--espresso); }
.cookiebar .btn-primary:hover { background: var(--cream); }
.cookiebar .btn-ghost { color: var(--cream); border-color: var(--on-dark-line); }
.cookiebar .btn-ghost:hover { border-color: var(--on-dark-muted); background: var(--on-dark-card); }
@media (max-width: 640px) {
  .cookiebar { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
  .cookiebar .cb-btns { justify-content: center; }
}

/* ── Footer legal row ─────────────────────────────────────────────────────── */
.foot-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ── Cost of manual monitoring (GFSC enforcement band) ────────────────────── */
#cost .head.center .lead { margin-inline: auto; }
.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1000px; margin-inline: auto; }
.cost-stat {
  text-align: center; padding: 40px 30px;
  background: rgba(243, 237, 226, .04); border: 1px solid var(--on-dark-line);
  border-radius: var(--r-lg);
}
.cs-num {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -.01em;
  color: var(--clay-l); margin-bottom: 14px; font-variant-numeric: tabular-nums;
}
.cost-stat p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--on-dark-muted); }
.cost-close {
  text-align: center; max-width: 62ch; margin: clamp(38px, 5vw, 52px) auto 0;
  font-family: var(--serif); font-weight: 400; font-size: 1.14rem; line-height: 1.5; color: var(--cream);
}
.cost-src { text-align: center; margin: 14px 0 0; font-size: .82rem; color: var(--on-dark-muted); }
.cost-src a { color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 3px; }
.cost-src a:hover { color: var(--cream); }
@media (max-width: 820px) { .cost-grid { grid-template-columns: 1fr; max-width: 460px; } }

/* ── Card grids (feature / value) ─────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card .ic-badge {
  width: 46px; height: 46px; border-radius: 13px; display: inline-flex;
  align-items: center; justify-content: center; background: var(--tint); color: var(--purple);
  margin-bottom: 18px;
}
.card .ic-badge .ic { width: 23px; height: 23px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; color: var(--ink); margin: 0 0 8px; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 0.98rem; color: var(--body); }

/* ── Why Trustelligence - bento feature cards (UI fragments on atmospheric grounds) ── */
.bento {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bento:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--purple-xl); }
.bento-media { position: relative; height: 214px; overflow: hidden; }
.bento-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bento-body { padding: 26px 26px 30px; border-top: 1px solid var(--line); }
.bento-body h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; color: var(--ink); margin: 0 0 8px; letter-spacing: -.01em; }
.bento-body p { margin: 0; font-size: .98rem; line-height: 1.6; color: var(--body); }

/* atmospheric grounds - one family, a different accent bloom per claim */
.bm-stack { background:
  radial-gradient(120% 95% at 16% 8%, rgba(132, 122, 178, .55), transparent 60%),
  radial-gradient(130% 130% at 92% 104%, rgba(28, 25, 40, .85), transparent 52%),
  linear-gradient(152deg, #2c2740, #1b1826); }
.bm-risk { background:
  radial-gradient(105% 85% at 84% 14%, rgba(196, 138, 92, .42), transparent 56%),
  radial-gradient(130% 120% at 8% 98%, rgba(90, 80, 128, .5), transparent 55%),
  linear-gradient(152deg, #2a2434, #201b29); }
.bm-speed { background:
  radial-gradient(105% 85% at 86% 84%, rgba(40, 158, 100, .32), transparent 56%),
  radial-gradient(125% 110% at 12% 8%, rgba(132, 122, 178, .42), transparent 55%),
  linear-gradient(152deg, #322a26, #221d23); }

.frag { position: absolute; z-index: 1; }
/* fragment 1: a stack of source rows bleeding off the bottom */
.frag-sources { left: 24px; right: 24px; top: 26px; display: flex; flex-direction: column; gap: 9px; }
.frag-sources .src {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px;
  background: rgba(255, 255, 255, .97); color: var(--ink); font-size: .86rem; font-weight: 600;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .55);
}
.frag-sources .src .ic { width: 16px; height: 16px; color: var(--purple); }
.frag-sources .src:nth-child(4) { opacity: .82; }
.frag-sources .src:nth-child(5) { opacity: .5; }

/* fragment 2: a floating "gap found" message */
.frag-alert {
  left: 22px; right: 22px; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, .98); border-radius: 15px; padding: 15px 16px 16px;
  box-shadow: 0 20px 36px -14px rgba(0, 0, 0, .6);
}
.frag-alert .fa-msg { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; color: var(--ink); font-weight: 500; }
.frag-alert .fa-flag { color: #b4541e; font-weight: 700; white-space: nowrap; }
.frag-alert .fa-flag .ic { display: inline-block; width: 13px; height: 13px; stroke-width: 2.4; vertical-align: -1px; margin-right: 2px; }
.frag-alert .fa-cite { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: var(--purple-d); background: var(--tint); border: 1px solid var(--purple-xl); padding: 4px 11px; border-radius: var(--r-pill); }

/* fragment 3: a completed-fast result card */
.frag-result {
  left: 26px; right: 26px; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, .98); border-radius: 15px; padding: 17px 18px;
  box-shadow: 0 20px 36px -14px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; gap: 13px;
}
.frag-result .fr-head { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 700; color: var(--ink); }
.frag-result .fr-tick { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .15); color: var(--jade); flex: none; }
.frag-result .fr-tick .ic { width: 14px; height: 14px; stroke-width: 3; }
.frag-result .fr-time { display: flex; align-items: baseline; gap: 11px; }
.frag-result .fr-time b { font-family: var(--serif); font-weight: 600; font-size: 1.72rem; color: var(--ink); line-height: 1; }
.frag-result .fr-time s { font-size: .82rem; color: var(--muted); text-decoration-color: var(--purple-l); }

/* ── Platform flow (dark showcase) ────────────────────────────────────────── */
.flow-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 12px; position: relative; }
.flow-step {
  background: var(--on-dark-card); border: 1px solid var(--on-dark-line);
  border-radius: var(--r); padding: 28px; position: relative;
}
.flow-step .num {
  font-family: var(--serif); font-size: 1rem; color: var(--purple-l); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.flow-step .num b { display: inline-flex; width: 32px; height: 32px; border-radius: 9px; background: var(--deep-2);
  align-items: center; justify-content: center; color: var(--cream); font-weight: 600; font-family: var(--sans); font-size: .9rem; }
.flow-step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--cream); margin: 0 0 8px; }
.flow-step p { margin: 0; color: var(--on-dark-muted); font-size: .96rem; }
.flow-step .arrow { position: absolute; right: -26px; top: 50%; transform: translateY(-50%); z-index: 2; color: var(--purple-l); }
.flow-step .arrow .ic { width: 20px; height: 20px; stroke-width: 2; }
.flow-step:last-child .arrow { display: none; }

/* mini ingest visual under flow */
.flow-viz {
  margin-top: 34px; background: var(--on-dark-card); border: 1px solid var(--on-dark-line);
  border-radius: var(--r-lg); padding: 22px clamp(18px, 4vw, 40px);
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px;
}
.flow-viz .node { text-align: center; }
.flow-viz .node .pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--r-pill);
  background: var(--deep-2); border: 1px solid var(--on-dark-line); color: var(--cream); font-size: .9rem; font-weight: 600;
}
.flow-viz .node .pill .ic { width: 17px; height: 17px; color: var(--purple-l); }
.flow-viz .node small { display: block; margin-top: 8px; color: var(--on-dark-muted); font-size: .78rem; }
.flow-viz .conn { color: var(--purple-l); opacity: .8; text-align: center; }
.flow-viz .conn .ic { width: 22px; height: 22px; margin-inline: auto; stroke-width: 1.6; }
@media (max-width: 900px) {
  .flow-wrap { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2) .arrow { display: none; }   /* step 2 -> 3 wraps to next row */
}
@media (max-width: 760px) {
  .flow-wrap { grid-template-columns: 1fr; }
  .flow-step .arrow { display: none; }
  .flow-viz { grid-template-columns: 1fr; gap: 12px; }
  .flow-viz .conn { transform: rotate(90deg); }
}

/* ── Family & Asset Tree (org chart) ─────────────────────────────────────── */
.tree-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(16px, 3vw, 30px); position: relative; }
/* scroll-triggered "AI loading" then reveal */
.tree-loader { position: absolute; inset: 0; z-index: 3; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 13px; border-radius: var(--r-lg); background: rgba(255,255,255,0.55); }
.tree-loader .wc-spin { width: 28px; height: 28px; border-width: 3px; }
.tree-loader span { font-size: .92rem; font-weight: 600; color: var(--purple-d); }
.tree-card.is-loading .tree-loader { display: flex; }
.tree-card.is-loading .tree-scroll { opacity: .3; filter: blur(7px); pointer-events: none; }
.tree-card.is-loading .tree-legend { opacity: .3; }
.no-js .tree-card.is-loading .tree-scroll, .no-js .tree-card.is-loading .tree-legend { opacity: 1; filter: none; }
.no-js .tree-loader { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .tree-card.is-loading .tree-scroll, .tree-card.is-loading .tree-legend { opacity: 1; filter: none; }
  .tree-loader { display: none !important; }
}
.tree-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 4px; padding-left: 4px; }
.tree-legend .lg-item { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.tree-legend .lg-dot { width: 10px; height: 10px; border-radius: 3px; }
.lg-dot.k-trust { background: #6a6196; } .lg-dot.k-fund { background: #0d9488; }
.lg-dot.k-company { background: #475569; } .lg-dot.k-prop { background: #16a34a; }

.tree-scroll { overflow-x: auto; padding: 4px 0 6px; transition: opacity .55s ease, filter .55s ease; }
.tree { width: max-content; min-width: 100%; padding: 14px 8px 6px; }
.tree ul { display: flex; justify-content: center; padding-top: 26px; position: relative; }
.tree li { list-style: none; position: relative; display: flex; flex-direction: column; align-items: center; padding: 26px 11px 0; }
/* connectors (classic CSS org-chart with border pseudo-elements) */
.tree li::before, .tree li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 26px; border-top: 1.5px solid #c9cdd6; }
.tree li::after { right: auto; left: 50%; border-left: 1.5px solid #c9cdd6; }
.tree li:only-child::before, .tree li:only-child::after { display: none; }
.tree li:first-child::before, .tree li:last-child::after { border: 0; }
.tree li:last-child::before { border-right: 1.5px solid #c9cdd6; border-radius: 0 7px 0 0; }
.tree li:first-child::after { border-left: 1.5px solid #c9cdd6; border-radius: 7px 0 0 0; }
.tree ul ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 26px; border-left: 1.5px solid #c9cdd6; }
.tree > ul, .tree > ul > li { padding-top: 0; }
.tree > ul > li::before, .tree > ul > li::after { display: none; }

.tnode { width: 206px; background: var(--paper); border: 1px solid #d8dce0; border-radius: 10px;
  box-shadow: var(--shadow-sm); overflow: hidden; text-align: left; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tnode:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--purple-xl); }
.tband { display: flex; align-items: center; gap: 7px; height: 24px; padding: 0 11px; font-size: .63rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tb-ic { width: 15px; height: 15px; border-radius: 4px; display: grid; place-items: center; color: #fff; font-size: .56rem; font-weight: 700; font-family: var(--sans); }
.tname { display: block; padding: 9px 13px 1px; font-size: .82rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.tsub { display: block; padding: 0 13px 11px; font-size: .72rem; color: var(--muted); }
.k-trust .tband { color: #6a6196; background: rgba(106,97,150,.09); } .k-trust .tb-ic { background: #6a6196; }
.k-fund .tband { color: #0d9488; background: rgba(13,148,136,.09); } .k-fund .tb-ic { background: #0d9488; }
.k-company .tband { color: #475569; background: rgba(71,85,105,.09); } .k-company .tb-ic { background: #475569; }
.k-prop .tband { color: #16a34a; background: rgba(22,163,74,.09); } .k-prop .tb-ic { background: #16a34a; }
.tree-note { margin: 14px 0 0; font-size: .86rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.tree-note .ic { width: 16px; height: 16px; color: var(--purple); }

/* ── Workflows (interactive demo) ────────────────────────────────────────── */
.wf { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: stretch; }
.wf-list { display: flex; flex-direction: column; gap: 8px; }
.wf-item { display: flex; align-items: center; gap: 13px; text-align: left; width: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 16px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.wf-item:hover { border-color: var(--purple-xl); background: var(--tint); }
.wf-item.is-active { border-color: var(--purple); box-shadow: var(--shadow); }
.wf-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--tint); color: var(--purple); display: grid; place-items: center; flex: none; }
.wf-item.is-active .wf-ic { background: var(--purple); color: #fff; }
.wf-ic .ic { width: 20px; height: 20px; }
.wf-tx { min-width: 0; font-size: 1rem; font-weight: 700; color: var(--ink); }

/* right side: a blurred photo ground with a short chain of thought layered on top */
.wf-bento { display: flex; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; min-height: 380px; }
.wf-ground { position: relative; flex: 1; overflow: hidden; }
.wf-ground::before {
  content: ""; position: absolute; inset: -8%; z-index: 0;
  background: url("assets/img/team-at-work.jpg") center/cover no-repeat;
  filter: blur(14px) saturate(1.04); transform: scale(1.08); }
.wf-ground::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background:
    radial-gradient(120% 90% at 18% 6%, rgba(106, 97, 150, .5), transparent 60%),
    linear-gradient(155deg, rgba(27, 24, 38, .82), rgba(27, 24, 38, .6)); }

.wf-chain { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center;
  gap: 13px; padding: clamp(24px, 4vw, 38px); }
.wf-step { display: flex; align-items: flex-start; gap: 12px; position: relative; max-width: 380px;
  opacity: 0; transform: translateY(9px); transition: opacity .4s ease, transform .4s ease; }
.wf-step.in { opacity: 1; transform: none; }
.wf-step:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 31px; bottom: -13px;
  width: 2px; background: rgba(255, 255, 255, .32); }
.ws-ic { width: 29px; height: 29px; border-radius: 50%; flex: none; display: grid; place-items: center; z-index: 1;
  background: rgba(255, 255, 255, .96); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .55); }
.ws-ic .ic { width: 16px; height: 16px; color: var(--jade); stroke-width: 3; }
.ws-ic .wc-spin { width: 16px; height: 16px; border-width: 2.5px; }
.ws-card { background: rgba(255, 255, 255, .97); border-radius: 12px; padding: 10px 14px; min-width: 0;
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, .65); }
.ws-card b { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.ws-cite { display: inline-flex; margin-top: 7px; font-size: .72rem; font-weight: 600; color: var(--purple-d);
  background: var(--tint); border: 1px solid var(--purple-xl); padding: 3px 9px; border-radius: var(--r-pill); }

.wc-row { display: flex; gap: 11px; max-width: 100%; align-items: flex-start; }
.wc-row.user { justify-content: flex-end; }
.wc-bubble { font-size: .95rem; line-height: 1.55; padding: 12px 15px; border-radius: 14px; max-width: 86%; }
.wc-row.user .wc-bubble { background: var(--purple); color: #fff; border-bottom-right-radius: 5px; }
.wc-bubble.ai { background: var(--mist); color: var(--ink); font-family: var(--serif); font-weight: 400; border-bottom-left-radius: 5px; align-self: flex-start; }
.wc-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--purple-d);
  display: grid; place-items: center; font-family: var(--wordmark); font-weight: 600; font-size: .95rem; flex: none; }
.wc-ai { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 14px; }

.wc-think { display: flex; flex-direction: column; gap: 8px; }
.wc-think-head { display: inline-flex; align-items: center; gap: 9px; min-height: 30px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.wc-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--purple-xl); border-top-color: var(--purple); animation: wc-spin .8s linear infinite; flex: none; }
.wc-think-head .ic { width: 15px; height: 15px; }
.wc-think-head .done { color: var(--jade); stroke-width: 3; }
.wc-phases { display: flex; flex-direction: column; gap: 6px; padding-left: 11px; border-left: 1.5px solid var(--line); margin-left: 6px; }
.wc-phase { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--muted); opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease; }
.wc-phase.in { opacity: 1; transform: none; }
.wc-phase .pdot { width: 13px; height: 13px; flex: none; color: var(--jade); stroke-width: 3; }

.wc-verdict { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .92rem;
  padding: 9px 13px; border-radius: 11px; font-family: var(--sans); align-self: flex-start; }
.wc-verdict.ok { background: rgba(34,197,94,.1); color: #15803d; border: 1px solid rgba(34,197,94,.32); }
.wc-verdict .ic { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2.4; }
.wc-points { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.wc-point { display: flex; gap: 9px; font-size: .92rem; color: var(--body); font-family: var(--serif); font-weight: 400; line-height: 1.45; }
.wc-point .ic { width: 16px; height: 16px; color: var(--purple); flex: none; margin-top: 2px; }
.wc-point.warn .ic { color: #d97706; }
.wc-artifact { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); align-self: stretch; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease; }
.wc-artifact:hover { border-color: var(--purple-xl); box-shadow: var(--shadow-sm); }
.wc-artifact .ai { width: 36px; height: 36px; border-radius: 9px; background: var(--paper); color: var(--purple); display: grid; place-items: center; flex: none; border: 1px solid var(--line); }
.wc-artifact .ai .ic { width: 18px; height: 18px; }
.wc-artifact .at-tx { min-width: 0; }
.wc-artifact b { display: block; font-size: .88rem; color: var(--ink); }
.wc-artifact small { display: block; font-size: .78rem; color: var(--muted); }
.wc-artifact .at-open { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: .8rem; font-weight: 600; color: var(--purple); white-space: nowrap; flex: none; }
.wc-artifact .at-open .ic { width: 14px; height: 14px; }
.wc-gen { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); align-self: flex-start; }
.wc-enter { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.wc-enter.in { opacity: 1; transform: none; }

.wf-foot { margin-top: 22px; text-align: center; font-size: .9rem; color: var(--muted); }
@keyframes wc-spin { to { transform: rotate(360deg); } }

/* typing dots (chat) */
.wc-typing { display: inline-flex; align-items: center; gap: 5px; padding: 13px 15px; background: var(--mist);
  border-radius: 14px; border-bottom-left-radius: 5px; align-self: flex-start; }
.wc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--purple-l); animation: wc-bounce 1.3s infinite ease-in-out both; }
.wc-typing span:nth-child(2) { animation-delay: .16s; }
.wc-typing span:nth-child(3) { animation-delay: .32s; }
@keyframes wc-bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* ── "Chat with your trust" demo (platform band) ─────────────────────────── */
.ask-demo-wrap { margin-top: clamp(44px, 7vw, 76px); display: flex; flex-direction: column; align-items: center; }
.ask-demo-cap { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.12; color: var(--cream); text-align: center; margin: 0 0 44px; max-width: 20ch; letter-spacing: -.01em; }
.ask-demo-cap em { font-style: italic; color: var(--purple-l); }
.ask-demo { width: 100%; max-width: 880px; background: var(--paper); border: 1px solid var(--on-dark-line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.ask-head { display: flex; align-items: center; gap: 9px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); }
.ask-head .mk { width: 22px; height: 22px; border-radius: 6px; }
.ask-head .ask-title { font-family: var(--wordmark); font-weight: 600; color: var(--ink); font-size: .98rem; }
.ask-head .ask-ws { margin-left: auto; font-size: .8rem; color: var(--muted); }
.ask-thread { height: 448px; overflow-y: auto; padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.ask-fallback { color: var(--muted); font-size: .95rem; margin: auto; text-align: center; max-width: 34ch; }
@media (max-width: 560px) { .ask-thread { height: 400px; padding: 18px; } }

@media (max-width: 860px) {
  .wf { grid-template-columns: 1fr; }
  .wf-list { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .wf-item { flex: 0 0 auto; width: auto; white-space: nowrap; }
  .wf-bento { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .wc-phase, .wc-enter, .wf-step { opacity: 1 !important; transform: none !important; transition: none !important; }
  .wc-spin, .wc-typing span { animation: none !important; }
}

/* ── Metrics / outcomes ───────────────────────────────────────────────────── */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.metric { padding: 4px 4px 4px; }
.metric .big {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1; letter-spacing: -.02em; color: var(--ink);
}
.deep .metric .big, .espresso .metric .big { color: var(--cream); }
.metric .lbl { margin-top: 12px; font-size: .98rem; color: var(--body); }
.deep .metric .lbl, .espresso .metric .lbl { color: var(--on-dark-muted); }
.metric + .metric { border-left: 1px solid var(--line); padding-left: 24px; }
.deep .metric + .metric, .espresso .metric + .metric { border-left-color: var(--on-dark-line); }
.metrics-note { margin-top: 30px; font-size: .9rem; }
.deep .metrics-note, .espresso .metrics-note { color: var(--on-dark-muted); }
@media (max-width: 820px) {
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .metric + .metric { border-left: none; padding-left: 4px; }
}

/* before/after comparison (concrete, in place of round-number metrics) */
.compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cmp { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; }
.cmp-task { display: block; font-size: .95rem; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.cmp-ba { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cmp-before { font-family: var(--serif); font-size: 1.15rem; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--purple-l); text-decoration-thickness: 1px; }
.cmp-arr { width: 18px; height: 18px; color: var(--purple-l); flex: none; stroke-width: 2; }
.cmp-after { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1; color: var(--ink); }
@media (max-width: 620px) { .compare { grid-template-columns: 1fr; } }

/* ── Roles grid (environmental photo + role tiles) ────────────────────────── */
.roles-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.roles-photo { position: relative; margin: 0; min-height: 360px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.roles-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 80%; filter: saturate(.85) contrast(1.02); }
.roles-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(106, 97, 150, .26), rgba(38, 34, 31, .12) 60%);
}
.roles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.role {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.role:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--purple-xl); }
.role .ic { width: 22px; height: 22px; color: var(--purple); margin-bottom: 14px; }
.role h3 { font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--ink); margin: 0 0 4px; }
.role p { margin: 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 880px) {
  .roles-layout { grid-template-columns: 1fr; }
  .roles-photo { min-height: 230px; }
}
@media (max-width: 460px) { .roles-grid { grid-template-columns: 1fr; } }

/* ── Provenance (built by Charles Russell Speechlys) ──────────────────────── */
.prov { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.prov-photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.prov-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.9) contrast(1.02); }
.prov-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(106, 97, 150, .18), rgba(38, 34, 31, .04) 55%); }
.prov-quote { margin: 16px 0 0; }
.prov-quote p { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.34; letter-spacing: -.01em; color: var(--ink); }
.prov-attr { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--purple-xl); }
.prov-who { display: flex; flex-direction: column; gap: 2px; }
.prov-who strong { font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.prov-who span { font-size: .92rem; color: var(--muted); }
.prov-logo { height: 48px; width: auto; }
@media (max-width: 820px) {
  .prov { grid-template-columns: 1fr; gap: 26px; max-width: 540px; margin-inline: auto; }
  .prov-photo { aspect-ratio: 3 / 2; }
}

/* ── Security (dark band) ─────────────────────────────────────────────────── */
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.assure-item {
  background: var(--on-dark-card); border: 1px solid var(--on-dark-line); border-radius: var(--r);
  padding: 28px; transition: border-color .2s ease, transform .2s ease;
}
.assure-item:hover { transform: translateY(-3px); border-color: var(--on-dark-muted); }
.assure-item .ic { width: 24px; height: 24px; color: var(--purple-l); margin-bottom: 16px; }
.assure-item h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--cream); margin: 0 0 8px; }
.assure-item p { margin: 0 0 14px; font-size: .95rem; color: var(--on-dark-muted); }
.assure-item .stat {
  display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700;
  color: var(--cream); background: var(--on-dark-card); border: 1px solid var(--on-dark-line);
  padding: 5px 12px; border-radius: var(--r-pill);
}
.assure-item.prog .stat { color: var(--purple-l); }
@media (max-width: 880px) { .assure { grid-template-columns: 1fr; } }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; padding: 26px 4px; text-align: left;
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink);
}
.faq-q:hover { color: var(--purple-d); }
.faq-chev { width: 22px; height: 22px; fill: none; stroke: var(--purple); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .25s ease; }
.faq-q[aria-expanded="true"] .faq-chev { transform: rotate(180deg); }
.faq-a { overflow: hidden; height: 0; transition: height .3s ease; }
.faq-a .inner { padding: 0 4px 26px; }
.faq-a p { margin: 0; font-size: 1.02rem; color: var(--body); max-width: 68ch; }
.no-js .faq-a { height: auto; }

/* ── CTA ──────────────────────────────────────────────────────────────────── */
.cta-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.cta-grid > * { min-width: 0; }
.cta-note { margin-top: 22px; font-size: .9rem; color: var(--on-dark-muted); max-width: 48ch; }
.form {
  background: var(--paper); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 38px);
  box-shadow: var(--shadow-lg); position: relative;
}
.form h3 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; color: var(--ink); margin: 0 0 6px; }
.cta-email {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--purple);
  text-decoration: none; margin: 4px 0 20px; overflow-wrap: anywhere;
}
.cta-email:hover { text-decoration: underline; text-underline-offset: 3px; }
.form .sub { margin: 0 0 22px; font-size: .96rem; color: var(--muted); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--purple); }
.field input, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a6196' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select:hover { border-color: var(--purple-xl); }
.field input:focus, .field select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(106,97,150,.14); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #dc2626; }
.field .err { display: none; margin: 6px 0 0; font-size: .82rem; color: #dc2626; }
.field input[aria-invalid="true"] ~ .err, .field select[aria-invalid="true"] ~ .err { display: block; }
.form .btn-primary { width: 100%; margin-top: 6px; background: var(--purple); color: #fff; box-shadow: 0 1px 2px rgba(28,25,40,.18); }
.form .btn-primary:hover { background: var(--purple-d); }
.form-note { margin: 14px 0 0; font-size: .84rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--purple); font-weight: 600; }

.form-ok { display: none; text-align: center; padding: 8px 0; }
.form.done .form-ok { display: block; }
.form.done form, .form.done h3, .form.done .sub { display: none; }
.form-ok .mk { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px; box-shadow: var(--shadow); }
.form-ok strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--ink); display: block; }
.form-ok .note { margin: 10px auto 0; font-size: .9rem; color: var(--muted); max-width: 36ch; }

@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { background: var(--espresso); color: var(--on-dark); padding-block: clamp(56px, 8vw, 84px) 30px;
  border-top: 1px solid var(--on-dark-line); }   /* separate the CTA (deep) and footer (espresso) dark bands */
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: clamp(36px, 6vw, 80px); }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand .wordmark { color: var(--cream); }
.footer-brand p { color: var(--on-dark-muted); font-size: .96rem; max-width: 38ch; margin: 0; }
.footer-sig { display: inline-flex; align-items: center; gap: 11px; margin-top: 22px; font-size: .88rem; color: var(--on-dark-muted); }
.footer-sig .mk { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); margin: 0 0 14px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--on-dark-muted); font-size: .94rem; transition: color .15s ease; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: clamp(40px, 6vw, 64px); padding-top: 26px; border-top: 1px solid var(--on-dark-line);
  font-size: .86rem; color: var(--on-dark-muted);
}
.footer-bottom .foot-disclaimer { flex-basis: 100%; margin: 0 0 6px; font-size: .82rem; }
.footer-bottom .juris { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer-bottom .juris .s { opacity: .5; }
.footer-bottom .wordmark { font-family: var(--wordmark); font-weight: 600; font-size: 1.1rem; color: var(--cream); }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; } .footer-nav { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .footer-nav { grid-template-columns: 1fr; } }

/* ── 404 ──────────────────────────────────────────────────────────────────── */
.notfound {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px; padding: 40px var(--pad-x) 64px; position: relative;
  background:
    radial-gradient(50% 40% at 50% 8%, rgba(106,97,150,.10), transparent 65%), var(--paper);
}
.notfound .brand { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); }
.notfound .nf-mark { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow-lg); margin-bottom: 26px; }
.notfound .h-display { font-size: clamp(2rem, 5vw, 3rem); }
.notfound .lead { margin: 14px auto 30px; max-width: 44ch; }
.notfound .nf-code { margin-top: 28px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ── Reveal animation ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; transition-delay: var(--d, 0ms); }
[data-stagger].in > * { opacity: 1; transform: none; }
.no-js .reveal, .no-js [data-stagger] > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cite .tick { transition: none !important; }
  .btn, .card, .tile, .flow, .role, .assure-item { transition: none !important; }
}

/* ── Trust Centre page ────────────────────────────────────────────────────── */
.tc-hero .head { max-width: 760px; }
.tc-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tc-badges span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--cream);
  background: var(--on-dark-card); border: 1px solid var(--on-dark-line);
  padding: 8px 15px; border-radius: var(--r-pill);
}
.tc-badges span .ic { width: 15px; height: 15px; color: var(--jade); stroke-width: 3; }

/* commitments - stated like clauses in a deed */
.commitments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.commit {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 32px 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.commit:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--purple-xl); }
.commit .n { display: block; font-family: var(--serif); font-weight: 300; font-size: 2rem; line-height: 1; color: var(--purple-l); margin-bottom: 16px; }
.commit h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--ink); margin: 0 0 8px; letter-spacing: -.01em; }
.commit p { margin: 0; font-size: .98rem; line-height: 1.6; color: var(--body); }
@media (max-width: 720px) { .commitments { grid-template-columns: 1fr; } }

/* certifications & assurance */
.certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cert {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px;
}
.cert > .ic { width: 24px; height: 24px; color: var(--purple); flex: none; margin-top: 2px; }
.cert-tx { min-width: 0; }
.cert-tx h3 { font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--ink); margin: 0 0 4px; }
.cert-tx p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.cert .tag {
  margin-left: auto; align-self: center; flex: none; white-space: nowrap;
  font-size: .72rem; font-weight: 700; color: var(--purple-d);
  background: var(--tint); border: 1px solid var(--purple-xl); padding: 4px 11px; border-radius: var(--r-pill);
}
@media (max-width: 620px) {
  .certs { grid-template-columns: 1fr; }
  .cert { flex-wrap: wrap; }
  .cert .tag { margin-left: 40px; }
}

/* trust-centre centred CTA */
.cta-narrow { max-width: 680px; margin-inline: auto; text-align: center; }
.cta-narrow .lead { margin-inline: auto; }
.cta-narrow .hero-cta { justify-content: center; }

/* faq answer links (homepage Trust Centre link) */
.faq-a a { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.faq-a a:hover { color: var(--purple-d); }
