:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #5b6472;
  --border: #e2e8f0;
  --card: #f8fafc;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

h1, h2, h3, p, ol {
  margin: 0;
}

a {
  color: inherit;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 7px;
  background: var(--fg);
}

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

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:not(.btn):hover {
  color: var(--fg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--card);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--card);
}

.btn-lg {
  padding: 12px 22px;
  font-size: 16px;
}

/* Hero */

.hero {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.hero-row {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-tagline {
  margin-top: 24px;
  font-size: clamp(15px, 2.4vw, 20px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

@media (min-width: 640px) {
  .hero-tagline {
    white-space: nowrap;
  }
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Features */

.features {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.features h2,
.how-it-works h2,
.mobile-app h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.feature-card p {
  margin-top: 10px;
  color: var(--muted);
}

/* How it works */

.how-it-works {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.steps {
  margin-top: 32px;
  padding-left: 20px;
  display: grid;
  gap: 16px;
  color: var(--muted);
}

.steps strong {
  color: var(--fg);
}

/* Mobile app */

.mobile-app {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.mobile-app p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 480px;
}

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

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #000000;
  line-height: 1.15;
}

.store-badge-btn:hover {
  background: #1a1a1a;
}

.store-badge-btn-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.store-badge-btn-google {
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #dadce0;
}

.store-badge-btn-google .store-badge-text-small {
  color: #5f6368;
}

.store-badge-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
}

.store-badge-text-small {
  font-size: 10px;
}

.store-badge-text-large {
  font-size: 15px;
  font-weight: 700;
}

/* Footer */

.site-footer {
  padding: 40px 0;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-legal {
  color: var(--muted);
  font-size: 13px;
  max-width: 700px;
}

/* Mobile */

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    display: none;
  }

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

  .nav-links a {
    padding: 10px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .mobile-app-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
