:root {
  --primary: #006AAF;
  --primary-dark: #0A3870;
  --accent: #DCF0FF;
  --secondary: #EBF4FF;
  --text: #0D1117;
  --muted: #5C6B7A;
  --card: #F4F7FB;
  --border: #D4E6F8;
  --bg: #FFFFFF;
  --radius: 16px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

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

a { color: inherit; text-decoration: none; }

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Offset anchor targets so the sticky nav never overlaps them */
#top,
#features,
#how-it-works,
#faq,
#download {
  scroll-margin-top: 84px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  display: flex;
  align-items: center;
  min-height: 44px;
}

.nav-links a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-icon {
  width: 24px;
  height: 24px;
}

.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

/* Hero */
.hero {
  padding: 72px 0 40px;
  background: linear-gradient(180deg, var(--secondary) 0%, var(--bg) 100%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  background: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: 48px;
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

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

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0D1117;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-store:hover { transform: translateY(-1px); }

.btn-store span { display: flex; flex-direction: column; line-height: 1.2; }
.btn-store small { font-size: 11px; font-weight: 400; opacity: 0.85; }
.store-icon { width: 24px; height: 24px; }

.btn-disabled {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-disabled .store-icon { color: var(--muted); }
.btn-disabled small { opacity: 0.7; }

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.waitlist-confirm {
  margin: 10px 0 0;
  min-height: 1em;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.waitlist-confirm.visible { opacity: 1; }

.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 280px;
}

.hero-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--secondary));
  filter: blur(2px);
}

.phone-mock {
  position: relative;
  width: 240px;
  background: #fff;
  border: 8px solid #0D1117;
  border-radius: 36px;
  box-shadow: 0 24px 60px rgba(0, 106, 175, 0.25);
  overflow: hidden;
}

.phone-mock-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: #0D1117;
  border-radius: 0 0 14px 14px;
  z-index: 1;
}

.phone-mock-screenshot {
  width: 220px;
  height: 460px;
}

.phone-mock-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Screens gallery */
.screens { padding: 96px 0; background: var(--card); }

.screens h2 {
  font-size: 34px;
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.screen-item { text-align: center; }

.screen-item .phone-mock {
  width: 100%;
  height: auto;
  aspect-ratio: 220 / 460;
  margin: 0 auto 16px;
}

.screen-item .phone-mock-img { object-position: top center; }

.screen-item h3 { font-size: 16px; margin: 0 0 4px; }
.screen-item p { color: var(--muted); font-size: 14px; margin: 0; }

/* Features */
.features { padding: 96px 0; }

.features h2, .how h2, .cta h2 {
  font-size: 34px;
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-lede {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  margin: 0 auto 56px;
  max-width: 46ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.feature-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  color: var(--primary);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

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

/* How it works */
.how {
  padding: 96px 0;
  background: var(--card);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.step {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-icon svg { width: 20px; height: 20px; }

.step-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* FAQ */
.faq { padding: 96px 0; }

.faq h2 {
  font-size: 34px;
  text-align: center;
  margin: 0 0 40px;
  letter-spacing: -0.01em;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.faq-item p a { color: var(--primary); }

/* CTA */
.cta { padding: 96px 0; text-align: center; }
.cta p { color: var(--muted); font-size: 17px; margin: 0 0 32px; }
.cta-actions { justify-content: center; }

.cta-inner .waitlist-confirm {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

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

.footer p { color: var(--muted); font-size: 13px; margin: 0; }

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

.footer-links a {
  color: var(--muted);
  font-size: 13px;
}

.footer-links a:hover { color: var(--primary); }

/* Legal pages */
.legal { padding: 64px 0 96px; }

.legal-inner {
  max-width: 720px;
}

.legal h1 {
  font-size: 34px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 40px;
}

.legal h2 {
  font-size: 20px;
  margin: 36px 0 12px;
}

.legal p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 4px;
}

.legal a { color: var(--primary); text-decoration: underline; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .hero-actions { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .screens-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .hero-copy h1 { font-size: 36px; }
}

@media (max-width: 480px) {
  .screens-grid { grid-template-columns: 1fr; max-width: 260px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    box-shadow: 0 12px 24px rgba(13, 17, 23, 0.08);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    min-height: 48px;
    padding: 0 4px;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 4px;
  }
}

/* Display the original App Store artwork in full, without added phone frames. */
.hero-art .phone-mock { width: min(300px, 100%); height: auto; aspect-ratio: 1206 / 2622; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.hero-art .phone-mock-img { display: block; width: 100%; height: auto; object-fit: contain; }
.app-store-image { display: block; width: 100%; height: auto; box-shadow: 0 12px 36px rgba(0, 106, 175, .12); }
.screens-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
@media (max-width: 900px) { .screens-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .screens-grid { grid-template-columns: 1fr; max-width: 320px; } }
