/* ==========================================================================
   Data Insights North West — design system
   --------------------------------------------------------------------------
   One coherent system. The previous stylesheet had a "v2" block appended that
   overrode "v1", which is what put every intro paragraph in a white box with a
   coloured left border and gave every card an arbitrary green/amber top edge.
   Colour here only ever carries meaning: green = primary/interactive/positive,
   amber = the "before" / manual / attention state, red = loss or error.

   Chart palette is validated (dataviz six checks, light mode, #FFFFFF surface):
     categorical  #0F7A52 #D98A2B #2F6FB5 #C9455A #6B4E9E
                  — worst adjacent CVD dE 13.3, normal-vision dE 20.4
                  — #D98A2B is 2.76:1 vs white, so it always carries a direct
                    label; it is never identified by colour alone
     sequential   #6BBE9B #3AA57C #178A5F #0B6B49 #073F2B (ordinal, all pass)
   ========================================================================== */

:root {
  /* --- brand ------------------------------------------------------------ */
  --ink:            #0E1A24;
  --ink-2:          #1B2C39;
  --green:          #0F7A52;
  --green-deep:     #0B5C3E;
  --green-bright:   #2FB574;
  --amber:          #D98A2B;
  --amber-deep:     #92561200;   /* unused placeholder guard */
  --amber-text:     #8A5210;     /* amber that clears text contrast */

  /* --- surfaces & ink --------------------------------------------------- */
  --page:           #F7F9F8;
  --surface:        #FFFFFF;
  --surface-2:      #EFF3F2;
  --text:           #0E1A24;
  --text-2:         #47585F;
  --text-3:         #6E7F86;
  --line:           #E2E9E8;
  --line-2:         #CBD6D5;

  /* --- chart chrome ----------------------------------------------------- */
  --grid:           #EBF0EF;
  --axis:           #C7D2D1;
  --s1:             #0F7A52;
  --s2:             #D98A2B;
  --s3:             #2F6FB5;
  --s4:             #C9455A;
  --s5:             #6B4E9E;
  --seq-1:          #6BBE9B;
  --seq-2:          #3AA57C;
  --seq-3:          #178A5F;
  --seq-4:          #0B6B49;
  --seq-5:          #073F2B;
  --good:           #0CA30C;
  --warning:        #FAB219;
  --critical:       #D03B3B;

  /* --- type ------------------------------------------------------------- */
  --sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', 'Space Grotesk', var(--sans);
  --mono:    ui-monospace, 'Cascadia Mono', 'Consolas', monospace;

  /* --- metrics ---------------------------------------------------------- */
  --maxw:    1140px;
  --maxw-nr: 760px;          /* narrow: prose */
  --r-sm:    8px;
  --r:       12px;
  --r-lg:    18px;
  --shadow:  0 1px 2px rgba(14,26,36,.05), 0 8px 24px -18px rgba(14,26,36,.28);
  --shadow-lg: 0 1px 2px rgba(14,26,36,.05), 0 28px 60px -32px rgba(14,26,36,.34);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Available to screen readers, removed from the visual layout. */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Skip link — first tab stop, visible only when focused. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 600; font-size: 15px;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------- layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-nr { max-width: var(--maxw-nr); margin: 0 auto; padding: 0 24px; }

section { padding: 84px 0; }
section.tight { padding: 56px 0; }
section.tint { background: var(--surface-2); }
section.white { background: var(--surface); }
section.dark { background: var(--ink); color: #fff; }
section + section.tint, section + section.white, section + section.dark { border-top: 1px solid var(--line); }
section.dark + section { border-top: none; }
section.dark, section.dark + section.dark { border-top-color: rgba(255,255,255,.1); }

/* --------------------------------------------------------------- type */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.021em;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 4.1vw, 50px); letter-spacing: -0.028em; }
.hero h1 { font-size: clamp(44px, 6.2vw, 80px); letter-spacing: -0.03em; line-height: 0.98; font-weight: 600; font-style: normal; }
h2 { font-size: clamp(25px, 2.9vw, 35px); }
h3 { font-size: 19px; line-height: 1.25; }
h4 { font-size: 16px; line-height: 1.3; }

p { text-wrap: pretty; }
.lead { font-size: 19px; line-height: 1.6; color: var(--text-2); }
.small { font-size: 14px; }
.muted { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }

