/* ── the home: the first screen ─────────────────────────────────────────
   White paper and three things on it: the figure, the field you type your
   address into, and under them the agent's own room — the film it was shot
   in, held in a dark card whose light spills out onto the page. Typing an
   address does not send anybody away: the pitch steps aside and the site that
   was typed is read where it stood (home.js). */
/* the light is wider than the window on purpose; the section, not the page, is what cuts it */
.screen { position: relative; isolation: isolate; padding-block: clamp(24px, 4.6vh, 52px) clamp(56px, 8vw, 116px); overflow-x: clip; text-align: center; }
/* one column that may be narrower than what stands in it: a field's own width must never widen the page */
.screen-top { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.screen-pitch { width: 100%; }

/* one line that names the product, with his face on it */

/* The figure is the loudest thing on the page: black, as large as the window
   allows, and it climbs to what it is (site.js). The delay keeps it invisible
   until the script has set its first value, so nobody sees the end of the
   count before its beginning. Where it was read is one link away, not on the
   screen — a first screen that talks about a customer's data reads as a leak. */
.screen h1 { display: grid; justify-items: center; gap: clamp(2px, .8vh, 10px); }


.screen h1 span { max-width: 23ch; color: var(--ink); font: 600 clamp(25px, 3.3vw, 46px)/1.08 var(--sans); letter-spacing: -.042em; animation: rise .7s var(--ease) .5s both; }
.screen h1 span i { display: block; color: var(--ink-3); font-style: normal; }
/* a wide window sets the figure beside its line, so the room under them is in sight before anybody scrolls */
@media (min-width: 860px) {
  .screen h1 { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.2vw, 32px); text-align: left; }

  .screen h1 span { max-width: 25ch; }
}
.screen-also { max-width: 54ch; margin: clamp(12px, 2vh, 20px) auto 0; color: var(--ink-2); font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.5; text-wrap: pretty; animation: rise .7s var(--ease) .62s both; }

/* ── the field ───────────────────────────────────────────────────────────
   The one thing to do on the page, so the one thing a light runs round: a
   beam travels the rim of the pill, and the pill stands on its glow. */
