/* ================================================================
   Arbiter — marketing site
   The Black Ledger design system (dashboard/styles.css) translated
   to marketing scale. Same tokens, same voice: warm black, gold
   hairlines, arcane teal, squared corners, mono numerals.
   ================================================================ */

:root {
  --bg: #0b0907;
  --bg-deep: #080604;
  --gold: #c8aa6e;
  --gold-hi: #e6c98a;
  --text: #ece4d3;
  --text-dim: #9c907a;
  --text-faint: #6e6552;
  --good: #6fcf8e;
  --bad: #e0635a;
  --arcane: #7bb7c4;
  --card-bg: linear-gradient(180deg, #17130d, #100d0a);
  --card-bd: #241e16;
  --head-bd: #2a241b;
  --gold-bd-soft: rgba(200, 170, 110, 0.22);
  --gold-bd: rgba(200, 170, 110, 0.34);
  --gold-fill: rgba(200, 170, 110, 0.08);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --serif: 'Cinzel', 'Times New Roman', serif;
  font-synthesis: none;
}

@font-face { font-family: "Cinzel"; font-weight: 600; font-display: swap; src: url(fonts/cinzel-600.woff2) format('woff2'); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url(fonts/cinzel-700.woff2) format('woff2'); }
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url(fonts/space-grotesk-400.woff2) format('woff2'); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(fonts/space-grotesk-500.woff2) format('woff2'); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(fonts/space-grotesk-700.woff2) format('woff2'); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-400.woff2) format('woff2'); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url(fonts/jetbrains-mono-600.woff2) format('woff2'); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: rgba(200, 170, 110, 0.28); color: var(--text); }

body {
  background:
    radial-gradient(1100px 560px at 82% -8%, rgba(200, 170, 110, 0.09), transparent 60%),
    radial-gradient(900px 500px at -6% 4%, rgba(123, 183, 196, 0.04), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over everything, very faint */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: var(--text); }
strong { color: var(--text); font-weight: 700; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- type voices ---------- */
.kicker {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.kicker .sep { color: var(--text-faint); padding: 0 0.5em; }
h1, h2 { font-family: var(--serif); font-weight: 700; color: var(--text); line-height: 1.12; }
h1 { font-size: clamp(40px, 6.2vw, 68px); letter-spacing: 0.01em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h2 .gold, h1 .gold { color: var(--gold-hi); }
.lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--text-dim); max-width: 58ch; }
.lede strong { color: var(--gold-hi); font-weight: 500; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(8, 6, 4, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-bd);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 26px; height: 26px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: 0.14em; }
.brand-sub { font-family: var(--mono); font-size: 9px; letter-spacing: 0.24em; color: var(--text-faint); display: block; margin-top: -2px; }
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a { font-size: 13.5px; color: var(--text-dim); letter-spacing: 0.02em; }
.site-nav a:hover { color: var(--gold-hi); }
@media (max-width: 860px) { .site-nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 14.5px; letter-spacing: 0.02em;
  padding: 11px 22px; border-radius: 2px; border: 1px solid var(--gold-bd);
  color: var(--gold-hi); background: transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--gold-fill); color: var(--text); transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #1a1407; border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(200, 170, 110, 0.18);
}
.btn-gold:hover { background: linear-gradient(180deg, #f0d69b, var(--gold-hi)); color: #1a1407; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 108px 0 56px; }
/* ledger rules: faint horizontal account lines behind the hero */
.hero::before {
  content: ""; position: absolute; inset: 0 0 30% 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 47px, rgba(200, 170, 110, 0.05) 47px 48px);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
/* a faded column of ledger figures down the right edge */
.hero-figures {
  position: absolute; top: 84px; right: max(12px, calc((100vw - 1240px) / 2)); z-index: 0;
  font-family: var(--mono); font-size: 12px; line-height: 4.0; text-align: right;
  color: rgba(200, 170, 110, 0.13); pointer-events: none; user-select: none;
  display: none;
}
@media (min-width: 1100px) { .hero-figures { display: block; } }
.hero .wrap { position: relative; z-index: 1; }
.hero .kicker { margin-bottom: 22px; }
.hero h1 { max-width: 13ch; margin-bottom: 22px; }
.hero .lede { margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.hero-handline { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-faint); }
.hero-handline b { color: var(--text-dim); font-weight: 600; }

.hero-shot { margin-top: 56px; position: relative; }
.hero-shot::before {
  content: ""; position: absolute; inset: -40px -60px; z-index: 0;
  background: radial-gradient(60% 70% at 50% 30%, rgba(200, 170, 110, 0.10), transparent 70%);
  pointer-events: none;
}
.shot-frame {
  position: relative; z-index: 1; border: 1px solid var(--head-bd); border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(200, 170, 110, 0.08);
  overflow: hidden; background: var(--bg-deep);
}
.shot-frame::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(230, 201, 138, 0.55), transparent);
}
.shot-cap {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-faint);
  text-align: center; margin-top: 14px;
}

