/*
 * mrktn v2: "The instrument"
 * Graphite, one signal colour for what's real, one for the gap.
 * Geist for the interface, Geist Mono for every number, Instrument Serif for emphasis.
 */

:root {
  --bg: #0d0e0b;
  --bg-2: #141511;
  --bg-3: #1b1c17;
  --line: rgba(236, 238, 228, 0.11);
  --line-2: rgba(236, 238, 228, 0.22);
  --text: #eceee4;
  --text-2: #b0b4a7;
  --text-3: #858a7d;
  --real: #d7ff3f;          /* what the bank says */
  --real-tint: rgba(215, 255, 63, 0.07);
  --gap: #ff6b4a;           /* the difference */
  --on-real: #0d0e0b;

  --sans: 'Geist', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --serif: 'Instrument Serif', Georgia, serif;

  --max: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--real); color: var(--on-real); }
:focus-visible { outline: 2px solid var(--real); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--real); color: var(--on-real);
  padding: 8px 14px; border-radius: 8px; font-family: var(--mono); font-size: 13px;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); letter-spacing: -0.045em; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
p { color: var(--text-2); }

.em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.em--gap { color: var(--gap); }
.em--real { color: var(--real); }

.mono { font-family: var(--mono); }

.kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--real); box-shadow: 0 0 0 4px rgba(215, 255, 63, 0.12);
}
.kicker--plain::before { display: none; }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--text-2); max-width: 36ch; }

.src { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.src a { color: var(--text-3); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.src a:hover { color: var(--text-2); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--real { background: var(--real); color: var(--on-real); }
.btn--real:hover { background: #e4ff7a; }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text-2); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.arrow { font-family: var(--mono); font-weight: 400; }

.textlink {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--real);
  text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.textlink:hover { color: var(--real); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 14, 11, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }

.brand {
  font-family: var(--mono); font-weight: 500; font-size: 18px; letter-spacing: -0.02em;
  text-decoration: none; color: var(--text); display: inline-flex; align-items: baseline;
}
.brand .dot { color: var(--real); }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 14px; color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 860px) {
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
}

/* ---------- hero ---------- */

.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- reconciliation panel ---------- */

.panel {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 22px 22px 18px;
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--real); }

.recon { list-style: none; padding: 6px 0; }
.recon li {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.recon .who { font-size: 14.5px; color: var(--text); }
.recon .who small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); letter-spacing: 0.04em; margin-top: 2px; }
.recon .val { font-family: var(--mono); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -0.03em; }
.recon .claim .val { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--gap); text-decoration-thickness: 2px; }
.recon .truth .val { color: var(--real); }
.recon .truth .who { font-weight: 600; }

.bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: rgba(236, 238, 228, 0.05); overflow: hidden; }
.bar span {
  display: block; height: 100%; width: var(--w); border-radius: 4px;
  transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.claim .bar span { background: repeating-linear-gradient(135deg, rgba(236,238,228,0.28) 0 2px, transparent 2px 6px); }
.truth .bar span { background: var(--real); }
.is-in .bar span { transform: scaleX(1); }
.claim:nth-child(2) .bar span { transition-delay: 0.12s; }
.truth .bar span { transition-delay: 0.3s; }

.gaps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0 14px; }
.gaps div { background: rgba(255, 107, 74, 0.07); border: 1px solid rgba(255, 107, 74, 0.25); border-radius: 10px; padding: 10px 12px; }
.gaps b { display: block; font-family: var(--mono); font-size: 1.35rem; font-weight: 500; color: var(--gap); letter-spacing: -0.02em; }
.gaps span { font-size: 12.5px; color: var(--text-2); }
.panel .src { line-height: 1.5; }

/* ---------- proof strip ---------- */

.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof ul {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 22px 0; font-family: var(--mono); font-size: 13px; color: var(--text-2);
}
.proof b { color: var(--text); font-weight: 500; }

/* ---------- sections ---------- */