/* the beam and its glow belong to a wrapper, so the field's own white covers their middle */
.screen-field { position: relative; width: min(580px, 100%); margin: clamp(22px, 3.4vh, 36px) auto 0; border-radius: 999px; animation: rise .7s var(--ease) .74s both; }
.screen-field::before, .screen-field::after { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; background: conic-gradient(from var(--turn), transparent 0 58%, #ffb38a 74%, var(--ember) 86%, #ec4899 95%, transparent 100%); animation: turn 5.5s linear infinite; }
/* The glow's own box holds the whole reach of its blur (66px of padding round the painted pill).
   Safari repaints only the box of a blurred element whose paint changes, never the reach of the
   blur — so a glow that spilled outside its box stood still there, cut off along a hard rectangle. */
.screen-field::after { inset: -72px; padding: 66px; background-origin: content-box; background-clip: content-box; filter: blur(22px); opacity: .7; pointer-events: none; }
.screen-ask { display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 26px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(14, 13, 17, .05), 0 14px 34px -20px rgba(14, 13, 17, .3); transition: border-color .2s, box-shadow .25s; }
.screen-ask:focus-within { border-color: var(--ink); box-shadow: 0 0 0 5px rgba(255, 91, 31, .14), 0 14px 34px -20px rgba(14, 13, 17, .3); }
.screen-ask input { flex: 1; min-width: 0; height: 50px; border: 0; background: none; color: var(--ink); font: 400 18px/1.2 var(--sans); letter-spacing: -.012em; }
.screen-ask input::placeholder { color: var(--faint); }
.screen-ask input:focus { outline: none; }
/* the button is the agent himself: he watches the pointer and turns once when you send */
.screen-go { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 500 16px/1 var(--sans); letter-spacing: -.012em; white-space: nowrap; cursor: pointer; transition: background .18s, transform .18s var(--ease); }
.screen-go:hover { background: #2b2931; }
.screen-go:active { transform: scale(.97); }
.screen-go i { display: grid; place-items: center; width: 40px; height: 40px; }
.screen-go img { display: block; width: 100%; height: 100%; transform: translate(var(--look-x, 0px), var(--look-y, 0px)); transition: transform .5s cubic-bezier(.22, .9, .3, 1); will-change: transform; }
.screen-go.is-sent img { transform: rotate(360deg); transition: transform .8s cubic-bezier(.3, .8, .3, 1); }
/* the field wakes the button once something is typed in it */
.screen-ask input:not(:placeholder-shown) + .screen-go { animation: go-wake 1.8s ease-in-out infinite; }
@keyframes go-wake { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 91, 31, .55); } 50% { box-shadow: 0 0 0 10px rgba(255, 91, 31, 0); } }
.screen-note { margin: 14px 0 0; color: var(--mute); font-size: 13.5px; animation: rise .7s var(--ease) .86s both; }
.screen-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.screen-note a:hover { text-decoration-color: var(--ink); }
.screen-engines { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 20px; margin: clamp(14px, 2.6vh, 28px) 0 0; color: var(--mute); font-size: 13.5px; animation: rise .7s var(--ease) .98s both; }
.screen-engines b { color: var(--ink-2); font: 600 15.5px/1 var(--sans); letter-spacing: -.025em; }
.scan-bad { margin: 12px 0 0; color: var(--bad); font: 500 14px/1.4 var(--sans); }

/* ── the check, on the screen ────────────────────────────────────────────
   The five results and their score appear together. */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.screen.is-scan .screen-pitch { display: none; }
.scan { width: min(600px, 100%); overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--radius-l); background: #fff; box-shadow: var(--float), 0 34px 90px -44px rgba(255, 91, 31, .5); text-align: left; scroll-margin-block: calc(var(--nav) + 16px) 24px; animation: rise .5s var(--ease) both; }
.scan-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 18px 26px; border-bottom: 1px solid var(--line); }
.scan-domain { min-width: 0; color: var(--ink); font: 600 clamp(21px, 2.3vw, 27px)/1.1 var(--sans); letter-spacing: -.035em; overflow-wrap: anywhere; }
.scan-score { position: relative; flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: conic-gradient(var(--ember) calc(var(--p) * 1turn), var(--wash-2) 0); transition: --p .6s var(--ease); }
.scan:not(.is-done) .scan-score { visibility: hidden; }
.scan-score::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.scan-score em { position: relative; color: var(--ink); font: 600 15px/1 var(--sans); font-style: normal; }
.scan-rows { list-style: none; margin: 0; padding: 8px 0; }
.scan-rows li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; padding: 11px 26px; }
.scan-rows i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font: 700 12.5px/1 var(--sans); font-style: normal; }
.scan-rows b { display: block; color: var(--ink); font: 500 16px/1.3 var(--sans); letter-spacing: -.018em; }
.scan-rows small { display: block; min-height: 1.4em; margin-top: 3px; color: var(--mute); font: 400 13.5px/1.4 var(--sans); overflow-wrap: anywhere; }
.scan-rows .is-wait i { border: 2px solid var(--wash-2); border-top-color: var(--ember); animation: scan-spin .8s linear infinite; }
.scan-rows .is-wait b { color: var(--mute); font-weight: 400; }
.scan-rows li:not(.is-wait) i { animation: scan-pop .4s cubic-bezier(.2, .9, .3, 1.5) both; }
.scan-rows .is-unknown i { background: #f59e0b; color: #fff; }
.scan-rows .is-unknown i::before { content: "?"; }
.scan-rows .is-ok i { background: var(--ok); }
.scan-rows .is-ok i::before { content: "\2713"; }
.scan-rows .is-warn i { background: #f59e0b; }
.scan-rows .is-warn i::before { content: "!"; }
.scan-rows .is-bad i { background: var(--bad); }
.scan-rows .is-bad i::before { content: "\00d7"; }
@keyframes scan-spin { to { rotate: 1turn; } }
@keyframes scan-pop { from { scale: 0; } to { scale: 1; } }
.scan-foot { display: none; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px 20px 22px 26px; border-top: 1px solid var(--line); background: var(--wash); }
.scan.is-done .scan-foot { display: flex; animation: rise .45s ease-out both; }
.scan-more { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.scan-share, .scan-again { padding: 0; border: 0; background: none; color: var(--mute); font: 400 14px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.scan-share:hover, .scan-again:hover { color: var(--ink); }

/* ── the room ────────────────────────────────────────────────────────────
   The film is the room he lives in, so it is shown as a room: one dark card,
   edge to edge of the measure, the only dark thing on a white page. What he
   is doing is said in the corner, and the product itself — the dashboard's
   own chat, filmed on a demo site — stands in the room beside him. */
.screen-room { position: relative; margin-top: clamp(24px, 4vh, 44px); }
/* The film is 1904 pixels wide and a retina window draws two of its own for
   every CSS pixel, so shown wider than about 950 the room goes soft (measured
   2026-11-20: sharpness here is a pixel count, not a bitrate). The card keeps
   under that; a larger room needs a larger film first. */
.screen-set { position: relative; width: min(940px, 100%); margin-inline: auto; }
.screen-stage { position: relative; aspect-ratio: 1904 / 1084; overflow: hidden; border-radius: clamp(20px, 2.6vw, 36px); background: var(--stage); box-shadow: 0 50px 110px -52px rgba(34, 31, 40, .75); }
.screen-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The room's light does not stop at its wall. A canvas behind the card is
   drawn by a shader (home.js): the same warm arcs, flowing, leaning toward
   the pointer. The gradients underneath are what a browser without WebGL, or
   a visitor who asked for less motion, sees instead — the same light, still. */
.screen-light { position: absolute; z-index: -1; left: 50%; top: -250px; width: min(1380px, 124vw); height: calc(250px + 66%); translate: -50% 0; pointer-events: none; filter: blur(46px) saturate(1.25); -webkit-mask-image: radial-gradient(50% 56% at 50% 62%, #000 34%, transparent 100%); mask-image: radial-gradient(50% 56% at 50% 62%, #000 34%, transparent 100%);
  background: radial-gradient(32% 44% at 26% 66%, rgba(255, 132, 70, .95), transparent 72%), radial-gradient(30% 44% at 72% 62%, rgba(236, 72, 153, .75), transparent 72%), radial-gradient(30% 40% at 50% 46%, rgba(255, 190, 140, .95), transparent 72%), radial-gradient(26% 40% at 88% 76%, rgba(139, 92, 246, .65), transparent 72%), radial-gradient(24% 38% at 10% 78%, rgba(139, 92, 246, .45), transparent 72%); }
.screen-light.is-live { background: none; }
.screen-state { position: absolute; left: clamp(12px, 1.8vw, 24px); top: clamp(12px, 1.8vw, 24px); display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border: 1px solid var(--stage-line); border-radius: 999px; background: rgba(34, 31, 40, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--stage-ink); font: 450 13px/1 var(--sans); }
.screen-state i { width: 7px; height: 7px; border-radius: 50%; background: #ffb38a; box-shadow: 0 0 0 3px rgba(255, 179, 138, .2); animation: state-pulse 2.8s ease-in-out infinite; }
@keyframes state-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.screen-chat { position: absolute; top: 50%; right: clamp(14px, 2.4vw, 28px); translate: 0 -50%; width: clamp(240px, 31%, 300px); margin: 0; text-align: left; }
/* where the window is wide enough, the chat steps half out of the room, toward the reader */
@media (min-width: 1220px) { .screen-chat { right: -116px; width: 352px; } }
/* it arrives with the room, whole: a window that fades in over him would be read through */



/* the card grows into its place as the page reaches it */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 860px) {
    .screen-set { animation: set-in linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; }
    @keyframes set-in { from { scale: .93; translate: 0 44px; } to { scale: 1; translate: 0 0; } }
  }
}

/* ── the pages the room is made of ──────────────────────────────────────
   He is an agent that lives on a website, so the room is built out of one:
   six pages drift around him on their own clocks. The named ones are the
   files the agent serves from inside a site. Decoration only — the layer is
   aria-hidden, and it moves nothing but transform and opacity. */
.room-web { position: absolute; inset: 4% 3%; z-index: 1; display: block; pointer-events: none; }
.pg { --c: rgba(238, 212, 180, .3); position: absolute; left: var(--x); top: var(--y); width: 78px; height: 56px; margin: -28px 0 0 -39px; border: 1px solid var(--c); border-radius: 7px;
  background-image: linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)); background-repeat: no-repeat; background-size: 100% 1px, 56% 2px, 72% 2px, 38% 2px; background-position: 0 13px, 9px 25px, 9px 34px, 9px 43px;
  box-shadow: 0 0 22px -6px rgba(238, 212, 180, .22); opacity: 0; scale: var(--s); animation: pg-drift var(--d) ease-in-out var(--t) infinite; }
.pg[data-f]::after { content: attr(data-f); position: absolute; left: 0; top: calc(100% + 6px); color: rgba(238, 212, 180, .44); font: 400 9.5px/1 var(--mono); white-space: nowrap; }
@keyframes pg-drift { 0% { opacity: 0; translate: 0 18px; } 14%, 62% { opacity: .85; } 100% { opacity: 0; translate: 0 -30px; } }

/* A phone sees none of the room's width, so the card is cut taller around him
   and the chat stands under it, overlapping its foot. */
@media (max-width: 859px) {

  .screen-kicker { font-size: 12.5px; line-height: 1.25; }
  .screen h1 span { font-size: clamp(23px, 6.6vw, 30px); }
  .screen h1 span i { font-size: .88em; }
  .screen-ask { padding-left: 20px; }
  .screen-ask input { height: 44px; font-size: 16.5px; }
  .screen-go { height: 46px; padding-left: 16px; font-size: 15px; }
  .screen-go i { width: 34px; height: 34px; }
  .screen-engines span { width: 100%; }
  .scan-head { padding: 14px 16px 14px 20px; }
  .scan-rows li { padding: 9px 20px; }
  .scan-foot { padding: 16px 16px 20px 20px; }
  .screen-stage { aspect-ratio: 1 / 1.04; }
  .screen-light { top: -200px; height: calc(200px + 60%); }
  .screen-chat { position: relative; top: auto; right: auto; translate: none; width: min(88%, 380px); margin: -84px auto 0; }
  .pg { width: 58px; height: 42px; margin: -21px 0 0 -29px; background-position: 0 10px, 7px 19px, 7px 26px, 7px 33px; }
  .pg[data-f]::after { font-size: 8.5px; }
}

/* ── a campaign landing page ─────────────────────────────────────────────
   The searched question, the field, one thing to press: the bar keeps only
   the name, and the headline stands centred with no figure beside it. */
.lp .nav-links, .lp .nav-side, .lp .menu { display: none; }
.screen-lp { padding-bottom: clamp(28px, 4vw, 56px); }
.screen-lp h1, .screen-lp h1 span { text-align: center; }
.screen-lp h1 span { max-width: 22ch; }

.screen .monitor-headline { display: block; margin-inline: auto; font-size: clamp(2rem, 5.6vw, 4.75rem); line-height: 1.04; letter-spacing: -.05em; text-align: center; }
.monitor-headline + .screen-also { max-width: 57ch; margin-top: clamp(16px, 2.4vh, 24px); animation: none; }
.screen:not(.screen-lp) .screen-field::after { opacity: .3; }
.finding-preview { display: grid; gap: 14px; padding: clamp(18px, 2.8vw, 32px); background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--float); text-decoration: none; }
.finding-preview strong { font-size: clamp(20px, 2.1vw, 30px); line-height: 1.12; letter-spacing: -.035em; }
.finding-preview span { font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 860px) {
  .finding-preview { top: 26%; }
}
@media (max-width: 480px) {
  .screen-field, .screen-ask { border-radius: 24px; }
  .screen-ask { display: grid; padding: 8px; }
  .screen-ask input { width: 100%; padding-inline: 12px; }
  .screen-go { justify-content: center; padding-inline: 16px; }
}
