/*
 * Shared styling for the marketing and legal pages.
 *
 * Deliberately the same design language as the app — near-black ground, warm
 * off-white text, one copper accent, serif headings against a clean sans. The
 * page someone lands on before installing should feel like the app they're
 * about to install.
 */

:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --border: #2a2a2e;
  --text: #f5f1ec;
  --text-muted: #a8a29b;
  --text-faint: #8a857e;
  --accent: #e8a76a;
  --accent-ink: #1a1206;
  --gutter: 20px;
  --measure: 34rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.75rem); margin-top: 2.5rem; }
h3 { font-size: 1.1rem; margin-top: 1.75rem; }

p, li { color: var(--text-muted); }
p { margin: 0 0 1rem; }
ul { padding-left: 1.15rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #f0bd8c; }

strong { color: var(--text); font-weight: 600; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- site chrome --- */

.site-header {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 62rem;
}

.wordmark {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.site-nav { display: flex; gap: 1.25rem; font-size: 0.9rem; }
.site-nav a { color: var(--text-muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }

.site-footer {
  margin-top: 5rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.site-footer .wrap { max-width: 62rem; }
.site-footer p { color: var(--text-faint); margin: 0 0 0.5rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 0.75rem; }

/* --- legal pages --- */

.legal { padding: 3rem 0 0; }
.legal .asof {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}
.legal h2 + p { margin-top: 0; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* --- landing --- */

.hero { padding: 4.5rem 0 3rem; text-align: center; }
.hero .wrap { max-width: 40rem; }
.hero p.lede {
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 30rem;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  min-height: 44px;
}
.cta:hover { background: #d08f53; color: var(--accent-ink); }
.cta-note { font-size: 0.85rem; color: var(--text-faint); margin-top: 0.9rem; }

/*
 * Explicit column counts rather than auto-fit: there are six tiles, and
 * auto-fit resolved to three, leaving a single orphan on the second row.
 * 6 / 3 / 2 all divide evenly, so every breakpoint gives full rows.
 */
.strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 56rem) { .strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 30rem) { .strip { grid-template-columns: repeat(2, 1fr); } }
.strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: var(--surface);
}
.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  max-width: 62rem;
  margin: 4rem auto 0;
  padding: 0 var(--gutter);
}
.points h3 { margin-top: 0; }
.points p { margin-bottom: 0; font-size: 0.95rem; }

section { margin-top: 4rem; }
