/* DaySpeak — minimal, calm, iOS-like. No tracking, no cookies. */

:root {
  --bg: #faf7f2;          /* warm white */
  --surface: #fffdf9;
  --ink: #1d1d1f;          /* near-black */
  --ink-soft: #4a4a4f;
  --muted: #86868b;
  --line: #ece7df;
  --accent: #e6a817;       /* DaySpeak gold */
  --radius: 18px;
  --maxw: 640px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Home ---------- */

.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.wordmark {
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

/* small gold waveform echoing the app logo */
.wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 1em;
}
.wave span {
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.wave span:nth-child(1) { height: 38%; }
.wave span:nth-child(2) { height: 78%; }
.wave span:nth-child(3) { height: 100%; }
.wave span:nth-child(4) { height: 60%; }

.tagline {
  font-size: clamp(18px, 4.5vw, 21px);
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0 0 44px;
  max-width: 22ch;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 320px;
}

.links a {
  display: block;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.links a:hover { border-color: #ddd4c6; transform: translateY(-1px); }
.links a:active { transform: translateY(0); }

.support {
  margin-top: 40px;
  font-size: 15px;
  color: var(--muted);
}
.support a { color: var(--ink-soft); text-decoration: none; }
.support a:hover { color: var(--accent); }

/* ---------- Legal pages ---------- */

.doc {
  padding: 56px 0 96px;
}

.doc .topbar {
  margin-bottom: 40px;
}
.doc .back {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}
.doc .back:hover { color: var(--accent); }

.doc h1 {
  font-size: clamp(28px, 7vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.doc .updated {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 36px;
}

.doc h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

.doc p { margin: 0 0 16px; color: var(--ink-soft); }

.doc ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-soft);
}
.doc li { margin: 0 0 8px; }

.doc strong { color: var(--ink); font-weight: 600; }

.doc a { color: var(--accent); text-decoration: none; }
.doc a:hover { text-decoration: underline; }

.doc .intro p:first-of-type { font-size: 18px; color: var(--ink); }

footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 24px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
