/* ==========================================================================
   Openkoda — light/modern static site
   Single stylesheet. Design tokens + components. Mobile-first.
   Brand: deep teal #0A474F + cyan accents, Cabin typeface.
   ========================================================================== */

/* ----- Tokens ----------------------------------------------------------- */
:root {
  /* brand */
  --teal-900: #0a474f;
  --teal-800: #0d5a64;
  --teal-700: #10707c;
  --cyan-500: #64ccc9;
  --cyan-400: #7ed7d5;
  --cyan-300: #8cd9e3;
  --coral-200: #f2babe;

  /* neutrals */
  --bg: #ffffff;
  --bg-soft: #f4faf9;
  --bg-tint: #eef6f5;
  --ink: #12262b;
  --ink-soft: #2c4147;
  --muted: #5b6b6e;
  --line: #e2eceb;
  --white: #ffffff;

  /* effects */
  --shadow-sm: 0 1px 2px rgba(10, 71, 79, .06), 0 1px 3px rgba(10, 71, 79, .04);
  --shadow-md: 0 6px 20px rgba(10, 71, 79, .08), 0 2px 6px rgba(10, 71, 79, .05);
  --shadow-lg: 0 18px 50px rgba(10, 71, 79, .14);
  --ring: 0 0 0 3px rgba(100, 204, 201, .45);

  /* radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* spacing scale */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px;  --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  --container: 1180px;
  --measure: 68ch;

  /* type */
  --font: "Cabin", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ----- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-900); }
/* In-text links in body copy - clearly clickable (matches .prose a) */
p a, .faq-a a, .checklist a { text-decoration: underline; text-decoration-color: var(--cyan-400); text-decoration-thickness: 2px; text-underline-offset: 2px; font-weight: 600; }
p a:hover, .faq-a a:hover, .checklist a:hover { text-decoration-color: currentColor; color: var(--teal-900); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }

/* ----- Layout primitives ------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(var(--s-7), 6vw, var(--s-9)); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--dark { background: linear-gradient(160deg, var(--teal-900), var(--teal-800)); color: #dbeeec; }
.section--dark h2, .section--dark h3 { color: #fff; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-700); margin-bottom: var(--s-3);
}
.section--dark .eyebrow { color: var(--cyan-300); }
/* The hero eyebrow is the page H1 - size it above the breadcrumb so the two read
   as distinct levels. Section eyebrows keep the smaller label size. */
h1.eyebrow { font-size: .9rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.section--dark .lead { color: #b9dedb; }
.stack > * + * { margin-top: var(--s-4); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1;
  padding: .85rem 1.4rem; border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal-900); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-800); color: #fff; box-shadow: var(--shadow-md); }
.btn-accent { background: var(--cyan-500); color: var(--teal-900); }
.btn-accent:hover { background: var(--cyan-400); color: var(--teal-900); }
.btn-ghost { background: transparent; color: var(--teal-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-700); color: var(--teal-900); background: var(--bg-soft); }
.section--dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.section--dark .btn-ghost:hover { background: rgba(255,255,255,.08); color:#fff; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-arrow::after { content: "\2192"; transition: transform .15s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.actions.center { justify-content: center; }
.steps + .actions { margin-top: var(--s-6); }
.checklist + .actions { margin-top: var(--s-6); }

/* ----- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: var(--s-5); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.3rem; color: var(--teal-900); letter-spacing: -.02em; }
.brand:hover { color: var(--teal-900); }
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.nav-menu { display: flex; align-items: center; gap: var(--s-2); margin: 0 auto 0 var(--s-4); padding: 0; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .7rem; white-space: nowrap;
  font-weight: 600; color: var(--ink-soft); border-radius: var(--r-sm); background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem;
}
.nav-link:hover, .nav-item:hover .nav-link, .nav-item[data-open="true"] .nav-link { color: var(--teal-900); background: var(--bg-soft); }
.nav-link .caret { width: 10px; height: 10px; transition: transform .2s ease; }
.nav-item[data-open="true"] .caret { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; }

/* dropdown / mega */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: var(--s-4); opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item:hover > .dropdown, .nav-item[data-open="true"] > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown.mega { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); min-width: 600px; }
.mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: var(--s-2); padding-top: var(--s-3); display: flex; gap: var(--s-5); }
.mega-foot a { font-weight: 700; color: var(--teal-900); padding: .3rem .2rem; }
.mega-foot a:hover { color: var(--teal-700); }
.dd-note { margin: var(--s-2) 0 0; padding: .5rem .6rem; color: var(--muted); font-size: .85rem; }
.dropdown h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: var(--s-3); }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown li + li { margin-top: 2px; }
.dropdown a { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: start; padding: .55rem .6rem; border-radius: var(--r-sm); color: var(--ink); font-weight: 600; }
.dropdown a:hover { background: var(--bg-tint); color: var(--teal-900); }
.dropdown a small { grid-column: 2; display: block; font-weight: 400; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.dd-ic { grid-row: span 2; width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--bg-tint); color: var(--teal-900); display: grid; place-items: center; }
.dd-ic svg { width: 18px; height: 18px; }
.dropdown a:hover .dd-ic { background: #fff; }

.nav-toggle { display: none; }

/* mobile */
@media (max-width: 1024px) {
  .nav { gap: var(--s-3); }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm);
    background: #fff; cursor: pointer; order: 3;
  }
  .nav-toggle span { display: block; height: 2px; width: 22px; margin-inline: auto; background: var(--teal-900); transition: .2s; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions { order: 2; }
  .nav-actions .btn-primary { padding: .6rem 1rem; font-size: .92rem; }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; margin: 0; padding: var(--s-4); background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); max-height: calc(100vh - 72px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: .9rem .4rem; }
  .dropdown, .dropdown.mega {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 0 0 var(--s-3) var(--s-4); min-width: 0; display: none; grid-template-columns: 1fr;
  }
  .nav-item[data-open="true"] > .dropdown { display: block; }
  .nav-item[data-open="true"] > .dropdown.mega { display: grid; }
  .nav-actions { margin-left: auto; }
}

