/* IndexFit site styles: the homepage plus the privacy, terms and support pages.
   Colours are the app's own: ChatDemoTone for the chat, the tab accents for
   strength / running / food. */

:root {
  --bg: #050507;
  --surface: #0b0b0e;
  --surface-2: #121216;
  --raised: #1c1c21;
  --bubble-indy: #1f1f1f;
  --bubble-you: #0074e7;

  --ink: #f5f5f7;
  --ink-2: rgba(245, 245, 247, 0.66);
  --ink-3: rgba(245, 245, 247, 0.44);
  --ink-4: rgba(245, 245, 247, 0.22);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --lime: #a5ff02;
  --orange: #ff9f0a;
  --violet: #9a8ce6;
  --red: #ff5a4e;

  --wrap: 1160px;
  --gutter: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

h1 {
  font-size: clamp(46px, 6.4vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.036em;
}

h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.032em;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav.is-scrolled,
.nav.is-open {
  background: rgba(5, 5, 7, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom-color: var(--line);
}

.nav__row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img { width: 30px; height: auto; }

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav__links a {
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav__links a:hover { color: var(--ink); }

.nav__get {
  flex: none;
  background: var(--ink);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
}

/* The app's two-line menu glyph: a long line over a short one. */
.nav__menu {
  display: none;
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding-left: 11px;
}

.nav__menu span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, width 0.2s ease;
}

.nav__menu span:first-child { width: 18px; }
.nav__menu span:last-child { width: 11px; }

.nav.is-open .nav__menu span:first-child { width: 18px; transform: translateY(3.75px) rotate(45deg); }
.nav.is-open .nav__menu span:last-child { width: 18px; transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- App Store button (the app's white pill) ---------- */

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #000;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 28px 11px 22px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.store:hover { background: #fff; }
.store:active { transform: scale(0.97); }
.store svg { width: 24px; height: 24px; margin-top: -2px; }
.store small { display: block; font-size: 11px; line-height: 1.1; font-weight: 500; opacity: 0.72; }
.store b { display: block; font-size: 19px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }

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

.hero { padding: 56px 0 128px; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 72px;
  align-items: center;
}

.hero__kicker {
  color: var(--ink-3);
  font-size: 15px;
  margin-bottom: 22px;
}

.hero__lede {
  margin-top: 28px;
  max-width: 33em;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 38px;
}

.hero__note { color: var(--ink-3); font-size: 14px; }

/* The chat: the app's Home page, cut out. */
.chat {
  max-width: 410px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 38px;
  padding: 26px 18px 18px;
}

.chat__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.orb { width: 132px; height: 132px; }

.chat__name {
  margin-top: 2px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.chat__log {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg {
  max-width: 86%;
  padding: 10px 15px;
  border-radius: 21px;
  color: #fff;
  font-size: 16px;
  line-height: 1.38;
}

.msg--indy { align-self: flex-start; background: var(--bubble-indy); }
.msg--you { align-self: flex-end; background: var(--bubble-you); }

.change {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 4px;
  padding: 14px 14px 14px 16px;
  border-radius: 20px;
  background: var(--raised);
  border: 1px solid var(--line);
}

.change__label {
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.change__new { font-size: 15px; font-weight: 600; margin-top: 3px; }
.change__old { font-size: 13px; color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }

.change__undo {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 600;
}

.chat__composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: #17171b;
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 15px;
}

.chat__send {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #000;
}

.chat__send svg { width: 17px; height: 17px; }

/* Messages wait for the orb. Without JS they are simply there. */
.js .chat [data-seq] {
  opacity: 0;
  transform: translateY(10px);
}

.js .chat [data-seq].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.section {
  padding: 128px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 40px;
}

.head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: 72px;
}

.head h2 { max-width: 13em; }
.head p { color: var(--ink-2); font-size: 18px; max-width: 30em; }

/* ---------- How it works ---------- */

.how {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: start;
}

.qa { list-style: none; }

.qa li {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.qa li:last-child { border-bottom: 1px solid var(--line); }

.qa__q { color: var(--ink-3); font-size: 15px; }

.qa__a {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.plan { display: grid; gap: 12px; }

.plan-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 24px 24px 22px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line-2);
}

.plan-card svg { width: 26px; height: 26px; margin-top: 1px; }

.plan-card__label,
.lane__label {
  color: var(--c);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.plan-card h3 {
  margin: 8px 0 6px;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.plan-card p:not(.plan-card__label) { color: var(--ink-2); font-size: 15px; line-height: 1.45; }

.plan__note { color: var(--ink-3); font-size: 14px; padding: 6px 4px 0; }

/* ---------- Features ---------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto 1fr;
  column-gap: 24px;
}

/* Subgrid lines the three lanes up row by row: label, title, text, card. */
.lane {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  align-content: start;
}

.lane__label {
  padding-top: 18px;
  border-top: 2px solid var(--c);
}

.lane h3 {
  margin-top: 14px;
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 650;
  max-width: 13em;
}

.lane__text {
  margin: 12px 0 32px;
  color: var(--ink-2);
  font-size: 16px;
}

.frag {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 26px;
  padding: 20px;
}

.lane .frag {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

/* Cards in a row share a height; the last block of each sits at the bottom. */
.lane .ledger,
.lane .splits,
.lane .stickers + .meter { margin-top: auto; }

/* Lifting: the active workout card with its ledger. */
.lift__name { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.lift__rx { color: var(--ink-3); font-size: 14px; margin-top: 2px; }

.sets { list-style: none; margin-top: 14px; }

.sets li {
  display: grid;
  grid-template-columns: 22px 1fr 1fr 28px;
  align-items: center;
  gap: 8px;
  height: 44px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.sets li.is-todo { color: var(--ink-3); }
.sets__n { color: var(--ink-3); font-size: 13px; }

.tick {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-4);
}

.tick.is-done { background: var(--lime); border-color: var(--lime); color: #000; }
.tick svg { width: 15px; height: 15px; }

.lift__rule {
  padding: 12px 0 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
}

.ledger { border-top: 1px solid var(--line); padding-top: 4px; }

.ledger div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 15px;
}

.ledger dt { color: var(--ink-3); }
.ledger dd { color: var(--ink); }

/* Running: the run summary. */
.run__title { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.run__title span { color: var(--ink-3); font-size: 14px; font-weight: 400; margin-left: 6px; letter-spacing: 0; }

.run__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 16px;
}

.run__stats dt { color: var(--ink-3); font-size: 13px; }

.run__stats dd {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.run__stats small { font-size: 14px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }

.splits { list-style: none; }

.splits li {
  display: grid;
  grid-template-columns: 56px 1fr 40px;
  align-items: center;
  gap: 12px;
  height: 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.splits li span:first-child { color: var(--ink-3); }
.splits li span:last-child { text-align: right; }

.splits__bar,
.meter__bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.splits__bar i,
.meter__bar i {
  display: block;
  height: 100%;
  width: calc(var(--w) * 100%);
  border-radius: inherit;
  background: var(--c);
}

/* Food: stickers on a pad. */
.stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  padding: 6px 2px 20px;
}

.sticker {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 14px;
  background: #f4f1ea;
  color: #141414;
  font-size: 14px;
  font-weight: 600;
  border: 3px solid #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  transform: rotate(var(--r));
}

.sticker b { font-weight: 700; color: #6a5bd0; }

.meter { padding: 12px 0 4px; border-top: 1px solid var(--line); }
.meter + .meter { margin-top: 6px; }

.meter p {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}

.meter p span:first-child { color: var(--ink-3); }

.works {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 88px;
}

.works li {
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}

.works b { display: block; font-size: 17px; font-weight: 600; }
.works span { display: block; margin-top: 6px; color: var(--ink-3); font-size: 15px; max-width: 24em; }

/* ---------- Check-in ---------- */

.checkin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.checkin__copy h2 { max-width: 11em; }
.checkin__copy p { margin-top: 22px; color: var(--ink-2); font-size: 18px; max-width: 28em; }
.checkin__copy p + p { margin-top: 14px; }

.ci {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  padding: 26px 20px 20px;
  border-radius: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.ci .orb { margin: 0 auto; width: 120px; height: 120px; }
.ci__title { margin-top: 4px; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.ci__sub { color: var(--ink-2); font-size: 15px; margin-top: 2px; }

.ci__q {
  margin: 26px 4px 10px;
  text-align: left;
  color: var(--ink-2);
  font-size: 15px;
}

.ci__opts { display: grid; gap: 8px; }

.ci__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--raised);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.25s ease, transform 0.15s ease;
}

.ci__opt::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
}

.ci__opt::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--ink-3);
  border-right: 2px solid var(--ink-3);
  transform: rotate(45deg);
}

.ci__opt:hover { background: #24242a; }
.ci__opt:active { transform: scale(0.985); }
.ci__opt[aria-pressed="true"] { border-color: var(--dot); background: #24242a; }
.ci.is-answered .ci__opt:not([aria-pressed="true"]) { opacity: 0.35; cursor: default; }
.ci.is-answered .ci__opt { cursor: default; }
.ci.is-answered .ci__opt:active { transform: none; }

/* Room for the reply, so the card doesn't jump when Indy answers. */
.ci__foot {
  display: flex;
  flex-direction: column;
  min-height: 138px;
}

.ci__out {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ci__hint {
  margin-top: 30px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

.ci__out .msg {
  margin-top: 14px;
  animation: msg-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ci__reset {
  align-self: center;
  margin-top: 14px;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ci__reset:hover { color: var(--ink); }

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Leagues ---------- */

.league {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
}

.match { padding: 24px; }

.match__week { font-size: 15px; font-weight: 600; }
.match__week span { color: var(--ink-3); font-weight: 400; margin-left: 6px; }

.match__score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  margin: 26px 0 22px;
}

.match__score div span { display: block; color: var(--ink-2); font-size: 15px; }
.match__score div:last-child { text-align: right; }

.match__score b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.match__score div:last-child b { color: var(--ink-2); }
.match__vs { color: var(--ink-3); font-size: 14px; padding-bottom: 12px; }

.match__cats { width: 100%; border-collapse: collapse; font-size: 15px; }

.match__cats th,
.match__cats td {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
}

.match__cats th { font-weight: 400; text-align: center; font-size: 13px; }
.match__cats td:first-child { text-align: left; }
.match__cats td:last-child { text-align: right; }
.match__cats td.is-lead { color: var(--ink); font-weight: 600; }

.standings { padding: 22px 24px 12px; }
.standings table { width: 100%; border-collapse: collapse; font-size: 15px; }

.standings__cap {
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 14px;
}

.standings th {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  padding: 0 0 8px;
}

.standings td {
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.standings th:first-child,
.standings td:first-child { width: 32px; color: var(--ink-3); }

.standings th:nth-child(3),
.standings td:nth-child(3) { color: var(--ink-2); width: 64px; }

.standings th:last-child,
.standings td:last-child { text-align: right; }

.standings tr.is-you td { color: var(--ink); font-weight: 600; }
.standings tr.is-you td:nth-child(2)::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--lime);
  vertical-align: 2px;
}

.formats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.formats li { padding-top: 18px; border-top: 1px solid var(--line-2); }
.formats b { display: block; font-size: 16px; font-weight: 600; }
.formats span { display: block; margin-top: 4px; color: var(--ink-3); font-size: 15px; }

/* ---------- Pricing ---------- */

.prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-2);
  border-radius: 30px;
  overflow: hidden;
}

.price {
  display: flex;
  flex-direction: column;
  padding: 36px 36px 32px;
}

.price--pro {
  background: var(--surface);
  border-left: 1px solid var(--line-2);
}

.price__name { color: var(--ink-2); font-size: 15px; font-weight: 600; }

.price__amount {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.price__amount small {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}

.price__alt { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

.price ul { list-style: none; margin: 30px 0 34px; }

.price li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.price li:last-child { border-bottom: 1px solid var(--line); }

.price__cta {
  margin-top: auto;
  align-self: flex-start;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #000;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.price__cta:active { transform: scale(0.97); }

.price__cta--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.prices__note {
  margin-top: 22px;
  color: var(--ink-3);
  font-size: 14px;
  max-width: 46em;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px 72px;
  align-items: start;
}

.faq__head p { margin-top: 16px; color: var(--ink-2); }
.faq__head a { color: var(--ink); text-underline-offset: 3px; }

.faq__list details { border-top: 1px solid var(--line-2); }
.faq__list details:last-child { border-bottom: 1px solid var(--line-2); }

.faq__list summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 48px 22px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq__list summary::-webkit-details-marker { display: none; }

.faq__list summary::before,
.faq__list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--ink-2);
  transition: transform 0.25s ease;
}

.faq__list summary::after { transform: rotate(90deg); }
.faq__list details[open] summary::after { transform: rotate(0deg); }

.faq__list details p {
  padding: 0 48px 24px 0;
  color: var(--ink-2);
  max-width: 36em;
}

.faq__list details a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- Download ---------- */

.final {
  padding: 120px 0 128px;
  border-top: 1px solid var(--line);
  text-align: center;
  scroll-margin-top: 40px;
}

.orb--big { width: 240px; height: 240px; margin: 0 auto 8px; cursor: pointer; }
.final h2 { font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.045em; }
.final p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.final .store { margin-top: 34px; }

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

.foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 44px;
  font-size: 14px;
}

.foot__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 40px;
}

.foot .brand { font-size: 15px; }
.foot .brand img { width: 26px; }

.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links a { color: var(--ink-2); text-decoration: none; }
.foot__links a:hover { color: var(--ink); }
.foot__copy { margin-left: auto; color: var(--ink-3); }

/* ---------- Orb fallback (no WebGL) ---------- */

.orb.is-fallback {
  border-radius: 50%;
  background:
    radial-gradient(ellipse 34% 9% at 50% 50%, rgba(255, 123, 213, 0.75), rgba(142, 108, 255, 0.35) 55%, transparent 75%),
    radial-gradient(circle at 36% 30%, rgba(234, 244, 255, 0.12), transparent 30%),
    radial-gradient(circle at 50% 50%, #0a0b14 0 66%, rgba(197, 169, 255, 0.35) 67%, transparent 69%);
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero__grid,
  .how,
  .checkin,
  .faq { grid-template-columns: minmax(0, 1fr); }

  .hero__grid { gap: 56px; }
  .chat, .ci { margin: 0 auto; }
  .head { grid-template-columns: minmax(0, 1fr); margin-bottom: 52px; }
  .how { gap: 40px; }
  .trio { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 64px; }
  .lane { display: flex; flex-direction: column; grid-row: auto; }
  .lane .frag { max-width: 460px; }
  .league { grid-template-columns: minmax(0, 1fr); }
  .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkin { gap: 52px; }
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    padding: 4px var(--gutter) 20px;
    background: var(--bg);
    overflow-y: auto;
  }

  .nav.is-open { background: var(--bg); }

  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 0; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav__get { margin-left: auto; }
  .nav__menu { display: flex; }
  .nav__row { gap: 12px; }
}

@media (max-width: 680px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .hero { padding: 28px 0 88px; }
  .hero__lede { font-size: 17px; margin-top: 22px; }
  .section { padding: 88px 0; }
  .head p, .checkin__copy p { font-size: 17px; }
  .qa__a { font-size: 22px; }
  .works { grid-template-columns: minmax(0, 1fr); margin-top: 64px; }
  .formats { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .formats li { padding: 16px 0; }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .price { padding: 28px 24px 28px; }
  .price--pro { border-left: 0; border-top: 1px solid var(--line-2); }
  .price__amount { font-size: 52px; }
  .match, .standings { padding-left: 18px; padding-right: 18px; }
  .final { padding: 88px 0 96px; }
  .orb--big { width: 200px; height: 200px; }
  .foot__copy { margin-left: 0; width: 100%; }
}

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

/* ---------- Pills (plain buttons outside the homepage's own) ---------- */

.pill {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #000;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.pill:active { transform: scale(0.97); }
.pill--ghost { background: rgba(255, 255, 255, 0.1); color: var(--ink); }

/* ---------- Document pages: privacy, terms ---------- */

.doc { padding: 64px 0 128px; }

.doc__grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0 88px;
}

.doc__head {
  grid-column: 1 / -1;
  padding-bottom: 44px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.doc__head h1,
.support__head h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.doc__date { margin-top: 18px; color: var(--ink-3); font-size: 15px; }

.doc__toc {
  position: sticky;
  top: 96px;
  align-self: start;
}

.doc__toc summary {
  list-style: none;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  padding-bottom: 10px;
}

.doc__toc summary::-webkit-details-marker { display: none; }
.doc__toc ol { list-style: none; }

.doc__toc a {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.doc__toc a:hover { color: var(--ink); }
.doc__toc a.is-current { color: var(--ink); border-left-color: var(--ink); }

.doc__body {
  max-width: 680px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
}

.doc__body h2 {
  margin: 64px 0 14px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  scroll-margin-top: 96px;
}

.doc__body h3 {
  margin: 28px 0 6px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.doc__body p + p,
.doc__body ul + p { margin-top: 14px; }

.doc__body ul { list-style: none; margin-top: 12px; }

.doc__body li {
  position: relative;
  padding-left: 22px;
  margin-top: 9px;
}

.doc__body li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-3);
}

.doc__body strong { color: var(--ink); font-weight: 600; }

.doc__body a {
  color: var(--ink);
  text-decoration-color: var(--ink-4);
  text-underline-offset: 3px;
}

.doc__body a:hover { text-decoration-color: var(--ink); }

/* The plain-language summary at the top of a policy. */
.doc__short {
  padding: 26px 28px 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line-2);
}

.doc__body .doc__short h2 { margin: 0 0 4px; font-size: 19px; letter-spacing: -0.01em; }
.doc__short li { color: var(--ink); }
.doc__intro { margin-top: 32px; }

/* ---------- Support ---------- */

.support__head {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.support__head p {
  max-width: 32em;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 19px;
}

.support__head .pill { margin-top: 30px; }

.support .faq {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.support .faq__head h2 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.03em; }
.support .faq__list a { color: var(--ink); text-underline-offset: 3px; }

.support__end {
  padding-top: 72px;
  text-align: center;
}

.support__end h2 { font-size: clamp(30px, 3.6vw, 44px); }
.support__end p { margin-top: 12px; color: var(--ink-2); }
.support__end .pill { margin-top: 26px; }

@media (max-width: 900px) {
  .doc__grid { grid-template-columns: minmax(0, 1fr); }
  .doc__head { margin-bottom: 28px; padding-bottom: 32px; }

  .doc__toc {
    position: static;
    margin-bottom: 14px;
    border: 1px solid var(--line-2);
    border-radius: 18px;
    padding: 0 18px;
  }

  .doc__toc summary {
    position: relative;
    padding: 16px 0;
    color: var(--ink);
    font-size: 16px;
    cursor: pointer;
  }

  .doc__toc summary::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -6px;
    border-right: 2px solid var(--ink-3);
    border-bottom: 2px solid var(--ink-3);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .doc__toc[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
  .doc__toc ol { padding-bottom: 14px; }
  .doc__toc a { border-left: 0; padding-left: 0; font-size: 15px; }
  .doc__body h2 { margin-top: 52px; }
}

@media (max-width: 680px) {
  .doc { padding: 36px 0 88px; }
  .doc__body { font-size: 16px; }
  .doc__short { padding: 22px 20px 24px; }
  .support__head p { font-size: 17px; }
  .support .faq { padding: 52px 0; }
}
