/* velto — shared styles for the landing page (light) and the Shield / Terminal pages (dark, body.theme-dark).
   The brand name lives in --brand; the wordmark is rendered from it, so a rename is a one-line change. */
:root {
  --brand: "velto";

  /* light (landing): cool off-white, deep navy ink, electric indigo accent */
  --bg: #f5f7fb;
  --bg-2: #eceff6;
  --paper: #ffffff;
  --ink: #0b1433;
  --ink-2: #33405f;
  --muted: #64708a;
  --dim: #9aa3b8;
  --line: #e2e6f0;
  --line-2: #d3d9e6;
  --accent: #5b5bff;
  --accent-ink: #3d3dd6;
  --accent-2: #8a8aff;
  --accent-soft: #e9e9ff;
  --accent-wash: #f4f4ff;
  --on-accent: #ffffff;
  --ok: #12965f;
  --ok-soft: #dcf3e8;
  --warn: #b7791f;
  --warn-soft: #fbefd6;
  --bad: #d63b4b;
  --bad-soft: #fbe3e6;
  --info: #2f6fd6;
  --info-soft: #e3ecfb;
  --term: #0a0c14;
  --term-2: #11141f;
  --term-line: #20243a;
  --term-text: #d6dbea;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 20, 51, .05), 0 14px 36px rgba(11, 20, 51, .08);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* dark (app pages): near-black, high-contrast white type, same indigo accent */
body.theme-dark {
  --bg: #07080d;
  --bg-2: #0f1119;
  --paper: #0d0f17;
  --ink: #f4f6fc;
  --ink-2: #c3c9da;
  --muted: #8890a6;
  --dim: #596079;
  --line: #1c2030;
  --line-2: #2a2f44;
  --accent: #6d6dff;
  --accent-ink: #a5a5ff;
  --accent-2: #8f8fff;
  --accent-soft: rgba(109, 109, 255, .16);
  --accent-wash: rgba(109, 109, 255, .08);
  --on-accent: #ffffff;
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, .13);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .13);
  --bad: #fb7185;
  --bad-soft: rgba(251, 113, 133, .14);
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, .14);
  --term: #090b12;
  --term-2: #10131d;
  --term-line: #1e2233;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); }
body { line-height: 1.55; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-decoration: none; }
code, pre, kbd { font-family: var(--mono); }
code { font-size: .88em; background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); } .accent { color: var(--accent-ink); }

/* ---------- brand */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.035em; color: var(--ink); }
.wordmark::after { content: var(--brand); }
.mark { width: 26px; height: 26px; flex: none; display: block; }
.mark { --mark-ink: var(--ink); }   /* custom property reaches into the <use> shadow tree */
.logo .sub-name { font-weight: 500; color: var(--muted); font-size: 15px; letter-spacing: -.01em; }

