/* Teaser site, "Ledger" design. Loaded after site.css. Deep green, cream ink,
   one brass accent, serif headlines in sentence case. Dark by default. */

:root {
  --paper: #10241e; --sheet: #163029; --raise: #1b3830;
  --ink: #efe9dc; --ink-2: #c4bdac; --ink-3: #9c9684;
  --rule: #2c4a40; --rule-strong: #416457;
  --accent: #cfa85a; --on-accent: #10241e; --focus: #f0d08a;
  --live: #7fd1a1; --held: #e8b45a; --on-ink: #10241e;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --paper: #f4efe3; --sheet: #fffdf7; --raise: #faf6ec;
  --ink: #14261f; --ink-2: #4a5650; --ink-3: #66706a;
  --rule: #d9d1bf; --rule-strong: #bfb59f;
  --accent: #8a6420; --on-accent: #fff; --focus: #8a6420;
  --live: #2c7a4b; --held: #9a6400; --on-ink: #fff;
  color-scheme: light;
}

.b h1, .b h2 { font-weight: 500; letter-spacing: -0.015em; }
.b h1 { font-size: clamp(2.6rem, 1.5rem + 3.8vw, 4.5rem); line-height: 1.05; }
.b .brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.b .site-header { border-bottom: 1px solid var(--rule); }

.btn-accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); border-radius: 999px; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.b .btn-secondary { border-color: var(--accent); border-radius: 999px; }
.b .btn-primary { border-radius: 999px; }

/* Hero with the ledger */
.b-hero { padding: clamp(56px, 8vw, 104px) 0; }
.b-hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: start; }
@media (min-width: 980px) { .b-hero-grid { grid-template-columns: 1fr 1fr; } }
.b-hero .lede { margin: 24px 0 32px; }
.b-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.b-note { margin-top: 22px; font-size: 0.9rem; color: var(--ink-3); }

.ledger-cap { font-size: 0.85rem; color: var(--ink-3); margin-bottom: 14px; }
.ledger { list-style: none; border-left: 1px solid var(--rule-strong); padding-left: 30px; margin-left: 7px; }
.entry { position: relative; padding-bottom: 28px; }
.entry:last-child { padding-bottom: 0; }
.entry::before { content: ""; position: absolute; left: -38px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.entry.restore::before { background: var(--accent); }
.entry .v { font: 0.8rem var(--mono); color: var(--accent); }
.entry h3 { font: 500 1.3rem/1.3 var(--serif); margin: 4px 0; }
.entry p { color: var(--ink-2); font-size: 0.95rem; }
.tag { display: inline-block; margin-top: 8px; font: 0.75rem var(--mono); padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; }
.tag.live { color: var(--live); } .tag.held { color: var(--held); } .tag.undo { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .js .ledger .entry { opacity: 0; transform: translateY(8px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .ledger .entry.in { opacity: 1; transform: none; }
}

/* Sections */
.b-section { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--rule); }
.b-section h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.1; max-width: 22ch; }
.b-section .lede { margin-top: 16px; }
.b-head { margin-bottom: 40px; }

.b-strip { display: grid; gap: 28px; }
@media (min-width: 760px) { .b-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .b-strip { grid-template-columns: repeat(4, 1fr); } }
.b-strip > div { border-top: 1px solid var(--accent); padding-top: 18px; }
.b-strip h3, .b-cards h3 { font: 500 1.35rem/1.3 var(--serif); margin-bottom: 8px; }
.b-strip p, .b-cards p { color: var(--ink-2); }

.b-stats { display: grid; gap: 28px; margin: 0; }
@media (min-width: 760px) { .b-stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .b-stats { grid-template-columns: repeat(4, 1fr); } }
.b-stats dt { font: 500 clamp(2rem, 1.5rem + 1.6vw, 2.8rem)/1.1 var(--serif); margin-bottom: 8px; }
.b-stats dd { margin: 0; color: var(--ink-2); }
.b-foot { margin-top: 28px; font-size: 0.82rem; color: var(--ink-3); max-width: 90ch; }

.b-cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .b-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .b-cards.three { grid-template-columns: repeat(3, 1fr); } }
.b-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 26px; }
.b-card .with { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--ink); }
.b-card .with b { color: var(--accent); font-weight: 600; }
.b-more { margin-top: 32px; }

