/* Evir site — tokens mirror the app's DSColor/DSFont/DSMetrics. */
:root {
  --bg: #0a0a0f;
  --surface: #16161f;
  --surface2: #1e1e2a;
  --border: #2a2a38;
  --text: #ffffff;
  --text2: #9a9aac;
  --text3: #63636f;
  --accent: #6c5ce7;
  --accent2: #b15ce7;
  --accent3: #5c8ce7;
  --success: #30d158;
  --warning: #ffb020;
  --radius-md: 16px;
  --radius-lg: 24px;
  --mark-gradient: linear-gradient(135deg, #e64c60, #b15ce7, #5c8ce7);
  --brand-gradient: linear-gradient(135deg, #6c5ce7, #b15ce7, #5c8ce7);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f4f8;
    --surface: #ffffff;
    --surface2: #eaeaf2;
    --border: #e4e4ee;
    --text: #16161f;
    --text2: #5f5f70;
    --text3: #9a9aa6;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}
.nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.nav .logo img { width: 28px; height: 28px; border-radius: 7px; }
.nav a { color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 76px 0 56px; }
.hero img.appicon {
  width: 96px; height: 96px;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.35);
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(32px, 6vw, 46px); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 .grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.tagline {
  color: var(--text2);
  font-size: 18px;
  max-width: 560px;
  margin: 16px auto 32px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 30px;
}
.store-btn:hover { opacity: 0.88; }
.hero .privacy-note { margin-top: 18px; font-size: 13px; color: var(--text3); }

/* Sections */
section { padding: 40px 0; }
h2.section-title { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
p.section-sub { color: var(--text2); margin-bottom: 26px; }

/* Cards / grids */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.card p { font-size: 14px; color: var(--text2); }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 30px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 500;
}

/* Prose pages (privacy / terms / help) */
.prose { padding: 52px 0 72px; max-width: 720px; }
.prose h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.prose .meta { color: var(--text3); font-size: 14px; margin-bottom: 32px; }
.prose h2 { font-size: 21px; font-weight: 700; margin: 36px 0 10px; }
.prose h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--text2); font-size: 15.5px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent3); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose .callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
}
.prose .callout p { margin: 0; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--text3); font-size: 20px; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p, details ul, details ol { color: var(--text2); font-size: 14.5px; margin-top: 10px; }
details ul, details ol { margin-left: 20px; }
details li { margin-bottom: 5px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 44px;
  margin-top: 40px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--text3);
  font-size: 13.5px;
}
.footer-row nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-row a { color: var(--text2); text-decoration: none; }
.footer-row a:hover { color: var(--text); }
