/* ==========================================================================
   TurboTest home
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #141517;
  --bg-hi: #26272b;
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.16);
  --text: #f2f2f3;
  --muted: #8b8d95;
  --dim: #5d6068;

  --key-top: #26272c;
  --key-bot: #1c1d21;
  --key-edge: #0a0a0c;
  --legend: #a3a5ac;

  --orange: #ff6a1f;
  --green: #3ee08f;
  --rgb: #ff2a2a, #ff4d1f, #ff7a1a, #ffa31a, #ff7a1a, #ff4d1f, #ff2a2a; /* red → orange → red, loops seamlessly */

  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.5, 1);
}

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

html { background: var(--bg); }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 50% -8%, rgba(72, 74, 84, 0.35), transparent 65%),
    radial-gradient(900px 500px at 50% 115%, rgba(40, 41, 47, 0.45), transparent 70%),
    linear-gradient(180deg, #18191c 0%, #0e0f11 100%);
  background-attachment: fixed;
}

button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Header ---------------------------------------------------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(16px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(20, 21, 23, 0.92), rgba(20, 21, 23, 0.6) 70%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  color: var(--text);
  transition: opacity 0.35s ease, translate 0.45s var(--ease-out), visibility 0s linear;
}

.js body:not(.brand-in) .bar .brand {
  opacity: 0;
  translate: 0 -6px;
  visibility: hidden;
  transition: opacity 0.25s ease, translate 0.3s ease, visibility 0s linear 0.3s;
}

.brand-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1166 / 277.89;
}

.top-links {
  display: flex;
  gap: 4px;
}

.top-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.top-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-hi);
  background: rgba(255, 255, 255, 0.05);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Layout ---------------------------------------------------- */

/* 80% of the window, like the keyboard tester; never narrower than ~1040px
   when there's room for it */
.wrap {
  width: max(80vw, min(100% - 32px, 1040px));
  margin: 0 auto;
}

.block { padding: clamp(28px, 4vw, 48px) 0; }

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

h1, h2, h3 { color: var(--text); }

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

.hero {
  position: relative;
  padding: clamp(0px, 1.2vh, 20px) 0 clamp(20px, 3vh, 44px);
  text-align: center;
  overflow-x: clip;
  overflow-y: visible;
}

.hero-title {
  margin: 0;
  font-weight: 500;
}

.hero-brand {
  display: block;
  width: clamp(240px, min(30vw, 44vh), 640px);
  margin: 0 auto;
}

.hero-logo {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1166 / 277.89;
  overflow: visible;
  filter: drop-shadow(0 0 22px rgba(14, 15, 17, 0.85)) drop-shadow(0 10px 44px rgba(255, 74, 26, 0.24));
}

.hero-tag {
  display: block;
  margin-top: clamp(10px, 1.8vh, 20px);
  font-size: clamp(19px, 1.65vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lead {
  max-width: 860px;
  margin: 10px auto 0;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: #a9abb2;
  text-wrap: balance;
}

.cta .arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}

/* ---------- Tools ----------------------------------------------------- */

.tools-block { padding: 0 0 clamp(28px, 4vw, 48px); }

.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 20px);
}

.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(8px, 0.7vw, 12px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(36, 37, 41, 0.72), rgba(24, 25, 28, 0.72));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.tool:hover,
.tool:focus-visible {
  outline: none;
  transform: translateY(-4px);
  border-color: rgba(255, 106, 31, 0.45);
  box-shadow: 0 24px 60px -24px rgba(255, 74, 26, 0.35);
}

.tool:focus-visible { box-shadow: 0 0 0 2px #ffa31a, 0 24px 60px -24px rgba(255, 74, 26, 0.35); }

/* A screenshot of each tool */
.tool-view {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 15px;
  background: #17181b;
  transition: border-color 0.3s ease;
}

.tool-view img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.tool:hover .tool-view { border-color: rgba(255, 106, 31, 0.25); }
.tool:hover .tool-view img { transform: scale(1.03); }

.tool-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(12px, 1.1vw, 20px) clamp(10px, 0.9vw, 16px) clamp(10px, 0.8vw, 14px);
}

.tool h3 {
  margin: 0 0 6px;
  font-size: clamp(19px, 1.45vw, 23px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.tool p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #b7b9c0;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.tool-tags li {
  padding: 4px 10px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
  color: #cfd0d5;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-weight: 500;
  color: #ff8a4d;
}

.tool:hover .cta .arrow { transform: translateX(4px); }

.why-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 106, 31, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 42, 42, 0.16), rgba(255, 163, 26, 0.16));
  color: #ff8a4d;
}

