/* The coming soon page, in the main site's look (web/src/theme.css, docs/DESIGN.md): light "Snow" paper, white
   surfaces, 1 px lines, a serif headline, and the logo's colours (teal, green, orange) in the moving contour lines. */
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url(/fonts/source-serif-4-latin-wght-normal.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --paper: #f8fafc;
  --surface: #ffffff;
  --ink: #14202b;
  --ink-muted: #3f4b57;
  --ink-soft: #5b6676;
  --line: #e3e8ee;
  --hover: #eef2f6;
  --navy: #12384f;
  --teal: #0b5563;
  --green: #3f9a6c;
  --orange: #d9650f; /* the logo's orange, darkened for white text on it (main site's button) */
  --good-text: #2b6e4b;
  --bad-text: #a8341d;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { font-size: clamp(15px, 0.35vw + 12px, 20px); }
body {
  margin: 0; min-height: 100vh; font-family: var(--sans); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; line-height: 1.5; letter-spacing: -0.006em; font-feature-settings: "cv11" 1;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 0.375rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- top bar ---------- */
.top {
  position: absolute; inset: 0 0 auto; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.brand img { width: 2rem; height: 2rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.875rem; border-radius: 99rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--ink-muted); background: var(--surface); border: 1px solid var(--line);
}
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--orange); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(217 101 15 / 0.5); } 70%, 100% { box-shadow: 0 0 0 0.5rem rgb(217 101 15 / 0); } }

/* ---------- first screen: the group in the middle, over the contour lines ---------- */
.hero { position: relative; display: grid; place-items: center; min-height: min(100vh, 52rem); padding: 6rem 1.5rem 4rem; overflow: hidden; }
#topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
/* Clean paper behind the group, as on the main site's start page. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 36rem 24rem at 50% 50%, rgb(248 250 252 / 0.95) 40%, transparent 100%),
    linear-gradient(to top, var(--paper) 0, transparent 5rem);
}
.group { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; width: min(40rem, 100%); }
.mark { width: 5.5rem; height: 5.5rem; margin-bottom: 1.5rem; filter: drop-shadow(0 0.75rem 1.5rem rgb(11 85 99 / 0.18)); }
h1 {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance;
}
.lead { margin: 1rem 0 2rem; font-size: 1.1875rem; color: var(--ink-muted); text-wrap: balance; }

.join {
  position: relative; display: flex; gap: 0.5rem; width: 100%; padding: 0.375rem 0.375rem 0.375rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0.875rem;
  box-shadow: 0 0 0 1px rgb(217 101 15 / 0.35), 0 0.5rem 1.5rem rgb(20 32 43 / 0.06);
  transition: box-shadow 0.15s;
}
.join:focus-within { box-shadow: 0 0 0 2px var(--orange), 0 0.5rem 1.5rem rgb(20 32 43 / 0.08); }
.join input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.0625rem; color: var(--ink); }
.join input::placeholder { color: var(--ink-soft); }
.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join button {
  flex: none; padding: 0.8rem 1.25rem; border: 0; border-radius: 0.625rem; cursor: pointer;
  font: inherit; font-weight: 650; font-size: 1rem; color: #fff; background: var(--orange); transition: filter 0.15s;
}
.join button:hover { filter: brightness(1.08); }
.join button[disabled] { filter: saturate(0.6); cursor: progress; }
.join.done { box-shadow: 0 0 0 2px var(--green), 0 0.5rem 1.5rem rgb(20 32 43 / 0.06); }

.status { min-height: 1.5rem; margin: 0.75rem 0 0; font-size: 0.9375rem; font-weight: 600; }
.status.ok { color: var(--good-text); }
.status.err { color: var(--bad-text); }
.fine { margin: 0.25rem 0 0; max-width: 32rem; font-size: 0.8125rem; color: var(--ink-soft); }

/* ---------- under the first screen ---------- */
.figures { background: var(--surface); border-block: 1px solid var(--line); }
.figures dl { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 64rem; margin: 0 auto; }
.figures dl > div { padding: 1.5rem 1rem; text-align: center; }
.figures dl > div + div { border-left: 1px solid var(--line); }
.figures dd { margin: 0; font-size: 1.75rem; font-weight: 650; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.figures dt { margin-top: 0.25rem; font-size: 0.875rem; color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 64rem; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.cards article { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0.875rem; }
.tick { display: block; width: 2rem; height: 0.25rem; border-radius: 99rem; margin-bottom: 1rem; }
.t-teal { background: var(--teal); }
.t-green { background: var(--green); }
.t-orange { background: var(--orange); }
.cards h2 { margin: 0 0 0.5rem; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.cards p { margin: 0; color: var(--ink-muted); }

/* ---------- footer ---------- */
.foot { max-width: 64rem; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-muted); }
.foot summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.privacy { max-width: 44rem; margin-top: 0.75rem; }
.privacy strong { color: var(--ink); }
.leave { margin-top: 1.25rem; }
.leave label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--ink); }
.leave div { display: flex; gap: 0.5rem; max-width: 26rem; }
.leave input { flex: 1; min-width: 0; padding: 0.55rem 0.875rem; border-radius: 0.625rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.leave button { padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 0.625rem; background: var(--surface); font: inherit; font-weight: 600; cursor: pointer; }
.leave button:hover { background: var(--hover); }
.copy-line { margin: 1.5rem 0 0; color: var(--ink-soft); }

/* ---------- phones (the link gets shared there) ---------- */
@media (max-width: 760px) {
  .figures dl { grid-template-columns: 1fr; }
  .figures dl > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; padding-top: 2rem; }
}
@media (max-width: 520px) {
  .join { flex-direction: column; padding: 0.375rem; }
  .join input { padding: 0.75rem 0.875rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
