/* Spot marketing site — light, mobile-first, Material-ish.
   No build step: hand-authored static CSS served directly by Cloudflare Pages. */

:root {
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --ink: #1a1a1a;
  --muted: #555;
  --bg: #ffffff;
  --bg-soft: #f5f7f4;
  --border: #e2e6e0;
  --radius: 14px;
  --maxw: 64rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); }

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--green);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 100;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-name { letter-spacing: -0.01em; }
.site-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
.site-nav a:hover { color: var(--green-dark); }
.translate-widget { min-width: 0; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  max-width: var(--maxw);
  margin: 2rem auto 3rem;
  padding: 0 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Store badges (CSS placeholders — swap for official assets, see README) */
.store-badge, .store-soon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1.2;
  border: 1px solid transparent;
}
.store-badge {
  background: #000;
  color: #fff;
}
.store-badge:hover { background: #1a1a1a; }
.store-soon {
  background: var(--bg-soft);
  color: var(--muted);
  border-color: var(--border);
  cursor: default;
}
.store-badge-small { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; }
.store-badge-big { font-size: 1.15rem; font-weight: 600; }
.cta-note { margin-top: 0.75rem; color: var(--muted); font-size: 0.9rem; }

/* Hero phone mock */
.hero-art { display: flex; justify-content: center; }
.phone-frame {
  width: 240px;
  background: #111;
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}
.phone-screen {
  background: var(--bg-soft);
  border-radius: 22px;
  padding: 1rem 0.9rem;
  min-height: 420px;
}
.screen-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.screen-row em { color: var(--muted); font-style: normal; font-size: 0.8rem; margin-left: auto; }
.screen-row.done { color: var(--muted); text-decoration: line-through; }
.dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--green);
  flex: none;
}
.dot.done { background: var(--green); border-color: var(--green); }
.dot.pending { border-color: #c98a00; background: #ffe9b0; }

/* Features */
.features, .how {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.features { background: var(--bg-soft); max-width: none; }
.features > h2, .how > h2 {
  max-width: var(--maxw);
  margin: 0 auto 2rem;
  text-align: center;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.01em;
}
.feature-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature-icon { font-size: 1.75rem; }
.feature h3 { margin: 0.75rem 0 0.5rem; font-size: 1.2rem; }
.feature p { margin: 0; color: var(--muted); }

/* How it works */
.steps {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  font-size: 1.05rem;
}
.steps li { margin-bottom: 0.9rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--green-dark); text-decoration: underline; }
.footer-note { color: var(--muted); font-size: 0.85rem; margin: 0; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .phone-frame { width: 200px; }
  .site-nav { display: none; }
}

/* Shared legal-page styling (privacy/about/delete/child-safety). */
.legal {
  max-width: 44rem;
  margin: 2rem auto 4rem;
  padding: 0 1.25rem;
}
.legal h1 { font-size: 1.75rem; letter-spacing: -0.01em; }
.legal h2 { font-size: 1.2rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
.legal th, .legal td { border: 1px solid var(--border); padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); }
.legal code { background: var(--bg-soft); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.9em; }
.legal blockquote { border-left: 3px solid var(--green); margin: 1rem 0; padding: 0.25rem 1rem; color: var(--muted); background: var(--bg-soft); }
.legal .back { display: inline-block; margin-bottom: 1.5rem; color: var(--green-dark); text-decoration: none; }
.legal .muted { color: var(--muted); font-size: 0.9rem; margin-top: 2.5rem; }
