/* Meter Alarm — shared styles for marketing site + privacy page */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --accent: #0a4d8c;
  --accent-hover: #083d6f;
  --border: #e5e5e5;
  --card-bg: #f7f8fa;
  --urgent: #d23834;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f10;
    --text: #e8e8e8;
    --text-muted: #999;
    --accent: #6ea8fe;
    --accent-hover: #8db9ff;
    --border: #2a2a2c;
    --card-bg: #1a1a1c;
    --urgent: #ff5a55;
  }
}

* { box-sizing: border-box; }

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

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

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

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

/* Hero */

.hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.hero .tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--accent);
  margin: 0 0 1.25rem;
  font-weight: 500;
}
.hero .description {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.15s, transform 0.05s;
  border: 1px solid transparent;
}
.button:hover { opacity: 0.9; }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--accent); color: white; }
.button.primary:hover { background: var(--accent-hover); color: white; }
.button.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

/* Sections */

section {
  padding: 3rem 0;
}
section.alt { background: var(--card-bg); }
section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  text-align: center;
  letter-spacing: -0.01em;
}
section .section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* Features grid */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}
.feature p {
  color: var(--text-muted);
  margin: 0;
}
.feature .icon {
  display: inline-block;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 3.5rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.125rem;
}
.step h3 { margin: 0.25rem 0 0.5rem; font-size: 1.125rem; }
.step p { color: var(--text-muted); margin: 0; }

/* Screenshots */

.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.screenshot {
  aspect-ratio: 9 / 19.5;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 32px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
}

/* Beta CTA */

.beta-cta {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.beta-cta h2 { margin-top: 0; }
.beta-cta p { color: var(--text-muted); }

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
footer a { color: var(--text-muted); margin-right: 1rem; }
footer a:hover { color: var(--accent); }

/* Privacy / long-form pages */

.content {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.content h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.content .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.content h2 {
  margin-top: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
  font-size: 1.4rem;
}
.content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}
.content ul { padding-left: 1.5rem; }
.content li { margin: 0.25rem 0; }
.content code {
  background: var(--card-bg);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.9em;
}