/* ----- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-soft), #fff 70%); }
.hero::before {
  content: ""; position: absolute; top: -120px; right: -120px; width: 460px; height: 460px;
  background: radial-gradient(circle at center, rgba(100,204,201,.35), transparent 70%); z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-8); align-items: center; padding-block: clamp(var(--s-7), 6vw, var(--s-9)); }
.hero-grid > *, .split > * { min-width: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); } }
.hero-title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); margin-bottom: var(--s-4); }
.hero .lead { margin-bottom: var(--s-6); max-width: 44ch; }
.hero-visual { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.hero-trust { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.hero-trust li { position: relative; padding-left: 1.05rem; font-size: .8rem; font-weight: 500; color: var(--muted); }
.hero-trust li::before {
  content: "\2713"; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  color: #F04A59; font-weight: 700; font-size: .75rem;
}

/* mock UI panel used as hero/section visual placeholder */
.mock { background: #fff; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan-500); opacity: .5; }
.mock-body { padding: var(--s-5); display: grid; gap: var(--s-4); }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.mock-tile { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); background: var(--bg-soft); }
.mock-tile .k { font-size: 1.6rem; font-weight: 700; color: var(--teal-900); }
.mock-tile .l { font-size: .82rem; color: var(--muted); }
.mock-line { height: 10px; border-radius: var(--r-pill); background: var(--bg-tint); }
.mock-line.w70 { width: 70%; } .mock-line.w50 { width: 50%; } .mock-line.w85 { width: 85%; }
/* hero dashboard: trend panel + metric bars */
.mock-panel { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; padding: var(--s-4); }
.mock-panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.mock-trend { font-size: .72rem; font-weight: 700; color: var(--teal-700); background: var(--bg-tint); padding: 2px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.mock-svg { width: 100%; height: auto; display: block; }
.mock-svg .grid line { stroke: var(--line); stroke-width: 1; }
.mock-svg .area { fill: var(--bg-tint); }  /* per-instance gradient set inline; this is a fallback */
.mock-svg .line { fill: none; stroke: var(--cyan-500); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.mock-svg .dot { fill: #fff; stroke: var(--teal-800); stroke-width: 2.5; }
.mock-metrics { display: grid; gap: var(--s-3); }
.mock-metric { display: flex; align-items: center; gap: var(--s-3); }
.mock-metric .l { width: 58px; flex: none; }
.mock-metric .mbar { flex: 1; height: 8px; border-radius: var(--r-pill); background: var(--bg-tint); overflow: hidden; }
.mock-metric .mbar i { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--cyan-500), var(--teal-700)); }
.mock-metric .mv { font-size: .8rem; font-weight: 700; color: var(--teal-900); width: 34px; text-align: right; flex: none; }

/* ----- Device scene (home: laptop screenshot + phone & tablet mocks) ---- */
.device-scene { position: relative; max-width: 1040px; margin: var(--s-8) auto 0; }
.dv-screen, .dv-laptop-screen { overflow: hidden; background: #fff; }
/* laptop, centred, real screenshot */
.dv-laptop { width: 56%; margin: 0 0 0 14%; position: relative; z-index: 2; }
.dv-cam { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 5px; height: 5px; border-radius: 50%; background: #3a4f53; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.dv-laptop-screen { border: 8px solid #12262b; border-top-width: 13px; border-bottom: 0;
  border-radius: 13px 13px 0 0; box-shadow: var(--shadow-lg); }
.dv-laptop-screen img { display: block; width: 100%; height: auto; }
.dv-laptop-base { height: 15px; margin: 0 -7%; border-radius: 0 0 12px 12px; box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #e4ecec, #a7b7b7); position: relative; }
.dv-laptop-base::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 15%; height: 7px; background: #8fa3a3; border-radius: 0 0 8px 8px; }
/* tablet, left (behind the laptop) */
.dv-tablet { position: absolute; left: 67%; bottom: -4%; width: 30%; z-index: 3; }
.dv-tablet .dv-screen { position: relative; border: 9px solid #12262b; border-radius: 16px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.dv-tablet .dv-screen::before { content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: #3a4f53; z-index: 4; }
/* phone, front, overlapping the laptop screen */
.dv-phone { position: absolute; left: 1.25%; bottom: -4%; width: 15%; z-index: 3; }
.dv-phone .dv-screen { position: relative; border: 6px solid #12262b; border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 9 / 19.5; }
.dv-phone .dv-screen::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 36%; height: 9px; background: #12262b; border-radius: 0 0 9px 9px; z-index: 5; }

/* phone: policyholder app mock */
.ph { height: 100%; padding: 6px 8px 8px; display: grid; gap: 6px; align-content: start; background: var(--bg-soft); }
.ph-status { display: flex; justify-content: space-between; align-items: center; font-size: .52rem; font-weight: 700; color: var(--teal-900); padding: 1px 4px 0; }
.ph-sig { width: 16px; height: 7px; border-radius: 2px; background: linear-gradient(90deg, var(--teal-900) 60%, var(--line) 60%); }
.ph-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 3px; }
.ph-hi { font-weight: 700; color: var(--teal-900); font-size: .74rem; }
.ph-av { width: 15px; height: 15px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan-500), var(--teal-700)); }
.ph-lbl { font-size: .54rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0 3px; }
.ph-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; }
.ph-c-top { display: flex; align-items: center; gap: 5px; }
.ph-ic { width: 16px; height: 16px; flex: none; border-radius: 5px; background: var(--bg-tint); color: var(--teal-900); display: grid; place-items: center; }
.ph-ic svg { width: 10px; height: 10px; }
.ph-pol { font-size: .62rem; font-weight: 700; color: var(--ink); }
.ph-amt { margin-left: auto; font-size: .78rem; font-weight: 800; color: var(--teal-900); }
.ph-card.is-due .ph-amt { color: #F04A59; }
.ph-c-bot { display: flex; justify-content: space-between; margin-top: 2px; padding-left: 21px; }
.ph-num { font-size: .52rem; color: var(--muted); }
.ph-sub { font-size: .52rem; color: var(--muted); }
.ph-btn { margin-top: 6px; text-align: center; font-size: .58rem; font-weight: 700; color: #fff;
  background: var(--teal-900); border-radius: var(--r-pill); padding: 4px; }
.ph-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 6px 2px 2px; border-top: 1px solid var(--line); }
.ph-tab { color: var(--muted); display: grid; place-items: center; }
.ph-tab.on { color: var(--teal-900); }
.ph-tab svg { width: 13px; height: 13px; }

/* tablet: analytics dashboard mock */
.tb { height: 100%; padding: 9px; display: grid; gap: 7px; align-content: start; background: var(--bg-soft); }
.tb-head { display: flex; justify-content: space-between; align-items: center; }
.tb-title { font-size: .72rem; font-weight: 800; color: var(--teal-900); }
.tb-tabs { display: flex; gap: 4px; }
.tb-tabs span { font-size: .5rem; font-weight: 600; color: var(--muted); padding: 2px 6px; border-radius: var(--r-pill); }
.tb-tabs span.on { background: var(--teal-900); color: #fff; }
.tb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tb-kpi { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 7px; }
.tb-k { font-size: .8rem; font-weight: 800; color: var(--teal-900); line-height: 1.1; }
.tb-l { font-size: .5rem; color: var(--muted); }
.tb-panels { display: grid; grid-template-columns: 1.8fr 1fr; gap: 6px; }
.tb-chart, .tb-mix { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px; }
.tb-ch-head { display: flex; justify-content: space-between; align-items: center; font-size: .52rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.tb-trend { font-size: .46rem; font-weight: 700; color: var(--teal-700); background: var(--bg-tint); padding: 1px 5px; border-radius: var(--r-pill); }
.tb-bars { display: flex; align-items: flex-end; gap: 3px; height: 46px; }
.tb-bars span { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--cyan-500), var(--teal-700)); }
.tb-mix { display: flex; flex-direction: column; align-items: center; }
.tb-donut { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin: 2px 0 4px; }
.tb-donut span { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .5rem; font-weight: 800; color: var(--teal-900); }
.tb-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 7px; }
.tb-legend span { font-size: .45rem; color: var(--muted); position: relative; padding-left: 8px; }
.tb-legend span::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; border-radius: 2px; }
.tb-legend span:nth-child(1)::before { background: var(--teal-900); }
.tb-legend span:nth-child(2)::before { background: var(--cyan-500); }
.tb-legend span:nth-child(3)::before { background: var(--cyan-300); }

