@font-face { font-family: "Plex"; src: url(fonts/IBMPlexSans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url(fonts/IBMPlexSans-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/JetBrainsMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

/* Tokens: the app's OKLCH values (src/index.css), light and dark. Dark follows the system unless the
   theme switch set data-theme on <html>. */
:root {
  color-scheme: light;
  --bg: oklch(0.985 0.006 255); --panel: oklch(0.965 0.010 255); --raised: oklch(0.997 0.003 255);
  --line: oklch(0.90 0.010 255); --line2: oklch(0.78 0.010 255);
  --muted: oklch(0.50 0.010 255); --text2: oklch(0.32 0.012 255); --text: oklch(0.22 0.015 255);
  --accent: oklch(0.50 0.14 255); --accent-hover: oklch(0.45 0.14 255); --on-accent: #ffffff;
  --link: oklch(0.45 0.14 255);
  --sec-fill: oklch(0.95 0.0241 255); --sec-line: oklch(0.80 0.0599 255); --sec-ink: oklch(0.45 0.1299 255);
  --trace-a: oklch(0.58 0.16 270); --trace-b: oklch(0.58 0.1052 180); --trace-c: oklch(0.58 0.16 0);
  --marker: oklch(0.62 0.17 20);
  --sans: "Plex", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Plex", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: oklch(0.17 0.016 255); --panel: oklch(0.20 0.016 255); --raised: oklch(0.24 0.016 255);
    --line: oklch(0.31 0.016 255); --line2: oklch(0.42 0.016 255);
    --muted: oklch(0.72 0.016 255); --text2: oklch(0.86 0.012 255); --text: oklch(0.93 0.010 255);
    --accent: oklch(0.78 0.113 255); --accent-hover: oklch(0.84 0.09 255); --on-accent: oklch(0.17 0.016 255);
    --link: oklch(0.80 0.10 255);
    --sec-fill: oklch(0.30 0.0499 255); --sec-line: oklch(0.45 0.0799 255); --sec-ink: oklch(0.88 0.0596 255);
    --trace-a: oklch(0.75 0.12 270); --trace-b: oklch(0.75 0.11 180); --trace-c: oklch(0.75 0.12 0);
    --marker: oklch(0.75 0.14 20);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.17 0.016 255); --panel: oklch(0.20 0.016 255); --raised: oklch(0.24 0.016 255);
  --line: oklch(0.31 0.016 255); --line2: oklch(0.42 0.016 255);
  --muted: oklch(0.72 0.016 255); --text2: oklch(0.86 0.012 255); --text: oklch(0.93 0.010 255);
  --accent: oklch(0.78 0.113 255); --accent-hover: oklch(0.84 0.09 255); --on-accent: oklch(0.17 0.016 255);
  --link: oklch(0.80 0.10 255);
  --sec-fill: oklch(0.30 0.0499 255); --sec-line: oklch(0.45 0.0799 255); --sec-ink: oklch(0.88 0.0596 255);
  --trace-a: oklch(0.75 0.12 270); --trace-b: oklch(0.75 0.11 180); --trace-c: oklch(0.75 0.12 0);
  --marker: oklch(0.75 0.14 20);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-feature-settings: "ss02"; font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, pre { margin: 0; }
h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; font-weight: 600; letter-spacing: -0.01em; max-width: 22ch; }
h2 { font-size: 34px; line-height: 1.15; font-weight: 600; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 600; }
.mono { font-family: var(--mono); font-weight: 400; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.grow { flex: 1 1 auto; }
.body, .lead { color: var(--text2); }
.fine { font-size: 13px; color: var(--muted); }
.fine a { color: var(--muted); }
.fine a:hover { color: var(--text); }

/* nav */
.bar { border-bottom: 1px solid var(--line); }
.bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--text); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand-mark .m { stroke: var(--accent); }
.brand-mark .k { fill: var(--marker); stroke: var(--marker); }
.pill { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.nav > a:not(.btn) { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; color: var(--muted); font-size: 15px; text-decoration: none; }
.nav > a:not(.btn):hover { color: var(--text); }
.theme-switch { height: 36px; padding: 0 12px; border: 1px solid var(--line); background: var(--raised); color: var(--text); border-radius: 6px; font: inherit; font-size: 14px; cursor: pointer; }
.no-js .theme-switch { display: none; }

/* buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent; background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-2 { background: var(--sec-fill); border-color: var(--sec-line); color: var(--sec-ink); }
.btn-2:hover { background: var(--sec-fill); border-color: var(--sec-ink); color: var(--sec-ink); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 15px; }

/* hero */
.hero { display: flex; flex-direction: column; gap: 32px; padding-top: 64px; padding-bottom: 24px; }
.intro { display: flex; flex-direction: column; gap: 18px; max-width: 880px; }
.kicker { font-size: 13px; color: var(--muted); }
.lead { font-size: 19px; max-width: 62ch; }
.audience { font-size: 15px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }

/* "In the demo" card: right column from 1100 px, under the intro below that */
.hero-top { display: flex; flex-direction: column; gap: 32px; }
.demo-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); }
.demo-card h2 { font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--muted); }
.demo-files { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.demo-files li { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "ext name" "ext desc"; column-gap: 12px; row-gap: 2px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.demo-files li:first-child { border-top: 0; padding-top: 0; }
.demo-ext { grid-area: ext; justify-self: start; padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); font-size: 12.5px; color: var(--accent); }
.demo-name { grid-area: name; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.demo-desc { grid-area: desc; font-size: 14px; color: var(--muted); }
.demo-counts { font-size: 14px; color: var(--muted); }
.demo-try { align-self: flex-start; font-size: 15px; font-weight: 600; }
@media (min-width: 1100px) {
  .hero-top { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 48px; align-items: start; }
  /* top of the card level with the top of the headline: below the eyebrow line and the intro's gap */
  .demo-card { margin-top: calc(13px * 1.55 + 18px); }
}

/* live frame: the real app in an iframe (wide screens), a poster under it, the poster alone below 1024 px */
.live { display: flex; flex-direction: column; gap: 12px; }
.live-frame { position: relative; overflow: hidden; border: 1px solid var(--line2); border-radius: 10px; background: var(--line); aspect-ratio: 16 / 10; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: opacity 0.4s ease; }
.poster-dark { display: none; }
:root[data-theme="dark"] .poster-light { display: none; }
:root[data-theme="dark"] .poster-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .poster-light { display: none; }
  :root:not([data-theme="light"]) .poster-dark { display: block; }
}
.live-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.4s ease; }
.live-frame.is-loaded iframe { opacity: 1; }
.live-frame.is-loaded .poster { opacity: 0; }
.live-caption { font-size: 14px; color: var(--muted); }
.live-wide { display: none; }
@media (min-width: 1024px) {
  .live-frame { aspect-ratio: auto; height: clamp(640px, 50vw, 720px); }
  .live-wide { display: block; }
  .live-narrow { display: none; }
}

