/* Blue Door Stats — shared site styles. Brand colors match the app's
   asset catalog (BrandNavy #002050, BrandBlue #0068D8, BrandCyan #00C0F8). */

:root {
  --navy: #002050;
  --blue: #0068d8;
  --cyan: #00c0f8;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --text: #0d1b2e;
  --muted: #52627a;
  --border: #dbe3ee;
  --link: #0068d8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07111f;
    --surface: #0f1e33;
    --text: #e8eef7;
    --muted: #9fb0c6;
    --border: #1f3350;
    --link: #4a94f5;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--link); }

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

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  background: var(--navy);
  color: #fff;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  color: #cfe3ff;
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: #fff; }

/* Hero */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #003a8c 60%, var(--blue) 100%);
  color: #fff;
  padding: 56px 0 64px;
}

.hero .wrap {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-icon {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 44px;
  line-height: 1.1;
}

.hero .tagline {
  margin: 0 0 20px;
  font-size: 21px;
  color: #d8e9ff;
}

.hero .meta {
  margin: 16px 0 0;
  font-size: 15px;
  color: #b5cdee;
}

.button {
  display: inline-block;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
}

.button.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */

main { padding: 48px 0 24px; }

section { margin-bottom: 48px; }

h2 {
  font-size: 28px;
  margin: 0 0 16px;
}

h3 {
  font-size: 19px;
  margin: 0 0 6px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.card p { margin: 0; color: var(--muted); }

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

.screens figure { margin: 0; }

.screens img {
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}

.screens figcaption {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

/* Text pages (privacy, support) */

.page {
  max-width: 760px;
}

.page h1 {
  font-size: 36px;
  margin: 0 0 4px;
}

.page .updated {
  color: var(--muted);
  margin: 0 0 32px;
}

.page h2 {
  font-size: 22px;
  margin: 36px 0 8px;
}

.page ul { padding-left: 22px; }

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

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin: 8px 0 32px;
}

.contact-box p { margin: 0 0 14px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p,
.faq details ol,
.faq details ul { margin: 10px 0 0; color: var(--muted); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

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

.site-footer nav { display: flex; gap: 18px; }

/* Phones */

@media (max-width: 700px) {
  .hero { padding: 36px 0 44px; }
  .hero .wrap { flex-direction: column; text-align: center; gap: 24px; }
  .hero-icon { width: 140px; height: 140px; border-radius: 32px; }
  .hero h1 { font-size: 34px; }
  .buttons { justify-content: center; }
  .site-header .wrap { justify-content: center; }
}
