/* ca-sites.css — the shared component kit for the four Core Aspect marketing sites (step 0, 19 Nov 2026).
   Load order: [emuu tokens.css] -> ca-sites-tokens.css -> ca-sites.css -> the site's own small css.
   Pick the site with <body class="site-parent | site-ai | site-call | site-health">.
   Theme follows the device; ca-sites.js adds the mode button (sets <html data-theme>, remembered).
   Font: load Plus Jakarta Sans 400/500/600/700/800 from Google Fonts in each page's <head>.
   Do not edit a site's copy of this file: edit brand/ca-sites.css and re-run sync-ca-sites.sh. */

/* ---------- kit tokens (layered on the palette tokens) ---------- */
:root {
  --ca-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ca-wrap: 1160px;
  --ca-gutter: 16px;
  --ca-pad: 48px;                 /* section padding, phones */
  --ca-radius-btn: 12px;
  --ca-radius-card: 16px;
  --ca-header-h: 68px;
  /* footer product dots: FIXED colours on every site */
  --dot-parent: #3D2E59; --dot-ai: #E0338A; --dot-call: #EA8C1B; --dot-health: #45BEBB; --dot-emuu: #F6F6F4;
}
@media (min-width: 720px) { :root { --ca-gutter: 32px; --ca-pad: 72px; } }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --dot-emuu: #1F2328; } }
:root[data-theme="light"] { --dot-emuu: #1F2328; }

/* the ONE coloured band per page: --band-bg / --band-ink (dark defaults, then light) */
body { --band-bg: var(--lead); --band-ink: var(--on-lead); }
body.site-parent { --band-bg: #3D2E59; --band-ink: #F6F3F8; }   /* dark: aubergine, not the lavender button */
body.site-call   { --band-bg: #9A3412; --band-ink: #FFFFFF; }   /* dark: burnt orange, no glare */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) body.site-parent { --band-bg: var(--lead); --band-ink: var(--on-lead); }
  :root:not([data-theme="dark"]) body.site-call   { --band-bg: var(--band); --band-ink: var(--on-band); }
}
:root[data-theme="light"] body.site-parent { --band-bg: var(--lead); --band-ink: var(--on-lead); }
:root[data-theme="light"] body.site-call   { --band-bg: var(--band); --band-ink: var(--on-band); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ca-header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--ca-font); font-size: 18px; font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--lead-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--ca-radius-btn); }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; color: inherit; text-wrap: balance; font-family: var(--ca-font); }
p, li, dd, td { text-wrap: pretty; }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 20px; }
h1 em, h2 em { font-style: normal; color: var(--lead-text); }
h2 { font-size: clamp(30px, 3.9vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 12px; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 8px; }
h4 { font-size: 16px; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 54ch; margin: 0 0 32px; }
.sub { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
.small { font-size: 16px; }
.muted { color: var(--muted); }
.eyebrow { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lead-text); margin: 0 0 12px; }
.fine { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 16px 0 0; }

/* ---------- layout ---------- */
.wrap { max-width: var(--ca-wrap); margin: 0 auto; padding: 0 var(--ca-gutter); }
.section { padding: var(--ca-pad) 0; background: var(--ground); }
.section.alt { background: var(--surface); }
.section > .wrap > :last-child { margin-bottom: 0; }
.hero { padding: var(--ca-pad) 0; background: var(--ground); }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 599px) { .ctas .btn { flex: 1 1 100%; } }

/* ---------- buttons: one .primary + one .secondary per screen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: var(--ca-radius-btn); border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.btn.primary { background: var(--lead); color: var(--on-lead); }
/* AI magenta fill is 2.93:1 on the dark ground: an edge in the lead-text colour keeps the button shape visible (3:1+) */
body.site-ai .btn.primary { border-color: var(--lead-text); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--ink); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 16px; }

