/* Valence landing site. Colors come from the app icon (sage, deep green, cream). */
:root {
  --bg: #f4f0e3;
  --surface: #fbf8ef;
  --text: #1c2a23;
  --muted: #56655d;
  --border: #ddd6c2;
  --accent: #3f5e4f;
  --accent-strong: #2a4438;
  --accent-text: #fbf8ef;
  --sage: #4e6a5b;
  --cream: #efe8d0;

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141d18;
    --surface: #1b2620;
    --text: #ece6d4;
    --muted: #a3aea6;
    --border: #2c3a32;
    --accent: #8fb3a0;
    --accent-strong: #b4cfc0;
    --accent-text: #12201a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { color: var(--accent-strong); }

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 22.5%;
}

/* Hero */
.hero {
  text-align: center;
  padding: 56px 0 40px;
}

.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 22.5%;
  box-shadow: 0 12px 32px rgba(30, 50, 40, 0.18);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 9vw, 64px);
  line-height: 1.05;
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
}

.tagline {
  font-size: clamp(19px, 3.6vw, 23px);
  color: var(--muted);
  margin: 0 0 8px;
}

.lede {
  max-width: 560px;
  margin: 0 auto 32px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

a.store-button:hover { background: var(--accent-strong); color: var(--accent-text); }

.store-button svg { width: 20px; height: 20px; fill: currentColor; }

.store-note {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 0 48px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sage);
  color: var(--cream);
  margin-bottom: 14px;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature h2 {
  font-size: 18px;
  margin: 0 0 6px;
}

.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.disclaimer {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Document pages (privacy, terms, support) */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 56px;
}

.doc h1 { font-family: var(--serif); font-size: clamp(32px, 6vw, 42px); line-height: 1.15; margin: 8px 0 12px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc ul { padding-left: 22px; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

.doc-meta { color: var(--muted); font-size: 14px; margin: 0 0 8px; }

.doc-status {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
}
