:root {
  --charcoal-teal: #334747;
  --charcoal-teal-dark: #263636;
  --red: #D41717;
  --cream: #F7F5F1;
  --text-muted: #5b6b6b;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

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

/* Header */
.site-header {
  padding: 24px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header img {
  width: 40px;
  height: 40px;
}

.site-header .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.hero img.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--red);
}

.hero p.subhead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* App Store badge (placeholder until the real listing URL and official artwork are available) */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.app-store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.app-store-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.app-store-badge .badge-text {
  text-align: left;
  line-height: 1.15;
}

.app-store-badge .badge-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
}

.app-store-badge .badge-text strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
}

/* Features */
.features {
  background: var(--cream);
  padding: 64px 0;
}

.features h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 40px;
}

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

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  text-align: center;
  padding: 8px;
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

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

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* How it works */
.how-it-works {
  padding: 64px 0;
}

.how-it-works h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
}

.step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--charcoal-teal);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* CTA band */
.cta-band {
  background: var(--charcoal-teal);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}

.cta-band h2 {
  margin: 0 0 24px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

/* Footer */
.site-footer {
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .footer-links {
  margin-top: 12px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer a {
  text-decoration: none;
  color: var(--charcoal-teal);
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Privacy page */
.legal {
  padding: 56px 0 80px;
}

.legal .container {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 40px;
}

.legal p, .legal li {
  color: #2f3d3d;
}

.legal a {
  color: var(--red);
}

@media (max-width: 480px) {
  .hero {
    padding: 32px 0 48px;
  }

  .app-store-badge {
    padding: 10px 18px;
  }
}
