/* FirstGear marketing site — Apple-clean, responsive, light/dark.
   No tracking, no external fonts: system font stack only. */

:root {
  color-scheme: light dark;
  --brand: #1A73E8;
  --brand-dark: #1557B0;
  --success: #10B981;
  --night: #6366F1;
  --accent-grad: linear-gradient(135deg, #1A73E8 0%, #4F46E5 100%);

  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-card: #ffffff;
  --text: #1c1c1e;
  --text-soft: #515154;
  --text-mute: #8a8a8e;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 2px 16px rgba(0, 0, 0, 0.06);
  --radius: 20px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #0d0d0f;
    --bg-card: #161618;
    --text: #f5f5f7;
    --text-soft: #c7c7cc;
    --text-mute: #8a8a8e;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 2px 16px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.nav-brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--text-soft); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .nav-links a:not(.nav-cta) { display: none; } }
.nav-cta {
  background: var(--brand); color: #fff !important; padding: 7px 16px;
  border-radius: 980px; font-weight: 600; font-size: 14px;
}
.nav-cta:hover { background: var(--brand-dark); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 40px; text-align: center; overflow: hidden; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text-soft); font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 980px; margin-bottom: 22px;
}
.hero .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.hero-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 18px; font-weight: 700;
}
.hero h1 .grad {
  background: var(--accent-grad); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.sub { font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--text-soft); max-width: 620px; margin: 0 auto 30px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 980px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: var(--bg-soft); color: var(--text); border-color: var(--border); }
.appstore-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; padding: 11px 20px; border-radius: 13px;
  font-size: 14px; border: 1px solid rgba(255,255,255,0.12);
}
.appstore-badge:hover { text-decoration: none; opacity: .9; }
.appstore-badge .big { font-size: 19px; font-weight: 600; line-height: 1.1; }
.appstore-badge .small { font-size: 11px; opacity: .85; line-height: 1.1; }
.coming-soon-note { color: var(--text-mute); font-size: 13px; margin-top: 14px; }

/* ---------- Device frame ---------- */
.device {
  position: relative; width: 100%; max-width: 300px; margin: 0 auto;
  border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg, #2a2a2d, #0a0a0b);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.device::before {
  content: ""; position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #000; border-radius: 980px; z-index: 3;
}
.device .screen {
  position: relative; border-radius: 34px; overflow: hidden; background: var(--bg-soft);
  aspect-ratio: 1206 / 2622; display: flex; align-items: center; justify-content: center;
}
.device .screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.device .screen .placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--text-mute); font-size: 13px; padding: 24px; text-align: center;
}
.device .screen .placeholder svg { opacity: .5; }
.hero-device { margin-top: 48px; max-width: 320px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--brand); font-weight: 600; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 10px 0 14px; }
.section-head p { color: var(--text-soft); font-size: 1.15rem; margin: 0; }

/* Alternating feature rows */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 40px 0;
}
.feature:nth-child(even) .feature-media { order: 2; }
.feature-text h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 14px; letter-spacing: -0.01em; }
.feature-text p { color: var(--text-soft); font-size: 1.1rem; margin: 0 0 18px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; margin: 9px 0; color: var(--text-soft); }
.feature-list li::before { content: "✓"; color: var(--success); font-weight: 700; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 28px 0; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-media { max-width: 280px; margin: 0 auto; }
}

/* Feature grid (small cards) */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 820px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-soft);
}
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
  margin-bottom: 14px; font-size: 22px;
}
.card h3 { margin: 0 0 7px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-soft); font-size: .98rem; }

/* Privacy callout */
.privacy-band { background: var(--bg-soft); }
.privacy-band .inner {
  text-align: center; max-width: 760px; margin: 0 auto;
}
.privacy-band .lock { font-size: 40px; margin-bottom: 8px; }
.privacy-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.chip {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 980px;
  padding: 9px 18px; font-size: 14px; font-weight: 500; color: var(--text-soft);
}
.chip b { color: var(--text); }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border); padding: 20px 4px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-soft); margin: 14px 0 0; }

/* Final CTA */
.cta-band { text-align: center; }
.cta-card {
  background: var(--accent-grad); color: #fff; border-radius: 28px;
  padding: 56px 32px; box-shadow: var(--shadow);
}
.cta-card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.cta-card p { font-size: 1.15rem; opacity: .92; margin: 0 0 28px; }
.cta-card .appstore-badge { background: rgba(0,0,0,0.28); border-color: rgba(255,255,255,0.25); }
.cta-card .coming-soon-note { color: rgba(255,255,255,0.85); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 44px 0; color: var(--text-mute); font-size: 14px; }
.footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer .cols a { color: var(--text-soft); display: block; margin: 7px 0; }
.footer .cols a:hover { color: var(--text); text-decoration: none; }
.footer h4 { color: var(--text); font-size: 14px; margin: 0 0 8px; }
.footer .legal { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Article (privacy / support copy) ---------- */
.article { max-width: 740px; margin: 0 auto; padding: 56px 0; }
.article h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.article .effective { color: var(--text-mute); margin-top: 0; }
.article h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.article ul { padding-left: 1.3rem; }
.article li { margin: .4rem 0; }
.article .back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; margin-bottom: 24px; }
.support-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-soft); margin: 22px 0;
}
.support-card a.email { font-size: 1.25rem; font-weight: 600; }