@media (max-width: 860px) {
  .dv-laptop { width: 100%; margin: 0; }
  .dv-tablet, .dv-phone { display: none; }
}

/* ----- Cards ------------------------------------------------------------ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-5); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--cyan-300); }
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--muted); margin-bottom: var(--s-3); }
.card .card-link { font-weight: 600; }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--bg-tint); color: var(--teal-900); margin-bottom: var(--s-4);
}
.card-icon svg { width: 24px; height: 24px; }
a.card { color: inherit; }

/* "What you can do" capability list - the lighter counterpart to .card, used where
   the card treatment belongs to the "What's included" grid instead. */
.cap-list { display: grid; gap: var(--s-6) var(--s-7); }
.cap-item { position: relative; padding-left: var(--s-5); }
.cap-item::before {
  content: ""; position: absolute; left: 0; top: .2rem; bottom: .2rem; width: 3px;
  border-radius: 3px; background: linear-gradient(180deg, var(--cyan-400), var(--teal-700));
}
.cap-item h3 {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.2rem; line-height: 1.35; margin: 0 0 var(--s-2);
}
.cap-item h3 svg { width: 20px; height: 20px; flex: none; color: var(--teal-700); }
.cap-item p { color: var(--muted); font-size: .95rem; line-height: 1.65; margin: 0; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.35rem; margin-bottom: var(--s-3); }
.checklist li::before {
  content: ""; position: absolute; left: .3rem; top: .58em; width: .45rem; height: .45rem;
  background: var(--cyan-400); border-radius: 50%;
}
/* Price cards keep the check mark - here it reads as "included in this plan" */
.price-card .checklist li { padding-left: 1.9rem; }
.price-card .checklist li::before {
  content: "\2713"; left: 0; top: 1px; width: 1.25rem; height: 1.25rem;
  background: var(--cyan-500); color: var(--teal-900); font-size: .8rem;
  display: grid; place-items: center; font-weight: 700;
}

