/* BudgeTorch website. No web fonts, scripts, or third-party requests. */
:root {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --text: #14181f;
  --muted: #586070;
  --border: #dde2e8;
  --teal: #0aa99a;
  --green: #4caf50;
  --orange: #ff5a1f;
  --red: #e2302a;
  --link: #0a7d72;
  --draft: #fff4d6;
  --draft-border: #e0b84a;
  --hero: #020d1f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1018;
    --surface: #151b26;
    --text: #eef1f5;
    --muted: #a3acba;
    --border: #2a3342;
    --link: #3fd3c3;
    --draft: #3a2f10;
    --draft-border: #a7852a;
  }
}

* { box-sizing: border-box; }
html { -webkit-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;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .budge { color: var(--teal); }
.brand .torch { color: var(--orange); }
.site-nav { display: flex; gap: 18px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Draft banner (draft builds only) */
.draft-banner { background: var(--draft); border-bottom: 1px solid var(--draft-border); font-size: 14px; padding: 8px 0; }
mark.placeholder { background: var(--draft); outline: 1px dashed var(--draft-border); color: inherit; padding: 0 3px; border-radius: 3px; }

/* Home page */
.hero { background: var(--hero); color: #f2f5f9; text-align: center; padding: 56px 0 64px; }
.hero img { width: min(300px, 70vw); height: auto; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; margin: 28px 0 12px; letter-spacing: -0.01em; }
.hero p { color: #c3cbd8; font-size: 19px; margin: 0 auto; max-width: 560px; }
.hero .soon { display: inline-block; margin-top: 28px; padding: 10px 18px; border: 1px solid #3a4658; border-radius: 999px; font-size: 15px; color: #e3e8ef; }
.gradient-bar { height: 5px; background: linear-gradient(90deg, var(--teal), var(--green), var(--orange), var(--red)); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 44px 0 8px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.feature h2 { font-size: 18px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.promise { text-align: center; color: var(--muted); margin: 36px auto 0; max-width: 600px; }

/* Documents (privacy policy, support) */
.doc h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.2; margin: 40px 0 8px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; padding-top: 8px; }
.doc h3 { font-size: 18px; margin: 26px 0 6px; }
.doc p, .doc li { max-width: 70ch; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--muted); margin-top: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 20px; margin: 24px 0; font-size: 15px; }
.toc summary { cursor: pointer; font-weight: 600; }
.toc ol { margin: 10px 0 4px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--surface); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
code { font-size: 0.92em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }

/* Phones: each table row becomes a small card, labelled by its column. */
@media (max-width: 600px) {
  .table-wrap { border: 0; overflow: visible; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { display: block; border: 1px solid var(--border); border-radius: 10px; margin: 0 0 12px; overflow: hidden; }
  td { display: block; border-bottom: 1px solid var(--border); }
  td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 2px; }
  tr td:first-child { background: var(--surface); font-weight: 600; }
  tr:last-child td { border-bottom: 1px solid var(--border); }
  tr td:last-child { border-bottom: 0; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-nav { gap: 12px; }
  .brand span.name { display: none; }
}
