/* polyradar.top — the public site, in the Clerk style (styles.refero.design):
   light documentation-like surfaces, dark cards holding the product,
   one accent for the primary actions — ours the logo's green; the frames at
   a phone's width, one per reader on the front page and every one of them
   on screens.html. The Telegram
   frames (drawn by scripts/screens-map/build.py from the code) are the only
   pictures, each a card of the chat's own dark surface. Light only, by
   design: the dark bands are the product's, the canvas is the page's. */
/* Geist, served from here (SIL Open Font License, geist-OFL.txt beside the
   files): one variable file per subset, so no request leaves the site for a
   font and the page draws in it at once. */
@font-face {
  font-family: Geist; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* canvas and text */
  --void: #131316;          /* headings, body on light */
  --fog: #f7f7f8;           /* page canvas */
  --white: #ffffff;         /* cards, inputs */
  --graphite: #5e5f6e;      /* secondary text */
  --ash: #676979;          /* tertiary text (5.1:1 on fog) */
  --hairline: #d9d9de;      /* borders */
  --mist: #eeeef0;          /* dividers, hover washes, pills */
  --stone: #9394a1;         /* placeholders, dark-section body text */
  /* dark surfaces */
  --obsidian: #212126;      /* tiles and bento cells on a dark band */
  --dark-band: #1a1a1f;     /* full-bleed dark sections */
  --slate: #8b8c9b;         /* the accordion's marks on a dark band */
  /* the accent: the logo's green, where Clerk has its violet */
  --accent: #2fd64f;        /* filled CTA */
  --accent-ink: #06130a;    /* text on the filled CTA */
  --accent-text: #127a30;   /* accent as text on light surfaces (5.1:1 on fog, 4.7:1 on mist) */
  --accent-soft: rgba(47, 214, 79, .14);
  --spark: #7cff5e;         /* accent on dark surfaces, like Clerk's cyan spark */
  /* Telegram's dark chrome inside the product cards: what the chat looks like */
  --tg-bg: #0e1621;
  --tg-bubble: #182533;
  --tg-text: #f1f4f7;
  --tg-dim: #8a9aab;
  --tg-btn: #2a3a4b;
  --tg-btn-primary: #3b6ea8;
  --tg-btn-danger: #7c2f2f;
  --tg-link: #6ab3f3;
  /* shape */
  --r-btn: 6px; --r-sm: 8px; --r-code: 12px; --r-card: 16px;
  --max: 1240px;
}

* { box-sizing: border-box; }
/* light only, by design — `only` keeps Chrome on Android from darkening the page
   on its own; the scroll padding clears the 60px sticky nav for a focused element */
html { scroll-behavior: smooth; color-scheme: only light; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--fog); color: var(--void);
  font-family: Geist, Inter, "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 100%; line-height: 1.55; font-feature-settings: "tnum"; /* the reader's size: 16px unless they set another */
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p a, li a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: var(--r-btn); }
.dark :focus-visible, .preview :focus-visible { outline-color: var(--spark); }
/* under a finger the controls that open and close things draw no ring: the burger, the modals' close
   buttons and the gallery's arrows (the owner's, 2026-10-26: it was in the way); a keyboard on a desktop keeps it */
@media (hover: none) and (pointer: coarse) {
  .burger:focus-visible, .film-x:focus-visible, .g-prev:focus-visible, .g-next:focus-visible { outline: none; }
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 24px; }

/* ── the skip link and the words for a screen reader alone ─────────────── */
.skip { position: absolute; left: 16px; top: -48px; z-index: 11; padding: 10px 14px; border-radius: var(--r-btn); background: var(--white); color: var(--void); border: 1px solid var(--hairline); font-size: 0.875rem; font-weight: 500; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ── nav ────────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(247,247,248,.85); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--mist); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding-block: 8px; font-weight: 600; font-size: clamp(17px, 1.0625rem, 19px); letter-spacing: -0.015em; } /* a 44px target; the wordmark grows with the reader's size only to 19px, so the bar fits a phone */
.brand img { width: 28px; height: 28px; border-radius: 50%; }
.links { display: flex; gap: 4px; }
.links a { padding: 6px 12px; border-radius: var(--r-btn); font-size: 0.875rem; font-weight: 500; color: var(--void); border: 1px solid transparent; } /* 36px tall, the button's height, so the hover's pill matches it (the owner's, 2026-10-26) */
.links a:hover { border-color: var(--hairline); background: var(--white); }
.nav .nav-cta { padding: 6px 12px; font-size: clamp(14px, 0.875rem, 16px); } /* 36px tall inside the 60px nav: smaller than the page's buttons (the owner's, 2026-10-26) */
/* the burger: a 36px square at the nav's right end — the button's height, so its hover pill matches
   (the owner's, 2026-10-26) — with a 44px hit area around it (::before); shown by the script (it needs it)
   under 900px only; its glyph is three lines, a cross while the sheet is open */