.section { padding: clamp(72px, 10vw, 128px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { margin-top: 18px; }
.section-head p { max-width: 52ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.quotes blockquote { background: var(--bg); padding: clamp(24px, 3.5vw, 40px); }
.quotes q { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.12; color: var(--text); quotes: "\201C" "\201D"; }
.quotes-src { margin-top: 14px; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg-2); }
.stat b { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px; }
.stat p { font-size: 15px; margin-bottom: 14px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }

/* ladder */
.ladder { display: grid; grid-template-columns: 1fr 40px 1.15fr 40px 1fr; align-items: stretch; }
.ladder-step { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.ladder-step i { font-style: normal; font-size: 18px; color: var(--text-2); }
.stack { display: grid; gap: 16px; }

.tier { border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; background: var(--bg-2); display: flex; flex-direction: column; }
.tier--key { border-color: var(--real); background: linear-gradient(180deg, var(--real-tint), transparent 70%), var(--bg-2); }
.tier-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.tier--key .tier-top .tag { color: var(--real); }
.tier h3 { margin: 14px 0 6px; }
.price { font-family: var(--mono); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.03em; color: var(--text); }
.price small { font-size: 0.85rem; color: var(--text-3); letter-spacing: 0; }
.tier p { font-size: 15px; margin-top: 12px; }
.tier .for { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.tier .btn { margin-top: 20px; align-self: flex-start; }
.ladder-note { margin-top: 24px; }

@media (max-width: 960px) {
  .ladder { grid-template-columns: 1fr; }
  .ladder-step { flex-direction: row; padding: 10px 0; }
  .ladder-step i { transform: rotate(90deg); }
}

/* slack */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; display: grid; gap: 18px; margin-top: 32px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.checks li::before { content: "\2713"; font-family: var(--mono); color: var(--real); font-size: 15px; line-height: 1.6; }
.checks b { color: var(--text); font-weight: 600; }
.checks p { font-size: 15.5px; }

.slack { background: #1a1d21; border: 1px solid #2b2f34; border-radius: 16px; overflow: hidden; font-size: 15px; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7); }
.slack-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #2b2f34; }
.slack-top b { font-weight: 700; color: #f1f2f3; }
.slack-top span { font-size: 12.5px; color: #9a9ea3; }
.msgs { padding: 8px 0 14px; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 10px 20px; }
.av { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.av--y { background: var(--real); color: var(--on-real); }
.av--c { background: #4a6b8a; color: #fff; }
.msg-meta { display: flex; gap: 8px; align-items: baseline; }
.msg-meta b { color: #f1f2f3; font-weight: 700; font-size: 15px; }
.msg-meta span { font-size: 12px; color: #9a9ea3; }
.msg p { color: #d1d2d3; font-size: 15px; line-height: 1.5; margin-top: 2px; }
.msg .thread { display: inline-block; margin-top: 6px; font-size: 13px; color: #7ab8ff; font-weight: 600; }
.react { display: inline-flex; gap: 6px; margin-top: 8px; }
.react span { border: 1px solid #3a3f45; background: #222529; border-radius: 12px; padding: 1px 8px; font-size: 12.5px; color: #d1d2d3; }
.slack-foot { padding: 12px 20px; border-top: 1px solid #2b2f34; font-family: var(--mono); font-size: 11.5px; color: #8b8f94; }

/* compare */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; min-width: 820px; font-size: 15px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); background: var(--bg-2); }
.compare tbody th { font-weight: 500; color: var(--text); width: 18%; }
.compare td { color: var(--text-2); }
.compare .us { background: var(--real-tint); color: var(--text); }
.compare thead .us { color: var(--real); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.table-src { margin-top: 14px; }

/* operator */
.op { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); }
.op-bio p + p { margin-top: 16px; }
.op-bio .lede { color: var(--text); max-width: none; margin-top: 22px; }
.op-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; font-size: 15px; }
.timeline { list-style: none; border-left: 1px solid var(--line-2); }
.timeline li { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 0 0 22px 24px; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text-2); }
.timeline li.now::before { background: var(--real); border-color: var(--real); }
.timeline time { font-family: var(--mono); font-size: 13px; color: var(--text-3); padding-top: 2px; }
.timeline b { display: block; color: var(--text); font-weight: 600; font-size: 15.5px; }
.timeline span { display: block; font-size: 14.5px; line-height: 1.45; color: var(--text-2); margin-top: 2px; }
@media (max-width: 860px) { .op { grid-template-columns: 1fr; } }

/* teardown + form */
.anatomy { list-style: none; counter-reset: a; display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.anatomy li { counter-increment: a; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.anatomy li::before { content: counter(a, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--text-3); padding-top: 2px; }
.anatomy b { color: var(--text); font-weight: 600; }
.anatomy p { font-size: 15px; }

.form-card { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; padding: clamp(24px, 3.5vw, 36px); }
.form-card h3 { font-size: 1.6rem; letter-spacing: -0.03em; }
.form-card > p { margin-top: 8px; font-size: 15.5px; }
.field { display: grid; gap: 8px; margin-top: 18px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.field label span { color: var(--text-3); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--real); box-shadow: 0 0 0 3px rgba(215, 255, 63, 0.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-card .btn { width: 100%; margin-top: 24px; }
.form-fine { margin-top: 14px; font-size: 13px; color: var(--text-3); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: clamp(1.05rem, 1.7vw, 1.25rem); font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--text-3); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--real); }
.faq details p { padding: 0 0 24px; max-width: 70ch; }

/* footer */
.site-footer { padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.foot-grid a { color: var(--text-2); text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.foot-grid p { font-size: 14.5px; max-width: 36ch; margin-top: 12px; }
.colophon { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- audit page ---------- */

.prices { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chip { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; background: var(--bg-2); }
.chip b { display: block; font-family: var(--mono); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.03em; }
.chip span { font-size: 13px; color: var(--text-2); }
.chip--real { border-color: var(--real); }
.chip--real b { color: var(--real); }

.checks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.check-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg-2); }
.check-card .n { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.check-card h3 { margin: 12px 0 8px; font-size: 1.15rem; }
.check-card p { font-size: 15px; }
.check-card--app { border-style: dashed; border-color: var(--line-2); background: transparent; }
@media (max-width: 960px) { .checks-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .checks-grid { grid-template-columns: 1fr; } }

.days { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.day { padding: 24px; border-right: 1px solid var(--line); }
.day:last-child { border-right: 0; background: var(--real-tint); }
.day time { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.day:last-child time { color: var(--real); }
.day h3 { font-size: 1.1rem; margin: 10px 0 8px; }
.day p { font-size: 14.5px; }
@media (max-width: 860px) { .days { grid-template-columns: 1fr 1fr; } .day:nth-child(2) { border-right: 0; } .day:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .days { grid-template-columns: 1fr; } .day { border-right: 0; border-bottom: 1px solid var(--line); } }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

.access { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 28px; }
.access li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.access li span:last-child { font-family: var(--mono); font-size: 13px; color: var(--text-3); text-align: right; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar span { transition: none; transform: scaleX(1); }
  .btn, .faq summary::after { transition: none; }
}
