/* ============================================================
   datadex.app 4.0: home and beta pages
   Colors and type follow the dataDex app (brand red #e53935,
   Material surfaces, Nunito). Legal pages keep style.css.
   ============================================================ */

@font-face {
  font-family: "Nunito";
  src: url("/_fonts/nunito-latin.woff") format("woff");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }

:root {
  --red: #e53935;
  --red-ink: #b3201c;
  --on-red: #ffffff;
  --slate: #416480;

  --bg: #ffffff;
  --bg-soft: #f2f6f7;
  --card: #ffffff;
  --fg: #0d0e0f;
  --fg-muted: rgba(13, 14, 15, 0.7);
  --fg-subtle: rgba(13, 14, 15, 0.6);
  --line: rgba(13, 14, 15, 0.1);
  --accent: #45606e;
  --tint: #ffedea;
  --kicker: #e53935;
  --badge-fg: #b3201c;
  --link: #b3201c;
  --x-btn-bg: #000000;
  --x-btn-fg: #ffffff;
  --show-light: block;
  --show-dark: none;
  color-scheme: light;

  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, system-ui, sans-serif;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 40px rgba(60, 10, 10, 0.25), 0 4px 12px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e10;
    --bg-soft: #121415;
    --card: #181a1b;
    --fg: #f1f0f2;
    --fg-muted: rgba(241, 240, 242, 0.72);
    --fg-subtle: rgba(241, 240, 242, 0.6);
    --line: rgba(241, 240, 242, 0.1);
    --accent: #84b1c8;
    --tint: #2a1514;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    --kicker: #ff8a80;
    --badge-fg: #ffb4ab;
    --link: #ff8a80;
    --x-btn-bg: #f1f0f2;
    --x-btn-fg: #000000;
    --show-light: none;
    --show-dark: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0e10;
  --bg-soft: #121415;
  --card: #181a1b;
  --fg: #f1f0f2;
  --fg-muted: rgba(241, 240, 242, 0.72);
  --fg-subtle: rgba(241, 240, 242, 0.6);
  --line: rgba(241, 240, 242, 0.1);
  --accent: #84b1c8;
  --tint: #2a1514;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  --kicker: #ff8a80;
  --badge-fg: #ffb4ab;
  --link: #ff8a80;
  --x-btn-bg: #f1f0f2;
  --x-btn-fg: #000000;
  --show-light: none;
  --show-dark: block;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }
::selection { background: rgba(229, 57, 53, 0.25); }

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

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 14px;
  background: #fff;
  color: #000;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Top bar (sits on the red hero) ---- */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.topbar .brand img {
  height: 54px;
  width: auto;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  font-size: 0.98rem;
}
.topnav a {
  color: var(--on-red);
  text-decoration: none;
  opacity: 0.92;
}
.topnav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.topnav a.pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--red-ink);
  opacity: 1;
  white-space: nowrap;
}
.topnav a.pill:hover { text-decoration: none; filter: brightness(0.96); }
.topbar :focus-visible { outline-color: #fff; }

@media (max-width: 760px) {
  .topnav { gap: 12px; }
  .topnav a:not(.pill) { display: none; }
  .topbar .brand img { height: 44px; }
}

/* ---- Hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-red);
  background-color: var(--red);
  background-image:
    radial-gradient(ellipse at 30% 40%, rgba(229, 57, 53, 0) 0%, rgba(229, 57, 53, 0) 40%, rgba(200, 40, 36, 0.35) 100%),
    url("/_images/v4/hero-bg.webp");
  background-size: cover, cover;
  background-position: center, center top;
}
.hero :focus-visible { outline-color: #fff; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: end;
}

.hero-copy {
  padding: 48px 0 96px;
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}
.eyebrow .tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--red-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(120, 10, 10, 0.25);
}
.hero .lede {
  max-width: 34ch;
  margin: 22px 0 32px;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.5;
  font-weight: 500;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.play-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.play-badge:hover { transform: translateY(-2px); filter: brightness(1.08); }
.play-badge img { height: 60px; width: auto; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link svg { flex-shrink: 0; }

.hero-phone {
  align-self: end;
  overflow: hidden;
  margin-bottom: -1px;
}
.layout-h1 { aspect-ratio: 520 / 600; }
.layout-h1 .p1 { left: 18%; top: 5%; width: 64%; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 24px 0 40px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-phone { width: min(400px, 100%); }
}

/* ---- Facts strip ---- */

.facts {
  border-bottom: 1px solid var(--line);
}
.facts ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 48px;
  margin: 0 auto;
  padding: 22px 0;
  list-style: none;
  color: var(--fg-muted);
  font-size: 1rem;
}
.facts li { display: inline-flex; align-items: center; gap: 10px; }
.facts strong { color: var(--fg); font-weight: 800; font-size: 1.15rem; }
.facts svg { color: var(--red); }

