/* Marketlytics offer page
   Palette: white + dark blue. Ink/CTA #0a2c4d family on near-white; navy bands; light-blue tints only.
   Shape system: buttons/chips pill, panels 16px, inputs 10px
   Z scale: nav 40, launcher 50, assistant panel 60 */

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #fbfcfd;
  --bg-tint: #eef3f8;
  --ink: #0a2c4d;
  --ink-hover: #113e6b;
  --ink-soft: #42607d;
  --ink-faint: #b6c9da;
  --navy: #0a2c4d;
  --navy-deep: #071e35;
  --navy-ink: #eef4fa;
  --navy-soft: #a9c0d6;
  --blue-tint: #cfe0ef;
  --line: #dbe4ec;
  --line-navy: #1d4670;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r-panel: 16px;
  --r-input: 10px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { display: block; }

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */

h1, h2, h3 { margin: 0; text-wrap: balance; }

h1 {
  font-size: clamp(2.4rem, 5.6vw, 3.9rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p { margin: 0; }

.lede {
  margin-top: 1.1rem;
  max-width: 62ch;
  font-size: 1.125rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--ink-hover); }
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: rgba(10, 44, 77, 0.06); }
}

.btn-inverse {
  background: #ffffff;
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn-inverse:hover { background: var(--blue-tint); }
}

.btn-lg { padding: 1rem 2.1rem; font-size: 1.08rem; }

:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .chat-chips button:focus-visible, .assistant-launcher:focus-visible { border-radius: 999px; }
.case :focus-visible, .footer :focus-visible, .assistant-panel-head :focus-visible { outline-color: #ffffff; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.975rem;
  transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); }
}

.btn-nav { padding: 0.65rem 1.25rem; font-size: 0.95rem; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.15rem; gap: 0.45rem; }
  .brand-mark { width: 28px; height: 28px; }
  .btn-nav { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
  .nav-inner { height: 62px; gap: 0.75rem; }
}

/* the real logo mark costs the nav ~40px, which 320px screens do not have */
@media (max-width: 360px) {
  .brand { font-size: 1rem; gap: 0.4rem; }
  .brand-mark { width: 26px; height: 26px; }
  .btn-nav { padding: 0.5rem 0.7rem; font-size: 0.78rem; }
  .nav-inner { gap: 0.5rem; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(3.5rem, 9vh, 6.5rem) 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-grid h1 { font-size: clamp(2.2rem, 4.1vw, 3.2rem); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-grid h1 { font-size: clamp(2.4rem, 5.6vw, 3.9rem); }
}

.hero h1 { max-width: 21ch; }

.hero-sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* ---------- Flow diagram ---------- */

.flow {
  margin: clamp(3.5rem, 8vh, 5.5rem) 0 0;
  padding-bottom: clamp(3rem, 7vh, 5rem);
}

.flow-track {
  position: relative;
  height: 10px;
  margin-inline: 4px;
}

.flow-line {
  position: absolute;
  inset: 4px 0 auto 0;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}

.flow-node {
  position: absolute;
  left: var(--x);
  top: 0;
  transform: translateX(-50%);
}
.flow-node i {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink);
}
.flow-node-end i { background: var(--ink); border-color: var(--ink); }
.flow-node em {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
  text-align: center;
}
.flow-node em small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.flow-node:nth-child(2) em { left: 0; transform: none; text-align: left; }
.flow-node-end em { left: auto; right: 0; transform: none; text-align: right; }

.dot {
  position: absolute;
  top: 1px;
  left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
}

html.js .dot { animation: flow-run 7.8s linear infinite; animation-delay: var(--d); }
html.js .dot-b { background: var(--ink-faint); animation-name: flow-drop; }

/* --w (track width in px) is set from JS on .flow-track */
@keyframes flow-run {
  0%   { transform: translateX(0); opacity: 0; }
  4%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { transform: translateX(var(--w, 600px)); opacity: 0; }
}

@keyframes flow-drop {
  0%   { transform: translate(0, 0); opacity: 0; }
  4%   { opacity: 1; }
  33%  { transform: translate(calc(var(--w, 600px) * 0.34), 0); opacity: 1; }
  44%  { transform: translate(calc(var(--w, 600px) * 0.375), 28px); opacity: 0; }
  100% { transform: translate(calc(var(--w, 600px) * 0.375), 28px); opacity: 0; }
}

/* static dots when no JS: the diagram still reads via nodes and labels */
html:not(.js) .dot-a[style*="--d:0s"] { opacity: 1; left: 50%; }
html:not(.js) .dot-a[style*="--d:2.6s"] { opacity: 1; left: 84%; }
html:not(.js) .dot-b[style*="--d:1.3s"] { opacity: 0.7; left: 34%; top: 14px; }

@media (prefers-reduced-motion: reduce) {
  html.js .dot { animation: none; opacity: 0; }
  html.js .dot-a[style*="--d:0s"] { opacity: 1; left: 50%; }
  html.js .dot-a[style*="--d:2.6s"] { opacity: 1; left: 84%; }
  html.js .dot-b[style*="--d:1.3s"] { opacity: 0.7; left: 34%; top: 14px; }
}

@media (max-width: 640px) {
  .flow-node em { white-space: normal; width: max-content; max-width: 76px; font-size: 0.75rem; }
  .flow-node em small { display: none; }
  .flow { padding-bottom: 4.5rem; }
}

@media (max-width: 420px) {
  .flow { margin-top: 3rem; }
  .flow-track { margin-top: 2.6rem; }
  .flow-node-end em { top: auto; bottom: 22px; }
}

/* ---------- Section rhythm ---------- */

section { padding: clamp(4rem, 10vh, 6.5rem) 0; scroll-margin-top: 70px; }
.hero { padding-bottom: 0; }

/* ---------- Leaks ---------- */

.leaks { border-top: 1px solid var(--line); }

.leak-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: 3rem;
}

