/* pliers.dev: dark technical identity. One theme by design.
   Contrast ratios are checked in test/contrast.test.mjs (WCAG 2.1 AA). */
:root {
  --paper: #0a0d12;         /* page background */
  --surface: #10151c;
  --surface-2: #161d27;
  --text: #e8edf4;
  --muted: #9ba8b8;
  --line: #232c39;
  --line-strong: #5e6b7d;   /* form borders (3:1 on surface) */
  --accent: #ff7a33;
  --accent-ink: #0a0d12;    /* text on accent */
  --accent-soft: #24160e;
  --ok: #5fe39a;
  --ok-bg: #0f2a1c;
  --warn: #ffd166;
  --warn-bg: #2e2508;
  --err: #ff8a8a;
  --err-bg: #331416;
  --ink-surface: #ff7a33;   /* logo tile */
  --accent-on-ink: #0a0d12;
  --paper-on-ink: #0a0d12;
  --focus: #8ab4ff;
  --radius: 12px;
  --wrap: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.6em; font-weight: 650; }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p, ul, ol { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.grad { background: linear-gradient(92deg, #ffb27a, var(--accent) 55%, #ff5a3c); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.15rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }
.section { padding: 5rem 0; position: relative; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; }
.prose > h2:first-child, .prose > .eyebrow + h2 { margin-top: 0; }

.eyebrow, .step-num { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; display: block; }
.eyebrow::before { content: "// "; opacity: 0.7; }

.skip { position: absolute; left: 1rem; top: -5rem; z-index: 50; background: var(--surface); color: var(--text); padding: 0.6rem 1rem; border: 2px solid var(--focus); border-radius: 6px; }
.skip:focus { top: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgb(10 13 18 / 0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; padding-block: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.logo-mark { color: var(--ink-surface); filter: drop-shadow(0 0 10px rgb(255 122 51 / 0.45)); }
.nav { display: flex; flex-wrap: wrap; gap: 0.1rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--muted); text-decoration: none; padding: 0.4rem 0; display: inline-block; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.header-cta { margin-left: auto; }
@media (max-width: 54rem) { .site-header nav { order: 3; width: 100%; } }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); padding: 0.75rem 1.3rem; border-radius: 10px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; min-height: 44px; box-shadow: 0 0 0 1px rgb(255 122 51 / 0.25), 0 8px 30px -8px rgb(255 122 51 / 0.6); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgb(255 122 51 / 0.4), 0 12px 36px -8px rgb(255 122 51 / 0.75); }
.button-quiet { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.button-quiet:hover { border-color: var(--text); box-shadow: none; }
.button-small { padding: 0.45rem 0.95rem; font-size: 0.92rem; min-height: 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; align-items: center; margin-top: 2rem; }
.arrow::after { content: " \2192"; }

/* Hero: grid lines and a glow */
.hero { position: relative; padding: 5.5rem 0 4.5rem; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 30%, transparent 78%); }
.hero::after { content: ""; position: absolute; width: 60rem; height: 34rem; left: 50%; top: -18rem; transform: translateX(-30%); pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 122 51 / 0.22), transparent); }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero-home { padding-top: 6.5rem; }

/* Fact strip */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { background: var(--paper); padding: 1.4rem 1.25rem; }
.facts strong { display: block; font-size: 2.1rem; letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.45rem; }
.facts span { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* Cards and grids */
.grid { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) and (max-width: 61.99rem) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
.card { position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: border-color 0.2s ease, transform 0.2s ease; }
.section-alt .card { background: linear-gradient(180deg, var(--surface-2), var(--paper)); }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--muted); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .step-num { margin-bottom: 0.9rem; }
.mt { margin-top: 2.5rem; }
.mt-s { margin-top: 1.75rem; }
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 62rem) { .split { grid-template-columns: 1fr 1fr; } }

.status { display: inline-block; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.15rem 0.55rem; border-radius: 999px; vertical-align: middle; }
.status-now, .tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-err { background: var(--err-bg); color: var(--err); }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.9rem; position: relative; margin-bottom: 0.9rem; color: var(--muted); }
.checklist li strong { color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 0.25rem; top: 0.55em; width: 0.75rem; height: 0.42rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; }

table { border-collapse: collapse; width: 100%; margin-bottom: 1.25rem; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-wrap table { margin: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }

code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.08em 0.35em; overflow-wrap: anywhere; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; overflow-x: auto; }
pre code { border: 0; padding: 0; background: none; color: var(--ok); }