.burger { display: none; position: relative; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 1px solid transparent; border-radius: var(--r-btn); background: none; color: var(--void); cursor: pointer; }
.burger::before { content: ""; position: absolute; inset: -5px; } /* 44px around the 34px padding box */
.burger:hover { border-color: var(--hairline); background: var(--white); }
.burger .x, .nav.open .burger .o { display: none; }
.nav.open .burger .x { display: block; }
/* under 900px the sections' links fold into a sheet under the nav: Fog, the
   whole screen below the 60px bar, one link a row at 17px with a Mist line
   between; it slides down 6px as it fades in. Positioned off the sticky
   nav, not fixed: the nav's backdrop-filter makes it the containing block of
   anything fixed inside. The page behind is not locked with overflow:
   hidden on the root — that unsticks the nav, which leaves with the sheet
   for its place at the top of the document — the script stops a touch or a
   wheel over the sheet instead, and the sheet's own scroll stays inside it */
@media (max-width: 900px) {
  .nav .wrap { gap: 10px; }
  .nav .nav-cta { margin-left: auto; }
  .burger { display: inline-flex; }
  .links { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 60px); height: calc(100dvh - 60px); overflow-y: auto; overscroll-behavior: contain; flex-direction: column; gap: 0; padding: 8px 16px 24px; background: var(--fog);
           visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s ease-out, transform .18s ease-out, visibility 0s linear .18s; }
  .nav.open .links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .links a { display: block; padding: 13px 8px; border: 0; border-bottom: 1px solid var(--mist); border-radius: 0; font-size: 1.0625rem; }
  .links a:last-child { border-bottom: 0; }
  .links a:hover { background: none; }
  .links a:focus-visible { border-radius: var(--r-btn); outline-offset: -2px; }
}

/* ── buttons ──────────────────────────────────────────────────── */
.cta, .outline {
  display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-btn);
  font-weight: 500; font-size: 0.9375rem; padding: 11px 18px; transition: background .15s, box-shadow .15s, border-color .15s; white-space: nowrap;
}
/* a transparent border, so a filled button is the outline button's size */
/* the filled button sits on its 1px ring of the accent and a short neutral shadow, no coloured glow (the owner's, 2026-10-25) */
/* the filled button's edge is a solid 1px of a deeper green inside it, crisp on any background; the
   translucent ring outside the fill read as a blur (the owner's, 2026-10-26). The short shadow stays. */