/* Eyebrow — a quiet label, not a badge. Single dot, no pill. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.dark .eyebrow { color: var(--green-bright); }
.dark .eyebrow::before { background: var(--green-bright); }

/* Section heading block. Plain type — no box, no left border. */
.sec-head { max-width: 62ch; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head > p { font-size: 18px; color: var(--text-2); margin-top: 14px; }
.dark .sec-head > p { color: #A9BAC1; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .06s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.dark .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.btn-lg { font-size: 16px; padding: 15px 26px; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Text link with underline on hover — used inside prose and cards. */
.tlink { color: var(--green-deep); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.tlink svg { width: 15px; height: 15px; transition: transform .18s; }
.tlink:hover svg { transform: translateX(2px); }

/* --------------------------------------------------------------- header */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,249,248,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site nav.top { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17.5px; letter-spacing: -.024em; flex: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand span { white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--text-2); }
/* flex:none matters — without it the CTA gets shrunk by the flex algorithm and
   its label overflows the pill. */
.nav-links a { padding: 6px 0; position: relative; flex: none; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-links a:not(.btn)[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--green); border-radius: 2px;
}
.nav-links .btn { margin-left: 4px; padding: 11px 18px; }

.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px;
  background: none; border: 1px solid var(--line-2); border-radius: 9px; cursor: pointer;
}
.nav-toggle span { display: block; width: 17px; height: 1.5px; background: var(--ink); margin: 3.5px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------- hero */
.hero { padding: 96px 0 88px; background: var(--ink); border-bottom: none; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1.08fr; gap: 60px; align-items: center; }
.hero-grid > *:first-child { color: #F4F7F6; }
.hero-grid > *:first-child .eyebrow { color: var(--green-bright); }
.hero-grid > *:first-child h1 { max-width: 15ch; color: #fff; }
.hero-grid > *:first-child .lead { color: #C7D3D1; }
.hero .lead { margin: 22px 0 30px; max-width: 46ch; }
.hero .btn-row { margin-bottom: 26px; }

/* Trust row — plain text, no boxes. */
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--text-3); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 15px; height: 15px; color: var(--green); flex: none; }

/* --------------------------------------------------------------- logo strip */
.toolstrip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolstrip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 30px; padding: 20px 24px; }
.toolstrip .lbl { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.toolstrip .tool { font-size: 15px; font-weight: 500; color: var(--text-2); }

/* --------------------------------------------------------------- page head */
.page-head { background: var(--ink); border-bottom: none; padding: 84px 0 68px; }
.page-head h1 { max-width: 20ch; font-size: clamp(38px, 5vw, 60px); line-height: 1.02; color: #fff; }
.page-head .lead { margin-top: 18px; max-width: 58ch; color: #C7D3D1; }
.page-head .eyebrow { color: var(--green-bright); }

/* Breadcrumbs */
.crumbs { font-size: 13.5px; color: var(--text-3); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { color: var(--line-2); }

/* --------------------------------------------------------------- cards */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; display: flex; flex-direction: column;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
a.card:hover { transform: translateY(-2px); }
.card .ico { width: 26px; height: 26px; color: var(--green); margin-bottom: 16px; flex: none; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--text-2); }
.card .tlink { margin-top: auto; padding-top: 16px; font-size: 14.5px; }

/* Bold asymmetric feature card — the first item in a "grid-feature" layout */
.grid-feature { grid-template-columns: 1.35fr 1fr 1fr; }
.card-feature {
  background: var(--ink); border-color: var(--ink); color: #fff; padding: 34px 30px;
}
.card-feature .ico { color: var(--green-bright); width: 32px; height: 32px; }
.card-feature h3 { font-size: 26px; color: #fff; }
.card-feature p { color: #C7D3D1; font-size: 15.5px; }
.card-feature .tlink { color: var(--green-bright); }
.card-feature:hover { border-color: var(--ink); box-shadow: var(--shadow-lg); }

/* Checklist inside a card */
.ticks { list-style: none; display: grid; gap: 8px; margin-top: 16px; }
.ticks li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.ticks li svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 4px; }
.dark .ticks li { color: #A9BAC1; }
.dark .ticks li svg { color: var(--green-bright); }

/* --------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.13); border-radius: var(--r); overflow: hidden; }
.steps .step { padding: 28px 24px; border-right: 1px solid rgba(255,255,255,.13); }
.steps .step:last-child { border-right: none; }
.steps .step .n {
  display: inline-block; font-family: var(--display); font-size: 13px; font-weight: 600;
  color: var(--green-bright); border: 1px solid rgba(47,181,116,.4); border-radius: 7px;
  padding: 3px 9px; margin-bottom: 14px;
}
.steps .step h3 { margin-bottom: 7px; }
.steps .step p { font-size: 14.5px; color: #A9BAC1; }

/* --------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { background: var(--surface-2); border: none; border-radius: var(--r-lg); padding: 34px 28px; }
.stat .v { font-family: var(--display); font-weight: 600; font-size: 56px; letter-spacing: -.035em; color: var(--green-deep); line-height: 1; }
.stat .k { font-size: 15.5px; color: var(--text-2); margin-top: 10px; }
.dark .stat { background: rgba(255,255,255,.06); border-color: transparent; }
.dark .stat .v { color: var(--green-bright); }
.dark .stat .k { color: #A9BAC1; }
.dark .viz { color: var(--text); }

/* --------------------------------------------------------------- CTA band */
.cta {
  background: var(--ink); color: #fff; border-radius: var(--r-lg);
  padding: 54px 44px; text-align: center;
}
.cta h2 { max-width: 24ch; margin: 0 auto; }
.cta p { color: #A9BAC1; font-size: 17.5px; margin: 14px auto 28px; max-width: 52ch; }

/* --------------------------------------------------------------- prose */
.prose { max-width: var(--maxw-nr); }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 44px; font-size: clamp(23px, 2.4vw, 29px); }
.prose h3 { margin-top: 32px; font-size: 19px; }
.prose p, .prose li { font-size: 17px; color: var(--text-2); line-height: 1.72; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 9px; }
.prose li::marker { color: var(--green); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a:not(.btn) { color: var(--green-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--green); padding: 4px 0 4px 20px;
  font-size: 18px; color: var(--text); font-style: normal;
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

/* Unconfirmed facts. Deliberately loud: a placeholder must never reach the
   live site unnoticed. Check with:
   Select-String -Path "*.html","insights\*.html" -Pattern 'class="todo"' */
mark.todo {
  background: #FFF3C4; color: #6B4E00; border: 1px solid #E8CE73;
  border-radius: 4px; padding: 1px 6px; font-size: .95em; font-weight: 500;
}

/* Callout — used sparingly, and only where the content really is an aside. */
.note {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; font-size: 15.5px; color: var(--text-2);
}
.note strong { color: var(--text); }

/* --------------------------------------------------------------- tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th {
  background: var(--surface-2); font-size: 12.5px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data caption { caption-side: bottom; padding: 12px 16px; font-size: 13px; color: var(--text-3); text-align: left; }

/* --------------------------------------------------------------- FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 17.5px; letter-spacing: -.015em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px;
  margin-top: -6px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .body { padding: 0 22px 22px; }
.faq .body p { font-size: 16px; color: var(--text-2); }
.faq .body p + p { margin-top: 14px; }

/* --------------------------------------------------------------- forms */
form.enquiry { display: grid; gap: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--text);
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 10px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green);
}
.field .hint { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.form-note { font-size: 13px; color: var(--text-3); }
.form-status { display: none; padding: 15px 17px; border-radius: 10px; font-size: 15px; }
.form-status.ok { display: block; background: #E7F4EE; border: 1px solid #BFE0D0; color: var(--green-deep); }
.form-status.err { display: block; background: #FBEDE6; border: 1px solid #F0CDBC; color: #8A3D12; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }

.info-list { display: grid; }
.info-list .row { display: flex; gap: 14px; align-items: flex-start; padding: 17px 0; border-bottom: 1px solid var(--line); }
.info-list .row:first-child { padding-top: 0; }
.info-list .row:last-child { border-bottom: none; }
.info-list svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 3px; }
.info-list h3 { font-size: 15.5px; margin-bottom: 2px; }
.info-list p { font-size: 15px; color: var(--text-2); }

.numlist { list-style: none; display: grid; gap: 14px; }
.numlist li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.numlist .n {
  font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--green-deep);
  background: #E7F4EE; width: 25px; height: 25px; border-radius: 7px; flex: none;
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   CHARTS — shared chrome for every sample visual on the site
   ========================================================================== */
.viz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.viz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 20px 0; }
.viz-title { font-family: var(--display); font-weight: 600; font-size: 15.5px; letter-spacing: -.015em; }
.viz-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.viz-body { padding: 14px 20px 18px; }

/* Live-ish refresh chip. Green dot = state, and the text says the state too. */
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-size: 12px; font-weight: 600; color: var(--green-deep);
  background: #E7F4EE; border: 1px solid #C6E2D4; border-radius: 100px; padding: 4px 11px;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.chip.neutral { color: var(--text-3); background: var(--surface-2); border-color: var(--line); }
.chip.neutral::before { background: var(--text-3); }

/* KPI tiles. Neutral surface — the delta colour carries the meaning, with an
   arrow glyph and a signed number so it is never colour alone. */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px; background: var(--surface); }
.kpi .k { font-size: 11.5px; font-weight: 500; color: var(--text-3); letter-spacing: .02em; }
.kpi .v { font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: -.02em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12.5px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 4px; }
.kpi .d.up { color: var(--green-deep); }
.kpi .d.down { color: #A32F2F; }
.kpi .d.flat { color: var(--text-3); }

/* Plot frame: gridlines are hairlines, the baseline is stronger. */
.plot { position: relative; }
.plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.plot .gridline { stroke: var(--grid); stroke-width: 1; }
.plot .baseline { stroke: var(--axis); stroke-width: 1; }
.plot .tick { font-size: 11px; fill: var(--text-3); font-family: var(--sans); font-variant-numeric: tabular-nums; }
.plot .tick.y { text-anchor: end; }
.plot .tick.x { text-anchor: middle; }
.plot .axis-label { font-size: 11px; fill: var(--text-3); font-family: var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.plot .series-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plot .series-area { stroke: none; }
.plot .marker { stroke: var(--surface); stroke-width: 2; }
.plot .bar { rx: 3; }
.plot .val { font-size: 11.5px; font-weight: 600; fill: var(--text-2); font-family: var(--sans); font-variant-numeric: tabular-nums; }

/* Ranked category rows. One colour for all bars on purpose: these are four
   slices of a single measure, so different hues would imply different series. */
.cat-row + .cat-row { margin-top: 12px; }
.cat-row .cat-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; margin-bottom: 5px; }
.cat-row .cat-name { color: var(--text-2); }
.cat-row .cat-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.cat-row .cat-track { height: 9px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.cat-row .cat-fill { height: 100%; background: var(--green); border-radius: 3px; transition: width .25s ease; }

/* Invisible hover anchors on a line chart — the tooltip measures these to
   position itself over the exact data point. */
.plot .pt { fill: none; stroke: none; pointer-events: none; }

/* Legend — always present for 2+ series. Text in ink, never in series colour. */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.legend .item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* Hover tooltip */
.plot .hit { fill: transparent; cursor: crosshair; }
.tip {
  position: absolute; pointer-events: none; opacity: 0; transform: translate(-50%, -100%);
  background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.45;
  padding: 8px 11px; border-radius: 8px; white-space: nowrap; z-index: 5;
  transition: opacity .12s; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5);
}
.tip.on { opacity: 1; }
.tip b { font-variant-numeric: tabular-nums; }
.plot .crosshair { stroke: var(--axis); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.plot .crosshair.on { opacity: 1; }

/* Filter chips above a chart */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button {
  font-family: var(--sans); font-size: 13px; font-weight: 500; cursor: pointer;
  padding: 7px 13px; border-radius: 100px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text-2); transition: all .16s;
}
.filters button:hover { border-color: var(--ink); color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Table-view toggle (the relief for the sub-3:1 amber and for CVD readers) */
.viz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 16px; }
.viz-foot .note-sm { font-size: 12px; color: var(--text-3); }
.togg {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; cursor: pointer;
  background: none; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 6px 11px; color: var(--text-2);
}
.togg:hover { border-color: var(--ink); color: var(--text); }

/* ==========================================================================
   REPORT MOCKUPS — the Power BI and Excel sample surfaces
   ========================================================================== */

/* Chrome shell that frames a mockup so it reads as a screenshot of an app,
   not as part of the page. */
.shell { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.shell-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.shell-bar .dots { display: flex; gap: 5px; flex: none; }
.shell-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.shell-bar .name { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.shell-bar .name .app { color: var(--text-3); font-weight: 500; }
.shell-bar .spacer { margin-left: auto; }

/* --- Power BI canvas ---------------------------------------------------- */
.pbi { background: #F1F3F4; padding: 14px; display: grid; gap: 12px; }
.pbi-row { display: grid; gap: 12px; }
.pbi-row.k4 { grid-template-columns: repeat(4, 1fr); }
.pbi-row.c2 { grid-template-columns: 1.5fr 1fr; }
.pbi-card { background: #fff; border: 1px solid #E1E5E6; border-radius: 6px; padding: 12px 14px; min-width: 0; }
.pbi-card .h { font-size: 12.5px; font-weight: 600; color: var(--text); letter-spacing: -.01em; margin-bottom: 2px; }
.pbi-card .s { font-size: 11px; color: var(--text-3); margin-bottom: 10px; }
.pbi-slicers { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.pbi-slicers .lbl { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-right: 2px; }

/* --- Excel grid --------------------------------------------------------- */
.xl { background: #fff; font-family: var(--sans); }
.xl-grid { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.xl-grid th, .xl-grid td { border: 1px solid #DDE3E3; padding: 6px 9px; white-space: nowrap; }
.xl-grid .col-head, .xl-grid .row-head {
  background: #F2F4F5; color: var(--text-3); font-weight: 500; font-size: 11px;
  text-align: center; width: 34px; padding: 3px;
}
.xl-grid thead.cols th { position: relative; }
.xl-grid tr.hdr th { background: #0B5C3E; color: #fff; font-weight: 600; font-size: 12px; text-align: left; border-color: #0B5C3E; }
.xl-grid tr.hdr th.n { text-align: right; }
.xl-grid td.n { text-align: right; }
.xl-grid td.lbl { font-weight: 500; color: var(--text); }
.xl-grid tr.total td { background: #EFF3F2; font-weight: 700; border-top: 2px solid var(--line-2); }
.xl-grid td.pos { color: var(--green-deep); font-weight: 600; }
.xl-grid td.neg { color: #A32F2F; font-weight: 600; }
.xl-grid td.flagged { background: #FDF3E3; }

/* In-cell data bar (Excel conditional formatting) */
.databar { position: relative; }
.databar .fill { position: absolute; left: 3px; top: 3px; bottom: 3px; border-radius: 2px; opacity: .9; }
.databar .t { position: relative; z-index: 1; }

/* Sheet tabs */
.xl-tabs { display: flex; gap: 2px; padding: 6px 10px; background: #F2F4F5; border-top: 1px solid #DDE3E3; }
.xl-tabs .tab { font-size: 12px; font-weight: 500; color: var(--text-3); padding: 5px 13px; border-radius: 5px 5px 0 0; }
.xl-tabs .tab.on { background: #fff; color: var(--green-deep); font-weight: 600; border: 1px solid #DDE3E3; border-bottom-color: #fff; }

/* --- Before / after ----------------------------------------------------- */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; }
.ba-col { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--surface); }
.ba-col.before { border-left: 3px solid var(--amber); }
.ba-col.after { border-left: 3px solid var(--green); }
.ba-col .tag { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.ba-col.before .tag { color: var(--amber-text); }
.ba-col.after .tag { color: var(--green-deep); }
.ba-col ul { list-style: none; display: grid; gap: 11px; }
.ba-col li { font-size: 15px; color: var(--text-2); display: flex; gap: 10px; align-items: flex-start; }
.ba-col li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; }
.ba-col.before li svg { color: var(--amber); }
.ba-col.after li svg { color: var(--green); }
.ba-arrow { display: flex; align-items: center; color: var(--line-2); }
.ba-arrow svg { width: 28px; height: 28px; }

/* Result strip under a case study */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.results .r { background: var(--surface); padding: 20px 22px; }
.results .r .v { font-family: var(--display); font-weight: 700; font-size: 27px; letter-spacing: -.02em; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.results .r .k { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }

/* Sample-data disclosure — must stay visible on every mockup. */
.sample-note {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--text-3); margin-top: 14px;
}
.sample-note svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--text-3); }

/* ==========================================================================
   PRICING
   ========================================================================== */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; position: relative; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.tier .flag {
  position: absolute; top: -11px; left: 26px; background: var(--green); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 100px;
}
.tier .name { font-family: var(--display); font-weight: 600; font-size: 20px; }
.tier .price { font-family: var(--display); font-weight: 700; font-size: 38px; letter-spacing: -.03em; margin-top: 12px; font-variant-numeric: tabular-nums; }
.tier .price .per { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.tier .hrs { font-size: 14.5px; color: var(--text-2); margin-top: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tier .ticks { margin-top: 18px; margin-bottom: 22px; }
.tier .btn { margin-top: auto; width: 100%; }

/* ==========================================================================
   CALCULATOR
   ========================================================================== */
.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.calc-controls { display: grid; gap: 22px; }
.calc-row label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 4px; }
.calc-row .sub { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.calc-row .val { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--green-deep); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--green); height: 26px; }
.calc-out { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 30px; }
.calc-out .big { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5vw, 54px); letter-spacing: -.03em; color: var(--green-bright); font-variant-numeric: tabular-nums; line-height: 1.05; }
.calc-out .cap { font-size: 15px; color: #A9BAC1; margin-top: 8px; }
.calc-out .split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.calc-out .split .v { font-family: var(--display); font-weight: 600; font-size: 25px; font-variant-numeric: tabular-nums; }
.calc-out .split .k { font-size: 13px; color: #A9BAC1; margin-top: 3px; }

/* ==========================================================================
   INSIGHTS / BLOG
   ========================================================================== */
.posts { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; display: flex; flex-direction: column; transition: border-color .18s, box-shadow .18s, transform .18s; }
.post:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.post .kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); }
.post h3 { margin: 10px 0 8px; font-size: 18.5px; }
.post p { font-size: 15px; color: var(--text-2); }
.post .meta { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--text-3); }

.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--text-3); margin-top: 18px; }
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.toc h2 { font-size: 14px !important; margin: 0 0 12px !important; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); font-family: var(--sans); font-weight: 600; }
.toc ol { padding-left: 20px; display: grid; gap: 7px; }
.toc a { font-size: 15px; color: var(--green-deep); font-weight: 500; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site { background: var(--ink); color: #fff; padding: 56px 0 30px; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
footer.site .brand { color: #fff; font-size: 17px; }
/* Byline sits under the footer wordmark, separated by the brand's gold rule —
   the same device as the stacked lockup, so the two read as one identity. */
footer.site .byline {
  font-size: 14px; color: #93A5AD; margin-top: 12px; padding-top: 12px;
  position: relative; max-width: 34ch;
}
footer.site .byline::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 30px; height: 2px; border-radius: 1px; background: #C9A24A;
}
footer.site .blurb { font-size: 14.5px; color: #93A5AD; margin-top: 14px; max-width: 34ch; }
footer.site h4 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: #7C9099; font-family: var(--sans); font-weight: 600; margin-bottom: 14px; }
footer.site ul { list-style: none; display: grid; gap: 9px; }
footer.site ul a { font-size: 14.5px; color: #C3D0D5; }
footer.site ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
footer.site .base {
  margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13);
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  font-size: 13.5px; color: #7C9099;
}
footer.site .base a:hover { color: #fff; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero h1, .hero .lead { max-width: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step:nth-child(2) { border-right: none; }
  .steps .step:nth-child(1), .steps .step:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.13); }
  .calc { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px; margin-left: 0;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; font-size: 16px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links .btn { margin: 10px 0 0; }
  .nav-toggle { display: block; }
  .grid-3, .posts, .stats, .tiers, .grid-2 { grid-template-columns: 1fr; }
  .pbi-row.k4 { grid-template-columns: repeat(2, 1fr); }
  .pbi-row.c2 { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; gap: 16px; }
  .ba-arrow { transform: rotate(90deg); justify-content: center; padding: 4px 0; }
  .results { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0 54px; }
  .cta { padding: 38px 24px; }
  .panel { padding: 24px; }
}

@media (max-width: 560px) {
  .grid-4, .pbi-row.k4 { grid-template-columns: 1fr; }
  .brand span { font-size: 15.5px; white-space: normal; }
  .stat .v { font-size: 34px; }
}

/* Wide content must scroll inside its own container, never the page body. */
@media (max-width: 900px) {
  .shell-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .shell-scroll > .shell { min-width: 720px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .series-line { stroke-dashoffset: 0 !important; }
}

@media print {
  header.site, footer.site, .cta, .nav-toggle { display: none; }
  body { background: #fff; }
  .shell, .card, .viz { box-shadow: none; }
}