/* ---- Sections ---- */

.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.kicker {
  margin: 0 0 10px;
  color: var(--kicker);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.section-head p:not(.kicker) {
  margin: 16px 0 0;
  color: var(--fg-muted);
  font-size: 1.15rem;
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
}

/* ---- New in 4.0 cards ---- */

.new-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.new-card {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}
.new-card .icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
}
.new-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}
.new-card p { margin: 0; color: var(--fg-muted); font-size: 1rem; line-height: 1.5; }
.badge-new {
  position: absolute;
  top: 22px;
  right: 20px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--badge-fg);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .new-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .new-grid { grid-template-columns: 1fr; gap: 14px; }
  .new-card { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 20px; }
  .new-card > img { grid-row: span 2; }
  .new-card .icon { width: 48px; height: 48px; margin: 0; }
  .badge-new { top: 18px; right: 16px; }
  .new-card h3 { padding-right: 56px; }
}

/* ---- And so much more ---- */

.more {
  margin-top: 40px;
  padding: 28px 30px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}
.more h3 { margin: 0 0 16px; font-size: 1.25rem; font-weight: 800; }
.more-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.more-list li {
  position: relative;
  padding-left: 22px;
  color: var(--fg-muted);
  line-height: 1.45;
}
.more-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}
@media (max-width: 640px) {
  .more { padding: 22px 20px; }
  .more-list { grid-template-columns: 1fr; }
}

/* ---- Video ---- */

.video-frame {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Feature rows ---- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.feature + .feature { margin-top: 96px; }
.feature.flip .feature-shot { order: 2; }

/* ---- Phones ----
   One frame for every phone, measured from the store art: an off-white bezel 2.4% of the
   phone's width, round corners, and a thin grey line where the screen meets the bezel.
   Sizes use the phone's own width (cqw), so every phone looks the same at any size. */

.stage {
  position: relative;
  width: min(520px, 100%);
  margin: 0 auto;
}
.stage > .device { position: absolute; }
.device {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  container-type: inline-size;
  transform-origin: 50% 50%;
}
.device .frame {
  display: block;
  padding: 2.67cqw;
  border-radius: 19.4cqw;
  background: #fafafa;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 22px 44px rgba(40, 8, 8, 0.24), 0 4px 12px rgba(0, 0, 0, 0.12);
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 1391;
  border-radius: 16.7cqw;
  box-shadow: 0 0 0 max(1px, 0.22cqw) #d6d6d6;
}
button.device { cursor: zoom-in; transition: translate 0.2s ease; }
button.device:hover { translate: 0 -4px; }

/* Positions match the layouts picked on the options page (H1, 1A, 2B, 3C, 4A). */
.layout-1a { aspect-ratio: 520 / 620; }
.layout-1a .p1 { left: 2%; top: 10%; width: 52%; z-index: 1; transform: rotate(-5deg); }
.layout-1a .p2 { left: 44%; top: 0; width: 54%; z-index: 2; }
.layout-2b { aspect-ratio: 520 / 620; }
.layout-2b .p1 { left: 2%; top: 14%; width: 44%; z-index: 1; filter: brightness(0.97); }
.layout-2b .p2 { left: 40%; top: 0; width: 56%; z-index: 2; }
.layout-3c { aspect-ratio: 520 / 560; perspective: 900px; }
.layout-3c .p1 { left: 3%; top: 4%; width: 46%; transform: rotateY(30deg); }
.layout-3c .p2 { left: 51%; top: 4%; width: 46%; transform: rotateY(-30deg); }
.layout-4a { aspect-ratio: 520 / 560; }
.layout-4a .p1 { left: 0; top: 12%; width: 44%; z-index: 1; transform: rotate(-7deg); }
.layout-4a .p2 { left: 27%; top: 0; width: 46%; z-index: 2; }
.layout-4a .p3 { left: 56%; top: 12%; width: 44%; z-index: 1; transform: rotate(7deg); }

.feature-copy h2 { margin-bottom: 16px; }
.feature-copy > p:not(.kicker) { margin: 0 0 22px; color: var(--fg-muted); font-size: 1.12rem; }

.points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.points li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}
.points img { width: 40px; height: 40px; }
.points strong { display: block; font-weight: 800; line-height: 1.3; }
.points span { display: block; margin-top: 2px; color: var(--fg-muted); font-size: 0.98rem; line-height: 1.45; }

