/* css/site.css: public pages (home, pricing, tools, about, contact) */
.site { --ink: #1b1224; --muted: #5e5669; --line: #e7e1ee; --paper: #fff; --soft: #f7f3fb; --brand: #51007a; --brand2: #7b2cbf; --glow: #c9a4ec;
  margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--paper); }
.site * { box-sizing: border-box; }
.site a { color: var(--brand2); }
.site img { max-width: 100%; height: auto; display: block; }
.site-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px 28px; background: rgba(22, 8, 34, 0.92); backdrop-filter: blur(8px); color: #fff; }
.site-logo { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; font-weight: 700; }
.site-kf { display: inline-block; height: 26px; width: 92px; --kf: #fff; }
.site-kf svg { height: 100%; width: auto; }
.site-kf svg *:not([fill="none"]) { fill: #fff !important; }
.site-name { opacity: .85; font-weight: 600; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.35); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { color: rgba(255,255,255,.86) !important; text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: #fff !important; }
.site-nav .site-cta { background: #fff; color: var(--ink) !important; padding: 7px 16px; border-radius: 999px; }
.site-menu-btn { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; padding: 4px 10px; font-size: 1.1rem; }
@media (max-width: 760px) { .site-menu-btn { display: block; } .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; padding: 14px 28px 20px; background: rgba(22,8,34,.97); } .site-nav.open { display: flex; } }
.site .wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 28px; }
.hero { position: relative; overflow: hidden; overflow-x: clip; overflow-y: visible; color: #fff; background: radial-gradient(1200px 600px at 75% 20%, #4b1a74 0%, #1d0b2e 55%, #12071d 100%); padding: 72px 0 84px; isolation: isolate; }
.hero .theme-ribbon { position:absolute; inset:-10% -8%; width:116%; height:120%; pointer-events:none; z-index:0; overflow:visible; clip-path: inset(8.34% 0); }   /* trimmed to the hero: the hero only clips sideways, so the Lightstone can peek into the next section */
.hero .theme-ribbon-wide { fill:none; stroke:url(#homeRibbonGradient); stroke-width:280; stroke-linecap:round; opacity:.16; filter:url(#homeRibbonBlur); }
.hero .theme-ribbon-glow { fill:none; stroke:url(#homeRibbonGradient); stroke-width:155; stroke-linecap:round; opacity:.20; filter:url(#homeRibbonBlur); }
.hero .theme-ribbon-main { fill:none; stroke:url(#homeRibbonGradient); stroke-width:58; stroke-linecap:round; opacity:.58; }
.hero .theme-ribbon-inner { fill:none; stroke:url(#homeRibbonGradient); stroke-width:5; stroke-linecap:round; opacity:.72; }
.hero .theme-ribbon-data { fill:none; stroke:rgba(255,255,255,.72); stroke-width:1.5; stroke-linecap:round; stroke-dasharray:2 18; opacity:.55; animation:homeRibbonFlow 8s linear infinite; }
@media (max-width: 900px) {
  .hero .theme-ribbon { inset: auto; left: 50%; top: 20px; width: 1600px; height: 700px; transform: translateX(-50%); clip-path: none; }
}
@keyframes homeRibbonFlow { to { stroke-dashoffset:-500; } }
.hero .wrap { position:relative; z-index:2; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--glow); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.06; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lede { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 0 26px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-site { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; }
.btn-site small { font-weight: 500; font-size: .75rem; opacity: .8; }
.btn-site.primary { background: #fff; color: var(--ink) !important; }
.btn-site.ghost { border-color: rgba(255,255,255,.45); color: #fff !important; background: transparent; }
.btn-site.dark { background: var(--brand); color: #fff !important; }
.hero-art { position: relative; min-height: 420px; }
.hero-art .shot { position: absolute; right: -40px; top: 0; width: 118%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.12); }
.hero-art .stone { position: absolute; left: -30px; bottom: -40px; width: 64%; filter: drop-shadow(0 26px 40px rgba(0,0,0,.55)); }
.badge-compat { display: inline-flex; gap: 8px; align-items: center; margin-top: 22px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: .9rem; }
section.band { padding: 76px 0; }
section.band.soft { background: var(--soft); }
section.band.dark { background: #16082a; color: #fff; }
section.band.dark p, section.band.dark li { color: rgba(255,255,255,.82); }
.band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.01em; }
.band p.sub { color: var(--muted); max-width: 64ch; margin: 0 0 34px; font-size: 1.05rem; }
.dark p.sub { color: rgba(255,255,255,.75); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .hero .wrap, .g2, .g3, .g4, .split { grid-template-columns: 1fr !important; } .hero-art { min-height: 300px; margin-top: 20px; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.dark .card p { color: rgba(255,255,255,.75); }
.stat { font-size: 1.9rem; font-weight: 800; color: var(--brand2); line-height: 1.1; margin-bottom: 4px; }
.dark .stat { color: var(--glow); }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center; }
.split.rev { grid-template-columns: 1.15fr 1fr; }
.split img.frame, .split div.frame { overflow: hidden; border-radius: 14px; box-shadow: 0 20px 60px rgba(40,10,70,.22); border: 1px solid var(--line); }
ul.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
ul.ticks li { padding-left: 28px; position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand2); font-weight: 800; }
.dark ul.ticks li::before { color: var(--glow); }
.game { border-radius: 16px; overflow: hidden; background: #111; color: #fff; position: relative; aspect-ratio: 1; }
.game img { width: 100%; height: 100%; object-fit: cover; }
.game .cap { position: absolute; inset: auto 0 0 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.game .cap b { display: block; font-size: 1.1rem; } .game .cap span { font-size: .85rem; opacity: .85; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.16); margin-bottom: 6px; }
.tag.soon { background: #ffe6b3; color: #6b4600; }
.tag.ok { background: #d8f5e6; color: #0d5c35; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; } .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan.featured { border: 2px solid var(--brand2); box-shadow: 0 16px 50px rgba(81,0,122,.16); }
.pricing-plans .plan { position: relative; }
.pricing-plans .plan.current { border: 2px solid var(--brand2); box-shadow: 0 16px 50px rgba(81,0,122,.16); }
.plan-select { display: flex; align-items: center; gap: 7px; height: 20px; margin: -22px -22px 0; padding: 0 10px; border-radius: 15px 15px 0 0; background: transparent; color: var(--muted); font-size: .72rem; line-height: 1; cursor: pointer; }
.plan-select input { width: 13px; height: 13px; margin: 0; accent-color: var(--brand2); cursor: pointer; }
.plan.current .plan-select { background: var(--brand2); color: #fff; }
.plan.selected:not(.current) .plan-select { background: rgba(123,44,191,.12); color: var(--brand2); }
.plan-select:hover { background: color-mix(in srgb, var(--brand2) 12%, transparent); }
.plan.current .plan-select:hover { background: var(--brand2); }
.plan.selected:not(.current) .plan-select:hover { background: rgba(123,44,191,.18); }
.plan .btn-site { margin-top: auto; }
.note { font-size: .85rem; color: var(--muted); }
.cta-band { text-align: center; }
.cta-band .btns { justify-content: center; }
.site-foot { background: #12071d; color: rgba(255,255,255,.78); padding: 36px 0 26px; font-size: .9rem; }
.site-foot-in { width: min(1160px, 100%); margin: 0 auto; padding: 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-foot a { color: #fff !important; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-legal { width: min(1160px, 100%); margin: 22px auto 0; padding: 16px 28px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; color: rgba(255,255,255,.55); }
.page-head { background: radial-gradient(900px 400px at 80% 0%, #4b1a74 0%, #1d0b2e 60%, #12071d 100%); color: #fff; padding: 64px 0 56px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.page-head p { color: rgba(255,255,255,.82); max-width: 64ch; margin: 0; font-size: 1.08rem; }
.product { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit !important; transition: transform .15s, box-shadow .15s; }
.product:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(40,10,70,.14); }
.product .pimg { background: var(--soft); border-radius: 12px; aspect-ratio: 4/3; display: grid; place-items: center; padding: 16px; overflow: hidden; }
.product .pimg img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; }   /* photos always fit their box */
.form { display: grid; gap: 12px; max-width: 560px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.form input, .form textarea, .form select { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
/* the dashboard stylesheet also defines .wrap, .stat and .tag: the site versions win inside .site */
.site .wrap { width: min(1160px, 100%); max-width: none; margin-left: auto !important; margin-right: auto !important; padding: 0 28px; }
.site .stat { display: block; }
.site .tag { border: 0; }
.site section.band:not(.soft):not(.dark) { background: #fff; }

/* applications dropdown and account link */
.site-apps { position: relative; }
.site-apps-btn { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; font: 600 .9rem system-ui, sans-serif; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.site-apps-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 320px; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 18px 50px rgba(0,0,0,.35); z-index: 30; }
.site-apps.open .site-apps-menu { display: grid; gap: 4px; }
.site-apps-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink) !important; }
.site-apps-menu a:hover { background: var(--soft); }
.site-apps-menu a span { font-size: .8rem; color: var(--muted); }
.site-account { display: inline-flex; align-items: center; gap: 6px; }
.site-account svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.site-account[hidden] { display: none !important; }
@media (max-width: 760px) { .site-apps-menu { min-width: 260px; } }

/* the white pill keeps dark text on hover */
.site-nav .site-cta:hover, .site-nav .site-cta[aria-current="page"] { color: var(--ink) !important; background: #efe6fa; }
/* "Your account": white outline pill beside the Sign in / Sign out pill */
.site-nav .site-account { padding: 6px 14px; border: 1.5px solid rgba(255,255,255,.85); border-radius: 999px; }
.site-nav .site-account:hover { background: rgba(255,255,255,.12); }

/* hero: the screenshots crossfade on a laptop screen behind the Lightstone; the laptop always runs off the right edge (also on wide screens) so it can be large */
.hero-art:has(.laptop) { min-height: 0; aspect-ratio: 1 / 0.92; }
.hero-art .laptop { position: absolute; left: -5%; top: 50%; transform: translateY(-50%); width: max(175%, calc(140% + max(0px, (100vw - 1160px) / 2) + 28px)); aspect-ratio: 474.4 / 250; filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }
.hero-art .laptop-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the screen, as a share of the laptop picture (img/laptop.svg, viewBox 82.8 113 474.4 250) */
.hero-art .shots { position: absolute; left: 16.07%; top: 6.47%; width: 67.86%; height: 77.94%; overflow: hidden; background: #1d0b2e; }
.hero-art .shots .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; right: auto; top: 0; box-shadow: none; border: 0; border-radius: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-art .shots .shot.on { opacity: 1; }
.hero-art:has(.laptop) .stone { z-index: 1; width: 78%; left: -50px; bottom: -170px; }
@media (max-width: 900px) { .hero-art:has(.laptop) { aspect-ratio: 1 / 0.7; } .hero-art .laptop { left: -6%; width: 130%; } .hero-art:has(.laptop) .stone { width: 62%; left: -20px; bottom: -110px; } }

.kf-cloud-hero {
  position: relative;
  min-height: 330px;
  color: white; !important
  overflow: hidden;
}

.kf-cloud-hero > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kf-cloud-hero .video-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 90px 6vw;
  background:
    linear-gradient(
      90deg,
      rgba(5,5,9,.88) 0%,
      rgba(5,5,9,.48) 55%,
      rgba(5,5,9,.15) 100%
    ),
    linear-gradient(
      0deg,
      rgba(5,5,9,.78) 0%,
      rgba(5,5,9,0) 65%
    );
}

.kf-cloud-hero .hero-title {
  max-width: 800px;
}

.kf-cloud-hero .hero-subtitle {
  max-width: 680px;
}

.kf-cloud-pricing {
  position:relative;
  height:360px;
  overflow:hidden;
  display:flex;
  align-items:center;
  background:#07070c;
  color:#fff;
  isolation:isolate;
}

.kf-cloud-stream {
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:.85;
}

.kf-cloud-stream svg {
  width:100%;
  height:110%;
  display:block;
  transform:translateY(-5%);
}

.cloud-stream-glow {
  fill:none;
  stroke:url(#cloudStream);
  stroke-width:14;
  opacity:.16;
  filter:url(#cloudGlow);
}

.cloud-stream-line {
  fill:none;
  stroke:url(#cloudStream);
  stroke-width:2;
  opacity:.72;
  stroke-dasharray:180 70;
  animation:kfCloudFlow 7s linear infinite;
}

.cloud-stream-secondary {
  fill:none;
  stroke:rgba(255,255,255,.12);
  stroke-width:1;
  stroke-dasharray:8 18;
  animation:kfCloudSecondary 14s linear infinite;
}

.cloud-points circle {
  fill:#22d9d2;
  opacity:.65;
  animation:kfCloudPulse 2.4s ease-in-out infinite;
}

.cloud-points circle:nth-child(2n) {
  animation-delay:.5s;
}

.cloud-points circle:nth-child(3n) {
  animation-delay:1s;
}

.kf-cloud-pricing::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(
      90deg,
      rgba(7,7,12,.96) 0%,
      rgba(7,7,12,.78) 38%,
      rgba(7,7,12,.35) 72%,
      rgba(7,7,12,.62) 100%
    );
  pointer-events:none;
}

.kf-cloud-content {
  width:min(100%, 1100px);
  margin:0 auto;
  padding:0 32px;
  position:relative;
  z-index:2;
}

.kf-cloud-content .eyebrow {
  display:block;
  margin-bottom:8px;
  color:#22d9d2;
}

.kf-cloud-content h2 {
  margin:0 0 8px;
  font-size:clamp(30px,4vw,46px);
  letter-spacing:-.025em;
}

.kf-cloud-content p {
  max-width:650px;
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:15px;
  line-height:1.55;
}

.kf-cloud-meta {
  display:flex;
  gap:18px;
  align-items:center;
  margin-top:14px;
  font-size:13px;
  color:rgba(255,255,255,.55);
}

.kf-cloud-meta strong {
  color:rgba(255,255,255,.88);
}

.kf-cloud-content .btns {
  margin-top:18px;
}

@keyframes kfCloudFlow {
  from {
    stroke-dashoffset:0;
  }
  to {
    stroke-dashoffset:-750;
  }
}

@keyframes kfCloudSecondary {
  from {
    stroke-dashoffset:0;
  }
  to {
    stroke-dashoffset:-500;
  }
}

@keyframes kfCloudPulse {
  0%,100% {
    opacity:.3;
    transform:scale(.8);
    transform-origin:center;
  }
  50% {
    opacity:1;
    transform:scale(1.5);
    transform-origin:center;
  }
}

@media (max-width:700px) {
  .kf-cloud-pricing {
    height:300px;
  }

  .kf-cloud-content {
    padding:0 22px;
  }

  .kf-cloud-meta {
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
  }

  .kf-cloud-stream {
    opacity:.55;
  }
}.legal { max-width: 78ch; font-size: 1rem; line-height: 1.65; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal h3 { font-size: 1.02rem; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--ink, inherit); }
.legal ol, .legal ul { padding-left: 1.4em; margin: 8px 0 14px; } .legal li { margin: 6px 0; }
.kf-consent { position: fixed; z-index: 9999; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #1d0b2e; color: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.35); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.kf-consent p { margin: 0; flex: 1 1 260px; } .kf-consent a { color: #c9a4ec; }
.kf-consent-btns { display: flex; gap: 8px; margin-left: auto; }
.kf-consent button { border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.kf-consent button.primary { background: #fff; color: #1d0b2e; border-color: #fff; }
/* ---------- KörperForce chart style (research articles) ----------
   One purple sequential scale for magnitude (heatmaps), brand purple for a single line series, recessive grid,
   dashed 100% body-weight reference, text always in ink colours (never the series colour). */
.kf-fig { margin: 30px 0 34px; }
.kf-fig-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.kf-fig-num { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand2); }
.kf-fig-title { font-size: 1.08rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.kf-fig-sub { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.kf-fig-note { font-size: .82rem; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.kf-heat-wrap, .kf-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.kf-heat-wrap:focus-visible, .kf-table-wrap:focus-visible { outline: 2px solid var(--brand2); outline-offset: 2px; }
.kf-heat { border-collapse: separate; border-spacing: 2px; width: 100%; min-width: 560px; font-size: .86rem; background: var(--paper); }
.kf-heat th { font-weight: 600; color: var(--muted); font-size: .76rem; line-height: 1.2; padding: 6px 4px; text-align: center; vertical-align: bottom; }
.kf-heat th small { font-weight: 400; }
.kf-heat tbody th { color: var(--ink); font-size: .86rem; text-align: left; padding-left: 10px; white-space: nowrap; position: sticky; left: 0; background: var(--paper); }
.kf-heat td { text-align: center; padding: 8px 4px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.kf-heat td.over { font-weight: 800; }
.kf-scale { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); margin-top: 10px; }
.kf-scale i { display: block; flex: 0 1 220px; height: 8px; border-radius: 4px; }
.kf-line-wrap { overflow-x: auto; }
.kf-line { width: 100%; min-width: 560px; height: auto; display: block; overflow: visible; }
.kf-line .kf-grid { stroke: var(--line); stroke-width: 1; }
.kf-line .kf-ref { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.kf-line .kf-reflabel { fill: var(--muted); font-size: 12px; font-weight: 600; }
.kf-line .kf-tick { fill: var(--muted); font-size: 12px; }
.kf-line .kf-axis { fill: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.kf-line .kf-series { fill: none; stroke: var(--brand2); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.kf-line .kf-gap { stroke: var(--brand2); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; opacity: .7; }
.kf-line .kf-pt circle:first-child { fill: var(--brand2); stroke: var(--paper); stroke-width: 2; }
.kf-line .kf-pt .kf-hit { fill: transparent; stroke: none; }
.kf-line .kf-pt:hover circle:first-child, .kf-line .kf-pt:focus circle:first-child { r: 7; fill: var(--brand); }
.kf-line .kf-pt:focus { outline: none; }
.kf-line .kf-val { fill: var(--ink); font-size: 12.5px; font-weight: 700; }
.kf-data { margin-top: 8px; font-size: .86rem; }
.kf-data summary { cursor: pointer; color: var(--brand2); font-weight: 600; }
.kf-data table, .kf-table { border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.kf-data table { margin-top: 8px; }
.kf-data th, .kf-data td, .kf-table th, .kf-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.kf-table { width: 100%; background: var(--paper); }
.kf-table thead th { font-size: .76rem; color: var(--muted); font-weight: 600; background: var(--soft); }
.kf-table tbody th { font-weight: 600; position: sticky; left: 0; background: var(--paper); }
.kf-table.kf-wide { min-width: 1500px; }
/* research articles: photos and clinical figures (same frame as the charts) */
.kf-photo { margin: 28px 0; }
.kf-photo img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); }
.kf-photo figcaption { font-size: .86rem; color: var(--muted); line-height: 1.45; margin-top: 8px; }
.kf-photo figcaption b { color: var(--ink); }
.kf-photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.kf-photo-pair .kf-photo { margin: 0; }
.kf-photo-pair + .kf-credit { margin-top: -16px; }
.kf-credit { font-size: .82rem; color: var(--muted); }
.kf-callout { background: var(--soft); border-left: 4px solid var(--brand2); border-radius: 0 12px 12px 0; padding: 12px 18px; margin: 22px 0; font-size: 1rem; }
.kf-terms { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .95rem; margin: 10px 0 20px; }
.kf-terms dt { font-weight: 700; } .kf-terms dd { margin: 0; color: var(--muted); }
.kf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.kf-two > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: .97rem; }
.kf-two h3 { margin: 0 0 6px !important; font-size: 1.02rem !important; }
@media (max-width: 640px) { .kf-photo-pair, .kf-two { grid-template-columns: 1fr; } .kf-terms { grid-template-columns: 1fr; gap: 2px; } .kf-terms dd { margin-bottom: 8px; } }
.kf-photo.native img { width: auto; max-width: 100%; margin: 0 auto; }
.kf-photo.native figcaption { max-width: 560px; margin-left: auto; margin-right: auto; }
.kf-line .kf-series.kf-faint { stroke-width: 1.5; opacity: .35; }
.kf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.kf-stat-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); }
.kf-stat-card dl { margin: 0; }
.kf-stat-card dl > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.kf-stat-card dl > div:last-child { border-bottom: 0; }
.kf-stat-card dt { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kf-stat-card dd { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.kf-stat-card .hero { background: var(--soft); }
.kf-stat-card .hero dd { font-size: 2.2rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.kf-stat-card .hero dd span { font-size: 1rem; font-weight: 700; color: var(--muted); }
/* research articles: small interactive calculators */
.kf-calc { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 12px; margin: 18px 0 30px; background: var(--paper); }
.kf-calc h3 { margin: 0 0 6px !important; font-size: 1.1rem !important; }
.kf-calc-intro { font-size: .95rem; color: var(--muted); margin: 0 0 12px; }
.kf-calc-in { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 10px; }
.kf-calc-in label { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.kf-calc-in small { font-weight: 400; color: var(--muted); }
.kf-calc-row { display: flex; align-items: center; gap: 6px; }
.kf-calc-in input, .kf-calc-in select { font: inherit; font-size: 1rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.kf-calc-in input { width: 120px; } .kf-calc-unit { color: var(--muted); font-weight: 600; }
.kf-calc-in input:focus, .kf-calc-in select:focus { outline: 2px solid var(--brand2); outline-offset: 1px; }
.kf-calc-match { min-height: 1.4em; font-weight: 700; color: var(--brand); margin: 4px 0 10px; }
.kf-table tr.kf-hit-row th, .kf-table tr.kf-hit-row td { background: var(--soft); font-weight: 800; color: var(--brand); }
