/* testryve.com. Tokens from the Testryve design system (brand kit v1); dark values follow the OS setting. */

@font-face { font-family: "Space Grotesk"; src: url("space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --bg-page: #f6f7fb;
  --bg-panel: #ffffff;
  --bg-subtle: #eef0f5;
  --bg-inverse: #0b1220;
  --border: #e5e7eb;
  --text: #0b1220;
  --text-secondary: #374151;
  --text-muted: #4b5563;
  --brand: #15803d;
  --brand-tint: #dcfce7;
  --accent: #2563eb;
  --status-pass: #15803d;
  --status-pass-bg: #dcfce7;
  --status-fail: #b91c1c;
  --status-fail-bg: #fee2e2;
  --status-run: #1d4ed8;
  --status-run-bg: #dbeafe;
  --focus-ring: #2563eb;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg-page: #0b1220;
    --bg-panel: #121a2b;
    --bg-subtle: #1a2336;
    --bg-inverse: #f6f7fb;
    --border: #273247;
    --text: #f6f7fb;
    --text-secondary: #c3cad6;
    --text-muted: #9ca3af;
    --brand: #4ade80;
    --brand-tint: #14532d;
    --accent: #93c5fd;
    --status-pass: #4ade80;
    --status-pass-bg: #14532d;
    --status-fail: #fca5a5;
    --status-fail-bg: #450a0a;
    --status-run: #93c5fd;
    --status-run-bg: #1e3a8a;
    --focus-ring: #93c5fd;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg-page); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 2px; }
img, svg { max-width: 100%; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: max(24px, 4vw); }

.top { padding-block: 32px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top .home { display: block; line-height: 0; }
.top img { height: 44px; width: auto; }

main.wrap { padding-block: 64px 48px; display: flex; flex-direction: column; gap: 72px; flex-grow: 1; }
section { min-width: 0; }

.label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.label.brand { color: var(--brand); }
.mono { font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--text-muted); }
.muted { font-size: 13px; line-height: 18px; color: var(--text-muted); }

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { margin: 0; font-family: var(--font-display); font-size: 48px; line-height: 52px; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.lead { margin: 0; max-width: 34em; color: var(--text-secondary); }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); background: currentColor; }
.badge.run { background: var(--status-run-bg); color: var(--status-run); }
.badge.pass { background: var(--status-pass-bg); color: var(--status-pass); padding-block: 2px; }
.badge.fail { background: var(--status-fail-bg); color: var(--status-fail); padding-block: 2px; }

.pulse-art { display: block; width: 100%; height: auto; }
.pulse-art .brand { fill: var(--brand); }
.pulse-art .ink { fill: var(--bg-inverse); }
.pulse-art .tint { fill: var(--brand-tint); }
.pulse-art .accent { fill: var(--accent); }
.pulse-art .pulse { fill: none; stroke: var(--bg-page); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; border-top: 1px solid var(--border); padding-top: 40px; }
.item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.item h3 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; }
.item p { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }

.ai { display: flex; flex-direction: column; gap: 32px; border-top: 1px solid var(--border); padding-top: 48px; }
.ai-head { display: flex; flex-direction: column; gap: 8px; max-width: 40em; }
.ai-head h2 { margin: 0; font-family: var(--font-display); font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.ai-head p { margin: 0; color: var(--text-secondary); }
.ai-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: start; }
.ai-list { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.chip { align-self: flex-start; font-family: var(--font-mono); font-size: 12px; line-height: 16px; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--text); }

.session { margin: 0; min-width: 0; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.session figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.session figcaption span:last-child { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.session pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 30px; color: var(--text-secondary); }
.session .who-agent { color: var(--accent); }
.session .who-app { color: var(--brand); }

footer.wrap { padding-block: 0 32px; }
.foot { padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); }