.cta { border: 1px solid #22b83f; background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(19,19,22,.12); }
.cta:hover { background: #3fe05c; border-color: #27c247; box-shadow: 0 2px 4px rgba(19,19,22,.16); }
.dark .cta { box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.dark .cta:hover { box-shadow: 0 2px 4px rgba(0,0,0,.45); }
.outline { background: var(--white); color: var(--void); border: 1px solid var(--hairline); }
.outline:hover { border-color: #c5c6cc; }
.dark .outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.16); }
.dark .outline:hover { border-color: rgba(255,255,255,.3); }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: 64px 56px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 70%; pointer-events: none; z-index: 0;
  background: radial-gradient(55% 65% at 28% 30%, rgba(47,214,79,.16), transparent 70%);
}
/* the headline over the copy, the live frame beside both, top-aligned so the
   button and the first alert are above a laptop's fold */
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-areas: "h p" "c p"; grid-template-rows: auto 1fr; gap: 20px 64px; align-items: start; }
.hero h1 { grid-area: h; }
.hero .hero-phone { grid-area: p; }
.hero .c { grid-area: c; }
h1 { font-size: clamp(min(2.25rem, 10vw), 4.3vw, 3.75rem); line-height: 1; font-weight: 600; letter-spacing: -0.035em; }
h1 .em { color: var(--accent-text); }
/* the promo film's titles: a trader's question, and the answer under it in the accent */
.hero h1 .em { display: block; }
h2 .em { color: var(--accent-text); }
.dark h2 .em { color: var(--spark); }
.lede { font-size: 1.125rem; color: var(--graphite); max-width: 34em; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fine { margin-top: 14px; color: var(--ash); font-size: 0.875rem; }
.dark .fine { color: var(--stone); }
.dark p a { color: #fff; }

/* ── the product card: the Telegram chat's dark surface holding one or more frames ──── */
.preview {
  margin: 0; /* a <figure> */
  background: var(--tg-bg); border-radius: var(--r-card); padding: 10px 12px 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  min-width: 0;
}
/* every frame is a door into the bot: a link laid over the card (never an <a>
   around it — the bubbles hold links of their own), named in the caption's
   corner on hover, always on a touch screen; each card's link carries its
   own source (`?start=s_site-…`), so the panel's Audience page can say
   which frame people came through */
.preview { position: relative; transition: box-shadow .15s; }
.preview .tap { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
/* the whole card answers the pointer: its hairline turns the accent and the caption white, nothing moves */
.preview:hover, .preview:focus-within { box-shadow: inset 0 0 0 1px rgba(124,255,94,.75); }
.preview:hover .cap, .preview:focus-within .cap { color: #fff; }
.preview .cap .go { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--spark); opacity: 0; transition: opacity .15s; white-space: nowrap; font-weight: 500; }
.preview:hover .cap .go, .preview:focus-within .cap .go { opacity: 1; }
@media (hover: none) { .preview .cap .go { opacity: .85; } }
.preview .cap .go .gl { width: 14px; height: 14px; color: inherit; }
/* in a packed grid the cards are narrow and the captions long: the arrow alone */
.frames .cap .go .w { display: none; }
/* the frame inside is the card itself: one surface, the chat's, from the caption down to the last button */
.preview .screen { padding: 0; border-radius: 0; font-size: 15px; line-height: 1.4; }
/* a phone's size: Telegram sets a message at ~16px and draws a custom emoji half as big again */
.preview .b { font-size: 14px; padding: 9px 6px; }
.preview .bubble code { font-size: 13.5px; }
.preview .ic { width: 1.5em; height: 1.5em; vertical-align: -0.4em; }
.preview .b .ic { width: 1.4em; height: 1.4em; vertical-align: -0.38em; margin-right: 6px; }
.preview .cap > span:first-child { min-width: 0; }
.preview .cap { padding: 4px 6px 10px; color: var(--stone); font-size: 0.8125rem; font-weight: 500; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.preview .cap::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--spark); flex: none; }
.preview .cap .gl { color: var(--stone); }
.hero-phone { max-width: 420px; justify-self: end; width: 100%; }
/* the feed reads like a chat: oldest first, the newest last */
.hero-phone .feed .msg { animation: arrive .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.3s + var(--d) * .9s); }
.feed .msg + .msg { margin-top: 10px; }
/* the feed is two alerts, whole: the card stands about as tall as the hero's words */
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-phone .feed .msg { animation: none; } html { scroll-behavior: auto; } .links { transition: none; } }
/* ── motion: what arrives, and how (the owner's, 2026-10-26) ────────────
   A modal rises 8px and fades in over 220ms as its backdrop fades, and
   leaves the same way where the browser holds display and overlay for the
   transition (allow-discrete, @starting-style; elsewhere it comes and goes
   at once, as before). In the gallery each screen arrives in its turn,
   180ms from 6px below. A band's content arrives as the reader reaches it:
   a 10px rise and a fade over 500ms, the columns of one band 60ms apart,
   once (the script's observer); only where scripting is on, so a page
   without the script shows everything, and never under reduced motion. */
