/* TrackerFinder website. System fonts only, no third-party requests. */

:root {
  color-scheme: dark light;
  --bg: #0E1A1C;
  --bg-alt: #122225;
  --surface: #17292C;
  --surface-2: #1D3337;
  --border: #27403F;
  --text: #FFFFFF;
  --text-muted: #A8BEBA;
  --accent: #5FE3C4;
  --accent-ink: #062520;      /* text on accent */
  --accent-soft: rgba(95, 227, 196, 0.12);
  --danger: #FF9C8A;
  --danger-soft: rgba(255, 156, 138, 0.10);
  --phone-bezel: #050B0C;
  --radius: 20px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F5F9F8;
    --bg-alt: #EAF2F0;
    --surface: #FFFFFF;
    --surface-2: #F0F6F4;
    --border: #D3E2DE;
    --text: #0E1A1C;
    --text-muted: #4A5F5B;
    --accent: #006B59;
    --accent-ink: #FFFFFF;
    --accent-soft: rgba(0, 107, 89, 0.09);
    --danger: #A8321F;
    --danger-soft: rgba(168, 50, 31, 0.07);
    --phone-bezel: #1B2628;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.1rem;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--text-muted); text-decoration: none; font-size: 0.95rem;
  padding: 8px 10px; border-radius: 8px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
@media (max-width: 520px) {
  .site-nav .wide-only, .site-nav a[href="/privacy"] { display: none; } /* Privacy stays in the footer */
}

/* Sections */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; color: var(--accent); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px;
}
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 40rem; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding-top: 48px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } .hero { padding-top: 80px; } }
.hero h1 span { color: var(--accent); display: block; }
.chips { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 0.95rem; font-weight: 600;
}
.chips svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.play-badge { display: inline-block; margin-left: -12px; } /* badge PNG has built-in padding */
.play-badge img { width: 220px; height: auto; }

/* Phone frame */
.phone {
  position: relative; margin: 0 auto;
  width: min(100%, 290px);
  padding: 10px; border-radius: 40px;
  background: var(--phone-bezel);
  box-shadow: 0 0 0 1px var(--border), 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 1 / 2; object-fit: cover; }
.phone.sm { width: min(100%, 240px); }
.hero .phone { width: min(100%, 300px); }
.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: 10% -10%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  filter: blur(10px); z-index: -1;
}
.glow { isolation: isolate; }

/* Two jobs */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse > :first-child { order: 2; }
}
.split.first { margin-top: 48px; }
.split + .split { margin-top: 72px; }
.split h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.split p { color: var(--text-muted); font-size: 1.1rem; max-width: 32rem; }

/* Finds / can't find */
.compare { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
@media (min-width: 640px) { .card { padding: 32px; } }
.card h3 { display: flex; align-items: center; gap: 10px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li {
  position: relative; padding: 12px 0 12px 34px;
  border-top: 1px solid var(--border);
}
.ticks li:first-child { border-top: 0; }
.ticks li::before {
  position: absolute; left: 0; top: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
}
.ticks.yes li::before { content: "✓"; background: var(--accent-soft); color: var(--accent); }
.ticks.no li::before { content: "✕"; background: var(--danger-soft); color: var(--danger); }
.badge-icon {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 0.95rem; font-weight: 800; flex: none;
}
.badge-icon.yes { background: var(--accent); color: var(--accent-ink); }
.badge-icon.no { background: var(--danger); color: var(--bg); }

/* Features */
.features { display: grid; gap: 48px; align-items: start; margin-top: 36px; }
@media (min-width: 900px) { .features { grid-template-columns: 1.1fr 0.9fr; } }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 560px) and (max-width: 899px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 18px;
}
.feature-list svg { width: 26px; height: 26px; color: var(--accent); flex: none; margin-top: 2px; }
.feature-list strong { display: block; }
.feature-list span { color: var(--text-muted); font-size: 0.98rem; }
.phone-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.phone-pair figure { margin: 0; }
.phone-pair figure:nth-child(2) { margin-top: 48px; }
figcaption { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; }

/* Pricing */
.pricing { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 820px) { .pricing { grid-template-columns: 1fr 1fr; } }
.price { font-size: 2.2rem; font-weight: 800; line-height: 1; margin: 6px 0 4px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.price-note { font-size: 0.92rem; margin: 0; }
.card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.card .ticks { margin-top: 18px; }
.premium-map { display: grid; gap: 24px; align-items: center; margin-top: 8px; }
@media (min-width: 520px) { .premium-map { grid-template-columns: 1fr 150px; } }
.premium-map .phone { width: 150px; padding: 6px; border-radius: 24px; }
.premium-map .phone img { border-radius: 19px; }
.tagline { text-align: center; font-weight: 700; font-size: 1.15rem; margin-top: 32px; }

/* Privacy band */
.privacy-band {
  display: grid; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 28px; padding: 32px 24px;
}
@media (min-width: 720px) { .privacy-band { grid-template-columns: auto 1fr; padding: 48px; gap: 36px; } }
.privacy-band .icon {
  width: 72px; height: 72px; border-radius: 22px; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent);
}
.privacy-band .icon svg { width: 38px; height: 38px; }
.privacy-band p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 0.6em; }

/* Danger callout */
.callout {
  border-left: 4px solid var(--danger);
  background: var(--danger-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 24px 24px 24px;
}
@media (min-width: 640px) { .callout { padding: 32px 40px; } }
.callout h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.callout p:last-child { margin-bottom: 0; }

/* Prose pages: privacy, terms, support, delete */
.page { padding: 48px 0 80px; }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }
.updated { color: var(--text-muted); margin-bottom: 2em; }
.summary {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; margin: 1.5em 0;
}
.summary h2 { margin-top: 0; }
.summary ul { margin-bottom: 0; }

.faq details {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 16px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700;
  padding: 18px 52px 18px 20px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent);
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 6px; color: var(--text-muted); }

.contact-card {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline;
  background: var(--accent-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; margin: 1.5em 0 2.5em;
}
.contact-card strong { font-size: 1.15rem; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 20px 18px 64px; margin-bottom: 12px !important;
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
}

/* Guides */
.breadcrumb { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-muted); }
.guide-cards { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 760px) { .guide-cards { grid-template-columns: repeat(3, 1fr); } }
.guide-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.guide-card:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .guide-card:hover { transform: none; } }
.guide-card svg { width: 32px; height: 32px; color: var(--accent); }
.guide-card h2, .guide-card h3 { font-size: 1.2rem; margin: 0; }
.guide-card p { color: var(--text-muted); margin: 0; flex: 1; }
.guide-card .more { color: var(--accent); font-weight: 700; }
.prose .callout { margin: 1.5em 0; }
.prose .callout h2 { margin-top: 0; font-size: 1.2rem; }
.jump { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0 2em !important; }
.jump li { margin: 0 !important; }
.jump a {
  display: inline-block; border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.95rem;
}
.jump a:hover { border-color: var(--accent); }
.brand-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px; margin-bottom: 14px; scroll-margin-top: 16px;
}
.brand-card h2 { margin: 0 0 6px !important; font-size: 1.2rem !important; }
.brand-card p { margin: 0; color: var(--text-muted); }
.sens-table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.98rem; }
.sens-table th, .sens-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.sens-table th { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.table-scroll { overflow-x: auto; }
.prose figure.phone { margin: 1.5em auto; }
.next-guide { margin-top: 3em; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); background: var(--bg-alt);
  padding: 36px 0 44px; font-size: 0.95rem; color: var(--text-muted);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 16px; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.site-footer p { margin: 0 0 6px; }
