/* Homepage preview hero (/v2/ and /v3/). Loaded after the page's own styles, so it
   leans on the tokens in notes.css and on the live ledger-page rules (.page .t, .rows ...).
   The ledger layer is the .thero--ledger modifier; without it this is /v2/. */
.thero{overflow-x:clip;padding:var(--space-3) 0 var(--space-5);--h1:clamp(2.125rem,5.4vw,3.875rem)}
.thero--ledger{--h1:clamp(2.125rem,5vw,3.625rem)}
.thead{display:grid;gap:var(--space-2)}
.thero h1{font-size:var(--h1);line-height:1.04;letter-spacing:-.012em;max-width:16em;margin:0;text-wrap:pretty}
.thero .eyebrow{margin:0 0 14px}
.thero .sub{font-size:1.0625rem;line-height:1.5;color:var(--ink-2);max-width:36rem;margin:0 0 18px}
.thero .herofoot{gap:8px 24px}
.tbody{display:grid;gap:var(--space-3);margin-top:var(--space-4)}
.thero--ledger .tbody{margin-top:var(--space-5)}
@media (min-width:1240px){.thero--ledger .tbody{margin-top:var(--space-6)}}
.tstate{position:relative;display:flex;min-width:0}
.tcard{
  position:relative;z-index:1;flex:1;min-width:0;background:var(--sheet);border:1px solid var(--rule);
  padding:22px 26px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow);
}
.thero--ledger .tcard{box-shadow:0 24px 50px rgba(14,26,43,.14)}
.tcard .ttl{display:flex;justify-content:space-between;align-items:baseline;gap:4px 16px;flex-wrap:wrap}
.tcard .ttl b{font-weight:600;font-size:1rem;color:var(--ink)}
.tcard .ttl span{font-size:.8125rem;color:var(--muted)}
.tcard .tnote{margin:auto 0 0;padding-top:8px;font-size:.8125rem;color:var(--muted);max-width:none}
.thero--ledger .tcard .tnote{font-family:"EB Garamond",Georgia,serif;font-style:italic;font-size:1rem;color:var(--muted)}