/* ---------- header (sticky; menu panel below 900px; menu button at the right edge) ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--ground); border-bottom: 1px solid var(--line); }
.top .bar { position: relative; display: flex; align-items: center; gap: 12px; min-height: var(--ca-header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; }
.brand img, .brand svg { width: 30px; height: 34px; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .menu-cta { display: none; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: 20px; }
.modebtn, .menubtn { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: var(--ca-radius-btn); border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.modebtn:hover, .menubtn:hover { border-color: var(--line-strong); }
.menubtn { display: none; }
.menubtn span, .menubtn span::before, .menubtn span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .15s ease; }
.menubtn span::before, .menubtn span::after { content: ""; position: absolute; left: 0; }
.menubtn span::before { top: -6px; } .menubtn span::after { top: 6px; }
.top.open .menubtn span { background: transparent; }
.top.open .menubtn span::before { transform: translateY(6px) rotate(45deg); }
.top.open .menubtn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 899px) {
  .menubtn { display: inline-grid; }
  .top-actions { margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 4px var(--ca-gutter) 24px; background: var(--ground); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(0, 0, 0, .16); }
  .top.open .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--ink); }
  .nav .menu-cta { display: flex; margin-top: 20px; padding: 0 24px; border: 0; color: var(--on-lead); }
}
@media (max-width: 599px) { .top-actions .head-cta { display: none; } }
/* the rainbow line: parent site only */
.hex-rule { display: none; height: 4px; background: var(--hex-rule); }
body.site-parent .hex-rule { display: block; }

/* ---------- tag: ONE outline pill, neutral ink, above a title. Variants only by text. ---------- */
.tag { display: inline-flex; align-items: center; align-self: flex-start; width: fit-content; font-size: 14px; font-weight: 600; line-height: 1; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); background: transparent; white-space: nowrap; margin: 0 0 12px; }

