/* ---------------------------------------------------------------------
   GEO LIFE, shared stylesheet.

   One file for all five sites. Each site sets --accent on :root and
   everything else follows, so a new app site is a colour and a page of
   copy rather than a new design.

   Mobile first on purpose. Almost every visitor arrives from an invite
   link opened on a phone, so the narrow layout is the real one and the
   wide layout is the variation.
   --------------------------------------------------------------------- */

:root {
  --accent:      #FF0B14;   /* the GEO LIFE red, sampled from the wordmark */
  --accent-soft: rgba(255, 11, 20, 0.12);
  --ink:         #0B0B0C;
  --paper:       #FFFFFF;
  --muted:       rgba(255, 255, 255, 0.62);
  --rule:        rgba(255, 255, 255, 0.14);
  --max:         64rem;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- header ---------------------------------------------------------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* padding-top/bottom, not the shorthand: see the note on .hero. */
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.masthead img { height: 1.6rem; width: auto; display: block; }

.masthead .mark {
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.masthead nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.masthead nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.masthead nav a:hover { color: var(--paper); }

.masthead nav a.cta {
  color: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.masthead nav a.cta:hover { border-color: var(--accent); }

/* Section links do not fit beside the wordmark on a phone. Hide them
   rather than letting the row overflow the gutter. */
@media (max-width: 45.99rem) {
  .masthead nav a:not(.cta) { display: none; }
  .masthead img { height: 1.3rem; }
  .masthead .mark { font-size: 0.8rem; letter-spacing: 0.14em; }
}

/* --- hero ------------------------------------------------------------ */

/* padding-top/bottom, never the shorthand. .hero and .wrap are both
   classes, so a `padding: 3rem 0 4rem` here wins on source order and
   silently resets the gutter .wrap just set. The hero then runs to the
   screen edge on a phone, which is where it is most obvious and where
   almost every visitor is. Same trap in .prose below. */
.hero { padding-top: 3rem; padding-bottom: 4rem; }

.hero h1 {
  font-size: clamp(2.5rem, 11vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  font-weight: 800;
}

.hero .lede {
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 34ch;
}

.hero img.wordmark {
  width: min(22rem, 78%);
  height: auto;
  display: block;
  margin: 0 0 2rem;
}

/* --- buttons --------------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }

.btn-ghost { border-color: var(--rule); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }

/* A button for something that is not available yet. It must look
   unavailable rather than merely quiet, because the previous download
   page offered a Play Store link that led to a 404. */
.btn-off {
  border-color: var(--rule);
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

.btn small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.15rem;
}

.btn .stack { text-align: left; }

/* --- sections -------------------------------------------------------- */

section { padding: 3.5rem 0; border-top: 1px solid var(--rule); }

section h2 {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  font-weight: 800;
}

section h2 .accent { color: var(--accent); }

section p { max-width: 58ch; color: var(--muted); }
section p strong { color: var(--paper); font-weight: 600; }

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

/* --- steps ----------------------------------------------------------- */

.steps { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: s; }

.steps li {
  counter-increment: s;
  padding: 1.25rem 0 1.25rem 3.25rem;
  position: relative;
  border-top: 1px solid var(--rule);
  max-width: 54ch;
}

.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.steps b { display: block; font-weight: 700; margin-bottom: 0.2rem; }
.steps span { color: var(--muted); }

/* --- app grid -------------------------------------------------------- */

.apps {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}

.app {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
}

.app:hover { border-color: var(--app-accent, var(--accent)); }

.app .dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--app-accent, var(--accent));
  display: inline-block;
  margin-bottom: 0.9rem;
}

.app h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  font-weight: 800;
}

.app p { margin: 0; font-size: 0.95rem; color: var(--muted); max-width: none; }

.app .state {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- callout --------------------------------------------------------- */

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 2rem 0 0;
  max-width: 58ch;
}

.note p { margin: 0; color: var(--paper); font-size: 0.95rem; }

/* --- prose, for the policy page -------------------------------------- */

.prose { padding-top: 2rem; padding-bottom: 4rem; max-width: 42rem; }
.prose h1 { font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.prose h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--paper); font-weight: 600; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--accent); }
.prose .updated { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* --- footer ---------------------------------------------------------- */

footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.25rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--paper); }

/* --- wider screens --------------------------------------------------- */

@media (min-width: 46rem) {
  body { font-size: 18px; }
  .hero { padding-top: 5rem; padding-bottom: 6rem; }
  section { padding: 5rem 0; }
  .apps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .apps { grid-template-columns: repeat(4, 1fr); }
}

/* Respect a reduced-motion preference. Nothing here animates today, but
   the rule belongs with the stylesheet rather than with whoever adds the
   first transition. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
