:root {
  --bg-top: #f5f7f9;
  --bg-mid: #faf7f5;
  --bg-bottom: #f5f7f9;
  --text-primary: #111;
  --text-secondary: #555;
  --border: #e8eae8;
  --card: #fff;
  --accent: #0ea5e9;
  /* iOS theme colors (kept for brand accents) */
  --high: #C7DB9C;
  --medium: #FFF0BD;
  --low: #FDAB9E;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #1a1c1f;
    --bg-mid: #1f1f1c;
    --bg-bottom: #1a1c1f;
    --text-primary: #eee;
    --text-secondary: #bbb;
    --border: #3f3f3f;
    --card: #1e1f22;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji; color: var(--text-primary); background: linear-gradient(180deg, var(--bg-top), var(--bg-mid), var(--bg-bottom)); }

/* Landing layout */
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap { gap: 16px; }

.site-header { position: sticky; top: 0; backdrop-filter: blur(6px); background: color-mix(in hsl, var(--bg-top) 72%, transparent); border-bottom: 1px solid var(--border); }
.site-header .brand { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.site-header .brand .logo { width: 28px; height: 28px; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.brand-name { font-weight: 700; font-size: 16px; }
.nav a { color: var(--text-secondary); text-decoration: none; margin-left: 14px; }
.nav a:hover { color: var(--text-primary); }

.hero { padding: 72px 0 36px; text-align: center; }
.hero h1 { margin: 0 0 12px; font-size: 40px; letter-spacing: -0.01em; }
.hero .sub { margin: 0 auto; max-width: 720px; color: var(--text-secondary); font-size: 18px; line-height: 1.6; }
.cta { margin-top: 22px; display: flex; gap: 12px; justify-content: center; }
.btn { border: 1px solid var(--border); background: var(--card); color: var(--text-primary); border-radius: 10px; padding: 10px 14px; text-decoration: none; font-weight: 600; }
.btn:hover { filter: brightness(0.98); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-ghost { background: transparent; }

.features { padding: 32px 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 18px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--text-secondary); line-height: 1.6; }

.privacy { padding: 24px 0 56px; }
.privacy-card { border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 22px; max-width: 820px; margin: 0 auto; text-align: center; }
.privacy-card .link { color: var(--accent); text-decoration: none; }
.privacy-card .link:hover { text-decoration: underline; }

.site-footer { border-top: 1px solid var(--border); padding: 12px 0; color: var(--text-secondary); font-size: 14px; }

/* Remove legacy demo UI styles now that index.html is a landing page */


