/* Ledgerline — landing page styles */

/* HERO */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-inner > *, .split > *, .essence-grid > *, .letter-teaser > * { min-width: 0; }
.hero-code .codepane, .split .codepane { max-width: 100%; }
.hero-badge { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { margin-bottom: 30px; max-width: 30ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-proof { font-size: 14px; color: var(--slate-400); }
.hero-proof strong { color: var(--navy); }

.hero-code { position: relative; }
.hero-code .codepane pre { font-size: 13px; min-height: 118px; }
.codepane-head .copybtn, .copybtn {
  font-family: var(--mono); font-size: 12px; color: var(--code-mute); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); border-radius: 7px; padding: 4px 10px; cursor: pointer; transition: .15s;
}
.copybtn:hover { color: #fff; background: rgba(255,255,255,.12); }
.hero-resp { margin-top: 14px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hr-head { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--hairline-2); font-family: var(--mono); font-size: 12.5px; color: var(--slate-400); }
.dot-g { background: var(--green); box-shadow: 0 0 0 3px rgba(21,190,83,.16); }
.hr-run { margin-left: auto; font-family: var(--mono); font-size: 12.5px; }
.hr-json { margin: 0; padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--navy); overflow-x: auto; }
.hr-json .tok-key { color: var(--blurple-600); } .hr-json .tok-str { color: #0a7d4f; } .hr-json .tok-num { color: #b5540b; } .hr-json .tok-punc { color: var(--slate-300); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy .lead { max-width: 46ch; }
  .hero-code { max-width: 560px; }
}

/* LOGO BAR */
.logobar { padding: 34px 0 10px; }
.logobar-label { text-align: center; font-size: 13px; color: var(--slate-300); font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 22px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 48px; }
.logos span { font-weight: 700; font-size: 20px; color: #b3bfd0; letter-spacing: -.02em; transition: color .2s; }
.logos span:hover { color: var(--slate-400); }
@media (max-width: 640px) { .logos { gap: 14px 26px; } .logos span { font-size: 16px; } }

/* BENTO */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; grid-auto-rows: 1fr; }
.bento-cell {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .2s;
  display: flex; flex-direction: column; color: var(--slate);
}
.bento-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d7deea; color: var(--slate); }
.bento-cell.b-lg { grid-row: span 2; }
.bento-cell.b-wide { grid-column: span 2; }
.bento-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--blurple-600); font-weight: 600; margin-bottom: 14px; }
.bento-cell h3 { margin-bottom: 10px; }
.bento-cell p { font-size: 15px; margin-bottom: 18px; }
.bento-cell .link-arrow { margin-top: auto; color: var(--blurple-600); font-size: 15px; }
.mini-invoice { margin-top: auto; background: var(--bg-tint); border: 1px solid var(--hairline); border-radius: 12px; padding: 16px; font-size: 14px; }
.mi-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.mi-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--slate); border-bottom: 1px dashed var(--hairline); }
.mi-total { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 6px; font-weight: 700; color: var(--navy); }
.mini-link { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-tint); border: 1px solid var(--hairline); border-radius: 12px; padding: 14px 16px; }
.ml-url { font-family: var(--mono); font-size: 13px; color: var(--blurple-600); }
.ml-qr { width: 40px; height: 40px; border-radius: 6px; background:
  conic-gradient(#0a2540 0 25%, #fff 0 50%, #0a2540 0 75%, #fff 0) 0 0/13px 13px,
  linear-gradient(#0a2540,#0a2540); box-shadow: inset 0 0 0 3px #fff; flex: none; }
.mini-events { margin-top: auto; display: grid; gap: 8px; }
.me-row { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--navy); background: var(--bg-tint); border: 1px solid var(--hairline); border-radius: 9px; padding: 9px 12px; }
.me-row .pill { padding: 3px; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-cell.b-lg { grid-row: auto; } .bento-cell.b-wide { grid-column: span 2; }
}
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento-cell.b-wide { grid-column: auto; } }

/* ESSENCE */
.essence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.essence-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.essence-list li { display: flex; align-items: center; gap: 13px; color: #cdd8e8; font-size: 15.5px; }
.essence-list code { font-family: var(--mono); font-size: 13px; color: var(--cyan); background: rgba(33,212,253,.1); padding: 2px 7px; border-radius: 5px; }
.essence-list .ec { flex: none; width: 26px; height: 26px; border-radius: 8px; background: rgba(99,91,255,.22); color: #b7b1ff; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.ev-card { background: #08182b; border: 1px solid #1d3a5c; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.ev-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #12314f; font-family: var(--mono); font-size: 12.5px; color: #7a8db3; }
.ev-dots { display: flex; gap: 6px; } .ev-dots i { width: 10px; height: 10px; border-radius: 50%; background: #24406a; }
.ev-feed { padding: 8px; display: grid; gap: 6px; min-height: 236px; }
.ev-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: #0b1f38; border: 1px solid #16375a; border-radius: 10px; font-family: var(--mono); font-size: 12.5px; color: #dbe6f5; opacity: 0; transform: translateY(-8px); animation: evin .5s var(--ease-out) forwards; }
@keyframes evin { to { opacity: 1; transform: none; } }
.ev-item .etype { color: #fff; } .ev-item .etime { margin-left: auto; color: #5f76a0; font-size: 11.5px; }
.ev-item .edot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
@media (max-width: 860px) { .essence-grid { grid-template-columns: 1fr; } }

/* SPLIT + LADDER */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,64px); align-items: center; }
.ladder { margin-top: 26px; display: grid; gap: 10px; }
.lad { display: flex; align-items: baseline; gap: 14px; padding: 14px 18px; background: var(--bg-tint); border: 1px solid var(--hairline); border-radius: 12px; }
.lad strong { color: var(--navy); min-width: 82px; }
.lad span { color: var(--slate); font-size: 15px; }
#evtCode { font-size: 13px; }
#evtCode .tok-key { color: var(--code-key); } #evtCode .tok-str { color: var(--code-str); } #evtCode .tok-num { color: var(--code-num); } #evtCode .tok-cmt { color: var(--code-mute); font-style: italic; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* LETTER TEASER */
.letter-teaser { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px,5vw,56px); align-items: center; }
.letter-teaser h2 { margin: 6px 0 14px; }
.letter-stats { display: grid; gap: 16px; }
.ls { background: #fff; border: 1px solid var(--hairline); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.ls-num { display: block; font-size: 2.1rem; font-weight: 700; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.ls-lab { display: block; font-size: 14px; color: var(--slate-400); margin-top: 6px; }
@media (max-width: 760px) { .letter-teaser { grid-template-columns: 1fr; } }

/* FINAL CTA */
.final-cta { position: relative; overflow: hidden; padding: clamp(70px,9vw,120px) 0; }
.final-cta .grad-wrap { z-index: 0; }
.final-cta .grad-mesh { animation: none; }
.final-inner { position: relative; z-index: 2; max-width: 680px; }
.final-inner h2 { color: var(--navy); margin-bottom: 14px; }
