/* Kinviva website. Direction: an annotated transcript on warm paper.
   Navy ink, one blue marker, a serif voice for headlines, a typewriter voice for labels.
   Fonts are bundled locally (SIL OFL 1.1): Fraunces, Instrument Sans, IBM Plex Mono. The site makes no third-party requests. */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #F4F0E6; --paper-2: #EAE4D4; --paper-3: #DFD8C4;
  --navy: #0B1020; --navy-2: #131B33; --navy-3: #1C2748;
  --ink: #0B1020; --ink-2: #2A3350; --ink-3: #565F78;
  --rule: var(--rule); --rule-strong: var(--rule-strong);
  --blue: #2563EB; --blue-ink: #1D4ED8; --blue-mark: rgba(37, 99, 235, .26);
  --violet: #7C3AED; --violet-ink: #5B21B6; --violet-soft: #E9E1FB;
  --ok: #166534; --ok-soft: #D9ECD8; --warn: #7C4A03; --warn-soft: #F3E3B8; --rose: #9D174D;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1200px; --r: 3px;
  --hard: 5px 5px 0 var(--navy);
  /* legacy names used by older markup */
  --font: var(--sans); --accent: var(--blue-ink); --accent-2: var(--navy); --accent-soft: #E3EAF8; --accent-line: #B9C8EC; --accent-light: #93C5FD;
  --bg: var(--paper); --line: var(--rule); --line-2: rgba(11, 16, 32, .3);
  --blue-soft: #DEE8FB; --teal: #0F766E; --teal-soft: #D2EAE4; --rose-soft: #F3DCE5; --radius: 3px; --radius-lg: 4px;
  --shadow: none; --shadow-lg: var(--hard);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink-2); background: var(--paper); -webkit-font-smoothing: antialiased; position: relative; }
body::before { /* paper grain */ content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4  0 0 0 0 .35  0 0 0 0 .25  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, header, footer { position: relative; z-index: 1; }
img, video { max-width: 100%; display: block; }
a { color: var(--blue-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--maxw), 100% - 48px); margin: 0 auto; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.06; font-variation-settings: "opsz" 120; }
h1 { font-size: clamp(44px, 7vw, 92px); }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; font-variation-settings: "opsz" 36; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--ink-2); line-height: 1.6; max-width: 62ch; }
.muted { color: var(--ink-3); }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: "§"; color: var(--blue-ink); font-size: 15px; letter-spacing: 0; }
.mark { background: linear-gradient(transparent 58%, var(--blue-mark) 58%, var(--blue-mark) 92%, transparent 92%); padding: 0 .06em; }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule-strong); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }
.brand em { font-style: italic; font-weight: 400; color: var(--blue-ink); }
.nav nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
.nav nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 560; font-size: 15px; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav nav a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--blue); }
.nav nav a[aria-current="page"]:not(.btn) { color: var(--ink); border-bottom-color: var(--edge); }
.nav nav .btn { margin-left: 12px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1.5px solid var(--edge); background: transparent; border-radius: var(--r); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--panel); }

