/*
 * evo.css — the shared look for evoforluanching.web.app.
 *
 * The 24 rune pages and /stats already ship an inline version of this palette
 * (they are generated by scripts/generate-og-pages.mjs and stay self-contained
 * so a scraper gets everything in one document). The hand-written pages —
 * landing, 404, trip invites — link this file instead of each inventing their
 * own, which is how the site ended up with a white-and-red landing page in
 * front of twenty-five deep-violet ones.
 *
 * Tokens match the generated pages exactly. Change them here AND in
 * generate-og-pages.mjs, or the site splits in two again.
 */

:root {
  --ink: #1F1B3A;
  --ink-deep: #0E0A22;
  --violet: #7C3AED;
  --violet-hover: #6D28D9;
  --lilac: #C9C0FF;
  --muted: #9A8FE0;
  --faint: #6F6090;
  --line: rgba(124, 58, 237, 0.4);
  --panel: rgba(124, 58, 237, 0.16);
  --radius: 16px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  background-attachment: fixed;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  /* Notched phones: the CTA must never sit under the home indicator. */
  padding: 0 max(20px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-bottom));
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 0;
}

.center {
  text-align: center;
}

/* --- Type ------------------------------------------------------------- */

h1 {
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}

h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--lilac);
  margin: 0 0 14px;
}

p {
  margin: 0 0 16px;
}

.lede {
  font-size: 17px;
  color: #EDE9FF;
}

.sub {
  font-size: 14px;
  color: var(--lilac);
  font-style: italic;
}

.muted {
  color: var(--muted);
  font-size: 13.5px;
}

.tagline {
  margin-top: 32px;
  font-size: 12px;
  color: var(--muted);
}

.footer {
  margin-top: 48px;
  font-size: 11px;
  color: var(--faint);
}

.footer a {
  color: var(--faint);
}

a {
  color: var(--lilac);
}

/* --- Brand ------------------------------------------------------------ */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  text-decoration: none;
}

.brand .runes {
  color: var(--violet);
  letter-spacing: 2px;
  font-size: 15px;
}

/* --- Surfaces --------------------------------------------------------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px;
}

.chip {
  display: inline-block;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--lilac);
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* --- Actions ---------------------------------------------------------- */

.cta,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.cta {
  background: var(--violet);
  color: #fff;
}

.cta:hover {
  background: var(--violet-hover);
}

.cta-secondary {
  background: transparent;
  border-color: var(--line);
  color: #fff;
}

.cta-secondary:hover {
  border-color: var(--violet);
  background: rgba(124, 58, 237, 0.12);
}

.cta:active,
.cta-secondary:active {
  transform: scale(0.985);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
}

/* --- Feature list ----------------------------------------------------- */

.features {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.features li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.features b {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.features span {
  font-size: 13.5px;
  color: var(--lilac);
}

@media (min-width: 620px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .actions {
    flex-direction: row;
    justify-content: center;
  }
  .cta,
  .cta-secondary {
    width: auto;
    min-width: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
