/* CHANTS site. Tokens from docs/design/README.md. */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/sora-latin.woff2") format("woff2");
}

:root {
  --bg: #070708;
  --card: #111113;
  --border: #222226;
  --divider: #1c1c1f;
  --text: #f4f4f5;
  --text-2: #a3a3ab;
  --text-3: #8c8c94;
  --muted: #6e6e76;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Sora, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

img { max-width: 100%; height: auto; display: block; }

/* Home: one screen */
.home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 32px;
  text-align: center;
}
.home-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.home-mark { width: min(78vw, 420px); }
.home-line {
  margin: 22px 0 0;
  font-size: clamp(18px, 4.8vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-2);
}

/* Placeholder until the official Apple badge and App Store link exist. */
.badge {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid #3a3a40;
  background: #000;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  user-select: none;
}
.badge svg { flex: none; }
.badge small { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); line-height: 1.2; text-align: left; }
.badge span { line-height: 1.2; text-align: left; }

.foot { padding: 28px 20px 36px; text-align: center; }
.foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.foot a { color: var(--text-3); text-decoration: none; }
.foot a:hover { color: var(--text); }
.home .foot { padding: 28px 0 0; }

/* Inner pages */
.bar {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 20px;
  background: rgba(7, 7, 8, 0.92);
  border-bottom: 1px solid var(--divider);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.bar-mark { display: inline-block; }
.bar-mark img { width: 112px; }

.doc { max-width: 720px; margin: 0 auto; padding: 32px 20px 24px; }
.doc h1 { margin: 0; font-size: clamp(30px, 8vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.doc h2 { margin: 40px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.doc p, .doc ul { margin: 14px 0 0; color: var(--text-2); }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--muted); }
.doc .effective {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.doc .lead { color: var(--text-2); }

.table { margin-top: 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; }
th { color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border); }
td { color: var(--text-2); border-top: 1px solid var(--divider); }
tbody tr:first-child td { border-top: 0; }
td:first-child { color: var(--text); font-weight: 500; }

/* Phones: each table row becomes a stacked card with its column labels. */
@media (max-width: 599px) {
  .table { border: 0; background: none; overflow: visible; }
  table, tbody, tr, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { margin-top: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
  td { padding: 0; border: 0; }
  td + td { margin-top: 8px; }
  td:first-child { font-size: 15px; font-weight: 600; }
  td + td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
}

/* Support */
.card { margin-top: 24px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); }
.card h2 { margin-top: 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.button:hover { color: #000; background: #e8e8ea; }
.doc ol { margin: 14px 0 0; padding-left: 1.4em; color: var(--text-2); }
.doc ol li + li { margin-top: 8px; }
.doc ol li::marker { color: var(--muted); font-weight: 600; }
.tap { color: var(--text); font-weight: 600; white-space: nowrap; }

@media (min-width: 720px) {
  .doc { padding-top: 48px; }
  .bar { padding: 16px 32px; }
}
