/* =====================================================================
   v4 (23 Nov), after thisisask.com.
   1. Themes: light (paper) and dark (Ask's near-black), Auto by default.
   2. Middle: each section opens with a two-tone title on the left and a
      short aside on the right; then cards. A card is an outer frame with
      8px padding, a recessed stage holding a live mock, and the title and
      one line underneath. Same structure as Ask's .bf-card / .bf-stage.
   ===================================================================== */

/* ---------- theme tokens ---------- */
:root {
  --on-ink: #FFFFFF;          /* text on an ink-filled button */
  --ghost: rgb(23 20 15 / .06);
  --ghost-2: rgb(23 20 15 / .11);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0A09;
  --panel: #121211;
  --soft: #1C1C1A;
  --line: #262521;
  --line-2: #33322D;
  --ink: #EDEBE5;
  --ink-2: #A3A199;
  --ink-3: #8A887F;
  --blue: #7D8EFF;
  --blue-d: #A8B4F5;
  --blue-2: #171B33;
  --blue-3: #2A3366;
  --green: #9ED3AE;
  --on-ink: #0A0A09;
  --ghost: rgb(255 255 255 / .07);
  --ghost-2: rgb(255 255 255 / .12);
}

/* ---------- theme switch (header) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.theme { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--ghost); }
.theme button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease); }
.theme button:hover { color: var(--ink); }
.theme button[aria-checked="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme svg .fill { fill: currentColor; stroke: none; }
.top .theme { margin-left: 4px; }
@media (max-width: 760px) { .top .theme { margin-left: auto; } .top .btn-sm { margin-left: 0; } }

/* ---------- the chrome in dark: hero, buttons, consent, footer ---------- */
html, body { transition: background-color .3s var(--ease); }
.sky { background: var(--bg); }
.top { background: transparent; }
.btn-main, .btn-sm { color: var(--on-ink); }
.btn-ghost { background: var(--ghost); }
.btn-ghost:hover { background: var(--ghost-2); }
.consent-a [data-c="accept"] { color: var(--on-ink); }
[data-theme="dark"] .btn-main:hover, [data-theme="dark"] .btn-sm:hover { background: #fff; color: #0A0A09; }
[data-theme="dark"] .strip { background-color: #2E4BFF; }
[data-theme="dark"] .mark-g { background: #2E4BFF; }
[data-theme="dark"] .consent { box-shadow: 0 20px 50px -20px rgb(0 0 0 / .7); border-color: var(--line-2); }
[data-theme="dark"] .foot { background: #050505; }
[data-theme="dark"] .end { --band: #16229A; }
/* the line drawings are printed in ink on paper; in the dark, print them in reverse */
[data-theme="dark"] .stack-iso svg, [data-theme="dark"] .v4 .iso { filter: invert(.93) hue-rotate(180deg); }
[data-theme="dark"] .v4 .iso text { fill: #5E5D58; }
[data-theme="dark"] .v4 .iso .lab-on { fill: #2E4BFF; }

/* ---------- middle tokens ---------- */
.v4 {
  --band: var(--bg);
  --card: #FBF8F2;         /* frame */
  --card-line: #DCD3C2;
  --stage: #ECE5D7;        /* recessed */
  --mock: #FFFFFF;
  --mock-line: #E3DCCE;
  --mock-soft: #F5F1E9;
  --dim: #A89F90;
  --vs: #B0472E;
  padding: clamp(110px, 11vw, 168px) 0 0;
}
[data-theme="dark"] .v4 {
  --card: #121211;
  --card-line: #262521;
  --stage: #0E0E0D;
  --mock: #1C1C1A;
  --mock-line: #2E2D29;
  --mock-soft: #222220;
  --dim: #75736B;
  --vs: #E8A898;
}
.v4::before { display: none; }
#can { padding-top: clamp(64px, 7vw, 110px); }
.v4-last { padding-bottom: clamp(140px, 14vw, 210px); }
.v4 h3 { margin: 0; }

/* section head: title left, aside right (Ask's .section-head) */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 64px; }
.v4 .duo { display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: clamp(38px, 1rem + 2.8vw, 54px); font-weight: 500; line-height: 1.04; letter-spacing: -0.04em; color: var(--ink); text-wrap: balance; }
.v4 .duo span { color: var(--dim); }
.sec-aside { flex: none; width: min(440px, 40%); padding-bottom: 6px; font-size: 17px; line-height: 26px; color: var(--ink-2); text-wrap: pretty; }
.sec-aside a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.sec-aside a:hover { text-decoration-color: currentColor; }
.badge { display: inline-block; margin-bottom: 20px; padding: 4px 8px; border-radius: 5px; background: var(--ghost); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- cards ---------- */
.v4-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.v4-grid > .pn { grid-row: auto; }   /* v3's bento placed .k-trace/.k-read/.k-pause by row; not here */
.v4-grid > .pn-4 { grid-column: span 4; } .v4-grid > .pn-5 { grid-column: span 5; } .v4-grid > .pn-7 { grid-column: span 7; } .v4-grid > .pn-8 { grid-column: span 8; }
.pn { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 8px; background: var(--card); border: 0; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--card-line); overflow: hidden; }
.pn-art { position: relative; isolation: isolate; flex: 1; display: grid; place-items: center; min-height: 360px; padding: 40px 28px; background: var(--stage); border-radius: 14px; overflow: hidden; }
.pn-txt { padding: 18px 18px 14px; }
.pn-txt h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; color: var(--ink); }
.pn-txt h3 + p, .pn-txt > div > h3 + p { margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--ink-2); max-width: 54ch; }
.pn-low { margin-top: 0; }
.pn-vs { margin: 0 0 8px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.pn-vs span { color: var(--vs); }
.pn-vs code { font-size: inherit; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--vs) 60%, transparent); }

/* the floating mock */
.mock { width: min(100%, 440px); background: var(--mock); border: 1px solid var(--mock-line); border-radius: 14px; color: var(--ink); box-shadow: 0 1px 1px rgb(0 0 0 / .04), 0 24px 48px -24px rgb(0 0 0 / .35); }
[data-theme="dark"] .mock { box-shadow: 0 0 0 1px rgb(0 0 0 / .4), 0 30px 60px -20px rgb(0 0 0 / .8); }

/* reused v3 widgets, re-skinned for both themes */
.v4 .k-bar { padding: 12px 12px 0; }
.v4 .k-bar button, .v4 .rd-seg, .v4 .rd-nav { background: var(--mock); border-color: var(--mock-line); color: var(--ink); }
.v4 .rd-seg button { background: none; color: var(--ink-2); }
.v4 .rd-seg button[aria-checked="true"] { background: var(--ink); color: var(--on-ink); }
.v4 .rd-nav span { border-color: var(--mock-line); }
.v4 .rd-stage { min-height: 170px; padding: 22px 26px 26px; }
.v4 .rd-out { color: var(--ink-2); }
.v4 .rd-out.plain { color: var(--ink); font-size: clamp(19px, .9rem + .45vw, 22px); }
.v4 .pz-stage { padding: 22px 24px 18px; }
.v4 .pz-now { font-size: 19px; min-height: 2.7em; }
.v4 .pz-now span { color: var(--blue); }
.v4 .pz-track line { stroke: var(--mock-line); }
.v4 .pz-track line.maj { stroke: var(--ink-3); }
.v4 .pz-head, .v4 .pz-head::before { background: var(--blue); }
.v4 .paused .pz-head::before { background: var(--mock); outline-color: var(--blue); }
.v4 .pz-step:disabled { color: var(--ink-3); }
.v4 .k-trace .pn-art { padding-top: 56px; }
.v4 .k-trace .iso { max-width: 460px; }
.v4 .iso text { fill: var(--ink-2); }

/* approval mock */
.ok { padding: 14px 14px 12px; }
.ok-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.ok-head b { font-weight: 500; }
.ok-dot { width: 8px; height: 8px; border-radius: 50%; background: #D59A2A; box-shadow: 0 0 0 3px rgb(213 154 42 / .18); }
.ok-site { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.ok-site i { width: 8px; height: 8px; border-radius: 2px; background: var(--vs); }
.ok-q { margin: 14px 2px 10px; font-size: 17px; letter-spacing: -0.01em; }
.ok-q b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ok-rows { margin: 0 2px; display: grid; gap: 5px; font-size: 13px; }
.ok-rows div { display: grid; grid-template-columns: 76px minmax(0, 1fr); }
.ok-rows dt { color: var(--ink-3); } .ok-rows dd { margin: 0; color: var(--ink-2); }
.ok-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--mock-soft); }
.ok-state { margin-right: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); transition: color .2s; }
.ok-foot button { height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; font-weight: 500; transition: background .15s, transform .15s; }
.ok-foot button:active { transform: scale(.97); }
.ok-no { border: 1px solid var(--mock-line); background: var(--mock); color: var(--ink); }
.ok-no:hover { border-color: var(--ink-3); }
.ok-yes { border: 0; background: var(--ink); color: var(--on-ink); }
.ok-yes:hover { background: #2E4BFF; color: #fff; }
.ok[data-done] .ok-foot button { opacity: .45; pointer-events: none; }
.ok[data-done="1"] .ok-state { color: var(--green); }
.ok[data-done="0"] .ok-state { color: var(--ink); }
.ok[data-done="1"] .ok-dot { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent); }
.ok[data-done="0"] .ok-dot { background: var(--ink-3); box-shadow: none; }

/* checklist mock */
.chk { width: min(100%, 520px); padding: 6px; }
.chk li { display: grid; grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 14px; align-items: center; padding: 12px; border-radius: 10px; transition: background .3s var(--ease); }
.chk li.on { background: var(--mock-soft); }
.chk-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--blue-2); }
.chk-ico svg { width: 19px; height: 19px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chk-t b { display: block; font-size: 15px; font-weight: 500; }
.chk-t small { display: block; font-size: 13px; color: var(--ink-3); }
.chk-ok { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--mock-line); transition: background .3s var(--ease), border-color .3s var(--ease); }
.chk li.done .chk-ok { background: var(--ink); border-color: var(--ink); }
.chk li.done .chk-ok::after { content: ""; position: absolute; left: 5px; top: 2.5px; width: 4px; height: 8px; border: solid var(--on-ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

.pn-txt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 24px; align-items: end; }

/* marquee of what pages check */
.mq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.mq-in { display: flex; gap: 8px; width: max-content; animation: mq 32s linear infinite; }
.mq:hover .mq-in { animation-play-state: paused; }
.mq span { flex: none; padding: 6px 10px; border: 1px solid var(--mock-line); border-radius: 8px; background: var(--mock); font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
@keyframes mq { to { transform: translateX(calc(-50% - 4px)); } }

/* switches */
.sw-list { width: min(100%, 320px); padding: 6px; }
.sw-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 10px 11px 12px; font-size: 14.5px; }
.sw-list li + li { border-top: 1px solid var(--mock-soft); }
[data-sw] { position: relative; flex: none; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 99px; background: var(--mock-line); transition: background .2s var(--ease); }
[data-sw]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .25s var(--ease); }
[data-sw][aria-checked="true"] { background: #2E4BFF; }
[data-sw][aria-checked="true"]::after { transform: translateX(16px); }

/* $0 */
.v4 .pn-4 .pn-art { min-height: 280px; }
.free { font-family: var(--poster); font-stretch: 75%; font-weight: 900; font-size: clamp(120px, 6rem + 4vw, 190px); line-height: .8; letter-spacing: -0.02em; color: var(--ink); }

/* agents inside a card */
.pn-art-agents { place-items: stretch; align-content: center; min-height: 280px; }
.v4 .k-agents { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.v4 .ag { padding: 16px; border: 1px solid var(--mock-line); border-radius: 12px; background: var(--mock); color: var(--ink); }
.v4 .ag:hover { border-color: var(--ink-3); }
.v4 .ag-top { margin-bottom: 28px; }
.v4 .ag-ico { border-color: var(--mock-line); }
.v4 .ag-ico svg { stroke: var(--ink); }

/* ---------- proof: one big stage, three windows rising from the bottom ---------- */
.stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.1fr); gap: 20px; align-items: end; padding: clamp(28px, 3.4vw, 56px) clamp(28px, 3.4vw, 56px) 0; border-radius: 28px; background: var(--stage); box-shadow: inset 0 0 0 1px var(--card-line); }
.win { min-width: 0; display: flex; flex-direction: column; background: var(--mock); color: var(--ink); border: 1px solid var(--mock-line); border-bottom: 0; border-radius: 16px 16px 0 0; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45); }
.win-a { min-height: 390px; }
.win-b { min-height: 480px; }
.win-c { min-height: 560px; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--mock-soft); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--mock-line); }
.win-bar span { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { flex: 1; display: flex; flex-direction: column; padding: 22px 22px 26px; }
.win-body h3 { margin-top: 18px; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.win-body h3 + p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.win .k-who { margin-bottom: 14px; color: var(--ink-3); }

.seal-steps { flex: 1; display: grid; align-content: start; gap: 8px; padding: 18px 16px 8px; }
.seal-steps li { display: grid; gap: 4px; padding: 14px; border-radius: 10px; background: var(--mock-soft); font-size: 15px; line-height: 1.45; }
.seal-steps li:nth-child(2) { background: var(--ink); color: var(--on-ink); }
.seal-steps b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--blue); }
.seal-steps li:nth-child(2) b { color: #9DAEFF; }
[data-theme="dark"] .seal-steps li:nth-child(2) b { color: #2E4BFF; }
.win-note { display: flex; align-items: center; gap: 8px; padding: 10px 16px 22px; font-size: 13px; color: var(--ink-2); }
.win-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.v4 .win-b .dy-fig { padding-bottom: 30px; }
.v4 .win-b .dy-tok { padding: 14px; font-size: clamp(10.5px, .35rem + .45vw, 12.5px); letter-spacing: .1em; color: var(--ink); border: 1px solid var(--mock-line); background: var(--mock-soft); }
.v4 .win-b .dy-tok i.wait { color: var(--mock-line); }
.v4 .win-b .dy-dim { color: var(--ink-3); }
.v4 .win-b .dy-dim::before, .v4 .win-b .dy-dim::after { border-color: var(--mock-line); }
.v4 .win-b .dy-dim-x { bottom: 4px; }

.v4 .win-c .bl-ask { margin-top: 22px; }
.v4 .win-c .bl-ask span { color: var(--ink-3); }
.v4 .win-c .bl-ask input { height: 50px; font-size: 18px; color: var(--ink); background: var(--mock-soft); border: 1px solid var(--mock-line); }
.v4 .win-c .bl-ask input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-2); }
.v4 .win-c .bl-out { margin-top: 16px; gap: 5px; }
.v4 .win-c .bl-out i { border-color: var(--mock-line); color: var(--ink); font-size: clamp(12px, .4rem + .5vw, 16px); }
.v4 .win-c .bl-out i.roll { color: var(--ink-3); }
.v4 .win-c .bl-note { color: var(--ink-3); }

