:root {
  /* One dark look, matching the LinkedIn banner: near-black ground, acid green, yellow, white. */
  --bg: #0d0f0c;
  --surface: #151813;
  --surface-2: #1b1e18;
  --text: #f2f4ec;
  --heading: #f6f7f0;
  --muted: #a7ab9f;
  --faint: #878b80;
  --line: #282c23;
  --accent: #b6ff2e;
  --accent-ink: #0d0f0c;
  --highlight: #ffe14d;
  --stage: #1b1e18;
  --radius: 14px;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, .brand, .kpi b, .steps b { font-family: var(--font-display); color: var(--heading); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.02; margin: 0 0 1rem; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.1; margin: 0 0 .9rem; letter-spacing: -0.015em; text-wrap: balance; }
h3 { font-size: 1.1rem; margin: 0 0 .35rem; }
p { margin: 0 0 .8rem; }
.hl { color: var(--highlight); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.fine { font-size: .85rem; color: var(--faint); }
.sub { color: var(--muted); max-width: 46rem; font-size: 1.05rem; }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .7rem; }
.link { color: var(--accent); text-underline-offset: 3px; }
.link:hover { color: var(--highlight); }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 50;
  background: var(--accent); color: var(--accent-ink); padding: .5rem .8rem; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
  padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent);
  color: var(--accent-ink); font: 600 1rem var(--font-display); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--highlight); border-color: var(--highlight); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-small { min-height: 38px; padding: .4rem 1rem; font-size: .92rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { font-weight: 700; letter-spacing: -0.01em; text-decoration: none; font-size: 1.1rem; }
.top nav { display: flex; align-items: center; gap: 1.4rem; font-size: .95rem; }
.top nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.top nav a:not(.btn):hover { color: var(--accent); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; cursor: pointer; place-items: center; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: var(--text);
  position: relative; transition: transform .2s, background .2s; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding-top: clamp(2rem, 6vw, 4.5rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }

/* Before/after slider */
.slider { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--stage);
  aspect-ratio: 4 / 3; user-select: none; border: 1px solid var(--line); }
.slider img { width: 100%; height: 100%; object-fit: cover; }
.slider-after-clip { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 50%)); }
.slider-handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: var(--accent);
  pointer-events: none; }
