:root {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --accent: #ec6a9c;
  --accent-soft: #fce7f0;
  --you: #e0f2fe;
  --you-text: #075985;
  --radius: 16px;
  --maxw: 880px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-elevated: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --accent: #f6a5c5;
    --accent-soft: #3b2230;
    --you: #1e3a5f;
    --you-text: #bae6fd;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
main,
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

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

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.nav a {
  color: var(--text-muted);
}

.hero {
  padding: 48px 0 24px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  margin: 0 auto 20px;
  max-width: 16ch;
}

.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 28px;
}

.cta-row {
  margin-bottom: 36px;
}

.badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

.hero-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.chat-line {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  max-width: 85%;
}

.chat-line.you {
  align-self: flex-end;
  background: var(--you);
  color: var(--you-text);
  border-bottom-right-radius: 4px;
}

.chat-line.app {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.features {
  padding: 56px 0;
}

.features h2,
.support h2 {
  text-align: center;
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 36px;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-grid li {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.support {
  padding: 24px 0 64px;
  text-align: center;
}

.support p {
  font-size: 17px;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  padding-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 14px;
}

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

.site-footer nav a {
  color: var(--text-muted);
}

/* Privacy and other long-form content pages */
.content {
  padding: 32px 0 64px;
}

.content h1 {
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 8px;
}

.content .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 32px;
}

.content h2 {
  font-size: 22px;
  margin: 36px 0 12px;
}

.content p,
.content li {
  color: var(--text-muted);
  font-size: 16px;
}

.content a.back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 15px;
}

@media (max-width: 560px) {
  .nav {
    gap: 16px;
  }
  .site-footer {
    flex-direction: column;
    gap: 12px;
  }
}
