:root {
  --bg: #faf9f7;
  --text: #1c1917;
  --muted: #57534e;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --border: #e7e5e4;
  --card: #ffffff;
  --gauge-green: #16a34a;
  --gauge-orange: #ea580c;
  --gauge-yellow: #ca8a04;
  --gauge-red: #dc2626;
  --gauge-blue: #2563eb;
  --header-bg: #ffffff;
}

[data-theme="dark"] {
  --bg: #1c1917;
  --text: #fafaf9;
  --muted: #a8a29e;
  --accent: #2dd4bf;
  --accent-dark: #14b8a6;
  --border: #44403c;
  --card: #292524;
  --header-bg: #292524;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.2s, color 0.2s;
}

header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  line-height: 1;
}
.theme-toggle:hover { background: var(--border); }

.btn-primary, .btn-secondary, .btn-outline {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

main { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}
.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.5rem; }
.cta-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.disclaimer { font-size: 0.85rem; color: var(--muted); }

.gauge-placeholder {
  width: 220px;
  height: 140px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(to right, var(--gauge-blue), var(--gauge-yellow), var(--gauge-orange), var(--gauge-green));
  border-radius: 110px 110px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 1rem;
  color: white;
  font-weight: 600;
}
.gauge-value { font-size: 2.5rem; }
.gauge-label { font-size: 0.9rem; opacity: 0.9; }

.section { padding: 4rem 0; }
.section.alt { background: color-mix(in srgb, var(--text) 4%, var(--bg)); margin: 0 -1.5rem; padding: 4rem 1.5rem; }
.section h2 { font-size: 2rem; margin-bottom: 2rem; text-align: center; }

.steps, .features, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.step, .feature, .plan {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.step-num {
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.price { font-size: 2rem; font-weight: 700; margin: 0.5rem 0; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan ul { padding-left: 1.2rem; margin: 1rem 0; }
.plan li { margin-bottom: 0.4rem; }
.note { text-align: center; color: var(--muted); margin-top: 2rem; font-size: 0.9rem; }

.cta-section { text-align: center; }
.store-badges { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }
.badge {
  padding: 0.75rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
}

.prose { max-width: 700px; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 0.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; }

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .cta-row { justify-content: center; }
  .nav-links { display: none; }
  .hero h1 { font-size: 2.2rem; }
}