.film, .gallery { opacity: 0; transform: translateY(8px) scale(.985); transition: opacity .22s cubic-bezier(.2,.7,.2,1), transform .22s cubic-bezier(.2,.7,.2,1), overlay .22s allow-discrete, display .22s allow-discrete; }
.film[open], .gallery[open] { opacity: 1; transform: none; }
.film::backdrop, .gallery::backdrop { opacity: 0; transition: opacity .22s ease-out, overlay .22s allow-discrete, display .22s allow-discrete; }
.film[open]::backdrop, .gallery[open]::backdrop { opacity: 1; }
@starting-style {
  .film[open], .gallery[open] { opacity: 0; transform: translateY(8px) scale(.985); }
  .film[open]::backdrop, .gallery[open]::backdrop { opacity: 0; }
}
.g-stage > * { animation: g-in .18s cubic-bezier(.2,.7,.2,1) both; }
@keyframes g-in { from { opacity: 0; transform: translateY(6px); } }
@media (scripting: enabled) {
  .band:not(.first) .wrap > .copy, .band .wrap > .pane, .close .wrap > *, .group > h2, .cards > .feat { opacity: 0; transform: translateY(10px); transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1); }
  .seen { opacity: 1 !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .film, .gallery, .film::backdrop, .gallery::backdrop { transition: none; }
  .g-stage > * { animation: none; }
  .band:not(.first) .wrap > .copy, .band .wrap > .pane, .close .wrap > *, .group > h2, .cards > .feat { opacity: 1; transform: none; transition: none; }
}

/* ── sections: light and dark bands ─────────────────────────────────────── */
.band { padding-block: 80px; border-top: 1px solid var(--mist); }
.band.dark { background: var(--dark-band); color: #fff; border-top: 0; }
.band.first { padding-block: 56px 0; border-top: 0; }
.band .wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px 48px; align-items: start; }
.band .wrap.stack { display: block; }
/* a band with two screens: the heading and lede across the top, then two
   columns, each a line about its screen and the screen itself at its own
   height — nothing cut, turned or scripted. The columns are a subgrid, so
   the two frames start level whatever the sentences wrap to; their bottoms
   are as ragged as two columns' are */
