/* IntegriMark — provably random, independently auditable prize draws.
   Modern-SaaS visual system (2026-07-15 rebuild): cool neutrals, one gold brand
   accent, self-hosted Inter, soft layered shadows, crisp hairline borders, tight
   display type, generous whitespace. Fully self-hosted (CSP-safe: no CDN, no
   external fonts, no inline styles). Spacing is literal px — no custom props or
   clamp() in the spacing path — so the vertical rhythm renders identically
   everywhere. Colours/shadows/radii use custom props (well-supported). */

/* ---------------- self-hosted typeface ---------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter.woff2") format("woff2");
}

:root {
  /* surfaces */
  --bg: #fbfbfc;           /* app canvas */
  --panel: #f4f5f7;        /* subtle panel */
  --card: #ffffff;
  --ink: #0b0d12;          /* dark sections */
  --ink-2: #141922;
  /* text */
  --text: #0d1117;
  --muted: #59616f;
  --faint: #8a93a2;
  /* lines */
  --line: #e8eaee;
  --line-2: #dce0e6;
  /* brand accent (gold) */
  --gold: #c0912f;
  --gold-lite: #e6c66e;
  --gold-deep: #986c14;
  --gold-soft: #f7efd7;
  /* on dark */
  --on-dark: #eceff5;
  --on-dark-mute: #9aa4b6;
  /* status */
  --green: #12805c;
  --green-soft: #e6f5ee;
  --red: #c0392b;
  --red-soft: #fbecea;
  /* radii */
  --r-xs: 6px; --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  /* shadows — soft, layered, low-opacity (the modern-SaaS depth) */
  --sh-1: 0 1px 2px rgba(13,17,23,.06), 0 1px 1px rgba(13,17,23,.04);
  --sh-2: 0 6px 16px -4px rgba(13,17,23,.10), 0 2px 6px -2px rgba(13,17,23,.06);
  --sh-3: 0 24px 48px -16px rgba(13,17,23,.22), 0 8px 20px -10px rgba(13,17,23,.12);
  /* type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
}
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.021em; line-height: 1.12; }
code { font-family: var(--mono); font-size: 0.84em; word-break: break-all; }
a { color: var(--gold-deep); }
.hidden { display: none !important; }
main { width: 100%; }

/* ============================================================================
   SPACING MODEL — literal, predictable vertical rhythm + horizontal gutter.
   80 -> 160px between sections on mobile, stepping up at two breakpoints.
   ============================================================================ */
.topbar, .hero, .band,
.tiles, .contrast, .demo-lead, .demo, .receipts, .verify, .foot {
  padding-left: 20px; padding-right: 20px;
}
.hero, .band, .tiles, .contrast, .demo-lead, .demo, .receipts, .verify, .foot {
  padding-top: 80px; padding-bottom: 80px;
}
.tiles, .contrast, .demo-lead, .demo, .receipts, .verify, .foot {
  width: 100%; margin-left: auto; margin-right: auto;
}
.foot { padding-bottom: 48px; }

@media (min-width: 720px) {
  .topbar, .hero, .band, .tiles, .contrast, .demo-lead, .demo, .receipts, .verify, .foot {
    padding-left: 32px; padding-right: 32px;
  }
  .hero, .band, .tiles, .contrast, .demo-lead, .demo, .receipts, .verify, .foot {
    padding-top: 96px; padding-bottom: 96px;
  }
}
@media (min-width: 1120px) {
  .topbar, .hero, .band, .tiles, .contrast, .demo-lead, .demo, .receipts, .verify, .foot {
    padding-left: 44px; padding-right: 44px;
  }
  .hero, .band, .tiles, .contrast, .demo-lead, .demo, .receipts, .verify, .foot {
    padding-top: 104px; padding-bottom: 104px;
  }
}