.leak-num {
  display: block;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-faint);
}

.leak h3 { margin-top: 0.9rem; font-size: 1.4rem; }
.leak p { margin-top: 0.8rem; color: var(--ink-soft); max-width: 44ch; }

.leak-bridge {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 56ch;
}

@media (max-width: 700px) {
  .leak-split { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Stat band ---------- */

.stat {
  border-block: 1px solid var(--line);
  background: var(--bg-tint);
}

.stat-line {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 30ch;
  text-wrap: balance;
}
.stat-line strong {
  font-weight: 900;
  background: linear-gradient(transparent 64%, var(--blue-tint) 64%);
}

.stat-beat {
  margin-top: 1.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stat-cite {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- System ---------- */

.system-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: 3.5rem;
}
.system-copy { padding-top: 0.35rem; }
.system-row-flip .system-copy { order: 2; }
.system-row-flip .system-visual { order: 1; }

.system-copy p { margin-top: 0.8rem; color: var(--ink-soft); max-width: 48ch; }

.guardrails {
  margin-top: 3.5rem;
  padding: 1.8rem 2rem;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.guardrails h3 { font-size: 1.1rem; }

@media (max-width: 760px) {
  .system-row { grid-template-columns: 1fr; gap: 1.75rem; align-items: start; }
  .system-row-flip .system-copy { order: 1; }
  .system-row-flip .system-visual { order: 2; }
}

/* ---------- Case study (navy band) ---------- */

.case {
  background: var(--navy);
  color: var(--navy-ink);
}
.case .lede { color: var(--navy-soft); }

.case-note {
  margin-top: 2.2rem;
  color: var(--navy-soft);
  max-width: 62ch;
}

.case-names {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: #ffffff;
}
.case-names span {
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-soft);
}
.case-names i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line-navy);
}

.case-cta {
  margin-top: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.case-cta span {
  color: var(--navy-soft);
  font-size: 0.98rem;
  max-width: 34ch;
}

/* ---------- Why / is-isn't ---------- */

.isnt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: 3rem;
}

.isnt-col h3 {
  padding-bottom: 0.9rem;
  border-bottom: 2.5px solid var(--ink);
  font-size: 1.1rem;
}
.isnt-col-not h3 { border-bottom-color: var(--ink-faint); color: var(--ink-soft); }

.isnt-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.isnt-col li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.isnt-col-not li { color: var(--ink-soft); }

@media (max-width: 700px) {
  .isnt { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Watch: LinkedIn embeds + profile badge ---------- */

.watch {
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
}

.li-embeds {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.4rem);
  align-items: start;
}

.li-embed {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: 0 18px 44px -30px rgba(10, 44, 77, 0.35);
}
/* the card shows the poster and swaps in a native player on activate,
   so one click plays the video in place, with no LinkedIn chrome */
.li-embed video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--navy-deep);
}