/* ---------- FAQ: questions in a composer, the answer comes back like a reply ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; max-width: 1040px; padding: clamp(24px, 3.4vw, 56px); border-radius: 28px; background: var(--stage); box-shadow: inset 0 0 0 1px var(--card-line); }
.faq-list { display: grid; gap: 4px; align-content: start; }
.faq-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 16px; border: 1px solid transparent; border-radius: 12px; background: none; text-align: left; font-size: 16px; color: var(--ink-3); transition: color .2s, background .2s, border-color .2s; }
.faq-list button::after { content: "↵"; font-family: var(--mono); font-size: 13px; opacity: 0; transition: opacity .2s; }
.faq-list button:hover { color: var(--ink); }
.faq-list button[aria-expanded="true"] { color: var(--ink); background: var(--mock); border-color: var(--mock-line); box-shadow: 0 10px 26px -18px rgb(0 0 0 / .4); }
.faq-list button[aria-expanded="true"]::after { opacity: .5; }
.faq-a { align-self: start; min-height: 220px; padding: 22px 24px 26px; border-radius: 16px; background: var(--mock); border: 1px solid var(--mock-line); color: var(--ink); }
.faq-who { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; }
.faq-who .mark-g { transform: scale(.85); transform-origin: left center; }
.faq-text { font-size: clamp(18px, .9rem + .4vw, 21px); line-height: 1.45; letter-spacing: -0.01em; text-wrap: pretty; }
.faq-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.faq-text.typing::after { content: ""; display: inline-block; width: .5em; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--blue); animation: pulse 1s steps(1) infinite; }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .v4-grid > .pn-7, .v4-grid > .pn-5, .v4-grid > .pn-4 { grid-column: span 6; }
  .v4-grid > .pn-8 { grid-column: span 12; }
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; padding-bottom: clamp(28px, 3vw, 48px); }
  .win { border-bottom: 1px solid var(--mock-line); border-radius: 16px; }
  .win-a { grid-column: 1 / 3; min-height: 0; }
  .seal-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .win-b, .win-c { min-height: 0; }
}
@media (max-width: 860px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
  .sec-aside { width: 100%; max-width: 560px; }
  .v4-grid > .pn { grid-column: 1 / -1; }
  .pn-txt-row { grid-template-columns: 1fr; }
  .stage { grid-template-columns: minmax(0, 1fr); }
  .win-a { grid-column: auto; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .v4 .k-agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pn { border-radius: 18px; padding: 6px; }
  .pn-art { min-height: 0; padding: 32px 12px 20px; border-radius: 13px; }
  .pn-txt { padding: 14px 14px 12px; }
  .seal-steps { grid-template-columns: 1fr; }
  .stage, .faq { padding: 14px; gap: 14px; border-radius: 20px; }
  .win-body { padding: 18px 16px 20px; }
  .v4 .win-b .dy-tok { font-size: 10px; letter-spacing: .04em; }
  .faq-list button { padding: 12px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .mq-in, .win-note i, .faq-text.typing::after { animation: none; }
  html, body { transition: none; }
}

/* ---------- replay mock ---------- */
.rp { width: min(100%, 340px); padding: 12px; }
.rp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 2px 4px 10px; font-size: 13.5px; }
.rp-head b { font-weight: 500; }
.rp-head span { font-family: var(--mono); font-size: 11px; color: var(--green); }
.rp-log { display: grid; gap: 2px; }
.rp-log li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 6px; border-radius: 7px; font-family: var(--mono); font-size: 11.5px; animation: rp 6s var(--ease) infinite; }
.rp-log li:nth-child(2) { animation-delay: 1.5s; } .rp-log li:nth-child(3) { animation-delay: 3s; } .rp-log li:nth-child(4) { animation-delay: 4.5s; }
.rp-log span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rp-log code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.rp-log em { font-style: normal; color: var(--blue); }
@keyframes rp { 0%, 22% { background: var(--mock-soft); } 25%, 100% { background: transparent; } }
.rp-bar { height: 3px; margin: 10px 4px 2px; border-radius: 3px; background: var(--mock-soft); overflow: hidden; }
.rp-bar i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; animation: rpb 6s linear infinite; }
@keyframes rpb { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.pn-vs.pn-ok span { color: var(--green); }
[data-theme="light"] .pn-vs.pn-ok span, :root:not([data-theme="dark"]) .pn-vs.pn-ok span { color: #0B7139; }

/* ---------- comparison ---------- */
.cmp { padding: 8px; }
.cmp-scroll { overflow-x: auto; border-radius: 14px; background: var(--stage); }
.cmp-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cmp table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--card-line); }
.cmp thead th { padding-top: 20px; font-size: 13px; font-weight: 500; color: var(--ink-2); vertical-align: bottom; }
.cmp tbody th { width: 24%; font-weight: 500; color: var(--ink); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td { color: var(--ink-2); }
.cmp .me { background: var(--mock); color: var(--ink); }
.cmp thead .me { color: var(--ink); font-weight: 600; border-radius: 10px 10px 0 0; }
.cmp tbody tr:last-child .me { border-radius: 0 0 10px 10px; }
.cmp i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; }
.cmp i::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; }
.cmp i.y { color: var(--ink); }
.cmp i.y::before { background: #2E4BFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cmp i.n { color: var(--ink-3); }
.cmp i.n::before { border: 1.5px solid var(--card-line); width: 11px; height: 11px; }
.cmp i.p { color: var(--ink-2); }
.cmp i.p::before { background: linear-gradient(90deg, var(--ink-3) 50%, transparent 50%); border: 1.5px solid var(--ink-3); width: 11px; height: 11px; }
.cmp small { display: block; margin-top: 3px; padding-left: 20px; font-size: 12px; color: var(--ink-3); }
.cmp-note { padding: 16px 12px 10px; font-size: 15px; color: var(--ink-2); }

/* ---------- visibility fixes ---------- */
.end .btn, .end .btn-split { color: #0A0A09; }
[data-theme="dark"] .consent-a button { background: var(--soft); border-color: var(--line-2); color: var(--ink); }
[data-theme="dark"] .consent-a [data-c="accept"] { background: #EDEBE5; border-color: #EDEBE5; color: #0A0A09; }
[data-theme="dark"] .stack-iso svg { opacity: .95; }
@media (prefers-reduced-motion: reduce) { .rp-log li, .rp-bar i { animation: none; } }

/* =====================================================================
   craft pass — 23 Nov
   Tighter rhythm, quieter chrome, better contrast. Nothing new in the
   structure; this pass only refines what v4 already builds.
   ===================================================================== */

/* ---------- header: glass once you leave the top ---------- */
.top.is-solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: inset 0 -1px 0 var(--line);
}

/* ---------- hero ---------- */
.hero h1 .dim { color: color-mix(in srgb, var(--ink) 58%, transparent); }
.hero h1 .ln:first-child > span { color: color-mix(in srgb, var(--ink) 58%, transparent); }
[data-theme="dark"] .hero h1 .dim,
[data-theme="dark"] .hero h1 .ln:first-child > span { color: color-mix(in srgb, var(--ink) 54%, transparent); }
.stack-iso svg { position: relative; z-index: 1; }
.stack-iso::before {
  content: "";
  position: absolute;
  inset: 4% -4% 2%;
  z-index: 0;
  background: radial-gradient(56% 46% at 52% 44%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}
[data-theme="dark"] .stack-iso::before { background: radial-gradient(58% 48% at 52% 44%, color-mix(in srgb, #2E4BFF 34%, transparent), transparent 70%); }

/* ---------- sections: less air above, headings closer to their cards ---------- */
.v4 { padding-top: clamp(92px, 8.5vw, 132px); }
#can { padding-top: clamp(56px, 6vw, 92px); }
.sec-head { margin-bottom: 52px; align-items: flex-start; }
.v4 .duo span { color: color-mix(in srgb, var(--ink) 60%, transparent); }
.sec-aside { padding-top: 6px; padding-bottom: 0; color: color-mix(in srgb, var(--ink) 62%, transparent); }

/* ---------- cards: a little more depth, a softer stage ---------- */
.pn { padding: 10px; border-radius: 24px; }
.pn-art {
  border-radius: 16px;
  background:
    radial-gradient(130% 96% at 50% 0%, color-mix(in srgb, var(--mock) 42%, var(--stage)) 0%, var(--stage) 60%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .04);
}
.pn-txt { padding: 20px 18px 16px; }
.pn-txt h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.pn-txt h3 + p, .pn-txt > div > h3 + p { font-size: 15px; line-height: 23px; }
@media (hover: hover) {
  .pn { transition: box-shadow .3s var(--ease); }
  .pn:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-line) 55%, var(--ink-3)); }
}
.mock { border-radius: 16px; }

/* slightly larger mocks read better than more chrome */
.rp { width: min(100%, 380px); }
.rp-log li { font-size: 12px; }
.chk { width: min(100%, 540px); }

/* ---------- comparison: a real column, not a tint ---------- */
.cmp-scroll { background: transparent; }
.cmp table { min-width: 920px; }
.cmp th, .cmp td { padding: 15px 18px; }
.cmp thead th { padding-block: 18px 16px; border-bottom-color: var(--line-2); }
.cmp tbody th { position: sticky; left: 0; z-index: 2; background: var(--mock); }
.cmp .me { background: color-mix(in srgb, var(--blue) 8%, var(--mock)); }
.cmp thead .me, .cmp tbody tr:last-child .me { border-radius: 0; }
.cmp thead .me { box-shadow: inset 0 2px 0 var(--blue); }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background: color-mix(in srgb, var(--ink) 3%, var(--mock)); }
.cmp tbody tr:hover .me { background: color-mix(in srgb, var(--blue) 11%, var(--mock)); }

/* ---------- FAQ: readable idle state, a calmer composer ---------- */
.faq { padding: clamp(20px, 2.8vw, 44px); gap: 24px; }
.faq-list button { color: var(--ink-2); }
.faq-list button:hover { background: color-mix(in srgb, var(--mock) 55%, transparent); }
.faq-list button[aria-expanded="true"] { box-shadow: 0 16px 30px -24px rgb(0 0 0 / .6); }
.faq-a { min-height: 260px; }

/* ---------- typography: steadier rags, no widows ---------- */
p, li, .lede { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- consent: a quiet card in the corner, not a wall over the page ---------- */
.consent {
  left: auto;
  right: 18px;
  bottom: 18px;
  width: min(400px, calc(100vw - 24px));
  padding: 16px;
  display: block;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 20px 50px -24px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .04);
  transform: translateY(14px);
  opacity: 0;
}
.consent.in { transform: none; opacity: 1; }
.consent h2 { margin: 0; font-family: var(--sans); font-stretch: normal; font-size: 15px; font-weight: 600; line-height: 1.3; text-transform: none; letter-spacing: -0.01em; }
.consent > p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.consent > p a { color: var(--ink); }
.consent-a { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 12px; }
.consent-a .btn { height: 34px; min-height: 0; padding: 0 8px; border-radius: 9px; font-size: 12.5px; background: var(--ghost); }
.consent-a [data-c="accept"] { background: var(--ink); color: var(--on-ink); }
.consent-a [data-c="accept"]:hover { background: var(--blue); color: #fff; }

/* "Choose" opens the full settings list inside the same card */
.consent.detail { width: min(400px, calc(100vw - 24px)); padding: 18px; }
.consent.detail h2 { font-family: var(--sans); font-stretch: normal; font-weight: 600; text-transform: none; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.consent.detail .consent-a { margin-top: 14px; }
.consent.detail .consent-a .btn { height: 38px; }

@media (max-width: 600px) {
  .consent { left: 8px; right: 8px; bottom: 8px; width: auto; transform: translateY(14px); }
  .consent.in { transform: none; }
}

/* ---------- header at phone width: nothing may overflow ---------- */
@media (max-width: 520px) {
  .top-in { gap: 4px 10px; }
  .top .mark { font-size: 16.5px; gap: 8px; }
  .top .mark-g { width: 22px; height: 22px; font-size: 12px; }
  .top .theme { margin-left: auto; }
  .top .btn-sm { margin-left: 0; padding: 0 12px; font-size: 13px; white-space: nowrap; }
}
.btn-sm { white-space: nowrap; }


/* =====================================================================
   marketing middle — 23 Nov, after review
   One real session, three capabilities with their artifacts, the proof
   stage, one quiet credibility band, one choice. No borrowed demo
   widgets, no feature spreadsheet.
   ===================================================================== */

/* ---------- session transcript ---------- */
.sess-stage {
  padding: clamp(14px, 2.4vw, 32px);
  border-radius: 28px;
  background-color: var(--stage);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--line-2) 45%, transparent) 1px, transparent 0);
  background-size: 14px 14px;
  box-shadow: inset 0 0 0 1px var(--card-line);
}
.sess { overflow: hidden; border-radius: 18px; background: var(--mock); box-shadow: 0 40px 80px -50px rgb(0 0 0 / .8); }
.sess-top { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--mock-line); font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.sess-top b { color: var(--ink); font-weight: 500; }
.sess-dots { display: inline-flex; gap: 5px; margin-right: 4px; }
.sess-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--mock-line); }
.sess-live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--green); }
.sess-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.2s var(--ease) infinite; }
.sess-log { margin: 0; padding: 4px 0; list-style: none; }
.sess-log li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 8px; padding: 17px 22px 17px 18px; }
.sess-log li + li { border-top: 1px solid var(--mock-soft); }
.sess-n { padding-top: 3px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.sess-cmd { display: block; font-family: var(--mono); font-size: clamp(14.5px, .78rem + .38vw, 17px); color: var(--ink); letter-spacing: -0.01em; }
.sess-cmd::before { content: "› "; color: var(--blue); }
.sess-out { margin: 7px 0 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.sess-out b { color: var(--ink); font-weight: 500; }
.sess-out .ok { color: var(--green); }
.sess-out .hold { color: var(--vs); font-weight: 500; }
.sess-out .k { color: var(--blue); }
.sess-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 13px 22px; border-top: 1px solid var(--mock-line); font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* ---------- three capabilities ---------- */
.beats { display: grid; gap: 14px; }
.beat {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 3.2vw, 48px);
  border-radius: 26px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--card-line);
}
.beat:nth-child(even) .beat-txt { order: 2; }
.beat:nth-child(even) .beat-art { order: 1; }
.beat h3 { max-width: 18ch; font-size: clamp(25px, .9rem + 1.5vw, 37px); font-weight: 500; line-height: 1.08; letter-spacing: -0.035em; }
.beat p { margin-top: 14px; max-width: 44ch; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.beat-art { min-width: 0; }
.art { display: grid; gap: 10px; padding: clamp(12px, 1.8vw, 22px); border-radius: 18px; background: var(--stage); box-shadow: inset 0 0 0 1px var(--card-line); }
.art-win { min-width: 0; overflow: hidden; border-radius: 11px; background: var(--mock); border: 1px solid var(--mock-line); }
.art-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 13px; border-bottom: 1px solid var(--mock-soft); font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.art-bar b { color: var(--ink); font-weight: 500; }
.art-body { margin: 0; padding: 13px 14px 15px; font-family: var(--mono); font-size: clamp(11.5px, .42rem + .42vw, 13.5px); line-height: 1.75; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.art-body .ctl, .art-body .k { color: var(--blue); }
.art-body .ok { color: var(--green); }
.art-body .c { color: var(--ink); }
.art-note { margin: 2px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

/* ---------- wash band: the engine, stated plainly ---------- */
.band.wash { background: var(--stage); padding-bottom: clamp(56px, 6vw, 92px); }
.band.wash .sec-head { margin-bottom: 44px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.facts div { padding-top: 16px; border-top: 1px solid var(--line-2); }
.facts b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.facts p { margin-top: 7px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* ---------- the choice ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.side { padding: clamp(24px, 3vw, 44px); border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.side.lit { background: color-mix(in srgb, var(--blue) 9%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 34%, var(--card-line)); }
.side-k { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.side.lit .side-k { color: var(--blue); }
.side h3 { margin-top: 20px; font-size: clamp(27px, 1rem + 1.5vw, 40px); font-weight: 500; line-height: 1.04; letter-spacing: -0.04em; }
.side ul { display: grid; margin-top: 26px; font-size: 15.5px; color: var(--ink-2); }
.side li { padding: 11px 0; border-top: 1px solid color-mix(in srgb, var(--card-line) 70%, transparent); }
.side li:first-child { padding-top: 0; border-top: 0; }
.side.lit li { color: var(--ink); border-color: color-mix(in srgb, var(--blue) 20%, transparent); }
.side-n { margin-top: 26px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.split-foot { margin-top: 18px; font-size: 15px; color: var(--ink-2); }

/* ---------- one install line ---------- */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(40px, 5vw, 64px); padding: clamp(20px, 2.6vw, 30px) clamp(22px, 3vw, 36px); border-radius: 22px; background: color-mix(in srgb, var(--blue) 8%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 28%, var(--card-line)); }
.get-txt { flex: 1 1 260px; }
.get-txt h3 { font-size: clamp(19px, .9rem + .6vw, 23px); font-weight: 600; letter-spacing: -0.02em; }
.get-txt p { margin-top: 5px; font-size: 14.5px; color: var(--ink-2); }
.get-cmd { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; max-width: 100%; padding: 6px 6px 6px 16px; border-radius: 12px; background: var(--mock); border: 1px solid var(--mock-line); }
.get-cmd code { min-width: 0; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.get-cmd button { flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-size: 12.5px; font-weight: 600; transition: background .2s var(--ease); }
.get-cmd button:hover { background: var(--blue); color: #fff; }

/* ---------- FAQ: lines, not a chat toy ---------- */
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); max-width: 1100px; }
.qa > div { padding: 24px 0 26px; border-top: 1px solid var(--line); }
.qa h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; }
.qa p { margin-top: 8px; max-width: 46ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.qa a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .beat { grid-template-columns: 1fr; gap: 24px; }
  .beat:nth-child(even) .beat-txt, .beat:nth-child(even) .beat-art { order: 0; }
  .facts, .split, .qa { grid-template-columns: 1fr; }
  .qa > div { padding: 20px 0 22px; }
}
@media (max-width: 600px) {
  .sess-stage { padding: 10px; border-radius: 20px; }
  .sess { border-radius: 14px; }
  .sess-log li { grid-template-columns: 1fr; gap: 6px; padding: 15px 16px; }
  .sess-n { padding-top: 0; }
  .sess-cmd { font-size: 13px; overflow-wrap: anywhere; }
  .sess-out { font-size: 11.5px; }
  .sess-foot { padding: 12px 16px; }
  .beat { padding: 20px 16px; border-radius: 20px; }
  .beat h3 { font-size: 24px; max-width: none; }
  .side { padding: 22px 18px; border-radius: 20px; }
  .side h3 { font-size: 28px; }
  .get { padding: 18px 16px; }
  .get-cmd { width: 100%; }
  .get-cmd code { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .sess-live i { animation: none; } }

/* ---------- nav: never hidden; a second row on tablet and phone ---------- */
.typer { white-space: nowrap; }
@media (max-width: 760px) {
  :root { --bar: 96px; }
  .top-in { flex-wrap: wrap; align-content: center; gap: 4px 12px; padding-block: 8px; }
  .top nav {
    display: flex;
    flex: 1 0 100%;
    order: 10;
    gap: 2px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { padding: 9px 10px; font-size: 13.5px; white-space: nowrap; }
  .top .mark { margin-right: auto; }
  .top .theme { margin-left: 0; }
  .top .btn-sm { margin-left: 0; }
}

/* ---------- skip link ---------- */
.skip { position: fixed; left: 12px; top: -64px; z-index: 80; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 600; transition: top .2s var(--ease); }
.skip:focus-visible { top: 12px; }

/* ---------- hero footnote ---------- */
.hero-note { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- footer: brand, paths, the plain facts ---------- */
.foot { display: block; margin-top: 0; padding: clamp(48px, 6vw, 76px) 0 26px; background: #0A0A09; color: #EDEBE5; border-top: 0; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 80px); }
.foot-brand .mark { color: #EDEBE5; font-size: 18px; }
.foot-brand .mark-g { background: #2E4BFF; }
.foot-brand p { margin-top: 16px; max-width: 30ch; font-size: 15px; line-height: 1.55; color: #A3A199; }
.foot-mail { display: inline-block; margin-top: 18px; font-size: 14px; color: #EDEBE5; text-decoration: underline; text-decoration-color: #33322D; text-underline-offset: 3px; }
.foot-mail:hover { text-decoration-color: currentColor; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-cols h2 { margin: 0 0 14px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #EDEBE5; }
.foot-cols a, .foot-cols button { display: block; margin-top: 9px; font-size: 14px; color: #A3A199; transition: color .2s var(--ease); }
.foot-cols a:hover, .foot-cols button:hover { color: #EDEBE5; }
.foot-cols .linkish { padding: 0; border: 0; background: none; text-align: left; font: inherit; font-size: 14px; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: clamp(40px, 5vw, 68px); padding-top: 20px; border-top: 1px solid #262521; font-size: 12.5px; color: #8A887F; }
.foot-top-link { margin-left: auto; color: #A3A199; }
.foot-top-link:hover { color: #EDEBE5; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-top-link { margin-left: 0; }
}

/* ---------- mobile session header: two tidy rows ---------- */
@media (max-width: 600px) {
  .sess-top { flex-wrap: wrap; row-gap: 3px; }
  .sess-top b { margin-right: auto; }
  .sess-live { order: 3; margin-left: 0; }
  .sess-top > span:nth-child(3) { flex: 0 0 100%; order: 4; }
}

.consent-list b { font-family: var(--sans); font-weight: 600; text-transform: none; letter-spacing: 0; }