/* Rhythm: sections alternate automatically, dark then cream (inverted in the
   light theme). Inverted sections redefine the palette, so every component
   inside them (cards, forms, buttons, tags) follows without special cases. */
.b main > section:nth-of-type(even), .b-inv {
  --paper: #efe9dc; --sheet: #f8f4ea; --raise: #f3eee2;
  --ink: #1b2a24; --ink-2: #4a5650; --ink-3: #66706a;
  --rule: #d6cdb9; --rule-strong: #bfb59f;
  --accent: #8a6420; --on-accent: #fff; --focus: #8a6420;
  --live: #2c7a4b; --held: #9a6400; --on-ink: #fff;
  background: var(--paper); color: var(--ink); border-top: 0; color-scheme: light;
}
:root[data-theme="light"] .b main > section:nth-of-type(even), :root[data-theme="light"] .b-inv {
  --paper: #10241e; --sheet: #163029; --raise: #1b3830;
  --ink: #efe9dc; --ink-2: #c4bdac; --ink-3: #9c9684;
  --rule: #2c4a40; --rule-strong: #416457;
  --accent: #cfa85a; --on-accent: #10241e; --focus: #f0d08a;
  --live: #7fd1a1; --held: #e8b45a; --on-ink: #10241e;
  color-scheme: dark;
}
.b main > section:nth-of-type(odd) + section, .b main > section:nth-of-type(even) + section { border-top: 0; }
.b-section { border-top: 0; }

/* A use case in depth */
.b-case { display: grid; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 980px) { .b-case { grid-template-columns: 0.9fr 1.1fr; } }
.b-case h2 { margin-bottom: 14px; }
.b-case .lede { margin-top: 0; }
.b-case h3 { font: 500 1.15rem/1.3 var(--serif); margin: 0 0 8px; }
.b-case ul { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; }
.b-case li { padding-left: 18px; position: relative; color: var(--ink-2); }
.b-case li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.b-example { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; color: var(--ink); }
.b-example b { display: block; font: 0.8rem var(--mono); color: var(--accent); margin-bottom: 4px; font-weight: 400; }

/* Two calls to action */
.b-two { display: grid; gap: 16px; }
@media (min-width: 820px) { .b-two { grid-template-columns: 1fr 1fr; } }
.b-two > div { border-radius: 18px; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.b-two > div:first-child { background: var(--sheet); border: 1px solid var(--rule); }
.b-two h3 { font: 500 1.8rem/1.2 var(--serif); }

/* Investor roadmap */
.b-road { list-style: none; display: grid; gap: 0; }
.b-road li { display: grid; grid-template-columns: 9rem 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--rule); }
.b-road .when { font: 0.85rem var(--mono); color: var(--accent); padding-top: 4px; }
.b-road h3 { font: 500 1.2rem/1.3 var(--serif); margin-bottom: 4px; }
@media (max-width: 560px) { .b-road li { grid-template-columns: 1fr; gap: 4px; } }

/* Use-case detail pages */
.b-crumb { font-size: 0.92rem; margin-bottom: 18px; }
.b-crumb a { color: var(--accent); text-decoration: none; }
.b-crumb a:hover { text-decoration: underline; }

/* Use-case tabs: stick to the top of the screen while reading */
.b-tabs { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.b-tabs ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: thin; }
.b-tabs a { display: block; white-space: nowrap; padding: 6px 14px; border-radius: 999px; font-size: 0.92rem; color: var(--ink-2); text-decoration: none; border: 1px solid transparent; }
.b-tabs a:hover { color: var(--ink); border-color: var(--rule-strong); }
.b-tabs a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

/* Form honeypot: invisible to people, filled in only by bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