.why-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Why ------------------------------------------------------- */

.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.why-tile {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.015);
}

.why-icon { grid-row: span 2; }

.why-tile h3 {
  margin: 4px 0 4px;
  font-size: 17px;
  font-weight: 600;
}

.why-tile p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- About + FAQ ---------------------------------------------- */

.about-faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px;
  align-items: start;
}

.panel {
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  color: #b7b9c0;
  line-height: 1.7;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.panel p { margin: 0 0 14px; }
.panel p:last-child { margin-bottom: 0; }

.about a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 31, 0.6);
  transition: color 0.2s ease;
}

.about a:hover { color: #ff8a4d; }

.faq-list {
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.faq details[open] {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-hi);
}

.faq summary {
  position: relative;
  padding: 16px 32px 16px 0;
  list-style: none;
  font-weight: 500;
  color: var(--text);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  font-size: 22px;
  font-weight: 300;
  color: var(--orange);
  transition: rotate 0.25s var(--ease-out);
}

.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: -4px 0 18px; }

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(24px, 4vw, 48px);
  padding: 28px 16px 44px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--text); }
.site-footer .sep { opacity: 0.6; }

/* ---------- Menu ----------------------------------------------------- */

.burger {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
}

.burger i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: top 0.35s var(--ease-out), transform 0.35s var(--ease-out), opacity 0.2s ease;
}

.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 5px; right: 4px; }
.burger i:nth-child(3) { top: 10px; }

.menu-btn:hover .burger i:nth-child(2) { right: 0; }

body.menu-open .burger i:nth-child(1) { top: 5px; transform: rotate(45deg); }
body.menu-open .burger i:nth-child(2) { opacity: 0; }
body.menu-open .burger i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 6, 8, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

body.menu-open .menu-scrim {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: min(400px, 90vw);
  padding: 22px 22px 28px;
  background: linear-gradient(180deg, #1e1f23, #151619);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
  transform: translateX(102%);
  transition: transform 0.45s var(--ease-out);
}

.menu::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #ff2a2a, #ff7a1a, #ffa31a, transparent);
}

body.menu-open .menu { transform: none; }

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.menu-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.menu-links {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.menu-open .menu-links li { animation: menu-in 0.5s var(--ease-out) backwards; }
body.menu-open .menu-links li:nth-child(2) { animation-delay: 0.04s; }
body.menu-open .menu-links li:nth-child(3) { animation-delay: 0.08s; }
body.menu-open .menu-links li:nth-child(4) { animation-delay: 0.12s; }
body.menu-open .menu-links li:nth-child(5) { animation-delay: 0.16s; }
body.menu-open .menu-links li:nth-child(6) { animation-delay: 0.2s; }
body.menu-open .menu-links li:nth-child(7) { animation-delay: 0.24s; }

@keyframes menu-in {
  from { opacity: 0; transform: translateX(18px); }
}

.menu-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  padding: 15px 18px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.menu-links a:hover,
.menu-links a:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.menu-links a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(255, 77, 31, 0.14), rgba(255, 77, 31, 0) 85%);
  border-color: rgba(255, 106, 31, 0.28);
}

.m-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.menu-links a[aria-current="page"] .m-name::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
}

.m-desc {
  grid-column: 1;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

.m-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--dim);
  transition: transform 0.25s var(--ease-out), color 0.2s ease;
}

.menu-links a:hover .m-arrow,
.menu-links a:focus-visible .m-arrow {
  transform: translateX(4px);
  color: var(--orange);
}

.menu-foot {
  margin: auto 0 0;
  padding-top: 24px;
  font-size: 12px;
  color: var(--dim);
}

/* ---------- Cursor ---------------------------------------------------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
}

.cursor.visible { opacity: 1; }

.cursor-dot {
  width: 10px;
  height: 10px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px rgba(255, 106, 31, 0.6);
  transition:
    width 0.35s var(--ease-spring),
    height 0.35s var(--ease-spring),
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    scale 0.15s ease;
}

.cursor.hover .cursor-dot {
  width: 30px;
  height: 30px;
  background: rgba(62, 224, 143, 0.32);
  box-shadow:
    inset 0 0 0 1.5px var(--green),
    0 0 20px rgba(62, 224, 143, 0.45);
}

.cursor.press .cursor-dot { scale: 0.8; }

/* The system pointer hides only once app.js has the custom cursor running
   (it adds .has-cursor), so if the script ever fails the pointer stays */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor,
  html.has-cursor * { cursor: none !important; }
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ---------- Small screens -------------------------------------------- */

