:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --text: #1a2027;
  --muted: #5a6672;
  --line: #e2e8ef;
  --accent: #1a5fd0;
  --accent-soft: #eaf1fd;
  --code-bg: #f0f4f8;
  --ok: #1a7f4b;
  --warn: #a8500a;
  --max: 62rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b;
    --bg-soft: #1a2027;
    --text: #e6ebf1;
    --muted: #9aa7b4;
    --line: #2a333d;
    --accent: #6ea8ff;
    --accent-soft: #17253c;
    --code-bg: #1e262f;
    --ok: #57c78a;
    --warn: #e0a04a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .inner,
main,
footer.site .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

header.site .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
  font-size: 1.05rem;
}

.brand span { color: var(--muted); font-weight: 500; }

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  margin-left: 1.2rem;
}

nav a:hover, nav a[aria-current="page"] { color: var(--accent); }

main { padding-top: 2.5rem; padding-bottom: 4rem; }

h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2.4rem 0 0.6rem;
  letter-spacing: -0.01em;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

h3 { font-size: 1.02rem; margin: 1.6rem 0 0.4rem; }

.lede { color: var(--muted); font-size: 1.08rem; max-width: 46rem; }

.meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

code { background: var(--code-bg); padding: 0.15em 0.4em; border-radius: 4px; }

pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  line-height: 1.55;
}

pre code { background: none; padding: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.94rem;
  display: block;
  overflow-x: auto;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { background: var(--bg-soft); font-weight: 600; white-space: nowrap; }

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
}

.card.accent { background: var(--accent-soft); border-color: transparent; }

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

ul.checks { list-style: none; padding: 0; }

ul.checks li {
  padding-left: 1.6rem;
  position: relative;
  margin: 0.5rem 0;
}

ul.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

dl.kv { margin: 0; }
dl.kv dt { font-weight: 600; margin-top: 0.9rem; }
dl.kv dd { margin: 0.15rem 0 0; color: var(--muted); }

footer.site {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

footer.site a { color: var(--muted); }
footer.site .inner { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
footer.site .inner p { margin: 0; }
footer.site nav { margin-left: auto; }
footer.site nav a { margin-left: 0; margin-right: 1.2rem; }

/* ---------- Request access modal ---------- */

.ap-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 16, 22, 0.62);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem;
  overflow-y: auto;
  z-index: 100;
}

.ap-overlay[hidden] { display: none; }

.ap-panel {
  position: relative;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  width: 100%;
  max-width: 44rem;
  padding: 2rem 2rem 1.6rem;
}

.ap-panel h2 { border: 0; margin: 0 0 0.4rem; font-size: 1.4rem; }
.ap-lede { color: var(--muted); margin: 0 0 1.4rem; font-size: 0.95rem; }

.ap-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}
.ap-close:hover { color: var(--text); background: var(--bg-soft); }

.ap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.9rem 1.2rem;
}

.ap-field { display: flex; flex-direction: column; min-width: 0; }
.ap-field--wide { grid-column: 1 / -1; }