/* ---------- claims strip ---------- */
.strip { border-top: 1px solid var(--card-bd); border-bottom: 1px solid var(--card-bd); margin-top: 72px; background: rgba(23, 19, 13, 0.35); }
.strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { padding: 22px 26px; border-left: 1px solid var(--card-bd); }
.strip-item:first-child { border-left: 0; }
.strip-item b { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 4px; }
.strip-item span { font-size: 13px; color: var(--text-dim); }
@media (max-width: 860px) { .strip .wrap { grid-template-columns: 1fr; } .strip-item { border-left: 0; border-top: 1px solid var(--card-bd); } .strip-item:first-child { border-top: 0; } }

/* ---------- sections ---------- */
section.block { padding: 96px 0 0; }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 14px; }
.sec-no { font-family: var(--mono); font-size: 12px; color: var(--text-faint); letter-spacing: 0.14em; white-space: nowrap; }
.sec-head h2 { margin-bottom: 0; }
.sec-sub { color: var(--text-dim); max-width: 62ch; margin-bottom: 40px; }
.sec-sub + .sec-sub { margin-top: -28px; }

/* thesis */
.thesis { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.thesis-aside {
  border: 1px solid var(--card-bd); border-radius: 2px; background: var(--card-bg); padding: 26px 28px;
  font-family: var(--mono); font-size: 13px; line-height: 2.05; color: var(--text-dim);
}
.thesis-aside .row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed rgba(200,170,110,0.14); }
.thesis-aside .row:last-child { border-bottom: 0; }
.thesis-aside .lbl { color: var(--text-faint); }
.thesis-aside .good { color: var(--good); }
.thesis-aside .bad { color: var(--bad); }
.thesis-aside .gold { color: var(--gold-hi); }
.thesis p { color: var(--text-dim); margin-bottom: 18px; }
@media (max-width: 900px) { .thesis { grid-template-columns: 1fr; } }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  border: 1px solid var(--card-bd); border-radius: 2px; background: var(--card-bg);
  padding: 24px 24px 26px; position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.feat:hover { border-color: var(--gold-bd-soft); transform: translateY(-2px); }
.feat::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 170, 110, 0.35), transparent);
  opacity: 0; transition: opacity .2s; }
.feat:hover::after { opacity: 1; }
.feat h3 { font-family: var(--sans); font-weight: 700; font-size: 15.5px; letter-spacing: 0.02em; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.feat p { font-size: 13.5px; color: var(--text-dim); }
.feat .fig { font-family: var(--mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.1em; display: block; margin-bottom: 14px; }
.feat-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: center; }
.feat-wide .shot-frame { box-shadow: 0 16px 44px rgba(0,0,0,0.5); }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr; } .feat-wide { grid-template-columns: 1fr; } }

.beta-pill {
  display: inline-flex; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em;
  padding: 2px 8px; border-radius: 2px; text-transform: uppercase;
  color: var(--arcane); background: rgba(123, 183, 196, 0.10); border: 1px solid rgba(123, 183, 196, 0.32);
}

