/* Fair Go on the web. The same palette and the same restraint as the app: one accent, one ground, nothing
   custom-drawn to imitate glass. System faces, so a page loads before a font can fail. */

:root {
  color-scheme: light;
  --ground: #F6F5F1;
  --sunk: #ECEBE5;
  --card: #FFFFFF;
  --ink: #1E1E22;
  --muted: #6B6C71;
  --faint: #9A9B9F;
  --line: #E4E3DD;
  --orange: #F0863A;
  --blue: #2C5FD0;
  --shadow: 0 1px 2px rgba(30, 30, 34, .04), 0 8px 24px rgba(30, 30, 34, .05);
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--ui);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1020px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }

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

header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 245, 241, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}
header.site .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; }
.brand .mark span { width: 13px; height: 13px; border-radius: 50%; border: 3.4px solid var(--orange); border-right-color: transparent; transform: rotate(-38deg); }
nav.site { margin-left: auto; display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }

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

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 6.4vw, 62px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--muted); line-height: 1.5; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

section { padding-block: clamp(48px, 8vw, 92px); }
section + section { border-top: 1px solid var(--line); }

/* Buttons ----------------------------------------------------------------- */

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font: 700 16px/1 var(--ui); letter-spacing: -0.01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, background .16s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--sunk); color: var(--ink); }

/* Cards ------------------------------------------------------------------- */

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }

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

.hero { padding-block: clamp(44px, 7vw, 84px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero p.lead { max-width: 34ch; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--sunk); border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 22px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* The energy ring, drawn rather than screenshotted. */
.ring-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.ring-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.ring-top strong { font-size: 15px; font-weight: 800; }
.ring-top span { font-size: 13px; font-weight: 700; color: var(--faint); }
 /* The number sits on the ring by stacking both in one grid cell, so nothing depends on a magic offset. */
.ring-figure { display: grid; place-items: center; }
.ring-figure > * { grid-area: 1 / 1; }
.ring-figure .n { font-size: clamp(34px, 6vw, 44px); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.ring-figure .u { font-size: 14px; font-weight: 700; color: var(--muted); }
.ring-figure figcaption { text-align: center; display: grid; gap: 4px; }
.ring-lines { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.ring-lines div { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.ring-lines span { color: var(--muted); }
.ring-lines b { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Lists ------------------------------------------------------------------- */

ul.plain, ol.plain { margin: 0 0 1.1em; padding-left: 1.15em; }
ul.plain li, ol.plain li { margin-bottom: .5em; }
ul.ticks { list-style: none; margin: 0 0 1.1em; padding: 0; }
ul.ticks li { position: relative; padding-left: 28px; margin-bottom: .6em; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px; border-left: 2.6px solid var(--orange); border-bottom: 2.6px solid var(--orange); transform: rotate(-45deg); }

/* Quote-ish callout ------------------------------------------------------- */

.pull { border-left: 3px solid var(--orange); padding: 4px 0 4px 20px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.3; text-wrap: balance; }

/* Prose pages ------------------------------------------------------------- */

.prose { max-width: 720px; }
.prose h2 { margin: 2em 0 .55em; font-size: 26px; }
.prose h3 { margin: 1.7em 0 .4em; }
.prose h2:first-of-type { margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; }
.table-scroll { overflow-x: auto; }
.updated { font-size: 14px; font-weight: 700; color: var(--faint); }
code { font: 600 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--sunk); padding: 2px 6px; border-radius: 6px; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; overflow-x: auto; }
pre code { background: none; padding: 0; }

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

footer.site { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 15px; color: var(--muted); }
footer.site .cols { display: flex; gap: 14px 36px; flex-wrap: wrap; margin-bottom: 20px; }
footer.site a { color: var(--muted); text-decoration: none; font-weight: 600; }
footer.site a:hover { color: var(--ink); }
footer.site .fine { font-size: 13px; color: var(--faint); max-width: 60ch; }
