/* ReelTori public website.
 *
 * Colours are taken from the app itself so the site and the phone
 * look like the same product: near-black behind everything, the pink
 * #ff2d55 for anything you can act on, gold for coins and VIP.
 *
 * One stylesheet for every page. No frameworks, no fonts to download,
 * no scripts: these pages have to load on a slow Lagos connection and
 * they have to keep working for years without maintenance.
 */

:root {
  --bg: #07070c;
  --surface: #14141b;
  --surface-2: #1c1c24;
  --line: #23232c;
  --text: #ffffff;
  --text-2: #d8d8e2;
  --muted: #8a8a98;
  --muted-2: #65656f;
  --pink: #ff2d55;
  --pink-soft: #ff5f7e;
  --gold: #e0a53a;
  --max: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* 20px of side room on a phone, so nothing touches the bezel. */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------- *
 *  Header
 * ---------------------------------------------------------------- */

header.top {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.015em;
}

.brand .dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--pink);
  flex: none;
}

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

h1 {
  color: var(--text);
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 40px 0 10px;
}

h2 {
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 42px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

h3 {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  margin: 26px 0 8px;
}

p { margin: 0 0 16px; }

a { color: var(--pink-soft); }
a:hover { color: var(--pink); }

strong { color: var(--text); font-weight: 650; }

.lead {
  font-size: 19px;
  color: var(--text-2);
  margin-bottom: 26px;
}

.stamp {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 34px;
}

ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 9px; }

/* A plain-English aside, used for the "what this means" notes. */
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pink);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 22px;
}
.note p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- *
 *  Tables (what we collect / what we do not)
 * ---------------------------------------------------------------- */

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 16px;
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.table th {
  color: var(--text);
  font-weight: 650;
  background: var(--surface);
}

.table tr:last-child td { border-bottom: none; }

/* A table scrolls sideways rather than squeezing on a narrow phone. */
.scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 22px;
}
.scroll .table { margin-bottom: 0; min-width: 420px; }

/* ---------------------------------------------------------------- *
 *  Home page
 * ---------------------------------------------------------------- */

.hero { padding: 54px 0 14px; }

.hero h1 { margin-top: 0; font-size: 40px; }

.tag {
  display: inline-block;
  color: var(--gold);
  background: rgba(224, 165, 58, 0.1);
  border: 1px solid rgba(224, 165, 58, 0.28);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 32px 0 10px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
}

.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--muted); font-size: 16px; }

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

footer.bottom {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 28px 0 46px;
  color: var(--muted-2);
  font-size: 15px;
}

footer.bottom a { color: var(--muted); text-decoration: none; }
footer.bottom a:hover { color: var(--text-2); }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 14px;
}

/* ---------------------------------------------------------------- *
 *  Phones
 * ---------------------------------------------------------------- */

/* Below this width a two- or three-column table cannot be read without
 * scrolling sideways, which is a miserable way to read a privacy policy
 * on the phone most of our viewers are holding. So the tables stop being
 * tables: every row becomes a small block, the column headings are
 * dropped, and the names that still carry meaning are printed in front
 * of the cell they belong to. */
@media (max-width: 560px) {
  .scroll { overflow-x: visible; }
  .scroll .table { min-width: 0; }

  .table,
  .table tbody,
  .table tr,
  .table td { display: block; width: 100%; }

  .table tr.head { display: none; }

  .table tr {
    border-bottom: 1px solid var(--line);
    padding: 15px 0;
  }
  .table tr:first-of-type { padding-top: 0; }
  .table tr:last-child { border-bottom: none; padding-bottom: 0; }

  .table td {
    border-bottom: none;
    padding: 0 0 7px;
  }
  .table td:last-child { padding-bottom: 0; }

  /* The first cell is the thing being described, so it reads as a
   * heading for the block underneath it. */
  .table td:first-child {
    color: var(--text);
    font-weight: 650;
  }

  .table td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted);
  }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  .hero h1 { font-size: 31px; }
  .hero { padding-top: 38px; }
  h2 { font-size: 19px; }
  .lead { font-size: 17px; }
}