/* ----- Screenshot carousel --------------------------------------------- */
.carousel { position: relative; margin-top: var(--s-6); }
.carousel-track {
  display: flex; gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: var(--s-2) var(--s-1) var(--s-4); scrollbar-width: thin;
}
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--r-pill); }
.carousel-slide { flex: 0 0 auto; width: min(680px, 82%); scroll-snap-align: center; margin: 0; }
.carousel-slide figcaption { margin-top: var(--s-3); text-align: center; color: var(--muted); font-size: .9rem; font-weight: 600; }
.carousel-btn {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--teal-900); box-shadow: var(--shadow-md);
  font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background .15s ease, transform .15s ease;
}
.carousel-btn:hover { background: var(--bg-tint); }
.carousel-prev { left: var(--s-2); }
.carousel-next { right: var(--s-2); }
@media (max-width: 640px) { .carousel-btn { display: none; } .carousel-slide { width: 88%; } }

/* ----- Split / alternating rows ---------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.split + .split { margin-top: var(--s-8); }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s-5); } .split.reverse .split-media { order: 0; } }
.photo { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-md); display: block; }

/* steps */
.steps { counter-reset: step; display: grid; gap: var(--s-5); }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
.step-num {
  counter-increment: step; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-900); color: #fff; font-weight: 700;
}
.step-num::before { content: counter(step); }

/* "How it works" roadmap (by-goal landing pages) - two mirrored rows of numbered
   step cards with a screenshot opposite each column, connected into one roadmap. */
.roadmap { counter-reset: rm; margin-top: var(--s-7); display: grid; gap: 0; }
.roadmap-row { align-items: center; }
.roadmap-col { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); }
.roadmap-step { counter-increment: rm; position: relative;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal-700);
  border-radius: var(--r-md); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.roadmap-step::after { content: counter(rm, decimal-leading-zero); position: absolute;
  top: var(--s-3); right: var(--s-4); font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: var(--cyan-400); z-index: 0; }
.roadmap-step > * { position: relative; z-index: 1; }
/* connector line joining the stacked cards into a roadmap */
.roadmap-col .roadmap-step:not(:last-child)::before { content: ""; position: absolute;
  left: 50%; bottom: calc(-1 * var(--s-6)); transform: translateX(-50%);
  width: 2px; height: var(--s-6); background: var(--teal-700); opacity: .55; }
