/* ============================================================
   Flown: shared styles for the landing and legal pages.
   Tokens mirror the app's palette (Shared/Theme/Theme.swift).
   ============================================================ */

:root {
  color-scheme: dark;
  --bg:          #07090d;
  --surface:     #10141b;
  --raised:      #151a23;
  --border:      #1d232e;
  --border-2:    #252c39;
  --text:        #eef1f6;
  --text-2:      #a3abbb;
  --muted:       #8a93a6;
  --amber:       #ffb547;
  --amber-deep:  #ffc56e;
  --on-amber:    #07090d;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); }

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

.wordmark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ---- Header ---- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 9, 13, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
header.site nav { display: flex; gap: 20px; }
header.site nav a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--amber); }

/* ---- Hero ---- */
.hero { text-align: center; padding: 88px 0 0; overflow: hidden; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); margin: 16px auto 20px; max-width: 13ch; }
.hero .lede { font-size: 19px; color: var(--text-2); max-width: 33rem; margin: 0 auto 32px; }
.hero .fine { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero-art {
  display: block;
  width: 100%; max-width: 1400px;
  height: clamp(240px, 43vw, 600px);
  margin: 48px auto 0;
  object-fit: cover;
  object-position: center top;
}

.badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px;
  border-radius: 9999px;
  font-weight: 600; font-size: 16px;
  text-decoration: none;
  background: var(--amber); color: var(--on-amber);
}
a.badge:hover { background: var(--amber-deep); }
.badge svg { width: 20px; height: 20px; }

/* ---- Screenshot galleries: horizontal scroll-snap strips ---- */
.gallery {
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 24px 28px;
  scroll-padding: 0 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.gallery figure { flex: 0 0 auto; scroll-snap-align: start; }
.gallery img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border);
  background: var(--surface);
}
.gallery.phone figure { width: clamp(220px, 26vw, 280px); }
.gallery.phone img { aspect-ratio: 1320 / 2868; border-radius: 24px; }
.gallery.pad figure { width: clamp(300px, 56vw, 620px); }
.gallery.pad img { aspect-ratio: 2752 / 2064; border-radius: 20px; }
@media (min-width: 1128px) {
  .gallery { padding-left: calc((100vw - 1080px) / 2 + 24px); scroll-padding-left: calc((100vw - 1080px) / 2 + 24px); }
}

/* ---- Sections ---- */
.section { padding: 72px 0; }
.section.tight { padding-top: 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); margin-top: 8px; }
.section-head p { color: var(--text-2); margin-top: 10px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; font-weight: 700; letter-spacing: -0.01em; }
.feature p { color: var(--text-2); font-size: 15px; line-height: 1.6; }

.privacy-band { background: var(--surface); border: 1px solid var(--border-2); border-radius: 28px; padding: 48px 32px; text-align: center; }
.privacy-band h2 { font-size: clamp(26px, 4vw, 34px); margin: 8px 0 12px; }
.privacy-band > p { color: var(--text-2); max-width: 37rem; margin: 0 auto; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px 0; }
.pill {
  background: var(--raised); border: 1px solid var(--border-2);
  border-radius: 9999px; padding: 6px 16px;
  font-size: 14px; font-weight: 600; color: var(--text);
}

/* ---- Legal pages ---- */
.legal { max-width: 720px; margin: 0 auto; padding: 64px 24px 80px; }
.legal h1 { font-size: clamp(32px, 5vw, 42px); margin: 8px 0 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal .summary { background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; padding: 20px 24px; color: var(--text-2); margin-bottom: 40px; }
.legal .summary strong { color: var(--text); }
.legal section { margin-bottom: 36px; }
.legal h2 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 16px; margin: 20px 0 4px; letter-spacing: 0; font-weight: 700; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0 20px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--amber); }
.legal .toc { margin: 0 0 40px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.legal .toc li { margin: 0; }
.legal .toc a {
  display: inline-block; padding: 4px 14px; border-radius: 9999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600;
}

/* ---- Footer ---- */
footer.site { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer.site a { color: var(--text-2); text-decoration: none; }
footer.site a:hover { color: var(--amber); }
