/* kaster — kasterapp.com. Dark-first, editorial. Colors sampled 1:1 from the app
   design tokens (Theme.swift); display face = Alte Haas Grotesk (the app's title face). */

@font-face {
  font-family: "AlteHaas";
  src: url("/assets/fonts/AlteHaasGroteskBold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0A0A0B;
  --raised: #151516;
  --surface: #1B1B1C;
  --surface2: #252527;
  --text: #F5F5F6;
  --text2: #B4B4B6;
  --text3: #8C8C8E;
  --gold: #F5C451;
  --amber: #FF9F45;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke2: rgba(255, 255, 255, 0.14);
  --maxw: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

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

/* Thin gradient rule at the very top — the one place the brand gradient appears. */
.brandbar {
  height: 3px;
  background: linear-gradient(90deg, #550A0A, #AC190A, #E62509, #F94213, #FF873E);
}

/* ── Header ─────────────────────────────────────────── */
header.site { padding: 24px 0 8px; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { height: 28px; width: auto; display: block; }
nav.top a { color: var(--text2); font-size: 14.5px; margin-left: 22px; }
nav.top a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 480px) { nav.top a { margin-left: 16px; font-size: 13.5px; } }

/* ── Type ───────────────────────────────────────────── */
h1, h2, h3 {
  font-family: "AlteHaas", -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text);
}
h1 { font-size: 42px; margin: 0.3em 0 0.25em; }
h2 { font-size: 25px; margin: 1.9em 0 0.5em; }
h3 { font-size: 18px; margin: 1.5em 0 0.35em; }

.eyebrow {
  font-family: "AlteHaas", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.lede { font-size: 20px; color: var(--text2); line-height: 1.55; }
.updated { color: var(--text3); font-size: 14px; margin-top: 4px; }

hr { border: 0; border-top: 1px solid var(--stroke); margin: 2.4em 0; }

/* ── Legal/doc pages ────────────────────────────────── */
.doc { padding-top: 30px; padding-bottom: 10px; }  /* vertical only — keep .wrap's 22px sides */
.doc p, .doc li { color: var(--text2); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc .toc {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 22px 0 8px;
}
.doc .toc a { color: var(--text2); }
.doc .toc ul { list-style: none; padding: 0; margin: 0; columns: 2; }
@media (max-width: 480px) { .doc .toc ul { columns: 1; } h1 { font-size: 33px; } .lede { font-size: 18px; } }

/* ── Landing ────────────────────────────────────────── */
.hero { position: relative; padding: 60px 0 34px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -180px;
  height: 560px;
  background: radial-gradient(58% 70% at 50% 0%, rgba(230, 37, 9, 0.30), rgba(255, 135, 62, 0.10) 42%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { font-size: 54px; max-width: 12ch; }
@media (max-width: 480px) { .hero h1 { font-size: 38px; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: #0A0A0B;
  font-family: "AlteHaas", sans-serif; font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: 999px;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta:hover { text-decoration: none; transform: translateY(-2px); }
.cta.ghost { background: transparent; color: var(--text); border: 1px solid var(--stroke2); }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 30px; }
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 22px;
}
.card h3 { margin: 0 0 6px; }
.card p { color: var(--text2); margin: 0; font-size: 15.5px; line-height: 1.55; }

/* ── Footer ─────────────────────────────────────────── */
footer.site {
  margin-top: 66px;
  border-top: 1px solid var(--stroke);
  padding: 26px 0 56px;
  color: var(--text3);
  font-size: 14px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: space-between; }
footer.site nav a { color: var(--text2); margin-right: 18px; }
footer.site nav a:hover { color: var(--text); text-decoration: none; }