.roadmap-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border-radius: var(--r-md); background: var(--bg-tint); color: var(--teal-900); margin-bottom: var(--s-3); }
.roadmap-icon svg { width: 20px; height: 20px; }
.roadmap-step h3 { margin: 0 0 var(--s-2); font-size: 1.05rem; }
.roadmap-step p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
/* S-curve bridging step 3 (left column) to step 4 (right column) */
.roadmap-bridge { display: block; width: 100%; height: var(--s-8); }
.roadmap-bridge path { stroke: var(--teal-700); stroke-width: 2; opacity: .55; }
@media (max-width: 900px) { .roadmap-shot, .roadmap-bridge { display: none; } }

/* ----- Two mirrored rows: a column of items with a screenshot opposite --- */
.mirror-grid { display: grid; gap: var(--s-8); margin-top: var(--s-7); }
.mirror-row { align-items: center; }
/* two screenshots stacked opposite a taller column of items */
.shot-stack { display: grid; gap: var(--s-5); }
.why-col { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); }
.why-reason { display: flex; gap: var(--s-4); align-items: flex-start; }
.why-ic { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: var(--r-md);
  display: grid; place-items: center; background: var(--bg-tint); color: var(--teal-900); }
.why-ic svg { width: 20px; height: 20px; }
.why-text { min-width: 0; }
.why-reason h3 { margin: 0 0 var(--s-2); font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); }
.why-reason p { margin: 0; font-size: .95rem; line-height: 1.6; }
.why-contrast { margin-top: var(--s-2) !important; padding-left: var(--s-3);
  border-left: 2px solid var(--cyan-500); color: var(--ink-soft); font-size: .9rem !important; }

/* ----- Stat band -------------------------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: var(--s-7); }
@media (max-width: 860px) { .stat-row { grid-template-columns: 1fr; gap: var(--s-5); } }
.stat { text-align: center; padding: 0 var(--s-3); }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.14); }
@media (max-width: 860px) { .stat + .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: var(--s-5); } }
.stat-k { font-size: clamp(2.6rem, 1.8rem + 3vw, 3.8rem); font-weight: 800; line-height: 1; color: var(--cyan-300); letter-spacing: -.02em; }
.stat-u { font-size: .45em; font-weight: 700; }
.stat-l { margin-top: var(--s-3); font-weight: 700; color: #fff; }
.stat-p { margin: var(--s-2) 0 0; font-size: .92rem; line-height: 1.6; color: #b9dedb; }
.stat-em { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--cyan-500);
  text-decoration-thickness: 2px; text-underline-offset: 3px; }
.stat-note { margin: var(--s-6) 0 0; text-align: center; font-size: .85rem; color: #9fcfcb; }
.stat-note a { color: var(--cyan-300); text-decoration-color: var(--cyan-300); }

/* ----- Headline stat cards (light band, e.g. home "Our numbers") -------- */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
@media (max-width: 900px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stat-cards { grid-template-columns: 1fr; } }
.stat-card {
  position: relative; display: block; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-6) var(--s-5) var(--s-5); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--cyan-300); color: inherit; }
.stat-card-k {
  display: block; text-align: center; color: var(--teal-900);
  font-size: clamp(2.4rem, 1.7rem + 2.2vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.02em;
  padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); margin-bottom: var(--s-4);
}
.stat-card-l {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); line-height: 1.45; padding-right: 1.9rem;
}
.stat-card::after {
  content: "\2197"; position: absolute; right: var(--s-5); bottom: var(--s-5);
  width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--teal-900); font-size: .8rem; font-weight: 700;
  transition: background .18s ease, color .18s ease;
}
.stat-card:hover::after { background: var(--teal-900); color: #fff; }

/* ----- Process rail (create, customize, deploy) ------------------------- */
.proc-rail { counter-reset: pr; list-style: none; margin: var(--s-8) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-5); }
.proc-step { position: relative; text-align: center; }
.proc-step:not(:first-child)::before { content: ""; position: absolute; top: 1.6rem;
  right: 50%; width: calc(100% + var(--s-5)); height: 2px; background: var(--line); z-index: 0; }
.proc-ic { position: relative; z-index: 1; width: 3.2rem; height: 3.2rem; margin: 0 auto var(--s-4);
  display: grid; place-items: center; border-radius: 50%; background: #fff;
  border: 2px solid var(--cyan-500); color: var(--teal-900); }
