/* hustlebt.com: one stylesheet for every page. System fonts only, so the
   site makes no requests to any other server. */

:root {
  --bg: #ffffff;
  --surface: #f6f8fc;
  --text: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --accent: #1765cc; /* 5.2:1 on --surface, 5.6:1 on white (WCAG AA) */
  --accent-text: #ffffff;
  --brand: #1256be;
  --heat: linear-gradient(90deg, #ffc24a, #ff8a32 50%, #e8402a);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131417;
    --surface: #1d1f23;
    --text: #e8eaed;
    --muted: #9aa0a6;
    --line: #3c4043;
    --accent: #8ab4f8;
    --accent-text: #0b1d3a;
  }
}

*, *::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: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}

/* The heat ramp from the app's map, as a thin rule across the top. */
body::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--heat);
}

a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ---- top bar (inner pages) ---- */
.bar { border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; }
.brand img { width: 32px; height: 32px; }

/* ---- landing ---- */
.hero { padding: 56px 0 40px; text-align: center; }
.hero .mark { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 6px 24px rgba(18, 86, 190, .25); }
.hero h1 { margin: 20px 0 4px; font-size: 40px; line-height: 1.15; letter-spacing: -.01em; }
.tagline { margin: 0 0 28px; font-size: 20px; color: var(--muted); }

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.features h2 { margin: 0 0 6px; font-size: 17px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.note { margin: 32px 0 0; padding: 20px; border-radius: 16px; border: 1px solid var(--line); }
.note h2 { margin: 0 0 6px; font-size: 17px; }
.note p { margin: 0 0 8px; }
.note p:last-child { margin-bottom: 0; }
.note .small { color: var(--muted); font-size: 15px; }

/* ---- documents (privacy policy) ---- */
.doc { padding-top: 32px; padding-bottom: 16px; } /* longhands: keep .wrap's 16px gutters */
.doc h1 { margin: 0 0 4px; font-size: 32px; line-height: 1.2; }
.doc .meta { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 40px 0 8px; font-size: 22px; line-height: 1.3; scroll-margin-top: 16px; }
.doc h3 { margin: 24px 0 6px; font-size: 18px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc li { margin: 4px 0; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.doc .summary > :last-child { margin-bottom: 0; }
.doc nav.toc ol { padding-left: 22px; columns: 2 220px; }
.doc nav.toc li { break-inside: avoid; }
.doc .summary h2 { margin: 0 0 8px; font-size: 18px; }
.doc .summary ul { padding-left: 20px; }
.doc code { font: 0.92em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }

/* One block per place data goes: What / When / Why / Who. A two-column grid
   that drops to stacked labels on narrow phones. */
.flow { margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.flow h3 { margin: 0 0 8px; }
.flow dl { margin: 0; display: grid; grid-template-columns: 4.2em 1fr; gap: 6px 12px; }
.flow dt { font-weight: 600; color: var(--muted); }
.flow dd { margin: 0; }
.flow dd p { margin: 0 0 8px; }
.flow dd p:last-child { margin-bottom: 0; }
.flow dd ul { margin: 0 0 8px; padding-left: 20px; }
@media (max-width: 400px) {
  .flow { padding: 14px; }
  .flow dl { grid-template-columns: 1fr; gap: 2px; }
  .flow dd { margin-bottom: 8px; }
  .flow dd:last-child { margin-bottom: 0; }
}

/* Wide tables scroll inside their own box; the page never scrolls sideways. */
.table-scroll { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.table-scroll table { min-width: 560px; }

/* ---- footer ---- */
footer { margin-top: 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { padding-top: 20px; padding-bottom: 32px; }
footer p { margin: 0 0 6px; }
footer .links a { margin-right: 16px; }
