/* scatteredapp.com — shared styles. Same palette as the app's sign-in screen. */
:root {
  --bg-top: #0d1421;
  --bg-bottom: #1a1033;
  --gold: #D4AF37;
  --gold-soft: rgba(212, 175, 55, 0.14);
  --pin: #243447;
  --text: #e8e6e1;
  --muted: #a3a8b4;
  --line: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%) fixed;
  background-color: var(--bg-top);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
header.site .brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: 0.02em;
}
header.site .brand svg { width: 22px; height: 30px; } /* enlarged below */
header.site nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--gold); }

main { padding: 40px 0 64px; }

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; font-weight: 600; }
h2 { font-size: 21px; margin: 40px 0 10px; color: var(--gold); font-weight: 600; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
.updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
ul { padding-left: 22px; }
li { margin: 6px 0; }

.card {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 24px; margin: 24px 0;
}
.card.gold { background: var(--gold-soft); border-color: rgba(212, 175, 55, 0.35); }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--gold); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* Home */
.hero { text-align: center; padding: 56px 0 24px; }
.hero svg { width: 84px; height: 116px; filter: drop-shadow(0 8px 18px rgba(212, 175, 55, 0.25)); }
.hero h1 { font-size: 40px; margin-top: 20px; }
.hero .tagline { font-size: 20px; color: var(--muted); margin: 0 auto; max-width: 30em; }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 40px 0; }
.features .card { margin: 0; }
.features h3 { margin-top: 0; color: var(--gold); }
.soon { text-align: center; color: var(--muted); }

/* Single-message pages (email confirmed) */
.centre { text-align: center; padding-top: 72px; }
.centre svg { width: 64px; height: 88px; }

footer.site {
  border-top: 1px solid var(--line); padding: 24px 0 40px;
  font-size: 14px; color: var(--muted);
}
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
footer.site a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  .hero h1 { font-size: 32px; }
  header.site { flex-direction: column; align-items: flex-start; }
}

/* Placeholder that must be filled in before the site goes live — deliberately loud */
.todo { background: #b91c1c; color: #fff; padding: 0 6px; border-radius: 4px; font-weight: 600; }

/* Larger wordmark in the header (all pages) */
header.site .brand { font-size: 26px; gap: 12px; }
header.site .brand svg { width: 28px; height: 38px; }

/* Home hero: the app's sign-in landscape behind the pin, edges faded into the background
   (same geometry and mask as the sign-in screen in App.web.tsx) */
.hero { overflow: hidden; padding-top: 0; }
.pin-scene { position: relative; display: inline-block; isolation: isolate; margin-top: 175px; }
.pin-scene .scene {
  position: absolute; top: 5px; left: 50%; z-index: -1;
  width: 460px; height: 420px; object-fit: cover; pointer-events: none;
  transform: translate(-50%, -55%);
  -webkit-mask-image: radial-gradient(ellipse 62% 56% at 50% 56%, black 32%, transparent 80%);
  mask-image: radial-gradient(ellipse 62% 56% at 50% 56%, black 32%, transparent 80%);
}

/* Official store badges — links added at launch */
.badges { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 12px; }
.badges a { display: inline-flex; align-items: center; height: 52px; }
.badges .apple { height: 52px; }
.badges .google { height: 76px; margin: 0 -12px; } /* Google's PNG includes its own padding */
.badges a:not([href]) { cursor: default; }
