/* Deeplink Checker — site stylesheet. No build step, no JavaScript. */

:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --text: #0f1720;
  --muted: #5b6673;
  --border: #dbe2ea;
  --accent: #0088ff;
  --accent-ink: #0a6fd6;
  --grad-a: #56ccf2;
  --grad-b: #2f80ed;
  --ok-bg: #e3f6ea; --ok-fg: #14733a;
  --warn-bg: #fff2d9; --warn-fg: #8a5a00;
  --bad-bg: #fde4e4; --bad-fg: #a02020;
  --pro-bg: #eaf3ff; --pro-fg: #0a6fd6;
  --shadow: 0 10px 30px rgba(16, 40, 80, 0.10);
  --radius: 16px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1017;
    --surface: #141b24;
    --surface-2: #1b242f;
    --text: #eef2f6;
    --muted: #9aa7b5;
    --border: #273241;
    --accent: #3b9dff;
    --accent-ink: #6fb6ff;
    --grad-a: #00c6ff;
    --grad-b: #0072ff;
    --ok-bg: #123524; --ok-fg: #7ee2a3;
    --warn-bg: #3a2b0c; --warn-fg: #ffd27a;
    --bad-bg: #3d1717; --bad-fg: #ff9c9c;
    --pro-bg: #14304f; --pro-fg: #8cc4ff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1017;
  --surface: #141b24;
  --surface-2: #1b242f;
  --text: #eef2f6;
  --muted: #9aa7b5;
  --border: #273241;
  --accent: #3b9dff;
  --accent-ink: #6fb6ff;
  --grad-a: #00c6ff;
  --grad-b: #0072ff;
  --ok-bg: #123524; --ok-fg: #7ee2a3;
  --warn-bg: #3a2b0c; --warn-fg: #ffd27a;
  --bad-bg: #3d1717; --bad-fg: #ff9c9c;
  --pro-bg: #14304f; --pro-fg: #8cc4ff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; padding: 6px 10px; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.badge-link { display: inline-block; vertical-align: middle; }
.badge-link img { height: 52px; width: auto; }
.badge-link:hover { text-decoration: none; opacity: 0.9; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 24px 0 12px; }
.fineprint { font-size: 0.9rem; color: var(--muted); }
.gradient-text {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Mock report card */
.device {
  background: linear-gradient(150deg, var(--grad-a), var(--grad-b));
  border-radius: 28px; padding: 22px; box-shadow: var(--shadow); min-width: 0;
}
.card {
  background: var(--surface); color: var(--text);
  border-radius: 18px; padding: 18px; border: 1px solid var(--border); min-width: 0; overflow: hidden;
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.card-head strong { font-size: 1.05rem; }
.card-head span { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); min-width: 0; }
.row code {
  font: 0.82rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.row small { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 2px; }
.pill { flex: none; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok-fg); }
.pill-warn { background: var(--warn-bg); color: var(--warn-fg); }
.pill-bad { background: var(--bad-bg); color: var(--bad-fg); }
.card-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 0.75rem; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--border); margin-top: 4px; }

/* Sections */
section { padding: 48px 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step p { margin: 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.feature h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.feature .glyph { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); }
.feature .glyph svg { width: 22px; height: 22px; }
.tag { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--pro-bg); color: var(--pro-fg); }

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.tier.pro { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.tier h3 { display: flex; align-items: center; gap: 10px; }
.tier ul { margin: 0; padding-left: 0; list-style: none; }
.tier li { padding: 6px 0 6px 28px; position: relative; color: var(--text); }
.tier li::before { content: "✓"; position: absolute; left: 4px; top: 6px; color: var(--accent); font-weight: 800; }

.cta-band { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff; border-radius: 24px; padding: 40px 28px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 36em; margin: 0 auto 20px; }

.explain { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* An odd number of articles: the last one spans both columns instead of leaving a hole. */
.explain article:last-child:nth-child(odd) { grid-column: 1 / -1; }
.explain article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.explain h3 { margin-bottom: 6px; }
.explain p { margin: 0; color: var(--muted); }
.explain code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
#faq .section-head { margin-bottom: 12px; }
#faq details p { color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0 48px; margin-top: 24px; font-size: 0.92rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-inner > div:first-child { max-width: 64ch; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* Document pages (privacy, terms, support) */
.doc { padding-top: 40px; padding-bottom: 24px; }
.doc-header { margin-bottom: 32px; }
.doc-meta { color: var(--muted); font-size: 0.95rem; }
.doc h2 { font-size: 1.35rem; margin-top: 2.2em; padding-top: 0.4em; }
.doc h3 { font-size: 1.05rem; margin-top: 1.6em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 0.35em 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 10px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.doc .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 18px; margin: 1.2em 0; }
.callout p:last-child { margin-bottom: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 1.5em 0 2em; }
.toc ol { margin: 0; columns: 2; column-gap: 24px; }
.toc li { break-inside: avoid; }
.contact-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 1.4em; }
.contact-box .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 4px; }
.email { font-weight: 700; word-break: break-all; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 2px; top: 10px; color: var(--muted); font-size: 1.3rem; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p, details ol, details ul { margin-top: 0; }
details > *:not(summary) { padding-bottom: 6px; }
details > :last-child { padding-bottom: 16px; }

/* Not found */
.notfound { text-align: center; padding-top: 80px; padding-bottom: 80px; }
.notfound .hero-icon { margin: 0 auto 20px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 36px 0 24px; }
  .features, .steps, .tiers, .explain { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .nav-links a { padding: 6px 8px; font-size: 0.9rem; }
  .device { padding: 14px; border-radius: 22px; }
  .badge-link img { height: 48px; }
  section { padding: 36px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
