/* Dantive — site styles
   Palette taken from the logo: ink navy + register blue, cyan as a hint.
   One expressive element: the highlighter (analyst marking up a register extract). */

@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/public-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/public-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #0e1e45;
  --ink-2: #3c4a68;
  --ink-3: #66728c;
  --blue: #1f5bff;
  --blue-dark: #1846cc;
  --cyan: #12b4ee;
  --paper: #f6f8fb;
  --sheet: #ffffff;
  --rule: #d8dee8;
  --rule-soft: #e8ecf2;
  --mark: #ffe58a;
  --mark-edge: #f6d25a;

  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 2rem;
  --step-4: 2.625rem;
  --step-5: 3.375rem;

  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1160px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5.2vw, var(--step-5)); letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, var(--step-4)); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 36em; line-height: 1.55; }
.measure { max-width: 40em; }
.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--sheet); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-quiet { color: var(--ink-2); padding: 8px 10px; font-weight: 500; }
.btn-quiet:hover { color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 0.95rem; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mark); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { max-width: 44em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { max-width: 22ch; }
.on-sheet { background: var(--sheet); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); background: var(--sheet); border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: 0.95fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { margin-top: 14px; font-size: var(--step--1); color: var(--ink-3); max-width: 34em; }

/* ---------- Register extract (the signature element) ---------- */
.extract { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 1px 0 var(--rule-soft), 0 18px 40px -24px rgba(14, 30, 69, 0.28); }
.extract-head { padding: 16px 20px 12px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.extract-head strong { font-size: 1rem; }
.extract-head span { font-size: var(--step--1); color: var(--ink-3); }
.extract table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.extract th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 0.8rem; padding: 10px 16px 8px; border-bottom: 1px solid var(--rule); }
.extract td { padding: 11px 16px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.extract .col-brand { min-width: 11em; }
.extract td:first-child { color: var(--ink-2); white-space: nowrap; letter-spacing: 0.02em; }
.extract td.when { white-space: nowrap; text-align: right; }
.extract th.when { text-align: right; }
.extract tr.rival td { position: relative; }
.extract tr.rival .mark {
  background-image: linear-gradient(100deg, transparent 0.3em, var(--mark) 0.3em, var(--mark) calc(100% - 0.2em), transparent calc(100% - 0.2em));
  background-repeat: no-repeat; background-size: 100% 78%; background-position: 0 60%;
  padding: 0 0.2em; margin: 0 -0.2em; border-radius: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.extract-foot { padding: 14px 20px 16px; font-weight: 600; font-size: 0.98rem; }
.extract-caption { margin-top: 10px; font-size: var(--step--1); color: var(--ink-3); }

@media (prefers-reduced-motion: no-preference) {
  .js .extract tr.rival .mark { background-size: 0% 78%; transition: background-size 0.7s cubic-bezier(.3,.7,.2,1); }
  .js .extract.is-marked tr.rival .mark { background-size: 100% 78%; }
  .js .extract.is-marked tr.rival:nth-of-type(2) .mark { transition-delay: 0.35s; }
  .js .extract.is-marked tr.rival:nth-of-type(4) .mark { transition-delay: 0.75s; }
  .js .extract.is-marked tr.rival:nth-of-type(5) .mark { transition-delay: 1.15s; }
}

/* inline highlighter used sparingly in copy */
.hl { background: linear-gradient(100deg, transparent 0.15em, var(--mark) 0.15em, var(--mark) calc(100% - 0.1em), transparent calc(100% - 0.1em)) no-repeat 0 65% / 100% 70%; padding: 0 0.12em; }

/* ---------- Coverage line ---------- */
.coverage { padding: 22px 0; background: var(--paper); border-bottom: 1px solid var(--rule); }
.coverage p { margin: 0; color: var(--ink-2); max-width: 60em; }
.coverage strong { color: var(--ink); }

/* ---------- Two ways ---------- */
.question { font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 600; letter-spacing: -0.01em; max-width: 30em; margin-bottom: 28px; line-height: 1.3; }
.two-ways { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
.two-ways > div { padding: clamp(22px, 3vw, 36px); }
.two-ways > div + div { border-left: 1px solid var(--rule); }
.two-ways h3 { margin-bottom: 12px; }
.two-ways .usual { color: var(--ink-2); background: var(--paper); border-radius: var(--radius) 0 0 var(--radius); }
.two-ways .time { display: block; margin-top: 16px; font-weight: 700; font-size: var(--step-1); }
.two-ways .usual .time { color: var(--ink-3); }
.two-ways .with .time { color: var(--blue); }

/* ---------- Definition lists (features) ---------- */
.defs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 4vw, 56px); margin: 0; }
.defs > div { padding: 20px 0; border-top: 1px solid var(--rule); }
.defs dt { font-weight: 700; font-size: var(--step-1); letter-spacing: -0.01em; margin-bottom: 6px; }
.defs dd { margin: 0; color: var(--ink-2); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split-wide { grid-template-columns: 1.15fr 1fr; }

.fact { border-left: 4px solid var(--blue); padding: 6px 0 6px 20px; margin: 28px 0; max-width: 34em; }
.fact p { font-size: var(--step-1); line-height: 1.45; margin: 0; }
.fact strong { font-weight: 800; }
.note { color: var(--ink-3); font-size: var(--step--1); max-width: 40em; }

.questions { list-style: none; padding: 0; margin: 0; }
.questions li { padding: 14px 0; border-top: 1px solid var(--rule); font-weight: 500; }
.questions li:last-child { border-bottom: 1px solid var(--rule); }
.questions li::before { content: "\201C"; color: var(--blue); font-weight: 800; margin-right: 2px; }
.questions li::after { content: "\201D"; color: var(--blue); font-weight: 800; }

.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { padding: 8px 0 8px 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.85em; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

.frame { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--ink-3); text-align: center; padding: 24px; font-size: var(--step--1); }
.frame img { border-radius: var(--radius); }

/* ---------- Pulse ---------- */
.pulse p.big { font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; max-width: 32em; }
.pulse .n { font-weight: 800; color: var(--blue); }
.stamp { display: inline-block; border: 1.5px solid var(--ink-3); color: var(--ink-3); border-radius: 3px; padding: 3px 10px; font-size: var(--step--1); font-weight: 600; transform: rotate(-1.5deg); margin-bottom: 20px; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.founder.no-photo { grid-template-columns: 1fr; }
.founder img { border-radius: var(--radius); width: 200px; height: 200px; object-fit: cover; }
.founder blockquote { margin: 0; font-size: var(--step-1); line-height: 1.55; max-width: 34em; }
.founder cite { display: block; margin-top: 16px; font-style: normal; font-weight: 700; font-size: 1rem; }
.founder cite span { font-weight: 400; color: var(--ink-3); }

/* ---------- Closing band ---------- */
.band { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.band h2 { color: #fff; max-width: 20ch; }
.band p { color: rgba(255,255,255,0.78); max-width: 34em; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
.plan { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--rule); }
.plan h3 { font-size: var(--step-2); margin-bottom: 4px; }
.plan .for { color: var(--ink-3); min-height: 4.9em; margin-bottom: 0; }
@media (max-width: 960px) { .plan .for { min-height: 0; } }
.plan .price { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 0; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan .billing { color: var(--ink-3); font-size: var(--step--1); margin-bottom: 20px; }
.plan ul { padding-left: 1.1em; margin: 0 0 24px; color: var(--ink-2); }
.plan ul li { margin-bottom: 6px; }
.plan .btn { margin-top: auto; }
.plan.recommended { box-shadow: inset 0 4px 0 var(--blue); }

/* ---------- Prose pages ---------- */
.page-head { background: var(--sheet); border-bottom: 1px solid var(--rule); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 20ch; }
.prose { max-width: 42em; }
.prose h2 { font-size: var(--step-3); margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1em 0 1.6em; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--rule); padding: 10px 12px 10px 0; vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink-3); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 34em; }
.form label { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 6px; }
.form .hint { font-weight: 400; color: var(--ink-3); font-size: var(--step--1); }
.form input, .form textarea, .form select { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid rgba(18,180,238,.35); border-color: var(--blue); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 5px; }
.form-status { font-weight: 600; }
.hp { position: absolute; left: -5000px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sheet); border-top: 1px solid var(--rule); padding: 48px 0 32px; font-size: var(--step--1); color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid img { height: 26px; width: auto; margin-bottom: 12px; }
.footer-grid h2 { font-size: 0.95rem; letter-spacing: 0; margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.disclaimer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-3); max-width: 70em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .split, .split-wide { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--rule); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--sheet); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; gap: 8px; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
  .nav-actions { padding-top: 8px; }
}
@media (max-width: 720px) {
  .two-ways { grid-template-columns: 1fr; }
  .two-ways > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .two-ways .usual { border-radius: var(--radius) var(--radius) 0 0; }
  .defs { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder img { width: 140px; height: 140px; }
  .form .row2 { grid-template-columns: 1fr; }
  .extract th, .extract td { padding-left: 12px; padding-right: 12px; }
  .extract .col-brand { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===================== v2 components ===================== */

/* Coverage strip with figures (restored from the old site, corrected) */
.facts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); }
.facts > div { padding: 18px 16px; border-left: 1px solid var(--rule); }
.facts > div:first-child { border-left: 0; }
.facts b { display: block; font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.facts span { display: block; font-size: var(--step--1); color: var(--ink-3); margin-top: 4px; line-height: 1.35; }

/* Problem list (the old "challenge" cards, as a quiet grid) */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 48px); }
.pains > div { padding: 22px 0; border-top: 1px solid var(--rule); }
.pains h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pains p { color: var(--ink-2); margin: 0; }

/* Tabs (answer gallery, roles, question library) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { font: inherit; font-weight: 600; font-size: 0.95rem; padding: 9px 16px; border-radius: var(--radius); border: 1.5px solid var(--rule); background: var(--sheet); color: var(--ink-2); cursor: pointer; }
.tab:hover { border-color: var(--ink-3); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.panel[hidden] { display: none; }

/* Conversation (answer gallery) */
.convo { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.convo .meta { font-size: var(--step--1); color: var(--ink-3); margin-bottom: 18px; }
.q { background: var(--ink); color: #fff; border-radius: 10px 10px 2px 10px; padding: 12px 16px; margin: 0 0 14px auto; max-width: 34em; width: fit-content; font-weight: 500; }
.a { border-left: 3px solid var(--blue); padding: 2px 0 2px 18px; margin: 0 0 22px; max-width: 46em; }
.a p { margin: 0 0 0.7em; }
.a ul { margin: 0 0 0.7em; padding-left: 1.1em; }
.a table { border-collapse: collapse; font-size: 0.92rem; margin: 6px 0 12px; width: 100%; max-width: 40em; }
.a th, .a td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--rule-soft); }
.a th { color: var(--ink-3); font-weight: 600; font-size: 0.85rem; }
.a td.num, .a th.num { text-align: right; }
.a .src { font-size: var(--step--1); color: var(--ink-3); }
.followup { font-size: var(--step--1); color: var(--ink-3); margin: -8px 0 12px; }

/* Lens cards with a real example figure */
.lenses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 48px); }
.lenses > div { padding: 22px 0; border-top: 1px solid var(--rule); }
.lenses h3 { font-size: 1.15rem; margin-bottom: 2px; }
.lenses .count { color: var(--blue); font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.lenses p { color: var(--ink-2); margin: 0 0 8px; }
.lenses .eg { font-size: var(--step--1); color: var(--ink-3); }

/* Alert types */
.alerts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.alerts > div { background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 18px; }
.alerts h3 { font-size: 1.05rem; margin-bottom: 6px; }
.alerts p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rule-soft); }
.compare thead th { background: var(--paper); font-size: 0.85rem; color: var(--ink-3); font-weight: 600; }
.compare thead th.us { color: var(--ink); background: #eaf0ff; }
.compare td.us { background: #f5f8ff; color: var(--ink); }
.compare th[scope="row"] { font-weight: 600; color: var(--ink); width: 18%; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Simple bar list: chart and table in one (single series, one hue, values labelled) */
.bars { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.bars th, .bars td { padding: 6px 0; vertical-align: middle; }
.bars th { text-align: left; font-weight: 500; color: var(--ink-2); width: 30%; padding-right: 12px; }
.bars td.val { text-align: right; width: 5.5em; font-weight: 700; color: var(--ink); padding-left: 12px; }
.bars .bar { height: 14px; background: var(--blue); border-radius: 0 4px 4px 0; min-width: 2px; }
.bars .bar.part { background: repeating-linear-gradient(135deg, var(--blue) 0 6px, #7aa0ff 6px 9px); }
.chart-note { font-size: var(--step--1); color: var(--ink-3); margin-top: 8px; }

/* Big numbers row (market page) */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.kpis > div { padding: 18px 16px 18px 0; }
.kpis b { display: block; font-size: var(--step-3); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.kpis span { color: var(--ink-2); font-size: 0.95rem; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { font-weight: 600; font-size: 1.08rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 800; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: 44em; }

/* Glossary */
.glossary dt { font-weight: 700; font-size: 1.1rem; margin-top: 26px; scroll-margin-top: 90px; }
.glossary dd { margin: 6px 0 0; color: var(--ink-2); max-width: 44em; }
.az { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.95rem; }

/* Role cards */
.roles .value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 48px); }
.roles .value-grid > div { padding: 18px 0; border-top: 1px solid var(--rule); }
.roles h4 { font-size: 1.08rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.roles .value-grid p { color: var(--ink-2); margin: 0 0 8px; }
.roles .ex { font-size: var(--step--1); color: var(--ink-3); font-style: italic; }
.roles blockquote { margin: 0 0 18px; font-size: var(--step-1); color: var(--ink); max-width: 36em; }

.segments-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.segments-list a { display: block; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); }
.segments-list a:hover { border-color: var(--blue); }
.segments-list strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.segments-list span { color: var(--ink-3); font-size: 0.92rem; }

@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts > div:nth-child(4) { border-left: 0; }
  .facts > div:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .alerts, .segments-list { grid-template-columns: 1fr 1fr; }
  .pains, .lenses { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { border-left: 0 !important; border-top: 1px solid var(--rule); }
  .facts > div:nth-child(-n+2) { border-top: 0; }
  .pains, .lenses, .alerts, .segments-list, .roles .value-grid { grid-template-columns: 1fr; }
  .bars th { width: 38%; }
}
