:root { color-scheme: light; --accent: #5B5FC7;
  --bg: #F2F2F7; --surface: #fff; --text: #1a1c1c; --muted: #6b6b78;
  --border: rgba(0,0,0,0.08); --accent-muted: #E8E9FF; --green: #3DAB6F; }
/* Dark: follows the system unless the theme switch picked one (data-theme on <html>) */
:root[data-theme="dark"] { color-scheme: dark; --accent: #9DA0F0;
  --bg: #111; --surface: #1C1C1E; --text: #f1f1f1; --muted: #a0a0aa;
  --border: rgba(255,255,255,0.1); --accent-muted: #2A2B5E; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --accent: #9DA0F0;
    --bg: #111; --surface: #1C1C1E; --text: #f1f1f1; --muted: #a0a0aa;
    --border: rgba(255,255,255,0.1); --accent-muted: #2A2B5E; }
}
body { margin: 0; font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { max-width: 680px; margin: 0 auto; padding: 48px 24px 64px; }
h1 { font-size: 2rem; margin: 0 0 4px; }
h2 { font-size: 1.2rem; margin-top: 2em; }
h3 { font-size: 1rem; margin-bottom: 0; }
h3 + p { margin-top: 4px; }
.meta { opacity: 0.6; margin-top: 0; }
a { color: var(--accent); }

/* Landing page */
.landing { background: var(--bg); color: var(--text); }
.landing main.wide { max-width: 1080px; padding-top: 24px; }
.landing a { text-decoration: none; }
.nav, .landing footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  max-width: 1080px; margin: 0 auto; padding: 16px 24px; }
.nav { position: sticky; top: 0; z-index: 1; backdrop-filter: blur(12px); }
.nav nav, .landing footer > span:last-child { display: flex; gap: 24px; }
.nav nav a, .landing footer a { color: var(--muted); }
.nav-end { display: flex; align-items: center; gap: 24px; }
.theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 1rem; cursor: pointer; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text) !important; }
.landing img { border-radius: 22%; vertical-align: middle; }
.landing section { padding: 48px 0; }
.hero { padding-top: 48px !important; max-width: 720px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); line-height: 1.1; letter-spacing: -0.02em; margin: 16px 0; }
.landing h2 { font-size: 2rem; letter-spacing: -0.01em; margin: 12px 0 24px; }
.landing h3 { font-size: 1.1rem; margin: 0 0 8px; }
.landing .card p, .lead, .small { color: var(--muted); margin: 0; }
.lead { font-size: 1.15rem; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 14px; border-radius: 999px;
  background: var(--accent-muted); color: var(--accent); font-size: 0.8rem; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-block; padding: 14px 24px; border-radius: 12px; font-weight: 600;
  background: #5B5FC7; color: #fff !important; }
.button.secondary { background: var(--surface); color: var(--text) !important; border: 1px solid var(--border); }
.button.light { background: #fff; color: #5B5FC7 !important; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.wide-card { grid-column: span 2; }
.split { flex-direction: row; align-items: center; }
.demo, .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.demo { background: var(--bg); border-radius: 12px; padding: 16px; }
.arrow { color: var(--accent); font-size: 1.3rem; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); font-size: 0.95rem; }
.emoji { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: color-mix(in srgb, var(--c) 18%, transparent); }
.donut { flex-shrink: 0; width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#3DAB6F 0 35%, #E5914B 0 60%, #5B5FDE 0 80%, #06B6D4 0); }
.donut span { width: 92px; height: 92px; border-radius: 50%; background: var(--surface); display: grid;
  place-items: center; font-size: 0.8rem; color: var(--muted); }
.faq { margin-top: 24px; display: grid; gap: 12px; max-width: 720px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.final { background: #5B5FC7; color: #fff; border-radius: 20px; text-align: center; padding: 64px 24px !important; margin-bottom: 48px; }
.final h2 { margin-top: 0; }
.final .small { color: rgba(255,255,255,0.8); }
.landing footer { color: var(--muted); font-size: 0.9rem; padding-bottom: 32px; }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .wide-card { grid-column: auto; }
  .split { flex-direction: column; align-items: flex-start; }
  .nav { padding: 12px 16px; }
  .nav-end, .nav nav { gap: 16px; }
  .nav nav a { font-size: 15px; }
}
@media (max-width: 400px) {
  .brand span { display: none; } /* icon alone keeps all three links on one line */
}

/* Privacy policy page */
.nav nav a[aria-current] { color: var(--text); font-weight: 600; }
.policy .card { justify-content: flex-start; gap: 12px; }
.policy .card h2 { font-size: 1.1rem; margin: 0; letter-spacing: 0; }
.policy .card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.policy .card li { margin-bottom: 6px; }
.policy .card strong, .lead strong { color: var(--text); }
.policy .card a { text-decoration: underline; text-underline-offset: 2px; }
.policy .small { margin-top: 16px; }
.policy .final p { max-width: 560px; margin: 0 auto; }
.policy .final a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* "What Grasp doesn't do" strip */
.nots { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 0 24px !important; }
.nots span { padding: 8px 16px; border-radius: 999px; border: 1px dashed var(--border); color: var(--muted); font-size: 0.95rem; }
.nots span::before { content: "✕ "; color: #E5534B; }

/* Quick-add demo */
.demo .typing { min-width: 13em; }
.demo .note { color: var(--muted); }
.demo.active .note::after { content: "|"; margin-left: 1px; color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.suggestion { transition: opacity .3s, transform .3s; }
.suggestion.hidden { opacity: 0; transform: translateY(6px); }

/* Discreet mode demo */
.balance { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.balance div { display: grid; }
.balance b { font-size: 1.4rem; transition: filter .3s; }
.blurred { filter: blur(8px); }
.eye { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 1.1rem; }
.eye[aria-pressed="true"] { background: var(--accent-muted); }
@media (prefers-reduced-motion: reduce) { .suggestion, .balance b { transition: none; } }

/* Scroll fade-in (class added by site.js, skipped with Reduce Motion) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