.slider-handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--accent); color: var(--accent-ink); border-radius: 999px; width: 38px; height: 38px;
  display: grid; place-items: center; font-size: 17px; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.slider-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.tag { position: absolute; top: 10px; padding: 3px 9px; border-radius: 6px; font-size: .78rem;
  background: rgba(0,0,0,.6); color: #fff; pointer-events: none; font-variant-numeric: tabular-nums; }
.tag-left { left: 10px; }
.tag-right { right: 10px; }
.tag-hl { color: var(--highlight); }

/* KPI row */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: .15rem; }
.kpi b { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.kpi span { color: var(--heading); font-weight: 500; }
.kpi small { color: var(--faint); font-size: .82rem; }

/* Sections */
.section { padding-top: clamp(4rem, 9vw, 6.5rem); }

/* Results */
.table-scroll { overflow-x: auto; margin: 1.6rem 0 2rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.summary { min-width: 720px; font-size: .93rem; }
table th, table td { text-align: right; padding: .7rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table th:first-child, table td:first-child { text-align: left; }
table.summary td:first-child small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.after-cards { margin-top: 1rem; }
table thead th { color: var(--faint); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; line-height: 1.35; vertical-align: bottom; }
table tbody tr:last-child td { border-bottom: 0; }
table.summary td:first-child { color: var(--heading); font-weight: 600; }
.down { color: var(--accent); font-size: .8rem; margin-left: .35rem; }
.arrow { color: var(--faint); margin: 0 .25rem; }
.approach { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; }
.card .slider { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem .8rem; }
.card-head h3 { margin: 0; font-size: 1.2rem; }
.badge { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.card-body > p { color: var(--muted); font-size: .95rem; margin: 0; }
table.lods { font-size: .88rem; }
table.lods th, table.lods td { padding: .45rem .5rem; }
.card .credit { font-size: .78rem; color: var(--faint); margin: 0; }

/* Viewer */
.viewer-gate { position: relative; margin-top: 1.6rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--stage); aspect-ratio: 16 / 9; }
.viewer-gate img { width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: blur(2px); }
.viewer-gate-box { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: .5rem; text-align: center; padding: 1rem; }
.viewer-shell { display: grid; grid-template-columns: 1fr 280px; gap: 1rem; margin-top: 1.6rem; }
.viewer-shell[hidden] { display: none; }
.viewer-canvas { position: relative; background: var(--stage); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 10; touch-action: none; border: 1px solid var(--line); }
.viewer-canvas canvas { display: block; width: 100%; height: 100%; }
.split-handle { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); cursor: ew-resize; z-index: 2; }
.split-handle::before { content: ""; position: absolute; inset: 0 -12px; }
.viewer-hud { position: absolute; left: 10px; bottom: 10px; color: #fff; font-size: .85rem; background: rgba(0,0,0,.55);
  padding: 4px 9px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.viewer-controls { display: flex; flex-direction: column; gap: .9rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.viewer-controls label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--muted); }
.viewer-controls select, .form input, .form select, .form textarea { font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; min-height: 44px; width: 100%; }
.toggles { display: flex; flex-direction: column; gap: .4rem; }
.toggles label { flex-direction: row; align-items: center; gap: .5rem; color: var(--text); font-size: .95rem; }
.toggles input { accent-color: var(--accent); width: 18px; height: 18px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: 8px; padding: .4rem .7rem; min-height: 38px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Tiles and grids */
.grid2, .grid3 { display: grid; gap: 1rem; margin-top: 1.6rem; }
.grid2 { grid-template-columns: repeat(2, 1fr); }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.tile p:last-child { margin: 0; color: var(--muted); }
.tile .eyebrow { margin-bottom: .4rem; }
.pill { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--highlight);
  border: 1px solid color-mix(in srgb, var(--highlight) 45%, transparent); border-radius: 999px; padding: 1px 9px; margin-bottom: .6rem; }
.callout { margin-top: 1.2rem; border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.callout-big { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.25;
  color: var(--heading); font-weight: 600; max-width: 44rem; }
.callout p:last-child { margin: 0; color: var(--muted); }

ul.cross { list-style: none; padding: 0; margin: 1.4rem 0; display: flex; flex-wrap: wrap; gap: .7rem; }
ul.cross li { font-family: var(--font-display); font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--heading);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; }
ul.cross li::before { content: "×"; color: var(--faint); margin-right: .5rem; }

ol.steps { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
ol.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
ol.steps b { display: block; font-size: 2.2rem; line-height: 1; color: var(--accent); margin-bottom: .8rem; }
ol.steps p { margin: 0; color: var(--muted); }
details.more { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.3rem; background: var(--surface); }
details.more[open] { padding-bottom: 1.2rem; }
details.more .grid2 { margin-top: .4rem; }
details.more p { color: var(--muted); }
summary { cursor: pointer; padding: 1rem 0; font-weight: 600; color: var(--heading); list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] > summary::after { content: "−"; }

.author { border-left: 3px solid var(--accent); padding-left: clamp(1rem, 3vw, 2rem); }

.faq { margin-top: 1.4rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details p { color: var(--muted); max-width: 46rem; padding-bottom: .6rem; }

/* Pilot form */
.pilot { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 20px; padding: clamp(1.3rem, 4vw, 2.5rem); }
.pilot-steps { padding-left: 1.2rem; margin: 1rem 0 1.2rem; color: var(--muted); }
.pilot-steps li { margin-bottom: .5rem; }
.pilot-steps b { color: var(--heading); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; align-content: start; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; color: var(--muted); }
.form .wide { grid-column: 1 / -1; }
.form textarea { resize: vertical; min-height: 96px; }
.form.was-validated :invalid { border-color: #ff6b5e; }
.form .fine { margin: 0; }

.foot { border-top: 1px solid var(--line); margin-top: clamp(4rem, 9vw, 6rem); padding: 1.6rem 0 3rem;
  font-size: .85rem; color: var(--faint); }
.foot p { margin: .25rem 0; }

/* Tablet */
@media (max-width: 980px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .viewer-shell { grid-template-columns: 1fr; }
  .grid3, ol.steps { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .top nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 16px 1rem; background: var(--bg); border-bottom: 1px solid var(--line); }
  .top nav.open { display: flex; }
  .top nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .top nav .btn { margin-top: .9rem; }
  .hero, .cards, .grid2, .pilot { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .viewer-canvas { aspect-ratio: 4 / 3; }
  .viewer-gate { aspect-ratio: 4 / 3; }
  .cta-row .btn { flex: 1 1 auto; }
  .kpi { padding: .9rem; }
  .card-body { padding: 1rem .9rem 1.1rem; }
  table.lods { font-size: .84rem; }
  table.lods th, table.lods td { padding: .4rem .3rem; }
  table.lods thead th { white-space: normal; }
  table.lods .down { display: block; margin-left: 0; }
}
