/* TrackerSonar website — one stylesheet, no external resources.
   Colors mirror the app's asset catalog (Brand #2A6DAE / dark #5AA9F0, icon blue #327CC0). */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f3f7fc;
  --surface-2: #e4effa;
  --text: #14202e;
  --muted: #4a5563;
  --border: #d3e0ee;
  --brand: #2a6dae;
  --brand-deep: #1d4f80;
  --on-brand: #ffffff;
  --link: #22609c;
  --safe: #177a4c;
  --safe-soft: #e3f5eb;
  --warning: #8a5100;
  --warning-soft: #fff1da;
  --tracked: #7b37b0;
  --tracked-soft: #f4eafb;
  --danger: #b42b25;
  --danger-soft: #fce6e4;
  --hero-1: #2a6dae;
  --hero-2: #17457a;
  --shadow: 0 1px 2px rgb(16 40 70 / 6%), 0 8px 24px rgb(16 40 70 / 8%);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --prose: 46rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1420;
    --surface: #111d2c;
    --surface-2: #12263b;
    --text: #e8eef5;
    --muted: #a9b5c3;
    --border: #23374d;
    --brand: #5aa9f0;
    --brand-deep: #a9d3fa;
    --on-brand: #06213a;
    --link: #7dbcf5;
    --safe: #4cd38a;
    --safe-soft: #143526;
    --warning: #ffb340;
    --warning-soft: #3a2a0e;
    --tracked: #d49cff;
    --tracked-soft: #2f1a40;
    --danger: #ff7a70;
    --danger-soft: #3d1715;
    --hero-1: #143456;
    --hero-2: #0a1828;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 750; margin-top: 1.6em; }