.li-facade {
  position: relative;
  display: block;
  background: var(--navy-deep);
  text-decoration: none;
}
.li-facade img { width: 100%; height: auto; }
.li-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(7, 30, 53, 0.82);
  box-shadow: 0 8px 24px -8px rgba(7, 30, 53, 0.7);
  display: grid;
  place-items: center;
  color: #ffffff;
  transition: transform 220ms var(--ease-out), background-color 200ms ease;
}
.li-play svg { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .li-facade:hover .li-play { transform: translate(-50%, -50%) scale(1.09); background: var(--ink); }
}
.li-embed figcaption {
  padding: 0.85rem 1.05rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.li-embed figcaption span {
  margin-left: 0.4rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.li-postlink {
  margin-left: 0.55rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--ink-faint);
  text-underline-offset: 3px;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .li-postlink:hover { color: var(--ink); text-decoration-color: var(--ink-soft); }
}

/* hero: the frame is the whole card, so it reads as the video, not as a post */
.li-embed-hero .li-facade img { aspect-ratio: 16 / 9; object-fit: cover; }
.li-embed-hero .li-play { width: 76px; height: 76px; }
.li-embed-hero .li-play svg { width: 30px; height: 30px; }
.li-embed-hero video { aspect-ratio: 16 / 9; }

.li-profile {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 1.3rem 1.3rem 1rem;
  box-shadow: 0 18px 44px -30px rgba(10, 44, 77, 0.3);
}
.li-profile-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.li-profile .badge-base { margin-top: 1rem; display: block; }
.li-profile iframe { border: 0; max-width: 100%; }
/* the plain anchor is the no-JS fallback; once LinkedIn injects the badge it goes */
.li-profile .badge-base:has(iframe) .LI-simple-link { display: none; }
.li-profile .LI-simple-link {
  display: inline-block;
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: #3b82c4;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .li-embeds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .li-embeds { grid-template-columns: 1fr; margin-top: 2rem; }
  /* a full-width 9:16 poster is ~620px of scroll per card, so crop on phones;
     the video itself keeps its full ratio once playing */
  .li-facade img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
  .li-embed-hero .li-play { width: 62px; height: 62px; }
  .li-embed-hero .li-play svg { width: 24px; height: 24px; }
  .li-play { width: 54px; height: 54px; }
  .li-play svg { width: 21px; height: 21px; }
}

/* ---------- Agent / chat ---------- */

.agent { border-top: 1px solid var(--line); }

.chat-home { margin-top: 2.75rem; max-width: 720px; }

.chat {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: 0 18px 44px -28px rgba(10, 44, 77, 0.28);
}

.chat-placeholder {
  padding: 1.6rem 1.8rem;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  color: var(--ink-soft);
  font-weight: 500;
}

.chat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding: 1.05rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.chat-head strong { font-weight: 700; font-size: 1rem; }
.chat-head span { font-size: 0.82rem; color: var(--ink-soft); }

.chat-log {
  padding: 1.4rem;
  min-height: 240px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Without JS the assistant cannot run: hide its shell, show the notice */
html:not(.js) .chat-log,
html:not(.js) .chat-chips,
html:not(.js) .chat-input { display: none; }
html:not(.js) .assistant-float,
html:not(.js) .assistant-panel { display: none; }
.chat-noscript {
  padding: 1.4rem;
  color: var(--ink-soft);
}
.chat-noscript a { color: var(--ink); font-weight: 700; }

.msg {
  max-width: 85%;
  padding: 0.8rem 1.05rem;
  border-radius: 12px;
  font-size: 0.98rem;
  line-height: 1.55;
}
html.js .msg {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
html.js .msg.is-in { opacity: 1; transform: translateY(0); }

.msg p + p { margin-top: 0.6rem; }

.msg-bot {
  align-self: flex-start;
  background: var(--bg-tint);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.msg-user {
  align-self: flex-end;
  background: var(--ink);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.typing {
  display: inline-flex;
  gap: 5px;
  padding: 0.95rem 1.05rem;
}
.typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-soft);
  opacity: 0.4;
}
html.js .typing i { animation: typing-bounce 1s ease-in-out infinite; }
html.js .typing i:nth-child(2) { animation-delay: 0.15s; }
html.js .typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.4rem 1.1rem;
}
.chat-chips button {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out);
}
.chat-chips button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .chat-chips button:hover { border-color: var(--ink); }
}