/* ---------- shared: status dot, live pill, buttons (landing + app pages) */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }
.dot.pulse { box-shadow: 0 0 0 0 rgba(18, 150, 95, .5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(18, 150, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 150, 95, 0); } }
/* ---------- buttons (pill) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 15px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; font-family: inherit; line-height: 1.2; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 8px 22px rgba(91, 91, 255, .32); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
body.theme-dark .btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ok); border: 1px solid transparent; background: var(--ok-soft); padding: 4px 10px; border-radius: 999px; }
.live-pill.off { color: var(--muted); background: var(--bg-2); border-color: var(--line); }
.live-pill.off .dot { background: var(--dim); animation: none; }

/* ---------- transaction card (used by the /shield case drawer) */
.txn { margin: 16px; border: 1px solid var(--line); background: var(--accent-wash); border-radius: 14px; padding: 14px 16px; transition: background .3s, border-color .3s; }
.txn.approved { background: var(--ok-soft); border-color: transparent; }
.txn.review { background: var(--warn-soft); border-color: transparent; }
.txn.rejected { background: var(--bad-soft); border-color: transparent; }
.txn-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.txn-id { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.txn-amt { font-family: var(--mono); font-weight: 700; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
.txn-route { margin: 6px 0 2px; font-weight: 600; font-size: 14px; }
.txn-meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.txn-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.txn-state { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.txn-lat { font-family: var(--mono); font-size: 22px; font-weight: 700; }
.txn-lat small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.txn-verdict { text-align: right; font-weight: 700; font-size: 15px; }
.txn-verdict small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.chip { white-space: nowrap; }

/* ---------- app bar (dark pages: /shield, /terminal) */
.appbar { position: sticky; top: 0; z-index: 30; background: rgba(7, 8, 13, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); flex: none; }
.appbar .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; padding: 0 24px; max-width: 1480px; margin: 0 auto; }
.tabs { display: flex; gap: 4px; font-size: 14px; font-weight: 600; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs a { padding: 7px 15px; border-radius: 999px; color: var(--muted); transition: color .15s, background .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--accent); color: #fff; }
.appbar .right { display: flex; align-items: center; gap: 10px; }

@media (max-width: 720px) {
  .appbar .in { padding: 0 12px; gap: 10px; }
  .tabs a { padding: 6px 10px; font-size: 13px; }
  .logo .sub-name { display: none; }
}
@media (max-width: 560px) {
  .appbar .hide-xs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =====================================================================
   /shield — Shield dashboard (dark)
   ===================================================================== */
.page-shield { min-height: 100vh; }
.page-shield main { max-width: 1480px; margin: 0 auto; padding: 22px 24px 60px; }
.page-shield .k6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.page-shield .k { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.page-shield .k .v { font-family: var(--mono); font-size: 26px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.page-shield .k .v small { font-size: 13px; color: var(--muted); font-weight: 400; }
.page-shield .layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.page-shield .col { display: grid; gap: 16px; }
.page-shield .box { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.page-shield .box-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.page-shield .box-h b { font-size: 14.5px; }
.page-shield .scroll { max-height: 560px; overflow-y: auto; }
.page-shield table { width: 100%; border-collapse: collapse; font-size: 13px; }
.page-shield th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); }
.page-shield td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.page-shield tr.new { animation: flash 1.2s ease; }
@keyframes flash { from { background: var(--accent-soft); } to { background: transparent; } }
.page-shield tr.click { cursor: pointer; } .page-shield tr.click:hover td { background: var(--bg-2); }
.page-shield .m { font-family: var(--mono); }
.page-shield .r { text-align: right; }
.page-shield .muted { color: var(--muted); }
.page-shield .badge { display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; }
.page-shield .b-approved { background: var(--ok-soft); color: var(--ok); } .page-shield .b-review { background: var(--warn-soft); color: var(--warn); } .page-shield .b-rejected { background: var(--bad-soft); color: var(--bad); }
.page-shield .b-open { background: var(--accent-soft); color: var(--accent-ink); } .page-shield .b-escalated { background: var(--info-soft); color: var(--info); }
.page-shield .b-confirmed { background: var(--bad-soft); color: var(--bad); } .page-shield .b-dismissed, .page-shield .b-resolved, .page-shield .b-expired { background: var(--bg-2); color: var(--muted); }
.page-shield .b-held { background: var(--warn-soft); color: var(--warn); } .page-shield .b-released { background: var(--ok-soft); color: var(--ok); }
.page-shield .score { display: inline-grid; place-items: center; width: 34px; height: 24px; border-radius: 8px; font-family: var(--mono); font-weight: 700; font-size: 12px; }
.page-shield .s-hi { background: var(--bad-soft); color: var(--bad); } .page-shield .s-mid { background: var(--warn-soft); color: var(--warn); } .page-shield .s-lo { background: var(--ok-soft); color: var(--ok); }
.page-shield .case-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.page-shield .case-row:hover, .page-shield .case-row.sel { background: var(--accent-wash); }
.page-shield .case-row .t { font-weight: 700; font-size: 13.5px; }
.page-shield .case-row .s { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.page-shield .pad { padding: 14px 16px; }
.page-shield form.row { display: grid; grid-template-columns: 1fr 110px 90px auto; gap: 8px; }
.page-shield input, .page-shield select { font: inherit; font-size: 13.5px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); min-width: 0; }
.page-shield input::placeholder { color: var(--dim); }
.page-shield input:focus, .page-shield select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.page-shield .result { margin-top: 10px; font-size: 13px; }
.page-shield .rules { display: grid; gap: 2px; }
.page-shield .rule { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.page-shield .rule:last-child { border-bottom: 0; }
.page-shield .rule small { display: block; color: var(--muted); font-size: 12px; }
.page-shield .sw { position: relative; width: 34px; height: 20px; flex: none; }
.page-shield .sw input { opacity: 0; width: 0; height: 0; padding: 0; border: 0; }
.page-shield .sw span { position: absolute; inset: 0; background: var(--line-2); border-radius: 20px; cursor: pointer; transition: .2s; }
.page-shield .sw span::before { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.page-shield .sw input:checked + span { background: var(--accent); } .page-shield .sw input:checked + span::before { transform: translateX(14px); }
.page-shield .sw input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.page-shield .lists { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.page-shield .lists div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.page-shield .lists b { font-family: var(--mono); font-size: 18px; display: block; }
.page-shield .audit div { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.page-shield .audit div:last-child { border-bottom: 0; }

/* case drawer */
.page-shield .drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(580px, 100vw); background: var(--paper); border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(0, 0, 0, .5); z-index: 50; transform: translateX(100%); transition: transform .25s ease, visibility 0s linear .25s; display: flex; flex-direction: column; visibility: hidden; }
.page-shield .drawer.open { transform: none; visibility: visible; transition: transform .25s ease; }
.page-shield .drawer-h { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.page-shield .drawer-b { overflow-y: auto; padding: 18px 20px 28px; flex: 1; }
.page-shield .x { border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; flex: none; }
.page-shield .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13px; margin: 6px 0 18px; }
.page-shield .grid2 span { color: var(--muted); display: block; font-size: 11.5px; }
.page-shield .why { padding: 10px 0; border-bottom: 1px dashed var(--line); display: grid; grid-template-columns: 46px 1fr; gap: 8px; font-size: 13px; }
.page-shield .why small { display: block; color: var(--muted); }
.page-shield .hold { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; border: 1px solid transparent; color: var(--ink-2); }
.page-shield .hold.held { background: var(--warn-soft); border-color: rgba(251, 191, 36, .25); }
.page-shield .hold.released { background: var(--ok-soft); border-color: rgba(52, 211, 153, .25); }
.page-shield .hold.blocked { background: var(--bad-soft); border-color: rgba(251, 113, 133, .25); }
.page-shield .hold b { display: block; font-size: 13.5px; margin-bottom: 2px; color: var(--ink); }
.page-shield .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0; }
.page-shield .ai-box { margin-top: 10px; border: 1px solid var(--accent-soft); background: var(--accent-wash); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.page-shield .ai-box strong { font-weight: 700; } .page-shield .ai-box code { background: var(--bg); }
.page-shield .ai-box .tool { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.page-shield .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.page-shield .scrim.open { opacity: 1; pointer-events: auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; z-index: 60; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; }
@media (max-width: 1180px) { .page-shield .k6 { grid-template-columns: repeat(3, 1fr); } .page-shield .layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .page-shield .k6 { grid-template-columns: 1fr 1fr; } .page-shield main { padding: 16px; }
  .page-shield form.row { grid-template-columns: 1fr 1fr; } .page-shield .lists { grid-template-columns: 1fr 1fr; } .page-shield .hide-sm { display: none; }
}

/* =====================================================================
   /terminal — terminal (dark)
   ===================================================================== */
html:has(body.page-terminal) { height: 100%; }
.page-terminal { height: 100%; min-height: 100vh; display: flex; flex-direction: column; }
.page-terminal .status { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.page-terminal .pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); white-space: nowrap; }
.page-terminal .pill .dot { background: var(--dim); }
.page-terminal .pill.on .dot { background: var(--ok); }
.page-terminal .pill.off .dot { background: var(--warn); }
.page-terminal .chips { display: flex; gap: 8px; padding: 12px 24px; overflow-x: auto; flex: none; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.page-terminal .chips::-webkit-scrollbar { display: none; }
.page-terminal .chips .chip { flex: none; font-family: var(--mono); font-size: 12px; font-weight: 500; padding: 7px 13px; border-radius: 999px; cursor: pointer; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); }
.page-terminal .chips .chip:hover { border-color: var(--line-2); color: var(--ink); }
.page-terminal .chips .chip.star { color: var(--accent-ink); background: var(--accent-wash); border-color: var(--accent-soft); font-weight: 700; }
.page-terminal .shell { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 16px 24px 20px; border-radius: 20px; overflow: hidden; background: var(--term); border: 1px solid var(--term-line); box-shadow: var(--shadow); }
.page-terminal #screen { flex: 1; overflow-y: auto; padding: 18px 20px 8px; font-family: var(--mono); font-size: 13.5px; line-height: 1.55; color: var(--term-text); }
.page-terminal #screen .blk { white-space: pre-wrap; word-break: break-word; margin: 0 0 10px; }
.page-terminal .cmdline { color: #eef1fa; } .page-terminal .cmdline .p { color: var(--accent-ink); }
.page-terminal .out { color: var(--term-text); }
.page-terminal .sys { color: #8a93ab; }
.page-terminal .err { color: var(--bad); }
.page-terminal .toolcall { color: #7d86a0; margin: 0 0 2px !important; }
.page-terminal .toolcall b { color: #8fb8ff; font-weight: 600; }
.page-terminal details.toolout { margin: 0 0 8px; color: #7d86a0; }
.page-terminal details.toolout summary { cursor: pointer; font-size: 12px; list-style: none; }
.page-terminal details.toolout summary::before { content: "▸ "; } .page-terminal details.toolout[open] summary::before { content: "▾ "; }
.page-terminal details.toolout pre { margin: 6px 0 0; padding: 10px 12px; background: var(--term-2); border: 1px solid var(--term-line); border-radius: 10px; color: #b8bfd4; white-space: pre; overflow-x: auto; font-size: 12px; }
.page-terminal .ai { color: #eef1fa; font-family: var(--sans); font-size: 14.5px; line-height: 1.6; border-left: 2px solid var(--accent); padding-left: 14px; }
.page-terminal .ai strong { color: #fff; } .page-terminal .ai code { font-family: var(--mono); font-size: 12.5px; background: var(--term-2); border: 0; padding: 1px 6px; border-radius: 5px; color: var(--accent-ink); }
.page-terminal .ai .h { font-weight: 700; color: #fff; display: block; margin-top: 6px; }
.page-terminal .ai pre.tbl { font-family: var(--mono); font-size: 12.5px; white-space: pre; overflow-x: auto; margin: 4px 0; color: var(--term-text); }
.page-terminal .ai a { color: #8fb8ff; text-decoration: underline; }
.page-terminal .spin { color: #8a93ab; }
.page-terminal .spin::before { content: "⠋"; display: inline-block; margin-right: 8px; color: var(--accent); animation: spin 1s steps(10) infinite; }
@keyframes spin { 0%{content:"⠋"}10%{content:"⠙"}20%{content:"⠹"}30%{content:"⠸"}40%{content:"⠼"}50%{content:"⠴"}60%{content:"⠦"}70%{content:"⠧"}80%{content:"⠇"}90%{content:"⠏"} }
.page-terminal .order { border: 1px solid rgba(109, 109, 255, .45); background: var(--accent-wash); border-radius: 14px; padding: 12px 14px; margin: 4px 0 12px; }
.page-terminal .order pre { margin: 0 0 10px; white-space: pre-wrap; color: #eef1fa; }
.page-terminal .order .q { color: var(--accent-ink); margin-bottom: 10px; display: block; }
.page-terminal .order .btns { display: flex; gap: 10px; }
.page-terminal .order button { font-family: var(--mono); font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 999px; cursor: pointer; border: 1px solid var(--term-line); background: var(--term-2); color: #eef1fa; }
.page-terminal .order button.go { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-terminal .order button:disabled { opacity: .45; cursor: default; }
.page-terminal .prompt { display: flex; align-items: center; gap: 10px; padding: 13px 20px 15px; background: var(--term-2); border-top: 1px solid var(--term-line); flex: none; font-family: var(--mono); }
.page-terminal .prompt .p { color: var(--accent-ink); font-size: 14px; white-space: nowrap; }
.page-terminal .prompt input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #eef1fa; font-family: var(--mono); font-size: 14.5px; caret-color: var(--accent); }
.page-terminal .prompt input::placeholder { color: #5b637c; }
.page-terminal .prompt .hint { color: #5b637c; font-size: 11.5px; white-space: nowrap; }
@media (max-width: 720px) {
  .page-terminal .prompt .hint, .page-terminal .status .model { display: none; }
  .page-terminal .shell { margin: 10px; } .page-terminal #screen { font-size: 12px; padding: 14px 12px 6px; }
  .page-terminal .prompt { padding: 10px 12px 14px; } .page-terminal .chips { padding-left: 12px; padding-right: 12px; }
}

/* Shield swap cases (on-chain Shield gate): nothing is held, so no hold/release styling */
.page-shield .b-swap { background: var(--accent-soft); color: var(--accent-ink); }
.page-shield .hold.info { background: var(--accent-wash); border-color: var(--accent-soft); }

/* Responsive app bar (/shield, /terminal): logo + status on row one, tabs scroll on row two */
.appbar .in > * { min-width: 0; }
.tabs a { white-space: nowrap; }
@media (max-width: 720px) {
  .appbar .in { flex-wrap: wrap; height: auto; padding: 8px 12px; row-gap: 8px; column-gap: 10px; }
  .appbar .in > .logo { order: 1; flex: 0 1 auto; }
  .appbar .in > .right, .appbar .in > .status { order: 2; margin-left: auto; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; }
  .appbar .in > .tabs { order: 3; flex: 1 1 100%; max-width: 100%; overflow-x: auto; scrollbar-width: none; justify-content: space-between; }
  .appbar .in > .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; }
}
@media (max-width: 420px) {
  .page-terminal .status .pill { padding: 4px 9px; }
}

/* /terminal swap preview card (Claude propose_swap) */
.page-terminal .swapcard .sw-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; color: #eef1fa; }
.page-terminal .swapcard .sv { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor; }
.page-terminal .swapcard .sv-pass { color: var(--ok); } .page-terminal .swapcard .sv-warn { color: var(--warn); } .page-terminal .swapcard .sv-block { color: var(--bad); }
.page-terminal .swapcard.v-warn { border-color: rgba(251, 191, 36, .45); }
.page-terminal .swapcard.v-block { border-color: rgba(251, 113, 133, .5); background: rgba(251, 113, 133, .06); }
.page-terminal .swapcard .sw-flags { margin: 0 0 10px; font-size: 12.5px; }
.page-terminal .swapcard .f-warn { color: var(--warn); } .page-terminal .swapcard .f-block { color: var(--bad); }
.page-terminal .swapcard .sw-ack { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #eef1fa; font-size: 12.5px; cursor: pointer; }
.page-terminal .swapcard .sw-ack input { accent-color: var(--accent); }
.page-terminal .order a.go { display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 999px; background: var(--accent); color: #fff; border: 1px solid var(--accent); text-decoration: none; }

/* halftone footer: undo the generic footer rules above */
footer.hwf-root { padding: 0; color: var(--hwf-ink); font-size: inherit; }
footer.hwf-root nav { display: block; }
footer.hwf-root a:hover { color: inherit; }



/* =====================================================================
   Cross-page morph (/, /shield, /terminal; /app joins through app.css).
   Same-origin navigations cross-fade the page while the logo, the main nav and the
   primary action morph from their old position and size into the new one.
   Each name is used once per page.
   ===================================================================== */
@view-transition { navigation: auto; }
.lp-nav .logo, .appbar .logo { view-transition-name: velto-logo; }
.lp-pills, .appbar .tabs { view-transition-name: velto-nav; }
.lp-nav-cta, .appbar .right, .appbar .status { view-transition-name: velto-cta; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .75, .1, 1); }
::view-transition-old(root) { animation: velto-vt-out .3s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: velto-vt-in .55s cubic-bezier(.2, .75, .1, 1) both; }
::view-transition-old(velto-nav), ::view-transition-new(velto-nav),
::view-transition-old(velto-cta), ::view-transition-new(velto-cta) { height: 100%; object-fit: fill; }
@keyframes velto-vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes velto-vt-in { from { opacity: 0; transform: scale(1.012); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* =====================================================================
   / — landing (body.landing). Same design language as /app (shadcn/ui, zinc):
   #09090b canvas, #27272a hairlines, #18181b hover, white primary buttons, outline secondaries,
   6-8px radii, Inter at normal weights. No gradients, glows, blur or display-thin type.
   Green / red / amber appear only for live decision states and price changes.
   Every rule is scoped to body.landing or to .lp-/.sw- classes used only by index.html
   (the .sw card is scoped to body.landing because /shield has its own .sw toggle).
   ===================================================================== */
html:has(body.landing) { background: #09090b; color-scheme: dark; }
body.landing {
  --bg: #09090b;
  --bg-2: #0c0c0e;
  --paper: #09090b;
  --card: #0c0c0e;
  --hover: #18181b;
  --accent-bg: #27272a;
  --ink: #fafafa;
  --ink-2: #d4d4d8;
  --muted: #a1a1aa;
  --dim: #52525b;
  --line: #27272a;
  --line-2: #3f3f46;
  --ring: #d4d4d8;
  --accent: #fafafa;
  --accent-ink: #fafafa;
  --ok: #22c55e;   --ok-soft: rgba(34, 197, 94, .1);
  --warn: #eab308; --warn-soft: rgba(234, 179, 8, .1);
  --bad: #f87171;  --bad-soft: rgba(239, 68, 68, .1);
  --r: 8px;
  --r-sm: 6px;
  --shadow: none;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  letter-spacing: -.006em;
  overflow-x: clip;
  color-scheme: dark;
}
body.landing ::selection { background: #3f3f46; color: #fafafa; }
body.landing h1, body.landing h2, body.landing h3, body.landing h4 { letter-spacing: -.02em; }
body.landing code { font-size: .86em; background: var(--hover); border: 1px solid var(--line); color: var(--ink-2); padding: 1px 6px; border-radius: 4px; }
body.landing :focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--r-sm); }
body.landing .mark { --mark-ink: var(--ink); }
body.landing .logo { font-weight: 700; font-size: 18px; letter-spacing: -.04em; gap: 8px; }
body.landing .logo .mark { width: 22px; height: 22px; }
body.landing .ok { color: var(--ok); } body.landing .warn { color: var(--warn); } body.landing .bad { color: var(--bad); }
body.landing .accent { color: var(--ink); }
body.landing .dot { width: 6px; height: 6px; background: var(--ok); }
body.landing .dot.pulse { animation: lp-blinkdot 2s ease-in-out infinite; box-shadow: none; }
@keyframes lp-blinkdot { 50% { opacity: .35; } }
.lp-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: #fafafa; color: #09090b; padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.lp-skip:focus { top: 12px; }

/* ---------- buttons, badges (as in /app) */
body.landing .btn { height: 40px; padding: 0 16px; gap: 6px; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--accent-bg); color: var(--ink);
  font-size: 14px; font-weight: 500; letter-spacing: -.006em; box-shadow: none; transform: none; transition: background-color .15s, border-color .15s, color .15s; }
body.landing .btn:hover { transform: none; box-shadow: none; background: #3f3f46; }
body.landing .btn-sm { height: 36px; padding: 0 12px; font-size: 14px; }
body.landing .btn-primary { background: #fafafa; border-color: #fafafa; color: #09090b; box-shadow: none; }
body.landing .btn-primary:hover { background: #e4e4e7; border-color: #e4e4e7; }
body.landing .btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
body.landing .btn-outline:hover { background: var(--hover); }
body.landing .live-pill { height: 22px; padding: 0 8px; gap: 6px; border-radius: var(--r-sm); background: transparent; border: 1px solid rgba(34, 197, 94, .35); color: var(--ok);
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
body.landing .live-pill.off { color: var(--muted); border-color: var(--line); background: transparent; }
.lp-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); background: transparent;
  color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 1; }
.lp-verdict { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 1; }
.lp-verdict.is-ok { color: var(--ok); border-color: rgba(34, 197, 94, .35); }
.lp-verdict.is-warn { color: var(--warn); border-color: rgba(234, 179, 8, .35); }
.lp-verdict.is-bad { color: var(--bad); border-color: rgba(239, 68, 68, .4); }

/* ---------- layout primitives */
.lp-main { display: block; }
body.landing .lp-wrap { max-width: 1168px; margin: 0 auto; padding: 0 24px; }
.lp-center { text-align: center; }
.lp-center .lp-sub { margin-left: auto; margin-right: auto; }
.lp-sec { padding: clamp(64px, 8vw, 96px) 0; border-top: 1px solid var(--line); scroll-margin-top: 8px; }
.lp-sec-tight { padding-top: clamp(56px, 6vw, 80px); }
.lp-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.lp-h2 { margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.lp-sub { max-width: 40em; margin: 0 0 40px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.lp-muted { color: var(--muted); }
.lp-fine { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.lp-cap { font-size: 12px; font-weight: 500; color: var(--muted); margin: 0 0 6px; }
.lp-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.lp-cta.is-left { justify-content: flex-start; margin-top: 32px; }

/* card shell shared by panels, cards, roles, pillars, steps, products */
.lp-panel, .lp-card, .lp-uc, .lp-role, .lp-pillar, .lp-steps > li, .lp-product, .lp-bens, .lp-cmp, .lp-kpis, .lp-ctaframe, .lp-term {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.lp-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lp-panel-head b { display: block; font-weight: 600; font-size: 14px; }
.lp-panel-head small { display: block; font-size: 12.5px; color: var(--muted); }
.lp-card .ico, .lp-role .ico, .lp-pillar .ico { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink); background: transparent; border: 1px solid var(--line); }
.lp-card .ico svg, .lp-role .ico svg, .lp-pillar .ico svg { width: 18px; height: 18px; }

/* ---------- HERO: nav + headline over the interactive halftone wordmark */
body.landing .lp-hero { position: relative; display: flex; flex-direction: column; margin: 0; border-bottom: 1px solid var(--line);
  height: min(92vh, 880px); min-height: 600px; color: var(--ink); background: var(--bg); overflow: hidden; isolation: isolate; }
@supports (height: 100svh) { body.landing .lp-hero { height: min(92svh, 880px); } }
body.landing .lp-hero > canvas { z-index: 0; }
.lp-hero .lp-head { position: relative; z-index: 2; }
/* sticky nav: lives before the hero and overlaps its top (the hero pulls itself up by the nav height),
   transparent over the hero, a blurred surface once scrolled, and a hairline once past the hero.
   --lp-nav-h is measured by /landing.js; the defaults below match the real heights. */
html:has(body.landing) { --lp-nav-h: 61px; scroll-padding-top: calc(var(--lp-nav-h) + 8px); }
body.landing > .lp-nav { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; background: rgba(9, 9, 11, 0);
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease; }
body.landing > .lp-nav.is-scrolled { background: rgba(9, 9, 11, .72); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
body.landing > .lp-nav.is-past { background: rgba(9, 9, 11, .86); border-bottom-color: var(--line); }
body.landing .lp-hero { margin-top: calc(-1 * var(--lp-nav-h)); padding-top: var(--lp-nav-h); }
/* thin scroll progress bar */
.lp-progress { position: fixed; z-index: 60; left: 0; top: 0; width: 100%; height: 2px; background: #fafafa; opacity: .9;
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; will-change: transform; }
@supports (animation-timeline: scroll()) {
  .lp-progress { animation: lp-progress linear both; animation-timeline: scroll(root block); }
}
@keyframes lp-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lp-nav-in { max-width: 1168px; margin: 0 auto; height: 60px; padding: 0 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.lp-pills { position: relative; display: flex; gap: 2px; }
.lp-pills a { position: relative; z-index: 1; height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .15s, background-color .15s; }
.lp-pills a:hover, .lp-pills a.is-on { color: var(--ink); }
.lp-pills a:hover { background: var(--hover); }
.lp-pills.has-ind a:hover { background: transparent; }
.lp-ind { position: absolute; z-index: 0; left: 0; top: 0; height: 100%; width: 100%; background: var(--hover); pointer-events: none; opacity: 0;
  clip-path: inset(var(--it, 0px) var(--ir, 100%) var(--ib, 0px) var(--il, 0px) round 6px);
  transition: clip-path .35s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.lp-pills.has-ind .lp-ind { opacity: 1; }
.lp-actions { justify-self: end; display: flex; gap: 8px; align-items: center; }

.lp-head { text-align: center; padding: clamp(40px, 8vh, 88px) 20px 0; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 28px; margin: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); font-size: 13px; font-weight: 500; color: var(--ink-2); }
body.landing .lp-eyebrow .dot { background: #a1a1aa; animation: none; }
.lp-h1 { margin: 20px auto 16px; max-width: 16em; font-weight: 700; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.lp-h1 .w { display: inline-block; animation: lp-fade .7s cubic-bezier(.2, .7, .1, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
.lp-lead { max-width: 34em; margin: 0 auto; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.6; color: var(--muted); animation: lp-fade .7s .35s both; }
.lp-head .lp-cta { animation: lp-fade .7s .45s both; }
.lp-hint { margin: 16px 0 0; font-size: 12px; color: var(--muted); pointer-events: none; animation: lp-fade .7s .6s both; }
@media (hover: none) { .lp-hint { display: none; } }
@keyframes lp-fade { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }

/* ---------- INTRODUCTION */
.lp-intro { border-top: 0; }
.lp-intro > .lp-wrap > .lp-center { margin-bottom: clamp(24px, 4vw, 40px); }
.lp-ix { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.lp-ix-head { position: sticky; top: calc(var(--lp-nav-h, 0px) + 24px); align-self: start; }
.lp-ix-n { display: inline-grid; place-items: center; height: 22px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.lp-ix-head h3 { margin: 12px 0 4px; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; color: var(--ink); }
.lp-ix-head p { margin: 0; color: var(--muted); font-size: 14px; }
.lp-ix-body { min-width: 0; }
.lp-what { margin: 0; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.7; font-weight: 400; color: var(--muted); }
.lp-what b { font-weight: 600; color: var(--ink); }

.lp-fns, .lp-bens, .lp-advs { list-style: none; margin: 0; padding: 0; }
.lp-fns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-fns > li:last-child { grid-column: 1 / -1; }
.lp-card { position: relative; padding: 20px; }
.lp-card .num { position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.lp-card h4 { margin: 14px 0 4px; font-size: 15px; font-weight: 600; }
.lp-card p { margin: 0; color: var(--muted); font-size: 14px; }

.lp-ucs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-uc:first-child { grid-column: 1 / -1; }
.lp-uc { position: relative; padding: 20px; }
.lp-uc-who { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--accent-bg); font-size: 12px; font-weight: 500; color: var(--ink); }
.lp-uc h4 { margin: 12px 0 4px; font-size: 16px; font-weight: 600; }
.lp-uc p { margin: 0; color: var(--muted); font-size: 14px; }

.lp-bens { display: grid; overflow: hidden; }
.lp-bens li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.lp-bens li:first-child { border-top: 0; }
.lp-bens svg { width: 36px; height: 36px; padding: 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink); }
.lp-bens b { display: block; font-size: 15px; font-weight: 600; }
.lp-bens span { color: var(--muted); font-size: 14px; }

/* check lists (advantages, Shield and terminal checks): lucide check in a hairline square */
.lp-advs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.lp-advs li, .lp-checks div { position: relative; padding-left: 30px; min-width: 0; }
.lp-advs li::before, .lp-checks div::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3 6.8 11 12 5.2' fill='none' stroke='%23fafafa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.lp-advs b, .lp-checks b { display: block; font-size: 15px; font-weight: 600; }
.lp-advs span, .lp-checks span { color: var(--muted); font-size: 14px; }
.lp-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }

/* comparison table, styled like shadcn Table */
.lp-cmp { margin-top: 32px; overflow-x: auto; }
.lp-cmp table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lp-cmp caption { text-align: left; padding: 16px 16px 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.lp-cmp th, .lp-cmp td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.lp-cmp thead th { padding-top: 10px; padding-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.lp-cmp thead th.is-v { color: var(--ink); }
.lp-cmp thead .mark { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.lp-cmp tbody tr { transition: background-color .15s; }
.lp-cmp tbody tr:hover { background: rgba(24, 24, 27, .6); }
.lp-cmp tbody th { font-weight: 500; color: var(--ink); width: 30%; }
.lp-cmp td { color: var(--muted); width: 35%; }
.lp-cmp td.is-v { color: var(--ink); }
.lp-cmp i { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; border-radius: 4px; }
.lp-cmp i.y { background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3 6.8 11 12 5.2' fill='none' stroke='%2309090b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.lp-cmp i.n { border: 1px solid var(--line-2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 8h6' stroke='%23a1a1aa' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.lp-cmp .lp-fine { padding: 0 16px 16px; }

/* ---------- LIVE Shield */
.lp-livehead { text-align: center; }
.lp-livehead .lp-h2 { margin-bottom: 0; }
.lp-stage { margin-top: 40px; }
.lp-note { max-width: 1168px; margin: 12px auto 0; padding: 0 24px; text-align: center; font-size: 13px; color: var(--muted); }
body.landing .sw { position: relative; max-width: 880px; margin: 0 auto; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
body.landing .sw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 14px; }
body.landing .sw-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
body.landing .sw-badge { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); }
body.landing .sw-badge .mark { width: 18px; height: 18px; }
body.landing .sw-id h3 { margin: 0; font-size: 15px; font-weight: 600; }
body.landing .sw-id p { margin: 0; font-size: 13px; color: var(--muted); }
body.landing .sw-head-r { display: flex; align-items: center; gap: 8px; flex: none; }
body.landing .sw-open { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; font-size: 13px; font-weight: 500; color: var(--ink); border-radius: 6px; border: 1px solid var(--line); transition: background-color .15s; }
body.landing .sw-open:hover { background: var(--hover); }
body.landing .sw-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 12px; }
body.landing .sw-now { --tone: var(--ink-2); position: relative; padding: 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); transition: border-color .3s; }
body.landing .sw-now.is-approved { --tone: var(--ok); border-color: rgba(34, 197, 94, .35); }
body.landing .sw-now.is-review { --tone: var(--warn); border-color: rgba(234, 179, 8, .35); }
body.landing .sw-now.is-rejected { --tone: var(--bad); border-color: rgba(239, 68, 68, .4); }
body.landing .sw-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
body.landing .sw-txid { font-family: var(--mono); font-size: 11.5px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.landing .sw-amt { font-family: var(--mono); font-weight: 600; font-size: 20px; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.landing .sw-route { margin: 8px 0 2px; font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
body.landing .sw-route .mono { font-size: 13px; }
body.landing .sw-arrow { color: var(--muted); }
body.landing .sw-meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
body.landing .sw-scan { height: 2px; margin: 14px 0 12px; border-radius: 2px; background: var(--line); overflow: hidden; }
body.landing .sw-scan i { display: block; height: 100%; background: var(--tone); transform-origin: left; transform: scaleX(1); }
body.landing .sw-now.is-scanning .sw-scan i { animation: sw-scan .65s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes sw-scan { from { transform: scaleX(0); } to { transform: scaleX(1); } }
body.landing .sw-decide { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
body.landing .sw-state { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
body.landing .sw-lat { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
body.landing .sw-lat small { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
body.landing .sw-cap { font-size: 12px; color: var(--muted); }
body.landing .sw-verdict { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }
body.landing .sw-verdict b { font-weight: 500; font-size: 13px; color: var(--ink); }
body.landing .sw-verdict small { font-size: 12px; color: var(--muted); max-width: 24ch; overflow-wrap: anywhere; }
body.landing .sw-eval { font-size: 12.5px; color: var(--muted); }
body.landing .sw-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; white-space: nowrap; }
body.landing .sw-pill.is-ok { color: var(--ok); border-color: rgba(34, 197, 94, .35); }
body.landing .sw-pill.is-warn { color: var(--warn); border-color: rgba(234, 179, 8, .35); }
body.landing .sw-pill.is-bad { color: var(--bad); border-color: rgba(239, 68, 68, .4); }
body.landing .sw-pill.is-accent { color: var(--ink); }
body.landing .sw-log { padding: 12px 14px 6px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); min-width: 0; }
body.landing .sw-cap-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
body.landing .sw-empty { padding: 18px 0; font-size: 13px; color: var(--muted); }
body.landing .sw-logrow { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; animation: sw-in .35s ease both; }
body.landing .sw-logrow:first-child { border-top: 0; }
body.landing .sw-who { min-width: 0; }
body.landing .sw-who b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.landing .sw-who small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.landing .sw-lamt { text-align: right; font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.landing .sw-lamt small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 500; }
body.landing .sw-lamt small.accent { color: var(--muted); }
@keyframes sw-in { from { opacity: 0; transform: translate3d(0, -4px, 0); } to { opacity: 1; transform: none; } }
body.landing .sw-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--muted); }
body.landing .sw-dot.is-ok { background: var(--ok); } body.landing .sw-dot.is-warn { background: var(--warn); } body.landing .sw-dot.is-bad { background: #ef4444; }
body.landing .sw-foot { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: stretch; }
body.landing .sw-latbox { padding: 12px 14px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
body.landing .sw-bars { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
body.landing .sw-bars i { flex: 1; min-height: 3px; border-radius: 2px 2px 0 0; background: #3f3f46; transition: height .4s ease; }
body.landing .sw-bars i:last-child { background: #fafafa; }
body.landing .sw-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
body.landing .sw-counts > div { padding: 12px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); min-width: 0; }
body.landing .sw-counts dt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
body.landing .sw-counts dd { margin: 4px 0 0; font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }

/* KPIs + product duo */
.lp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); overflow: hidden; }
.lp-kpi { padding: 20px; border-left: 1px solid var(--line); min-width: 0; }
.lp-kpi:first-child { border-left: 0; }
.lp-kpi .v { font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-kpi .v small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 3px; letter-spacing: 0; }
.lp-kpi .t { font-weight: 500; font-size: 14px; margin-top: 6px; }
.lp-kpi .d { color: var(--muted); font-size: 13px; }
.lp-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.lp-product { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.lp-product .p-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-product .p-name { font-size: 13px; font-weight: 500; color: var(--muted); }
.lp-product h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.25; }
.lp-product p { margin: 0; color: var(--muted); font-size: 14px; }
.lp-product .p-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.lp-product .go { margin-top: 6px; font-weight: 500; font-size: 14px; }

/* ---------- split layouts: Shield, Trade, Time Machine, Terminal */
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); align-items: center; }
.lp-split.is-rev > :first-child { order: 2; }

.lp-case-body { padding: 16px; }
.lp-case-tx { padding: 14px; margin-bottom: 14px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid rgba(239, 68, 68, .35); }
.lp-case-line { margin-top: 6px; font-size: 14px; font-weight: 500; }
.lp-case-line .mono { font-size: 13px; }
.lp-rule { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.lp-claude { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.lp-claude b { font-weight: 600; color: var(--ink); }

/* detection rules marquee: outline badges */
.lp-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-marquee + .lp-marquee { margin-top: 10px; }
.lp-track { display: flex; gap: 8px; width: max-content; animation: lp-scroll 80s linear infinite; }
.lp-marquee.is-rev .lp-track { animation-direction: reverse; }
.lp-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--ink-2); }
@keyframes lp-scroll { to { transform: translate3d(-50%, 0, 0); } }

/* chain chips (Trade section) */
body.landing .chains { display: flex; flex-wrap: wrap; gap: 6px; }
body.landing .chain { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); font-weight: 500; font-size: 13px; color: var(--ink); }
body.landing .chain img { width: 20px; height: 20px; border-radius: 50%; flex: none; }
body.landing .chain i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 8.5px; font-weight: 600; color: var(--ink); background: var(--accent-bg); }
body.landing .chain small { font-size: 11px; color: var(--muted); font-weight: 500; }
body.landing .chain.is-feat { border-color: var(--line-2); background: var(--hover); }
body.landing .chain.more { padding: 0 10px; color: var(--muted); background: transparent; border-style: dashed; transition: color .15s, background-color .15s; }
body.landing .chain.more:hover { color: var(--ink); background: var(--hover); }

/* swap flow */
.lp-flow { list-style: none; margin: 0; padding: 8px; display: grid; gap: 0; }
.lp-flow li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 8px; border-top: 1px solid var(--line); }
.lp-flow li:first-child { border-top: 0; }
.lp-flow .n { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 500; border: 1px solid var(--line); color: var(--ink); }
.lp-flow b { display: block; font-size: 14px; font-weight: 600; }
.lp-flow li > div > span { color: var(--muted); font-size: 13px; }
.lp-flow li.is-gate { background: var(--hover); border-radius: 6px; border-top-color: transparent; }
.lp-flow li.is-gate + li { border-top-color: transparent; }
.lp-flow li.is-gate .n { background: #fafafa; border-color: #fafafa; color: #09090b; }
.lp-verdicts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

/* copilot roles */
.lp-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.lp-role { position: relative; padding: 20px; }
.lp-role .num { position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.lp-role h3 { margin: 14px 0 4px; font-size: 15px; font-weight: 600; }
.lp-role p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
body.landing .lp-role code { overflow-wrap: anywhere; }
.lp-role.is-wide { grid-column: span 2; }

/* time machine */
.lp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lp-stats > div { padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.lp-stats .v { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.lp-stats .l { font-size: 13px; color: var(--muted); }
.lp-tm { padding: 16px; }
.lp-tm svg { width: 100%; height: auto; display: block; }
.lp-tm-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* security model */
.lp-soft { background: var(--bg-2); }
.lp-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-pillar { position: relative; padding: 20px; background: var(--bg); }
.lp-pillar h3 { margin: 14px 0 4px; font-size: 15px; font-weight: 600; }
.lp-pillar p { margin: 0; color: var(--muted); font-size: 14px; }

/* terminal sample */
.lp-term { overflow: hidden; font-family: var(--mono); font-size: 13px; }
.lp-term-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.lp-term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-bg); }
.lp-term-bar span { margin-left: 8px; color: var(--muted); font-size: 12px; }
.lp-term-body { height: 360px; overflow: hidden; padding: 16px 18px; white-space: pre-wrap; word-break: break-word; line-height: 1.6; color: var(--ink-2); }
body.landing .t-p { color: var(--muted); } body.landing .t-c { color: #fafafa; } body.landing .t-m { color: var(--muted); }
body.landing .t-w { color: var(--warn); } body.landing .t-g { color: var(--ok); } body.landing .t-r { color: var(--bad); } body.landing .t-b { color: #fafafa; font-weight: 600; }
body.landing .caret { display: inline-block; width: 8px; height: 15px; background: #d4d4d8; vertical-align: -2px; animation: lp-blink 1s steps(1) infinite; }
@keyframes lp-blink { 50% { opacity: 0; } }

/* get started */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.lp-steps li { position: relative; padding: 20px; }
.lp-steps li::before { counter-increment: s; content: "Step " counter(s); display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--muted); }
.lp-steps h3 { margin: 12px 0 4px; font-size: 15px; font-weight: 600; }
.lp-steps p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.lp-steps pre { margin: 0; padding: 10px 12px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; overflow-x: auto; }

/* closing CTA card */
.lp-ctasec { padding-top: 0; border-top: 0; }
.lp-ctaframe { text-align: center; padding: clamp(40px, 6vw, 72px) 24px; }
.lp-ctahead .lp-h2 { font-size: clamp(28px, 3.6vw, 40px); }
.lp-ctahead .lp-sub { margin: 0 auto; }

/* ---------- footer: framed, link columns, $VELTO, full disclaimer (no second halftone) */
body.landing .lp-foot { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 56px) 0 28px; background: var(--bg); color: var(--ink); }
.lp-foot-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.lp-foot-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.04em; }
body.landing .lp-foot-logo .mark { width: 22px; height: 22px; }
.lp-foot-tag { margin: 12px 0 4px; font-size: 15px; font-weight: 500; color: var(--ink); }
.lp-foot-ticker { margin: 0; font-size: 13px; color: var(--muted); }
.lp-foot-ticker .mono { color: var(--ink); font-weight: 500; }
.lp-foot-col h2 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.lp-foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-foot-col a { font-size: 14px; color: var(--muted); transition: color .15s; text-underline-offset: 3px; }
.lp-foot-col a:hover { color: var(--ink); text-decoration: underline; }
.lp-foot-rule { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.lp-foot-note { margin: 0; max-width: 84ch; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.lp-foot-copy { margin: 0; flex: none; font-size: 12.5px; color: var(--muted); }

/* logo cloud band */
body.landing .lc-band { border-top: 1px solid var(--line); scroll-margin-top: 8px; }

/* =====================================================================
   Morph system (all motion respects prefers-reduced-motion)
   1) scroll: [data-morph] blocks fade, rise and unclip into place as they enter, driven by view()
      timelines inside @supports; browsers without scroll-driven animations get the same states
      from an IntersectionObserver in /landing.js (html.lp-io). Reduced motion: no animation.
   2) hover: cards fill with the /app hover tone from below (clip-path circle grows) and the nav
      indicator morphs between links. Only opacity / translate / clip-path are animated.
   ===================================================================== */
@keyframes lp-morph-in {
  from { opacity: 0; translate: 0 24px; filter: blur(6px); clip-path: inset(0 0 12% 0 round 8px); }
  60% { filter: blur(0); }
  to { opacity: 1; translate: 0 0; filter: none; clip-path: inset(-40px -40px -40px -40px round 0); }
}
@keyframes lp-row-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes lp-hero-drift { to { translate: 0 28%; opacity: .15; } }
@keyframes lp-hero-copy { to { translate: 0 90px; opacity: 0; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* reveals: soft rise + fade + blur-to-sharp; --lp-st (set by /landing.js) staggers cards on one row */
    body.landing [data-morph] { animation: lp-morph-in cubic-bezier(.2, .65, .25, 1) both; animation-timeline: view();
      animation-range: entry calc(var(--lp-st, 0) * 9%) entry calc(70% + var(--lp-st, 0) * 9%); }
    /* comparison table: caption, head and rows reveal one after another as they enter */
    /* (.lp-cmp scrolls horizontally, so rows use the frame's named timeline, not their own view()) */
    body.landing .lp-cmp[data-rows] { view-timeline: --lp-cmp block; }
    body.landing .lp-cmp[data-rows] :is(caption, tr, .lp-fine) { animation: lp-row-in cubic-bezier(.2, .65, .25, 1) both; animation-timeline: --lp-cmp;
      animation-range: entry calc(var(--lp-ri, 0) * 7%) entry calc(28% + var(--lp-ri, 0) * 7%); }
    /* hero parallax: the dot wordmark drifts down and fades, the copy lifts away faster */
    body.landing .lp-hero { view-timeline: --lp-hero block; view-timeline-inset: 0px; } /* ignore scroll-padding */
    body.landing .lp-hero > canvas { animation: lp-hero-drift linear both; animation-timeline: --lp-hero; animation-range: exit-crossing 0% exit-crossing 100%; }
    body.landing .lp-hero .lp-head { animation: lp-hero-copy linear both; animation-timeline: --lp-hero; animation-range: exit-crossing 0% exit-crossing 65%; }
  }
}
/* fallback (html.lp-io, set by /landing.js when scroll-driven animations are missing) */
html.lp-io body.landing [data-morph], html.lp-io body.landing .lp-cmp[data-rows] :is(caption, tr, .lp-fine) {
  opacity: 0; translate: 0 24px; filter: blur(6px); clip-path: inset(0 0 12% 0 round 8px);
  transition: opacity .7s ease, translate .9s cubic-bezier(.2, .7, .1, 1), filter .7s ease, clip-path .9s cubic-bezier(.2, .7, .1, 1);
  transition-delay: calc(var(--lp-st, 0) * 80ms); }
html.lp-io body.landing .lp-cmp[data-rows] :is(caption, tr, .lp-fine) { translate: 0 10px; filter: none; clip-path: none;
  transition-delay: calc(var(--lp-ri, 0) * 60ms); }
html.lp-io body.landing [data-morph].is-in { opacity: 1; translate: 0 0; filter: blur(0); clip-path: inset(-40px -40px -40px -40px round 0); }
html.lp-io body.landing .lp-cmp[data-rows].is-in :is(caption, tr, .lp-fine) { opacity: 1; translate: 0 0; }
html.lp-io body.landing [data-morph].is-done { filter: none; transition-delay: 0s; }
html.lp-io body.landing .lp-hero > canvas, html.lp-io body.landing .lp-hero .lp-head { will-change: transform, opacity; }

body.landing :is(.lp-card, .lp-uc, .lp-role, .lp-pillar, .lp-steps > li, .lp-product) { isolation: isolate; transition: border-color .2s; }
body.landing :is(.lp-card, .lp-uc, .lp-role, .lp-pillar, .lp-steps > li, .lp-product)::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--hover); clip-path: circle(0% at 50% 120%); transition: clip-path .5s cubic-bezier(.2, .7, .1, 1); }
body.landing :is(.lp-card, .lp-uc, .lp-role, .lp-pillar, .lp-steps > li, .lp-product):is(:hover, :focus-within) { border-color: var(--line-2); }
body.landing :is(.lp-card, .lp-uc, .lp-role, .lp-pillar, .lp-steps > li, .lp-product):is(:hover, :focus-within)::after { clip-path: circle(150% at 50% 120%); }

@media (prefers-reduced-motion: reduce) {
  html.lp-io body.landing [data-morph], html.lp-io body.landing .lp-cmp[data-rows] :is(caption, tr, .lp-fine) { opacity: 1; translate: none; filter: none; clip-path: none; transition: none; }
  body.landing > .lp-nav { transition: none; }
  body.landing .lp-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; }
  body.landing .lp-marquee { -webkit-mask-image: none; mask-image: none; }
  body.landing .lp-track > [aria-hidden="true"] { display: none; }
}

/* ---------- responsive */
@media (max-width: 960px) {
  .lp-nav-in { grid-template-columns: 1fr auto; height: auto; padding: 10px 20px 8px; row-gap: 8px; }
  html:has(body.landing) { --lp-nav-h: 95px; }
  .lp-pills { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .lp-pills::-webkit-scrollbar { display: none; }
  .lp-split { grid-template-columns: minmax(0, 1fr); }
  .lp-split.is-rev > :first-child { order: 0; }
  .lp-kpis { grid-template-columns: 1fr 1fr; }
  .lp-kpi:nth-child(3) { border-left: 0; }
  .lp-kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lp-pillars, .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-role.is-wide { grid-column: 1 / -1; }
  .lp-ix { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lp-ix-head { position: static; }
  .lp-foot-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body.landing .sw { padding: 12px; }
  body.landing .sw-grid, body.landing .sw-foot { grid-template-columns: minmax(0, 1fr); }
  body.landing .sw-head { flex-wrap: wrap; }
  .lp-duo, .lp-fns, .lp-ucs, .lp-advs { grid-template-columns: minmax(0, 1fr); }
  .lp-fns > li:last-child, .lp-uc:first-child { grid-column: auto; }
  .lp-foot-rule { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body.landing .lp-wrap { padding: 0 16px; }
  .lp-nav-in { padding: 10px 16px 8px; }
  .lp-hide-xs { display: none !important; }
  .lp-pills a { padding: 0 10px; font-size: 13.5px; }
  .lp-kpis, .lp-checks, .lp-pillars, .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .lp-kpi { border-left: 0; border-top: 1px solid var(--line); }
  .lp-kpi:first-child { border-top: 0; }
  .lp-stats { gap: 6px; }
  .lp-stats > div { padding: 12px; }
  .lp-stats .v { font-size: 20px; }
  .lp-flow li { grid-template-columns: 28px minmax(0, 1fr); }
  .lp-flow li > :last-child { grid-column: 2; justify-self: start; }
  .lp-term-body { height: 320px; font-size: 11.5px; }
  body.landing .sw-id p { display: none; }
  body.landing .sw-lat { font-size: 22px; }
  .lp-product { padding: 20px; }
  .lp-panel-head { flex-wrap: wrap; }
  /* portrait phones: the word is width-bound, so the hero hugs copy + word */
  body.landing .lp-hero { height: auto; min-height: min(84svh, 700px); padding-bottom: calc(36vw + 8px); }
  .lp-head { padding-top: 36px; }
  .lp-eyebrow { font-size: 12px; height: auto; min-height: 28px; padding: 4px 10px; }
  .lp-hero .lp-lead { font-size: 15px; }
  .lp-hero .lp-cta { margin-top: 22px; }
  .lp-cmp table { font-size: 13px; }
  .lp-cmp th, .lp-cmp td { padding: 10px; }
  .lp-cmp i { display: none; }
  .lp-foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 24px; }
  .lp-bens li { padding: 14px 16px; gap: 12px; }
}
@media (max-width: 420px) {
  .lp-pills { justify-content: space-between; gap: 0; }
  .lp-pills a { padding: 0 7px; font-size: 13px; }
}

/* ===== hero background shader (velto-shader.js) =====
   Proven-stable setup: one fixed full-viewport WebGL canvas behind the whole page (z-index -1, body transparent).
   Everything after the hero gets a solid #09090b background, so the lavender only shows behind the hero and the
   page below stays plain black. A soft fade at the hero's bottom blends the two. */
body.landing > canvas.velto-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
body.landing { background: transparent; }
body.landing .lp-hero { background: transparent; }
body.landing .lp-hero ~ *:not(script):not(canvas) { background-color: #09090b; }
body.landing .lp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(9,9,11,0), #09090b); }

/* ===== accounts, official contract strip, security pledge (landing.js renders from /api/me + /api/content/public) ===== */
body.landing .lp-actions [hidden], body.landing .lp-official[hidden], body.landing .lp-official [hidden] { display: none !important; }
body.landing .btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
body.landing .btn-ghost:hover { background: var(--hover); color: var(--ink); }
.lp-account { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.lp-account:hover { border-color: var(--line-2); }
.lp-avatar { width: 28px; height: 28px; border-radius: 999px; background: var(--accent-bg); color: var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 600; overflow: hidden; }
.lp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lp-official { border-top: 1px solid var(--line); padding: 20px 0; }
.lp-official-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 16px 18px; }
.lp-official-ca { min-width: 0; flex: 1 1 520px; }
.lp-official-cap { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 500; color: var(--muted); }
.lp-chainbadge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--ink-2); }
.lp-chainbadge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--ok); }
.lp-official-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.landing code.lp-official-addr { flex: 1 1 320px; min-width: 0; font-family: var(--mono); font-size: 14px; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 7px 10px; word-break: break-all; line-height: 1.4; }
.lp-official-warn { margin: 10px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--warn); }
.lp-official-warn svg { width: 15px; height: 15px; flex: none; }
.lp-official-x { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.lp-official-x:hover { background: var(--hover); }
.lp-official-x svg { width: 18px; height: 18px; flex: none; }
.lp-official-x b { display: block; font-weight: 500; font-size: 14px; }
.lp-official-x small { display: block; font-size: 12px; color: var(--muted); }

.lp-pledge { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-pledge .lp-pillar a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 3px; }
@media (max-width: 900px) { .lp-pledge { grid-template-columns: minmax(0, 1fr); } }
