/* Public pages (landing, legal). Plain CSS so they render without JavaScript,
   which platform review crawlers (e.g. Meta's) require. */
/* Palette: the indigo of the landing page banner (Tailwind indigo 950/900 for the deep surfaces). */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f6ff;
  --bg-section: #f8f9ff;
  --text: #13112e;
  --muted: #4c5072;
  --border: #e0e3fa;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-text: #ffffff;
  --deep: #1e1b4b;
  --deep-2: #312e81;
  --on-deep: #ffffff;
  --on-deep-muted: #c7d2fe;
  --on-deep-line: rgba(199, 210, 254, .18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0c26;
    --bg-soft: #17153a;
    --bg-section: #121030;
    --text: #e6e8ff;
    --muted: #a3a8d6;
    --border: #2a2760;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-text: #0e0c26;
    --deep: #15123a;
    --deep-2: #262266;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* Grows with the screen (up to 1680px), with side margins that scale from 16px on phones. */
.wrap { max-width: 1680px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }

/* Header and footer in the banner's deep indigo, so the header runs straight into the hero. */
header.site { background: var(--deep); border-bottom: 1px solid var(--on-deep-line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 700; letter-spacing: .02em; color: var(--on-deep); text-decoration: none; white-space: nowrap; }
.brand span { color: #a5b4fc; }
header.site nav { display: flex; gap: 12px; align-items: center; }
header.site nav a { text-decoration: none; font-size: 15px; white-space: nowrap; color: var(--on-deep-muted); }
header.site nav a:hover { color: var(--on-deep); }
header.site nav .btn, .hero.banner .btn { background: #6366f1; border-color: #6366f1; color: #ffffff; }
header.site nav .btn:hover, .hero.banner .btn:hover { background: #818cf8; border-color: #818cf8; color: #ffffff; }

.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 15px;
  text-decoration: none; background: var(--accent); color: var(--accent-text); border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn.ghost { background: transparent; color: var(--accent); }

.hero { padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 6vw, 96px); text-align: center; }
.hero h1 { font-size: clamp(30px, 3.6vw, 64px); line-height: 1.12; margin: 0 0 18px; }
.hero p { font-size: clamp(17px, 1.2vw, 21px); color: var(--muted); max-width: 720px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Landing hero with the archive illustration: dark indigo in light and dark mode alike. Text on the
   left, the art (/banner.svg) on the right; the art steps aside on narrow screens. */
.hero.banner { background: linear-gradient(135deg, var(--deep), var(--deep-2)); text-align: left; overflow: hidden; }
.hero.banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 72px); }
.hero.banner .hero-text { flex: 1 1 560px; max-width: 840px; min-width: 0; }
.hero.banner h1 { color: #ffffff; }
.hero.banner p { color: #c7d2fe; margin-left: 0; }
.hero.banner .actions { justify-content: flex-start; }
.hero.banner .btn.ghost { background: transparent; border-color: #a5b4fc; color: #ffffff; }
.hero.banner .btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.hero-art { flex: 0 1 760px; width: 100%; max-width: 48%; height: auto; }
@media (max-width: 860px) {
  .hero-art { display: none; }
}

.section { padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--border); }
/* Every other section on a faint indigo tint, with white cards. */
.section:nth-of-type(odd) { background: var(--bg-section); }
.section:nth-of-type(odd) .card, .section:nth-of-type(odd) ol.steps li { background: var(--bg); }
.section h2 { font-size: clamp(22px, 2vw, 30px); margin: 0 0 clamp(20px, 2.5vw, 36px); text-align: center; }
/* Even rows for the six-card sections: 3 across on desktop, 2 on tablets, 1 on phones. */
.grid { display: grid; gap: clamp(12px, 1.5vw, 24px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: clamp(16px, 1.6vw, 26px);
  box-shadow: 0 1px 2px rgba(30, 27, 75, .04); }
.card h3 { margin: 0 0 6px; font-size: clamp(16px, 1.2vw, 19px); }
.card.wide { grid-column: 1 / -1; }
.soon { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px;
  font-weight: 600; vertical-align: middle; background: #e0e7ff; color: #3730a3; }
.card h3 small { font-size: 13px; font-weight: 500; color: var(--muted); }
.card p { margin: 0; color: var(--muted); font-size: clamp(15px, 1vw, 16px); }
/* How it works: numbered steps, a row of four on desktop, stacked on phones. */
ol.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; color: var(--muted);
  display: grid; gap: clamp(12px, 1.5vw, 24px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { ol.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { ol.steps { grid-template-columns: 1fr; } }
ol.steps li { counter-increment: step; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: clamp(16px, 1.6vw, 26px); font-size: clamp(15px, 1vw, 16px); }
ol.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-bottom: 12px; border-radius: 999px;
  background: linear-gradient(135deg, #818cf8, #4f46e5); color: #ffffff; font-weight: 700; font-size: 15px; }
ol.steps strong { color: var(--text); }

.legal { max-width: 760px; padding: 40px 16px 64px; }
.legal h1 { font-size: 32px; margin: 0 0 4px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 20px; margin: 36px 0 8px; }
.legal li { margin-bottom: 6px; }
.legal .callout { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; }

footer.site { background: var(--deep); padding: 28px 0; color: var(--on-deep-muted); font-size: 14px; }
footer.site a { color: var(--on-deep); }
footer.site a:hover { color: #a5b4fc; }
footer.site .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
footer.site p { margin: 4px 0; }

/* Phones: a one-line header and tighter spacing. */
@media (max-width: 560px) {
  header.site nav .hide-sm { display: none; }
  header.site .wrap { height: 56px; gap: 8px; }
  header.site nav { gap: 8px; }
  .brand { font-size: 14px; letter-spacing: 0; }
  header.site nav a { font-size: 14px; }
  header.site nav .btn { padding: 7px 10px; }
  .hero p { margin-bottom: 24px; }
  footer.site { padding: 24px 0; }
}
/* Small phones: the hero's Sign in button sits just below, so the header keeps only Request access. */
@media (max-width: 380px) {
  header.site nav .hide-xs { display: none; }
}