/* the statement */
table.st{min-width:0;width:100%;border-collapse:collapse;table-layout:fixed;margin:0}
.st th,.st td{padding:0;font-weight:400;text-align:right;border:0;vertical-align:middle}
.st th:first-child{text-align:left;padding:2px 8px;color:var(--ink);width:29%}
.st thead th{font-size:.8125rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding-bottom:8px;border-bottom:1px solid var(--rule)}
.st tbody th,.st tfoot th{font-size:1rem}
.st tbody tr.is-sel{background:#EEF1FC}
.st tfoot tr{font-weight:600}
.st tfoot th{font-weight:600;border-top:1px solid var(--ink);padding-top:10px}
.st tfoot td{border-top:1px solid var(--ink);padding-top:10px}
.st tfoot .fig{font-weight:600}
.fig{
  font:inherit;font-size:.9375rem;font-variant-numeric:tabular-nums;color:var(--ink);
  background:transparent;border:0;border-bottom:1px dashed #7C8AB8;border-radius:0;
  padding:4px 2px;min-height:36px;min-width:32px;cursor:pointer;
}
.fig:hover{background:#E8ECFB}
.fig:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.fig[aria-pressed="true"]{background:#E6E9FB;border-bottom:2px solid var(--accent);font-weight:600}
.st tbody tr.is-sel .fig[aria-pressed="false"]{border-bottom-color:var(--accent)}

/* the ledger corner behind the statement (/v3/) */
.lcorner{
  position:absolute;z-index:0;left:-10px;top:-34px;width:min(470px,86%);height:290px;overflow:hidden;
  margin:0;max-width:none;transform:rotate(-3.5deg);transform-origin:top left;pointer-events:none;
  background:#EFE6D2;border:1px solid #D8CBAE;box-shadow:0 20px 40px rgba(14,26,43,.14);
  padding:16px 24px;font-family:"EB Garamond",Georgia,serif;color:#3A2A18;
  display:flex;flex-direction:column;gap:6px;font-variant-numeric:lining-nums tabular-nums;
}
.lcorner .t{font-size:.8125rem;letter-spacing:.2em;text-transform:uppercase;text-align:left}
.lcorner .rows{font-size:.9375rem;grid-template-columns:1fr 3.2em 2.4em 2.4em}

/* right column: the auditor's request, then the trace */
.tright{display:flex;flex-direction:column;gap:12px;min-width:0}
.treq{background:var(--sheet);border:1px solid var(--rule);padding:12px 16px;box-shadow:0 10px 24px rgba(14,26,43,.08)}
.treq .from{display:flex;gap:8px;align-items:center;font-size:.75rem;color:var(--muted);margin:0 0 4px;max-width:none}
.treq .from svg{width:14px;height:14px;flex:none}
.treq .ask{font-size:.9375rem;line-height:1.4;color:var(--ink);margin:0;max-width:none}
.tpanel{
  flex:1;background:var(--dark);color:var(--on-dark);padding:22px 26px;display:flex;flex-direction:column;gap:12px;
  scroll-margin-top:16px;
}
.tpanel .kick{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--on-dark-2);margin:0;max-width:none}
.tpanel .live{display:flex;flex-direction:column;gap:12px;flex:1}
.tpanel .head{display:flex;justify-content:space-between;align-items:baseline;gap:4px 16px;flex-wrap:wrap;
  padding-bottom:12px;border-bottom:1px solid #26344A}
.tpanel .lab{font-size:.875rem;color:#C9D1DE}
.tpanel .val{font-family:var(--display);font-size:clamp(1.75rem,3vw,2rem);font-variant-numeric:tabular-nums;line-height:1.1;color:#fff;white-space:nowrap}
.tpanel ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.tpanel li{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:12px;align-items:baseline;font-size:.875rem;margin:0}
.tpanel li .n{width:20px;height:20px;border:1px solid #3B4A63;display:flex;align-items:center;justify-content:center;font-size:.6875rem;color:#C9D1DE}
.tpanel li .t{color:#E3E8F0;line-height:1.35}
.tpanel li .a{font-variant-numeric:tabular-nums;color:#fff;text-align:right}
.tpanel .send{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:12px 16px;flex-wrap:wrap;padding-top:12px;border-top:1px solid #26344A}
.tpanel .hnote{font-size:.8125rem;color:var(--on-dark-2);line-height:1.4;margin:0;max-width:22rem}
.tpanel button.go{
  font:inherit;font-size:.9375rem;font-weight:500;background:var(--accent);color:#fff;border:0;border-radius:0;
  padding:12px 18px;min-height:44px;cursor:pointer;
}
.tpanel button.go:hover{background:var(--accent-deep)}
.tpanel button.go:focus-visible{outline:2px solid #9DB0FF;outline-offset:2px}

@media (min-width:1100px){
  .thead{grid-template-columns:minmax(0,1fr) 440px;gap:56px;align-items:end}
  .thero .sub{font-size:1.0625rem}
}
@media (min-width:1240px){
  .tbody{grid-template-columns:minmax(0,1fr) 520px;gap:32px}
  .thero--ledger .tbody{grid-template-columns:minmax(0,1fr) 500px}
  .thero--ledger .lcorner{left:-54px;top:-72px}
}

/* phones: each account becomes a block, three figures across */
@media (max-width:600px){
  .tcard{padding:16px 14px}
  table.st,.st tbody,.st tfoot{display:block}
  .st thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .st tbody tr,.st tfoot tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:4px;padding:6px 0}
  .st tbody tr{border-bottom:1px solid var(--rule-faint)}
  .st th:first-child{grid-column:1/-1;width:auto;padding:2px 0 0}
  .st td{text-align:left}
  .st td::before{content:attr(data-label);display:block;font-size:.6875rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
  .fig{font-size:.8125rem;padding:4px 0}
  .st tfoot tr{grid-template-columns:1fr;border-top:1px solid var(--ink);margin-top:4px}
  .st tfoot th,.st tfoot td{border-top:0;padding-top:0}
  .st tfoot td{display:flex;justify-content:space-between;align-items:center;gap:12px}
  .st tfoot td::before{font-size:.8125rem;letter-spacing:0;text-transform:none}
  .st tfoot .fig{font-size:.9375rem}
  .tpanel{padding:18px 16px}
  .lcorner{height:220px;left:-6px;top:-26px}
}

/* the page lands: ledger first, then the statement settles over it (about a second) */
@media (prefers-reduced-motion:no-preference){
  .thero--ledger .lcorner{animation:lin .45s ease-out both}
  .thero--ledger .tcard{animation:csettle .6s cubic-bezier(.2,.7,.2,1) .4s both}
}
@keyframes lin{from{opacity:0;transform:translateY(10px) rotate(-3.5deg)}}
@keyframes csettle{from{opacity:0;transform:translate(26px,20px)}}

/* /v4/: the category up front (#2145). A descriptor in the nav lockup and the eyebrow as the category. */
.lockup .ldiv{width:1px;height:20px;background:#C3C9D3;margin:0 4px;flex:none}
.lockup .ldesc{font-family:var(--sans,Inter,system-ui,sans-serif);font-size:14px;color:#3B4657;line-height:1.2;white-space:nowrap}
.thero .eyebrow--cat{color:var(--accent,#2338D9);font-weight:600;letter-spacing:0;text-transform:none;font-size:15px}
/* On phones the descriptor would wrap the nav, so it hides; the category eyebrow carries it. */
@media (max-width:860px){
  .lockup .ldiv,.lockup .ldesc{display:none}
}

/* /v5/: the trace panel takes the right column, with a larger value and a product footer (#2146). */
.tpanel--tall{flex:1}
.tpanel--tall .val{font-size:clamp(2rem,3.4vw,2.5rem)}
.tpanel .pfoot{margin:auto 0 0;padding-top:12px;border-top:1px solid #2C3A52;font-size:.8125rem;color:var(--on-dark-2,#A9B3C2);max-width:none}
