:root {
  --bg-cream: #FAF7F2;
  --accent: #4F6B5C;
  --accent-deep: #6F8576;
  --ink: #1F1F1F;
  --ink-subtle: #3B3B3B;
  --muted: #8A8A8A;
  --border: #EDE9E1;
  --surface: #FFFFFF;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-cream);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.home {
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

body.home main {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* ---------- Logo / brand ---------- */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}

.logo-tile {
  width: 112px;
  height: 112px;
  background: var(--accent);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(79, 107, 92, 0.18);
}

.logo-tile img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.brand h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--ink);
}

.brand .tagline {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.5;
}

/* ---------- Download buttons ---------- */

.downloads {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto 48px;
  max-width: 320px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 14px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.store-btn:active {
  transform: translateY(0);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: #fff;
}

.store-btn .lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-btn .lines .small {
  font-size: 11px;
  letter-spacing: 0.3px;
  opacity: 0.85;
}

.store-btn .lines .big {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* ---------- Footer policy links ---------- */

.policies {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.policies a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.policies a:hover {
  background: rgba(79, 107, 92, 0.1);
}

/* ---------- Document pages (privacy / terms) ---------- */

.doc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.doc-header .logo-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 0;
  box-shadow: none;
}

.doc-header h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.doc-header .home-link {
  margin-left: auto;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.doc-header .home-link:hover {
  text-decoration: underline;
}

article h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-top: 32px;
  margin-bottom: 12px;
}

article h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
}

article p,
article li {
  font-size: 15px;
  color: var(--ink-subtle);
  margin-bottom: 12px;
}

article ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

article li {
  margin-bottom: 6px;
}

article .updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

article a {
  color: var(--accent);
}