.chat-input {
  display: flex;
  gap: 0.6rem;
  padding: 1.05rem 1.4rem;
  border-top: 1px solid var(--line);
}
.chat-input input {
  flex: 1;
  min-width: 0;
  font: inherit;
  /* 16px minimum: anything smaller makes iOS Safari zoom the page on focus */
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  padding: 0.7rem 0.95rem;
}
.chat-input input::placeholder { color: var(--ink-soft); opacity: 1; }
.chat-input input:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 1px; }
.chat-input .btn { padding: 0.7rem 1.35rem; }

@media (max-width: 640px) {
  .chat-log { max-height: 340px; }
  .msg { max-width: 92%; }
  /* same reason as the panel: wrapped chips turn the card into a wall */
  .chat-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 1.4rem;
    scrollbar-width: none;
  }
  .chat-chips::-webkit-scrollbar { display: none; }
  .chat-chips button { flex: 0 0 auto; scroll-snap-align: start; }
}

/* ---------- Floating assistant ---------- */

.assistant-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.assistant-float.is-hidden { display: none; }

.assistant-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(7, 30, 53, 0.5);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.assistant-launcher:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .assistant-launcher:hover { background: var(--ink-hover); }
}
html.js .assistant-launcher {
  animation: launcher-in 500ms var(--ease-out) 1s both;
}
@keyframes launcher-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.assistant-nudge {
  position: relative;
  max-width: 250px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 2.1rem 0.9rem 1.05rem;
  box-shadow: 0 14px 34px -16px rgba(7, 30, 53, 0.35);
}
.assistant-nudge p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
}
html.js .assistant-nudge:not([hidden]) {
  animation: launcher-in 400ms var(--ease-out) both;
}
.nudge-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.25rem;
}

.assistant-panel {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 60;
  width: min(400px, calc(100vw - 2rem));
  max-height: min(640px, calc(100dvh - 5rem));
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(7, 30, 53, 0.5);
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.assistant-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* display:flex above beats the [hidden] UA rule, which left an invisible
   panel sitting on top of the launcher and swallowing every tap. */
.assistant-panel[hidden] { display: none; }

.assistant-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  background: var(--navy);
  color: var(--navy-ink);
}
.assistant-panel-head strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
}
.assistant-panel-head span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--navy-soft);
}
.assistant-close {
  border: 0;
  background: none;
  color: var(--navy-ink);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.3rem;
}