/* Product panels (HTML, readable without JavaScript). Any figures are labelled example data. */
.ui { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.02), 0 40px 80px -30px rgb(0 0 0 / 0.9), 0 0 90px -30px rgb(255 122 51 / 0.35); font-size: 0.92rem; }
.ui-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.ui-dots { display: inline-flex; gap: 6px; }
.ui-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.ui-example { margin-left: auto; color: var(--warn); border: 1px solid var(--warn-bg); background: var(--warn-bg); border-radius: 999px; padding: 0.1rem 0.6rem; white-space: nowrap; }
.ui-body { padding: 1.15rem; display: grid; gap: 1rem; }
.ui-row { display: grid; gap: 1rem; }
@media (min-width: 30rem) { .ui-row { grid-template-columns: 0.8fr 1.2fr; } }
.ui-tile { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; background: var(--paper); }
.ui-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.7rem; }
.ui-score { display: flex; align-items: center; gap: 1rem; }
.ui-score svg { width: 92px; height: 92px; flex: none; }
.ui-score .track { fill: none; stroke: var(--line); stroke-width: 9; }
.ui-score .value { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; filter: drop-shadow(0 0 6px rgb(255 122 51 / 0.7)); }
.ui-big { font-size: 2.3rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.ui-big small { font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ui-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.ui-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.ui-list li + li { border-top: 1px solid var(--line); padding-top: 0.55rem; }
.ui-spark { width: 100%; height: 64px; display: block; }
.ui-spark .area { fill: rgb(255 122 51 / 0.14); }
.ui-spark .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ui-spark .gridline { stroke: var(--line); stroke-width: 1; }
.log { font-family: var(--mono); font-size: 0.82rem; line-height: 1.9; margin: 0; padding: 0; list-style: none; }
.log li { display: flex; gap: 0.75rem; align-items: baseline; }
.log .k { flex: none; width: 3.2rem; }
.log .ok { color: var(--ok); } .log .warn { color: var(--warn); } .log .err { color: var(--err); }
.log span:last-child { color: var(--muted); }

/* Pipeline */
.pipeline { display: grid; gap: 0.75rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 56rem) { .pipeline { grid-template-columns: repeat(5, 1fr); } }
.pipeline li { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; background: var(--paper); color: var(--muted); font-size: 0.92rem; position: relative; }
.pipeline li strong { display: block; color: var(--text); font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.35rem; }
.pipeline li::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: 0.72rem; color: var(--accent); display: block; margin-bottom: 0.5rem; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; padding: 3.5rem 1.5rem; text-align: center; background: radial-gradient(ellipse 70% 120% at 50% 0%, rgb(255 122 51 / 0.2), transparent 70%), var(--surface); }
.cta-band .lead { margin-inline: auto; }
.cta-band .actions { justify-content: center; }

/* FAQ */
.faq-item { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.25rem; }
.faq-item h3 { font-size: 1.1rem; }
.faq-item p { color: var(--muted); }

/* Forms */
form .field { margin-bottom: 1.2rem; }
label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="url"], select, textarea { width: 100%; max-width: 34rem; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 0.65rem 0.8rem; min-height: 46px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 7.5rem; max-width: 42rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
legend { font-weight: 600; margin-bottom: 0.4rem; }
.choice { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 400; margin-bottom: 0.4rem; }
.choice input { margin-top: 0.4rem; width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.25rem; font-size: 0.93rem; background: var(--surface); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.disclaimer { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 1.1rem; background: var(--paper); color: var(--muted); }
.footer-grid { display: grid; gap: 1.75rem; margin: 2.25rem 0; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.3rem; }
.footer-grid p { color: var(--muted); }
.footer-heading { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 0.8rem; font-weight: 600; }
.legal { color: var(--muted); font-size: 0.85rem; }

/* Consent notice (shown by consent.js only; with JavaScript off nothing is measured) */
.consent { position: fixed; inset: auto 1rem 1rem 1rem; max-width: 34rem; margin-left: auto; z-index: 40; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: 0 20px 60px rgb(0 0 0 / 0.7); }
.consent p { margin-bottom: 0.75rem; font-size: 0.93rem; }
.consent-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } .button:hover, .card:hover { transform: none; } }
@media print { .site-header, .consent, .skip { display: none; } body { background: #fff; color: #000; } }
