/* ============================================================
   FindBot public site — shared stylesheet (navy brand system)
   Tokens per brand-spec.md: deep navy foundation, electric blue
   primary, turquoise secondary, warm white + pale blue text.
   No JavaScript anywhere on this site; no external requests.
   ============================================================ */

:root {
  --bg: #0f172a;               /* deep navy — app darkBackground */
  --surface: #1e293b;          /* navy surface — app darkSurface */
  --raised: #334155;           /* raised surface */
  --fg: #f6f3ec;               /* warm white, from the logo eye highlight */
  --muted: #aebcd6;            /* pale blue supporting text */
  --border: rgba(255, 255, 255, 0.08);
  --accent: #3b82f6;           /* electric blue — app darkPrimary */
  --accent-strong: #60a5fa;    /* electric blue for text on navy */
  --secondary: #2fbdb1;        /* turquoise, from the logo iris */

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;

  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 24px;
  --sp-xxl: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Type scale ---- */
h1 { font-size: 28px; font-weight: 700; line-height: 1.25; }
h2 { font-size: 20px; font-weight: 600; line-height: 1.35; }
h3 { font-size: 16px; font-weight: 600; }
.body-md { font-size: 14px; color: var(--muted); }
.caption { font-size: 12px; color: var(--muted); }

p { max-width: 65ch; }

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.page-main { padding: var(--sp-xxl) 0 64px; }

/* ---- Header / nav ---- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: var(--sp-sm);
  padding-bottom: var(--sp-sm);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-md);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  overflow: hidden;
  display: inline-flex;
  /* The icon PNG has its own darker navy fill; the card hairline frames it
     so it reads as intentional instead of an off-color rectangle. */
  border: 1px solid var(--border);
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.site-nav { display: flex; gap: var(--sp-lg); flex-wrap: wrap; }
.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: var(--sp-sm) 0;
}
.site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav a:hover { color: var(--fg); text-decoration: none; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--r-md);
  padding: var(--sp-md) var(--sp-xl);
  font-size: 16px;
  font-weight: 600;
}
.btn-primary:hover { background: #2f6fd8; text-decoration: none; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-md) var(--sp-xl);
  font-size: 16px;
  font-weight: 600;
}
.btn-secondary:hover { background: var(--raised); text-decoration: none; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
}

/* ---- Pills / badges ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  border-radius: var(--r-pill);
  padding: var(--sp-xs) var(--sp-md);
  font-size: 12px;
  font-weight: 600;
}
.pill-draft {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Non-download App Store availability marker (draft mode: not a link) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-md) var(--sp-lg);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* ---- Prose pages (privacy, terms, help…) ---- */
.prose h1 { margin-bottom: var(--sp-sm); }
.prose > p.lede { font-size: 16px; color: var(--muted); margin-bottom: var(--sp-xl); }
.prose h2 { margin: var(--sp-xxl) 0 var(--sp-md); }
.prose h3 { margin: var(--sp-xl) 0 var(--sp-sm); }
.prose p { margin-bottom: var(--sp-md); }
.prose ul, .prose ol { margin: 0 0 var(--sp-md) 20px; max-width: 62ch; }
.prose li { margin-bottom: var(--sp-sm); }
.prose li::marker { color: var(--muted); }

.meta-row {
  display: flex;
  gap: var(--sp-md);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
}

/* Placeholder values pending owner approval — deliberately visible */
.placeholder {
  display: inline-block;
  background: var(--surface);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--r-sm);
  padding: 0 var(--sp-sm);
  font-size: 14px;
  color: var(--muted);
}

/* Callout note */
.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  margin: var(--sp-xl) 0;
  font-size: 14px;
  color: var(--fg);
}
.note strong { color: var(--secondary); }

/* Numbered step list (help / delete-account / how-it-works) */
.steps { counter-reset: step; list-style: none; margin: 0 0 var(--sp-xl); max-width: 62ch; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: var(--sp-md) 0 var(--sp-md) 48px;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: var(--sp-md);
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps .body-md { display: block; margin-top: 2px; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: var(--sp-xl) 0;
  margin-top: 64px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-lg);
  flex-wrap: wrap;
  align-items: center;
}
.footer-links { display: flex; gap: var(--sp-lg); flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--fg); }

/* ---- Landing-specific ---- */
.hero {
  /* padding-block only — the shorthand was wiping out .wrap's side margins */
  padding-block: 64px var(--sp-xxl);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-xxl);
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.12;
  max-width: 16ch;
  margin-bottom: var(--sp-lg);
}
.hero .sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: var(--sp-md);
}
.hero .flow-line {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--sp-xl);
}
.hero .flow-line strong { color: var(--secondary); font-weight: 600; }
.hero-actions { display: flex; gap: var(--sp-md); flex-wrap: wrap; align-items: center; }
.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}
.hero-logo .section-kicker { margin-bottom: 0; text-align: center; }
.hero-logo img {
  width: min(280px, 60vw);
  height: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
}

.section-kicker {
  /* No caps, no tracking — brand forbids letter-spacing on Inter */
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: var(--sp-xs);
}
.section { margin-top: 64px; }
.section > h2 { font-size: 22px; margin-bottom: var(--sp-lg); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
}
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}
.example-grid .card { padding: var(--sp-lg); }
.example-grid h3 { font-size: 15px; margin-bottom: var(--sp-xs); }
.example-grid p { font-size: 13px; color: var(--muted); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  align-items: stretch;
}
.price-card { display: flex; flex-direction: column; gap: var(--sp-sm); }
.price-card .plan-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.price-card ul { list-style: none; margin: var(--sp-sm) 0 0; }
.price-card li {
  font-size: 14px;
  color: var(--muted);
  padding: var(--sp-xs) 0;
  border-bottom: 1px solid var(--border);
}
.price-card li:last-child { border-bottom: none; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(180px, 45vw); }
  .feature-grid, .example-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding-block: var(--sp-xxl); }
}
@media (min-width: 480px) and (max-width: 820px) {
  .example-grid { grid-template-columns: repeat(2, 1fr); }
}