.ap-field label,
.ap-consent label {
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.ap-req { color: #c0392b; }
@media (prefers-color-scheme: dark) { .ap-req { color: #ff8a80; } }

.ap-field input,
.ap-field textarea {
  font: inherit;
  font-size: 0.94rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  width: 100%;
}

.ap-field input:focus,
.ap-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.ap-field .ap-invalid,
.ap-field input.ap-invalid,
.ap-field textarea.ap-invalid { border-color: #c0392b; }

.ap-field textarea { resize: vertical; }

.ap-help { color: var(--muted); font-size: 0.78rem; margin: 0.3rem 0 0; }

.ap-err {
  color: #c0392b;
  font-size: 0.78rem;
  margin: 0.25rem 0 0;
  min-height: 0;
}
@media (prefers-color-scheme: dark) { .ap-err { color: #ff8a80; } }
.ap-err:empty { display: none; }

/* Honeypot: off-screen, never focusable in practice. */
.ap-pot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ap-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.6rem;
  align-items: start;
  margin: 1.2rem 0 0;
}
.ap-consent input { margin-top: 0.28rem; }
.ap-consent label { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.ap-consent .ap-err { grid-column: 2; }

.ap-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.ap-status { margin: 0 auto 0 0; font-size: 0.85rem; color: var(--muted); }
.ap-status--error { color: #c0392b; }
@media (prefers-color-scheme: dark) { .ap-status--error { color: #ff8a80; } }

.ap-btn {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
}
.ap-btn:hover { filter: brightness(1.08); }
.ap-btn[disabled] { opacity: 0.6; cursor: default; }

.ap-btn--ghost {
  background: none;
  color: var(--muted);
  border-color: var(--line);
}
.ap-btn--ghost:hover { color: var(--text); background: var(--bg-soft); filter: none; }

.ap-done { text-align: center; padding: 1.5rem 0 0.5rem; }
.ap-done h2 { justify-content: center; }
.ap-done p { color: var(--muted); }
.ap-ref code { font-size: 0.95em; }

.ap-tick {
  width: 3rem;
  height: 3rem;
  line-height: 3rem;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ok);
  font-size: 1.5rem;
}

/* Page-level call to action */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}
.cta p { margin: 0; margin-right: auto; max-width: 34rem; }
.cta strong { display: block; margin-bottom: 0.2rem; }

a.ap-btn { text-decoration: none; display: inline-block; }
.ap-js .ap-nojs { display: none; }

.ap-nav-cta {
  padding: 0.35rem 0.85rem;
  font-size: 0.86rem;
  margin-left: 1.2rem;
}
@media (max-width: 46rem) {
  header.site nav { display: flex; flex-wrap: wrap; gap: 0.4rem 0; }
  nav a { margin-left: 0; margin-right: 1.1rem; }
  .ap-nav-cta { margin-left: 0; }
  .ap-panel { padding: 1.5rem 1.2rem 1.2rem; }
}

/* ================= Landing page ================= */

.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(58rem 30rem at 78% -30%, var(--accent-soft), transparent 65%),
    var(--bg);
  padding: 4rem 0 0;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.1rem, 1.2rem + 3vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 0.9rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 1.7rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero-note { font-size: 0.8rem; color: var(--muted); margin: 0.9rem 0 0; }

.ap-btn--lg { padding: 0.7rem 1.5rem; font-size: 0.98rem; }

/* Product shot */

.shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.04), 0 20px 44px rgba(16, 24, 40, 0.10);
}
@media (prefers-color-scheme: dark) { .shot { box-shadow: none; } }

.shot-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.shot-bar span { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--line); }

.shot-body { padding: 1rem; }

.shot-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.shot-tiles div {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 0.6rem 0.55rem;
  text-align: center;
}
.shot-tiles b { display: block; font-size: 0.95rem; letter-spacing: -0.02em; }
.shot-tiles i { font-style: normal; font-size: 0.63rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.shot-rows { margin-top: 0.9rem; display: grid; gap: 0.55rem; }
.shot-rows div {
  display: grid;
  grid-template-columns: 6.5rem 1fr 3.2rem;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.72rem;
  color: var(--muted);
}
.shot-rows div span:last-child { text-align: right; }
.shot-rows em {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.45;
  width: var(--w);
}

/* Platforms strip */

.platforms {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 1.3rem 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.6rem;
}
.platforms > span { font-size: 0.82rem; color: var(--muted); }
.platforms ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.platforms li {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}

/* Spec band */

.specband { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.specband-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.9rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  text-align: center;
}
.specband b {
  display: block;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.specband i { font-style: normal; font-size: 0.8rem; color: var(--muted); }

/* Sections */

.section-title {
  font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.8rem);
  border: 0;
  padding: 0;
  margin: 3.4rem 0 0.5rem;
  letter-spacing: -0.025em;
}
main > .section-title:first-child { margin-top: 0.5rem; }

.section-sub { color: var(--muted); max-width: 52ch; margin: 0 0 1.2rem; }

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.feature {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.3rem 1.35rem;
}

.feature svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.65rem;
}

.feature h3 { margin: 0 0 0.3rem; font-size: 0.98rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.89rem; }

/* Showcase */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 3.4rem;
}
.showcase p a { font-weight: 600; text-decoration: none; }
.showcase p a:hover { text-decoration: underline; }

.url-anatomy {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}

.url-anatomy-head {
  padding: 0.55rem 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.url-anatomy pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  font-size: 0.8rem;
  padding: 1.1rem 1rem;
}

.u-host { color: var(--muted); }
.u-key { color: var(--accent); font-weight: 700; }
.u-val {
  color: var(--ok);
  font-weight: 700;
  background: color-mix(in srgb, var(--ok) 13%, transparent);
  border-radius: 3px;
  padding: 0.05em 0.2em;
}
.u-dim { color: var(--muted); }

/* Compliance ribbon */

.ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-top: 3.4rem;
  background: var(--bg-soft);
}
.ribbon > div { flex: 1 1 24rem; }
.ribbon h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.ribbon p { margin: 0; color: var(--muted); font-size: 0.89rem; max-width: 60ch; }

@media (max-width: 52rem) {
  .hero-split, .showcase { grid-template-columns: 1fr; }
  .hero { padding-top: 2.8rem; }
  .specband-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 34rem) {
  .shot-tiles { grid-template-columns: repeat(2, 1fr); }
  .shot-rows div { grid-template-columns: 5rem 1fr 2.8rem; }
}

.shot-wrap { margin: 0; }
.shot-wrap figcaption {
  margin-top: 0.6rem;
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
}