.assistant-panel-slot {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.assistant-panel-slot .chat {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.assistant-panel-slot .chat-head { display: none; }
.assistant-panel-slot .chat-log {
  flex: 1;
  min-height: 120px;
  max-height: none;
}
/* one swipeable row, so the suggestions cannot squeeze the conversation
   off a short screen the way seven wrapped chips did */
.assistant-panel-slot .chat-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 0.85rem;
}
.assistant-panel-slot .chat-chips::-webkit-scrollbar { display: none; }
.assistant-panel-slot .chat-chips button {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

@media (max-width: 480px) {
  .assistant-panel {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    max-height: calc(100dvh - 4.5rem);
  }
  .assistant-launcher { font-size: 0.9rem; padding: 0.8rem 1.15rem; }
}

/* ---------- Booking ---------- */

.book { border-top: 1px solid var(--line); }

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.dg-call { margin: 2rem 0 0; }

.expect {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2.6rem;
  counter-reset: step;
  position: relative;
}
.expect::before {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 0.9rem;
  bottom: 1.5rem;
  width: 2px;
  background: var(--line);
}
.expect li {
  position: relative;
  padding: 0.65rem 0 1.35rem;
  counter-increment: step;
}
.expect li:last-child { padding-bottom: 0; }
.expect li::before {
  content: counter(step);
  position: absolute;
  left: -2.6rem;
  top: 0.55rem;
  width: 1.6rem; height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--ink);
}
.expect li:last-child::before { background: var(--ink); color: #ffffff; }
.expect b {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.expect em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.book-phone { margin-top: 1.6rem; color: var(--ink-soft); }
.book-phone a { color: var(--ink); font-weight: 700; text-decoration-color: #3b82c4; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.book-slot {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 18px 44px -28px rgba(10, 44, 77, 0.28);
}

.book-fallback {
  padding: 2.5rem;
  text-align: center;
  max-width: 34ch;
}
.book-fallback-title { font-size: 1.3rem; font-weight: 900; letter-spacing: -0.02em; }
.book-fallback p + p { margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.98rem; }
.book-fallback .btn { margin-top: 1.6rem; }

.book-slot .calendly-inline-widget { width: 100%; min-height: 640px; }

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

/* ---------- FAQ ---------- */

.faq { padding-top: 0; padding-bottom: clamp(2.5rem, 6vh, 4rem); }

.faq-list { margin-top: 2.25rem; max-width: 760px; }

.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child { border-top: 1px solid var(--line); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 700;
  font-size: 1.08rem;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: transform 200ms var(--ease-out);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-list details p {
  padding: 0 0 1.3rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Final CTA ---------- */

.close {
  border-top: 1px solid var(--line);
  text-align: center;
}
.close-inner { max-width: 760px; }
.close h2 { margin-inline: auto; max-width: 22ch; }

.close-ctas {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.close-ctas p { color: var(--ink-soft); }
.close-ctas p a { color: var(--ink); font-weight: 700; text-decoration-color: #3b82c4; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Where to start ---------- */

.offers { border-top: 1px solid var(--line); }

.offer-doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-top: 3rem;
}

.offer-door {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: #ffffff;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.offer-when {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.offer-door h3 {
  margin-top: 0.45rem;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.015em;
}
.offer-door h3 span { font-weight: 400; font-size: 1.02rem; color: var(--ink-soft); }
.offer-what { margin-top: 0.55rem; color: var(--ink-soft); max-width: 44ch; }
.offer-door .dg { margin-top: 1.5rem; }
.offer-steps .dg-step { font-size: 0.95rem; }

.dg-converge { margin-top: 2.5rem; text-align: center; }
.dg-converge-rail {
  display: block;
  width: 2px;
  height: 2.25rem;
  background: var(--line);
  margin: 0 auto 0.9rem;
}
.dg-converge-label { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
.dg-converge .dg-chip { max-width: min(100%, 46ch); text-align: left; }

@media (max-width: 860px) {
  .offer-doors { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-deep);
  color: var(--navy-ink);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-logo { width: auto; height: 92px; }
.footer-tag { margin-top: 0.9rem; color: var(--navy-soft); font-size: 0.95rem; max-width: 34ch; }

.footer-contact {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.footer-contact a {
  color: var(--navy-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
@media (hover: hover) and (pointer: fine) {
  .footer-contact a:hover { text-decoration: underline; text-decoration-color: var(--navy-soft); text-underline-offset: 3px; }
}
.footer-linkedin { display: inline-flex; border-radius: 4px; }

.footer-fine {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-navy);
}
.footer-fine p { font-size: 0.85rem; color: var(--navy-soft); max-width: 72ch; }

/* production credit: right side of the legal row, clear of the floating launcher */
.footer-credit { margin-top: 1.5rem; text-align: right; }

/* clear the floating launcher so it never sits over the fine print or the credit */
@media (max-width: 620px) {
  .footer { padding-bottom: 5.5rem; }
}
@media (min-width: 621px) {
  .footer-credit { margin-bottom: 3.25rem; }
}

/* ---------- Scroll reveal ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.js .msg { opacity: 1; transform: none; transition: none; }
  html.js .typing i { animation: none; }
  html.js .assistant-launcher { animation: none; }
  html.js .assistant-nudge:not([hidden]) { animation: none; }
  .assistant-panel { transition: none; opacity: 1; transform: none; }
  .btn, .chat-chips button { transition: none; }
  .btn:active, .chat-chips button:active { transform: none; }
}

/* ==========================================================
   DIAGRAM SYSTEM
   Every diagram on the page is composed from these primitives:
   2px rail, 10px node, pill chip, tinted panel, one accent.
   Charts render FILLED by default and are collapsed only under
   html.js, so the no-JS path and the reduced-motion path (which
   marks everything visible at once) both show the whole picture.
   ========================================================== */

:root {
  --dg-accent: #3b82c4;
  --dg-accent-navy: #7fb3e0;
  --dg-accent-soft: rgba(59, 130, 196, 0.14);
  --dg-rail: 2px;
  --dg-node: 10px;
  --dg-leak-h: clamp(180px, 21vw, 232px);
}

.dg { margin: 0; }

.dg figcaption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.dg-panel {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}

.dg-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.dg-chip.is-muted { color: var(--ink-soft); }

.dg svg[viewBox],
.dg-guards svg,
.dg-outcomes svg {
  fill: none;
  stroke: var(--dg-accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Leak 1: the enquiry mix ---------- */

.dg-mix { margin-top: 1.75rem; }

.dg-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  justify-items: center;
  align-content: center;
  gap: clamp(0.5rem, 1.5vw, 0.7rem);
  min-height: var(--dg-leak-h);
  padding: clamp(1.1rem, 3vw, 1.5rem);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.dg-grid i {
  width: 100%;
  max-width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink-faint);
}
.dg-grid i.is-good { background: var(--dg-accent); }

html.js .dg-mix .dg-grid i { opacity: 0; transform: scale(0.3); }
html.js .dg-mix.is-visible .dg-grid i {
  opacity: 1;
  transform: none;
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
  transition-delay: calc(var(--n, 0) * 12ms);
}
html.js .dg-mix.is-visible .dg-grid i.is-good {
  animation: dg-pulse 3.4s ease-in-out infinite;
  animation-delay: calc(1s + var(--n, 0) * 40ms);
}

@keyframes dg-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 196, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(59, 130, 196, 0.2); }
}

.dg-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: 0.9rem;
}
.dg-key {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.dg-key::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.dg-key.is-good { color: var(--ink); font-weight: 700; }
.dg-key.is-good::before { background: var(--dg-accent); }

/* ---------- Leak 2: who replies first ---------- */

.dg-race {
  margin-top: 1.75rem;
  display: grid;
  align-content: center;
  gap: 1.5rem;
  min-height: var(--dg-leak-h);
  padding: clamp(1.1rem, 3vw, 1.5rem);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}

.dg-lane { display: grid; gap: 0.6rem; }

.dg-lane-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.5rem;
}
.dg-lane-top b { font-size: 0.95rem; font-weight: 700; }
.dg-lane-top em { font-style: normal; font-size: 0.85rem; color: var(--ink-soft); }

.dg-rail {
  position: relative;
  display: block;
  height: var(--dg-node);
}
.dg-rail::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(50% - (var(--dg-rail) / 2));
  height: var(--dg-rail);
  background: var(--line);
  border-radius: 2px;
}

.dg-runner {
  position: absolute;
  top: 0;
  left: 100%;
  width: var(--dg-node); height: var(--dg-node);
  margin-left: calc(var(--dg-node) / -2);
  border-radius: 50%;
  background: var(--dg-accent);
}
.is-slow .dg-runner { background: var(--ink-faint); }

html.js .dg-race.is-visible .is-fast .dg-runner { animation: dg-run-fast 5s var(--ease-out) infinite; }
html.js .dg-race.is-visible .is-slow .dg-runner { animation: dg-run-slow 5s linear infinite; }

@keyframes dg-run-fast {
  0%   { left: 0; opacity: 0; }
  5%   { opacity: 1; }
  26%  { left: 100%; opacity: 1; }
  100% { left: 100%; opacity: 1; }
}
@keyframes dg-run-slow {
  0%   { left: 0; opacity: 0; }
  5%   { opacity: 1; }
  88%  { left: 100%; opacity: 1; }
  96%  { left: 100%; opacity: 0.25; }
  100% { left: 100%; opacity: 0.25; }
}

.dg-lane-end {
  justify-self: end;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}
.is-fast .dg-lane-end { background: var(--dg-accent); color: #ffffff; }
.is-slow .dg-lane-end {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

/* ---------- Speed: relative odds ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}

.dg-odds { display: grid; gap: 1.1rem; }
.dg-odds-row { display: grid; gap: 0.5rem; }
.dg-odds-label { font-size: 0.92rem; color: var(--ink-soft); }
.dg-odds-label b { font-weight: 700; color: var(--ink); }

.dg-odds-units { display: flex; flex-wrap: wrap; gap: 4px; }
.dg-odds-units i {
  width: 14px; height: 24px;
  border-radius: 3px;
  background: var(--dg-accent);
}
.is-low .dg-odds-units i { background: var(--ink-faint); }

html.js .dg-odds .dg-odds-units i {
  opacity: 0;
  transform: scaleY(0.15);
  transform-origin: bottom;
}
html.js .dg-odds.is-visible .dg-odds-units i {
  opacity: 1;
  transform: none;
  transition: opacity 340ms var(--ease-out), transform 340ms var(--ease-out);
  transition-delay: calc(var(--n, 0) * 28ms);
}

/* ---------- Front end: practice area to channel ---------- */

.dg-map-list {
  margin: 0;
  padding: 0.25rem clamp(1rem, 3vw, 1.4rem);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.dg-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 0.5rem;
  padding: 1.05rem 0;
}
.dg-map-row + .dg-map-row { border-top: 1px solid var(--line); }
.dg-map-row dt { font-weight: 700; font-size: 0.98rem; }
.dg-map-row dd {
  position: relative;
  margin: 0;
  padding-left: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dg-wire {
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: var(--dg-rail);
  background: var(--line);
  transform: translateY(-50%);
}
.dg-wire::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid var(--ink-faint);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.dg-wire i {
  position: absolute;
  left: calc(2rem - 7px);
  top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--dg-accent);
}

html.js .dg-map.is-visible .dg-wire i { animation: dg-wire-run 3s var(--ease-out) infinite; }
html.js .dg-map.is-visible .dg-map-row:nth-child(2) .dg-wire i { animation-delay: 0.3s; }
html.js .dg-map.is-visible .dg-map-row:nth-child(3) .dg-wire i { animation-delay: 0.6s; }

@keyframes dg-wire-run {
  0%   { left: 0; opacity: 0; }
  12%  { opacity: 1; }
  60%  { left: calc(2rem - 7px); opacity: 1; }
  100% { left: calc(2rem - 7px); opacity: 1; }
}

/* ---------- Back end: the intake clock ---------- */

.dg-clock {
  display: grid;
  gap: 1.3rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}

.dg-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.6rem;
  display: grid;
  gap: 0.9rem;
}
.dg-steps::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7rem;
  bottom: 0.7rem;
  width: var(--dg-rail);
  background: var(--line);
}
.dg-steps li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.dg-steps li::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 0.4rem;
  width: var(--dg-node); height: var(--dg-node);
  border-radius: 50%;
  background: var(--bg-tint);
  border: 2px solid var(--ink);
}
.dg-steps li.is-end::before { background: var(--dg-accent); border-color: var(--dg-accent); }

.dg-time {
  flex: 0 0 auto;
  min-width: 3.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dg-accent);
  font-variant-numeric: tabular-nums;
}
.dg-step { font-weight: 700; font-size: 0.98rem; }

.dg-versus {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.dg-versus span { font-weight: 700; color: var(--ink); }

.dg-stack { display: flex; flex-wrap: wrap; gap: 0.45rem; }

html.js .dg-clock .dg-steps li { opacity: 0; transform: translateY(6px); }
html.js .dg-clock.is-visible .dg-steps li {
  opacity: 1;
  transform: none;
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
html.js .dg-clock.is-visible .dg-steps li:nth-child(2) { transition-delay: 0.12s; }
html.js .dg-clock.is-visible .dg-steps li:nth-child(3) { transition-delay: 0.24s; }
html.js .dg-clock.is-visible .dg-steps li:nth-child(4) { transition-delay: 0.36s; }
html.js .dg-clock.is-visible .dg-steps li.is-end::before {
  animation: dg-pulse 3s ease-in-out 0.9s infinite;
}

/* ---------- Guardrails ---------- */

.dg-guards {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 0.75rem;
}
.dg-guards li {
  padding: 0.95rem 1.05rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.dg-guards svg {
  display: block;
  width: 22px; height: 22px;
  margin-bottom: 0.55rem;
}
.dg-guards b { display: block; font-size: 0.95rem; font-weight: 700; }
.dg-guards em {
  display: block;
  margin-top: 0.1rem;
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Case study charts (navy band) ---------- */

.dg-case {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.25rem, 3.5vw, 2.5rem);
}

.dg-case-panel {
  padding: clamp(1.25rem, 3vw, 1.6rem);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-navy);
  border-radius: var(--r-panel);
}
.dg-case-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy-soft);
}

.dg-bar-row { margin-top: 1.4rem; display: grid; gap: 0.45rem; }
.dg-bar-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--navy-soft);
}
.dg-bar-label b {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.is-accent .dg-bar-label b { color: var(--dg-accent-navy); }

.dg-bar {
  position: relative;
  display: block;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.dg-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 100%);
  border-radius: 999px;
  background: #ffffff;
  transform-origin: left;
}
.is-accent .dg-bar::before { background: var(--dg-accent-navy); }

.dg-cols {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  align-items: end;
}
.dg-col { display: grid; gap: 0.45rem; }
.dg-col-bar {
  position: relative;
  display: block;
  height: clamp(96px, 20vw, 150px);
  border-bottom: 1px solid var(--line-navy);
}
.dg-col-bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--h, 100%);
  border-radius: 8px;
  background: #ffffff;
  transform-origin: bottom;
}
.dg-col.is-accent .dg-col-bar::before { background: var(--dg-accent-navy); }
.dg-col b {
  font-size: clamp(1.3rem, 3.2vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.dg-col em {
  font-style: normal;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--navy-soft);
}

html.js .dg-case .dg-bar::before { transform: scaleX(0); }
html.js .dg-case.is-visible .dg-bar::before {
  transform: scaleX(1);
  transition: transform 950ms var(--ease-out) 140ms;
}
html.js .dg-case .dg-col-bar::before { transform: scaleY(0); }
html.js .dg-case.is-visible .dg-col-bar::before {
  transform: scaleY(1);
  transition: transform 950ms var(--ease-out) 260ms;
}

/* ---------- Why: the overlap ---------- */

.dg-venn {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}

.dg-venn-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.dg-venn-c {
  width: clamp(150px, 24vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.dg-venn-a {
  background: var(--dg-accent-soft);
  border: 1.5px solid var(--dg-accent);
  margin-right: -46px;
}
.dg-venn-b {
  background: rgba(10, 44, 77, 0.06);
  border: 1.5px solid var(--ink);
  margin-left: -46px;
}
.dg-venn-c em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  max-width: 8ch;
}
.dg-venn-a em { transform: translateX(-32px); }
.dg-venn-b em { transform: translateX(32px); }
.dg-venn-mid {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

html.js .dg-venn.is-visible .dg-venn-a { animation: dg-breathe 7s ease-in-out infinite; }
html.js .dg-venn.is-visible .dg-venn-b { animation: dg-breathe 7s ease-in-out 3.5s infinite; }

@keyframes dg-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}

.dg-outcomes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.dg-outcomes li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.dg-outcomes svg {
  grid-row: span 2;
  width: 22px; height: 22px;
}
.dg-outcomes b { font-size: 0.98rem; font-weight: 700; }
.dg-outcomes em {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Is / is not: tick and cross marks ---------- */

.dg-compare { margin-top: 3rem; }
.dg-compare .isnt { margin-top: 0; }

.isnt-col li {
  position: relative;
  padding-left: 1.95rem;
}
.isnt-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  background: var(--dg-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3 4.9 8.6 9.4 3.7' fill='none' stroke='%233b82c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.78rem no-repeat;
}
.isnt-col-not li::before {
  background: rgba(10, 44, 77, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.6 3.6 8.4 8.4M8.4 3.6 3.6 8.4' fill='none' stroke='%2342607d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 0.72rem no-repeat;
}

/* ---------- Diagram responsive ---------- */

@media (max-width: 900px) {
  .dg-venn { grid-template-columns: 1fr; justify-items: center; }
  .dg-outcomes { width: 100%; }
}

@media (max-width: 820px) {
  .stat-grid { grid-template-columns: 1fr; }
  .dg-case { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .dg-map-row { grid-template-columns: 1fr; gap: 0.55rem; }
  .dg-map-row dd { padding-left: 1.5rem; }
  .dg-wire { width: 1rem; }
  .dg-wire i { left: calc(1rem - 7px); }
  @keyframes dg-wire-run {
    0%   { left: 0; opacity: 0; }
    12%  { opacity: 1; }
    60%  { left: calc(1rem - 7px); opacity: 1; }
    100% { left: calc(1rem - 7px); opacity: 1; }
  }
  .dg-odds-units i { width: 12px; height: 20px; }
  .dg-steps li { flex-wrap: wrap; gap: 0.15rem 0.7rem; }
}

@media (max-width: 400px) {
  .dg-grid { gap: 0.45rem; }
  .dg-odds-units i { width: 11px; height: 18px; }
  .dg-venn-c { width: 132px; }
  .dg-venn-a { margin-right: -38px; }
  .dg-venn-b { margin-left: -38px; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .dg-mix .dg-grid i,
  html.js .dg-clock .dg-steps li,
  html.js .dg-odds .dg-odds-units i {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.js .dg-case .dg-bar::before,
  html.js .dg-case .dg-col-bar::before {
    transform: none;
    transition: none;
  }
  html.js .dg .dg-runner,
  html.js .dg .dg-wire i,
  html.js .dg-venn .dg-venn-c,
  html.js .dg-mix .dg-grid i.is-good,
  html.js .dg-clock .dg-steps li.is-end::before {
    animation: none;
  }
}