h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.4em; }
p, ul, ol, dl, table, figure, details { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 650; }
small, .small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.prose { max-width: var(--prose); }
.center { text-align: center; }
.center .prose, .prose.center { margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav li + li { margin: 0; }
.site-nav a { display: block; padding: 0.5rem 0.75rem; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 550; font-size: 0.97rem; }
.site-nav a:hover { background: var(--surface); }
.site-nav a[aria-current="page"] { background: var(--surface-2); color: var(--brand-deep); }
.header-cta { padding: 0.5rem 1rem !important; }
@media (max-width: 720px) {
  .header-inner { padding-block: 0.4rem 0; gap: 0.25rem; }
  .header-cta { display: none !important; }
  .site-nav { margin-left: 0; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { padding-bottom: 0.45rem; }
  .site-nav a { padding: 0.4rem 0.7rem; font-size: 0.95rem; white-space: nowrap; }
}

/* Buttons and badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 650; text-decoration: none;
  background: var(--brand); color: var(--on-brand); border: 0; cursor: pointer; font: inherit; font-weight: 650;
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 2px currentColor; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 1.25rem 0 0.75rem; }
.store-badges a { display: inline-block; border-radius: 10px; line-height: 0; }
.store-badges img { height: 52px; width: auto; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 78% 42%, rgb(255 255 255 / 7%) 0 10%, transparent 10.2% 19%, rgb(255 255 255 / 6%) 19.2% 19.6%, transparent 19.8% 29%, rgb(255 255 255 / 5%) 29.2% 29.6%, transparent 29.8% 39%, rgb(255 255 255 / 4%) 39.2% 39.6%, transparent 39.8%),
    linear-gradient(150deg, var(--hero-1) 0%, var(--hero-2) 100%);
}
.hero a:not(.store-badges a) { color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero .lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: rgb(255 255 255 / 94%); max-width: 36rem; }
.hero-shots { position: relative; display: flex; justify-content: center; gap: 1rem; }
.hero-shots img { width: min(46%, 250px); border-radius: 22px; box-shadow: 0 18px 40px rgb(0 0 0 / 30%); }
.hero-shots img:nth-child(2) { margin-top: 3rem; }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.5rem; }
.hero .eyebrow { color: rgb(255 255 255 / 90%); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-shots img { width: min(44%, 200px); }
}

/* Page header (inner pages) */
.page-head { padding-block: 2rem 1.5rem; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.page-head h1 { margin-bottom: 0.35em; }
.page-head .lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; margin-bottom: 0.5rem; }
.byline { font-size: 0.92rem; color: var(--muted); margin: 0.75rem 0 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs li + li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin: 0 0.4rem 0 0.15rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }

/* Sections */
main { display: block; }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section > .container > h2:first-child, .section h2.section-title { margin-top: 0; }
.section-intro { color: var(--muted); font-size: 1.1rem; max-width: 44rem; }
.center .section-intro { margin-inline: auto; }
.content { padding-block: 2rem 3.5rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
.content-grid aside { position: sticky; top: 88px; }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; } .content-grid aside { position: static; } }

/* Cards */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--shadow);
}
.section-alt .card { background: var(--bg); }
.card h3 { margin-top: 0.2rem; font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2); color: var(--brand); margin-bottom: 0.6rem;
}
.card .icon svg { width: 24px; height: 24px; }
.card-link { text-decoration: none; color: inherit; display: block; height: 100%; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card-link:hover { transform: translateY(-2px); }
.card-link h3 { color: var(--link); }
.tier { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.15rem 0.55rem; border-radius: 999px; vertical-align: middle; margin-left: 0.35rem; }
.tier-free { background: var(--safe-soft); color: var(--safe); }
.tier-premium { background: var(--warning-soft); color: var(--warning); }
.pill { display: inline-block; font-size: 0.78rem; font-weight: 750; letter-spacing: 0.05em; padding: 0.1rem 0.5rem; border-radius: 6px; }
.pill-suspicious { background: var(--warning-soft); color: var(--warning); }
.pill-tracked { background: var(--tracked-soft); color: var(--tracked); }
.pill-safe { background: var(--safe-soft); color: var(--safe); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.1rem; margin-bottom: 1.1rem; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0.05rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-weight: 750; font-size: 0.95rem;
}
.steps > li > strong:first-child { display: block; font-size: 1.05rem; }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; counter-reset: hs; list-style: none; padding: 0; }
.how-steps li { margin: 0; counter-increment: hs; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.how-steps li::before { content: counter(hs); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; margin-bottom: 0.7rem; }
.how-steps h3 { margin-top: 0; }
.how-steps p { margin: 0; }

/* Callouts */
.tldr, .callout {
  border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.5rem 0;
  border: 1px solid var(--border); background: var(--surface);
}
.tldr { border-left: 5px solid var(--brand); }
.tldr h2 { font-size: 1.1rem; margin: 0 0 0.6rem; text-transform: none; }
.tldr ul { margin: 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-safety { background: var(--danger-soft); border-color: transparent; border-left: 5px solid var(--danger); }
.callout-safety strong:first-child { color: var(--danger); }
.callout-note { background: var(--surface-2); border-color: transparent; }
.answer { font-size: 1.12rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; margin: 0; }
caption { text-align: left; padding: 0.75rem 1rem; font-weight: 650; color: var(--muted); caption-side: top; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 1rem; border-top: 1px solid var(--border); }
thead th { background: var(--surface); font-weight: 700; border-top: 0; }
tbody th { font-weight: 600; }
.yes { color: var(--safe); font-weight: 650; }
.no { color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); margin: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 2.4rem 1rem 0; position: relative;
  font-weight: 650; font-size: 1.07rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 1.35rem; width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.faq summary h3 { display: inline; font-size: inherit; margin: 0; font-weight: inherit; letter-spacing: 0; }
.faq .faq-a { padding: 0 0 1rem; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* Screenshots */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 1.25rem; overflow-x: auto; padding: 0.5rem 0.25rem 1.25rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 18px; box-shadow: var(--shadow); }
.shots figcaption, figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }
.tablet-shot img { border-radius: 16px; box-shadow: var(--shadow); }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 2.5rem; align-items: center; padding-block: 2rem; border-top: 1px solid var(--border); }
.feature:first-of-type { border-top: 0; }
.feature img { border-radius: 20px; box-shadow: var(--shadow); width: 260px; }
.feature h2 { margin-top: 0; }
.feature.no-img { grid-template-columns: 1fr; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature img { width: min(260px, 80%); margin-inline: auto; } }

/* Lists of links */
.link-list { list-style: none; padding: 0; }
.link-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); margin: 0; }
.link-list a { font-weight: 650; }
.link-list p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: 0.95rem; }
.toc h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li + li { margin-top: 0.25rem; }
.cta-box {
  border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; color: #fff;
  background: linear-gradient(150deg, var(--hero-1), var(--hero-2));
}
.cta-box h2, .cta-box h3 { color: #fff; margin-top: 0; }
.cta-box p { color: rgb(255 255 255 / 92%); }
.cta-box a:not(.store-badges a) { color: #fff; }
aside .cta-box .store-badges img { height: 44px; }
dl.facts { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
dl.facts dt, dl.facts dd { margin: 0; padding: 0.7rem 1rem; border-top: 1px solid var(--border); }
dl.facts dt { font-weight: 650; background: var(--surface); }
dl.facts dt:first-of-type, dl.facts dt:first-of-type + dd { border-top: 0; }
@media (max-width: 600px) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { border-top: 0; } }
pre.cite { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; font-size: 0.92rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sources { font-size: 0.93rem; }
.sources li { overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: 3rem 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.site-footer h2 { font-size: 0.95rem; margin: 0 0 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0.45rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .store-badges img { height: 42px; }
.legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.legal p { margin: 0 0 0.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.copy-btn { margin-top: -0.5rem; margin-bottom: 1.2rem; font-size: 0.9rem; padding: 0.45rem 0.9rem; }
.notfound { min-height: 50vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }

@media print {
  .site-header, .site-footer, .store-badges, .cta-box, .copy-btn { display: none !important; }
  body { font-size: 11pt; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
