/* =========================================================
   Finance for Decisions — stylesheet
   Palette taken from the supplied logo: navy #002047, teal #009588
   ========================================================= */
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-latin-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
/* Cyrillic: Manrope Cyrillic subset; Literata italic stands in for Newsreader (which has no Cyrillic) */
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-cyrillic-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/literata-cyrillic-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/literata-cyrillic-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --navy: #002047; --navy-900: #00142f; --navy-800: #0a2a55; --navy-700: #1b3c6b; --navy-300: #8a9bb5; --navy-100: #e6ebf2;
  --teal: #009588; --teal-700: #007a6f; --teal-300: #7cc9c0; --teal-100: #e1f3f0; --teal-bright: #2fc4b2;
  --ink: #0d1a2e; --body: #33404f; --muted: #5d6a7c; --line: #e2e6ec; --line-2: #d3d9e1;
  --bg: #f7f7f3; --paper: #ffffff; --stone: #efeee8;
  --red: #c2412d; --red-100: #fbebe7; --amber: #b7790a; --amber-100: #fdf3df; --green: #0d8a5f;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 14px; --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(0,32,71,.06), 0 1px 1px rgba(0,32,71,.04);
  --shadow: 0 1px 2px rgba(0,32,71,.05), 0 8px 24px -8px rgba(0,32,71,.14);
  --shadow-lg: 0 2px 4px rgba(0,32,71,.05), 0 24px 48px -16px rgba(0,32,71,.28);
  --wrap: 1200px;
  --header-h: 76px;
  --h1: clamp(2.5rem, 6vw, 5.1rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; overflow-x: clip; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--body); background: var(--bg); font-feature-settings: 'tnum' 1, 'lnum' 1; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 750; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.025em; text-wrap: balance; }
h3, .demo-title, .section-lead, .hero-lead { text-wrap: pretty; }
.h-lines > span { display: block; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.pos { color: var(--teal-700); } .neg { color: var(--red); } .nil { color: inherit; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .97rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; line-height: 1.2; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px -8px rgba(0,149,136,.7); }
.btn-primary:hover { background: var(--teal-700); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-sm { min-height: 44px; padding: 9px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,247,243,.86); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, background .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.94); box-shadow: 0 6px 20px -16px rgba(0,32,71,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { width: 270px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 0; position: relative; white-space: nowrap; }
.nav-cta { white-space: nowrap; }
.site-nav ul a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.site-nav ul a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 50%; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transform: translateX(-50%); transition: transform .25s, opacity .2s; content: ''; }
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translate(-50%, 6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translate(-50%, -6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(900px 480px at 85% 10%, rgba(0,149,136,.10), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(0,32,71,.06), transparent 60%);
}
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,32,71,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(0,32,71,.045) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 85%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 85%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 64px; align-items: start; }
.hero-head { grid-column: 1 / -1; margin-bottom: 8px; }
.hero-copy { padding-top: 8px; }
.hero-card { margin-top: calc(var(--h1) * -1.9); }
.eyebrow { font-size: .8rem; letter-spacing: .16em; font-weight: 800; color: var(--teal-700); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--teal); }
.hero-title { font-size: var(--h1); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; color: var(--navy); margin-bottom: 26px; }
.hero-title span { display: block; }
.js .hero-title span { white-space: nowrap; }
.hero.no-overlap .hero-card { margin-top: 0; }
.hero-title .accent { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--teal); letter-spacing: -.01em; position: relative; width: fit-content; padding-right: .08em; }
.hero-title .accent::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .09em; background: linear-gradient(90deg, var(--teal) 0%, rgba(0,149,136,.15) 100%); border-radius: 4px; }
.hero-lead { font-size: 1.15rem; max-width: 36em; color: var(--body); margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 22px 0 0; margin: 0; border-top: 1px solid var(--line-2); font-size: .93rem; color: var(--muted); }
.hero-proof strong { color: var(--navy); font-weight: 800; }

