:root {
  --brand: #A8A587;
  --ink: #2e2b22;
  --ink-soft: #5c5848;
  --paper: #fbfaf6;
  --link: #3d5a44;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100%;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Landing */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 40px;
  text-align: center;
}

.landing-icon {
  width: 148px;
  height: 148px;
  border-radius: 32px;
  box-shadow: 0 12px 40px rgba(46, 43, 34, 0.14);
  margin-bottom: 28px;
}

.landing h1 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 auto 12px;
  max-width: 340px;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.landing-sub {
  margin: 0 auto 36px;
  max-width: 360px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.landing-sub a {
  color: var(--link);
  font-weight: 500;
}

.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.landing-cta-wrap {
  margin-bottom: 48px;
}

.landing-cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(46, 43, 34, 0.12);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.landing-cta:hover {
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(46, 43, 34, 0.14);
}

.store-badges a {
  display: flex;
  align-items: center;
  line-height: 0;
}

/* Apple's SVG is tight; Google's PNG includes extra padding around the artwork. */
.badge-apple img {
  width: 120px;
  height: auto;
  display: block;
}

.badge-google img {
  width: 155px;
  height: auto;
  display: block;
}

.footer-links {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.copyright {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  opacity: 0.75;
}

.footer-links a {
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-links .sep {
  margin: 0 0.55em;
  opacity: 0.45;
}

.site-footer {
  margin-top: 48px;
  text-align: center;
}

/* Legal / doc pages */
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.page-back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
  font-weight: 500;
}

.doc h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.doc .meta {
  color: var(--ink-soft);
  font-size: 0.875rem;
  margin-bottom: 36px;
}

.doc h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 36px 0 10px;
}

.doc h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

.doc p,
.doc li {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.doc ul,
.doc ol {
  padding-left: 1.25rem;
}

.doc a {
  word-break: break-word;
}

.callout {
  background: rgba(168, 165, 135, 0.15);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin: 24px 0;
}

@media (max-width: 480px) {
  .landing-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
  }

  .landing h1 {
    font-size: 1.5rem;
  }

  .badge-apple img {
    width: 108px;
  }

  .badge-google img {
    width: 140px;
  }
}
