/* Predator Locator - site styles. Tokens mirror the app's dark palette. */

:root {
  --bg: #000000;
  --surface: #0e0e0e;
  --card: #141414;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f5f5f5;
  --text-muted: #a1a1a1;
  --text-dim: #6e6e6e;

  --brand: #ff3b3b;
  --brand-dim: #c72b2b;
  --marker: #f5a524;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --maxw: 1080px;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

*,
*::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-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--card);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.nav a {
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  background: #ececec;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 20% 40% -20%;
  background: radial-gradient(
    closest-side,
    rgba(255, 59, 59, 0.16),
    transparent
  );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 18px;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lede {
  margin: 0 0 32px;
  font-size: 19px;
  color: var(--text-muted);
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.cta-note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--text-dim);
}

.hero-shot {
  justify-self: center;
  width: 100%;
  /* The source screenshot is a tall phone frame (556x1200). Held to 262px so the
     whole screen still shows and the hero stays around 560px tall. */
  max-width: 262px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Sections */

section {
  padding: 76px 0;
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 44em;
  margin: 0 0 44px;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Feature cards */

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(255, 59, 59, 0.12);
  color: var(--brand);
}

.icon svg {
  width: 21px;
  height: 21px;
}

.icon.amber {
  background: rgba(245, 165, 36, 0.13);
  color: var(--marker);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* Showcase */

.showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.showcase img {
  justify-self: center;
  /* width:100% is required alongside the max-width override, otherwise the
     override replaces the reset's max-width:100% and the image cannot shrink
     below 340px on narrow phones. */
  width: 100%;
  max-width: 340px;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.checklist li {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
}

.checklist svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--marker);
}

.checklist strong {
  color: var(--text);
  font-weight: 600;
}

/* Notice */

.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  color: var(--text-muted);
  font-size: 16px;
}

.notice p {
  margin: 0 0 12px;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice strong {
  color: var(--text);
}

/* Closing CTA */

.closing {
  text-align: center;
  border-bottom: none;
}

.closing .lede {
  margin-left: auto;
  margin-right: auto;
}

.closing .cta-row {
  justify-content: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Legal pages */

.legal {
  padding: 64px 0 24px;
  border-bottom: none;
}

.legal .wrap {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  margin-bottom: 10px;
}

.updated {
  margin: 0 0 40px;
  color: var(--text-dim);
  font-size: 15px;
}

.legal h2 {
  margin: 44px 0 12px;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 16.5px;
}

.legal p {
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 0 0 40px;
}

.toc p {
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
  font-size: 15px;
}

.toc li {
  margin-bottom: 6px;
}

/* Error page */

.error-page {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  border-bottom: none;
}

.error-page .code {
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
}

/* Responsive */

@media (max-width: 860px) {
  .hero .wrap,
  .showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-shot {
    order: -1;
    max-width: 280px;
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  section {
    padding: 56px 0;
  }

  /* Four nav items plus the wordmark are wider than a phone viewport, which
     pushes the body past 100vw and clips section text. Drop the in-page
     anchors and keep the legal links, which is what App Review looks for. */
  .nav-anchor {
    display: none;
  }

  .nav {
    gap: 18px;
    font-size: 14px;
  }

  .brand {
    font-size: 15px;
  }

  .btn {
    width: 100%;
  }

  .site-footer .wrap {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}