.hero-card { background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 22px 22px 18px; position: relative; }
.hm-head { margin-bottom: 12px; }
.tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); background: var(--teal-100); padding: 4px 9px; border-radius: 6px; margin-bottom: 10px; }
.hm-title { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.6rem; color: var(--navy); margin-bottom: 2px; letter-spacing: -.01em; }
.hm-sub { font-size: .85rem; color: var(--muted); margin: 0; }
.hm-seg { margin: 4px 0 8px; }
.hm-chart { min-height: 190px; }
.hm-out { background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin: 6px 0 12px; min-height: 92px; }
.hm-out p { margin: 6px 0 0; }
.hm-flag { display: inline-block; font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.hm-flag.good { background: var(--teal-100); color: var(--teal-700); }
.hm-flag.bad { background: var(--red-100); color: var(--red); }
.hm-link { font-weight: 700; font-size: .93rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

/* ---------- questions strip ---------- */
.questions { background: var(--navy); color: #dbe3ee; padding: 34px 0; }
.q-title { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; margin-bottom: 16px; }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.q-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: #fff; text-decoration: none; font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.3; transition: background .2s, border-color .2s; }
.q-list a::after { content: '→'; font-family: var(--sans); font-style: normal; color: var(--teal-bright); flex-shrink: 0; }
.q-list a:hover { background: rgba(255,255,255,.06); border-color: var(--teal-bright); }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-head { max-width: 900px; margin-bottom: 52px; }
.section-head-split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.kicker { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--teal-700); margin-bottom: 14px; }
.kicker-light { color: var(--teal-bright); }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 40em; }
.soft { color: var(--navy-300); }
.accent-text { color: var(--teal); font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 20px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s; position: relative; }
.svc-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.svc-card.is-active { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal), var(--shadow); }
.svc-card.is-active .svc-link { background: var(--teal); color: #fff; border-color: var(--teal); }
.svc-card.is-active .svc-link::before { content: '● '; font-size: .7em; }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.svc-num { font-weight: 800; font-size: .85rem; color: var(--teal-700); letter-spacing: .04em; }
.svc-pill { font-size: .72rem; font-weight: 700; color: var(--navy); background: var(--teal-100); padding: 4px 10px; border-radius: 999px; }
.svc-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.svc-q { font-family: var(--serif); font-style: italic; color: var(--navy-700); font-size: 1.08rem; margin-bottom: 10px; line-height: 1.35; }
.svc-card > p:not(.svc-q):not(.svc-del) { font-size: .95rem; color: var(--body); }
.svc-del { font-size: .86rem; color: var(--ink); border-top: 1px dashed var(--line-2); padding-top: 12px; margin-top: auto; margin-bottom: 14px; }
.svc-del span { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: 2px; }
.svc-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line-2); border-radius: 999px; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--navy); transition: all .2s; }
.svc-link:hover { border-color: var(--teal); color: var(--teal-700); }
.svc-feature { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, #fff 0%, #fff 55%, var(--teal-100) 100%); }
.svc-feature h3 { font-size: 1.6rem; }
.svc-feature .svc-q { font-size: 1.35rem; }
.svc-feature > p:not(.svc-q):not(.svc-del) { font-size: 1.02rem; max-width: 40em; }
.svc-feature-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 6px 0 18px; }
.svc-feature-body h4 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 8px; }
.svc-feature-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .92rem; }
.svc-feature-body li { padding-left: 20px; position: relative; line-height: 1.4; }
.svc-feature-body li::before { content: ''; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 2px; background: var(--teal); }
.svc-feature-body .qs li { font-family: var(--serif); font-style: italic; color: var(--navy-700); font-size: 1rem; }
.svc-fan { width: 100%; height: auto; max-height: 120px; margin: auto 0 14px; font-family: var(--sans); overflow: visible; }
.svc-feature .svc-del { margin-top: 0; }
.svc-feature-body .qs li::before { background: var(--navy-100); border: 1.5px solid var(--navy-300); }

