/* meshages.app: one stylesheet for the landing page and the privacy, terms and support pages.
   Same structure as warm.camera, in the app's own lime. See ../README.md. */
:root {
  --bg: #000;
  --fg: #fff;
  --dim: #8e8e93;
  --hair: #1c1c1e;
  --accent: #c6f24e;
  --gutter: 24px;
  /* SF on Apple devices, Inter Tight everywhere else. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Tight", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg); font: 400 17px/1.45 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
main { max-width: 560px; margin: 0 auto; }

/* Wordmark: thin and as wide as the column. Subpages use the small one. */
.hero { display: block; padding: max(40px, env(safe-area-inset-top)) var(--gutter) 0; color: var(--accent); text-align: center; }
.hero h1, .hero .mark { font-size: min(22.5vw, 128px); font-weight: 100; line-height: 1; letter-spacing: -.05em; }
.hero.small .mark { font-size: 44px; font-weight: 200; letter-spacing: -.04em; }

.lede { text-wrap: balance; text-align: center; padding: 20px var(--gutter) 0; font-size: 20px; line-height: 1.35; color: var(--dim); letter-spacing: -.01em; }
.lede b { color: var(--fg); font-weight: 400; }

/* Headlines: thin and large. Body copy: system grey. */
h2 { font-size: 36px; line-height: 1.05; font-weight: 200; letter-spacing: -.03em; margin-bottom: 16px; }
.feature, .more { text-align: center; }
.feature { padding: 96px var(--gutter) 0; }
.feature p { color: var(--dim); max-width: 34em; margin: 0 auto; }
/* Screens come framed in the silver bezel, see og/iphone-shots.py. */
.screen { width: 62%; margin: 36px auto 0; }
.screen img { width: 100%; aspect-ratio: 1470 / 3000; }
.lede + .screen { margin-top: 44px; }

/* Hairline list: white title, grey line under it. */
.more { padding: 96px var(--gutter) 0; }
.list { list-style: none; margin-top: 28px; }
.list > * { padding: 20px 0; border-top: 1px solid var(--hair); color: var(--dim); }
.list h3, .list span { display: block; color: var(--fg); font-size: 17px; font-weight: 400; margin-bottom: 4px; }
.doc a { color: var(--fg); text-decoration: underline; text-decoration-color: #48484a; text-underline-offset: 3px; }

/* Subpages: privacy, terms, support. */
.doc { padding: 72px var(--gutter) 0; text-align: center; }
.doc h1 { font-size: 44px; line-height: 1; font-weight: 200; letter-spacing: -.035em; margin-bottom: 14px; }
.doc .meta { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.doc .intro { margin-top: 28px; font-size: 20px; line-height: 1.35; letter-spacing: -.01em; color: var(--dim); overflow-wrap: anywhere; }

footer {
  padding: 120px var(--gutter) calc(150px + env(safe-area-inset-bottom));
  font-size: 13px; color: var(--dim); text-align: center;
}
footer nav { display: flex; justify-content: center; gap: 22px; margin-bottom: 14px; }
footer nav a { color: var(--fg); }
footer nav a[aria-current] { color: var(--dim); }
footer .fine { max-width: 30em; margin: 14px auto 0; font-size: 11px; line-height: 1.4; color: #636366; }

/* The sticky beta link wears the app's primary button: lime, black text, a full pill. */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 36px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.85) 45%, #000);
  display: flex; justify-content: center; pointer-events: none;
}
.cta {
  pointer-events: auto; display: block; text-align: center; min-width: 220px;
  background: var(--accent); color: #000; border-radius: 999px; padding: 11px 36px 12px;
  transition: transform .15s ease;
}
.cta:active { transform: scale(.96); }
.cta b { display: block; font-size: 16px; font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
.cta small { display: block; font-size: 12px; color: #3c4a14; }

@media (min-width: 700px) {
  :root { --gutter: 40px; }
  .screen { width: 300px; }
}