/* paths / pro */
.paths { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.paths .shot-frame { max-width: 340px; margin: 0 auto; }
.paths ul { list-style: none; margin-top: 26px; }
.paths li { padding: 12px 0 12px 30px; border-top: 1px solid var(--row-bd, #1d1810); position: relative; color: var(--text-dim); font-size: 14.5px; }
.paths li::before { content: "◆"; position: absolute; left: 4px; top: 12px; color: var(--gold); font-size: 10px; }
.paths li b { color: var(--text); font-weight: 500; }
@media (max-width: 900px) { .paths { grid-template-columns: 1fr; } }

/* pricing */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; }
.tier { border: 1px solid var(--card-bd); border-radius: 2px; background: var(--card-bg); padding: 30px 30px 26px; position: relative; }
.tier.pro { border-color: var(--gold-bd); box-shadow: 0 0 0 1px rgba(200,170,110,0.12), 0 24px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(230,201,138,0.10); }
.tier-name { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; color: var(--text-dim); text-transform: uppercase; }
.tier.pro .tier-name { color: var(--gold-hi); }
.tier-price { font-family: var(--mono); font-size: 40px; font-weight: 600; margin: 10px 0 2px; }
.tier-price small { font-size: 14px; color: var(--text-faint); font-weight: 400; }
.tier-note { font-size: 12px; color: var(--text-faint); font-family: var(--mono); letter-spacing: 0.04em; margin-bottom: 18px; }
.tier ul { list-style: none; margin: 18px 0 24px; }
.tier li { padding: 9px 0 9px 26px; border-top: 1px solid #1d1810; font-size: 14px; color: var(--text-dim); position: relative; }
.tier li::before { content: "—"; position: absolute; left: 2px; color: var(--text-faint); }
.tier.pro li::before { content: "◆"; color: var(--gold); font-size: 9px; top: 13px; }
.tier li b { color: var(--text); font-weight: 500; }
.tier-foot { font-size: 12.5px; color: var(--text-faint); margin-top: 26px; max-width: 60ch; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }

/* hard lines */
.lines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.line-card { border: 1px solid var(--card-bd); border-left: 2px solid var(--gold-bd); border-radius: 2px; background: var(--card-bg); padding: 20px 22px; }
.line-card b { display: block; font-size: 14.5px; margin-bottom: 6px; color: var(--text); font-weight: 700; }
.line-card span { font-size: 13px; color: var(--text-dim); }
@media (max-width: 900px) { .lines { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lines { grid-template-columns: 1fr; } }
.trust-link { display: inline-block; margin-top: 26px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }

/* beta honesty */
.beta-list { list-style: none; max-width: 720px; }
.beta-list li { padding: 13px 0 13px 34px; border-top: 1px solid #1d1810; color: var(--text-dim); position: relative; font-size: 15px; }
.beta-list li:last-child { border-bottom: 1px solid #1d1810; }
.beta-list li::before { content: "§"; position: absolute; left: 6px; color: var(--gold); font-family: var(--serif); }
.beta-list b { color: var(--text); font-weight: 500; }

/* faq */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--card-bd); }
.faq details:last-child { border-bottom: 1px solid var(--card-bd); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 2px; position: relative;
  font-weight: 700; font-size: 16px; color: var(--text); transition: color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 16px; font-family: var(--mono); font-size: 20px; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-hi); }
.faq .a { padding: 0 40px 22px 2px; color: var(--text-dim); font-size: 14.5px; }
.faq .a p + p { margin-top: 10px; }

/* get / download */
.get {
  margin-top: 96px; border-top: 1px solid var(--card-bd);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(200, 170, 110, 0.08), transparent 70%),
    var(--bg-deep);
  text-align: center; padding: 88px 0 96px;
}
.get h2 { margin-bottom: 14px; }
.get .lede { margin: 0 auto 34px; }
.get-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.get-note { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--text-faint); letter-spacing: 0.05em; }

/* footer */
.site-foot { border-top: 1px solid var(--card-bd); padding: 34px 0 44px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.foot-brand img { width: 20px; height: 20px; opacity: 0.85; }
.foot-brand span { font-family: var(--serif); font-weight: 600; letter-spacing: 0.14em; font-size: 14px; }
.site-foot a { font-size: 12.5px; color: var(--text-dim); }
.site-foot a:hover { color: var(--gold-hi); }
.foot-legal { width: 100%; font-size: 11.5px; color: var(--text-faint); line-height: 1.7; }

/* ---------- article pages (trust / terms / privacy) ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 72px 24px 110px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 10px; }
.doc .docsub { color: var(--text-faint); font-size: 14px; margin-bottom: 44px; }
.doc h2 { font-size: 21px; font-family: var(--sans); font-weight: 700; letter-spacing: 0.01em; margin: 44px 0 12px; color: var(--gold-hi); }
.doc h3 { font-size: 16.5px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--text-dim); font-size: 15px; }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 8px; }
.doc li b, .doc p b, .doc li strong, .doc p strong { color: var(--text); font-weight: 600; }
.doc .backlink { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; display: inline-block; margin-bottom: 34px; }
.draft-banner {
  border: 1px dashed rgba(217, 154, 82, 0.55); border-radius: 2px; background: rgba(217, 154, 82, 0.07);
  color: #d99a52; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.05em;
  padding: 12px 16px; margin-bottom: 40px;
}

/* ---------- tiny status pages ---------- */
.status-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.status-card { border: 1px solid var(--card-bd); border-radius: 2px; background: var(--card-bg); padding: 56px 52px; max-width: 520px; box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(230,201,138,0.08); }
.status-card img { width: 40px; margin: 0 auto 22px; }
.status-card h1 { font-size: 28px; margin-bottom: 12px; }
.status-card p { color: var(--text-dim); font-size: 15px; margin-bottom: 26px; }
/* the /download page: version meta line over the button, quieter footnotes under it */
.dl-meta { color: var(--text-dim); font-size: 13.5px; letter-spacing: 0.4px; margin-bottom: 22px; }
.dl-meta b { color: var(--text); font-weight: 600; }
.dl-note { color: var(--text-faint); font-size: 13px; line-height: 1.55; margin: 22px 0 0; }
.dl-note + .dl-note { margin-top: 10px; }
.dl-links { margin-top: 26px; font-size: 13px; }
.dl-links a { color: var(--text-dim); }
.dl-links a:hover { color: var(--gold-hi); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .feat:hover { transform: none; }
}