.band .wrap.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.wrap.two > .copy { grid-column: 1 / -1; position: static; }
.two .pane { min-width: 0; display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 16px; align-content: start; }
.two .pane h3 { font-size: 1.1875rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.two .pane p { color: var(--graphite); font-size: 0.9375rem; line-height: 1.5; max-width: 32em; }
.dark .two .pane p { color: var(--stone); }
.two .pane > .preview { width: 100%; max-width: 440px; align-self: start; }
/* the ladder of trade sizes: a step never breaks between its animal and its figure */
.nw { white-space: nowrap; }
.copy { position: sticky; top: 84px; }
h2, .h2 { font-size: clamp(1.75rem, 3vw, 2rem); line-height: 1.13; letter-spacing: -0.035em; font-weight: 600; margin-bottom: 16px; }
.copy p { color: var(--graphite); max-width: 36em; }
.dark .copy p { color: var(--stone); }
.copy p b { color: var(--void); font-weight: 500; }
.dark .copy p b { color: #fff; }
.frames { display: grid; gap: 20px; align-items: start; }
.frames.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.frames.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row { margin-top: 20px; }
.frames.packed { grid-auto-rows: 8px; grid-auto-flow: dense; }
.frames.packed > * { align-self: start; }
.lead { max-width: 40em; color: var(--graphite); margin-bottom: 32px; }
.dark .lead { color: var(--stone); }

/* the close: the one ask at the end, and somebody to write to */
.close h2 { max-width: 16em; }
.close .say { color: var(--stone); max-width: 36em; font-size: 1.0625rem; }
.close .actions { margin-top: 24px; }
.contact { margin-top: 28px; color: var(--stone); font-size: 0.9375rem; }
.contact a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
/* and a way in from a laptop to the phone: the bot's link as a QR code, on a
   white tile beside the ask, only where there is a pointer and the room. Made once:
     qrencode -t SVG --svg-path -o site/static/qr.svg -l M -m 0 'https://t.me/PolyRadarXbot?start=s_site-qr'
   (`--svg-path` draws the modules as one path, so no seam shows between them) */
.qr { display: none; margin: 0; width: 220px; }
.qr-tile { display: block; background: var(--white); border-radius: var(--r-card); padding: 20px; box-shadow: inset 0 0 0 1px var(--hairline); }
.qr-tile img { display: block; width: 180px; height: 180px; }
.qr figcaption { margin-top: 14px; color: var(--stone); font-size: 0.875rem; line-height: 1.5; }
@media (hover: hover) and (min-width: 900px) {
  .close .wrap.stack { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 80px; align-items: start; }
  .close .qr { display: block; }
}

/* ── the film: a button beside the ask, the player over the page ─────────── */
.film-open .len { color: var(--ash); font-weight: 400; font-variant-numeric: tabular-nums; }
.film { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.film::backdrop { background: rgba(12,12,15,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.film video { display: block; width: min(92vw, calc(90dvh * 9 / 16)); height: auto; aspect-ratio: 9 / 16; border-radius: var(--r-card); background: #000; }
.film-x {
  position: absolute; top: 0; left: calc(100% + 12px); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; transition: background .15s;
}
.film-x:hover { background: rgba(255,255,255,.22); }
.film-x:focus-visible { outline-color: var(--spark); border-radius: 50%; }
/* no room beside the film on a phone: the close button sits on its corner */
@media (max-width: 640px) { .film-x { left: auto; right: 8px; top: 8px; z-index: 1; background: rgba(0,0,0,.55); } }

/* ── footer ─────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--mist); padding-block: 40px; color: var(--ash); font-size: 0.875rem; }
/* the line runs the content's width: it is not for reading through (the owner's, 2026-10-26) */
.foot p { max-width: none; }

/* ── The Telegram frame, as scripts/screens-map/style.html draws it ──────── */
.screen {
  background: var(--tg-bg); border-radius: var(--r-code); padding: 12px;
  font-family: -apple-system, "Segoe UI", Roboto, system-ui, sans-serif; color: var(--tg-text);
  font-size: 13.5px; line-height: 1.42; letter-spacing: 0; font-feature-settings: normal;
}
.bubble { background: var(--tg-bubble); border-radius: 12px 12px 12px 4px; padding: 9px 12px 8px; margin-bottom: 8px; position: relative; }
.bubble .tx { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble a { color: var(--tg-link); text-decoration: underline; }
.bubble i { color: var(--tg-dim); }
.bubble code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.bubble blockquote { margin: 5px 0; padding: 4px 22px 5px 10px; border-left: 3px solid var(--tg-link); background: rgba(106,179,243,.12); border-radius: 4px; position: relative; white-space: pre-wrap; }
.bubble blockquote.exp { max-height: calc(3 * 1.42em + 9px); overflow: hidden; }
.bubble blockquote.exp::after { content: "⌄"; position: absolute; right: 7px; bottom: 3px; color: var(--tg-link); font-weight: 700; }
.kb { display: grid; gap: 4px; }
.kb .r { display: grid; gap: 4px; grid-auto-flow: column; grid-auto-columns: 1fr; }
.b {
  background: var(--tg-btn); color: #fff; border-radius: 7px; padding: 8px 6px; text-align: center;
  font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative;
}
.b.primary { background: var(--tg-btn-primary); }
.b.danger { background: var(--tg-btn-danger); }
.b.success { background: #2e6b3f; }
.b .ext { opacity: .7; font-size: 11px; }
.msg .bubble:last-child { margin-bottom: 0; }

/* ── the proof strip: three figures off the running bot, under the hero ──── */
.proof { background: var(--white); border-top: 1px solid var(--mist); }
/* up to four figures in a row, each led by its glyph on the cards' Mist
   square (48px here, the glyph 26px), its number over its words beside it;
   when they were counted is the section's data-as-of alone */
.proof .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 12px 32px; padding-block: 22px; }
.proof .f { display: flex; align-items: center; gap: 14px; min-width: 0; }
.proof .ico { flex: none; width: 48px; height: 48px; padding: 11px; box-sizing: border-box; border-radius: var(--r-sm); background: var(--mist); color: var(--accent-text); }
.proof .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.proof .n { font-size: 1.625rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; color: var(--void); font-variant-numeric: tabular-nums; }
.proof .l { color: var(--graphite); font-size: 0.875rem; }

/* ── phones ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding-block: 36px 40px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "p" "c"; gap: 24px; }
  /* a frame stays a phone's width on a tablet too, at the start of its column */
  .hero-phone { justify-self: start; width: 100%; max-width: 440px; }
  /* one alert of the feed, the newest, arriving at once */
  .hero-phone .feed .msg:not(:last-child) { display: none; }
  .hero-phone .feed .msg:last-child { margin-top: 0; animation-delay: .3s; }
  /* a band's two feeds stack here: the alerts marked @wide, and their words in the caption, go */
  .band .feed .msg.wide, .cap .wide { display: none; }
  .band { padding-block: 52px; }
  .band .wrap, .band .wrap.two { grid-template-columns: 1fr; gap: 28px; }
  .copy { position: static; }
  .frames.two, .frames.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
  .proof .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  /* a phone's column is too narrow for the glyph beside three lines of words: the glyph goes over the number */
  .proof .f { flex-direction: column; align-items: flex-start; gap: 8px; }
  .proof .ico { width: 40px; height: 40px; padding: 9px; }
  h1 { font-size: min(2.25rem, 10vw); }
  .actions .cta, .actions .outline { width: 100%; justify-content: center; }
  /* a phone's caption is long for its card: the arrow alone */
  .preview .cap .go .w { display: none; }
  /* a phone's fold holds the headline, the newest alert, the lede and the button */
  .hero { padding-top: 28px; }
  .hero .wrap { gap: 20px; }
  .lede { font-size: 1rem; }
  .hero .actions { margin-top: 24px; }
}

/* ── The bot's icons: its custom emoji in place of the plain ones ────────── */
.ic { display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -0.3em; }
.ic.col { background: var(--u) center / contain no-repeat; }
.ic.mono { background-color: currentColor; -webkit-mask: var(--u) center / contain no-repeat; mask: var(--u) center / contain no-repeat; }
/* forced colours paint a background away, and a masked icon with it */
@media (forced-colors: active) { .ic.mono { forced-color-adjust: none; background-color: CanvasText; } }
.b .ic { margin-right: 5px; vertical-align: -0.33em; }

/* ── the features page: a section's features in groups, each group a grid of
   entries (a name, a sentence or three, the numbers in a muted line) and
   then the screens that show them ────────────────────────────────────── */
.group { margin-top: 48px; }
.wrap > .group:first-child { margin-top: 0; }
.group > :is(h2, h3) { font-size: 1.375rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 20px; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.feat { min-width: 0; }
.feat :is(h3, h4) { font-size: 1rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; }
.feat p { color: var(--graphite); font-size: 0.9375rem; line-height: 1.5; max-width: 36em; }
.dark .feat p { color: var(--stone); }
.feat .nums { display: block; margin-top: 6px; color: var(--ash); font-size: 0.84375rem; font-variant-numeric: tabular-nums; }
.dark .feat .nums { color: var(--slate); }
.group .frames { margin-top: 24px; }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr; gap: 20px; } .group { margin-top: 40px; } }

/* the brief (overview.html): the same entries as cards — Paper, a Hairline,
   the card radius — each led by its glyph, an outlined Lucide at 1.5px in
   Signal Ink on a Mist square; three across, two on a tablet, one on a phone */
.feats.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards .feat { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 20px 22px 22px; }
.cards .feat .ico { display: block; width: 40px; height: 40px; padding: 9px; box-sizing: border-box; border-radius: var(--r-sm); background: var(--mist); color: var(--accent-text); margin-bottom: 14px; }
.cards .feat p { font-size: 0.90625rem; max-width: none; }
/* every group is a band of its own, light and dark by turns like the front
   page; on a dark band a card is Obsidian with the bento cell's sheen, its
   glyph Signal Spark on a square of 8% white */
.band.grp { padding-block: 64px; }
.dark .cards .feat { background: var(--obsidian); border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); background-image: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.04), transparent 60%); }
.dark .cards .feat .ico { background: rgba(255,255,255,.08); color: var(--spark); }
.dark .cards .feat :is(h3, h4) { color: #fff; }
/* the 404 page: the body is a column the height of the screen, its one band takes what the nav and the footer leave, its words in the middle */
body.miss { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.miss main { flex: 1; display: flex; flex-direction: column; }
.band.miss { flex: 1; display: grid; align-content: center; }
/* the page's opening band wears the hero's halo */
.band.first { position: relative; overflow: hidden; }
.band.first::before { content: ""; position: absolute; inset: -140px -10% auto; height: 380px; pointer-events: none; z-index: 0; background: radial-gradient(55% 65% at 28% 40%, rgba(47,214,79,.16), transparent 70%); }
.band.first .wrap { position: relative; z-index: 1; }
@media (max-width: 900px) { .band.grp { padding-block: 48px; } }
@media (max-width: 1100px) { .feats.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* on a phone the glyph sits beside the title, so a card is three lines shorter */
@media (max-width: 640px) {
  .feats.cards { grid-template-columns: 1fr; gap: 12px; }
  .cards .feat { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 40px auto; column-gap: 14px; padding: 18px 20px; }
  .cards .feat .ico { margin: 0; }
  .cards .feat :is(h3, h4) { align-self: center; margin: 0; }
  .cards .feat p { grid-column: 1 / -1; margin-top: 10px; }
}

/* ── the brief's screens: a card's `See N screens` link, and the gallery it
   opens over the page like the film's player — one screen at a time, the
   arrows and a swipe stepping through, each arrow gone at its end ──────── */
.cards .feat { display: flex; flex-direction: column; }
.shots { margin-top: auto; padding: 14px 0 0; border: 0; background: none; font: inherit; cursor: pointer; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 500; color: var(--accent-text); min-height: 44px; }
.shots[hidden] { display: none; } /* until the script that serves it runs */
.shots .gl { width: 14px; height: 14px; transition: translate .15s; }
.shots:hover .gl { translate: 2px 0; }
.dark .shots { color: var(--spark); }
.gallery { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; color: #fff; -webkit-user-select: none; user-select: none; } /* a screen is a picture: nothing in the gallery is selected (the owner's, 2026-10-26) */
.gallery::backdrop { background: rgba(12,12,15,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* the screen's title row, then the screen between its arrows, which sit level with its middle */
.g-box { display: grid; grid-template-columns: 44px min(92vw, 440px) 44px; grid-template-rows: auto auto; gap: 12px; align-items: center; }
.g-head { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 12px; min-height: 44px; }
.g-head h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.g-count { color: var(--stone); font-size: 0.875rem; font-variant-numeric: tabular-nums; margin-left: auto; }
.g-head .film-x { position: static; }
.g-stage { grid-column: 2; grid-row: 2; min-width: 0; }
/* a screen is a picture here: no link over it, nothing in it answers the pointer, a tall one scrolls */
.g-stage .preview { max-height: calc(100dvh - 120px); overflow-y: auto; }
.g-stage .preview:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.g-stage .preview:hover .cap { color: var(--stone); }
.g-stage .screen { pointer-events: none; }
.g-prev, .g-next { grid-row: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; transition: background .15s; }
.g-prev:hover, .g-next:hover { background: rgba(255,255,255,.22); }
.g-prev { grid-column: 1; } .g-next { grid-column: 3; }
.g-prev[hidden], .g-next[hidden] { display: none; }
.gallery :focus-visible { outline-color: var(--spark); }
@media (max-width: 640px) {
  .cards .feat { display: grid; }
  .shots { grid-column: 1 / -1; margin-top: 2px; padding-top: 0; min-height: 44px; }
  /* a phone's gallery: the title and the close on one row, the screen the
     width of all three columns, and ‹ 1 / 3 › on a row of their own under it,
     where the thumb is (a swipe steps too; the owner's, 2026-10-26) */
  .g-box { grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-rows: auto auto auto; gap: 8px 12px; width: 92vw; }
  .g-head { display: contents; }
  .g-head h3 { grid-column: 1 / 3; grid-row: 1; align-self: center; }
  .g-head .film-x { grid-column: 3; grid-row: 1; }
  .g-stage { grid-column: 1 / -1; grid-row: 2; }
  .g-prev, .g-next { grid-row: 3; }
  .g-count { grid-column: 2; grid-row: 3; margin: 0; text-align: center; align-self: center; }
  .g-stage .preview { max-height: calc(100dvh - 150px); }
}
/* the glyphs of the screens held in templates, fetched with the page on a pixel off the screen */
.warm { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
.warm .ic { display: block; width: 1px; height: 1px; }
