/* APITestCenter website. Same colour tokens as the app (AA contrast in both themes). */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #07090d;
  --panel: #0e1218;
  --panel-2: #141a22;
  --line: #232b38;
  --ink: #e8edf5;
  --mute: #8b97a8;
  --accent: #2ee6c7;
  --accent-ink: #04201b;
  --accent-dim: #10332e;
  --ok: #4ade80;
  --warn: #fbbf24;
  --shadow: 0 30px 80px -30px rgb(0 0 0 / 0.8);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --canvas: #f4f6f9;
    --panel: #ffffff;
    --panel-2: #eef1f6;
    --line: #d5dce6;
    --ink: #12151c;
    --mute: #5c6778;
    --accent: #08705f;
    --accent-ink: #ffffff;
    --accent-dim: #d4f3ec;
    --ok: #137333;
    --warn: #975300;
    --shadow: 0 30px 70px -35px rgb(16 24 40 / 0.35);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #f4f6f9;
  --panel: #ffffff;
  --panel-2: #eef1f6;
  --line: #d5dce6;
  --ink: #12151c;
  --mute: #5c6778;
  --accent: #08705f;
  --accent-ink: #ffffff;
  --accent-dim: #d4f3ec;
  --ok: #137333;
  --warn: #975300;
  --shadow: 0 30px 70px -35px rgb(16 24 40 / 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code, .mono { font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--canvas) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--mute); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.theme-btn { background: none; border: 1px solid var(--line); color: var(--mute); border-radius: 8px; width: 36px; height: 36px; cursor: pointer; font-size: 16px; }
.theme-btn:hover { color: var(--ink); border-color: var(--mute); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--panel); }
.btn-ghost:hover { border-color: var(--mute); }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; color: var(--accent); background: var(--accent-dim); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 auto 18px; max-width: 14ch; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--mute); max-width: 640px; margin: 0 auto 28px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { margin-top: 14px; font-size: 14px; color: var(--mute); }
.shot { margin: 48px auto 0; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); background: var(--panel); }
.shot .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.section-head p { color: var(--mute); margin: 0; font-size: 18px; }
.strip { padding: 24px 0; border-block: 1px solid var(--line); color: var(--mute); font-size: 15px; text-align: center; }
.strip strong { color: var(--ink); font-weight: 600; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--mute); font-size: 15px; }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); }
.icon svg { width: 22px; height: 22px; }

.row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.row:last-child { margin-bottom: 0; }
.row.flip { grid-template-columns: 1.35fr 1fr; }
.row.flip .row-text { order: 2; }
.row-text .step { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.row-text h3 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; line-height: 1.2; margin: 8px 0 12px; }
.row-text p { color: var(--mute); margin: 0 0 12px; }
.row-text ul { margin: 0; padding-left: 20px; color: var(--mute); }
.row-text li { margin: 4px 0; }
.row .shot { margin: 0; }
@media (max-width: 860px) { .row, .row.flip { grid-template-columns: 1fr; gap: 24px; } .row.flip .row-text { order: 0; } }

/* Download */
.downloads { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 860px; margin: 0 auto; }
.dl { display: flex; flex-direction: column; gap: 10px; }
.dl .btn { align-self: flex-start; margin-top: 6px; }
.note { max-width: 860px; margin: 20px auto 0; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--mute); font-size: 15px; }
.note strong { color: var(--ink); }
.soon { color: var(--mute); text-align: center; margin-top: 18px; font-size: 15px; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--mute); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--mute); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--mute); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer-row nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-row a { color: var(--mute); }
.footer-row a:hover { color: var(--ink); }

/* Simple pages */
.page { max-width: 760px; margin: 0 auto; padding: 64px 0; }
.page h1 { font-size: clamp(32px, 5vw, 44px); max-width: none; margin-bottom: 8px; }
.page h2 { font-size: 22px; margin-top: 36px; }
.page p, .page li { color: var(--mute); }
.page strong { color: var(--ink); }