.proc-ic svg { width: 22px; height: 22px; }
.proc-ic i { position: absolute; top: -6px; right: -6px; width: 1.35rem; height: 1.35rem;
  border-radius: 50%; background: var(--teal-900); color: #fff; font-style: normal;
  font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.proc-step h3 { margin: 0 0 var(--s-2); font-size: 1rem; }
.proc-step p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--muted); }
@media (max-width: 1000px) {
  .proc-rail { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .proc-step:not(:first-child)::before { display: none; }
}
@media (max-width: 560px) { .proc-rail { grid-template-columns: 1fr; } }

/* logos / credibility */
/* Row gap stays tight so a wrapped list still reads as one row of names,
   not two separate groups; the column gap does the visual separating. */
.logos { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); align-items: center; justify-content: center; }
.logos span { font-weight: 700; color: #91a3a5; font-size: 1.15rem; letter-spacing: .02em; }

/* press-band: "As featured in" media-logo strip under page heroes */
.press-band { padding-block: var(--s-6); border-bottom: 1px solid var(--line); }
.press-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-5) var(--s-7); }
.press-label { font-weight: 700; color: #91a3a5; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.press-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-5) var(--s-7); }
.press-logos img { height: 30px; width: auto; }
.press-logos img[src*="oei-observatory"] { height: 46px; } /* stacked mark; unreadable at wordmark height */
.press-logos img[src*="insurance-innovation-reporter"] { height: 42px; } /* monogram + 3-line wordmark */
@media (max-width: 640px) { .press-logos img { height: 24px; } .press-logos img[src*="oei-observatory"] { height: 38px; } .press-logos img[src*="insurance-innovation-reporter"] { height: 34px; } .press-logos { gap: var(--s-4) var(--s-5); } }

/* ----- Contact page ----------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s-8); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: var(--s-6); } }
.contact-aside { display: grid; gap: var(--s-6); align-content: start; }
.contact-aside h3 { margin-bottom: var(--s-3); }
.contact-steps { list-style: none; counter-reset: cs; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.contact-steps li { counter-increment: cs; position: relative; padding-left: 2.4rem; color: var(--muted); }
.contact-steps li::before { content: counter(cs); position: absolute; left: 0; top: -1px; width: 1.7rem; height: 1.7rem; border-radius: var(--r-pill); background: var(--bg-tint); color: var(--teal-900); font-weight: 700; font-size: .82rem; display: grid; place-items: center; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { color: var(--muted); }

/* ----- Team ------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
@media (max-width: 820px) { .team-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); text-align: center; box-shadow: var(--shadow-sm); }
.team-photo { width: 128px; height: 128px; border-radius: var(--r-pill); object-fit: cover; margin: 0 auto var(--s-4); border: 4px solid var(--bg-tint); }
.team-card h3 { margin-bottom: 2px; }
.team-role { color: var(--teal-700); font-weight: 600; font-size: .92rem; margin-bottom: var(--s-3); }
.team-bio { color: var(--muted); font-size: .93rem; margin: 0; text-align: left; }

/* ----- Pricing ---------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); align-items: stretch; max-width: 820px; margin-inline: auto; }
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; } }
.price-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; }
@media (max-width: 980px) { .price-grid--three { grid-template-columns: 1fr; max-width: 460px; } }
.price-card { display: flex; flex-direction: column; }
.price-card .price-note { font-size: .82rem; font-weight: 600; color: var(--muted); margin: 2px 0 var(--s-3); }
.price-card.featured { border: 2px solid var(--teal-900); box-shadow: var(--shadow-lg); position: relative; }
@media (min-width: 721px) { .price-card.featured { transform: scale(1.04); z-index: 1; } }
.price-card.featured[data-badge]::before {
  content: attr(data-badge); position: absolute; top: -12px; left: var(--s-5);
  background: var(--cyan-500); color: var(--teal-900); font-size: .75rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: var(--r-pill);
}
.price-card .amount { font-size: 2.2rem; font-weight: 700; color: var(--ink); }
.price-card .amount small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price-card .checklist { margin: var(--s-4) 0 var(--s-5); flex: 1; }

/* ----- FAQ -------------------------------------------------------------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; padding: 0 var(--s-5); margin-bottom: var(--s-3); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); padding: var(--s-4) 0; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-700); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-a { padding: var(--s-4) 0; color: var(--muted); }

/* ----- CTA band --------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .container { max-width: 820px; }

/* ----- Forms ------------------------------------------------------------ */
.form { display: grid; gap: var(--s-4); }
.form label { font-weight: 600; color: var(--ink); font-size: .95rem; display: block; margin-bottom: var(--s-1); }
.form input, .form textarea, .form select {
  width: 100%; font-family: inherit; font-size: 1rem; padding: .8rem .9rem; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--cyan-500); box-shadow: var(--ring); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(var(--s-5), 4vw, var(--s-7)); box-shadow: var(--shadow-md); }