.dex-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dex-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 700;
  line-height: 1.25;
}
.dex-list img { width: 32px; height: 32px; flex-shrink: 0; }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-shot { order: 0; }
  .feature + .feature { margin-top: 72px; }
  .feature-copy h2 { text-align: center; }
  .feature-copy > p { text-align: center; }
}
@media (max-width: 600px) {
  /* Keep tilted phones clear of the screen edges. */
  .feature-shot.stage { width: 86%; }
}
@media (max-width: 400px) {
  .dex-list { grid-template-columns: 1fr; }
}

/* ---- PRO+ ---- */

.pro {
  padding: 44px;
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.pro-head { max-width: 640px; margin-bottom: 28px; }
.pro h2 { margin-bottom: 10px; }
.pro p:not(.kicker) { margin: 0; color: var(--fg-muted); font-size: 1.1rem; }
.pro-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pro-list li {
  position: relative;
  padding-left: 32px;
  line-height: 1.4;
}
.pro-list strong { display: block; font-weight: 800; }
.pro-list span { display: block; margin-top: 2px; color: var(--fg-muted); font-size: 0.96rem; }
.pro-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.pro p.pro-note { margin-top: 24px; font-size: 0.9rem; color: var(--fg-subtle); }
@media (max-width: 900px) {
  .pro-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pro { padding: 28px 20px; }
  .pro-list { grid-template-columns: 1fr; gap: 14px; }
}

/* ---- Anniversary band ---- */

.anniversary {
  position: relative;
  overflow: hidden;
  color: var(--on-red);
  background-color: var(--red);
  background-image: url("/_images/v4/hero-bg.webp");
  background-size: cover;
  background-position: center 30%;
}
.anniversary .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.big-ten {
  font-size: clamp(7rem, 16vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-shadow: 0 6px 30px rgba(120, 10, 10, 0.3);
}
.big-ten small {
  display: block;
  margin-top: 10px;
  font-size: 0.16em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.anniversary h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  font-weight: 800;
}
.anniversary p { margin: 0 0 14px; font-size: 1.15rem; max-width: 52ch; }
.anniversary .note {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1.02rem;
}
.anniversary .note strong { font-weight: 800; }
.anniversary :focus-visible { outline-color: #fff; }
@media (max-width: 760px) {
  .anniversary .wrap { grid-template-columns: 1fr; gap: 20px; text-align: center; padding-top: 56px; padding-bottom: 56px; }
  .anniversary p { margin-left: auto; margin-right: auto; }
}

/* ---- Community ---- */

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.social-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}
.social-head { display: flex; align-items: center; gap: 16px; }
.social-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
}
.social-card.discord .social-icon { background: #5865f2; }
.social-card.x .social-icon { background: #000; border: 1px solid rgba(255, 255, 255, 0.18); }
.social-head strong { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.social-meta { display: block; margin-top: 2px; color: var(--fg-muted); font-size: 0.98rem; line-height: 1.45; }
.social-meta strong { display: inline; font-size: inherit; color: var(--fg); }
.presence-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #3ba55c;
  vertical-align: 1px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.1); }
.social-card.discord .btn { background: #5865f2; color: #fff; }
.social-card.x .btn { background: var(--x-btn-bg); color: var(--x-btn-fg); }
@media (max-width: 680px) {
  .social-grid { grid-template-columns: 1fr; }
}

/* ---- Closing call to action ---- */

.closing {
  text-align: center;
}
.closing .app-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.closing p { margin: 14px auto 28px; max-width: 46ch; color: var(--fg-muted); font-size: 1.15rem; }
.closing .cta-row { justify-content: center; }

/* ---- Footer ---- */

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--fg-subtle);
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-weight: 700;
}
.footer-links a { color: var(--fg-muted); text-decoration: none; }
.footer-links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.footer .contact { margin: 0; }
.footer .contact a { color: var(--fg); font-weight: 700; }
.footer .disclaimer { margin: 0; max-width: 90ch; }

/* ---- Lightbox ---- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 20px;
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
}

/* ---- Simple page (beta) ---- */

.simple-hero .hero-copy {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 88px;
  text-align: center;
}
.simple-hero .lede { margin-left: auto; margin-right: auto; max-width: 40ch; }
.simple-hero .cta-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.btn.discord-btn { margin: 0; background: #5865f2; color: #fff; }

/* ---- Legal pages ---- */

.legal-band {
  color: var(--on-red);
  background-color: var(--red);
  background-image: url("/_images/v4/hero-bg.webp");
  background-size: cover;
  background-position: center 35%;
}
.legal-band :focus-visible { outline-color: #fff; }
.legal-band .topbar { padding-bottom: 8px; }
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 28px;
}
.legal-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.legal-nav a:hover { background: rgba(255, 255, 255, 0.26); }
.legal-nav a[aria-current="page"] { background: #fff; border-color: #fff; color: var(--red-ink); }

.legal-main article {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 48px;
  padding-bottom: 72px;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.legal-main h1 {
  margin: 0 0 24px;
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.legal-main h2 {
  margin: 2.2em 0 0.6em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 800;
}
.legal-main h1 + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-main h3 { margin: 1.8em 0 0.5em; font-size: 1.2rem; line-height: 1.3; font-weight: 800; }
.legal-main h4 { margin: 1.4em 0 0.4em; font-size: 1.05rem; font-weight: 800; }
.legal-main p { margin: 0 0 1em; }
.legal-main ul, .legal-main ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.legal-main li { margin-bottom: 0.45em; }
.legal-main li::marker { color: var(--red); }
.legal-main strong { font-weight: 800; }
.legal-main a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-main code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-soft);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* ---- Theme switch and theme-specific icons ---- */

.ico-light { display: var(--show-light); }
.ico-dark { display: var(--show-dark); }

.theme-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.theme-switch button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.theme-switch button:hover { background: rgba(255, 255, 255, 0.14); }
.theme-switch button[aria-checked="true"] { background: #fff; color: var(--red-ink); }
.theme-switch svg { width: 18px; height: 18px; }
@media (max-width: 400px) {
  .theme-switch button { width: 28px; height: 28px; }
  .topnav { gap: 10px; }
  .topnav a.pill { padding: 7px 12px; font-size: 0.92rem; }
  .topbar { gap: 10px; }
  .topbar .brand img { height: 34px; }
}
