/* VoxCheck: the voxteneo.com visual language, light and dark. */
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }


:root {
  color-scheme: light;
  --red: #d92400; --red-hover: #b81f00; --red-text: #c42000;
  --bg: #fff; --card: #fff; --band: #eef1f7; --field: #fff;
  --fg: #0f0e2d; --soft: #3a3958; --muted: #535273;
  --line: rgb(15 14 45 / .1); --edge: rgb(15 14 45 / .22); --field-line: #85849f;
  --ok: #10b981; --ok-text: #047857; --warn: #ffb800; --warn-text: #8a5a00;
  --panel: #1a1836; --footer: #1a1836;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --r-sm: 4px; --r-md: 10px; --r-lg: 16px; --r-xl: 20px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --red-text: #ff8266; --bg: #232241; --card: #363463; --band: #2c2b52; --field: #2c2b52;
  --fg: #f1f2f9; --soft: #d4d5e6; --muted: #abadc9;
  --line: rgb(255 255 255 / .14); --edge: rgb(255 255 255 / .3); --field-line: #8b8bb0;
  --ok-text: #4ade9f; --warn-text: #ffcf4d; --panel: #302e64; --footer: #302e64;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, dl, dd, fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
ul { list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; z-index: 99; background: var(--card); padding: 10px 16px; }
.skip:focus { left: 12px; top: 12px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(20px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-brand, .nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-brand a { display: flex; text-decoration: none; }
.product { font: 600 18px/28px var(--display); letter-spacing: -.3px; padding-left: 14px; border-left: 1px solid var(--line); }
.logo { flex: none; } .logo .mark { fill: var(--red); } .logo .word { fill: currentColor; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.icon-button svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sun, :root[data-theme="dark"] .moon { display: none; }
:root[data-theme="dark"] .sun { display: block; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border: 0; border-radius: var(--r-md); background: var(--red); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.4; text-decoration: none; cursor: pointer; transition: background .2s; }
.button:hover { background: var(--red-hover); }
.button[aria-disabled="true"] { opacity: .55; cursor: progress; }
.button.small { padding: 10px 20px; font-size: 14px; border-radius: var(--r-sm); white-space: nowrap; }
.arrow { transition: transform .3s var(--ease); }
.button:hover:not([aria-disabled="true"]) .arrow { transform: translateX(4px); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: min(740px, calc(100svh - 69px)); padding-block: clamp(36px, 5vw, 64px); }
.eyebrow { font: 400 12px/1.5 var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--red-text); }
.eyebrow.dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: currentColor; vertical-align: 2px; }
h1 { margin: 20px 0; font: 600 clamp(44px, 6.7vw, 88px)/.96 var(--display); letter-spacing: -.035em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--red-text); }
.lead { max-width: 33em; font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); }

form { margin-top: 32px; }
input, select { background: var(--field); border: 1px solid var(--field-line); border-radius: var(--r-md); }
input::placeholder { color: var(--muted); opacity: 1; }
.target-line { display: flex; gap: 8px; padding: 8px; background: var(--field); border: 1.5px solid var(--fg); border-radius: var(--r-lg); transition: border-color .2s; }
.target-line:focus-within { border-color: var(--red-text); }
.target-line input { flex: 1; min-width: 0; height: 56px; padding: 0 16px; border: 0; background: none; font: 600 clamp(19px, 2vw, 24px) var(--display); letter-spacing: -.02em; }
.target-line input:focus { outline: none; }
.target-line .button { padding-inline: 28px; font-size: 16px; }
.hint { margin-top: 14px; color: var(--muted); font-size: 15px; }
#human-check { min-height: 72px; margin-top: 10px; }