/* ---------- cards: for choices ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--ca-radius-card); padding: 28px; box-shadow: var(--shadow-raised); color: inherit; }
.section.alt .card { background: var(--ground); box-shadow: none; }
.card p { color: var(--muted); font-size: 16px; margin: 0 0 12px; }
.card > :last-child { margin-bottom: 0; }
.card .go { margin-top: auto; padding-top: 12px; font-size: 16px; font-weight: 700; color: var(--ink); }
.card .go::after { content: " \2192"; }
a.card { text-decoration: none; transition: border-color .15s ease; }
a.card:hover { border-color: var(--lead-text); }

/* ---------- rows: for lists (ol.rows = numbered, ul.rows = plain) ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: row; }
.rows > li { display: grid; grid-template-columns: 1fr; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); counter-increment: row; }
.rows h3 { margin: 0; font-size: 20px; }
.rows p { margin: 0; color: var(--muted); font-size: 16px; }
.rows .tag { margin: 0; }
ol.rows > li { grid-template-columns: 48px 1fr; }
ol.rows > li::before { content: counter(row); grid-row: span 3; font-size: 32px; font-weight: 800; line-height: 1; color: var(--lead-text); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .rows > li { grid-template-columns: 280px 1fr auto; align-items: baseline; }
  ol.rows > li { grid-template-columns: 64px 280px 1fr auto; }
  ol.rows > li::before { grid-row: auto; font-size: 40px; }
}

/* ---------- steps: three across, left rule in --lead-text; stacks on phones ---------- */
.steps { display: grid; gap: 24px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps > li { border-left: 3px solid var(--lead-text); padding: 4px 0 4px 20px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- band: the ONE coloured band per page ---------- */
.band { background: var(--band-bg); color: var(--band-ink); padding: var(--ca-pad) 0; }
.band .eyebrow, .band .lede, .band .sub, .band .fine, .band h1 em, .band h2 em, .band a:not(.btn) { color: inherit; }
.band :focus-visible { outline-color: var(--band-ink); }
.band .btn.primary { background: var(--band-ink); color: var(--band-bg); }
.band .btn.secondary { color: var(--band-ink); border-color: var(--band-ink); }
.band .notes, .band .card { color: var(--ink); }
.band .notes :focus-visible { outline-color: var(--focus); }

/* ---------- notes: the scannable key/value example ---------- */
.notes { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--ca-radius-card); padding: 8px 24px 12px; font-size: 16px; box-shadow: var(--shadow-raised); }
.notes .notes-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 14px 0; border-bottom: 2px solid var(--ink); font-weight: 700; }
.notes .notes-title .tag { margin: 0; }
.notes dl { margin: 0; }
.notes .row { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notes .row:last-child { border-bottom: 0; }
.notes dt { color: var(--muted); font-weight: 600; }
.notes dd { margin: 0; }
.notes mark { background: var(--pop); color: var(--on-pop); border-radius: 6px; padding: 1px 8px; font-weight: 700; }
@media (max-width: 479px) { .notes { padding: 4px 16px 8px; } .notes .row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- compare: two options; phones stack each row as label, A, B ---------- */
.compare-wrap { border: 1px solid var(--line); border-radius: var(--ca-radius-card); overflow: hidden; background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--ground); }
.compare thead th.us { color: var(--lead-text); }
.compare tbody th { width: 28%; font-weight: 700; }
.compare td { color: var(--muted); }
.compare td.us { color: var(--ink); background: var(--lead-soft); }
@media (max-width: 639px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tbody tr { border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th, .compare td { border-bottom: 0; }
  .compare tbody th { width: auto; padding: 16px 16px 8px; font-size: 18px; }
  .compare td { padding: 8px 16px; }
  .compare td.us { margin: 4px 0 0; padding-bottom: 12px; }
  .compare tbody tr > td:last-child:not(.us) { padding-bottom: 16px; }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .compare td.us::before { color: var(--lead-text); }
}

/* ---------- footer: four columns, fixed product dots ---------- */
.foot { padding: 56px 0 32px; background: var(--ground); color: var(--muted); font-size: 16px; border-top: 1px solid var(--line); }
.foot .cols { display: grid; gap: 40px 24px; grid-template-columns: 1fr 1fr; }
.foot .cols > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .foot .cols > :first-child { grid-column: auto; } }
.foot p { margin: 0; max-width: 36ch; }
.foot h2, .foot h3, .foot h4 { color: var(--ink); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover, .foot a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.foot a.brand, .foot a.brand:hover { color: var(--ink); text-decoration: none; margin-bottom: 12px; }
.foot address { font-style: normal; display: grid; gap: 4px; }
.dot { display: inline-block; flex: none; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--dot, var(--muted)); box-shadow: 0 0 0 1px var(--line-strong); }
.dot.parent { --dot: var(--dot-parent); } .dot.ai { --dot: var(--dot-ai); } .dot.call { --dot: var(--dot-call); }
.dot.health { --dot: var(--dot-health); } .dot.emuu { --dot: var(--dot-emuu); }
.foot .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---- honeycomb: a 7-cell hexagon map for "several flavours of one thing" (Stuart 20 Nov).
        Markup is made by brand/honeycomb.py. Centre = the engine/product, cells = the flavours.
        .cell = plain flavour (site tint), .cell.facet = another product in its own logo colour. ---- */
.honeycomb { display: block; width: min(100%, 440px); margin: 0 auto; overflow: visible; }
@media (max-width: 899px) { .honeycomb { width: min(100%, 360px); } }
.honeycomb text { font-family: var(--ca-font); font-weight: 600; font-size: 13px; pointer-events: none; }
.honeycomb .t { fill: var(--ink); }
.honeycomb .t-sub { font-size: 10.5px; font-weight: 500; }
.honeycomb .cell { fill: var(--lead-soft); stroke: var(--lead-text); stroke-width: 1.5; transition: fill .15s; }
.honeycomb .cell.facet { stroke: none; }
.honeycomb .t-facet { fill: #1A1424; }
.honeycomb .core { fill: #3D2E59; }
.honeycomb .t-core { fill: #FFFFFF; font-weight: 700; font-size: 14px; }
.honeycomb .t-core.t-sub { fill: #E6E0EE; font-weight: 500; font-size: 11px; }
.honeycomb a { cursor: pointer; outline: none; }
.honeycomb a:hover .cell:not(.facet), .honeycomb a:focus-visible .cell:not(.facet) { fill: var(--lead); }
.honeycomb a:hover .cell:not(.facet) ~ .t, .honeycomb a:focus-visible .cell:not(.facet) ~ .t { fill: var(--on-lead); }
.honeycomb a:hover .cell.facet, .honeycomb a:focus-visible .cell.facet { stroke: var(--ink); stroke-width: 3; }
.honeycomb a:focus-visible .cell { stroke: var(--focus); stroke-width: 3; }
@media (prefers-reduced-motion: reduce) { .honeycomb .cell { transition: none; } }

/* Legal pages (privacy, terms): readable column, tables that scroll on phones */
.legal { padding: 56px 0 80px; min-width: 0; max-width: 100vw; }
.legal .wrap { max-width: 820px; min-width: 0; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin: 0 0 8px; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.legal h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 10px; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 20px; }
.legal .tbl { max-width: 100%; overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
.legal thead th { border-top: 0; font-weight: 700; }
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot .legal-links a { color: inherit; }
