/* Home page: a full-bleed run stage under the headline, then calm sections in one 1240px column. */
:root {
  --stage: #12141a; --stage-2: #1a1d25; --stage-line: rgb(236 238 243 / 0.1); --stage-ink: #eceef3; --stage-muted: #9aa0ae; --stage-ok: #5ec48f; --stage-action: #ff7a4f;
  --app: #ffffff; --app-ink: #1e2230; --app-muted: #6b7180; --app-line: #e7e8ec; --app-soft: #f4f5f7;
}
html[data-theme="dark"] { --stage: #151925; --stage-2: #1b2030; }
/* hero */
.hero { padding-block: 56px 36px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.hero h1 { font-size: clamp(42px, 6.2vw, 88px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 600; }
.hero .sub { font-size: 18px; color: var(--muted); max-width: 46ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.hero .small { font-size: 14px; color: var(--muted); }

/* stage */
.stage-wrap { padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
.stage { max-width: 1440px; margin: 0 auto; background: var(--stage); color: var(--stage-ink); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.stage-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 13px; color: var(--stage-muted); padding: 2px 6px; }
.stage-top b { color: var(--stage-ink); font-weight: 500; }
.clock { font: 500 13px var(--mono); color: var(--stage-ink); background: var(--stage-2); border: 1px solid var(--stage-line); border-radius: 6px; padding: 3px 8px; font-variant-numeric: tabular-nums; }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--stage-ok); }
.stage.playing .live i { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.again { margin-left: auto; background: transparent; color: var(--stage-ink); border: 1px solid var(--stage-line); border-radius: 6px; height: 32px; padding: 0 12px; font: 500 13px var(--sans); cursor: pointer; }
.again:hover { border-color: var(--stage-muted); }
.grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(300px, 0.85fr); gap: 14px; align-items: stretch; }

/* browser windows (the customer's app) */
.win { background: var(--app); color: var(--app-ink); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-height: 400px; position: relative; transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.win .bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--app-soft); border-bottom: 1px solid var(--app-line); }
.win .bar .dots { display: flex; gap: 5px; } .win .bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #d9dbe1; display: block; }
.win .addr { font: 12px var(--mono); color: var(--app-muted); background: #ffffff; border: 1px solid var(--app-line); border-radius: 6px; padding: 3px 9px; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win .tag { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tag.person { background: color-mix(in srgb, #ff6b3d 14%, #fff); color: #b8461a; }
.tag.blind { background: #eceef3; color: #3d4250; }
.app { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; position: relative; flex: 1; }
.app .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.app .top b { font-size: 15px; font-weight: 600; }
.app .filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sel { border: 1px solid var(--app-line); border-radius: 6px; padding: 5px 28px 5px 10px; background: #fff; position: relative; transition: border-color 200ms ease, box-shadow 200ms ease; }
.sel::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--app-muted); border-bottom: 1.5px solid var(--app-muted); transform: translateY(-70%) rotate(45deg); }
.sel.hot { border-color: #ff6b3d; box-shadow: 0 0 0 3px color-mix(in srgb, #ff6b3d 18%, transparent); }
.sel.hot-g { border-color: #3d4250; box-shadow: 0 0 0 3px rgb(61 66 80 / 0.15); }
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--app-line); }
.rows div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--app-line); }
.rows div span:nth-child(2) { color: var(--app-muted); }
.rows div span:last-child { font-variant-numeric: tabular-nums; }
.empty { color: var(--app-muted); padding: 22px 0; text-align: center; border-bottom: 1px solid var(--app-line); }
.total { display: flex; justify-content: space-between; font-weight: 600; padding-top: 2px; }
.cursor { position: absolute; z-index: 3; display: flex; align-items: flex-start; gap: 4px; transition: left 900ms var(--ease), top 900ms var(--ease); pointer-events: none; }
.cursor svg { width: 16px; height: 16px; flex: none; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.25)); }
.cursor span { font: 500 11px var(--sans); color: #fff; padding: 1px 7px; border-radius: 999px; margin-top: 12px; white-space: nowrap; }
.cursor.maya svg path { fill: #ff6b3d; } .cursor.maya span { background: #ff6b3d; color: #171717; }
.cursor.rep svg path { fill: #3d4250; } .cursor.rep span { background: #3d4250; }

/* blind replay window */
.win.replay .waiting { position: absolute; inset: 42px 0 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--app-muted); font-size: 13px; background: rgb(255 255 255 / 0.86); z-index: 4; transition: opacity 400ms ease; }
.win.replay .waiting b { display: block; color: var(--app-ink); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.got { border: 1px dashed #c9ccd4; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: #fafbfc; }
.got .h { font-size: 12px; color: var(--app-muted); display: flex; justify-content: space-between; gap: 8px; }
.got ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.got li { transition: color 250ms ease; color: var(--app-muted); }
.got li.done { color: var(--app-ink); }
.got li.done::marker { color: var(--app-ink); }
.redact { display: flex; flex-direction: column; gap: 5px; }
.redact .r { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--app-muted); }
.redact .r i { height: 9px; border-radius: 3px; background: #dfe1e6; display: block; flex: 1; max-width: 160px; }

/* trawler rail */
.rail { background: var(--stage-2); border: 1px solid var(--stage-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rail .rh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rail .rh b { font-size: 14px; font-weight: 600; }
.rail .rh span { font-size: 12px; color: var(--stage-muted); }
.people { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--stage-muted); }
.av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--sans); flex: none; }
.a0 { background: #ff7a4f; color: #171717; } .a1 { background: #eceef3; color: #151925; } .a2 { background: #8a90a0; color: #151925; } .ar { background: #3d4250; color: #eceef3; }
.feed { display: flex; flex-direction: column; gap: 10px; }
.ev { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; transition: opacity 450ms var(--ease), transform 450ms var(--ease); }
.ev .msg { background: color-mix(in srgb, #ff7a4f 16%, var(--stage-2)); border-radius: 10px; padding: 7px 10px; }
.ev .msg small { display: block; font-size: 11px; color: var(--stage-muted); }
.card { border: 1px solid var(--stage-line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; background: rgb(255 255 255 / 0.02); transition: opacity 450ms var(--ease), transform 450ms var(--ease), border-color 400ms ease; }
.card .k { font-size: 11px; color: var(--stage-muted); display: flex; justify-content: space-between; gap: 8px; }
.card .t { font-weight: 500; }
.card .st { font-size: 12px; color: var(--stage-muted); }
.card.confirmed { border-color: color-mix(in srgb, var(--stage-ok) 55%, transparent); }
.card .verdict { font-size: 13px; font-weight: 500; color: var(--stage-muted); }
.card.confirmed .verdict { color: var(--stage-ok); }
.card.out .t { text-decoration: line-through; text-decoration-color: var(--stage-muted); color: var(--stage-muted); }
.hide { opacity: 0; transform: translateY(6px); }
.stamp { position: absolute; z-index: 5; right: 16px; bottom: 16px; border: 2px solid var(--ok); color: var(--ok); background: #fff; border-radius: 8px; padding: 6px 10px; font: 600 13px var(--sans); transform: rotate(-3deg); transition: opacity 300ms ease, transform 400ms var(--ease); }
.stamp.hide { opacity: 0; transform: rotate(-3deg) scale(1.3); }

/* proof strip under the stage */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 28px 8px; }
.strip div { display: flex; flex-direction: column; gap: 4px; }
.strip b { font-size: 15px; font-weight: 500; }
.strip span { font-size: 14px; color: var(--muted); }

/* sections */
.sec { padding-block: 96px 0; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.sec h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.sec .p { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 44ch; }
.sec .p + .p { margin-top: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }

/* chat */
.chat { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.chat .row { display: flex; gap: 10px; align-items: flex-start; }
.chat .who { font-size: 13px; font-weight: 600; }
.chat .who small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.chat .bub { margin-top: 3px; padding: 8px 12px; border-radius: 12px; background: var(--soft); font-size: 15px; max-width: 52ch; }
.chat .bub.o { background: color-mix(in srgb, var(--action) 13%, var(--panel)); }
.chat .bub code { font: 13px var(--mono); }
.chat .line { font-size: 13px; color: var(--muted); padding-left: 38px; display: flex; gap: 8px; align-items: center; }
.chat .line .ok { color: var(--ok); }
.chat .line .bad { color: var(--bad); }
.av.l0 { background: var(--action); color: #171717; } .av.l1 { background: var(--ink); color: var(--panel); } .av.l2 { background: var(--graphite); color: var(--panel); }

/* report stacks */
.stacks { padding: 8px 20px 12px; }
.stacks h3 { font-size: 14px; font-weight: 500; color: var(--muted); padding-block: 16px 4px; display: flex; gap: 8px; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding-block: 12px; border-bottom: 1px solid var(--line); align-items: baseline; }
.srow:last-child { border-bottom: 0; }
.srow .t { font-weight: 500; }
.srow .why { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.srow .s { font-size: 14px; white-space: nowrap; }
.srow .s.ok { color: var(--ok); }
.srow.out .t { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }

/* cost + facts */
.cost { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cost .meter { height: 10px; border-radius: 999px; background: var(--soft); position: relative; overflow: hidden; }
.cost .meter i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.cost dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; font-size: 15px; }
.cost dt { color: var(--muted); } .cost dd { margin: 0; font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.facts b { font-weight: 500; } .facts span { color: var(--muted); font-size: 15px; }

/* ci */
.pr { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.pr .h { display: flex; align-items: center; gap: 10px; }
.pr .h b { font-size: 15px; }
.pr .ok { color: var(--ok); font-weight: 500; }
.pr ul { margin: 0; padding-left: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.pr code { font: 13px var(--mono); background: var(--soft); padding: 1px 6px; border-radius: 4px; }

/* final */
.final { padding-block: 120px 96px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.final h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; max-width: 16ch; }
.url { display: flex; gap: 10px; width: min(640px, 100%); }
.url label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font: 15px var(--mono); color: var(--muted); }
.url input { border: 0; outline: 0; background: transparent; font: 15px var(--mono); color: var(--ink); flex: 1; min-width: 0; }
.url .btn { height: 52px; }
.prices { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15px; color: var(--muted); }
.prices b { color: var(--ink); font-weight: 600; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rail { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero, .sec { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .win { min-height: 340px; }
  .stage { border-radius: 14px; padding: 12px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .url { flex-direction: column; }
  .sec { padding-block: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .win, .ev, .card, .stamp, .cursor, .waiting { transition: none !important; }
  .stage.playing .live i { animation: none; }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