/* moving waveform bands (time-domain captures) */
.wave { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; margin-bottom: 40px; }
.wave-box { position: relative; height: 32px; overflow: hidden; }
.wave-zero { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line2); opacity: 0.7; }
.wave-track { position: absolute; top: 0; left: 0; width: 200%; height: 100%; animation: roll 40s linear infinite; }
.wave-track svg, .wave-ghost, .wave-live { width: 100%; height: 100%; }
.wave-ghost, .wave-live { position: absolute; inset: 0; }
.wave-ghost { opacity: 0.28; }
.wave-live { animation: sweep 7s linear infinite; }
.wave-label { align-self: flex-end; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.wave-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
@keyframes roll { to { transform: translateX(-50%); } }
@keyframes sweep { 0% { clip-path: inset(0 100% 0 0); } 80%, 100% { clip-path: inset(0 0 0 0); } }

/* sections */
.section { display: flex; flex-direction: column; gap: 28px; padding-top: 24px; padding-bottom: 72px; }
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .section { padding-top: 72px; }
.band-end { border-bottom: 0; }
.sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 48px; }
.sub h2 { flex: 1 1 420px; }
.sub .body { flex: 1 1 420px; font-size: 17px; }

/* files */
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row-head { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-head .ext { font-size: 15px; color: var(--accent); }
.row-head p { font-size: 15px; color: var(--text2); }
.raw { flex: 1 1 340px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--text2); overflow-x: auto; white-space: pre; }
.arrow { flex: none; }
.arrow path { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chips { flex: 1 1 260px; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 3px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--raised); font-size: 14px; }
.after { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.after span { color: var(--text2); }

/* analysis */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); }
.card-k { font-size: 13px; font-weight: 600; color: var(--muted); }
.card-v { font-size: 40px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-v small { font-size: 20px; font-weight: 400; color: var(--muted); }
.card-trace { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.card-d { font-size: 13px; color: var(--text2); }
.groups { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.groups > div { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.groups h3 { font-size: 13px; color: var(--muted); }
.groups p { font-size: 15px; }
.more { font-size: 15px; align-self: flex-start; }

/* export */
.exports { display: flex; flex-wrap: wrap; gap: 20px; }
.exports figure { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ex-svg { flex: 1 1 480px; }
.ex-tex { flex: 1 1 420px; }
.paper { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; }
.paper img { width: 100%; height: auto; }
.tex { flex: 1 1 auto; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--text2); overflow-x: auto; white-space: pre; }
figcaption { font-size: 14px; color: var(--muted); }
figcaption b { font-weight: 600; color: var(--text); }

/* privacy */
.private { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; padding-top: 72px; padding-bottom: 72px; }
.private-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.private-head { display: flex; align-items: center; gap: 14px; }
.private-head svg { flex: none; color: var(--accent); }
.pfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px; }
.pfacts > div { display: flex; flex-direction: column; gap: 6px; }
.pfacts h3 { font-size: 16px; }
.pfacts p, .private-text > .body { font-size: 15px; color: var(--text2); }
.netpanel { flex: 1 1 360px; min-width: 0; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; background: var(--raised); font-size: 12.5px; }
.np-tabs, .np-cols { display: flex; gap: 16px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.np-tabs .on { color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.np-cols { gap: 12px; padding: 6px 12px; }
.np-name { flex: 1; }
.np-w { width: 64px; }
.np-r { text-align: right; }
.np-empty { padding: 44px 12px; text-align: center; color: var(--muted); }
.np-foot { padding: 6px 12px; border-top: 1px solid var(--line); color: var(--text); }

/* closing and footer */
.closing { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding-top: 72px; padding-bottom: 48px; border-top: 1px solid var(--line); }
.closing-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.closing-text h2 { font-size: 28px; line-height: 1.2; }
.closing-text .body { font-size: 15px; }
.closing-side { display: flex; flex-direction: column; gap: 10px; }
.foot { border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); }
.foot-nav a:hover { color: var(--text); }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 32px; gap: 24px; }
  h2 { font-size: 26px; }
  .lead { font-size: 17px; }
  .nav > a:not(.btn) { padding: 0 8px; }
  .buttons { width: 100%; }
  .buttons .btn { flex: 1 1 auto; }
  .wave-track { width: 400%; }
  .section { padding-bottom: 56px; }
  .band .section, .private { padding-top: 56px; padding-bottom: 56px; }
  .arrow { transform: rotate(90deg); }
  .card-v { font-size: 34px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .sub h2, .sub .body, .row-head, .raw, .chips, .ex-svg, .ex-tex, .private-text, .netpanel, .closing-text, .groups > div { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wave-track, .wave-live { animation: none; }
  .wave-ghost { display: none; }
  .poster, .live-frame iframe { transition: none; }
}
