:root {
  --primary: #1e7fe1;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --text: #14181f;
  --text-muted: #55606e;
  --border: #e3e8ef;
  --card-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.85);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --bg-alt: #12151a;
    --text: #f2f4f7;
    --text-muted: #a3adba;
    --border: #232833;
    --card-bg: #171a20;
    --header-bg: rgba(11, 13, 16, 0.85);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand-icon { border-radius: 22%; display: block; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav a { text-decoration: none; font-size: 0.95rem; color: var(--text-muted); }
.header-nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { opacity: 0.9; }
.btn-small { font-size: 0.9rem; padding: 7px 16px; }

/* Hero */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}

.hero-icon {
  border-radius: 22%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* App Store badge */
.store-badge-link { display: inline-block; line-height: 0; }
.store-badge-link img { display: block; height: 60px; width: auto; }
.store-badge-link:hover { opacity: 0.85; }

/* Screenshots */
.screenshots { padding: 40px 0 80px; }

.section-header { text-align: center; margin-bottom: 44px; }
.section-header h2 { font-size: 1.9rem; margin: 0 0 8px; font-weight: 800; }
.section-header p { color: var(--text-muted); margin: 0; }

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.phone {
  margin: 0;
  text-align: center;
}

.phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 34px;
  border: 6px solid var(--card-bg);
  outline: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.phone figcaption {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* CTA */
.cta {
  background: var(--bg-alt);
  padding: 72px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 14px;
  font-weight: 800;
}

.cta p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* FAQ */
.faq { padding: 72px 0 88px; }
.faq-inner { max-width: 760px; }
.faq-list { display: flex; flex-direction: column; gap: 28px; }
.faq-item h3 { font-size: 1.05rem; margin: 0 0 8px; font-weight: 700; }
.faq-item p { margin: 0; color: var(--text-muted); }
.faq-item a { color: var(--primary); }

/* Footer */
.site-footer { padding: 40px 0 28px; }

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.footer-brand img { border-radius: 22%; display: block; }

.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }

.footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 24px 0 0;
}

/* Legal / Privacy Policy */
.legal { padding: 64px 0 88px; }
.legal-inner { max-width: 720px; }
.legal h1 { font-size: 2.2rem; margin: 0 0 6px; font-weight: 800; }
.legal-updated { color: var(--text-muted); margin: 0 0 32px; font-size: 0.9rem; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; font-weight: 700; }
.legal p { color: var(--text-muted); }
.legal a { color: var(--primary); }

/* Responsive */
@media (max-width: 860px) {
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 520px) {
  .hero { padding: 56px 0 48px; }
  .header-nav { gap: 10px; }
  .header-nav a:not(.btn) { font-size: 0.85rem; }
  .btn-small { padding: 6px 12px; font-size: 0.82rem; }
  .brand span { display: none; }
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .phone img { border-radius: 22px; border-width: 4px; }
}