/* ---------- examples (lab) ---------- */
.examples { background: var(--navy); color: #c9d4e3; position: relative; }
.examples::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 400px at 100% 0%, rgba(0,149,136,.18), transparent 60%); pointer-events: none; }
.examples .wrap { position: relative; max-width: 1340px; }
.examples h2 { color: #fff; }
.examples .section-lead { color: #b6c3d6; }
.ex-disclaimer { font-size: .9rem; color: #b6c3d6; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-left: 3px solid var(--teal-bright); border-radius: 10px; padding: 12px 16px; margin: -20px 0 28px; }
.ex-disclaimer strong { color: #fff; }
.ex-shell { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 24px; align-items: start; }
.ex-nav { position: sticky; top: calc(var(--header-h) + 16px); }
.ex-select { display: none; }
.ex-tabs { display: flex; flex-direction: column; gap: 4px; }
.ex-tabs [role="tab"] { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #c9d4e3; text-align: left; cursor: pointer; font-weight: 600; font-size: .93rem; line-height: 1.25; transition: background .15s, color .15s, border-color .15s; }
.ex-tabs [role="tab"]:hover { background: rgba(255,255,255,.06); color: #fff; }
.ex-tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--navy); border-color: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.t-num { font-size: .78rem; font-weight: 800; color: var(--teal-bright); min-width: 20px; }
[aria-selected="true"] .t-num { color: var(--teal); }
.ex-panel { background: var(--paper); color: var(--body); border-radius: 18px; padding: 30px; box-shadow: var(--shadow-lg); }
.ex-panel:focus-visible { outline-offset: 4px; }
.ex-panel[hidden] { display: none; }
.demo-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 22px; }
.demo-kicker { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 8px; }
.demo-title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); color: var(--navy); margin-bottom: 8px; letter-spacing: -.02em; }
.demo-title:focus { outline: none; }
.demo-intro { color: var(--muted); margin: 0; max-width: 60em; font-size: .98rem; }
.ex-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* demo layout */
.demo-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.demo-controls { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.demo-output { min-width: 0; display: flex; flex-direction: column; gap: 18px; container-type: inline-size; }
.dash { container-type: inline-size; }
.ctl-intro { font-size: .9rem; margin: 0; color: var(--body); }
.ctl { display: flex; flex-direction: column; gap: 4px; }
.ctl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ctl label, .ctl-label { font-size: .84rem; font-weight: 700; color: var(--ink); }
.ctl output { font-weight: 800; font-size: .86rem; color: var(--navy); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; white-space: nowrap; }
.ctl-hint { font-size: .75rem; color: var(--muted); line-height: 1.35; }
.ctl-group { display: flex; flex-direction: column; gap: 14px; padding: 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.ctl-group-title { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); }
.ctl-group-target { border-color: var(--teal-300); }
.ctl-pair { display: flex; flex-direction: column; gap: 10px; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; --fill: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--teal) 0, var(--teal) var(--fill), var(--line-2) var(--fill)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line-2); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--teal); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2.5px solid var(--navy); margin-top: -8px; box-shadow: 0 2px 6px rgba(0,32,71,.25); transition: transform .15s; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2.5px solid var(--navy); box-shadow: 0 2px 6px rgba(0,32,71,.25); }
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.1); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(47,196,178,.45); }
input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(47,196,178,.45); }

