/* ── Reset & base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #FAFAF8;
  --text:     #1A1A1A;
  --muted:    #6B6B6B;
  --border:   #E4E4E0;
  --accent:   #4A7FA5;
  --accent-h: #3A6A8E;
  --card-bg:  #F4F4F1;
  --radius:   10px;
  --max-w:    680px;
  --font:     'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Utility ────────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

/* ── Typography ─────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

p { color: var(--text); }

.subheadline {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.microcopy {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
}

/* ── Email form ─────────────────────────────────────────────────────────── */
.email-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.email-form input[type="email"] {
  flex: 1 1 220px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.email-form input[type="email"]:focus {
  border-color: var(--accent);
}

.email-form button {
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.email-form button:hover { background: var(--accent-h); }
.email-form button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.form-success {
  font-size: 0.95rem;
  color: var(--accent);
  padding: 12px 0;
}

/* ── Section spacing ────────────────────────────────────────────────────── */
section { padding: 88px 0; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding-top: 120px;
  padding-bottom: 100px;
  text-align: center;
}

.hero .email-form { justify-content: center; }
.hero .microcopy { text-align: center; }

/* ── Problem ────────────────────────────────────────────────────────────── */
.problem {
  border-top: 1px solid var(--border);
  text-align: center;
}

.problem p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

.before-after {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.app-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
}

.app-icon svg {
  width: 26px;
  height: 26px;
}

.arrow {
  font-size: 1.2rem;
  color: var(--border);
}

.app-single .app-icon.single {
  width: 68px;
  height: 68px;
  background: var(--accent);
  border-color: var(--accent);
  border-radius: 18px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(74,127,165,0.35);
}

.app-single .app-icon.single svg {
  width: 30px;
  height: 30px;
}

/* ── Tracking cards ─────────────────────────────────────────────────────── */
.tracking { border-top: 1px solid var(--border); }

.tracking h2 { text-align: center; margin-bottom: 48px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

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

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background: rgba(74,127,165,0.08);
  border-radius: 24px;
  margin: 0 auto 20px;
  color: var(--accent);
}

.card-icon svg {
  width: 44px;
  height: 44px;
}

.card h3 { margin-bottom: 6px; }

.card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.cards-footnote {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* ── Pillars ────────────────────────────────────────────────────────────── */
.pillars {
  border-top: 1px solid var(--border);
  text-align: center;
}

.pillars h2 { margin-bottom: 48px; }

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pillar {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.pillar:last-child { border-bottom: none; }

.pillar h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.pillar p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Newsletter ─────────────────────────────────────────────────────────── */
.newsletter {
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--card-bg);
}

.newsletter .email-form { justify-content: center; }
.newsletter .microcopy { text-align: center; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  height: 28px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

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

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

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--border);
  margin-top: 4px;
}

/* ── Scroll fade-in ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .before-after { gap: 16px; }
  .arrow { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .email-form { flex-direction: column; }
  .email-form input[type="email"],
  .email-form button { width: 100%; }
}