/* The instrument: the Vox triangle, one node per check */
.instrument { width: 100%; max-width: 640px; justify-self: end; overflow: visible; }
.plate { fill: var(--band); }
.edge { fill: none; stroke: var(--edge); stroke-width: 1.5; }
.trace { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 14 86; opacity: 0; transition: opacity .4s; }
.node { --c: var(--edge); }
.node circle { fill: var(--bg); stroke: var(--edge); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transition: fill .35s, stroke .35s; }
.node line { stroke: var(--c); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease), stroke .35s; }
.node .tag { font: 400 15px var(--mono); fill: var(--soft); }
.node .glyph { font: 600 17px var(--body); fill: #0f0e2d; }
.node.picked circle { stroke: var(--red-text); stroke-width: 3; }
.core { font: 600 84px/1 var(--display); letter-spacing: -.04em; fill: var(--fg); }
.core-label { font: 400 15px var(--mono); fill: var(--muted); }
.core.fail { fill: var(--red-text); }
.instrument.scan .trace { opacity: 1; animation: lap 1.5s linear infinite; }
.instrument.scan .node circle { animation: beat 1.5s ease-in-out infinite; animation-delay: calc(var(--i) * .16s); }
.node.lit line { stroke-dashoffset: 0; }
.node.lit circle { fill: var(--c); stroke: var(--c); animation: pop .5s var(--ease); }
.node.ok { --c: var(--ok); } .node.warn { --c: var(--warn); } .node.fail { --c: #ff6a4d; } .node.info { --c: #abadc9; }
@keyframes lap { to { stroke-dashoffset: -100; } }
@keyframes beat { 50% { transform: scale(.7); } }
@keyframes pop { 40% { transform: scale(1.45); } }
@keyframes draw { from { stroke-dashoffset: 100; stroke-dasharray: 100; } to { stroke-dashoffset: 0; stroke-dasharray: 100; } }
@keyframes arrive { from { transform: scale(0); } }

/* Report */
#result:empty { display: none; }
.results { scroll-margin-top: 92px; }
#result { padding-bottom: clamp(56px, 8vw, 112px); }
.panel { --fg: #f1f2f9; --muted: #c9cae0; --line: rgb(255 255 255 / .18); --red-text: #ff8266; --ok-text: #4ade9f; --warn-text: #ffcf4d; padding: clamp(26px, 4.5vw, 60px); background: var(--panel); color: var(--fg); border-radius: var(--r-xl); }
.panel { display: flex; flex-direction: column; }
.panel.cta { flex-direction: row; }
.panel-top { order: -1; display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; }
.panel .meta { font: 400 13px/1.5 var(--mono); color: var(--muted); }
.ghost { padding: 9px 16px; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s; }
.ghost:hover { border-color: currentColor; }
.panel h2 { max-width: 18em; margin: clamp(24px, 4vw, 48px) 0 clamp(24px, 3vw, 40px); font: 600 clamp(32px, 5.2vw, 68px)/1 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; text-wrap: balance; }
.panel h2:focus { outline: none; }
.panel h2 em { font-style: normal; color: var(--accent, inherit); }
.panel.fail { --accent: #ff6a4d; } .panel.warn { --accent: #ffcf4d; } .panel.ok { --accent: #4ade9f; }
.meter { display: flex; gap: 3px; height: 14px; }
.meter i { flex: var(--n) 0 0; min-width: 6px; border-radius: 3px; transform-origin: left; animation: grow .9s var(--ease) both; }
.meter .ok { background: var(--ok); } .meter .warn { background: var(--warn); } .meter .fail { background: #ff6a4d; } .meter .info { background: #8b8bb0; }
@keyframes grow { from { transform: scaleX(0); } }
.counts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 18px; }
.counts div { display: flex; gap: 8px; align-items: baseline; }
.counts dd { font: 600 24px/1 var(--display); order: -1; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1.5 var(--mono); white-space: nowrap; color: var(--muted); }
.status::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok-text); } .status.ok::before { background: var(--ok); }
.status.warn { color: var(--warn-text); } .status.warn::before { background: var(--warn); }
.status.fail { color: var(--red-text); } .status.fail::before { background: var(--red-text); }

.section-title { margin: clamp(40px, 5vw, 64px) 0 18px; font: 600 clamp(26px, 3vw, 36px)/1.1 var(--display); letter-spacing: -.02em; }
.fixes { display: grid; gap: 12px; }
.fixes li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 600 20px/1 var(--body); color: #0f0e2d; }
.mark.fail { background: #ff6a4d; } .mark.warn { background: var(--warn); }
.fixes b { display: block; font: 600 20px/1.25 var(--display); letter-spacing: -.015em; overflow-wrap: anywhere; }
.fixes .why { color: var(--muted); font-size: 15px; }
.actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; margin: clamp(40px, 5vw, 64px) 0 18px; }
.bar .section-title { margin: 0; }
.switch { display: inline-flex; padding: 4px; background: var(--band); border: 1px solid var(--line); border-radius: 999px; }
.switch button { padding: 6px 16px; background: none; border: 0; border-radius: 999px; font-size: 14px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); font-weight: 600; }
.only-bad .block:not(.bad) { display: none; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.columns > div { display: grid; gap: 16px; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
summary { display: flex; align-items: center; gap: 14px; padding: 20px 24px; cursor: pointer; list-style: none; transition: background .2s; }
summary:hover { background: var(--band); }
summary::-webkit-details-marker { display: none; }
summary:focus-visible { outline-offset: -3px; }
summary h3 { flex: 1; font: 600 21px/1.2 var(--display); letter-spacing: -.015em; }
summary::after { content: ""; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; align-items: baseline; padding: 13px 24px; border-top: 1px solid var(--line); }
.block > .rows li:first-child { border-top: 0; }
details > .rows li:first-child { border-top: 1px solid var(--line) !important; }
.rows .name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.rows .name small { margin-left: 10px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.rows .value { grid-column: 1 / -1; font: 400 14px/1.55 var(--mono); color: var(--soft); overflow-wrap: anywhere; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: clamp(40px, 5vw, 64px); }
.cta h3 { font: 600 clamp(26px, 3.4vw, 44px)/1.05 var(--display); letter-spacing: -.03em; max-width: 15em; text-wrap: balance; }
.cta p { margin-top: 8px; color: var(--muted); }
.message { padding: 24px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.message.error { color: var(--red-text); font-weight: 600; }
#result:has(> .message) { padding-bottom: 48px; }

/* Test tiles */
.tests { background: var(--band); padding-block: clamp(56px, 8vw, 112px); scroll-margin-top: 69px; }
.tests-top { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: end; justify-content: space-between; margin-bottom: clamp(24px, 3vw, 40px); }
.tests h2 { font: 600 clamp(34px, 5vw, 64px)/1 var(--display); letter-spacing: -.035em; }
.quick { display: flex; align-items: center; gap: 12px; margin: 0; flex: 0 1 380px; }
.quick label { color: var(--muted); }
.quick input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; font: 600 18px var(--display); letter-spacing: -.01em; }
.workbench { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
.tiles { display: grid; gap: 22px; }
.tile-group > h3 { margin: 0 0 8px 2px; font: 400 12px/1.5 var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.tile { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.tile + .tile, .bench + .tile { border-top: 0; }
.tile-group .tile:first-of-type { border-radius: var(--r-md) var(--r-md) 0 0; }
.tile-group .tile:last-of-type { border-radius: 0 0 var(--r-md) var(--r-md); }
.tile:hover { background: color-mix(in srgb, var(--red) 6%, var(--card)); }
.tile:has(.run:focus-visible) { outline: 2px solid var(--red-text); outline-offset: 2px; z-index: 1; }
.tile.active { box-shadow: inset 3px 0 0 var(--red-text); }
.tile svg { width: 24px; height: 24px; fill: none; stroke: var(--red-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile b { display: block; font: 600 17px/1.25 var(--display); letter-spacing: -.01em; }
.tile p { color: var(--muted); font-size: 14px; line-height: 1.4; }
.tile .run { position: absolute; inset: 0; width: 100%; padding: 0; background: none; border: 0; cursor: pointer; outline: none; }
.tile .run[aria-disabled="true"] { cursor: progress; }
.bench { position: sticky; top: 90px; min-height: 320px; max-height: calc(100svh - 110px); overflow: auto; padding: clamp(18px, 2.4vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.bench-wait { color: var(--muted); padding-block: 12px; overflow-wrap: anywhere; }
.bench-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.bench-head h3 { font: 600 26px/1.15 var(--display); letter-spacing: -.02em; }
.bench-head p { color: var(--muted); font-size: 15px; }
.bench-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bench-tools .button { height: 42px; border-radius: var(--r-sm); }
.option { display: flex; align-items: center; gap: 10px; }
.option label { font-size: 14px; color: var(--muted); white-space: nowrap; }
.option input, .option select { min-width: 0; width: 150px; height: 42px; padding: 0 14px; border-radius: var(--r-sm); font: 400 15px var(--mono); }
.option select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-size: 6px 6px; background-position: right 21px center, right 15px center; background-repeat: no-repeat; cursor: pointer; }
.option select option { background: var(--card); color: var(--fg); }
.option :focus-visible, .quick input:focus-visible { outline: 2px solid var(--red-text); outline-offset: -1px; border-color: transparent; }
.verdict { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin: 22px 0 6px; }
.verdict h2 { font: 600 clamp(22px, 2.4vw, 30px)/1.15 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.verdict h2:focus { outline: none; } .verdict h2 em { font-style: normal; color: var(--red-text); }
.bench .why { color: var(--muted); } .bench .block { margin-top: 16px; background: none; }
.grade { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border: 2px solid currentColor; border-radius: 50%; font: 600 30px/1 var(--body); }
.fix { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; margin-top: 8px; padding: 10px 10px 10px 14px; background: var(--band); border-radius: var(--r-sm); }
.fix code { flex: 1; min-width: 0; font: 400 14px/1.5 var(--mono); overflow-wrap: anywhere; } .fix .ghost { flex: none; border-color: var(--edge); }
.fixes .how { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; }
.status.wait::before { animation: beat 1.2s ease-in-out infinite; }
.wait-line { display: flex; align-items: center; gap: 14px; padding: 20px 24px; } .wait-line h3 { flex: 1; font: 600 21px/1.2 var(--display); letter-spacing: -.015em; }

footer { background: var(--footer); color: #c9cae0; padding-top: 56px; font-size: 14px; overflow: hidden; }
.foot-line { display: flex; gap: 24px; align-items: flex-start; }
footer .logo { color: #fff; }
footer a:hover, .nav-brand a:hover { color: #ff6a4d; }
.wordmark { margin: clamp(32px, 5vw, 64px) 0 -.2em -.05em; font: 600 min(20.5vw, 290px)/.9 var(--display); letter-spacing: -.055em; color: rgb(255 255 255 / .09); white-space: nowrap; user-select: none; }
.noscript { padding: 20px; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .edge { animation: draw 1.2s var(--ease) backwards; }
  .node circle { animation: arrive .6s var(--ease) calc(.25s + var(--i) * .07s) backwards; }
  .instrument.scan .node circle { animation: beat 1.5s ease-in-out calc(var(--i) * .16s) infinite; }
  .node.lit circle { animation: pop .5s var(--ease); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .instrument.scan .trace { stroke-dasharray: none; } }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 20px; }
  .instrument { justify-self: center; max-width: 480px; scroll-margin-top: 80px; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .workbench { grid-template-columns: minmax(0, 1fr); }
  .bench { position: static; max-height: none; min-height: 60svh; margin: 8px 0; overflow-anchor: none; }
}
@media (max-width: 520px) {
  .target-line { flex-direction: column; }
  .target-line input { flex: none; }
  .nav .button.small { padding: 10px 14px; } .nav-brand, .nav-actions { gap: 10px; }
  .node .tag, .core-label { font-size: 21px; }
  .fix { flex-direction: column; align-items: stretch; }
  .option { flex-wrap: wrap; } .tests-top { flex-direction: column; align-items: stretch; } .quick { flex: none; }
  .fixes li { grid-template-columns: 40px minmax(0, 1fr); padding: 18px; } .fixes .ghost { grid-column: 2; justify-self: start; }
  summary, .rows li { padding-inline: 18px; }
}