.seg { display: flex; flex-wrap: wrap; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.ctl-seg .seg, .presets .seg { margin-top: 6px; }
.seg-btn { flex: 1 1 auto; min-height: 38px; padding: 7px 10px; border: 0; border-radius: 7px; background: transparent; font-weight: 700; font-size: .83rem; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.seg-btn:hover { color: var(--navy); background: var(--bg); }
.seg-btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.hm-seg .seg-btn { min-height: 40px; }
.btn-reset { align-self: flex-start; background: none; border: 0; color: var(--teal-700); font-weight: 700; font-size: .85rem; cursor: pointer; padding: 8px 2px; min-height: 40px; }
.btn-reset:hover { color: var(--navy); text-decoration: underline; }

.kpis { display: grid; gap: 12px; }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--paper); border-top: 3px solid var(--navy-100); min-width: 0; }
.kpi-label { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; line-height: 1.3; }
.kpi-value { font-size: 1.42rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.2; margin: 4px 0 2px; overflow-wrap: anywhere; }
.kpi-text .kpi-value { font-size: 1.08rem; }
.kpi-sub { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.kpi.is-good { border-top-color: var(--teal); }
.kpi.is-warn { border-top-color: var(--amber); }
.kpi.is-bad { border-top-color: var(--red); }
.kpi.is-bad .kpi-value { color: var(--red); }

.chart-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 6px; background: var(--paper); }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 6px; }
.chart-head h4 { font-size: .95rem; margin: 0; color: var(--ink); }
.chart { width: 100%; min-height: 120px; }
.chart-svg { display: block; overflow: visible; }
.chart-svg .grid { stroke: #edf0f4; stroke-width: 1; }
.chart-svg .axis-zero { stroke: #9aa6b6; stroke-width: 1.2; }
.chart-svg .tick { font-size: 11px; fill: #6b7787; font-family: var(--sans); font-feature-settings: 'tnum' 1; }
.chart-svg .ref-label, .chart-svg .marker-label { font-size: 11px; font-weight: 800; font-family: var(--sans); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.chart-svg .bar-value { font-size: 11px; font-weight: 800; fill: var(--navy); font-family: var(--sans); }
.chart-svg .bar-value.pos { fill: var(--teal-700); } .chart-svg .bar-value.neg { fill: var(--red); }
.chart-svg .connector { stroke: #9aa6b6; stroke-dasharray: 3 3; }
.chart-svg .axis-note { font-size: 10px; fill: #8a95a4; font-style: italic; font-family: var(--sans); }
.chart-svg .row-label { font-size: 12.5px; font-weight: 700; fill: var(--ink); font-family: var(--sans); }
.chart-svg .seg-label { font-size: 11px; font-weight: 800; fill: var(--navy); font-family: var(--sans); }
.chart-svg .seg-label.on-dark { fill: #fff; }
.chart-svg .seg-label.neg { fill: var(--red); }
.chart-svg .hover-col { fill: transparent; }
.chart-svg .hover-col:hover { fill: rgba(0,32,71,.05); }
.chart-svg [data-tip] { cursor: default; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .76rem; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg i { display: inline-block; flex-shrink: 0; }
.lg-box { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.lg-line { width: 16px; height: 3px; border-radius: 2px; background: var(--c); }
.lg-dash { width: 16px; height: 0; border-top: 2.5px dashed var(--c); }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--c); background: #fff; }
.recon { font-size: .78rem; font-weight: 800; color: var(--teal-700); background: var(--teal-100); padding: 3px 10px; border-radius: 999px; }

.fd-tip { position: fixed; z-index: 200; pointer-events: none; background: var(--navy-900); color: #e8eef6; font-size: .8rem; line-height: 1.45; padding: 9px 12px; border-radius: 9px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.45); max-width: 260px; font-feature-settings: 'tnum' 1; }
.fd-tip strong { color: #fff; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.fin-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 460px; }
.fin-table caption { text-align: left; font-weight: 800; font-size: .82rem; color: var(--ink); padding: 12px 14px 4px; }
.fin-table th, .fin-table td { padding: 7px 14px; text-align: right; border-bottom: 1px solid #f0f2f5; white-space: nowrap; }
.fin-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; border-bottom: 1.5px solid var(--line-2); }
.fin-table th[scope="row"] { text-align: left; font-weight: 600; color: var(--body); white-space: normal; }
.fin-table tr.strong th, .fin-table tr.strong td { font-weight: 800; color: var(--ink); background: #fafbfc; }
.fin-table tr.strong td.neg { color: var(--red); }
.fin-table tr.muted td, .fin-table tr.muted th { color: var(--muted); font-style: italic; }
.fin-table tr.grp th { text-align: left; background: var(--bg); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-700); font-weight: 800; }
.fin-table tbody tr:last-child th, .fin-table tbody tr:last-child td { border-bottom: 0; }
.fin-table-compact th, .fin-table-compact td { padding: 6px 12px; }

.insight { border-radius: 12px; padding: 16px 18px; background: linear-gradient(180deg, var(--teal-100), #f3faf9); border: 1px solid #cbe9e4; position: relative; }
.insight h4 { font-size: 1.02rem; color: var(--navy); margin-bottom: 6px; }
.insight p { font-size: .93rem; margin-bottom: 8px; }
.insight p:last-child { margin-bottom: 0; }
.insight-sub { color: var(--muted); font-size: .86rem !important; }
.insight-tag { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.insight-tag.good { background: var(--teal); color: #fff; }
.insight-tag.warn { background: var(--amber); color: #fff; }
.insight-tag.bad { background: var(--red); color: #fff; }
.levers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.levers li { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; background: rgba(255,255,255,.75); border-radius: 8px; padding: 7px 12px; }
.exec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.exec h5 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-700); margin-bottom: 6px; }
.exec p, .exec ul { font-size: .9rem; margin: 0; }
.exec ul { padding-left: 18px; }
.exec li { margin-bottom: 4px; }
.insight-callout { background: linear-gradient(180deg, #fff8ea, #fffdf7); border-color: #f0dfb8; }

.breakeven { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.breakeven h4 { font-size: .95rem; margin-bottom: 10px; }
.be-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.be-grid div { background: var(--bg); border-radius: 9px; padding: 10px 12px; }
.be-grid span { display: block; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.be-grid strong { font-size: 1.05rem; color: var(--navy); }
.be-grid strong.pos { color: var(--teal-700); } .be-grid strong.neg { color: var(--red); }
.fine { font-size: .76rem; color: var(--muted); margin: 8px 0 0; }

.tradeoffs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tr-col { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tr-col h5 { font-size: .9rem; color: var(--navy); margin-bottom: 8px; }
.tr-col ul { list-style: none; margin: 0; padding: 0; font-size: .86rem; display: grid; gap: 6px; }
.tr-col li { padding-left: 22px; position: relative; line-height: 1.4; }
.tr-col li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.tr-col li.plus::before { content: '+'; color: var(--teal); }
.tr-col li.minus::before { content: '−'; color: var(--red); }

.sens { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.sens h4 { font-size: .95rem; margin-bottom: 10px; }
.sens-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.sens-cell { text-align: center; background: var(--bg); border-radius: 9px; padding: 8px 4px; border: 1.5px solid transparent; }
.sens-cell span { display: block; font-size: .74rem; color: var(--muted); }
.sens-cell strong { font-size: 1rem; color: var(--navy); }
.sens-cell.on { border-color: var(--navy); background: #fff; }
.sens-cell.bad strong { color: var(--red); }

/* dashboard */
.dash-filters { display: grid; grid-template-columns: 1.6fr 1fr .8fr; gap: 14px; margin-bottom: 18px; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dash-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 8px; min-width: 0; }
.dash-kpi .kpi-value { font-size: 1.38rem; }
.kpi-var { font-size: .82rem; font-weight: 800; }
.kpi-var span { font-weight: 600; color: var(--muted); }
.dash-kpi .kpi-sub { min-height: 1.1em; }
.dash-kpi.is-na { background: var(--bg); }
.spark { width: 100%; height: 34px; margin-top: 6px; display: block; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 16px; }

/* process flow */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flow-lane { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--bg); }
.flow-lane.after { background: #f2faf8; border-color: #cbe9e4; }
.flow-lane-head { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.flow-lane.after .flow-lane-head { color: var(--teal-700); }
.flow-lane-head strong { color: var(--navy); text-transform: none; letter-spacing: 0; font-size: .9rem; }
.flow-steps { display: flex; flex-direction: column; gap: 0; }
.flow-node { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.flow-node.after { border-color: #bfe3dd; }
.fn-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.fn-name { font-weight: 800; font-size: .8rem; color: var(--ink); line-height: 1.2; }
.fn-hrs { font-weight: 800; font-size: .86rem; color: var(--navy); }
.flow-node.after .fn-hrs { color: var(--teal-700); }
.fn-bar { height: 5px; background: var(--line); border-radius: 4px; overflow: hidden; }
.fn-bar i { display: block; height: 100%; background: var(--navy-300); border-radius: 4px; transition: width .3s; }
.flow-node.after .fn-bar i { background: var(--teal); }
.fn-desc { font-size: .74rem; color: var(--body); line-height: 1.35; }
.fn-touch { font-size: .7rem; color: var(--muted); margin-top: auto; }
.flow-arrow { align-self: center; width: 0; height: 0; margin: 4px 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--navy-300); }
.flow-lane.after .flow-arrow { border-top-color: var(--teal-300); }
.fn-name { font-size: .84rem !important; }
.fn-desc { font-size: .78rem !important; }
.controls-list { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.controls-list h4 { font-size: .95rem; margin-bottom: 8px; }
.controls-list ul { margin: 0; padding-left: 18px; font-size: .88rem; display: grid; gap: 4px; }
.step-ctls { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.step-details { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 4px 12px; }
.step-details > summary { cursor: pointer; font-weight: 700; font-size: .86rem; color: var(--navy); min-height: 40px; display: flex; align-items: center; justify-content: space-between; list-style: none; }
.step-details > summary::-webkit-details-marker { display: none; }
.step-details > summary::after { content: '+'; color: var(--teal-700); font-weight: 800; font-size: 1.1rem; }
.step-details[open] > summary::after { content: '−'; }
.step-details[open] { padding-bottom: 12px; }
.step-ctl { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.step-ctl-name { font-size: .78rem; font-weight: 800; color: var(--teal-700); text-transform: uppercase; letter-spacing: .08em; }

.demo-notes { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; font-size: .86rem; color: var(--muted); }
.demo-notes summary { cursor: pointer; font-weight: 800; color: var(--navy); font-size: .88rem; min-height: 32px; display: flex; align-items: center; gap: 8px; list-style: none; }
.demo-notes summary::-webkit-details-marker { display: none; }
.demo-notes summary::before { content: '+'; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); font-weight: 800; }
.demo-notes[open] summary::before { content: '−'; }
.demo-notes ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.demo-error { color: var(--red); }

/* ---------- deliverables ---------- */
.deliverables { background: var(--paper); }
.del-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.del-grid li { padding: 26px 24px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; transition: background .2s; }
.del-grid li:hover { background: var(--bg); }
.del-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--navy); color: var(--teal-bright); margin-bottom: 16px; }
.del-ic svg { width: 22px; height: 22px; }
.del-grid h3 { font-size: 1.04rem; margin-bottom: 6px; }
.del-grid p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- approach ---------- */
.approach-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px 64px; }
.approach .section-head { margin-bottom: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-row: span 2; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); font-weight: 800; font-size: 1.05rem; }
.steps h3 { font-size: 1.08rem; margin-bottom: 4px; }
.steps p { margin: 0; font-size: .95rem; color: var(--muted); }
.ai-note { align-self: end; background: var(--navy); color: #c9d4e3; border-radius: var(--radius); padding: 24px 26px; position: relative; overflow: hidden; }
.ai-note::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(0,149,136,.25); }
.ai-title { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: #fff; margin-bottom: 8px; }
.ai-note p { position: relative; z-index: 1; }
.ai-note p:last-child { margin: 0; font-size: .95rem; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy); color: #c9d4e3; font-size: .84rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; }
.topbar-contact { display: flex; gap: 22px; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 7px; color: #dbe3ee; text-decoration: none; font-weight: 600; padding: 6px 0; }
.topbar-contact a:hover { color: var(--teal-bright); }
.topbar-contact svg { width: 15px; height: 15px; color: var(--teal-bright); }
.topbar .lang-switch { background: transparent; border-color: rgba(255,255,255,.2); }
.topbar .lang-switch a { color: #c9d4e3; min-height: 28px; }
.topbar .lang-switch a:hover { background: rgba(255,255,255,.08); color: #fff; }
.topbar .lang-switch a[aria-current="true"] { background: #fff; color: var(--navy); }
@media (max-width: 960px) { .topbar { display: none; } }

/* ---------- language switch ---------- */
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); }
.lang-switch a { display: inline-grid; place-items: center; min-width: 36px; min-height: 32px; padding: 0 8px; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--navy); background: var(--bg); }
.lang-switch a[aria-current="true"] { background: var(--navy); color: #fff; }
.header-tools { display: none; }
@media (max-width: 960px) { .header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; } }

/* ---------- header extras ---------- */
.nav-mail { font-size: .86rem; font-weight: 700; color: var(--teal-700); text-decoration: none; padding: 8px 0; }
.nav-mail:hover { color: var(--navy); }
@media (max-width: 1240px) and (min-width: 961px) { .nav-mail { display: none; } }

/* ---------- questions ---------- */
.q-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.q-head .q-title { margin: 0; }
.q-sub { margin: 0; font-size: .9rem; color: #9fb0c6; }
.q-list a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; }
.q-list a::after { grid-row: 1 / span 2; grid-column: 2; }
.q-text { grid-column: 1; }
.q-tag { grid-column: 1; font-family: var(--sans); font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-bright); margin-top: 3px; }

/* ---------- pricing ---------- */
.pricing { background: var(--paper); }
.discovery { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--navy); color: #c9d4e3; border-radius: 18px; padding: 26px 30px; margin-bottom: 18px; position: relative; overflow: hidden; }
.discovery::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 26px solid rgba(0,149,136,.22); pointer-events: none; }
.discovery-copy { max-width: 640px; position: relative; z-index: 1; }
.discovery h3 { color: #fff; font-size: 1.45rem; margin-bottom: 6px; }
.discovery p { margin: 0; }
.discovery .btn { position: relative; z-index: 1; }
.disc-label { font-size: .76rem !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 8px !important; }
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.tier { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 24px; display: flex; flex-direction: column; }
.tier-hl { background: var(--paper); border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow-lg); }
.tier-kicker { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 8px; }
.tier h3 { font-size: 1.25rem; margin-bottom: 10px; }
.tier-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tier-price small { font-size: .85rem; color: var(--muted); font-weight: 700; }
.tier-price strong { font-size: 2.3rem; color: var(--navy); letter-spacing: -.03em; font-weight: 800; line-height: 1; }
.tier-price span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.tier > p { font-size: .95rem; }
.tier-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 7px; font-size: .92rem; }
.tier-list li { padding-left: 24px; position: relative; line-height: 1.4; }
.tier-list li::before { content: ''; position: absolute; left: 2px; top: .3em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.tier-note { font-size: .84rem !important; color: var(--muted); margin-top: auto; padding-top: 4px; }
.pricing-foot { text-align: center; margin: 26px 0 0; font-size: .92rem; color: var(--muted); }

/* ---------- faq ---------- */
.faq { padding-top: 0; background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 64px; align-items: start; }
.faq .section-head { margin-bottom: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 0; font-weight: 700; color: var(--ink); font-size: 1.03rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); font-weight: 800; font-size: 1.1rem; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { color: var(--body); margin: 0 0 18px; max-width: 46em; }

/* ---------- about promise ---------- */
.promise { list-style: none; padding: 0; margin: 6px 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.promise li { background: var(--paper); border-radius: 12px; padding: 12px 14px; font-size: .9rem; line-height: 1.45; border: 1px solid var(--line); }
.promise strong { display: block; color: var(--navy); }

/* ---------- contact options ---------- */
.contact-options { display: grid; gap: 10px; margin-top: 26px; }
.c-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: #fff; text-decoration: none; transition: background .2s, border-color .2s; min-height: 64px; }
a.c-opt:hover, .c-opt-main { border-color: var(--teal-bright); }
a.c-opt:hover { background: rgba(255,255,255,.08); color: #fff; }
.c-opt-main { background: rgba(0,149,136,.22); }
.c-opt strong { display: block; color: #fff; font-size: 1rem; }
.c-opt small { display: block; color: #9fb0c6; font-size: .84rem; }
.c-opt a { text-decoration: none; }
.c-ic { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--teal-bright); }
.c-ic svg { width: 21px; height: 21px; }
.c-opt .copy-btn { margin-left: auto; }

/* ---------- mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0,32,71,.4); }
  .ab-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .95rem; }
  .ab-mail { border: 1.5px solid var(--line-2); color: var(--navy); }
  .ab-book { background: var(--teal); color: #fff; flex: 1.4; }
  .site-footer { padding-bottom: 96px; }
}

/* ---------- start / pricing (legacy) ---------- */
.start { padding-top: 0; }
.start-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.start-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; display: flex; flex-direction: column; }
.start-card-hl { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow); }
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.price strong { font-size: 2.1rem; color: var(--navy); letter-spacing: -.03em; font-weight: 800; }
.price span { color: var(--muted); font-weight: 600; font-size: .92rem; }
.start-card p { font-size: .95rem; }
.start-foot { margin-top: auto; margin-bottom: 0; font-size: .84rem !important; color: var(--teal-700); font-weight: 700; }
.draft-flag { position: absolute; top: -12px; right: 18px; background: var(--amber-100); color: #7a5200; border: 1px solid #ecd39c; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.no-draft .draft-flag { display: none; }

/* ---------- about ---------- */
.about { background: var(--stone); }
.about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo img { border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; box-shadow: var(--shadow-lg); }
.about-photo::before { content: ''; position: absolute; left: -14px; top: 24px; bottom: -14px; width: 60%; border-radius: 18px; background: var(--teal); opacity: .14; z-index: 0; }
.about-photo picture { position: relative; z-index: 1; display: block; }
.about-photo figcaption { position: relative; z-index: 2; margin: -28px 18px 0; background: var(--paper); border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .9rem; color: var(--muted); display: inline-block; }
.about-photo figcaption strong { color: var(--navy); }
.about-copy p { font-size: 1.04rem; }
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 26px 0 14px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.creds div { padding: 14px 12px 14px 0; }
.creds dt { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.creds dd { margin: 2px 0 0; font-weight: 800; color: var(--navy); font-size: .98rem; line-height: 1.3; }
.career-note { font-size: .82rem !important; color: var(--muted); }

/* ---------- contact ---------- */
.contact { background: var(--navy); color: #c9d4e3; position: relative; overflow: hidden; }
.contact::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 0% 100%, rgba(0,149,136,.22), transparent 60%); }
.contact .wrap { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact h2 { color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin-bottom: 6px; }
.contact-sub { font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: var(--teal-bright); margin-bottom: 22px; }
.contact-copy > p { font-size: 1.05rem; }
.contact-links { list-style: none; padding: 0; margin: 26px 0 28px; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-links li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.cl-label { width: 90px; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: #8fa0b8; }
.contact-links a { color: #fff; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; padding: 9px 0; }
.contact-links a:hover { color: var(--teal-bright); }
.copy-btn { margin-left: auto; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 999px; padding: 6px 14px; min-height: 36px; font-size: .8rem; font-weight: 700; cursor: pointer; }
.copy-btn:hover { background: rgba(255,255,255,.16); }
.enquiry { background: var(--paper); color: var(--body); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-lg); }
.enquiry h3 { font-size: 1.3rem; margin-bottom: 6px; }
.form-note { font-size: .86rem; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 9px 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea { border: 1.5px solid var(--line-2); border-radius: 10px; padding: 11px 12px; background: #fff; min-height: 46px; font-size: .97rem; width: 100%; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(0,149,136,.18); }
.form-status { font-size: .88rem; margin: 12px 0 0; }
.form-status:empty { display: none; }
.form-status.is-info { background: var(--teal-100); color: var(--navy); padding: 10px 12px; border-radius: 8px; }
.form-status.is-error { background: var(--red-100); color: var(--red); padding: 10px 12px; border-radius: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #8fa0b8; padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { width: 260px; margin-bottom: 12px; }
.footer-brand p { margin: 0; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 4px; }
.site-footer a { color: #c9d4e3; text-decoration: none; padding: 6px 0; }
.site-footer a:hover { color: var(--teal-bright); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; font-size: .82rem; }
.footer-base p { margin: 0; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */
.legal-page { padding: 64px 0 96px; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); }
.legal-page h2 { font-size: 1.3rem; margin-top: 2em; }
.owner-action { background: var(--amber-100); border: 1px solid #ecd39c; border-radius: 10px; padding: 12px 16px; color: #5c3f00; font-size: .92rem; }
.draft-banner { background: var(--red-100); border: 1px solid #f1c6bd; color: #7d2414; border-radius: 10px; padding: 14px 18px; font-weight: 600; margin-bottom: 28px; }
.simple-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.simple-header .header-inner { height: 72px; }

/* container-responsive output */
@container (max-width: 700px) {
  .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exec { grid-template-columns: 1fr; gap: 12px; }
}
@container (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .be-grid { grid-template-columns: 1fr; }
  .sens-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tradeoffs { grid-template-columns: 1fr; }
  .dash-kpis, .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}
@container (max-width: 820px) {
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .ex-shell { grid-template-columns: minmax(0, 1fr); }
  .ex-nav { min-width: 0; }
  .ex-nav { position: static; }
  .ex-tabs { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .ex-tabs [role="tab"] { flex: 0 0 auto; scroll-snap-align: start; border-color: rgba(255,255,255,.15); white-space: nowrap; }
  .kpis-4, .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-controls { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; column-gap: 20px; }
  .demo-controls > .presets, .demo-controls > .ctl-seg, .demo-controls > .ctl-intro, .demo-controls > .btn-reset, .demo-controls > .step-details, .demo-controls > .ctl-pair { grid-column: 1 / -1; }
  .ctl-pair { flex-direction: row; } .ctl-pair > * { flex: 1; }
  .step-ctls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-filters { grid-template-columns: 1fr 1fr; } .dash-filters > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  body { font-size: 16.5px; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 20px 24px 32px; gap: 18px; transform: translateY(-10px); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility .25s; overflow-y: auto; border-top: 1px solid var(--line); }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 16px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .nav-cta { min-height: 52px; }
  body.nav-open { overflow: hidden; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hero-card { margin-top: 24px !important; }
  .hero-card { margin-top: 0; }
  .hero { padding-top: 40px; }
  .q-list { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-feature { grid-column: 1 / -1; grid-row: auto; }
  .section { padding: 80px 0; }
  .section-head-split { grid-template-columns: 1fr; gap: 8px; }
  .del-grid { grid-template-columns: 1fr 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .steps { grid-row: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .tier-grid { grid-template-columns: 1fr; max-width: 560px; }
  .faq-grid { grid-template-columns: 1fr; }
  .discovery { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; }
  .exec { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  :root { --header-h: 66px; }
  .brand img { width: 200px; }
  .eyebrow { font-size: .7rem; letter-spacing: .1em; gap: 8px; }
  .eyebrow::before { width: 18px; }
  :root { --h1: clamp(2.3rem, 11vw, 3rem); }
  .hero-lead { font-size: 1.04rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-card { padding: 18px 14px 14px; }
  .q-list { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-feature-body { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  h2 { font-size: clamp(1.6rem, 7vw, 1.9rem); }
  .ex-select { display: block; width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: #fff; color: var(--navy); font-weight: 700; padding: 10px 14px; margin-bottom: 4px; }
  .ex-tabs { display: none; }
  .ex-panel { padding: 18px 14px; border-radius: 14px; }
  .demo-controls { grid-template-columns: 1fr; padding: 14px; }
  .ctl-pair { flex-direction: column; }
  .step-ctls { grid-template-columns: 1fr; }
  .kpis-3, .kpis-4, .dash-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpis-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kpi { padding: 10px 11px; }
  .kpi-value { font-size: 1.18rem; }
  .chart-card { padding: 10px 8px 4px; }
  .be-grid { grid-template-columns: 1fr; }
  .tradeoffs { grid-template-columns: 1fr; }
  .sens-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-filters { grid-template-columns: 1fr; padding: 10px; }
  .seg-btn { font-size: .8rem; padding: 7px 8px; }
  .ex-pager { justify-content: center; }
  .ex-pager .btn { flex: 1 1 45%; }
  .ex-pager .btn-primary { order: 3; flex-basis: 100%; }
  .del-grid { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr 1fr; }
  .promise { grid-template-columns: 1fr; }
  .q-list a { min-height: 64px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .enquiry { padding: 20px 16px; }
  .cl-label { width: 100%; }
  .copy-btn { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .site-header, .examples, .contact form, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
