/* page CSS: only what sits inside a visual */
/* one type system for the whole site: Inter for text and display, JetBrains Mono (the workspace face) for figures and citations */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{
  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: var(--font-display); --f-text: var(--font-text); --f-label: var(--font-display);
}
.nav__logo img { width: 26px; height: auto; display: block; }
@media (max-width: 479px) { .nav__actions .btn { display: none; } }
/* hero art: the sky ground with one soft light and a fine grain */
.hero__art { background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 75%, var(--ground-accent)), transparent 70%),
    var(--ground-bg); }
.hero__art::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
.d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #3d4652; border-top: 1px solid rgb(0 0 0 / .06); }
.d-note__line:first-of-type { border-top: 0; }
.d-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e6efff; color: #1d4ed8; font-style: normal; font-size: 12px; font-weight: 700; }
.d-note__line b { font-weight: 500; color: #16202f; }
.ly-piece--main .d-row { grid-template-columns: minmax(0, 1fr) 92px 64px; }
.ly-piece--main .d-main { padding-right: var(--ly-cut-room); }
.d-cite { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 500 12px/1 var(--font-mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #1d4ed8; background: #e6efff; justify-self: start; }
.d-row .num { font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }
@media (max-width: 639px) { .ly-piece--main .d-row { grid-template-columns: minmax(0, 1fr) 84px 56px; } }

/* the citation viewer: fields on the left, the source page on the right */
.viewer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-5); margin-top: var(--s-6); }
.viewer__fields { display: grid; align-content: start; gap: var(--s-2); }
.field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px var(--s-4); width: 100%; text-align: left;
  padding: 14px var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: 400 var(--t-body)/1.35 var(--font-text); cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.field:hover { border-color: var(--line-strong); }
.field:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.field[aria-pressed="true"] { border-color: var(--action); box-shadow: 0 0 0 1px var(--action) inset; background: color-mix(in oklab, var(--action) 5%, var(--bg)); }
.field__label { color: var(--muted); font-size: var(--t-small); }
.field__value { grid-column: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.field .d-cite { grid-column: 2; grid-row: 1 / span 2; }
.paper { position: relative; border-radius: var(--r-lg); background: var(--ground-bg); padding: var(--s-6); min-height: 380px; overflow: hidden; }
.paper__sheet { position: relative; height: 100%; min-height: 332px; background: #fff; border-radius: 6px; padding: 28px 32px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 24px 48px -28px rgb(20 30 50 / .45);
  font: 400 14px/1.75 Georgia, "Times New Roman", serif; color: #2b333f; }
.paper__head { display: flex; justify-content: space-between; gap: var(--s-4); font: 500 12px/1 var(--font-mono); color: #6b7380; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid rgb(0 0 0 / .08); }
.paper__body p { margin: 0 0 14px; }
.paper__body::after { content: ""; display: block; height: 96px; margin-top: 6px; opacity: .55;
  background: repeating-linear-gradient(to bottom, #e3e6eb 0 8px, transparent 8px 24px); -webkit-mask: linear-gradient(to bottom, #000 40%, transparent); mask: linear-gradient(to bottom, #000 40%, transparent); }
@media (max-width: 639px) { .paper__body::after { height: 56px; } }
.paper__body mark { background: #fff2a8; color: inherit; padding: 2px 0; border-radius: 2px; box-shadow: 0 0 0 2px #fff2a8; transition: background-color .4s var(--ease); }
.paper__note { position: absolute; right: 32px; bottom: 24px; display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-mono); color: #1d4ed8; background: #e6efff; padding: 7px 10px; border-radius: 6px; }
.paper__sheet.is-swap .paper__body { animation: vx-in .32s var(--ease) both; }
@keyframes vx-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .paper__sheet.is-swap .paper__body { animation: none; } }
@media (max-width: 1023px) { .viewer { grid-template-columns: 1fr; } .paper { min-height: 0; } }
@media (max-width: 639px) {
  .viewer__fields { grid-template-columns: 1fr 1fr; }
  .field { padding: 10px 12px; grid-template-columns: 1fr; }
  .field .d-cite { grid-column: 1; grid-row: auto; }
  .paper { padding: var(--s-3); }
  .paper__sheet { padding: 18px 18px 56px; font-size: 13px; min-height: 0; }
  .paper__body p:not(.has-mark) { display: none; }
  .paper__note { right: 18px; bottom: 16px; }
}

/* three step cards with a small card on the lit ground */
.open-cards .panel { --p-h: 236px; background:
    radial-gradient(80% 70% at 20% 0%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    var(--ground-bg); }
.open-cards .d-card { box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 14px 32px -18px rgb(0 0 0 / .35); }
.open-cards .stage > .at-rise { --ax: 20px; --ay: 28px; --fit-max: 300px; }
.open-cards > .card { grid-column: 1 / -1; }
@media (min-width: 1024px) { .open-cards > .card { grid-column: auto / span 4; } }
@media (min-width: 640px) and (max-width: 1023px) {
  .open-cards > .card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-auto-rows: min-content; column-gap: var(--s-6); align-content: start; }
  .open-cards > .card > :not(.panel) { grid-column: 1; }
  .open-cards > .card > .panel { grid-column: 2; grid-row: 1 / span 4; --p-h: 200px; }
}
@media (max-width: 639px) { .open-cards .panel { --p-h: 148px; } }

/* document types: rows on the ground */
.doc-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); }
.doc-row { display: grid; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; }
.doc-row h3 { font-size: var(--t-card); }
.doc-row p { margin: 0; color: var(--ink); }
.doc-row .d-cite { margin-top: var(--s-2); }
@media (max-width: 1023px) { .doc-rows { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .doc-rows { grid-template-columns: 1fr; gap: var(--s-3); } .doc-row { padding: var(--s-4); } .doc-row p, .doc-row .d-cite { display: none; } }

/* data handling: a list beside the file's path */
.trust { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-6); margin-top: var(--s-6); align-items: start; }
.path { border-radius: var(--r-lg); background: var(--ground-bg); padding: var(--s-6); }
.path .d-card { box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 14px 32px -18px rgb(0 0 0 / .35); max-width: 420px; }
.checks-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checks-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.checks-list li:first-child { padding-top: 0; }
.checks-list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--action); }
.checks-list b { font-weight: 500; display: block; }
.checks-list span { color: var(--muted); }
@media (max-width: 1023px) { .trust { grid-template-columns: 1fr; } .path { display: none; } }

/* hero: the window zoomed out so more of the workspace shows */
.hero__art .ly-piece--main { zoom: .8; }
@media (max-width: 639px) { .hero__art .ly-piece--main { zoom: .9; } }

/* viewer: document chips, the Fields / CSV / JSON switch, the code view */
.vx-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.vx-tabs .tab { padding: 0 12px; }
.vx-tabs .tab[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.viewer__left { display: grid; align-content: start; gap: var(--s-3); min-width: 0; }
.vx-views { display: inline-flex; justify-self: start; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface); }
.vx-views button { height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 500 13px/1 var(--font-text); cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.vx-views button:hover { color: var(--ink); }
.vx-views button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.viewer__code { margin: 0; max-height: 364px; overflow: auto; padding: var(--s-4); border-radius: var(--r-md); background: #0f1a2c; color: #d6e2ff; font: 400 13px/1.6 var(--font-mono); white-space: pre-wrap; word-break: break-word; }
@media (max-width: 639px) {
  .vx-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scrollbar-width: none; }
  .vx-tabs .tab { flex: none; }
  .viewer__code { max-height: 260px; font-size: 12px; }
}

/* inner pages */
.page-head { padding-top: calc(var(--nav) + var(--s-8)); }
.page-head h1 { max-width: 18ch; }
.page-head .t-lead { max-width: 56ch; margin-top: var(--s-4); color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); }
.plan { display: grid; align-content: start; gap: var(--s-3); padding: var(--s-6); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.plan.is-pick { border-color: var(--action); box-shadow: 0 0 0 1px var(--action) inset; }
.plan h3 { font-size: var(--t-card); display: flex; align-items: center; gap: var(--s-2); }
.plan .price { font: 500 40px/1 var(--font-display); letter-spacing: -.02em; }
.plan .price small { font: 400 16px/1 var(--font-text); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: var(--s-2) 0 0; display: grid; gap: var(--s-2); }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(-45deg); }
.plan .btn { width: 100%; margin-top: var(--s-3); }
.plan__for { color: var(--muted); }
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6); margin-top: var(--s-6); align-items: center; }
.calc__inputs { display: grid; gap: var(--s-6); }
.calc label { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: var(--s-3); }
.calc label output { font-variant-numeric: tabular-nums; color: var(--action); }
.calc input[type=range] { width: 100%; accent-color: var(--action); height: 28px; }
.calc__result { padding: var(--s-6); border-radius: var(--r-lg); background: var(--ground-bg); }
.calc__result .d-card { box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 14px 32px -18px rgb(0 0 0 / .35); }
.calc__big { font: 500 40px/1.1 var(--font-display); letter-spacing: -.02em; color: #16202f; margin: 6px 0 4px; }
.offer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); }
.offer > div { padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: var(--s-2); }
.offer b { font: 500 32px/1 var(--font-display); letter-spacing: -.02em; }
.offer span { color: var(--muted); }
.steps-ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); margin-top: var(--s-6); align-items: start; }
.step-list { display: grid; gap: var(--s-2); }
.step-btn { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-3); text-align: left; padding: var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.step-btn:hover { border-color: var(--line-strong); }
.step-btn[aria-pressed="true"] { border-color: var(--action); background: color-mix(in oklab, var(--action) 5%, var(--bg)); }
.step-btn b { font-weight: 500; display: block; }
.step-btn span span { color: var(--muted); font-size: var(--t-small); }
.step-stage { border-radius: var(--r-lg); background: var(--ground-bg); padding: var(--s-6); min-height: 340px; display: grid; place-items: center; }
.step-stage .d-card { width: min(420px, 100%); box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 14px 32px -18px rgb(0 0 0 / .35); }
.step-stage [data-pane][hidden] { display: none; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); }
.tile { padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: var(--s-2); align-content: start; }
.tile h3 { font-size: var(--t-card); }
.tile p { margin: 0; }
.filter { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-6); }
.filter input { height: 44px; width: min(360px, 100%); padding: 0 var(--s-4); border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: 400 16px/1 var(--font-text); }
.filter input:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-5); }
.ind-card { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.ind-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgb(20 30 50 / .45); }
.ind-card h3 { font-size: var(--t-card); }
.ind-card p { margin: 0; }
.ind-card .d-cite { margin-top: var(--s-2); }
.ind-card[hidden] { display: none; }
.empty-note { margin-top: var(--s-4); color: var(--muted); }
.field-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.field-chips span { display: inline-flex; align-items: center; height: 36px; padding: 0 var(--s-4); border-radius: 999px; border: 1px solid var(--line); font-size: var(--t-small); }
.api { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); margin-top: var(--s-6); align-items: start; }
.api pre { margin: 0; padding: var(--s-5); border-radius: var(--r-lg); background: #0f1a2c; color: #d6e2ff; font: 400 13px/1.65 var(--font-mono); overflow: auto; max-height: 420px; }
.vx-form { display: grid; gap: var(--s-4); max-width: 560px; }
.vx-form label { display: grid; gap: var(--s-2); font: 500 13px/1.2 var(--font-text); }
.vx-form input, .vx-form textarea, .vx-form select { min-height: 48px; padding: 12px var(--s-4); border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--font-text); }
.vx-form textarea { min-height: 140px; resize: vertical; }
.vx-form input:focus-visible, .vx-form textarea:focus-visible, .vx-form select:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.vx-form__msg { padding: var(--s-4); border-radius: var(--r-md); background: var(--surface); }
.vx-form__msg[hidden] { display: none; }
@media (max-width: 1023px) {
  .plans, .cards3, .ind-grid { grid-template-columns: 1fr 1fr; }
  .calc, .steps-ui, .api { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  .plans, .cards3, .cards2, .ind-grid { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr 1fr; gap: var(--s-2); } .offer > div { padding: var(--s-4); } .offer b { font-size: 26px; }
  .ind-grid { gap: var(--s-2); } .ind-card { padding: var(--s-4); } .ind-card p { display: none; } .ind-card .d-cite { margin-top: 0; }
  .plan, .tile { padding: var(--s-5); }
  .step-stage { min-height: 0; padding: var(--s-4); }
  .page-head { padding-top: calc(var(--nav) + var(--s-6)); }
}

/* ---------- logo: mark, name with blue AI, subhead ---------- */
.vx-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.vx-logo img { width: 44px; height: auto; display: block; }
.vx-logo__name { display: flex; flex-direction: column; justify-content: center; gap: 4px; line-height: 1; }
.vx-logo__name b { font: 700 21px/1 var(--font-display); letter-spacing: -.02em; color: #2d3748; }
.vx-logo__name b span { color: #2b6cb0; }
.vx-logo__name small { font: 500 10px/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: #718096; }
@media (max-width: 639px) { .vx-logo img { width: 38px; } .vx-logo__name b { font-size: 19px; } .vx-logo__name small { font-size: 9px; } }

/* ---------- hero: wider art, the live workspace ---------- */
.hero__grid.vx-hero-grid > .hero__text { grid-column: 1 / span 5; }
.hero__grid.vx-hero-grid > .hero__art { grid-column: 6 / span 7; display: grid; align-content: center; padding: var(--s-6); overflow: hidden; position: relative; }
@media (max-width: 1023px) { .hero__grid.vx-hero-grid > .hero__text, .hero__grid.vx-hero-grid > .hero__art { grid-column: 1 / -1; } }
@media (max-width: 639px) { .hero__grid.vx-hero-grid > .hero__art { padding: var(--s-3); } }
[data-hero-app] { position: relative; width: 100%; z-index: 2; }
.ha { position: absolute; top: 0; left: 0; transform-origin: 0 0; display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(20 30 50 / .08), 0 30px 60px -30px rgb(20 30 50 / .55); font: 400 13px/1.4 var(--font-text); color: #334155; }
.ha-chrome { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid #edf0f4; background: #fafbfc; flex: none; }
.ha-dots { display: flex; gap: 6px; } .ha-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e1e5eb; }
.ha-url { flex: 1; text-align: center; font: 500 12px/1 var(--font-mono); color: #8a93a2; }
.ha-live { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #0f7a46; background: #e5f6ee; padding: 5px 8px; border-radius: 6px; }
.ha-live b { width: 6px; height: 6px; border-radius: 50%; background: #16a35f; animation: ha-blink 1.6s ease-in-out infinite; }
@keyframes ha-blink { 50% { opacity: .25; } }
.ha-body { flex: 1; display: grid; grid-template-columns: 172px minmax(0, 1fr); min-height: 0; }
.ha-side { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; border-right: 1px solid #edf0f4; background: #fbfcfd; }
.ha-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 14px; font: 700 14px/1 var(--font-display); color: #2d3748; }
.ha-brand img { width: 24px; }
.ha-side > span { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: #5d6674; font-size: 12.5px; }
.ha-side > span i { width: 14px; height: 14px; border-radius: 4px; background: #e3e7ed; }
.ha-side > span.is-on { background: #eaf1ff; color: #1d4ed8; font-weight: 500; } .ha-side > span.is-on i { background: #2563eb; }
.ha-side em { margin-top: auto; font: 500 11px/1.3 var(--font-mono); color: #8a93a2; font-style: normal; padding: 8px; }
.ha-main { position: relative; min-width: 0; overflow: hidden; }
.ha-scene { position: absolute; inset: 0; padding: 22px 26px; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.ha-scene.is-on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.ha-top small { font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #8a93a2; }
.ha-top h4 { margin: 8px 0 16px; font: 500 20px/1.2 var(--font-display); letter-spacing: -.015em; display: flex; gap: 12px; align-items: baseline; }
.ha-login { display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 0%, #eef3fb, transparent 70%); }
.ha-card { width: 300px; padding: 26px 24px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #edf0f4, 0 18px 40px -24px rgb(20 30 50 / .4); display: grid; gap: 10px; text-align: center; }
.ha-card img { width: 34px; margin: 0 auto 4px; } .ha-card h4 { margin: 0; font: 600 18px/1.2 var(--font-display); } .ha-card p { margin: 0 0 6px; color: #6b7380; font-size: 12px; }
.ha-input { height: 38px; border-radius: 8px; border: 1px solid #dfe3e9; text-align: left; padding: 0 12px; display: flex; align-items: center; font: 400 13px/1 var(--font-text); color: #334155; }
.ha-input span::after { content: ""; display: inline-block; width: 1px; height: 15px; margin-left: 1px; vertical-align: -3px; background: #2563eb; animation: ha-blink 1s steps(1) infinite; }
.ha-btn { height: 38px; border-radius: 8px; background: #2563eb; color: #fff; display: grid; place-items: center; font-weight: 500; transition: transform .15s, background-color .15s; }
.ha-btn.is-press { transform: scale(.97); background: #1d4ed8; }
.ha-drop { height: 210px; border: 1.5px dashed #c9d3e2; border-radius: 12px; display: grid; place-content: center; justify-items: center; gap: 6px; color: #5d6674; background: #fafcff; }
.ha-drop svg { width: 30px; height: 30px; color: #2563eb; } .ha-drop b { font-weight: 500; color: #334155; } .ha-drop small { color: #8a93a2; }
.ha-file { display: grid; grid-template-columns: 40px minmax(0, 1fr) 44px; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 10px; box-shadow: 0 0 0 1px #edf0f4;
  opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.ha-file.is-in { opacity: 1; transform: none; }
.ha-pdf { height: 40px; border-radius: 6px; background: #fdecec; color: #c4302b; display: grid; place-items: center; font: 700 11px/1 var(--font-mono); }
.ha-file b { display: block; font-weight: 500; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-bar { height: 6px; border-radius: 3px; background: #edf0f4; overflow: hidden; } .ha-bar i { display: block; height: 100%; width: 0; background: #2563eb; transition: width .12s linear; }
.ha-pct { font: 500 12px/1 var(--font-mono); color: #1d4ed8; text-align: right; }
.ha-status { color: #b26a00; } .ha.is-done .ha-status { color: #0f7a46; }
.ha-count { font: 500 12px/1 var(--font-mono); color: #8a93a2; }
.ha-grid { border-radius: 10px; box-shadow: 0 0 0 1px #edf0f4; overflow: hidden; }
.ha-head, .ha-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; align-items: center; padding: 10px 14px; }
.ha-head { background: #fafbfc; font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #8a93a2; border-bottom: 1px solid #edf0f4; }
.ha-row { border-bottom: 1px solid #f1f3f6; opacity: .14; transition: opacity .35s var(--ease), background-color .3s; }
.ha-row:last-child { border-bottom: 0; }
.ha-row.is-in { opacity: 1; } .ha-row.is-pick { background: #fffbe0; }
.ha-row small { display: block; font: 500 10.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #8a93a2; margin-bottom: 4px; }
.ha-row b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ha-src { justify-self: start; font: 500 11px/1.2 var(--font-mono); color: #1d4ed8; background: #e6efff; padding: 5px 7px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.ha-pop { position: absolute; right: 22px; bottom: 44px; width: 330px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e3e8ef, 0 22px 44px -22px rgb(20 30 50 / .55);
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.ha-pop.is-on { opacity: 1; transform: none; }
.ha-pop small { font: 500 11px/1 var(--font-mono); color: #8a93a2; } .ha-pop p { margin: 8px 0; font: 400 13px/1.55 Georgia, serif; color: #2b333f; }
.ha-pop mark { background: #fff2a8; box-shadow: 0 0 0 2px #fff2a8; } .ha-pop span { font-size: 12px; color: #1d4ed8; font-weight: 500; }
.ha-foot { position: absolute; left: 26px; bottom: 14px; font: 500 11px/1 var(--font-mono); color: #8a93a2; }
.ha-cursor { position: absolute; left: 0; top: 0; width: 20px; height: 20px; z-index: 5; transition: transform .7s cubic-bezier(.4,.1,.2,1), opacity .3s; pointer-events: none; }
.ha-cursor.is-click { animation: ha-click .22s ease-out; } @keyframes ha-click { 50% { scale: .82; } }
.ha--compact .ha-body { grid-template-columns: 1fr; } .ha--compact .ha-side { display: none; }
.ha--compact .ha-head, .ha--compact .ha-row { grid-template-columns: minmax(0, 1fr) 120px; } .ha--compact .ha-pop { left: 16px; right: 16px; width: auto; }
.ha-pause { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .9); color: #334155; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / .12); }
.ha-pause svg { width: 12px; height: 12px; }
@media (prefers-reduced-motion: reduce) { .ha-cursor { display: none; } .ha-live b { animation: none; } }

/* ---------- send-with menu ---------- */
.mailpick { position: relative; display: inline-block; }
.mailpick > .btn svg.chev2 { width: 12px; height: 12px; margin-left: 8px; transition: transform var(--dur) var(--ease); }
.mailpick.is-open > .btn svg.chev2 { transform: rotate(180deg); }
.mailpick__menu { position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 30; width: 330px; padding: 10px; border-radius: 14px; background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px rgb(20 30 50 / .4); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.mailpick.is-down .mailpick__menu { bottom: auto; top: calc(100% + 10px); transform: translateY(-6px); }
.mailpick.is-open .mailpick__menu { opacity: 1; transform: none; pointer-events: auto; }
.mailpick__menu p { margin: 4px 10px 8px; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mailpick__menu a, .mailpick__menu button { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 11px 10px; border: 0; border-radius: 10px; background: none;
  color: var(--ink); font: 400 16px/1.2 var(--font-text); text-align: left; text-decoration: none; cursor: pointer; }
.mailpick__menu a:hover, .mailpick__menu button:hover { background: var(--surface); }
.mailpick__menu svg { width: 20px; height: 20px; }
.mailpick__menu small { font: 400 12px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
@media (max-width: 639px) { .mailpick { display: block; } .mailpick__menu{ left: 0; right: 0; width: auto; max-width: 330px; } }

/* ---------- niche page parts ---------- */
.eyebrow { font: 600 10px/1.2 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: #94a3b8; }
.crumb { font-size: var(--t-small); }
.or-line { margin-top: var(--s-4); color: var(--muted); font-size: var(--t-small); }
.abstract { margin-top: var(--s-6); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.abstract__bar { display: flex; justify-content: space-between; gap: var(--s-4); padding: 14px var(--s-5); background: var(--surface); font: 500 12px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ab-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 240px; gap: var(--s-4); align-items: start; padding: 14px var(--s-5); border-top: 1px solid var(--line); cursor: pointer; transition: background-color var(--dur) var(--ease); }
.ab-row:hover { background: color-mix(in oklab, #2563eb 4%, transparent); }
.ab-row.is-on { background: color-mix(in oklab, #2563eb 6%, transparent); }
.ab-row > b { font-weight: 500; } .ab-row > span { color: var(--ink); }
.ab-quote .see-doc { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; }
.ab-src { justify-self: start; text-align: left; border: 0; cursor: pointer; font: 500 12px/1.35 var(--font-mono); color: #1d4ed8; background: #e6efff; padding: 6px 8px; border-radius: 6px; transition: background-color var(--dur) var(--ease); }
.ab-src:hover, .ab-src[aria-expanded="true"] { background: #d3e3ff; }
.ab-quote { grid-column: 2 / -1; margin: 4px 0 2px; padding: 12px 14px; border-left: 3px solid #f2d33a; background: #fffbe8; border-radius: 0 8px 8px 0; font: 400 15px/1.6 Georgia, serif; color: #2b333f; }
.ab-quote small { display: block; margin-top: 6px; font: 400 12px/1.3 var(--font-mono); color: var(--muted); }
.ab-quote[hidden] { display: none; }
/* the cited page in the workspace's Source view */
.srcx { display: flex; flex-direction: column; gap: 10px; padding: 2px 0; }
.srcx__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.srcx__file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 11px/1.3 var(--font-mono); color: var(--ink); }
.srcx__pg { flex: none; font: 500 11px/1.3 var(--font-mono); color: #1d4ed8; }
.srcx__page { display: flex; flex-direction: column; gap: 9px; padding: 18px 16px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 16px 30px -24px rgb(20 30 50 / .55); }
.srcx__page .srcx__pg { margin-bottom: 2px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: 10px; }
.srcx__ln { display: block; height: 6px; border-radius: 3px; background: #e7ebf1; }
.srcx__q { border: 2px solid #2563eb; background: rgb(37 99 235 / .07); border-radius: 6px; padding: 9px 11px; font: 400 13.5px/1.6 Georgia, serif; color: #1e293b; }
.srcx__note { font: 500 12px/1.35 var(--font-mono); color: var(--ink); }
.srcx__hint { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.srcx__p { margin: 0; font: 400 13.5px/1.6 Georgia, serif; color: #475569; }
.srcx__ref { display: block; margin-top: 6px; font: 500 10px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.srcx__q .srcx__ref { color: #1d4ed8; }
.flags { margin-top: var(--s-5); padding: var(--s-5); border-radius: var(--r-lg); background: #fff8e6; }
.flags h3 { font-size: var(--t-card); margin-bottom: var(--s-3); } .flags ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.inspector { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-5); margin-top: var(--s-6); align-items: start; }
.inspector__qs { display: grid; gap: var(--s-2); }
.inspector__qs button { text-align: left; padding: 12px var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 15px/1.35 var(--font-text); cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.inspector__qs button:hover { border-color: var(--line-strong); }
.inspector__qs button[aria-pressed="true"] { border-color: var(--action); background: color-mix(in oklab, var(--action) 5%, var(--bg)); }
.inspector__a { min-height: 220px; padding: var(--s-5); border-radius: var(--r-lg); background: var(--ground-bg); }
.inspector__a .d-card { box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 14px 32px -18px rgb(0 0 0 / .35); }
.inspector__a .typing { color: #8a93a2; }
.extract-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); }
.extract-grid .tile .field-chips { margin-top: var(--s-2); } .extract-grid .field-chips span { height: 30px; font-size: 13px; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); counter-reset: st; }
.steps3 > div { padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: var(--s-2); align-content: start; }
.steps3 b.num { font: 500 13px/1 var(--font-mono); color: var(--action); }
.steps3 h3 { font-size: var(--t-card); }
.test-box { margin-top: var(--s-6); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; padding: var(--s-6); border-radius: var(--r-lg); border: 1px solid var(--line);
  background: radial-gradient(60% 120% at 100% 0%, color-mix(in oklab, var(--action) 8%, var(--bg)), var(--bg) 70%); }
.test-box h3 { font-size: var(--t-card); } .test-box p { margin: 6px 0 0; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); }
.badge-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-4); align-items: center; padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); }
.badge-card i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: 0 0 0 1px var(--line); font: 600 12px/1.05 var(--font-mono); color: #1d4ed8; text-align: center; font-style: normal; }
.badge-card b { display: block; font-weight: 500; } .badge-card span { color: var(--muted); font-size: var(--t-small); }
.dir { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-6); margin-top: var(--s-6); }
.dir__groups { display: grid; gap: var(--s-2); align-content: start; }
.dir__groups button { display: flex; justify-content: space-between; gap: var(--s-3); text-align: left; padding: 12px var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 15px/1.3 var(--font-text); cursor: pointer; }
.dir__groups button[aria-pressed="true"] { border-color: var(--action); background: color-mix(in oklab, var(--action) 5%, var(--bg)); }
.dir__groups button span { color: var(--muted); font: 500 13px/1.3 var(--font-mono); }
.dir__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); align-content: start; max-height: 420px; overflow: auto; }
.dir__list a { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; transition: color var(--dur) var(--ease); }
.dir__list a:hover { color: var(--action); }
.statement { font: 500 clamp(30px, 2.6vw + 12px, 52px)/1.15 var(--font-display); letter-spacing: -.025em; max-width: 24ch; }
.dropzone { margin-top: var(--s-4); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.dropzone.is-over { border-color: var(--action); background: color-mix(in oklab, var(--action) 5%, var(--bg)); }
.dropzone svg { width: 24px; height: 24px; color: var(--action); } .dropzone p { margin: 0; } .dropzone small { color: var(--muted); }
@media (max-width: 1023px) {
  .ab-row { grid-template-columns: 140px minmax(0, 1fr); } .ab-row > .ab-src { grid-column: 2; }
  .inspector, .dir { grid-template-columns: 1fr; } .steps3, .badges { grid-template-columns: 1fr; } .extract-grid { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .ab-row { grid-template-columns: 1fr; gap: 6px; } .ab-row > .ab-src { grid-column: 1; } .ab-quote { grid-column: 1; }
  .test-box { grid-template-columns: 1fr; } .dir__list { grid-template-columns: 1fr; max-height: 320px; }
  .dropzone { grid-template-columns: auto minmax(0, 1fr); } .dropzone .btn { grid-column: 1 / -1; }
}

.test-box .mailpick__menu { left: auto; right: 0; }
@media (max-width: 639px) { .test-box .mailpick__menu { left: 0; right: 0; } }

/* ---------- sections size to their content (no empty screens) ---------- */
main > :is(section, .section):not(.hero, .section--hero), footer.closing { height: auto !important; min-height: 0 !important; padding: 112px 0 112px; }
main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap { height: auto !important; }
footer.closing { padding-bottom: 48px; }
footer.closing .closing__links { margin-top: var(--s-9); }
@media (max-width: 639px) { main > :is(section, .section):not(.hero, .section--hero), footer.closing { padding: 72px 0 72px; } footer.closing { padding-bottom: 32px; } footer.closing .closing__links { margin-top: var(--s-8); } }
main > section + section.section--tight { padding-top: 0 !important; }

/* ---------- hero app v2: table + source / inspector panel ---------- */
.ha-main { display: flex; flex-direction: column; padding: 18px 22px 30px; gap: 12px; }
.ha-top h4 { margin: 6px 0 8px; }
.ha-file { display: grid; grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 10px; align-items: center; margin: 0; padding: 0; box-shadow: none; opacity: 1; transform: none; }
.ha-file .ha-pdf { height: 26px; font-size: 10px; }
.ha.is-done .ha-file { opacity: .45; transition: opacity .5s; }
.ha-split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
.ha-grid { align-self: start; }
.ha-head, .ha-row { grid-template-columns: minmax(0, 1fr) 118px; padding: 8px 12px; }
.ha-src { max-width: 118px; font-size: 10.5px; }
.ha-panel { position: relative; border-radius: 10px; box-shadow: 0 0 0 1px #edf0f4; overflow: hidden; display: flex; flex-direction: column; background: #fafbfc; }
.ha-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid #edf0f4; background: #fff; }
.ha-tab { padding: 6px 12px; border-radius: 7px; font: 500 12px/1 var(--font-text); color: #6b7380; transition: background-color .3s, color .3s; }
.ha-tab.is-on { background: #eaf1ff; color: #1d4ed8; }
.ha-pane { position: absolute; inset: 41px 0 0 0; padding: 14px; opacity: 0; transition: opacity .4s var(--ease); display: flex; flex-direction: column; gap: 10px; }
.ha-pane.is-on { opacity: 1; }
.ha-page { flex: 1; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px #edf0f4, 0 10px 22px -16px rgb(20 30 50 / .4); padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.ha-page small { font: 500 10.5px/1 var(--font-mono); color: #8a93a2; margin-bottom: 4px; }
.ha-page i { display: block; height: 7px; border-radius: 4px; background: #eceff3; } .ha-page i.s { width: 62%; }
.ha-page p { margin: 2px 0; font: 400 12.5px/1.55 Georgia, serif; color: #2b333f; }
.ha-page mark { background: transparent; transition: background-color .5s, box-shadow .5s; }
.ha.is-src .ha-page mark { background: #fff2a8; box-shadow: 0 0 0 2px #fff2a8; }
.ha-msg { max-width: 92%; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.ha-msg--me { align-self: flex-end; background: #2563eb; color: #fff; border-bottom-right-radius: 4px; }
.ha-msg--bot { align-self: flex-start; background: #fff; box-shadow: 0 0 0 1px #edf0f4; border-bottom-left-radius: 4px; display: grid; gap: 6px; }
.ha.is-asked .ha-msg--me, .ha.is-asked .ha-msg--bot { opacity: 1; transform: none; }
.ha.is-asked .ha-msg--bot { transition-delay: .5s; }
.ha-a, .ha-cite { display: none; } .ha.is-answered .ha-a { display: block; } .ha.is-answered .ha-cite { display: inline-block; justify-self: start; font: 500 10.5px/1 var(--font-mono); color: #1d4ed8; background: #e6efff; padding: 4px 6px; border-radius: 5px; }
.ha.is-answered .ha-typing { display: none; }
.ha-typing, .ins-dots { display: inline-flex; gap: 4px; } .ha-typing i, .ins-dots i { width: 6px; height: 6px; border-radius: 50%; background: #b7c0cc; animation: ha-dot 1s infinite; }
.ha-typing i:nth-child(2), .ins-dots i:nth-child(2) { animation-delay: .15s; } .ha-typing i:nth-child(3), .ins-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ha-dot { 50% { opacity: .3; transform: translateY(-2px); } }
.ha-ask { margin-top: auto; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px #dfe3e9; background: #fff; display: flex; align-items: center; padding: 0 10px; font-size: 12px; color: #8a93a2; }
.ha.is-asked .ha-ask__t { opacity: .5; }
.ha-side > span.is-hl { background: #eaf1ff; color: #1d4ed8; }
.ha-foot { left: 22px; bottom: 10px; }
.ha--compact .ha-split { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
.ha--compact .ha-head, .ha--compact .ha-row { grid-template-columns: minmax(0, 1fr) 110px; padding: 6px 10px; }
.ha--compact .ha-row:nth-child(n+6) { display: none; }

/* ---------- homepage demo: template chips ---------- */
.demo__label { margin-top: var(--s-6); font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.demo__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.demo-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: 400 15px/1 var(--font-text); cursor: pointer; text-decoration: none; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.demo-chip svg { width: 17px; height: 17px; color: var(--muted); }
.demo-chip:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.demo-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); } .demo-chip[aria-pressed="true"] svg { color: var(--bg); }
.demo-chip--up { border-style: dashed; color: var(--action); } .demo-chip--up svg { color: var(--action); }
.demo__chips--sm { margin-bottom: var(--s-5); } .demo__chips--sm .demo-chip { height: 36px; font-size: 14px; padding: 0 12px; }
.demo__src { margin: 0; color: var(--muted); font-size: var(--t-small); } .demo__src--in { padding: 12px var(--s-5); border-top: 1px solid var(--line); }
.demo__foot { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
.demo__foot .btn { width: 100%; }
.demo__card .abstract { margin-top: var(--s-5); }
@media (max-width: 639px) { .demo__chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scrollbar-width: none; } .demo-chip { flex: none; } }

/* ---------- inspector chat ---------- */
.inspector-wrap .inspector { margin-top: 0; }
.ins-chat { background: var(--bg); border-radius: var(--r-md); box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 14px 32px -18px rgb(0 0 0 / .35); padding: var(--s-4); display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.ins-head { display: flex; justify-content: space-between; align-items: center; } .ins-head b { font-weight: 500; }
.ins-msg { max-width: 90%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; animation: ins-in .3s var(--ease) both; }
.ins-msg p { margin: 0; } .ins-msg ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ins-msg--me { align-self: flex-end; background: var(--action); color: var(--action-ink); border-bottom-right-radius: 4px; }
.ins-msg--bot { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 4px; display: grid; gap: 8px; }
.ins-msg--bot .d-cite, .ins-tag { justify-self: start; } .ins-tag { font: 500 11px/1 var(--font-mono); color: #8a5300; background: #fdf0dc; padding: 5px 7px; border-radius: 6px; }
@keyframes ins-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .ins-msg { animation: none; } }

/* ---------- chat bubble ---------- */
.vx-chat { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.vx-chat__btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: #334155; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 28px -10px rgb(20 30 50 / .6); transition: transform var(--dur) var(--ease); }
.vx-chat__btn:hover { transform: translateY(-2px); } .vx-chat__btn svg { width: 24px; height: 24px; }
.vx-chat__panel { width: min(370px, calc(100vw - 32px)); height: min(520px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 18px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px rgb(20 30 50 / .5); overflow: hidden; }
.vx-chat__panel[hidden] { display: none; }
.vx-chat__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.vx-chat__head img { width: 30px; } .vx-chat__head b { display: block; font-weight: 500; } .vx-chat__head small { color: var(--muted); font-size: 13px; }
.vx-chat__x { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; font-size: 22px; color: var(--muted); cursor: pointer; }
.vx-chat__log { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.vx-chat__log .ins-msg { font-size: 14px; } .vx-chat__log .link { font-size: 14px; }
.vx-chat__sug { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.vx-chat__sug button { padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 13px/1 var(--font-text); cursor: pointer; }
.vx-chat__sug button:hover { border-color: var(--line-strong); }
.vx-chat__in { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.vx-chat__in input { flex: 1; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); font: 400 16px/1 var(--font-text); color: var(--ink); background: var(--bg); }
.vx-chat__in button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--action); color: #fff; display: grid; place-items: center; cursor: pointer; } .vx-chat__in svg { width: 20px; height: 20px; }

/* ---------- three steps: alternating cards with live mini screens ---------- */
.steps-x { display: grid; gap: var(--s-5); margin-top: var(--s-7); }
.sx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--s-7); padding: var(--s-3); border-radius: 24px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 20px 50px -40px rgb(20 30 50 / .5); }
.sx:nth-child(even) .sx__vis { order: 2; }
.sx__vis { --p: .5; position: relative; height: 380px; border-radius: 18px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(70% 70% at 30% 20%, color-mix(in oklab, var(--ground-surface) 70%, white), transparent 70%), radial-gradient(60% 60% at 80% 100%, color-mix(in oklab, var(--ground-bg) 70%, var(--ground-accent)), transparent 70%), var(--ground-bg); }
.sx--dark .sx__vis { background: radial-gradient(60% 50% at 50% 100%, #2a5ccf, transparent 70%), radial-gradient(80% 80% at 50% 0%, #1d2b48, #0f1729); }
.sx__vis::before, .sx__vis::after { content: ""; position: absolute; inset: 18px; pointer-events: none; border: 1px solid rgb(255 255 255 / .45); border-radius: 4px; }
.sx__vis::after { inset: 0; border: 0; background:
  linear-gradient(#fff, #fff) 18px 12px / 1px 12px no-repeat, linear-gradient(#fff, #fff) 12px 18px / 12px 1px no-repeat,
  linear-gradient(#fff, #fff) calc(100% - 18px) 12px / 1px 12px no-repeat, linear-gradient(#fff, #fff) calc(100% - 24px) 18px / 12px 1px no-repeat,
  linear-gradient(#fff, #fff) 18px calc(100% - 12px) / 1px 12px no-repeat, linear-gradient(#fff, #fff) 12px calc(100% - 18px) / 12px 1px no-repeat,
  linear-gradient(#fff, #fff) calc(100% - 18px) calc(100% - 12px) / 1px 12px no-repeat, linear-gradient(#fff, #fff) calc(100% - 24px) calc(100% - 18px) / 12px 1px no-repeat; opacity: .8; }
.sx__win { position: relative; z-index: 1; width: min(400px, 82%); border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 30px 50px -26px rgb(10 20 40 / .6); overflow: hidden;
  transform: translateY(calc((1 - var(--p)) * 34px)) scale(calc(.93 + var(--p) * .07)); transition: transform .2s linear; font: 400 13px/1.4 var(--font-text); color: #334155; }
.sx__bar { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #edf0f4; font: 500 11px/1 var(--font-mono); color: #8a93a2; }
.sx__body { padding: 12px 14px; display: grid; gap: 8px; min-height: 196px; }
.sx__foot { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid #edf0f4; font: 500 11px/1 var(--font-mono); color: #8a93a2; }
.sx__foot b { color: #0f7a46; font-weight: 600; }
.sx__txt { padding: var(--s-6) var(--s-7) var(--s-6) var(--s-4); display: grid; gap: var(--s-3); align-content: center; }
.sx:nth-child(even) .sx__txt { padding: var(--s-6) var(--s-4) var(--s-6) var(--s-7); }
.sx__tag { font: 500 13px/1 var(--font-text); color: var(--action); }
.sx__txt h3 { font: 500 clamp(24px, 1vw + 18px, 32px)/1.15 var(--font-display); letter-spacing: -.02em; }
.sx__txt p { margin: 0; color: var(--muted); max-width: 44ch; }
.sx__txt code { justify-self: start; font: 400 12px/1 var(--font-mono); padding: 7px 9px; border-radius: 6px; background: var(--surface); color: var(--muted); }
/* step 1: a file arrives, uploads, is matched */
.sx-file { display: grid; grid-template-columns: 30px minmax(0, 1fr) 36px; gap: 10px; align-items: center; padding: 10px; border-radius: 9px; box-shadow: 0 0 0 1px #edf0f4; opacity: 0; transform: translateY(10px); transition: all .45s var(--ease); }
.sx-file .ha-pdf { height: 30px; font-size: 9px; } .sx-file b { font-weight: 500; display: block; margin-bottom: 6px; font-size: 12.5px; }
.sx-file .ha-bar i { transition: width 1.2s var(--ease); }
.sx-line { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px; border-bottom: 1px solid #f1f3f6; opacity: 0; transform: translateY(6px); transition: all .4s var(--ease); font-size: 12.5px; }
.sx-line b { font-weight: 500; } .sx-ok { font: 600 10.5px/1 var(--font-mono); padding: 5px 7px; border-radius: 6px; background: #e5f6ee; color: #0f7a46; }
.sx-cite { font: 500 10.5px/1 var(--font-mono); padding: 5px 7px; border-radius: 6px; background: #e6efff; color: #1d4ed8; }
.sx-flag { font: 600 10.5px/1 var(--font-mono); padding: 5px 7px; border-radius: 6px; background: #fdecec; color: #c4302b; }
.sx.is-play .sx-file { opacity: 1; transform: none; } .sx.is-play .sx-file .ha-bar i { width: 100%; }
.sx.is-play .sx-line { opacity: 1; transform: none; }
.sx.is-play .sx-line:nth-child(2) { transition-delay: .9s; } .sx.is-play .sx-line:nth-child(3) { transition-delay: 1.2s; } .sx.is-play .sx-line:nth-child(4) { transition-delay: 1.5s; } .sx.is-play .sx-line:nth-child(5) { transition-delay: 1.8s; } .sx.is-play .sx-line:nth-child(6) { transition-delay: 2.1s; }
/* step 2: a scan line reads the page, values land with their page */
.sx-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #f25a3c; box-shadow: 0 0 12px #f25a3c; opacity: 0; }
.sx.is-play .sx-scan { animation: sx-scan 2.6s var(--ease) .2s both; }
@keyframes sx-scan { 0% { opacity: 1; top: 0; } 90% { opacity: 1; } 100% { opacity: 0; top: 100%; } }
/* step 3: flags get checked off */
.sx-check .sx-flag { transition: all .3s; } .sx.is-fixed .sx-check .sx-flag { background: #e5f6ee; color: #0f7a46; }
.sx.is-fixed .sx-check b { text-decoration: line-through; color: #8a93a2; }
.sx-check .t-ok { display: none; } .sx.is-fixed .sx-check .t-ok { display: inline; } .sx.is-fixed .sx-check .t-flag { display: none; }
.sx-btns { display: flex; gap: 6px; margin-top: 4px; } .sx-btns span { flex: 1; text-align: center; padding: 8px; border-radius: 7px; background: #f3f5f9; font: 500 11px/1 var(--font-text); transition: all .3s; }
.sx.is-fixed .sx-btns span:first-child { background: #2563eb; color: #fff; }
@media (max-width: 1023px) { .sx { grid-template-columns: 1fr; } .sx:nth-child(even) .sx__vis { order: 0; } .sx__txt, .sx:nth-child(even) .sx__txt { padding: var(--s-4); } .sx__vis { height: 320px; } }
@media (max-width: 639px) { .sx__vis { height: 300px; } .sx__win { width: 90%; } }
@media (prefers-reduced-motion: reduce) { .sx__win { transform: none; } .sx-file, .sx-line { opacity: 1; transform: none; transition: none; } .sx-file .ha-bar i { width: 100%; } .sx-scan { display: none; } }

.ha-body { transition: opacity .45s var(--ease); }

/* ---------- hero: a soft ring where the app is "clicked" (no cursor) ---------- */
.is-tap { animation: ha-tap .9s var(--ease); }
@keyframes ha-tap { 0% { box-shadow: 0 0 0 0 rgb(37 99 235 / .45); } 60% { box-shadow: 0 0 0 7px rgb(37 99 235 / .12); } 100% { box-shadow: 0 0 0 0 rgb(37 99 235 / 0); } }

/* ---------- source links: blue and clearly clickable ---------- */
.src-link { color: #2563eb; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; white-space: nowrap; }
.src-link::after { content: "↗"; display: inline-block; margin-left: 3px; font-weight: 500; transition: transform var(--dur) var(--ease); }
.src-link:hover { color: #1d4ed8; } .src-link:hover::after { transform: translate(2px, -2px); }

/* ---------- reviewer flags: the original amber box ---------- */
.flags { margin-top: var(--s-5); padding: 20px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; }
.flags h3 { margin: 0; font: 600 14px/20px var(--font-display); letter-spacing: 0; color: #78350f; }
.flags ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 20px; color: rgb(120 53 15 / .9); }
.flags li::before { content: "• "; }

.plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1279px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .plans { grid-template-columns: 1fr; } }
.calc__inputs input[type=range] { height: 32px; }

/* ---------- why it's different: four animated cards ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.wx { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-3) var(--s-3) var(--s-5); border-radius: 20px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 20px 50px -40px rgb(20 30 50 / .5); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.wx:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-strong), 0 26px 50px -36px rgb(20 30 50 / .55); }
.wx h3 { font-size: var(--t-card); padding: var(--s-3) var(--s-3) 0; } .wx > p { margin: 0; padding: 0 var(--s-3); color: var(--muted); }
.wx__vis { position: relative; height: 190px; border-radius: 14px; overflow: hidden; padding: 16px; display: grid; align-content: center; gap: 8px; font: 400 12.5px/1.4 var(--font-text); color: #334155;
  background: radial-gradient(70% 70% at 25% 15%, color-mix(in oklab, var(--ground-surface) 70%, white), transparent 70%), var(--ground-bg); }
.wx__vis > div { background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px rgb(0 0 0 / .05), 0 12px 24px -18px rgb(10 20 40 / .5); }
/* source: value → line → highlighted passage */
.wx-val { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 8px 10px; width: 70%; }
.wx-val small { grid-column: 1 / -1; font: 500 10px/1 var(--font-mono); color: #8a93a2; text-transform: uppercase; letter-spacing: .06em; } .wx-val b { font-weight: 600; }
.wx-line { position: absolute; left: 24%; top: 74px; width: 40%; height: 34px; overflow: visible; background: none !important; box-shadow: none !important; }
.wx-line path { fill: none; stroke: #2563eb; stroke-width: 1.5; stroke-dasharray: 80; stroke-dashoffset: 80; vector-effect: non-scaling-stroke; }
.wx-page { justify-self: end; width: 78%; padding: 10px 12px; display: grid; gap: 6px; } .wx-page p { margin: 0; font: 400 11.5px/1.5 Georgia, serif; color: #2b333f; }
.wx-page i { display: block; height: 6px; border-radius: 3px; background: #eceff3; } .wx-page i.s { width: 60%; }
.wx-page mark { background: transparent; transition: background-color .5s .9s, box-shadow .5s .9s; }
.wx.is-play .wx-line path { animation: wx-draw .9s var(--ease) .2s forwards; } .wx.is-play .wx-page mark { background: #fff2a8; box-shadow: 0 0 0 2px #fff2a8; }
@keyframes wx-draw { to { stroke-dashoffset: 0; } }
/* zero retention: read, then gone */
.wx-file { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; transition: opacity .5s 1.6s, transform .5s 1.6s, filter .5s 1.6s; }
.wx-file .ha-pdf { height: 30px; font-size: 9px; } .wx-file b { font-weight: 500; display: block; margin-bottom: 6px; } .wx-file .ha-bar i { transition: width 1.2s var(--ease) .2s; }
.wx-gone { padding: 10px; display: grid; gap: 6px; justify-items: start; opacity: 0; transform: translateY(8px); transition: opacity .4s 1.9s, transform .4s 1.9s; } .wx-gone small { color: #8a93a2; font-size: 11px; }
.wx.is-play .wx-file .ha-bar i { width: 100%; } .wx.is-play .wx-file { opacity: .25; transform: scale(.94); filter: blur(1.5px); } .wx.is-play .wx-gone { opacity: 1; transform: none; }
/* templates: the list cycles, then rests on one */
.wx-list { display: grid; padding: 6px; gap: 2px; max-height: 118px; overflow: hidden; }
.wx-list span { padding: 6px 10px; border-radius: 7px; color: #5d6674; transition: background-color .25s, color .25s; }
.wx-list span.is-on { background: #eaf1ff; color: #1d4ed8; font-weight: 500; }
.wx-pick { padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; opacity: 0; transition: opacity .4s; } .wx-pick small { color: #8a93a2; font-size: 11px; }
.wx.is-picked .wx-pick { opacity: 1; }
/* exports: the same data as PDF, CSV, JSON */
.wx-tabs { display: flex; gap: 4px; padding: 5px; justify-self: start; } .wx-tabs span { padding: 5px 10px; border-radius: 6px; font: 500 11px/1 var(--font-mono); color: #8a93a2; transition: background-color .25s, color .25s; }
.wx-tabs span.is-on { background: #2563eb; color: #fff; }
.wx-out { position: relative; height: 92px; } .wx-out > div { position: absolute; inset: 0; padding: 12px; opacity: 0; transition: opacity .35s; display: grid; align-content: center; gap: 6px; }
.wx-out > div.is-on { opacity: 1; } .wx-out small { color: #8a93a2; font-size: 10.5px; } .wx-out sup { color: #1d4ed8; font-weight: 600; }
.wx-out code { font: 400 11px/1.6 var(--font-mono); color: #334155; }
@media (max-width: 1279px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .why-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wx-line path { stroke-dashoffset: 0; } .wx * { transition: none !important; animation: none !important; } }

.wx-list { -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.plan { display: flex; flex-direction: column; } .plan ul { margin-bottom: var(--s-4); } .plan .btn { margin-top: auto; }

/* why cards v2: animations restart on every replay */
.wx-file, .wx-gone, .wx-file .ha-bar i, .wx-page mark { transition: none !important; }
.wx.is-play .wx-file .ha-bar i { animation: wx-bar 1.2s var(--ease) .2s both; }
.wx.is-play .wx-file { animation: wx-gone-file .5s var(--ease) 1.5s both; }
.wx.is-play .wx-gone { animation: wx-in .45s var(--ease) 1.8s both; }
.wx.is-play .wx-page mark { animation: wx-mark .5s var(--ease) .9s both; }
.wx:not(.is-play) .wx-gone { opacity: 0; }
@keyframes wx-bar { from { width: 0; } to { width: 100%; } }
@keyframes wx-gone-file { from { opacity: 1; transform: none; filter: none; } to { opacity: .25; transform: scale(.94); filter: blur(1.5px); } }
@keyframes wx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes wx-mark { from { background: transparent; box-shadow: none; } to { background: #fff2a8; box-shadow: 0 0 0 2px #fff2a8; } }
/* templates: a moving track keeps the active row in view */
.wx-list { position: relative; height: 118px; max-height: none; overflow: hidden; display: block; padding: 0; }
.wx-list__track { display: grid; gap: 2px; padding: 6px; transition: transform .4s var(--ease); }

/* ---------- FAQ: official-style icon, lifts on hover ---------- */
.faq > .faq__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-2); padding: var(--s-5) var(--s-4); border-radius: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease); }
.faq > .faq__item:first-child { padding-top: var(--s-5); }
.faq > .faq__item > h3, .faq > .faq__item > p { grid-column: 2; }
.faq__ic { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #eef3fb; color: #22334e; box-shadow: inset 0 0 0 1px #d8e1ee; transition: background-color .25s, color .25s; }
.faq__ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.faq > .faq__item:hover { transform: translateY(-4px); background: var(--bg); border-color: transparent; box-shadow: 0 0 0 1px var(--line), 0 18px 36px -24px rgb(20 30 50 / .45); }
.faq > .faq__item:hover .faq__ic { background: #22334e; color: #fff; }
@media (prefers-reduced-motion: reduce) { .faq > .faq__item:hover { transform: none; } }

/* ---------- Inspector v2: one card, suggested questions + a framed chat window ---------- */
.insx { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); align-items: stretch; padding: var(--s-3); border-radius: 24px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 20px 50px -40px rgb(20 30 50 / .5); }
.insx__side { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5) var(--s-2) var(--s-5) var(--s-4); }
.insx__label { margin: 0; font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.insx__qs { display: grid; gap: var(--s-2); }
.insx__qs button { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 15px/1.35 var(--font-text); cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease); }
.insx__qs button svg { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform .2s var(--ease), color .2s; }
.insx__qs button:hover { border-color: var(--line-strong); transform: translateX(3px); } .insx__qs button:hover svg { transform: translateX(2px); color: var(--action); }
.insx__qs button[aria-pressed="true"] { border-color: var(--action); background: color-mix(in oklab, var(--action) 6%, var(--bg)); } .insx__qs button[aria-pressed="true"] svg { color: var(--action); }
.insx__note { margin: auto 0 0; padding-top: var(--s-3); color: var(--muted); font-size: 13px; } .insx__side .btn { align-self: flex-start; }
.insx__vis { position: relative; min-height: 380px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; padding: var(--s-6);
  background: radial-gradient(70% 70% at 30% 20%, color-mix(in oklab, var(--ground-surface) 70%, white), transparent 70%), radial-gradient(60% 60% at 80% 100%, color-mix(in oklab, var(--ground-bg) 70%, var(--ground-accent)), transparent 70%), var(--ground-bg); }
.insx__vis::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgb(255 255 255 / .45); border-radius: 4px; pointer-events: none; }
.insx__win { position: relative; z-index: 1; width: min(520px, 100%); height: 330px; display: flex; flex-direction: column; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 30px 50px -26px rgb(10 20 40 / .55); }
.insx__bar { display: flex; justify-content: space-between; gap: var(--s-3); padding: 11px 14px; border-bottom: 1px solid #edf0f4; font: 500 11px/1 var(--font-mono); color: #8a93a2; }
.insx__doc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.insx__live { display: inline-flex; align-items: center; gap: 6px; color: #1d4ed8; } .insx__live b { width: 6px; height: 6px; border-radius: 50%; background: #16a35f; }
.insx__log { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.insx__log .ins-msg { font-size: 14px; }
.insx__in { display: flex; align-items: center; gap: 8px; margin: 0 12px 12px; padding: 0 6px 0 12px; height: 42px; border-radius: 10px; box-shadow: 0 0 0 1px #dfe3e9; font-size: 14px; color: #334155; }
.insx__typed { flex: 1; white-space: nowrap; overflow: hidden; } .insx__typed:empty::before { content: "Ask about this document"; color: #9aa3b0; }
.insx__send { width: 30px; height: 30px; border-radius: 8px; background: #2563eb; color: #fff; display: grid; place-items: center; } .insx__send svg { width: 16px; height: 16px; }
@media (max-width: 1023px) { .insx { grid-template-columns: 1fr; } .insx__side { padding: var(--s-4) var(--s-3) 0; } .insx__note { margin-top: 0; } }
@media (max-width: 639px) { .insx__vis { padding: var(--s-3); min-height: 0; } .insx__win { height: 320px; } }

/* zero-retention card: quicker read-then-delete */
.wx.is-play .wx-file .ha-bar i { animation-duration: .7s; animation-delay: .1s; }
.wx.is-play .wx-file { animation-delay: .85s; }
.wx.is-play .wx-gone { animation-delay: 1.05s; }
.legal__nav { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.legal { max-width: 760px; margin-top: var(--s-8); display: grid; gap: var(--s-8); }
.legal__sec { scroll-margin-top: 96px; } .legal__sec h2 { font-size: 28px; margin: 0 0 var(--s-3); } .legal__sec p { color: var(--muted); margin: 0 0 var(--s-3); max-width: 68ch; }
.vx-chat__lead { display: flex; gap: 6px; margin-top: 8px; } .vx-chat__lead input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); font: inherit; font-size: 14px; }
.vx-chat__lead .btn { height: 34px; padding: 0 12px; } .vx-chat__more { margin-top: 8px; font-size: 13px; } .vx-chat__more summary { cursor: pointer; color: var(--action); } .vx-chat__ok { color: #16794a; margin-top: 8px; }


/* ---- fit pass (Nov 8): laptop screens and phones ----
   1. Laptops (1024-1599 wide): the layout was tuned at 1440x900+, so on a 1280 or 1366 screen (or a
      1920 screen at 125-150% Windows scaling) type and spacing read too large. Scale them down. */
@media (min-width: 1024px) and (max-width: 1599px) {
  :root { --padt: 96px; --padb: 56px; --hgap: 32px; --hpadb: 48px; --head-gap: 36px;
    --t-h2: clamp(28px, 1.4vw + 16px, 40px); --ly-lead: 17px;
    --ly-h1-col: clamp(42px, 2.4vw + 17px, 56px); --ly-h1: clamp(42px, 2.6vw + 17px, 60px); }
}
/* short laptop screens (browser bars take the height): less air above and below each section */
@media (min-width: 1024px) and (max-height: 760px) {
  :root { --padt: 84px; --padb: 44px; --hgap: 24px; --hpadb: 36px; }
}
/* 2. Phones and tablets: the hero grows with its content instead of squeezing the workspace window
      into what is left of one screen, so the whole window shows */
@media (max-width: 1023px) {
  main > .hero.hero--collage { height: auto; min-height: 0; }
  .hero--collage > .wrap, .hero--collage > .wrap > .hero-text { height: auto; }
  .hero__grid.vx-hero-grid > .hero__art { flex: none; height: auto; min-height: 0; }
}

/* ---- fit pass 2 (Nov 8) ---- */
/* a long button label wraps onto two lines on a phone instead of running out of the button */
@media (max-width: 639px) {
  .btn { white-space: normal; height: auto; min-height: var(--btn-h); padding-block: 10px; line-height: 1.3; text-align: center; }
}
/* the three steps on phones and tablets: the frame grows with its window, so nothing is cut */
@media (max-width: 1023px) {
  .sx__vis { height: auto; min-height: 260px; padding: 36px 0; }
  .sx__win { transform: none; }
}
@media (max-width: 639px) { .sx__vis { padding: 28px 0; } .sx__win { width: 88%; } }
/* the Inspector on phones and tablets: the answer screen first, the suggested questions under it */
@media (max-width: 1023px) { .inspector__a, .insx__vis { order: -1; } .insx__side { padding-top: var(--s-2); } }

/* FAQ sections grew taller (Nov 8): keep the heading and its line together at the top, following the list on wide screens */
#faq .section-head { align-self: start; align-content: start; }
@media (min-width: 1024px) { #faq .section-head { position: sticky; top: calc(var(--nav) + var(--s-6)); } }

/* ---------------------------------------------------------------- global palette (Nov 10)
   White grounds, deep slate type, navy for structure, and royal blue held back for actions,
   document outlines, highlighted spans and citations. These override the per-page :root block. */
:root {
  --p-bg: #ffffff; --p-surface: #f1f5f9; --p-ink: #334155; --p-muted: #475569;
  --p-accent: #334155; --p-accent-ink: #ffffff; --p-action: #2563eb; --p-action-ink: #ffffff;
  --p-inv-bg: #334155; --p-inv-surface: #1e293b; --p-inv-ink: #f8fafc; --p-inv-muted: #94a3b8;
  --p-inv-accent: #ffffff; --p-inv-accent-ink: #334155; --p-inv-action: #2563eb; --p-inv-action-ink: #ffffff;
  --bg: #ffffff; --surface: #f1f5f9; --card: #ffffff; --ink: #334155; --muted: #475569;
  --accent: #334155; --accent-ink: #ffffff; --action: #2563eb; --action-ink: #ffffff;
  --line: rgba(15,23,42,.11); --line-strong: rgba(15,23,42,.22);
  --ground-bg: #e8edf3; --ground-surface: #f1f5f9; --ground-ink: #334155; --ground-muted: #475569; --ground-accent: #94a3b8;
}
html[data-ground] { --ground-bg: #e8edf3; --ground-surface: #f1f5f9; --ground-ink: #334155; --ground-muted: #475569; --ground-accent: #94a3b8; }

/* the hero band on white, with one faint dark-slate glow behind it */
.hero__art, .hero--photo { background-color: #ffffff; }
.hero__art { background-image:
    radial-gradient(58% 48% at 26% 22%, rgba(15,23,42,.09), transparent 72%),
    radial-gradient(70% 60% at 90% 100%, color-mix(in oklab, var(--ground-surface) 72%, white), transparent 70%); }

/* deep navy structure: dark bands, active state pills and the closing footer */
.section--dark, .band--dark, footer.closing, .footer--statement {
  background: var(--p-inv-bg); color: var(--p-inv-ink);
  --bg: var(--p-inv-bg); --surface: var(--p-inv-surface); --card: var(--p-inv-surface);
  --ink: var(--p-inv-ink); --muted: var(--p-inv-muted);
  --line: rgba(255,255,255,.14); --line-strong: rgba(255,255,255,.28);
  --accent: #ffffff; --accent-ink: #334155; --action: #2563eb; --action-ink: #ffffff;
}
footer.closing .vx-logo { color: var(--p-inv-ink); }
footer.closing .vx-logo__name b { color: var(--p-inv-ink); }
footer.closing .vx-logo__name b span { color: #cbd5e1; }
footer.closing .vx-logo__name small { color: var(--p-inv-muted); }

/* the one vivid blue left in the data: citations, highlighted spans and the pressed row ring */
.d-cite, .field[aria-pressed="true"] .d-cite, .paper__note { color: #2563eb; background: #eff6ff; }

/* primary actions: royal blue, lifting on hover */
.btn--primary { background: var(--p-action); color: var(--p-action-ink); }
.btn--primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(37,99,235,.7); }

/* the mock workspace windows: navy for structure and active states, royal blue only for
   actions, document outlines and citations */
.ha-side > span.is-on, .ha-side > span.is-hl, .ha-tab.is-on,
.sx.is-fixed .sx-btns span:first-child, .wx-tabs span.is-on { background: var(--p-inv-bg); color: #fff; }
.ha-side > span.is-on i, .ha-side > span.is-hl i { background: #fff; }
.ha-msg--me { background: var(--p-inv-bg); color: #fff; }
.ha-drop svg, .ha-pct { color: var(--p-ink); }
.wx-line path { stroke: var(--p-ink); }
.ha-btn, .ha-bar i, .insx__send { background: #2563eb; }
.ha-btn.is-press { background: #1d4ed8; }
.ha-input span::after { background: #2563eb; }
.ha-pop span { color: #2563eb; }

/* ---------- the workspace window on the inner pages: extraction table beside the source / inspector ---------- */
.lab{ margin-top: 26px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 30px 70px -40px rgba(8,20,60,.5); overflow: hidden; }
.lab__bar{ display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #f6f8fb; font: 500 12px/1 var(--font-mono); color: #8a93a2; }
.lab__dots{ display: flex; gap: 5px; } .lab__dots i{ width: 9px; height: 9px; border-radius: 50%; background: #d9dee6; }
.lab__url{ flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab__tabs{ display: flex; gap: 4px; }
.lab__tab{ padding: 7px 14px; border-radius: 8px; border: 0; background: none; font: 600 14.5px/1 var(--font-text); letter-spacing: .005em; color: var(--muted); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.lab__tab:hover{ color: var(--ink); }
.lab__tab.on{ background: #334155; color: #fff; }
.lab__pane[hidden]{ display: none; }
.lab__body{ display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.lab__main{ padding: 16px 20px 20px; min-width: 0; }
.lab__main > .abstract{ margin-top: 0; }
.lab__side{ min-width: 0; border-left: 1px solid var(--line); background: #f6f8fb; align-self: stretch; }
.lab__side [data-pane="source"]{ padding: 16px; }
.lab__side .insx{ display: flex; flex-direction: column; gap: 0; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.lab__side .insx__vis{ order: -1; min-height: 0; padding: 16px; border-radius: 0; background: #f1f5f9; }
.lab__side .insx__vis::before{ display: none; }
.lab__side .insx__win{ width: 100%; height: 340px; }
.lab__side .insx__side{ padding: 16px 16px 18px; gap: 10px; }
.lab__side .insx__qs button{ padding: 10px 12px; font-size: 14px; }
.lab__side .insx__note{ margin-top: 4px; font-size: 12.5px; }
/* the side column runs the Inspector first and the cited document under it, on every window */
.lab__side{ display: flex; flex-direction: column; }
.lab__pane[data-pane="inspector"]{ order: -1; }
.lab--both .lab__pane[data-pane="source"]{ border-top: 1px solid var(--line); padding-bottom: 12px; }
.lab .ab-row{ grid-template-columns: 140px minmax(0, 1fr) 140px; }
.lab .ab-row .ab-src{ font-size: 11px; }
@media (max-width: 1023px){ .lab__body{ grid-template-columns: 1fr; } .lab__side{ border-left: 0; border-top: 1px solid var(--line); } .lab .ab-row{ grid-template-columns: 130px minmax(0, 1fr); } }
@media (max-width: 639px){ .lab__main{ padding: 12px; } .lab .ab-row{ grid-template-columns: 1fr; } }

/* ---------- the folder with pages lifting out, centred, on the pages without the homepage script ---------- */
.vx-rise{ position: relative; height: clamp(170px, 26svh, 300px); margin: clamp(-8px, -1vh, 0px) 0 0; }
.vx-rise canvas{ position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 820px); height: 100%; display: block; pointer-events: none; }

/* ---------- hero: the workspace window takes the room to its right ---------- */
/* The window is drawn at a fixed 980 x 640 and scaled to its column, so a wider column is also a
   taller window; the hero text keeps its own 5 columns, and the page rhythm below is untouched. */
.hero > .wrap{ width: min(100% - 2 * var(--gut), 1440px); }
.hero__grid.vx-hero-grid > .hero__art{ padding: var(--s-5); }
@media (max-width: 1023px){ .hero > .wrap{ width: min(100% - 2 * var(--gut), 100%); } .hero__grid.vx-hero-grid > .hero__art{ padding: var(--s-6); } }

/* ---------- the rising columns of extracted values that hand off into the footer ---------- */
.wipe{ position: relative; height: min(46svh, 420px); min-height: 220px; margin: 0; overflow: hidden; }
.wipe canvas{ position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; cursor: default; }

/* ---------- the Inspector: its tab wears a red dot until it is opened, and its input is real ---------- */
.lab__tab{ position: relative; }
.lab__tab.is-peep{ padding-right: 23px; }
.lab__peep{ display: none; position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: #e11d48; }
.lab__tab.is-peep .lab__peep{ display: block; }
.lab__tab.is-peep .lab__peep::after{ content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid #e11d48; opacity: 0; animation: lab-peep 2.2s ease-out infinite; }
@keyframes lab-peep{ 0%{ transform: scale(.55); opacity: .85; } 70%,100%{ transform: scale(1.9); opacity: 0; } }
.insx__in .insx__type{ flex: 1; min-width: 0; border: 0; background: none; padding: 0; font: inherit; color: inherit; }
.insx__in .insx__type:focus{ outline: none; }
.insx__in .insx__type::placeholder{ color: #9aa3b0; }
.insx__in button.insx__send{ border: 0; padding: 0; cursor: pointer; flex: none; }

/* directory as industry cards (homepage): the pages live on each industry page's Templates section */
.dir--hubs{ display: block; }
.dir__hubs{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.dir__hub{ display: flex; flex-direction: column; gap: 6px; padding: 18px var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.dir__hub:hover{ border-color: var(--action); transform: translateY(-2px); box-shadow: 0 14px 30px -24px rgb(20 30 50 / .5); }
.dir__hub-name{ font: 600 17px/1.25 var(--font-text); }
.dir__hub-short{ font-size: 14px; line-height: 1.45; color: var(--muted); }
.dir__hub-n{ margin-top: auto; padding-top: 8px; color: var(--action); font: 500 13px/1.3 var(--font-mono); }
.dir__hub-n i{ font-style: normal; }
@media (max-width: 1023px){ .dir__hubs{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px){ .dir__hubs{ grid-template-columns: 1fr; } }
#templates{ scroll-margin-top: 96px; }

/* ---------- phones: the inner pages keep the homepage's side margin (18px), not the 24px used from 640 up ---------- */
@media (max-width: 639px){ :root{ --gut: 18px; } }

/* Desktop: the sample workspace window uses the real workspace's type (Inter, semibold mono values) at sizes that read at 100% zoom.
   The homepage carries the same rules in home-v2-parts.css. */
@media (min-width:1024px){
  main .lab .lab__bar{ font-size:13px; }
  main .lab .lab__tabs span, main .lab .lab__tabs button{ font-size:15px; }
  main .lab .demo__label, main .lab .insx__label{ font-size:11px; font-weight:600; letter-spacing:.2em; }
  main .lab .demo-chip{ font-size:15.5px; }
  main .lab .demo__src{ font-size:15.5px; line-height:1.6; }
  main .lab .abstract.xr .abstract__bar{ font-size:12px; }
  main .lab .xr__cited{ font-size:11.5px; }
  main .lab .xr__head, main .lab .abstract.xr .ab-row{ grid-template-columns:minmax(150px,.7fr) minmax(0,1.9fr) 200px; gap:18px; }
  main .lab .xr__head{ font-family:var(--font-text); font-size:11px; font-weight:600; letter-spacing:.14em; }
  main .lab .abstract.xr .ab-row > b{ font-size:12.5px; letter-spacing:.05em; line-height:1.5; color:#64748b; }
  main .lab .abstract.xr .ab-row > span{ font-family:var(--font-mono); font-size:15.5px; font-weight:600; letter-spacing:-.02em; font-variant-numeric:tabular-nums; line-height:1.5; }
  main .lab .abstract.xr .ab-src{ font-size:13px; }
  main .lab .abstract.xr .ab-quote{ font-size:15.5px; }
  main .lab .abstract.xr .ab-quote small, main .lab .abstract.xr .ab-quote .see-doc{ font-size:12px; }
  main .lab .xr__note{ font-size:13.5px; }
  main .lab .flags h3{ font-size:11px; }
  main .lab .flags li{ font-size:15px; line-height:1.5; }
  main .lab .srcx__file, main .lab .srcx__pg{ font-size:12px; }
  main .lab .srcx__page .srcx__pg, main .lab .srcx__ref{ font-size:11px; }
  main .lab .srcx__q, main .lab .srcx__p{ font-size:15px; }
  main .lab .srcx__note{ font-size:13px; }
  main .lab .srcx__hint{ font-size:13.5px; }
  main .lab .insx__live, main .lab .insx__doc{ font-size:12px; }
  main .lab .insx__log .ins-msg, main .lab .ins-msg{ font-size:15.5px; line-height:1.625; }
  main .lab .insx__in{ font-size:16px; }
  main .lab .lab__side .insx__qs button{ font-size:15px; }
  main .lab .lab__side .insx__note{ font-size:13.5px; }
  main .lab .d-cite{ font-size:13px; }
  main .lab .ins-tag{ font-size:12px; }
