/* ──────────────────────────────────────────────────────────────────
   home.css — the landing page (hero + tile menu + short explainer).
   Pulls palette tokens from map.css and the page background from page.css.
   ────────────────────────────────────────────────────────────────── */

.home {
  max-width: 60rem;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 3.5rem) 1.4rem
           calc(env(safe-area-inset-bottom, 0px) + 3rem);
}

/* ── Hero ───────────────────────────────────────────────────────── */
.home-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0 2.5rem;
}
.home-logo {
  width: 5.5rem;
  height: 5.5rem;
  filter: drop-shadow(0 3px 10px rgba(20,45,64,0.14));
}
.home-wordmark {
  margin-top: 0.4rem;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  line-height: 1.05;
}
.home-wordmark b { font-weight: 600; color: var(--gold); }
.home-tagline {
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  font-weight: 300;
  color: var(--sea);
  letter-spacing: 0.02em;
}
.home-lede {
  max-width: 38rem;
  margin: 0.6rem auto 0;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}
.home-cta {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 2rem;
  background: #0a7d88;                 /* deepened teal — AA contrast with white text */
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(10,125,136,0.30);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.home-cta svg {
  width: 1.15rem; height: 1.15rem;
  stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.home-cta:hover {
  transform: translateY(-2px);
  background: #086d77;
  box-shadow: 0 12px 26px rgba(10,125,136,0.36);
}

/* ── Tile menu ──────────────────────────────────────────────────── */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 2.5rem;
}
.home-tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem 1rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--sea);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(20,45,64,0.07);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.home-tile svg {
  width: 1.7rem; height: 1.7rem;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.home-tile-label {
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--sea);
  font-weight: 400;
}
.home-tile-sub {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 300;
}
a.home-tile:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(20,45,64,0.12);
}
a.home-tile:hover svg { color: var(--teal); }

/* Coming-soon tiles are non-interactive placeholders */
.home-tile.is-soon {
  opacity: 0.72;
  cursor: default;
  background: rgba(20,45,64,0.03);
  box-shadow: none;
}
.home-tile.is-soon .home-tile-label { color: var(--muted); }
.home-soon-badge {
  align-self: flex-start;
  margin-top: -0.15rem;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(217,143,30,0.12);
  border: 1px solid rgba(217,143,30,0.35);
  border-radius: 1rem;
  padding: 0.12rem 0.5rem;
}

/* ── About / sources ────────────────────────────────────────────── */
.home-about {
  max-width: 42rem;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.home-about h2 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--sea);
  margin-bottom: 0.5rem;
}
.home-about p {
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  margin: 0.5rem 0;
}
.home-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.home-source {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
.home-source b { color: var(--sea); font-weight: 500; }
.home-source .dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; }
