/*
 * The landing page's own sections. Loaded only by "/". Tokens, type, buttons,
 * the frame, header, footer, windows, and pixel scenes come from system.css,
 * the design system every page shares (docs/DESIGN_SYSTEM.md).
 */
.sa-landing {
  font-family: var(--sans);
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:where(.sa-landing) a { color: inherit; }
:where(.sa-landing) p { margin: 0; }
.sa-landing :is(p, dd, li) { text-wrap: pretty; }
.sa-landing :is(h1, h2, h3) { color: inherit; }
.sa-landing :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.sa-landing [id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html:has(.sa-landing) { scroll-behavior: smooth; } }

.px-hero .px-h1 { color: #fff; }

.sa-landing .px-hero .px-btn-secondary { color: #fff; border-color: #100e24; background: #100e24; }
.sa-landing .px-hero .px-btn-secondary:hover { background: #221f45; border-color: #221f45; }
.sa-landing .px-final .px-btn-secondary { color: #fff; border-color: rgb(255 255 255 / 0.5); background: rgb(3 4 26 / 0.4); }
.sa-landing .px-final .px-btn-secondary:hover { border-color: #fff; }

.px-hero { border-top: 0; }
.px-hero::before, .px-hero::after { display: none; }
.px-cells-2:first-child > .px-cell { padding-top: 72px; }
.px-cells + .px-cells, .px-cells + .px-scene, .px-cells + .px-note { border-top: 1px solid var(--line); }



/* Hero: the copy on top, then the simulation across the dawn scene */
.px-hero { isolation: isolate; overflow: hidden; background: #100e33; }
/* The hero ends a monitor's height below the copy, so the person at the desk sits under the buttons and shows
   on the first screen; the simulation runs down over the city on the right. 68 art pixels is the monitor's top. */
.px-hero-inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; padding: 40px 40px 48px; }
.px-hero-copy { color: #fff; display: grid; gap: 24px; align-content: start; padding: 36px 0 calc(var(--u) * 68px + 12px); }
.px-lede { margin: 0 0 28px; max-width: 30em; font-size: var(--t-md); line-height: 1.55; color: #dcd9f5; text-wrap: pretty; }


/* The simulation (hero-sim.tsx). Elements with data-t appear on the script's clock; without it, the finished exchange shows. */
.sim { margin: 0; min-width: 0; }
.sim-stage { position: relative; padding: 36px 36px 0 0; }
.sim-app { height: 440px; display: flex; flex-direction: column; min-width: 0; }
.sim-bar { justify-content: space-between; padding: 12px 18px; }
.sim-title { font-weight: 600; }
.sim-model { font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }
.sim-msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: 20px 24px 6px; }
.sim-user { align-self: flex-end; max-width: 80%; padding: 10px 14px; border-radius: 4px; background: var(--tint); }
.sim-trace { display: grid; gap: 8px; }
.sim-step { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--slate); }
.sim-step b { font-weight: 500; color: var(--ink); }
.sim-done { flex: none; display: grid; place-items: center; width: 12px; height: 12px; box-sizing: border-box; border: 1px solid var(--ink); }
.sim-done::after { content: ""; width: 4px; height: 4px; background: var(--gold); }
.sim-spin { flex: none; display: inline-flex; gap: 2px; width: 12px; }
.sim-spin i { width: 3px; height: 3px; background: currentColor; }
.sim-offer { margin: 4px 0 4px 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--tint); }
.sim-offer-head { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: var(--t-xs); font-weight: 600; }
.sim-offer p { margin-top: 8px; font-size: var(--t-sm); line-height: 1.5; color: var(--slate); }
.sim-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sim-choices span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--cell); font-family: var(--mono); font-size: var(--t-xs); color: var(--slate); }
.sim-choices span:first-child { border-color: var(--ink); color: var(--ink); }
.sim-accepted { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: var(--t-sm); font-weight: 500; }
.sim-answer p { font-size: var(--t-base); line-height: 1.6; }
.sim-cite { display: inline-block; margin-top: 8px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 2px; font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }
.sim-ad { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: var(--t-sm); line-height: 1.5; }
.sim-ad .px-tag { flex: none; margin: 0; }
.sim-ad b { font-weight: 600; }
.sim-composer { display: flex; align-items: center; gap: 10px; height: 46px; margin: 10px 18px 18px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: 4px; }
.sim-q { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--t-sm); }
.sim-q:empty::before { content: attr(data-placeholder); color: var(--faint); }
.sim-send { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 2px; background: var(--ink); }
.sim-send::after { content: ""; width: 8px; height: 8px; background: var(--paper); clip-path: polygon(50% 0, 100% 60%, 65% 60%, 65% 100%, 35% 100%, 35% 60%, 0 60%); }


/* The overlay: the publisher's site when the agent arrives, then the publisher's earnings. It sits over the
   assistant's top-right corner, a little off, and slides in and out. */
.sim-overlay { position: absolute; top: 0; right: 0; z-index: 2; width: min(330px, 62%); display: flex; flex-direction: column; box-shadow: var(--shadow-hard); }
.sim-browser { gap: 10px; padding: 9px 12px; background: var(--tint); }
.sim-dots { display: inline-flex; gap: 4px; flex: none; }
.sim-dots i { width: 7px; height: 7px; background: var(--line-strong); }
.sim-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: var(--t-xs); color: var(--slate); }
.sim-site-page { display: grid; gap: 8px; padding: 14px 16px 16px; }
.sim-masthead { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: var(--t-sm); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sim-site-h { margin: 2px 0 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.sim-site-lines { display: grid; gap: 6px; }
.sim-site-lines i { display: block; height: 6px; background: var(--tint); }
.sim-site-lines i:nth-child(2) { width: 94%; }
.sim-site-lines i:nth-child(4) { width: 60%; }
.sim-gate { display: grid; gap: 6px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--night); border-radius: var(--r-box); background: var(--night-2); color: #e6e3f8; font-size: var(--t-xs); font-family: var(--mono); }
.sim-gate-row { display: flex; align-items: center; gap: 8px; }
.sim-gate-row b { font-weight: 600; color: #fff; }
.sim-gate-row .sa-mark { width: 14px; height: 14px; color: #fff; }
.sim-gate .sim-done { border-color: #e6e3f8; }
/* The campaign window's small counters, under the bars */
.sim-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.sim-minis dt { font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }
/* Assistants by brand: the mark, then the name */
.px-assistant { display: inline-flex; align-items: center; gap: 0.4em; white-space: nowrap; }
.px-assistant .px-logo { flex: none; width: 1.05em; height: 1.05em; }
.sim-gate .px-assistant .px-logo { width: 1.2em; height: 1.2em; }
/* The hero headline's assistant rolls through the three, one line tall */
.px-roll { display: inline-block; height: 1.12em; overflow: hidden; vertical-align: bottom; }
.px-roll-track { display: flex; flex-direction: column; }
.px-roll-item { display: flex; align-items: center; gap: 0.2em; height: 1.12em; line-height: 1.12; white-space: nowrap; }
.px-roll-item .px-logo { flex: none; width: 0.8em; height: 0.8em; margin-right: 0.04em; }
@media (prefers-reduced-motion: no-preference) {
  .px-roll-track { animation: px-roll 15s cubic-bezier(0.7, 0, 0.25, 1) infinite; }
}
@keyframes px-roll {
  0%, 18% { transform: translateY(0); }
  20%, 38% { transform: translateY(-1.12em); }
  40%, 58% { transform: translateY(-2.24em); }
  60%, 78% { transform: translateY(-3.36em); }
  80%, 98% { transform: translateY(-4.48em); }
  100% { transform: translateY(-5.6em); }
}
/* The closing call names the assistants with their marks */
.px-final-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 0 0 20px; padding: 0; list-style: none; font-size: var(--t-md); font-weight: 600; color: #fff; }
.sim-minis dd { margin: 2px 0 0; font-size: var(--t-base); font-weight: 600; font-variant-numeric: tabular-nums; }
/* With the small counters, the log shows one row, so the window doesn't cover the sponsored line. */
.sim-pub-minis .sim-log { height: 61px; }
.sim-gate-dot { width: 7px; height: 7px; flex: none; background: var(--live); }
.sim-gate-ok { color: var(--gold); }
.sim-gate-ok .sim-done { border-color: var(--gold); }
.sim-pub { top: 0; }
.sim-pub .sim-bar { padding: 10px 14px; }
/* The publisher's earnings, then the gate's log, newest first */
.sim-earn { position: relative; display: flex; flex-direction: column; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sim-earn-label { font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }
.sim-earn-value { margin-top: 2px; font-size: 2.1rem; font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.sim-bars { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: 10px; }
.sim-bars i { flex: 1; max-height: 100%; background: var(--line); }
.sim-bars i:last-child { background: var(--ink); }
.sim-pop { position: absolute; top: 14px; right: 14px; padding: 3px 8px; border-radius: 2px; background: var(--gold); color: var(--on-gold); font-family: var(--mono); font-size: var(--t-xs); font-weight: 600; pointer-events: none; }
.sim-log { height: 122px; overflow: hidden; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.sim-log li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.sim-log b { font-weight: 600; }
.sim-log-what { grid-row: 2; font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sim-log-got { grid-column: 2; grid-row: 1 / span 2; font-size: var(--t-sm); color: var(--slate); white-space: nowrap; }
.sa-landing .sim-log-earn .sim-log-got { color: var(--ink); font-weight: 600; }

/* The guide under the window: play or pause, five steps that fill as they play, and the current step's caption.
   A solid night panel, so the caption reads over the scene. */
.sim-guide { margin: 16px 36px 0 0; padding: 6px 18px 16px; border: 1px solid #2c2862; border-radius: var(--r-window); background: var(--night); color: #fff; }
.sim-nav { display: flex; align-items: center; gap: 12px; }
.sim-nav[hidden] { display: none; }
.sim-ctl { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #3a3670; border-radius: var(--r-control); background: transparent; color: #fff; cursor: pointer; }
.sim-ctl:hover { border-color: #fff; }
.sim-ctl i { width: 10px; height: 10px; background: currentColor; }
.sim-ctl[data-state="pause"] i { background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 7px, currentColor 7px); }
.sim-ctl:not([data-state="pause"]) i { width: 9px; margin-left: 2px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.sim-steps { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.sim-chapter { display: grid; gap: 8px; width: 100%; padding: 12px 0 8px; border: 0; background: none; color: #8f8bbd; font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; line-height: 1; text-align: left; cursor: pointer; }
.sim-chapter.done { color: #b6b3dc; }
.sim-chapter:hover, .sim-chapter[aria-current] { color: #fff; }
.sim-track { display: block; height: 3px; overflow: hidden; background: #2c2862; }
.sim-track i { display: block; height: 100%; background: #fff; transform: scaleX(1); transform-origin: 0 50%; }
.sim-captions { display: grid; margin: 4px 0 0; font-size: var(--t-base); line-height: 1.5; color: #fff; }
.sim-nav[hidden] + .sim-captions { margin-top: 12px; }
/* Every caption takes the same cell, so the panel is as tall as the longest and doesn't jump. */
.sim-cap { grid-area: 1 / 1; }
.sim:not(.js) .sim-cap:not(:last-child), .sim.js .sim-cap:not(.cur) { visibility: hidden; }
.sim.js .sim-cap.cur { animation: sim-in 360ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* Focus: brackets, like the mark's, around whatever the caption is talking about */
.sim-offer, .sim-gate, .sim-ad { position: relative; }
.sim.js .lit::after {
  --at: -7px;
  content: ""; position: absolute; inset: var(--at); pointer-events: none;
  background:
    linear-gradient(var(--ink) 0 0) 0 0 / 12px 2px, linear-gradient(var(--ink) 0 0) 0 0 / 2px 12px,
    linear-gradient(var(--ink) 0 0) 100% 0 / 12px 2px, linear-gradient(var(--ink) 0 0) 100% 0 / 2px 12px,
    linear-gradient(var(--ink) 0 0) 0 100% / 12px 2px, linear-gradient(var(--ink) 0 0) 0 100% / 2px 12px,
    linear-gradient(var(--ink) 0 0) 100% 100% / 12px 2px, linear-gradient(var(--ink) 0 0) 100% 100% / 2px 12px;
  background-repeat: no-repeat;
  animation: sim-lit 480ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.sim.js .sim-ad.lit::after { --at: -5px; }
.sim.js .sim-earn.lit::after { --at: 6px; }
/* The assistant picks Accept: the chip fills, no brackets. */
.sim.js .sim-choices .lit { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.sim.js .sim-choices .lit::after { content: none; }

/* States: hidden until their time, or after it; without the script, the steps that belong only to the middle stay hidden */
.sim:not(.js) [data-off], .sim.js [data-t]:not(.on), .sim.js [data-t].off { display: none; }
/* The overlays slide instead of popping, so they stay in the layout and fade. */
.sim.js .sim-overlay[data-t] { display: flex; transition: opacity 360ms ease, transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 420ms; }
.sim.js .sim-overlay[data-t]:not(.on), .sim.js .sim-overlay[data-t].off { opacity: 0; visibility: hidden; transform: translate(18px, -14px); }
.sim.js .sim-overlay[data-t].on:not(.off) { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; animation: none; }
.sim.js [data-t].on { animation: sim-in 260ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.sim.js .sim-word.on { animation: none; }
.sim.js .sim-log li.on { animation: sim-row 1200ms ease both; }
.sim.js .sim-spin i { animation: sim-blink 900ms steps(1) infinite; }
.sim.js .sim-spin i:nth-child(2) { animation-delay: 150ms; }
.sim.js .sim-spin i:nth-child(3) { animation-delay: 300ms; }
.sim.js .sim-q:not(:empty)::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: sim-blink 800ms steps(1) infinite; }
.sim-pop { animation: sim-pop 1400ms ease both; }
@keyframes sim-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes sim-row { 0% { opacity: 0; background: rgb(255 197 61 / 0.35); } 15% { opacity: 1; } 100% { background: transparent; } }
@keyframes sim-blink { 50% { opacity: 0; } }
@keyframes sim-lit { from { opacity: 0; inset: calc(var(--at) - 12px); } to { opacity: 1; inset: var(--at); } }
@keyframes sim-pop { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }

/* Figures from the trials, in dot-matrix */
.px-figures dt { font-family: var(--dots); font-weight: 900; font-size: clamp(3.4rem, 6.2vw, 5.6rem); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.px-figures dd { margin: 20px 0 0; color: var(--slate); font-size: var(--t-base); }
.px-note { padding: 14px 40px; font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }

/* Steps */
.px-cells-how { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.px-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; }
.px-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.px-steps li > div { display: grid; gap: 4px; }
.px-step-n { font-family: var(--dots); font-weight: 900; font-size: 2rem; line-height: 0.9; color: var(--ink); }
.px-steps p, .px-trust p { color: var(--slate); font-size: var(--t-base); }

/* Product windows on the scenes */
.px-window-wide { width: 100%; max-width: 720px; }
.px-window-narrow { width: 100%; max-width: 420px; }
.px-window-bar:has(.px-live) { justify-content: space-between; padding: 12px 16px; }
.px-window-bar:has(.px-window-title):not(:has(.px-live)) { padding: 12px 16px; }
.px-requests { width: 100%; border-collapse: collapse; }
.px-requests caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.px-requests th, .px-requests td { text-align: left; padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.4; }
.px-requests thead th { border-top: 0; padding-top: 12px; padding-bottom: 8px; font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; color: var(--faint); }
.px-requests tbody th { font-weight: 600; white-space: nowrap; }
.px-requests td { color: var(--slate); }
.px-req-page { font-family: var(--mono); font-size: var(--t-xs); white-space: nowrap; }
.px-requests td:last-child { white-space: nowrap; }
.sa-landing .px-req-paid { font-weight: 600; color: var(--ink); }
.sa-landing .px-req-quiet { color: var(--faint); }
.px-window-body { padding: 4px 16px 16px; display: grid; }
.px-field { padding: 12px 0; display: grid; gap: 8px; }
.px-field + .px-field { border-top: 1px solid var(--line); }
.px-field-label { font-size: var(--t-sm); font-weight: 600; }
.px-field-help { font-size: var(--t-xs); color: var(--faint); }
.px-input { padding: 8px 11px; border-radius: 2px; border: 1px solid var(--line); background: var(--paper); font-family: var(--mono); font-size: var(--t-sm); line-height: 1.55; }
.px-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.px-chips span { padding: 2px 8px; border-radius: 2px; border: 1px solid var(--line); font-family: var(--mono); font-size: var(--t-xs); color: var(--slate); }
.px-field-row { grid-template-columns: 1fr auto; align-items: center; }
.px-toggle { width: 40px; height: 20px; border-radius: 2px; background: var(--ink); position: relative; }
.px-toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; background: #fff; }
.px-scene-cell { min-height: 640px; padding: 56px 40px; }

/* Rules */
.px-points { margin: 6px 0 0; display: grid; }
.px-points > div { display: grid; gap: 3px; padding: 16px 0; border-top: 1px solid var(--line); }
.px-points dt { font-weight: 600; letter-spacing: -0.01em; }
.px-points dd { margin: 0; color: var(--slate); font-size: var(--t-base); }

/* The dark band: the estimate */
.px-dark { color-scheme: dark; color: #f2f1fa;
  --ink: #f2f1fa; --slate: #b8b6d2; --faint: #8e8bad; --line: #2a2746; --paper: #0e0c20; --cell: #16142b; --tint: #1c1a33;
  --color-background-card: #16142b; --color-background-surface: #100e24; --color-background-muted: #1f1c3a; --color-background-body: #0e0c20;
  --color-border: #34305a; --color-border-emphasized: #4a4578; --color-accent: #ffc53d; --color-on-accent: #1a1405; }
.px-dark { background-color: #0e0c20; }
.px-dark .px-cell { background: transparent; }
.px-dark .px-cells { background: transparent; }
.px-dark .px-cells-2 > .px-cell + .px-cell { border-left: 1px solid var(--line); }
.px-form { display: grid; gap: 32px; margin-top: 20px; }
.px-fieldset { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.px-label { padding: 0; font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }
.px-number { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #3a3666; transition: border-color 120ms ease; }
.px-number:focus-within { border-color: var(--gold); }
.px-number input { flex: none; width: 8ch; min-width: 0; margin: 0; padding: 0; border: 0; outline: 0; background: none; color: #fff; font-family: var(--sans); font-size: 2.5rem; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.px-number input::-webkit-outer-spin-button, .px-number input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.px-number span { font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }
.px-help { font-size: var(--t-sm); color: var(--faint); max-width: 34em; }
.px-modes legend { margin-bottom: 12px; }
.px-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.px-mode { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px 40px 16px 16px; border: 1px solid #2f2c52; border-radius: 4px; background: #0e0c20; cursor: pointer; transition: border-color 120ms ease, background-color 120ms ease; }
.px-mode:hover { border-color: #4a4578; }
.px-mode input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.px-mode::after { content: ""; position: absolute; top: 18px; right: 16px; width: 10px; height: 10px; box-sizing: border-box; border: 1px solid #5a5590; }
.px-mode:has(input:checked) { border-color: var(--gold); background: #1a1626; }
.px-mode:has(input:checked)::after { background: var(--gold); border-color: var(--gold); }
.px-mode:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.px-mode b { font-weight: 600; font-size: var(--t-base); color: #fff; }
.px-mode span { font-size: var(--t-sm); line-height: 1.45; color: var(--faint); }
.px-result-cell { gap: 16px; align-content: center; }
.px-result-label { font-family: var(--mono); font-size: var(--t-xs); color: #8e8bad; }
.px-result-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1em 0.35em; font-family: var(--sans); font-weight: 500; font-size: clamp(2.4rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; color: var(--gold); }
.px-result-to { font-family: var(--mono); font-weight: 400; font-size: var(--t-base); color: var(--faint); }
.px-result-why { color: #d2d0e6; max-width: 32em; font-size: var(--t-base); }
.px-result-fine { color: #8e8bad; font-size: var(--t-sm); max-width: 36em; }
.px-result-cell .px-btn { margin-top: 8px; }

/* Trust */
.px-trust .px-cell { display: grid; gap: 12px; align-content: start; }
.px-trust .px-pixel { margin-bottom: 32px; }
.px-cell-wide { padding: 72px 40px 48px; }

/* Advertisers and developers */
.px-aud { grid-template-rows: repeat(4, auto); }
.px-aud .px-cell-pad { grid-row: span 4; grid-template-rows: subgrid; justify-items: start; row-gap: 22px; }
.px-artifact { justify-self: stretch; max-width: 100%; box-sizing: border-box; margin: 6px 0 10px; border-radius: 4px; border: 1px solid var(--line); background: var(--cell); font-size: var(--t-sm); line-height: 1.55; overflow: hidden; }
.px-artifact figcaption { padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--tint); font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }
.px-artifact > div, .px-artifact > pre { margin: 0; padding: 16px 14px; }
.px-code { font-family: var(--mono); font-size: var(--t-xs); line-height: 1.65; white-space: pre; overflow-x: auto; color: var(--ink); }

/* Questions */
.px-qs { padding-top: 56px; padding-bottom: 56px; }
.px-faq-head .px-sub { font-size: var(--t-base); max-width: 24em; }
.px-faq-head a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.px-q { border-bottom: 1px solid var(--line); }
.px-q:first-child { border-top: 1px solid var(--line); }
.px-q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0; font-weight: 500; font-size: var(--t-base); letter-spacing: -0.01em; }
.px-q summary::-webkit-details-marker { display: none; }
.px-q summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 2px; font-family: var(--mono); font-size: var(--t-base); line-height: 1; color: var(--slate); }
.px-q summary:hover::after { border-color: var(--ink); color: var(--ink); }
.px-q[open] summary::after { content: "−"; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.px-faq-head { position: sticky; top: 117px; display: grid; gap: 22px; }
.px-q p { padding: 0 40px 20px 0; color: var(--slate); max-width: 44em; font-size: var(--t-base); }

/* Final call, at night */
.px-final { isolation: isolate; overflow: hidden; min-height: 560px; display: grid; place-items: center; padding: 96px 32px; text-align: center; background: #03041a; color: #fff; }
.px-final-copy { display: grid; justify-items: center; gap: 36px; }
.px-final-h { margin: 0; max-width: 24em; font-family: var(--sans); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.12; letter-spacing: -0.035em; }
.px-final .px-ctas { justify-content: center; }


/* The advertiser page (advertisers.tsx). The hero sits on the afternoon scene, so its text is ink on a pale sky:
   fixed colors, since the scene doesn't change with the color scheme. */
.px-hero-day { background: #a9c8f5; }
.px-hero-day .px-hero-copy, .px-hero-day .px-h1 { color: #100e24; }
.px-hero-day .px-lede { color: #24223d; }
.px-price-copy { display: grid; align-content: center; gap: 24px; }
.px-price-copy .px-sub { margin: 0; }
.px-rates thead th:last-child { white-space: nowrap; }
.px-rates td:last-child { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.px-rates th[scope="row"] { font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; }
.px-cell-window { display: grid; align-content: center; }
.px-by-agent td, .px-by-agent thead th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

/* Tablet */

@media (max-width: 1080px) {
  .px-cells-how { grid-template-columns: minmax(0, 1fr); }
  .px-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 64px 40px 244px; }
  .px-hero-copy { padding: 0; }
  .px-cells-2:first-child > .px-cell-end { padding-top: 0; }
  .px-qs { padding-top: 0; }
  .px-faq-head { position: static; }
  .px-dark .px-cells-2 > .px-cell + .px-cell { border-left: 0; border-top: 1px solid var(--line); }
  .px-cells-faq .px-cell-pad { padding-bottom: 24px; }
}

/* Phone */
@media (max-width: 720px) {
  .px-hero-inner { padding: 48px 16px 164px; }
  /* Show the left of the dawn scene, where the person sits at the desk */
  .px-hero > .px-art { background-position: 0 100%; }
  .sim-stage { padding: 28px 12px 0 0; }
  .sim-app { height: 480px; }
  .sim-overlay { width: 82%; }
  /* A shorter site page, so it doesn't cover the offer in the chat */
  .sim-site-lines { display: none; }
  .sim-site-h { font-size: var(--t-base); }
  .sim-guide { margin-right: 12px; padding: 4px 14px 14px; }
  .sim-nav { gap: 10px; }
  .sim-steps { gap: 4px; }
  .sim-earn-value { font-size: 1.8rem; }
  .sim-log { height: 112px; }
  .sim-msgs { padding: 16px 16px 6px; }
  .sim-composer { margin: 8px 12px 12px; }
  .sim-offer { margin-left: 0; }
  .px-lede { font-size: var(--t-base); margin: 0 0 24px; }
  .px-window { box-shadow: 4px 4px 0 #08061f; }
  .px-cell-wide { padding: 48px 20px 32px; }
  .px-number input { width: 100%; flex: 1 1 0; }
  .px-faq-head { position: static; }
  .px-cells-2:first-child > .px-cell { padding-top: 48px; }
  .px-cells-2:first-child > .px-cell-end { padding-top: 0; }
  .px-note { padding: 12px 20px; }
  .px-scene, .px-scene-cell { min-height: 0; padding: 40px 12px; }
  .px-requests th, .px-requests td { padding: 10px 12px; }
  .px-req-page, .px-requests thead th:nth-child(2) { display: none; }
  .px-col-opt { display: none; }
  .px-requests tbody th { white-space: normal; }
  .px-code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .px-mode-grid { grid-template-columns: minmax(0, 1fr); }
  .px-number input { font-size: 2rem; }
  .px-final { min-height: 460px; padding: 72px 20px; }
}

/* Recorded sessions (ui/sessions.tsx): a card per assistant, two by two: its name and the article it read, over a crop
   of the sponsored line from its real answer. Each crop sits on its own app's background, so it reads the same in either theme. */
.px-ses-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 40px 40px 72px; border-top: 1px solid var(--line); }
.px-ses-card { display: flex; flex-direction: column; min-width: 0; }
.px-ses-card .px-window-bar { justify-content: space-between; gap: 16px; padding: 12px 16px; }
.px-ses-card .px-window-title { flex: none; }
.px-ses-card .px-logo { width: 1.05em; height: 1.05em; }
.px-ses-article { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--t-sm); color: var(--faint); }
.px-ses-stage { flex: 1; display: grid; place-items: center; padding: 28px 24px; }
.px-ses-stage img { display: block; width: 100%; max-width: 400px; height: auto; }
.px-ses-stage-chatgpt { background: #000; }
.px-ses-stage-claude { background: #191919; }
.px-ses-stage-codex, .px-ses-stage-claude-code { background: #171a21; }
@media (max-width: 1100px) { .px-ses-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .px-ses-grid { padding: 24px 20px 48px; gap: 18px; }
  .px-ses-stage { padding: 18px 14px; }
  .px-ses-article { display: none; }
}