/* Buttons: square, inked, with a hard shadow that closes on press */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; min-height: 46px; border-radius: var(--r); font: 600 16px var(--sans); text-decoration: none; border: 1.5px solid var(--edge); background: transparent; color: var(--ink); cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, background .14s ease; }
.btn:hover { background: var(--paper-2); color: var(--ink); }
.btn-primary { background: var(--panel); color: #fff; box-shadow: 4px 4px 0 var(--blue); }
.btn-primary:hover { background: var(--panel); color: #fff; transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--blue); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--blue); }
.btn-ghost { background: transparent; border-color: var(--edge); color: var(--ink); }
.btn-small { padding: 9px 16px; font-size: 15px; min-height: 44px; }
.btn-big { padding: 16px 28px; font-size: 17px; min-height: 54px; }

/* Hero */
.hero { padding: 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: end; padding: 56px 0 48px; }
.hero h1 { font-size: clamp(54px, 8.2vw, 116px); line-height: .96; letter-spacing: -0.035em; font-weight: 450; }
.hero h1 .mark { background-size: 100% 100%; background-repeat: no-repeat; }
.hero .lead { margin-top: 28px; }
.hero .cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.hero .fine { margin-top: 22px; font-size: 15px; color: var(--ink-3); max-width: 58ch; }
.hero .fine a { color: var(--ink); }
.transcript { background: var(--surface); border: 1.5px solid var(--edge); box-shadow: var(--hard); padding: 24px 22px 18px; font-size: 16px; position: relative; margin: 0; }
.transcript::before { content: "EXAMPLE"; position: absolute; top: -11px; left: 18px; background: var(--paper); padding: 0 8px; font: 500 11.5px var(--mono); letter-spacing: .14em; color: var(--ink-3); }
.tr-row { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--rule); }
.tr-who { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.tr-note { margin-top: 8px; padding: 8px 12px; background: var(--blue-mark); border-left: 3px solid var(--blue-ink); font-size: 15px; color: var(--ink); }
.tr-note b { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.transcript figcaption { margin-top: 12px; padding-top: 12px; border-top: 1.5px solid var(--edge); font: 400 12px var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.stage { margin: 0 auto; padding-bottom: 80px; }
.plate { margin: 0; background: var(--panel); border: 1.5px solid var(--edge); box-shadow: var(--hard); padding: 12px 12px 0; }
.plate-bar { display: flex; align-items: center; gap: 8px; padding: 2px 6px 11px; font: 400 12px var(--mono); color: #AEB8D4; letter-spacing: .04em; }
.plate-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #AEB8D4; }
.plate-bar span { margin-left: 8px; }
.plate img { width: 100%; height: auto; }
.shot { margin: 0; background: var(--panel); border: 1.5px solid var(--edge); box-shadow: var(--hard); padding: 10px; }
.shot img { width: 100%; height: auto; }
.shot figcaption { margin-top: 10px; padding: 0 4px 2px; font: 400 12px var(--mono); color: #AEB8D4; letter-spacing: .04em; text-align: left; }
.js .hero-anim { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-anim.d1 { animation-delay: .05s; } .hero-anim.d2 { animation-delay: .18s; } .hero-anim.d3 { animation-delay: .3s; } .hero-anim.d4 { animation-delay: .46s; }
.js .hero h1 .mark { background-size: 0 100%; animation: draw 1s .7s cubic-bezier(.3, .6, .2, 1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { background-size: 100% 100%; } }

/* Sections */
section { padding: 88px 0; }
.sec-head { max-width: 760px; margin-bottom: 56px; display: grid; gap: 16px; }
.sec-head.center { margin-inline: 0; text-align: left; justify-items: start; }
.alt { background: var(--paper-2); border-block: 1px solid var(--rule-strong); }
.dark { background: var(--panel); color: #D5DBEC; }
.dark h2, .dark h3 { color: #fff; }
.dark .lead, .dark p { color: #C8D0E6; }
.dark .eyebrow { color: #AEB8D4; } .dark .eyebrow::before { color: var(--blue); }
.dark .card { border-top-color: #fff; }
.dark .card p { color: #C8D0E6; }
.dark .ico { border-color: #fff; color: #fff; }
.dark .btn-ghost { border-color: #fff; color: #fff; } .dark .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Facts strip (kept for inner pages) */
.facts { padding: 0; background: var(--paper); border-bottom: 1px solid var(--rule-strong); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 24px; border-left: 1px solid var(--rule); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink); }
.fact span { color: var(--ink-3); font-size: 15px; display: block; line-height: 1.5; margin-top: 4px; }

/* Cards: ruled index entries, not floating boxes */
.grid { display: grid; gap: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: transparent; border: 0; border-top: 2px solid var(--edge); border-radius: 0; padding: 26px 32px 32px 0; box-shadow: none; display: grid; gap: 10px; align-content: start; }
.card p { color: var(--ink-2); font-size: 16px; }
a.card { text-decoration: none; color: inherit; }
a.card:hover h3 { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.card .more { color: var(--blue-ink); font: 500 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--edge); border-radius: var(--r); margin-bottom: 8px; background: transparent; color: var(--ink); }
.ico svg { width: 22px; height: 22px; }
.t-purple, .t-blue, .t-green, .t-amber, .t-rose, .t-teal { background: transparent; color: var(--ink); }
.t-blue { box-shadow: 3px 3px 0 var(--blue); } .t-purple { box-shadow: 3px 3px 0 var(--violet); } .t-green { box-shadow: 3px 3px 0 #4C9A63; } .t-amber { box-shadow: 3px 3px 0 #D9A441; } .t-rose { box-shadow: 3px 3px 0 #D4668F; } .t-teal { box-shadow: 3px 3px 0 #3FA39B; }
.dark .ico { color: #fff; }
.badge { display: inline-block; font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border: 1px solid currentColor; border-radius: 2px; width: fit-content; background: transparent; }
.b-now { color: var(--ok); } .b-next { color: var(--violet-ink); } .b-exp { color: var(--warn); }

/* Spotlight */
.spot { display: grid; grid-template-columns: .9fr 1.3fr; gap: 72px; align-items: center; }
.spot.flip { grid-template-columns: 1.3fr .9fr; }
.spot.flip .spot-text { order: 2; }
.spot-text { display: grid; gap: 18px; align-content: center; }
.spot-text ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.spot-text li { position: relative; padding-left: 28px; color: var(--ink-2); }
.spot-text li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--blue-ink); font-family: var(--mono); }
.spot-text li b { color: var(--ink); }
.spot + .spot { margin-top: 120px; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.step { border-top: 2px solid var(--edge); padding: 22px 32px 10px 0; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--blue-ink); margin-bottom: 12px; font-weight: 400; }
.step p { color: var(--ink-2); margin-top: 8px; }

/* Evidence legend */
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ev { padding: 24px; border: 2px solid; background: var(--surface); display: grid; gap: 8px; border-radius: var(--r); }
.ev b { font-family: var(--serif); font-size: 22px; font-weight: 500; } .ev p { color: var(--ink-2); font-size: 16px; }
.ev.v { border-color: #166534; } .ev.m { border-color: var(--blue-ink); } .ev.i { border-color: #8A5A00; border-style: dashed; }

/* Tabs */
.tabs { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1.5px solid var(--edge); }
.tabs button { font: 500 14px var(--mono); letter-spacing: .04em; padding: 10px 18px; min-height: 44px; border: 1.5px solid transparent; border-bottom: 0; background: transparent; color: var(--ink-2); cursor: pointer; margin-bottom: -1.5px; }
.tabs button[aria-selected="true"] { background: var(--paper); border-color: var(--edge); color: var(--ink); }
.tabs.on-dark { border-color: rgba(255, 255, 255, .5); } .tabs.on-dark button { color: #D5DBEC; } .tabs.on-dark button[aria-selected="true"] { background: var(--panel); color: #fff; border-color: rgba(255, 255, 255, .5); }
.panel[hidden] { display: none; }
.no-js .tabs { display: none; }
.no-js .panel[hidden] { display: block; }

/* Tables, code, lists */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1.5px solid var(--edge); }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 16px; }
.table th { background: var(--paper-2); font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.table tr:last-child td { border-bottom: 0; }
code { font-family: var(--mono); font-size: .86em; background: var(--paper-2); border: 1px solid var(--rule); padding: 2px 6px; border-radius: 2px; word-break: break-word; color: var(--ink); }
.ok-t { color: var(--ok); font-weight: 650; } .no-t { color: #9B1C1C; font-weight: 650; }
.faq { display: grid; gap: 0; max-width: 860px; margin-left: 0; border-top: 1.5px solid var(--edge); }
.faq details { border-bottom: 1px solid var(--rule-strong); padding: 6px 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-weight: 500; font-size: 22px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px var(--mono); color: var(--blue-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 66ch; }

/* Page header (inner pages) */
.page-head { background: var(--paper-2); border-bottom: 1px solid var(--rule-strong); padding: 64px 0 56px; position: relative; }
.page-head .wrap { display: grid; gap: 18px; }
.page-head h1 { font-size: clamp(40px, 6vw, 76px); max-width: 18ch; }
.page-head .lead { color: var(--ink-2); max-width: 64ch; }
.toc { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.toc a { color: var(--ink); text-decoration: none; font: 500 13px var(--mono); letter-spacing: .04em; padding: 9px 14px; min-height: 44px; display: inline-flex; align-items: center; border: 1.5px solid var(--edge); border-radius: var(--r); }
.toc a:hover { background: var(--panel); color: #fff; }

/* Notice */
.notice { display: grid; gap: 4px; background: var(--surface); border: 1.5px solid var(--edge); border-left: 6px solid var(--blue); border-radius: 0; padding: 20px 24px; }
.notice > b:first-child { color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 600; }
.notice p { color: var(--ink-2); font-size: 16px; }

/* Download */
.os-card { display: grid; gap: 14px; }
.os-title { font-size: 30px; line-height: 1.1; }
.steps-ol { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 10px; color: var(--ink-2); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; background: var(--panel); color: #fff; padding: 18px 40px 18px 22px; border-radius: var(--r); box-shadow: 5px 5px 0 var(--blue); display: grid; gap: 4px; max-width: 360px; }
.toast[hidden] { display: none; }
.toast button { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }

/* Video (kept for compatibility) */
.player { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
.player video { width: 100%; background: #000; border: 1.5px solid var(--edge); }
.chapters { display: grid; gap: 8px; }
.chapter { text-align: left; font: 600 15px var(--sans); padding: 12px 16px; border-radius: var(--r); border: 1.5px solid var(--edge); background: transparent; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.chapter.is-on { background: var(--panel); color: #fff; }

/* CTA + footer */
.cta-band { background: var(--panel); color: #fff; padding: 72px 56px; display: grid; gap: 20px; justify-items: start; box-shadow: 8px 8px 0 var(--blue); border-radius: var(--r); }
.cta-band h2 { color: #fff; max-width: 16ch; font-size: clamp(36px, 5.2vw, 68px); }
.cta-band .lead { color: #C8D0E6; }
.cta-band .btn-primary { background: var(--surface); color: var(--ink); border-color: #fff; box-shadow: 4px 4px 0 var(--blue); }
.cta-band .btn-ghost { border-color: #fff; color: #fff; } .cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.cta-band .cta { display: flex; gap: 16px; flex-wrap: wrap; }
footer { background: var(--panel); color: #AEB8D4; padding: 72px 0 40px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer a { color: #D5DBEC; text-decoration: none; } footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 5px; }
footer p { margin: 0 0 8px; font-size: 15px; } footer b { color: #fff; font: 500 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.foot-brand b { font: 600 26px var(--serif); letter-spacing: -0.02em; text-transform: none; color: #fff; }
.foot-links { display: grid; gap: 0; align-content: start; }
.foot-links a { display: flex; align-items: center; min-height: 44px; }
.foot-links p { margin-bottom: 6px; }
.foot-word { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(90px, 21vw, 290px); line-height: .8; color: rgba(255, 255, 255, .07); letter-spacing: -0.04em; margin: 40px 0 -.12em; user-select: none; white-space: nowrap; }
.legal { border-top: 1px solid rgba(255, 255, 255, .2); margin-top: 28px; padding-top: 22px; font-size: 14px; color: #AEB8D4; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal, .js .hero-anim { opacity: 1; transform: none; transition: none; animation: none; } .js .hero h1 .mark { animation: none; background-size: 100% 100%; } .btn { transition: none; } }

/* Early Access */
.ea-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.ea-form { padding: 30px; background: var(--surface); border: 1.5px solid var(--edge); box-shadow: var(--hard); }
.ea-form h2 { font-size: 30px; margin-bottom: 14px; }
.ea-form label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 14px; color: var(--ink); }
.ea-form input[type=text], .ea-form input[type=email], .ea-form select { display: block; width: 100%; margin-top: 6px; padding: 12px; min-height: 46px; border: 1.5px solid var(--edge); border-radius: var(--r); font: inherit; background: var(--surface); color: var(--ink); }
.ea-form input:focus, .ea-form select:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
.ea-fields { border: 0; margin: 0; padding: 0; min-width: 0; } .ea-fields:disabled { opacity: .55; }
.ea-consent { display: flex; gap: 10px; font-weight: 400 !important; line-height: 1.5; } .ea-consent input { margin-top: 4px; }
.ea-hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.ea-status { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; } .ea-status.ok { color: var(--ok); } .ea-status.bad { color: #9B1C1C; }
.notice-line { background: var(--blue-mark); border-left: 4px solid var(--blue-ink); color: var(--ink); padding: 12px 14px; font-size: 15px; margin-bottom: 18px; }
.ea-side h2 { font-size: 24px; margin: 22px 0 8px; } .ea-side h2:first-child { margin-top: 0; } .ea-list { padding-left: 18px; line-height: 1.6; }
.doc-list { list-style: none; padding: 0; margin: 8px 0 0; } .doc-list li { padding: 4px 0; border-top: 1px solid var(--rule); } .doc-list a { display: inline-flex; min-height: 40px; align-items: center; }

/* Responsive */
@media (max-width: 1000px) {
  section { padding: 76px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding-top: 48px; }
  .g3, .g4 { grid-template-columns: 1fr 1fr; } .steps, .legend { grid-template-columns: 1fr; }
  .spot, .spot.flip { grid-template-columns: 1fr; gap: 36px; } .spot.flip .spot-text { order: 0; }
  .facts .wrap { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; } .player { grid-template-columns: 1fr; }
  .ea-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 36px; } .stage { padding-bottom: 64px; }
  .foot-grid { grid-template-columns: 1fr; } .fact { border-left: 0; border-top: 1px solid var(--rule); } .facts .wrap { grid-template-columns: 1fr; } .fact:first-child { border-top: 0; }
  .cta-band { padding: 48px 24px; box-shadow: 5px 5px 0 var(--blue); } .table th, .table td { padding: 11px 12px; font-size: 15px; }
  .tr-row { grid-template-columns: 44px 1fr; gap: 10px; } .transcript { padding: 22px 16px 16px; }
}

/* Social links in the header: lettermark squares on desktop, labelled rows in the mobile menu */
.nav-social { display: inline-flex; gap: 8px; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--rule-strong); align-items: center; }
.soc { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 44px; height: 44px; border: 1.5px solid var(--edge); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: background .14s ease, color .14s ease; }
.soc b { font: 600 17px var(--serif); font-style: italic; letter-spacing: -0.02em; line-height: 1; }
.soc span { display: none; }
.soc:hover { background: var(--panel); color: #fff; }
.nav nav .btn { margin-left: 12px; }
@media (max-width: 900px) {
  .nav-social { margin: 14px 0 0; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .soc { width: auto; justify-content: flex-start; padding: 0 14px; font: 600 16px var(--sans); }
  .soc span { display: inline; }
  .soc b { font-size: 20px; }
}

/* 3D keys: raised caps with an extruded edge that press down on click */
.soc { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); box-shadow: 0 4px 0 var(--navy), 0 9px 14px -4px rgba(11, 16, 32, .35), inset 0 1.5px 0 rgba(255, 255, 255, .9); transform: translateY(-2px); transition: transform .12s ease, box-shadow .12s ease; }
.soc:hover { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); color: var(--ink); transform: translateY(-4px); box-shadow: 0 6px 0 var(--navy), 0 14px 18px -6px rgba(11, 16, 32, .4), inset 0 1.5px 0 rgba(255, 255, 255, .9); }
.soc:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--navy), 0 2px 4px -2px rgba(11, 16, 32, .4), inset 0 1.5px 0 rgba(255, 255, 255, .5); }
.soc-in { background: linear-gradient(180deg, #2F6BF0 0%, #1D4ED8 100%); color: #fff; box-shadow: 0 4px 0 var(--navy), 0 9px 14px -4px rgba(29, 78, 216, .55), inset 0 1.5px 0 rgba(255, 255, 255, .35); }
.soc-in:hover { background: linear-gradient(180deg, #3B7BFF 0%, #2255E0 100%); color: #fff; box-shadow: 0 6px 0 var(--navy), 0 14px 18px -6px rgba(29, 78, 216, .6), inset 0 1.5px 0 rgba(255, 255, 255, .35); }
.soc-fb { background: linear-gradient(180deg, #7C3AED 0%, #5B21B6 100%); color: #fff; box-shadow: 0 4px 0 var(--navy), 0 9px 14px -4px rgba(91, 33, 182, .55), inset 0 1.5px 0 rgba(255, 255, 255, .35); }
.soc-fb:hover { background: linear-gradient(180deg, #7C3AED 0%, #6D28D9 100%); color: #fff; box-shadow: 0 6px 0 var(--navy), 0 14px 18px -6px rgba(91, 33, 182, .6), inset 0 1.5px 0 rgba(255, 255, 255, .35); }
.soc-in:active, .soc-fb:active { box-shadow: 0 1px 0 var(--navy), 0 2px 4px -2px rgba(11, 16, 32, .5), inset 0 1.5px 0 rgba(255, 255, 255, .2); }
.nav-social { padding-bottom: 6px; padding-top: 2px; }
.nav .btn-primary { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .soc, .soc:hover, .soc:active { transition: none; } }
@media (max-width: 900px) { .nav-social { padding-bottom: 8px; } .soc { transform: none; } .soc:hover { transform: translateY(-2px); } }
.nav nav a.soc-in, .nav nav a.soc-fb, .nav nav a.soc-in:hover, .nav nav a.soc-fb:hover { color: #fff; border-bottom: 1.5px solid var(--edge); }
.nav nav a.soc { padding-left: 0; padding-right: 0; }
@media (max-width: 900px) { .nav nav a.soc { padding: 0 14px; } }

/* Menu collapses only when the four links no longer fit */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav nav { display: none; position: absolute; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--paper); padding: 10px 24px 22px; border-bottom: 1.5px solid var(--edge); margin: 0; gap: 0; }
  .nav nav.is-open { display: flex; }
  .nav nav a:not(.btn) { padding: 0 4px; font-size: 18px; border-bottom: 1px solid var(--rule); } .nav nav .btn { margin: 14px 0 0; }
}

/* Footer: four balanced columns, compact rhythm */
main > section:last-child { padding-bottom: 72px; }
footer { padding: 56px 0 28px; }
.foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; align-items: start; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.foot-about { display: grid; gap: 10px; align-content: start; }
.foot-about p { margin: 0; }
.foot-note { font-size: 15px; color: #AEB8D4; max-width: 34ch; }
.foot-cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: #fff; font-weight: 600; font-size: 15px; border-bottom: 1.5px solid var(--blue); width: fit-content; text-decoration: none; }
.foot-cta:hover { color: #fff; border-bottom-width: 3px; text-decoration: none; }
.foot-links { gap: 0; }
.foot-links p { margin: 0 0 8px; }
.foot-links a { min-height: 36px; font-size: 15px; }
.foot-word { font-size: clamp(70px, 14vw, 190px); margin: 28px 0 -.1em; color: rgba(255, 255, 255, .06); }
.legal { margin-top: 0; border-top: 0; padding-top: 18px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.legal p { margin: 0; max-width: 78ch; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 620px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; } footer { padding-top: 44px; } section { padding: 64px 0; } }

.legal { padding-top: 22px; }
.legal p:first-child { white-space: nowrap; }

/* Logo: 3D waveform mark with a sans wordmark, "viva" in the blue-to-violet gradient */
.brand { gap: 10px; font: 700 27px var(--sans); letter-spacing: -0.03em; color: var(--ink); }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 3px 3px rgba(11, 16, 32, .22)); transition: transform .2s ease; }
.brand:hover img { transform: translateY(-2px) rotate(-3deg); }
.brand em { font-style: normal; font-weight: 700; background: linear-gradient(90deg, #2563EB, #7C3AED); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-brand b { font: 700 27px var(--sans); letter-spacing: -0.03em; color: #fff; text-transform: none; }
.foot-brand b em { font-style: normal; background: linear-gradient(90deg, #7DB1FF, #B79BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-brand img { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
@media (prefers-reduced-motion: reduce) { .brand img { transition: none; } .brand:hover img { transform: none; } }

/* Plain-language home sections */
.glance-sec { padding: 0; background: var(--paper); border-bottom: 1px solid var(--rule-strong); }
.glance { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.glance > div { padding: 28px 28px 30px 0; border-left: 1px solid var(--rule); padding-left: 24px; }
.glance > div:first-child { border-left: 0; padding-left: 0; }
.glance dt { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 8px; }
.glance dd { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.5; }
.prob-list { border-top: 2px solid var(--edge); }
.prob { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding: 28px 0; border-bottom: 1px solid var(--rule-strong); align-items: start; }
.prob h3 { font-size: 26px; margin-bottom: 6px; }
.prob p { color: var(--ink-3); }
.prob .how { color: var(--ink); font-size: 18px; line-height: 1.55; padding-left: 20px; border-left: 3px solid var(--blue); }
.flow { list-style: none; counter-reset: f; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--edge); }
.flow li { counter-increment: f; padding: 22px 26px 8px 0; position: relative; }
.flow li::before { content: "0" counter(f); display: block; font: italic 400 52px/1 var(--serif); color: var(--blue-ink); margin-bottom: 12px; }
.flow li b { display: block; font: 500 22px var(--serif); color: var(--ink); margin-bottom: 8px; }
.flow li p { color: var(--ink-2); font-size: 16px; }
.flow-note { margin-top: 28px; padding: 14px 18px; background: var(--blue-mark); border-left: 4px solid var(--blue-ink); color: var(--ink); font-size: 16px; max-width: 80ch; }
.limits { margin-top: 40px; }
.table thead th { white-space: nowrap; }
.table td b { color: var(--ink); }
@media (max-width: 1000px) { .glance { grid-template-columns: 1fr 1fr; } .glance > div:nth-child(3) { border-left: 0; padding-left: 0; } .flow { grid-template-columns: 1fr 1fr; } .prob { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 620px) { .glance, .flow { grid-template-columns: 1fr; } .glance > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } .glance > div:first-child { border-top: 0; } .table { display: block; overflow-x: auto; } }

/* Real-world problems table and status checklist */
.prob3-head { display: grid; grid-template-columns: 56px 1fr 1.2fr 1.2fr; gap: 28px; padding: 0 0 10px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.prob3 { display: grid; grid-template-columns: 56px 1fr 1.2fr 1.2fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--rule-strong); align-items: start; }
.prob-list:has(.prob3) { border-top: 2px solid var(--edge); }
.p-num { font: italic 400 34px/1 var(--serif); color: var(--blue-ink); }
.prob3 h3 { font-size: 23px; }
.prob3 .eg { color: var(--ink-3); font-size: 16px; }
.prob3 .how { color: var(--ink); font-size: 17px; line-height: 1.5; padding-left: 16px; border-left: 3px solid var(--blue); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--edge); }
.three > div { padding: 24px 32px 8px 0; display: grid; gap: 10px; align-content: start; }
.big-n { font: italic 400 64px/1 var(--serif); color: var(--blue-ink); }
.three p { color: var(--ink-2); }
.status td { vertical-align: middle; }
.status td:first-child { color: var(--ink); font-weight: 560; }
.badge.b-sup { color: var(--blue-ink); } .badge.b-nv { color: var(--warn); } .badge.b-na { color: var(--ink-3); }
@media (max-width: 1000px) { .prob3-head { display: none; } .prob3 { grid-template-columns: 44px 1fr; gap: 6px 16px; } .prob3 > div:nth-child(3), .prob3 > div:nth-child(4) { grid-column: 2; } .three { grid-template-columns: 1fr; } .three > div { padding-right: 0; } }

/* Question-style navigation on the home page */
.qa-head { padding-top: 26px; }
.glance > div { padding-top: 16px; }
.qa-jump { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0 28px; border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 22px; }
.qa-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--edge); border-radius: var(--r); color: var(--ink); text-decoration: none; font: 500 14px var(--mono); letter-spacing: .02em; background: var(--surface); box-shadow: 3px 3px 0 var(--navy); transition: transform .12s ease, box-shadow .12s ease; }
.qa-jump a:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--blue); }
.qa-jump a:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
@media (prefers-reduced-motion: reduce) { .qa-jump a { transition: none; } }

/* Video Assist explainer */
.sbs { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: stretch; margin-bottom: 44px; }
.sbs-video { margin: 0; display: grid; gap: 10px; align-content: start; }
.sbs-screen { position: relative; aspect-ratio: 16 / 9; background: var(--panel); border: 1.5px solid var(--edge); box-shadow: var(--hard); display: grid; place-items: center; background-image: linear-gradient(135deg, rgba(37, 99, 235, .28), rgba(139, 92, 246, .22)); }
.sbs-play { width: 74px; height: 74px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: 0 6px 0 rgba(0, 0, 0, .35); }
.sbs-play::after { content: ""; border-left: 22px solid var(--edge); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.sbs-time { position: absolute; left: 14px; bottom: 12px; font: 500 13px var(--mono); color: #D5DBEC; letter-spacing: .04em; }
.sbs-video figcaption { font: 400 12px var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.sbs-notes { display: grid; gap: 12px; align-content: start; background: var(--surface); border: 1.5px solid var(--edge); box-shadow: var(--hard); padding: 22px; position: relative; }
.sbs-label { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sbs-note { padding: 10px 14px; border-left: 3px solid var(--edge); background: var(--paper); }
.sbs-note b { display: block; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.sbs-note p { color: var(--ink); font-size: 16px; }
.sbs-plain { background: var(--blue-mark); border-left-color: var(--blue-ink); } .sbs-plain b { color: var(--ink); }
.sbs-ask { border-left-color: var(--violet); background: var(--violet-soft); }
.watch-steps { list-style: none; counter-reset: w; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--edge); }
.watch-steps li { counter-increment: w; padding: 18px 24px 6px 0; color: var(--ink-2); font-size: 16px; }
.watch-steps li::before { content: counter(w); display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--edge); border-radius: 50%; font: 500 13px var(--mono); color: var(--ink); margin-bottom: 10px; }
.watch-steps li b { display: block; font: 500 20px var(--serif); color: var(--ink); margin-bottom: 6px; }
@media (max-width: 1000px) { .sbs { grid-template-columns: 1fr; } .watch-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .watch-steps { grid-template-columns: 1fr; } .sbs-play { width: 60px; height: 60px; } }

/* Impeccable critique pass: flatter callouts, softer depth, readable labels, themed browser surfaces */
:root { --blue-mark: rgba(37, 99, 235, .2); --depth: 0 1px 0 var(--rule-strong), 0 24px 44px -24px rgba(11, 16, 32, .5); }
html { scrollbar-color: var(--navy-3) var(--paper-2); }
::selection { background: var(--blue-mark); color: var(--ink); }
input, select, textarea { caret-color: var(--blue-ink); accent-color: var(--blue-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hero h1 { font-size: clamp(48px, 7.4vw, 96px); }
h2.h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; font-variation-settings: "opsz" 36; }
.sec-head h2 + .lead { margin-top: 2px; }

/* Callouts and list items without coloured side stripes */
.tr-note { border: 1px solid rgba(29, 78, 216, .3); }
.notice { border-left-width: 1.5px; border-left-color: var(--edge); }
.notice-line, .flow-note { border: 1px solid rgba(29, 78, 216, .3); }
.prob .how, .prob3 .how { border-left: 0; padding-left: 0; font-weight: 500; }
.sbs-note { border: 1px solid var(--rule-strong); }
.sbs-plain { border-color: rgba(29, 78, 216, .35); }
.sbs-ask { border-color: rgba(91, 33, 182, .35); }

/* Depth with a soft falloff instead of hard offset blocks on content surfaces */
.transcript, .plate, .shot, .sbs-screen, .sbs-notes, .ea-form { box-shadow: var(--depth); }
.cta-band { box-shadow: var(--depth); }
.qa-jump a { box-shadow: none; background: transparent; }
.qa-jump a:hover { background: var(--panel); color: #fff; transform: none; box-shadow: none; }
.qa-jump a:active { transform: none; }

/* Labels in the sans voice; mono stays for transcript data and captions */
.qa-jump a, .badge, .table th, .tabs button, .toc a { font-family: var(--sans); }
.qa-jump a { font-weight: 600; font-size: 15px; letter-spacing: 0; }
.badge { font-weight: 650; font-size: 12px; letter-spacing: .03em; }
.table th { font-weight: 650; font-size: 13px; letter-spacing: .04em; }
.glance dt { font-family: var(--sans); font-weight: 650; font-size: 13px; letter-spacing: .06em; }

/* Problem table without numerals */
.prob3, .prob3-head { grid-template-columns: 1fr 1.2fr 1.2fr; }
.sbs-mock { position: absolute; top: 12px; left: 14px; font: 650 12px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: #D5DBEC; border: 1px solid rgba(213, 219, 236, .5); padding: 3px 9px; border-radius: 2px; }
@media (max-width: 1000px) { .prob3 { grid-template-columns: 1fr; gap: 6px; } .prob3 > div:nth-child(2), .prob3 > div:nth-child(3) { grid-column: 1; } }
.qa-jump a:hover, .qa-jump a:focus-visible:hover { color: #fff; }
.flow-note a, .notice-line a { color: var(--ink); }
.skip, .skip:hover, .skip:focus { color: #fff; }

/* Why Kinviva */
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.why-lead { display: grid; gap: 18px; }
.why-sub { font: italic 400 clamp(26px, 3vw, 38px)/1.15 var(--serif); color: var(--blue-ink); letter-spacing: -0.02em; }
.why-list { border-top: 2px solid var(--edge); padding-top: 22px; }
.why-list h3 { font-size: 26px; margin-bottom: 8px; }
.why-list ul { list-style: none; margin: 0; padding: 0; }
.why-list li { padding: 16px 0; border-bottom: 1px solid var(--rule-strong); color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.why-list li b { color: var(--ink); display: block; font: 500 21px var(--serif); margin-bottom: 4px; }
.why-list .badge { margin-top: 8px; display: inline-block; }
.why-tag { margin-top: 56px; padding-top: 24px; border-top: 1.5px solid var(--edge); font: 450 clamp(26px, 3.6vw, 46px)/1.1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
@media (max-width: 1000px) { .why { grid-template-columns: 1fr; gap: 36px; } }

/* Differentiators, workflow comparison, tool comparison, technical example */
.why-sub { font: italic 400 clamp(26px, 3vw, 38px)/1.15 var(--serif); color: var(--blue-ink); letter-spacing: -0.02em; }
.diff { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--edge); }
.diff > li { display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule-strong); align-items: start; }
.diff-n { font: 500 15px var(--sans); color: var(--ink-3); padding-top: 8px; letter-spacing: .04em; }
.diff h3 { font-size: 26px; margin-bottom: 6px; }
.diff p { color: var(--ink-2); max-width: 70ch; }
.diff-st { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; padding-top: 6px; }
.diff-link { margin-top: 12px; }
.where { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; margin-top: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--rule-strong); }
.where b { display: block; font: 650 13px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.where ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 16px; }
.st { display: inline-block; font: 650 12px var(--sans); letter-spacing: .02em; padding: 4px 9px; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; background: transparent; }
.st-yes { color: var(--ok); } .st-lim { color: var(--warn); } .st-plan { color: var(--violet-ink); } .st-nv { color: var(--ink-3); border-style: dashed; } .st-txt { color: var(--ink-2); border-color: var(--rule-strong); }
.wf { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 56px; }
.wf-col { padding: 26px 28px; border: 1.5px solid var(--edge); background: var(--surface); }
.wf-us { background: var(--panel); color: #D5DBEC; }
.wf-col h3 { margin-bottom: 14px; font-size: 24px; }
.wf-us h3 { color: #fff; }
.wf-col ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.wf-us li { color: #E1E6F2; }
.cmp-h { margin: 0 0 16px; font-size: 26px; }
.cmp-wrap { overflow-x: auto; border: 1.5px solid var(--edge); background: var(--surface); }
.cmp { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.cmp thead th { background: var(--paper-2); font: 650 13px var(--sans); letter-spacing: .03em; color: var(--ink); position: sticky; top: 0; }
.cmp tbody th { font-weight: 560; color: var(--ink); width: 24%; }
.cmp .cmp-us { background: var(--panel); color: #fff; }
.cmp td:last-child { background: rgba(37, 99, 235, .07); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp-key, .cmp-src { margin-top: 16px; font-size: 15px; color: var(--ink-3); max-width: 90ch; }
.cmp-key b { color: var(--ink); }
.cmp-src a { color: var(--blue-ink); }
.flowcard { border: 1.5px solid var(--edge); background: var(--surface); box-shadow: var(--depth); padding: 28px 32px; display: grid; gap: 22px; }
.fc-said { font: 450 clamp(22px, 2.6vw, 32px)/1.25 var(--serif); color: var(--ink); padding-bottom: 18px; border-bottom: 1.5px solid var(--edge); }
.fc-said span { display: block; font: 650 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.fc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.fc-steps li { padding: 4px 18px 4px 0; position: relative; }
.fc-steps li + li { padding-left: 18px; border-left: 1px solid var(--rule-strong); }
.fc-steps b { display: block; font: 500 17px/1.25 var(--serif); color: var(--ink); margin-bottom: 8px; }
.fc-steps p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.fc-note { font-size: 15px; color: var(--ink-3); padding-top: 14px; border-top: 1px solid var(--rule); }
@media (max-width: 1100px) { .fc-steps { grid-template-columns: 1fr; gap: 14px; } .fc-steps li, .fc-steps li + li { padding: 0 0 14px; border-left: 0; border-bottom: 1px solid var(--rule); } .fc-steps li:last-child { border-bottom: 0; } }
@media (max-width: 800px) { .diff > li { grid-template-columns: 40px 1fr; } .diff-st { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: flex-start; } .where { grid-template-columns: 1fr; } .wf { grid-template-columns: 1fr; } .cmp-wrap { margin-inline: -4px; } }

/* Compare page */
.cmp-group th { background: var(--paper-2); font: 650 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 10px 14px; }
.cmp-tease { max-width: 70ch; color: var(--ink-2); font-size: 18px; margin-bottom: 18px; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.fit > div { padding: 24px 26px; border: 1.5px solid var(--edge); background: var(--surface); }
.fit > div:first-child { background: var(--panel); color: #D5DBEC; }
.fit > div:first-child h2 { color: #fff; }
.fit ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.fit > div:first-child li { color: #E1E6F2; }
@media (max-width: 800px) { .fit { grid-template-columns: 1fr; } }
.wf-us h2, .wf-us h3 { color: #fff; }
.wf-col h2.h3 { margin-bottom: 14px; font-size: 24px; }

/* Wide screens: let the page breathe at 1680px and above */
@media (min-width: 1680px) { :root { --maxw: 1320px; } .hero-grid { gap: 96px; } }

/* Small screens: screenshots keep their size and pan sideways, so their text stays readable */
@media (max-width: 700px) {
  .shot, .plate { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .shot picture, .plate picture { display: block; min-width: 780px; }
  .shot figcaption::after { content: " \00b7  swipe sideways to read"; }
  .plate-bar { min-width: 780px; }
}

/* Checklist folds away but keeps its summary visible */
.status-box { border: 1.5px solid var(--edge); background: var(--surface); }
.status-box summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 20px; font: 650 16px var(--sans); color: var(--ink); }
.status-box summary::-webkit-details-marker { display: none; }
.status-box summary::after { content: "Show"; font: 650 14px var(--sans); color: var(--blue-ink); border: 1.5px solid var(--blue-ink); padding: 6px 12px; border-radius: var(--r); flex: none; }
.status-box[open] summary::after { content: "Hide"; }
.status-box .table { border: 0; border-top: 1px solid var(--rule-strong); box-shadow: none; }

/* Small screens: the tour keeps two screens and drops the bullet lists, which the sections above already say */
@media (max-width: 700px) {
  .spot-text ul { display: none; }
  .spot + .spot { margin-top: 56px; }
  .alt .wrap > .spot:nth-child(n+4) { display: none; }
  .spot { gap: 24px; }
}
.ea-consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.ea-consent { min-height: 44px; align-items: flex-start; }


/* ===== Reference-inspired layer: graph paper, grotesk headlines, monospaced body, bracketed labels =====
   Studied from basisfellowship.org with REA (public page; fonts, colours, spacing and structure observed).
   Nothing is copied: the fonts are the open-licence families Space Grotesk and IBM Plex Mono, self-hosted;
   the palette, copy, layout and components are Kinviva's own. */
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  --paper: #FBFBF7; --paper-2: #F2F2EA; --paper-3: #E9E9DF;
  --ink: #0B1020; --ink-2: #2A2F3B; --ink-3: #596072;
  --serif: "Space Grotesk", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --sans: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1040px; --rule: rgba(11, 16, 32, .14); --rule-strong: rgba(11, 16, 32, .8);
  --blue-ink: #1D4ED8;
}
body { background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
body::before { display: none; }
b, strong { font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; font-variation-settings: normal; color: var(--ink); }
h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; }
h3 { font-size: 20px; line-height: 1.25; }
h1 em, h2 em, .why-sub, .brand em, .foot-brand em { font-style: normal; }
.hero h1 { font-size: clamp(44px, 6.6vw, 84px); line-height: .98; letter-spacing: -0.03em; font-weight: 700; }
.lead { font-size: 16.5px; line-height: 1.7; max-width: 62ch; }
.why-sub { font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--serif); letter-spacing: -0.02em; color: var(--blue-ink); }
.brand { font: 700 26px var(--serif); }
.foot-brand b { font: 700 26px var(--serif); }
.wrap { width: min(var(--maxw), 100% - 48px); }
@media (min-width: 1680px) { :root { --maxw: 1160px; } }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rule-strong); }
.alt { background: var(--alt-bg); border-block: 0; }
.hero + .glance-sec { border-top: 1px solid var(--rule-strong); }

/* Labels in brackets, and the top bar */
.lab { font: 600 11.5px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-ink); }
.lab b { font-weight: 600; }
.hero-def { text-transform: none; letter-spacing: .02em; color: var(--ink-3); font-weight: 400; display: block; margin-bottom: 18px; max-width: 70ch; }
.hero-def b { color: var(--blue-ink); letter-spacing: .14em; margin-right: 8px; }
.page-head .lab { margin-bottom: 6px; }
.sec-head .lab { margin-bottom: 2px; }
.topbar { display: flex; justify-content: space-between; gap: 16px; padding: 9px 24px; border-bottom: 1px solid var(--rule); font: 500 11.5px/1.4 var(--mono); letter-spacing: .1em; color: var(--ink-3); background: var(--nav-bg); }
.topbar b { color: var(--ink); font-weight: 600; }
.nav { top: 0; border-bottom: 1px solid var(--rule-strong); }
.nav nav a:not(.btn) { font: 500 13px var(--mono); letter-spacing: .02em; }

/* Flat, square buttons */
.btn { font: 500 14px var(--mono); letter-spacing: .01em; border-radius: 0; box-shadow: none; }
.btn-primary { background: #2563EB; border-color: #2563EB; color: #fff; box-shadow: none; }
.btn-primary:hover { background: #1D4ED8; border-color: #1D4ED8; color: #fff; transform: none; box-shadow: none; }
.btn-primary:active { transform: none; box-shadow: none; }
.btn-ghost, .btn { border-radius: 0; }
.nav .btn-primary { transform: none; }
.cta-band .btn-primary { background: var(--surface); color: var(--ink); border-color: #fff; }
.cta-band .btn-primary:hover { background: var(--paper-2); color: var(--ink); }
.cta-band { box-shadow: none; border-radius: 0; }

/* Numerals and small type in the grotesk */
.step::before, .flow li::before, .diff-n, .p-num { font-style: normal; font-family: var(--serif); font-weight: 700; }
.flow li::before { font-size: 40px; color: var(--blue-ink); }
.diff h3, .prob h3, .prob3 h3, .fc-steps b, .watch-steps li b, .flow li b, .faq summary { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
.faq summary { font-size: 19px; }
.diff h3 { font-size: 24px; } .prob3 h3 { font-size: 21px; }
.table th, .cmp thead th, .glance dt, .where b { letter-spacing: .06em; }
.tr-who, .tr-note b { font-weight: 600; }
.transcript, .plate, .shot, .sbs-screen, .sbs-notes, .ea-form, .flowcard { box-shadow: none; border-width: 1px; }
.transcript { background: var(--surface); }
.cmp-wrap, .wf-col, .fit > div, .status-box, .table { border-width: 1px; }
.cmp { font-size: 13.5px; }
.st { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; }
.badge { font-family: var(--mono); font-size: 11px; }
.prob3 .how, .prob .how { font-size: 15.5px; }
.fc-said { font-size: clamp(20px, 2.3vw, 28px); font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; }
.sbs-screen { background-image: linear-gradient(135deg, rgba(37, 99, 235, .3), rgba(124, 58, 237, .2)); }
.diff p, .prob3 .eg, .fc-steps p, .watch-steps li, .flow li p, .step p { font-size: 14.5px; }
.footer-note { font-size: 13px; }
h1 em, h2 em { font-weight: 700; }
.topbar { padding-inline: max(24px, calc((100% - var(--maxw)) / 2)); }
.hero-def { font-size: 12px; }
.lab, .topbar, .st, .badge, .tr-who, .tr-note b, .plate-bar, .shot figcaption, .sbs-label, .where b { font-size: 12px; }


/* ===== Themes: light and dark ===== (the dark block is written twice on purpose: once for the saved choice, once for the system setting when no choice is saved) */
:root {
  --paper: #F7F8F4; --paper-2: #EDEFE9; --paper-3: #E1E4DD; --surface: #FFFFFF; --surface-2: #F1F3ED;
  --ink: #0A0B0A; --ink-2: #3F443F; --ink-3: #5B605A;
  --edge: #0A0B0A; --rule: rgba(10, 11, 10, .13); --rule-strong: rgba(10, 11, 10, .78); --grid: rgba(10, 11, 10, .045);
  --nav-bg: rgba(247, 248, 244, .94); --alt-bg: rgba(10, 11, 10, .03);
  --panel: #0B1020; --panel-2: #131B33; --panel-deep: #0B1020;
  --blue-ink: #1D4ED8; --blue-mark: rgba(37, 99, 235, .17); --violet-ink: #5B21B6; --violet-soft: #E9E1FB;
  --ok: #166534; --warn: #7C4A03; --bad: #9B1C1C; --link-soft: #2563EB;
  color-scheme: light;
}
:root[data-theme="light"] {
  --paper: #F7F8F4; --paper-2: #EDEFE9; --paper-3: #E1E4DD; --surface: #FFFFFF; --surface-2: #F1F3ED;
  --ink: #0A0B0A; --ink-2: #3F443F; --ink-3: #5B605A;
  --edge: #0A0B0A; --rule: rgba(10, 11, 10, .13); --rule-strong: rgba(10, 11, 10, .78); --grid: rgba(10, 11, 10, .045);
  --nav-bg: rgba(247, 248, 244, .94); --alt-bg: rgba(10, 11, 10, .03);
  --panel: #0B1020; --panel-2: #131B33; --panel-deep: #0B1020;
  --blue-ink: #1D4ED8; --blue-mark: rgba(37, 99, 235, .17); --violet-ink: #5B21B6; --violet-soft: #E9E1FB;
  --ok: #166534; --warn: #7C4A03; --bad: #9B1C1C; --link-soft: #2563EB;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0C0C0C; --paper-2: #131313; --paper-3: #1B1B1B; --surface: #141414; --surface-2: #1C1C1C;
  --ink: #FAFAFA; --ink-2: #D4D4D4; --ink-3: #A3A3A3;
  --edge: #3D3D3D; --rule: rgba(255, 255, 255, .10); --rule-strong: rgba(255, 255, 255, .26); --grid: rgba(255, 255, 255, .035);
  --nav-bg: rgba(12, 12, 12, .92); --alt-bg: rgba(255, 255, 255, .025);
  --panel: #161618; --panel-2: #1D1D20; --panel-deep: #070707;
  --blue-ink: #8AB4FF; --blue-mark: rgba(122, 162, 247, .22); --violet-ink: #B8A2FF; --violet-soft: rgba(139, 92, 246, .16);
  --ok: #4ADE80; --warn: #F5B84B; --bad: #F87171; --link-soft: #8AB4FF;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --paper: #0C0C0C; --paper-2: #131313; --paper-3: #1B1B1B; --surface: #141414; --surface-2: #1C1C1C;
  --ink: #FAFAFA; --ink-2: #D4D4D4; --ink-3: #A3A3A3;
  --edge: #3D3D3D; --rule: rgba(255, 255, 255, .10); --rule-strong: rgba(255, 255, 255, .26); --grid: rgba(255, 255, 255, .035);
  --nav-bg: rgba(12, 12, 12, .92); --alt-bg: rgba(255, 255, 255, .025);
  --panel: #161618; --panel-2: #1D1D20; --panel-deep: #070707;
  --blue-ink: #8AB4FF; --blue-mark: rgba(122, 162, 247, .22); --violet-ink: #B8A2FF; --violet-soft: rgba(139, 92, 246, .16);
  --ok: #4ADE80; --warn: #F5B84B; --bad: #F87171; --link-soft: #8AB4FF;
  color-scheme: dark;
  }
}

/* Type: Manrope for text, IBM Plex Mono for labels and data */
@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; }
:root { --serif: "Manrope", ui-sans-serif, system-ui, sans-serif; --sans: "Manrope", ui-sans-serif, system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
body { font-size: 16px; line-height: 1.65; font-weight: 450; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; }
h1 { letter-spacing: -0.04em; }
.hero h1 { letter-spacing: -0.045em; font-weight: 700; }
.lead { font-size: 18px; font-weight: 450; }
.brand, .foot-brand b { font-family: var(--sans); font-weight: 800; letter-spacing: -0.04em; }
.btn { font: 650 14px var(--sans); letter-spacing: 0; border-radius: 4px; }
.nav nav a:not(.btn) { font: 550 14px var(--sans); letter-spacing: 0; }
.btn-primary { border-radius: 4px; }
.tabs button, .qa-jump a, .toc a { font-family: var(--sans); font-weight: 600; }
.diff p, .prob3 .eg, .fc-steps p, .watch-steps li, .flow li p, .step p { font-size: 15.5px; }
.cmp { font-size: 14px; }
.nav-toggle span { background: var(--ink); }
.ev.v { border-color: var(--ok); } .ev.m { border-color: var(--blue-ink); } .ev.i { border-color: var(--warn); }
.no-t, .ea-status.bad { color: var(--bad); }
.cta-band .btn-primary, .cta-band .btn-primary:hover { color: #0B1020; }
footer { background: var(--panel-deep); }
.brand img { filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); }

/* Theme switch in the header: one button, three states (system, light, dark) */
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: 8px; padding: 0; border: 1px solid var(--rule-strong); border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle:hover { background: var(--paper-2); }
.theme-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; display: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ic-system { display: block; }
:root[data-theme="light"] .theme-toggle .ic-system, :root[data-theme="dark"] .theme-toggle .ic-system { display: none; }
:root[data-theme="light"] .theme-toggle .ic-light, :root[data-theme="dark"] .theme-toggle .ic-dark { display: block; }
.theme-toggle .tt-label { display: none; }
@media (max-width: 900px) { .theme-toggle { width: auto; justify-content: flex-start; grid-auto-flow: column; gap: 12px; padding: 0 14px; margin: 10px 0 0; } .theme-toggle .tt-label { display: inline; font: 600 15px var(--sans); } .theme-toggle svg { grid-area: auto; } }

/* Dark theme details */
:root[data-theme="dark"] .hero h1 .mark { background: linear-gradient(transparent 58%, var(--blue-mark) 58%, var(--blue-mark) 92%, transparent 92%); }
:root[data-theme="dark"] .transcript::before, :root[data-theme="dark"] .topbar { background: var(--paper); }
:root[data-theme="dark"] .btn-ghost, :root[data-theme="dark"] .btn { border-color: var(--rule-strong); }
:root[data-theme="dark"] .btn:hover { background: var(--paper-3); }
:root[data-theme="dark"] .plate, :root[data-theme="dark"] .shot, :root[data-theme="dark"] .wf-us, :root[data-theme="dark"] .cta-band, :root[data-theme="dark"] .fit > div:first-child { border: 1px solid var(--rule-strong); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero h1 .mark { background: linear-gradient(transparent 58%, var(--blue-mark) 58%, var(--blue-mark) 92%, transparent 92%); }
  :root:not([data-theme="light"]) .transcript::before, :root:not([data-theme="light"]) .topbar { background: var(--paper); }
  :root:not([data-theme="light"]) .btn { border-color: var(--rule-strong); }
  :root:not([data-theme="light"]) .btn:hover { background: var(--paper-3); }
  :root:not([data-theme="light"]) .plate, :root:not([data-theme="light"]) .shot, :root:not([data-theme="light"]) .wf-us, :root:not([data-theme="light"]) .cta-band, :root:not([data-theme="light"]) .fit > div:first-child { border: 1px solid var(--rule-strong); }
}
@media (prefers-reduced-motion: no-preference) { body, .nav, .topbar, .card, .table, .cmp-wrap { transition: background-color .25s ease, color .25s ease, border-color .25s ease; } }
.cta-band .btn-primary, .cta-band .btn-primary:hover { background: #fff; border-color: #fff; color: #0B1020; }
.cta-band .btn-primary:hover { background: #E8EDF8; }
.cmp th, .cmp td { padding: 10px 10px; }
.cmp { min-width: 0; table-layout: auto; font-size: 13.5px; }
.cmp tbody th { width: 21%; }
.cmp .st { white-space: normal; line-height: 1.3; }
@media (min-width: 1280px) { .cmp-wrap { margin-left: -90px; margin-right: -90px; } }

/* Discord: a 3D key in the header and a call-out in the top bar */
.soc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.soc-dc svg circle { fill: currentColor; stroke: none; }
.soc-dc { background: linear-gradient(180deg, #7C8BFF 0%, #5865F2 100%); color: #fff; box-shadow: 0 4px 0 #2B3499, 0 9px 14px -4px rgba(88, 101, 242, .6), inset 0 1.5px 0 rgba(255, 255, 255, .4); }
.soc-dc:hover { background: linear-gradient(180deg, #8E9BFF 0%, #6370F5 100%); color: #fff; transform: translateY(-4px); box-shadow: 0 6px 0 #2B3499, 0 14px 18px -6px rgba(88, 101, 242, .7), inset 0 1.5px 0 rgba(255, 255, 255, .4); }
.soc-dc:active { transform: translateY(2px); box-shadow: 0 1px 0 #2B3499, 0 2px 4px -2px rgba(88, 101, 242, .6), inset 0 1.5px 0 rgba(255, 255, 255, .25); }
.nav nav a.soc-dc, .nav nav a.soc-dc:hover { color: #fff; border: 1.5px solid #2B3499; }
.tb-right { display: inline-flex; align-items: center; gap: 22px; }
.tb-discord { color: var(--ink); text-decoration: none; padding: 3px 10px; border: 1px solid #5865F2; background: rgba(88, 101, 242, .14); }
.tb-discord b { color: var(--blue-ink); font-weight: 600; letter-spacing: .12em; }
.tb-discord:hover { background: #5865F2; color: #fff; } .tb-discord:hover b { color: #fff; }
.tb-discord:focus-visible { outline: 3px solid #5865F2; outline-offset: 2px; }
@media (max-width: 620px) { .tb-ver { display: none; } .topbar { flex-wrap: wrap; } .tb-right { margin-left: auto; } }
.tb-discord { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; }
.topbar { align-items: center; padding-block: 4px; }

/* Blog readability: solid page, larger and darker text, clear sections, readable figures */
.post-page { background-image: none; }
.post-page .post-head { background: var(--paper-2); padding: 52px 0 40px; }
.post-page .post-wrap { max-width: 740px; }
.post-page .post-head h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; max-width: 20ch; }
.post-page .post { padding: 40px 0 24px; background: var(--paper); }
.post-page .post-body { max-width: none; font-size: 19px; line-height: 1.8; color: var(--ink); font-weight: 450; }
.post-page .post-body p { margin: 0 0 22px; max-width: 64ch; }
.post-page .post-body h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; margin: 56px 0 16px; padding-top: 28px; border-top: 1px solid var(--rule-strong); scroll-margin-top: 90px; }
.post-page .post-body h2:first-child { margin-top: 8px; border-top: 0; padding-top: 0; }
.post-page .post-body ul, .post-page .post-body ol { max-width: 64ch; gap: 14px; margin-bottom: 26px; }
.post-page .post-body li::marker { color: var(--blue-ink); font-weight: 700; }
.post-page .post-body b { font-weight: 700; color: var(--ink); }
.post-page .post-body code { font-size: .85em; padding: 2px 7px; }
.post-page .post-short { background: var(--blue-mark); border: 1px solid rgba(29, 78, 216, .4); padding: 20px 24px; }
.post-page .post-short ul { font-size: 18px; line-height: 1.55; gap: 8px; }
.post-toc { margin: 0 0 32px; padding: 16px 22px; border: 1px solid var(--rule-strong); background: var(--surface); }
.post-toc b { font: 650 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.post-toc ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; font-size: 16.5px; }
.post-toc a { color: var(--ink); text-decoration: none; } .post-toc a:hover { color: var(--blue-ink); text-decoration: underline; }
.post-page .post-note { font-size: 17px; max-width: 64ch; border-left-width: 1px; }
.post-page .post-table { font-size: 15.5px; }
.post-page .post-table th, .post-page .post-table td { padding: 12px 14px; }
.post-fig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-fig picture { display: block; } .post-fig img { width: 100%; height: auto; aspect-ratio: 1504 / 1049; object-fit: contain; }
@media (max-width: 700px) {
  .post-page .post-body { font-size: 18px; line-height: 1.75; }
  .post-fig picture { min-width: 780px; }
  .post-fig figcaption::after { content: " \00b7  swipe sideways to read"; }
}
.post-toc ol { list-style: none; padding-left: 0; }
.post-short { margin-bottom: 20px; }
.post-page .post-note, .post-page .post-cta { border: 1px solid var(--edge); }
.post-page .post-note { background: var(--blue-mark); padding: 18px 22px; margin: 34px 0; }
.post-page .post-cta { background: var(--surface); padding: 28px 30px; }
.post-more li { align-items: baseline; flex-wrap: wrap; } .post-more li span { margin-left: auto; padding-left: 16px; }
.post-more li a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.post-cta { margin-bottom: 44px; } .post-more { margin-top: 12px; }
.bp h2 a { display: block; padding-block: 10px; }