/* entrance — transform-only, never hides content */
@media (prefers-reduced-motion: no-preference) {
  @keyframes slideUp { from { transform: translateY(14px); opacity: .55; } to { transform: none; opacity: 1; } }
  .hero-copy > *, .proof-card { animation: slideUp .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero .eyebrow { animation-delay: .02s; }
  .hero h1 { animation-delay: .09s; }
  .hero .lede { animation-delay: .18s; }
  .hero-cta-row { animation-delay: .27s; }
  .proof-card { animation-delay: .38s; }
}

/* ---------------- top bar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
  padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(251,251,252,0.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-deep); }
.mark { width: 24px; height: 24px; }
.brand-name { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.02em; }
.topbar-cta {
  font: 600 13.5px var(--sans); color: var(--text); text-decoration: none;
  border: 1px solid var(--line-2); padding: 8px 15px; border-radius: 999px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.topbar-cta:hover { border-color: var(--gold); box-shadow: var(--sh-1); }

/* ---------------- hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -15%, rgba(214,171,79,0.20), transparent 52%),
    radial-gradient(80% 60% at 0% 0%, rgba(120,140,200,0.10), transparent 55%),
    linear-gradient(165deg, #0b0d12, #141922 60%, #0e1220);
  color: var(--on-dark);
}
.hero::after { /* fine dot grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 35%, transparent 92%);
}
.hero-inner { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-lite);
  margin: 0 0 18px; padding: 6px 12px; border: 1px solid rgba(230,198,110,0.28);
  border-radius: 999px; background: rgba(230,198,110,0.06);
}
.hero h1 { font-size: clamp(33px, 6.2vw, 56px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 20px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-lite); }
.lede { font-size: clamp(16px, 2.3vw, 19px); line-height: 1.55; color: #c7ccd6; margin: 0 0 30px; max-width: 55ch; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-strip { font-size: 13px; color: var(--on-dark-mute); max-width: 52ch; border-left: 2px solid var(--gold); padding-left: 12px; margin: 24px 0 0; }

/* proof card */
.proof-card {
  position: relative; z-index: 1;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg); padding: 20px 20px 18px;
  box-shadow: var(--sh-3);
  max-width: 430px;
}
.pc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pc-shield { width: 36px; height: 36px; color: var(--green); flex-shrink: 0; }
.pc-title { font: 700 16px var(--sans); color: var(--text); letter-spacing: -0.01em; }
.pc-sub { font: 12px var(--mono); color: var(--faint); }
.pc-rows { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 11px; }
.pc-rows li { font-size: 14px; color: #333941; display: flex; gap: 10px; align-items: flex-start; }
.pc-rows strong { color: var(--gold-deep); }
.pc-tick { color: #fff; background: var(--green); width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; margin-top: 1px; }
.pc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.pc-badge { font: 700 11px var(--sans); letter-spacing: 0.02em; color: var(--green); background: var(--green-soft); border: 1px solid #bfe6d3; padding: 5px 10px; border-radius: 999px; }
.pc-foot code { color: var(--faint); font-size: 11px; flex-basis: 100%; word-break: break-all; line-height: 1.5; }

/* ---------------- buttons ---------------- */
.btn {
  appearance: none; border: 1px solid transparent; cursor: pointer;
  font: 600 15px var(--sans); letter-spacing: -0.01em; border-radius: var(--r);
  padding: 12px 20px; transition: transform .08s ease, background .15s, border-color .15s, box-shadow .2s, opacity .15s;
  touch-action: manipulation; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-lg { padding: 15px 26px; font-size: 15.5px; min-height: 52px; border-radius: var(--r); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn-gold { background: linear-gradient(180deg, var(--gold-lite), var(--gold)); color: #241b02; box-shadow: 0 8px 20px -8px rgba(192,145,47,0.6), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-gold:hover:not(:disabled) { background: linear-gradient(180deg, #ecca77, var(--gold-deep)); box-shadow: 0 10px 26px -8px rgba(192,145,47,0.7); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--sh-1); }
.btn-primary:hover:not(:disabled) { background: #000; box-shadow: var(--sh-2); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--on-dark); border-color: rgba(255,255,255,0.20); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.32); }
.btn-quiet { background: var(--card); color: var(--text); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--gold); }
.btn-sabotage { background: transparent; color: var(--red); border: 1.5px dashed #e0a89f; }
.btn-sabotage:hover:not(:disabled) { background: var(--red-soft); }
.btn-row { display: grid; gap: 10px; margin-top: 10px; }
.spinner { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- bands (dark) ---------------- */
.band { color: var(--on-dark); position: relative; }
.band-now { background: linear-gradient(165deg, #10141c, #1a1f2b); border-top: 1px solid rgba(214,171,79,0.22); border-bottom: 1px solid rgba(0,0,0,0.35); }
.band-close { background: radial-gradient(90% 130% at 50% 0%, rgba(214,171,79,0.15), transparent 58%), linear-gradient(165deg, #0b0d12, #141922); text-align: center; }
.band-inner { max-width: 820px; margin: 0 auto; }
.band h2 { font-size: clamp(23px, 4vw, 34px); font-weight: 800; letter-spacing: -0.028em; line-height: 1.15; margin: 0 0 16px; color: #fff; }
.band p { color: #c7ccd6; font-size: 16px; line-height: 1.6; margin: 0; max-width: 66ch; }
.band-p2 { margin-top: 16px !important; }
.band-p2 strong { color: #fff; }
.band-now em, .band-close em { color: var(--gold-lite); font-style: normal; font-weight: 600; }
.band-close .btn { margin-top: 26px; }
.pill {
  display: inline-block; font: 600 12px var(--sans); letter-spacing: 0.02em;
  color: var(--gold-lite); background: rgba(230,198,110,0.08);
  border: 1px solid rgba(230,198,110,0.26); padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}

/* ---------------- value tiles ---------------- */
.tiles { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 1140px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px;
  box-shadow: var(--sh-1); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.tile-icon {
  width: 48px; height: 48px; border-radius: var(--r); background: var(--gold-soft);
  color: var(--gold-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  border: 1px solid #efe1bd;
}
.tile-icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; }
.tile p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------------- contrast ---------------- */
.contrast { max-width: 860px; }
.contrast p { font-size: clamp(21px, 3.1vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; color: var(--text); margin: 0; text-align: center; }
.contrast strong { color: var(--gold-deep); font-weight: 700; }

/* ---------------- demo lead ---------------- */
.demo-lead { max-width: 780px; text-align: center; }
.demo-lead h2 { font-size: clamp(27px, 4.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 14px; }
.demo-lead p { color: #3d434c; font-size: 16.5px; line-height: 1.55; max-width: 56ch; margin: 0 auto 26px; }
.demo-lead-note { font-size: 13px; color: var(--faint); margin-top: 14px; }

/* ---------------- demo / steps ---------------- */
.demo { max-width: 860px; scroll-margin-top: 72px; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.demo-head-label { font: 600 12px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: 0; border-radius: var(--r-sm); }
.chapter-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); padding: 4px; margin: 4px 0 22px;
  position: sticky; top: calc(env(safe-area-inset-top) + 60px); z-index: 40;
}
.tab { appearance: none; border: 0; cursor: pointer; font: 600 15px var(--sans); color: var(--muted); padding: 11px 8px; min-height: 44px; border-radius: var(--r-sm); background: transparent; transition: background .15s, color .15s, box-shadow .15s; }
.tab.active { background: var(--card); color: var(--text); box-shadow: var(--sh-1); }
.chapter-blurb { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 0 0 26px 42px; }
.step::before { content: ""; position: absolute; left: 14px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step-dot { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-2); color: var(--muted); font: 700 13px var(--sans); display: flex; align-items: center; justify-content: center; }
.step.active .step-dot { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-soft); }
.step.done .step-dot { border-color: var(--green); background: var(--green); color: #fff; }
.step h3 { margin: 4px 0 4px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.step .step-why { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.step.locked { opacity: .4; pointer-events: none; }
.rules-box { width: 100%; min-height: 250px; resize: vertical; font: 12.5px/1.6 var(--mono); color: var(--text); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 13px 15px; margin-bottom: 6px; white-space: pre-wrap; word-break: break-word; }
.rules-box:focus { outline: 3px solid rgba(192,145,47,0.25); outline-offset: 0; border-color: var(--gold); }
.rules-hint { font-size: 12px; color: var(--faint); margin: 0 0 12px; }
.stubs { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.stub { border: 1.5px dashed var(--gold); background: var(--gold-soft); color: var(--gold-deep); font: 700 13px var(--mono); padding: 7px 11px; border-radius: var(--r-sm); }
.stub.stub-win { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.stub.stub-lose { border-color: var(--line-2); background: var(--panel); color: var(--muted); }
.stub.stub-winner { border-style: solid; box-shadow: inset 0 0 0 2px var(--gold); }
.winner-line { font-size: 14px; font-weight: 600; color: var(--text); margin: 12px 0 0; }
.seed-value { display: block; margin: 6px 0 0; padding: 9px 11px; font: 12px/1.55 var(--mono); color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); word-break: break-all; }
.flash { background: var(--red-soft); border: 1px solid #eecac4; color: var(--red); border-radius: var(--r-sm); padding: 11px 14px; font-size: 13.5px; margin: 10px 0; }
.flash.info { background: var(--gold-soft); border-color: #ecdcae; color: #7a5c13; }

/* ---------------- section heads ---------------- */
.section-head { margin: 0 0 26px; }
.section-head h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -0.028em; margin: 0 0 8px; }
.section-head p { color: var(--muted); font-size: 15px; margin: 0; max-width: 58ch; line-height: 1.55; }

/* ---------------- receipts ---------------- */
.receipts { max-width: 860px; }
.receipt { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--r); margin-bottom: 14px; overflow: hidden; box-shadow: var(--sh-1); }
.receipt.r-refused { border-left-color: var(--red); }
.receipt.r-draw { border-left-color: var(--gold); }
.receipt.r-new { animation: rise .3s ease; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.r-body { padding: 15px 17px 13px; }
.r-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.r-title { font: 700 15.5px var(--sans); letter-spacing: -0.01em; margin: 0; }
.r-stamp { flex-shrink: 0; font: 700 10px var(--sans); letter-spacing: .05em; padding: 3px 8px; border-radius: var(--r-xs); border: 1.5px solid; text-transform: uppercase; white-space: nowrap; }
.r-stamp.ok { color: var(--green); border-color: var(--green); }
.r-stamp.no { color: var(--red); border-color: var(--red); }
.r-stamp.draw { color: var(--gold-deep); border-color: var(--gold); }
.r-proves { font-size: 13.5px; color: #454b55; margin: 7px 0 11px; line-height: 1.5; }
.r-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.r-explorer { display: inline-flex; align-items: center; gap: 5px; font: 600 13px var(--sans); color: #241b02; background: linear-gradient(180deg, var(--gold-lite), var(--gold)); padding: 7px 13px; border-radius: var(--r-sm); text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
.r-explorer:hover { background: var(--gold-deep); color: #fff; }
.r-time { font-size: 12px; color: var(--faint); }
.r-evidence { border-top: 1px solid var(--line); }
.r-evidence summary { cursor: pointer; list-style: none; font: 600 12.5px var(--sans); color: var(--muted); padding: 10px 17px; }
.r-evidence summary::-webkit-details-marker { display: none; }
.r-evidence summary::before { content: "▸ "; color: var(--gold-deep); }
.r-evidence[open] summary::before { content: "▾ "; }
.ev-grid { padding: 0 17px 15px; display: grid; gap: 10px; }
.ev-label { font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
.ev-grid pre { margin: 0; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; max-height: 240px; overflow: auto; }
.copy-btn { appearance: none; border: 1px solid var(--line-2); background: var(--card); font: 600 11px var(--sans); color: var(--muted); border-radius: var(--r-xs); padding: 6px 12px; min-height: 32px; cursor: pointer; }
.copy-btn:active { background: var(--gold-soft); }

/* ---------------- verify ---------------- */
.verify { max-width: 860px; }
.verify-row { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; margin-bottom: 9px; box-shadow: var(--sh-1); }
.v-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.v-icon.pending { color: var(--faint); border: 2px solid var(--line-2); }
.v-icon.pass { background: var(--green); color: #fff; }
.v-icon.fail { background: var(--red); color: #fff; }
.v-text { flex: 1; min-width: 0; }
.v-title { font: 600 14.5px var(--sans); letter-spacing: -0.01em; margin: 0; }
.v-sub { font-size: 13px; color: #4a515b; margin: 4px 0 0; line-height: 1.45; }
.v-onchain { display: inline-block; margin-top: 8px; font: 600 12.5px var(--sans); color: var(--gold-deep); text-decoration: none; }
.v-onchain:hover { text-decoration: underline; }
#verify-verdict { border-radius: var(--r-lg); padding: 20px; text-align: center; margin-top: 16px; }
#verify-verdict.pass { background: var(--green-soft); border: 1px solid #bfe6d3; }
#verify-verdict.fail { background: var(--red-soft); border: 1px solid #eecac4; }
#verify-verdict .vv-big { font: 800 22px var(--sans); letter-spacing: -0.02em; }
#verify-verdict.pass .vv-big { color: var(--green); }
#verify-verdict.fail .vv-big { color: var(--red); }
#verify-verdict .vv-sub { font-size: 14px; color: #454b55; margin-top: 6px; }
.verify-note { font-size: 13px; color: var(--faint); margin-top: 16px; }

/* ---------------- integrate / agnostic ---------------- */
.integrate { max-width: 860px; margin-left: auto; margin-right: auto; padding: 80px 20px; }
@media (min-width: 720px) { .integrate { padding: 96px 32px; } }
@media (min-width: 1120px) { .integrate { padding: 104px 44px; } }
/* ---------------- division-of-labour split (replaces the old code card) ---------------- */
.split-section { max-width: 1060px; }
.split-section .section-head { text-align: center; margin-bottom: 34px; }
.split-section .section-head p { margin-left: auto; margin-right: auto; }
.split-section .section-head h2 em { font-style: normal; color: var(--gold-deep); }
.split { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; } }
.split-panel { display: flex; flex-direction: column; border-radius: var(--r-lg); padding: 24px; }
.split-yours { background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.split-ours { background: linear-gradient(165deg, var(--ink-2), var(--ink)); border: 1px solid rgba(230,198,110,0.28); box-shadow: var(--sh-2); color: var(--on-dark); }
.split-head { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.split-tag { font: 700 11px var(--sans); letter-spacing: 0.09em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.split-yours .split-tag { color: var(--muted); background: var(--panel); border: 1px solid var(--line-2); }
.split-ours .split-tag { color: #241b02; background: linear-gradient(180deg, var(--gold-lite), var(--gold)); }
.split-list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.split-ours .split-list { justify-content: center; gap: 22px; }
.split-list li { display: flex; gap: 12px; align-items: flex-start; }
.split-ic { flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.split-yours .split-ic { background: var(--gold-soft); color: var(--gold-deep); }
.split-ours .split-ic { background: rgba(230,198,110,0.14); color: var(--gold-lite); }
.split-ic svg { width: 18px; height: 18px; }
.split-txt b { display: block; font: 700 15px var(--sans); letter-spacing: -0.01em; margin-bottom: 3px; }
.split-yours .split-txt b { color: var(--text); }
.split-ours .split-txt b { color: #fff; }
.split-txt span { font-size: 13.5px; line-height: 1.5; }
.split-yours .split-txt span { color: var(--muted); }
.split-ours .split-txt span { color: #c7ccd6; }
.split-payoff { text-align: center; max-width: 62ch; margin: 32px auto 0; font-size: clamp(17px, 2.4vw, 21px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.4; color: var(--text); }
.split-payoff strong { color: var(--gold-deep); font-weight: 700; }

/* ---------------- footer ---------------- */
.foot { max-width: 860px; border-top: 1px solid var(--line); }
.foot p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.foot-small { font-size: 12px; color: var(--faint); }

/* ---------------- confirmation modals ---------------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(11,13,18,0.55); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; }
@media (prefers-reduced-motion: no-preference) { .modal-overlay { animation: mfade .18s ease; } @keyframes mfade { from { opacity: 0; } to { opacity: 1; } } }
.modal-card { background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: 0 -18px 50px rgba(11,13,18,0.34); }
@media (prefers-reduced-motion: no-preference) { .modal-card { animation: mslide .26s cubic-bezier(.2,.7,.2,1); } @keyframes mslide { from { transform: translateY(28px); } to { transform: none; } } }
.modal-head { position: sticky; top: 0; z-index: 1; background: var(--card); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.modal-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.modal-x { appearance: none; border: 0; background: var(--panel); width: 32px; height: 32px; border-radius: 50%; font-size: 13px; cursor: pointer; color: var(--muted); flex-shrink: 0; }
.modal-x:hover { background: #e9ebf0; }
.modal-body { padding: 18px 20px; }
.modal-intro { font-size: 14px; color: #454b55; margin: 0 0 16px; line-height: 1.55; }
.modal-doc { margin-bottom: 14px; }
.modal-doc summary { cursor: pointer; font: 600 13px var(--sans); color: var(--gold-deep); list-style: none; }
.modal-doc summary::-webkit-details-marker { display: none; }
.modal-doc summary::before { content: "▸ "; }
.modal-doc[open] summary::before { content: "▾ "; }
.modal-doc pre { margin: 8px 0 0; padding: 11px 13px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 200px; overflow: auto; }
.kv { margin-bottom: 14px; }
.kv-label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.kv-name { font: 600 13px var(--sans); color: var(--text); }
.kv-val { display: flex; align-items: center; gap: 8px; }
.kv-val code { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; font: 11.5px/1.45 var(--mono); word-break: break-all; }
.kv-note { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.tag { font: 700 10px var(--sans); letter-spacing: .03em; text-transform: uppercase; padding: 3px 7px; border-radius: var(--r-xs); white-space: nowrap; }
.tag-public { color: #6b5410; background: #f2e6c2; }
.tag-secret { color: #fff; background: var(--red); }
.tag-derived { color: var(--muted); background: var(--panel); }
.tag-ledger { color: #fff; background: var(--green); }
.modal-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--gold-soft); border: 1px solid #ecdcae; border-radius: var(--r-sm); padding: 11px 13px; margin: 2px 0 14px; }
.eq-out { font: 700 12px var(--sans); color: var(--gold-deep); }
.eq-op { color: var(--muted); font-weight: 700; }
.eq-fn { font: 11.5px var(--mono); color: var(--text); }
.modal-storenote { font-size: 12.5px; color: #454b55; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 13px; margin-top: 6px; line-height: 1.5; }
.modal-outcome { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: var(--r); padding: 13px 15px; margin: 2px 0 14px; }
.modal-outcome.win { background: var(--green-soft); border: 1px solid #bfe6d3; }
.modal-outcome.lose { background: var(--panel); border: 1px solid var(--line); }
.oc-label { font-size: 13px; color: var(--muted); }
.modal-outcome strong { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.modal-outcome.win strong { color: var(--green); }
.modal-outcome.lose strong { color: var(--muted); }
.modal-foot { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 13px 20px; padding-bottom: max(13px, env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.modal-foot .r-explorer { flex: 1; justify-content: center; }
.modal-done { margin-left: auto; }
.v-intro { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.v-failmsg { color: var(--red); }

/* ---------------- responsive: component layout ---------------- */
@media (min-width: 640px) { .modal-overlay { align-items: center; padding: 24px; } .modal-card { border-radius: var(--r-lg); } }
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 52px; }
  .proof-card { justify-self: end; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .btn { width: auto; }
}
@media (max-width: 859px) {
  .btn-lg { width: 100%; }
  .hero-cta-row .btn { width: 100%; }
  .proof-card { max-width: 100%; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