/* ----- Blog / article --------------------------------------------------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; border-top: 3px solid transparent; }
.post-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--cyan-300), var(--teal-800)); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .post-body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.post-card h3 { margin-bottom: var(--s-2); }
.post-card .post-meta { margin-top: auto; padding-top: var(--s-3); }
/* category accent — makes the index scannable despite similar thumbnails */
.post-card--blog { border-top-color: var(--teal-700); }
.post-card--tutorial { border-top-color: var(--cyan-500); }
.post-card--glossary { border-top-color: var(--coral-200); }
.post-card--tutorial .tag { color: var(--teal-800); }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-700); background: var(--bg-tint); padding: .25rem .6rem; border-radius: var(--r-pill); margin-bottom: var(--s-3); }
.post-meta { color: var(--muted); font-size: .88rem; margin-top: var(--s-3); }

.prose { max-width: var(--measure); margin-inline: auto; }
.prose > h2:first-child, .prose > h3:first-child, .prose > p:first-child { margin-top: 0; }
.prose h2 { margin-top: var(--s-7); scroll-margin-top: 90px; }
.prose h3 { margin-top: var(--s-5); scroll-margin-top: 90px; }
.prose p { margin-bottom: var(--s-4); }
.prose > p:first-of-type { font-size: 1.15rem; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 var(--s-4); padding-left: 1.35rem; }
.prose li { margin-bottom: var(--s-2); }
.prose li::marker { color: var(--teal-700); }
/* in-body links need to be distinguishable from bold text */
.prose a { color: var(--teal-700); text-decoration: underline; text-decoration-color: var(--cyan-400); text-underline-offset: 2px; }
.prose a:hover { color: var(--teal-900); text-decoration-color: currentColor; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); margin-block: var(--s-5); }
.prose blockquote { border-left: 4px solid var(--cyan-500); margin: var(--s-5) 0; padding: var(--s-2) var(--s-5); color: var(--ink-soft); background: var(--bg-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
/* tables (migrated comparison/data tables) */
.table-wrap { overflow-x: auto; margin: var(--s-6) 0; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95rem; background: #fff; }
.prose th, .prose td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--bg-tint); color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--line); }
.prose tbody tr:nth-child(even) { background: var(--bg-soft); }
.prose tbody tr:last-child td { border-bottom: 0; }
/* content figures */
.post-figure { margin: var(--s-6) 0; text-align: center; }
.post-figure img { display: inline-block; width: auto; max-width: 100%; max-height: 520px; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-soft); }
/* Hide auto-migrated photo captions (alt text) shown under article images. */
.post-figure figcaption { display: none; }
.article-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.byline { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.byline-avatar { width: 44px; height: 44px; border-radius: var(--r-pill); object-fit: cover; background: var(--bg-tint); flex: none; }
.byline-text { display: flex; flex-direction: column; }
.byline-name { font-weight: 600; color: var(--ink); }
.byline .post-meta { margin-top: 2px; }
.article-hero .container { max-width: calc(var(--measure) + 2 * clamp(20px, 5vw, 40px)); }
/* article layout with table-of-contents rail */
.article-layout { max-width: var(--measure); margin-inline: auto; }
.article-layout .prose { max-width: none; margin: 0; }
.toc { margin-bottom: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); padding: var(--s-4) var(--s-5); }
.toc summary { font-weight: 700; color: var(--ink); cursor: pointer; font-size: .95rem; }
.toc ol { margin: var(--s-3) 0 0; padding-left: 1.1rem; }
.toc li { margin-bottom: var(--s-2); font-size: .92rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--teal-900); }

/* Case study "At a glance": problem / solution / results, above the article body */
.case-summary { margin: 0 0 var(--s-6); padding: var(--s-4) var(--s-6); border: 1px solid var(--line); border-left: 4px solid var(--cyan-500); border-radius: var(--r-md); background: var(--bg-soft); }
.prose > .case-summary:first-child { margin-top: 0; }
.case-summary-title { margin: 0 0 var(--s-6); font-size: 1.35rem; font-weight: 700; letter-spacing: .01em; color: var(--teal-900); }
.case-steps { counter-reset: case-step; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.case-steps li { margin: 0; }
.case-step { counter-increment: case-step; position: relative; padding-left: 2.25rem; }
.case-step::before { content: counter(case-step); position: absolute; left: 0; top: .1rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--teal-900); color: #fff; font-size: .8rem; font-weight: 700; }
.case-step-label { display: block; font-weight: 700; color: var(--teal-900); margin-bottom: .15rem; }
.case-step p { font-size: .97rem; color: var(--ink-soft); }
/* the summary replaces the intro paragraph, so no body paragraph should get the lead size */
.prose > .case-summary ~ p { font-size: inherit; }
/* Wide screens: the body keeps the same measure and left edge as the H1 above it,
   and the contents rail is lifted out of the flow into the empty left gutter.
   Needs room for a 200px rail beside the text, hence the 1320px floor. */
@media (min-width: 1320px) {
  .article-layout { position: relative; max-width: var(--measure); margin-inline: auto; }
  .toc-col { position: absolute; top: 0; bottom: 0; right: calc(100% + var(--s-6)); width: 200px; }
  .toc-col .toc { position: sticky; top: 88px; margin-bottom: 0; }
  .toc summary { list-style: none; pointer-events: none; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); }
  .toc summary::-webkit-details-marker { display: none; }
}