@media (max-width: 900px) {
  .tools,
  .why,
  .about-faq { grid-template-columns: 1fr; }
}

/* Tablets: preview beside the text */
@media (min-width: 561px) and (max-width: 900px) {
  .tool {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 720px) {
  .top-links { display: none; }
  .brand-logo { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.menu-open .menu-links li { animation: none; }
  .tool-view img { transition: none; }
}

/* ---------- Charts & stats in the article ---------------------------- */

.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;
}

.seo figure { margin: 0; }

.viz-sub {
  margin: -8px 0 20px !important;
  font-size: 14px;
  color: var(--muted);
}

.viz figcaption {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.example-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--muted);
}

/* Stat tiles */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}

.seo .kpis { padding: 0; }

.stat {
  padding: clamp(20px, 2.2vw, 30px);
  border-left: 1px solid var(--line);
}

.stat:first-child { border-left: 0; }

.stat::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff2a2a, #ffa31a);
}

.stat-value {
  display: block;
  font-family: var(--ui);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* Horizontal bars: <= 24px thick, rounded data end, square at the baseline */
.hbars {
  display: grid;
  gap: 14px;
}

.hbar {
  display: grid;
  grid-template-columns: minmax(64px, 112px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  outline: none;
}

.hbar-label {
  font-size: 14px;
  text-align: right;
  color: var(--text);
}

.hbar-plot {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.hbar-fill {
  flex: none;
  width: max(4px, calc(var(--v) * (100% - 64px)));
  height: 18px;
  border-radius: 0 4px 4px 0;
  background: var(--c, #f0601a);
  transition: filter 0.15s ease;
}

.hbar-value {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}

.hbar:hover .hbar-fill,
.hbar:focus-visible .hbar-fill { filter: brightness(1.2); }
.hbar:focus-visible .hbar-label { text-decoration: underline; }

/* Status scale (drift) */
.scale {
  position: relative;
  margin-top: 40px;
}

.scale-bar {
  display: flex;
  gap: 2px;
  height: 18px;
}

.scale-zone {
  flex: var(--w) 1 0;
  background: var(--c);
  outline: none;
  transition: filter 0.15s ease;
}

.scale-zone:first-child { border-radius: 4px 0 0 4px; }
.scale-zone:last-child { border-radius: 0 4px 4px 0; }
.scale-zone:hover,
.scale-zone:focus-visible { filter: brightness(1.2); }

/* The label sits above the bar and reads rightwards from its pointer line */
.scale-marker {
  position: absolute;
  left: var(--at);
  top: -34px;
  padding-left: 8px;
  translate: -1px 0;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
}

.scale-marker::after {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 2px;
  height: 50px;
  border-radius: 2px;
  background: var(--text);
}

.scale-ticks {
  position: relative;
  height: 20px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.scale-ticks span {
  position: absolute;
  left: var(--at);
  translate: -50% 0;
}

.scale-ticks span:first-child { translate: 0 0; }
.scale-ticks span:last-child { translate: -100% 0; }

.seo .scale-legend {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.seo .scale-legend li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
}

.seo .scale-legend li::before { content: none; }

.badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c);
  color: #141517;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* Circularity examples */
.circ-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.circ { text-align: center; }

.circ svg {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  margin: 0 auto;
}

.circ-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}

.circ-val {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

/* Line chart */
.line-chart {
  position: relative;
  width: 100%;
  height: 220px;
}

.line-chart svg { display: block; overflow: visible; }

.viz-grid {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.viz-axis {
  fill: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.viz-end {
  fill: var(--text);
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
}

.viz-ring {
  stroke: #1c1d21;
  stroke-width: 2;
}

.viz-hair {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1;
  opacity: 0;
}

.viz-hover-dot { opacity: 0; }
.hovering .viz-hair,
.hovering .viz-hover-dot { opacity: 1; }
.line-chart rect:focus { outline: none; }

/* Tooltip */
.viz-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  background: rgba(24, 25, 28, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.viz-tip.show { opacity: 1; }

.viz-tip strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Footer "Cookie settings" */
.site-footer .cookie-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-footer .cookie-link:hover { color: var(--text); }

@media (max-width: 980px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .circ-pair { grid-template-columns: 1fr; }
}

