/* RevRun site: the privacy policy's template, shared by every page */
:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --rule: #d2d2d7;
  --panel: #f5f5f7;
  --link: #0066cc;
  --mark: #fff3b0;
  --accent: #6b3cf0;
  --accent-text: #ffffff;
  --gold: #b07a00;
  --green: #1a7f37;
  --orange: #b25000;
  --header: rgba(255, 255, 255, 0.82);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --rule: #424245;
    --panel: #1c1c1e;
    --link: #2997ff;
    --mark: #5c4a00;
    --accent: #9a7bff;
    --accent-text: #0b0420;
    --gold: #f5c542;
    --green: #3fb950;
    --orange: #ff9f45;
    --header: rgba(0, 0, 0, 0.78);
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --rule: #424245;
  --panel: #1c1c1e;
  --link: #2997ff;
  --mark: #5c4a00;
  --accent: #9a7bff;
  --accent-text: #0b0420;
  --gold: #f5c542;
  --green: #3fb950;
  --orange: #ff9f45;
  --header: rgba(0, 0, 0, 0.78);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
main { max-width: 680px; margin: 0 auto; padding: 48px 16px 64px; }
main.wide { max-width: 980px; }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 21px; line-height: 1.3; margin: 40px 0 8px; scroll-margin-top: 72px; }
h3 { font-size: 17px; line-height: 1.35; margin: 0 0 4px; }
p, li { margin: 0 0 12px; }
ul { padding-left: 22px; margin: 0 0 12px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.date { color: var(--muted); margin-bottom: 24px; }
.muted { color: var(--muted); }
.summary { background: var(--panel); border-radius: 14px; padding: 18px 20px; margin: 24px 0 8px; }
.summary p:last-child { margin-bottom: 0; }
.todo { background: var(--mark); border-radius: 4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px 10px 0; border-top: 1px solid var(--rule); }
th { font-weight: 600; width: 34%; }
[id] { scroll-margin-top: 72px; }

/* Header: the name on the left, the pages on the right */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}
.site-header .bar {
  max-width: 980px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; color: var(--text); font-weight: 600; font-size: 19px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: 10px; color: var(--text); font-size: 15px;
}
.site-nav a:hover { background: var(--panel); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Footer: a list of the pages, then the small print */
.site-footer { border-top: 1px solid var(--rule); background: var(--panel); }
.site-footer .inner { max-width: 980px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 14px; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0 0 16px; padding: 0; }
.link-row li { margin: 0; }
.link-row a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.site-footer p { margin: 0 0 6px; }

/* Home: the opening */
.hero { text-align: center; padding: 24px 0 8px; }
.hero .app-icon { width: 128px; height: 128px; margin: 0 auto 20px; display: block; filter: drop-shadow(0 12px 28px rgba(80, 40, 200, 0.28)); }
.hero h1 { font-size: 52px; line-height: 1.06; letter-spacing: -0.03em; max-width: 760px; margin: 0 auto 16px; }
.hero .lead { font-size: 21px; line-height: 1.45; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text); font-weight: 600; font-size: 17px;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.secondary { background: var(--panel); color: var(--text); }
.button[aria-disabled="true"] { cursor: default; filter: none; }
.platforms { color: var(--muted); font-size: 15px; margin: 0; }

/* The example payout, drawn the way the app shows it */
.payout {
  max-width: 460px; margin: 40px auto 0; text-align: left;
  background: var(--panel); border-radius: 22px; padding: 22px 24px 18px;
  border: 1px solid var(--rule);
}
.payout .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.label { font: 12px/1.3 ui-monospace, "SF Mono", Menlo, monospace; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; }
.pill.est { color: var(--orange); }
.pill.paid { color: var(--green); }
.pill.pro { color: var(--accent); }
.payout .amount { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.payout .when { color: var(--muted); margin: 2px 0 14px; }
.ledger { width: 100%; font-size: 15px; margin: 0; }
.ledger td { padding: 8px 0; border-top: 1px solid var(--rule); }
.ledger td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ledger tr.total td { font-weight: 600; }
.example-note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* Sections and grids */
.section-head { text-align: center; max-width: 640px; margin: 88px auto 28px; }
.section-head h2 { font-size: 34px; letter-spacing: -0.02em; margin: 0 0 8px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--panel); border-radius: 18px; padding: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* Privacy band */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
.promise h3 { margin-bottom: 6px; }
.promise p { color: var(--muted); font-size: 15px; margin: 0; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { background: var(--panel); border-radius: 22px; padding: 26px 24px; border: 1px solid transparent; }
.plan.pro { border-color: var(--accent); }
.plan h3 { font-size: 24px; margin-bottom: 4px; }
.plan .price { font-size: 17px; margin: 0 0 16px; color: var(--muted); }
.plan .price strong { color: var(--text); font-size: 28px; letter-spacing: -0.02em; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan.pro li::before { border-color: var(--accent); }
.price-list { list-style: none; padding: 0; margin: 0 0 18px; }
.price-list li { display: flex; justify-content: space-between; padding: 8px 0; margin: 0; border-top: 1px solid var(--rule); font-size: 15px; }
.price-list li::before { display: none; }
.price-list li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.price-list li { padding-left: 0; }
.fine { color: var(--muted); font-size: 14px; text-align: center; margin: 16px auto 0; max-width: 640px; }

/* Release notes and questions */
.notes { list-style: none; padding: 0; margin: 24px 0 0; }
.notes li { padding: 16px 0; margin: 0; border-top: 1px solid var(--rule); }
.notes li p { margin: 0; color: var(--muted); }
.notes h3 { display: flex; align-items: center; gap: 10px; }
details { border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 0; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 22px; color: var(--muted); }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 0 12px; }
ol.steps { padding-left: 22px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .promise { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 19px; }
  .section-head { margin-top: 64px; }
  .section-head h2 { font-size: 28px; }
  .grid, .plans { grid-template-columns: 1fr; }
  .payout .amount { font-size: 40px; }
  /* On phones the footer's pages are a stacked list with dividers */
  .link-row { flex-direction: column; gap: 0; }
  .link-row li { border-top: 1px solid var(--rule); }
  .link-row li:last-child { border-bottom: 1px solid var(--rule); }
  .link-row a { display: flex; justify-content: space-between; width: 100%; }
  .link-row a::after { content: "\203A"; color: var(--muted); font-size: 20px; }
}
@media (max-width: 520px) {
  h1 { font-size: 28px; }
  table:not(.ledger) th, table:not(.ledger) td { display: block; width: 100%; padding: 0; border: 0; }
  table:not(.ledger) th { padding-top: 12px; border-top: 1px solid var(--rule); }
  table:not(.ledger) td { padding: 2px 0 12px; }
}