/* glossary A–Z */
.az-nav { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.az-nav a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 700; color: var(--teal-900); }
.az-nav a:hover { background: var(--teal-900); color: #fff; }
.glossary-group { margin-bottom: var(--s-6); }
.glossary-group h2 { color: var(--teal-700); border-bottom: 2px solid var(--bg-tint); padding-bottom: var(--s-2); }

/* ----- Breadcrumb ------------------------------------------------------- */
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: var(--s-4); }
.hero .breadcrumb { padding-top: var(--s-6); }
/* When a breadcrumb sits above the hero it already provides the top offset, so the
   hero grid does not need its full leading padding as well. */
.hero .breadcrumb + .hero-grid { padding-top: var(--s-3); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal-900); }

/* ----- Footer ----------------------------------------------------------- */
.site-footer { background: var(--teal-900); color: #b9dedb; padding-block: var(--s-7) var(--s-5); }
.site-footer a { color: #cfe9e7; }
.site-footer a:hover { color: #fff; }
/* brand left, social right, above the link columns */
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-7); }
.footer-top .brand { color: #fff; }
/* six compact columns, grouped by the same categories as the top nav */
.footer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-6) var(--s-4); align-items: start; }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: var(--s-3); }
.footer-grid h4.mt { margin-top: var(--s-6); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid li a { font-size: .875rem; line-height: 1.35; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: var(--s-7); padding-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; color: #8fbfbc; font-size: .88rem; }
.social { display: flex; gap: var(--s-4); }
.social a { display: grid; place-items: center; color: #cfe9e7; }
.social a:hover { color: #fff; }
.social svg { width: 20px; height: 20px; }

/* utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: var(--r-pill); background:#fff; font-size:.9rem; font-weight:600; color: var(--ink-soft); }
.skip-link { position: absolute; left: -9999px; top: 0; background:#fff; padding:.6rem 1rem; z-index:100; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; top: 8px; box-shadow: var(--shadow-md); }

/* ----- Comparison table (/compare/) ------------------------------------- */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); }
.cmp-table { width: 100%; min-width: 780px; border-collapse: collapse; background: #fff; font-size: .95rem; }
.cmp-table th, .cmp-table td { padding: var(--s-3) var(--s-4); text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp-table thead th { font-size: .95rem; color: var(--ink); border-bottom: 2px solid var(--line); vertical-align: bottom; }
.cmp-table thead th small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.cmp-table tbody th { text-align: left; font-weight: 600; color: var(--ink); }
.cmp-table tbody tr:last-child td, .cmp-table tbody tr:last-child th { border-bottom: 0; }
.cmp-table .col-ok { background: var(--bg-tint); }
.cmp-table thead .col-ok { border-bottom-color: var(--teal-700); }
.cmp-yes { color: var(--teal-700); font-weight: 700; font-size: 1.05rem; }
.cmp-no { color: #b7c3c4; font-weight: 700; }
.cmp-part { color: #c98a3c; font-weight: 700; font-size: 1.05rem; }
.cmp-cellnote { display: block; font-weight: 400; color: var(--muted); font-size: .74rem; margin-top: 2px; }

/* MCP conversation illustration (business-friendly "ask it" bubbles) */
.mcp-bar-label { margin-left: auto; font-size: .78rem; font-weight: 600; color: var(--muted); }
.mcp-chat .mock-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.mcp-turn { display: flex; }
.mcp-turn.ask { justify-content: flex-end; }
.mcp-turn.reply { justify-content: flex-start; }
.mcp-bubble { max-width: 84%; padding: 10px 14px; border-radius: 15px; font-size: .92rem; line-height: 1.5; }
.mcp-turn.ask .mcp-bubble { background: var(--teal-900); color: #fff; border-bottom-right-radius: 5px; }
.mcp-turn.reply .mcp-bubble { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.mcp-chip { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--bg-tint); color: var(--teal-900); font-size: .76rem; font-weight: 600; }
.mcp-chip.confirm { background: var(--teal-900); color: #fff; }
