:root {
  --bg: #0b0f14;
  --surface: #131a22;
  --text: #e6edf3;
  --muted: #8b98a6;
  --body: #c2ccd6;
  --accent: #e5484d;
  --border: #222c37;
  --link: #7cc0ff;
  --radius: 14px;
  --maxw: 760px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .5px; color: var(--text); }
.brand svg { width: 26px; height: 26px; display: block; }
header.site nav a { color: var(--muted); margin-left: 18px; font-size: 14px; font-weight: 600; }
header.site nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 56px 0 24px; text-align: center; }
.hero h1 { font-size: 34px; line-height: 1.2; margin: 0 0 14px; }
.hero .accent { color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 auto; max-width: 580px; }
.badge { display: inline-block; margin-top: 26px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 44px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card .step { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: 1px; }
.card h3 { margin: 6px 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Note */
.note { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; color: var(--body); font-size: 14px; margin: 28px 0; }

/* Legal / support content */
.legal { padding: 16px 0 50px; }
.legal h1 { font-size: 28px; margin-bottom: 4px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-top: 0; }
.legal h2 { font-size: 18px; margin-top: 32px; }
.legal p, .legal li { color: var(--body); font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--link); }

/* Footer */
footer.site { border-top: 1px solid var(--border); margin-top: 40px; padding: 26px 0 40px; color: var(--muted); font-size: 13px; text-align: center; }
footer.site .links { margin-top: 8px; }
footer.site .links a { color: var(--muted); margin: 0 10px; font-weight: 600; }
footer.site .links a:hover { color: var(--text); text-decoration: none; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 42px; }
  .hero { padding-top: 72px; }
}

/* CTA button (home) */
.cta { text-align: center; padding: 8px 0 48px; }
.cta-btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 13px 28px; border-radius: 10px; font-size: 15px; }
.cta-btn:hover { opacity: .92; text-decoration: none; }
.cta .sub { display: block; color: var(--muted); font-size: 13px; margin-bottom: 14px; }

/* Dashboard: auth + data (read-only) */
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 420px; margin: 48px auto; text-align: center; }
.auth-card h1 { font-size: 22px; margin: 0 0 8px; }
.auth-card p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid var(--border); margin-top: 10px; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #fff; }
.btn-apple { background: #000; color: #fff; border-color: #333; }
.btn:hover { opacity: .92; }
.auth-error { color: var(--accent); font-size: 13px; margin-top: 14px; min-height: 16px; }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.dash-top .who { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; }
.btn-ghost:hover { color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 600; margin: 22px 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot.on { background: #3ecf8e; }
.dot.off { background: var(--accent); }
.section-label { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin: 26px 0 12px; }
.event { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 15px 18px; margin-bottom: 12px; }
.event .etype { font-weight: 700; font-size: 15px; }
.event .emeta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.empty { color: var(--muted); text-align: center; padding: 44px 0; }
