/* BurnRate website. Values map 1:1 to design_handoff_ledgersubs/tokens.css.
   Static, no JavaScript, no cookies, no external requests. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --canvas: #F3EADC;
  --bg: #FDF8F1;
  --surface: #FFFFFF;
  --surface-sunken: #FBF5EC;
  --surface-alt: #F7EFE3;
  --track: #EEE4D6;
  --border: #EFE5D8;
  --border-strong: #E2D6C4;
  --border-subtle: #F5EFE5;
  --text: #221E1A;
  --text-secondary: #7A6F63;
  --text-muted: #A79B8C;
  --teal: #0E7C7B;
  --teal-deep: #0E6B60;
  --teal-soft: #D9F0EA;
  --teal-tint: #CFEAE7;
  --teal-lum: #7FD6CF;
  --coral: #F2704F;
  --coral-deep: #D2542B;
  --coral-soft: #FDEFE8;
  --coral-border: #F7DDD0;
  --due-soon: #E05A3C;
  --due-soon-bg: #FDEDE8;
  --coming-up: #D89A2A;
  --coming-up-bg: #FBF1DE;
  --optional: #E6C86A;
  --night: #221E1A;
  --night-surface: #2C2721;
  --night-border: #3A342D;
  --night-text: #F6F0E7;
  --night-secondary: #D8CFC2;
  --cat-streaming: #6B4BC9;
  --cat-productivity: #2A63C7;
  --cat-cloud: #137E97;
  --cat-fitness: #25865B;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.money { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

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

header.site {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.brand img { width: 30px; height: 30px; display: block; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
nav.site-links { display: flex; gap: 4px; }
nav.site-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
}
nav.site-links a:hover { background: var(--surface-alt); color: var(--text); }
nav.site-links a.active { color: var(--teal-deep); background: var(--teal-soft); }

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

.hero { padding: 72px 0 64px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero p.lede {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 34em;
}
.hero-ctas {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.chip-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
}
.chip-devices {
  font-size: 13.5px;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  padding: 11px 18px;
  border-radius: 999px;
}

/* ---------- Dashboard mock ---------- */

.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(34, 30, 26, 0.16);
  max-width: 380px;
  margin-left: auto;
}
.mock .hero-tile {
  background: linear-gradient(180deg, #118583, #0C6E6D);
  border-radius: 22px;
  color: #FFFFFF;
  padding: 22px 20px 18px;
  text-align: center;
}
.mock .hero-tile .label {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-tint);
  font-weight: 600;
}
.mock .hero-tile .monthly {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 6px;
}
.mock .hero-tile .monthly small { font-size: 17px; font-weight: 500; color: var(--teal-tint); }
.mock .hero-tile .yearly { margin-top: 4px; font-size: 14px; color: var(--teal-lum); font-weight: 600; }
.mock .split-bar {
  margin-top: 16px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: rgba(253, 248, 241, 0.22);
}
.mock .split-bar i { display: block; height: 100%; }
.mock .split-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 9px;
  font-size: 11px;
  color: var(--teal-tint);
}
.mock .rows { margin-top: 14px; display: grid; gap: 9px; }
.mock .row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 11px 13px;
}
.mock .row .tile {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-display);
  flex: none;
}
.mock .row .name { font-size: 14px; font-weight: 600; }
.mock .row .meta { font-size: 11.5px; color: var(--text-muted); }
.mock .row .amount { margin-left: auto; text-align: right; }
.mock .row .amount b { font-size: 14px; font-weight: 650; display: block; }
.mock .row .due { font-size: 11px; font-weight: 600; }
.mock .row .due.soon { color: var(--due-soon); }
.mock .row .due.later { color: var(--coming-up); }
.mock .caption {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ---------- Sections ---------- */

section.band { padding: 64px 0; }
section.band.alt { background: var(--surface-alt); }
.kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
  margin-top: 10px;
  max-width: 24em;
}
.prose {
  margin-top: 18px;
  max-width: 44em;
  color: var(--text-secondary);
  font-size: 16.5px;
}
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--teal-deep); }

.cardgrid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 17.5px;
  letter-spacing: -0.01em;
  font-weight: 650;
}
.card p { margin-top: 8px; font-size: 14.5px; color: var(--text-secondary); }

/* ---------- Ritual band (night) ---------- */

section.ritual { background: var(--night); color: var(--night-text); padding: 72px 0; }
section.ritual .kicker { color: var(--teal-lum); }
section.ritual h2 { color: var(--night-text); }
section.ritual .prose { color: var(--night-secondary); }
section.ritual .prose strong { color: var(--night-text); }
.deck-line {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.deck-chip {
  border: 1px solid var(--night-border);
  background: var(--night-surface);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
}
.deck-chip.keep { color: #8FDCB4; }
.deck-chip.cancel { color: #FF8B62; }
.honest-line {
  margin-top: 30px;
  border-left: 3px solid var(--teal-lum);
  padding-left: 18px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--night-text);
  max-width: 30em;
}

/* ---------- Devices ---------- */

.devices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.devices .copy { flex: 1 1 380px; }
.devices figure { flex: 0 1 300px; margin: 0 auto; }
.devices img {
  width: 100%;
  max-width: 280px;
  display: block;
  margin: 0 auto;
  border-radius: 32px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(34, 30, 26, 0.16);
}
.devices figcaption {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 12px;
}

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

footer.site {
  border-top: 1px solid var(--border);
  background: var(--surface-sunken);
  padding: 40px 0 48px;
  margin-top: 8px;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
footer.site .brand { margin-right: auto; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer.site a { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
footer.site a:hover { color: var(--teal-deep); }
footer.site .fineprint {
  flex-basis: 100%;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- Inner pages (help, privacy) ---------- */

.page { padding: 56px 0 72px; }
.page-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 2px;
  font-size: 13.5px;
}
.toc a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 10px;
}
.toc a:hover { background: var(--surface-alt); color: var(--text); }
.page h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.1;
}
.page .updated { margin-top: 10px; font-size: 13.5px; color: var(--text-muted); }
.page article { max-width: 46em; }
.page article h2 {
  font-size: 22px;
  margin-top: 44px;
  scroll-margin-top: 88px;
  max-width: none;
}
.page article h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 650;
  margin-top: 26px;
}
.page article p, .page article li {
  color: var(--text-secondary);
  font-size: 15.5px;
  margin-top: 12px;
}
.page article li { margin-top: 8px; }
.page article ul, .page article ol { padding-left: 22px; margin-top: 6px; }
.page article strong { color: var(--text); font-weight: 600; }
.page article a { color: var(--teal-deep); }
.callout {
  margin-top: 24px;
  background: var(--teal-soft);
  border-radius: 18px;
  padding: 18px 22px;
}
.callout p { color: var(--teal-deep); margin-top: 0; font-size: 15px; }
.callout.coral { background: var(--coral-soft); }
.callout.coral p { color: var(--coral-deep); }
.support-card {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
}
.support-card h2 { margin-top: 0; }
.support-card .mail {
  display: inline-block;
  margin-top: 14px;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { padding: 48px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .mock { margin: 0 auto; }
  .page-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  section.band, section.ritual { padding: 48px 0; }
}
