/* nauvid site v3 (docs/design/landing-v3.md, design https://nauvid.com/c/2cVGRcdqUM).
   One stylesheet for the shell of every public page (tokens, type, nav, footer, buttons, texture) and the landing's
   sections. Text pages add text.css, the brand page brand.css. Static HTML; site.js only adds motion and tabs.
   Light and dark follow the system; ?theme=light|dark (the inline script) forces one for screenshots.
   Texture (board 10, A + B): the product's dot grid as a field with one slow band of light, static grain, a hairline
   edge light on product frames. All CSS; ambient motion is transform/opacity only. No WebGL. */

@font-face { font-family: "Geist"; src: url("geist.2cabdd33.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("geist-mono.0b236963.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
/* metric-matched fallbacks, so the swap to Geist moves nothing even on a slow font */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 104%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Geist Mono Fallback"; src: local("Menlo"), local("Consolas"), local("Courier New"); size-adjust: 100%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --bg: #f7f4ee; --surface: #ffffff; --raise: #ffffff; --stage: #efebe3;
  --ink-solid: #141413;
  --ink: rgba(20, 20, 19, .93); --ink2: rgba(20, 20, 19, .68); --ink3: rgba(20, 20, 19, .6);
  --line: rgba(20, 20, 19, .10); --line2: rgba(20, 20, 19, .16); --hover: rgba(20, 20, 19, .05);
  --card: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .5));
  --accent: #2456e6; --accent-ink: #2456e6; --accent-soft: rgba(36, 86, 230, .10); --on-accent: #ffffff;
  --primary: #141413; --on-primary: #f7f4ee;
  --dot: rgba(20, 20, 19, .22); --dot-soft: rgba(20, 20, 19, .10);
  --band: rgba(255, 255, 255, .95); --band2: rgba(255, 255, 255, .55);
  --edge: rgba(36, 86, 230, .5); --edge-glow: rgba(36, 86, 230, .10);
  --grain-o: .05; --grain-blend: multiply;
  --head-from: #141413; --head-to: rgba(20, 20, 19, .62);
  --sh: 0 1px 2px rgba(20, 20, 19, .06), 0 18px 40px -18px rgba(20, 20, 19, .22);
  --frame-bg: #fbf9f5; --canvas-dot: rgba(20, 20, 19, .13);
  --site-bg: var(--bg);
  --ok: #2b7a4b;
  --sans: "Geist", "Geist Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  --mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --out: cubic-bezier(.22, .8, .24, 1);
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #121211; --surface: #191817; --raise: #262626; --stage: #191817;
  --ink-solid: #f2f2f0;
  --ink: rgba(255, 255, 255, .93); --ink2: rgba(255, 255, 255, .66); --ink3: rgba(255, 255, 255, .56);
  --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .15); --hover: rgba(255, 255, 255, .07);
  --card: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  --accent: #7aa2ff; --accent-ink: #9dbbff; --accent-soft: rgba(122, 162, 255, .16); --on-accent: #10151f;
  --primary: #f2f2f0; --on-primary: #141413;
  --dot: rgba(255, 255, 255, .3); --dot-soft: rgba(255, 255, 255, .1);
  --band: rgba(122, 162, 255, .14); --band2: rgba(255, 255, 255, .06);
  --edge: rgba(122, 162, 255, .45); --edge-glow: rgba(122, 162, 255, .22);
  --grain-o: .09; --grain-blend: normal;
  --head-from: #ffffff; --head-to: rgba(255, 255, 255, .6);
  --sh: 0 20px 50px rgba(0, 0, 0, .55);
  --frame-bg: #191817; --canvas-dot: rgba(255, 255, 255, .12);
  --ok: #8fd6a8;
} }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211; --surface: #191817; --raise: #262626; --stage: #191817;
  --ink-solid: #f2f2f0;
  --ink: rgba(255, 255, 255, .93); --ink2: rgba(255, 255, 255, .66); --ink3: rgba(255, 255, 255, .56);
  --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .15); --hover: rgba(255, 255, 255, .07);
  --card: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  --accent: #7aa2ff; --accent-ink: #9dbbff; --accent-soft: rgba(122, 162, 255, .16); --on-accent: #10151f;
  --primary: #f2f2f0; --on-primary: #141413;
  --dot: rgba(255, 255, 255, .3); --dot-soft: rgba(255, 255, 255, .1);
  --band: rgba(122, 162, 255, .14); --band2: rgba(255, 255, 255, .06);
  --edge: rgba(122, 162, 255, .45); --edge-glow: rgba(122, 162, 255, .22);
  --grain-o: .09; --grain-blend: normal;
  --head-from: #ffffff; --head-to: rgba(255, 255, 255, .6);
  --sh: 0 20px 50px rgba(0, 0, 0, .55);
  --frame-bg: #191817; --canvas-dot: rgba(255, 255, 255, .12);
  --ok: #8fd6a8;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); letter-spacing: -.006em; -webkit-font-smoothing: antialiased; overflow-x: clip; position: relative; isolation: isolate; }
h1, h2, h3, h4, p, ol, ul, figure, dl, dd, pre, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
i, em { font-style: normal; }
button { font: inherit; color: inherit; }
code, kbd, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* the one focus ring (DESIGN.md §7, D-052): 2 px accent; components may move it, never draw a second one */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.nm { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 99; }
.skip:focus { left: 16px; top: 16px; padding: 8px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line2); border-radius: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 64px); margin: 0 auto; padding: 0 32px; }

/* ---------- texture B: static grain, one inline feTurbulence tile, behind every page ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain-o); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.2 -.1'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 759px) { body::before { opacity: calc(var(--grain-o) * .5); } }

/* ---------- texture A: the dot field and its one band of light ---------- */
.field { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 50% 30%, #000 0, rgba(0, 0, 0, .3) 50%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 70% at 50% 30%, #000 0, rgba(0, 0, 0, .3) 50%, transparent 75%); }
.field::before { content: ""; position: absolute; inset: 0; background: radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 22px 22px; }
/* the band: a soft diagonal light, moved with transform only; 14 s a pass, 6 s rest, linear */
.field .band {
  position: absolute; top: 0; bottom: 0; left: -50%; width: 100%; will-change: transform;
  background: linear-gradient(105deg, transparent 40%, var(--band) 49%, var(--band2) 52%, transparent 61%);
  transform: translateX(50%);
}
.field.c { -webkit-mask-image: radial-gradient(ellipse 52% 62% at 50% 46%, #000 0, rgba(0, 0, 0, .35) 45%, transparent 72%); mask-image: radial-gradient(ellipse 52% 62% at 50% 46%, #000 0, rgba(0, 0, 0, .35) 45%, transparent 72%); }
.field.head { -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent); mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent); }
@media (prefers-reduced-motion: no-preference) and (min-width: 760px) {
  .field .band { animation: band 20s linear infinite; }
  .field.off .band { animation-play-state: paused; }
}
@keyframes band { 0% { transform: translateX(-12%); } 70%, 100% { transform: translateX(112%); } }
@media (max-width: 759px) { .field .band { display: none; } }

/* ---------- headline fade (ink to ~60 % ink, top to bottom) ---------- */
.fade { background: linear-gradient(180deg, var(--head-from) 30%, var(--head-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { .fade { color: CanvasText; background: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font: 500 15px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; cursor: pointer; border: 0; transition: background-color .16s var(--out), color .16s var(--out); }
.btn.p { background: var(--primary); color: var(--on-primary); }
.btn.p:hover { background: color-mix(in srgb, var(--primary) 86%, var(--bg)); }
.btn.g { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); background: transparent; }
.btn.g:hover { background: var(--hover); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn .arr { width: 14px; height: 14px; }

/* ---------- the mark and the lockup: static on every public page (D-058) ---------- */
.nv { display: block; overflow: visible; color: var(--ink-solid); flex: none; }
.nv path { fill: currentColor; }
.lockup { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-solid); border-radius: 8px; -webkit-touch-callout: none; }
.lockup .nv { width: 24px; height: 24px; }
.lockup .wm { height: 16px; width: auto; }
.wm { fill: currentColor; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; }
.nav::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .2s var(--out); }
.nav.stuck::before { opacity: 1; }
.nav-in { position: relative; display: flex; align-items: center; gap: 28px; height: 72px; font-size: 14px; }
.nav-in .lockup { margin-right: auto; }
.nav-links { display: flex; gap: 28px; color: var(--ink2); }
.nav-links a, .nav-in .si { border-radius: 6px; transition: color .12s var(--out); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-in .si { color: var(--ink); }
/* signed in or not (D-099): the head script sets html.nv-in from the signed-in hint cookie before the first paint;
   .if-out ("Sign in", "Sign up") and .if-in ("Open app") never show together, so nothing flashes or shifts */
html:not(.nv-in) .if-in, html.nv-in .if-out { display: none !important; }
@media (max-width: 899px) { .nav-links { display: none; } .nav-in { gap: 18px; height: 64px; } }

/* ---------- footer (board 09; every page but the auth shell) ---------- */
.foot { position: relative; border-top: 1px solid var(--line); padding-top: 44px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; font-size: 14px; color: var(--ink2); }
.foot h2 { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); margin-bottom: 14px; }
.foot li + li { margin-top: 9px; }
.foot a { border-radius: 4px; transition: color .12s var(--out); }
.foot a:hover { color: var(--ink); }
.foot .tagline { margin-top: 12px; max-width: 300px; }
.foot .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid var(--line); padding: 18px 0 28px; font-size: 13px; color: var(--ink3); }
.site-foot { position: relative; padding-top: 24px; }
@media (max-width: 759px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* ---------- shared section type ---------- */
.ey { font: 500 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.h2 { font: 600 52px/1.06 var(--sans); letter-spacing: -.035em; margin-top: 18px; text-wrap: balance; padding-bottom: .06em; }
.sub { font-size: 18px; line-height: 1.5; color: var(--ink2); margin-top: 18px; text-wrap: pretty; }
.sec { position: relative; padding: 100px 0; }
.card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; position: relative; }
@media (max-width: 899px) { .h2 { font-size: 40px; } }
@media (max-width: 559px) { .h2 { font-size: 34px; } .sub { font-size: 17px; } .sec { padding: 72px 0; } }

/* scroll reveal: fade and a 12 px rise, once; armed by site.js (without it everything is simply there) */
@media (prefers-reduced-motion: no-preference) {
  .rv [data-rv] { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--out), transform .5s var(--out); transition-delay: calc(var(--i, 0) * 40ms); }
  .rv [data-rv].in { opacity: 1; transform: none; }
}

/* ======================================================================== landing */
.hero { position: relative; text-align: center; padding-top: 56px; }
.hero > .field { top: -72px; height: 700px; bottom: auto; }
.glow { position: absolute; left: 50%; top: -292px; width: 900px; max-width: 100%; height: 620px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--edge-glow), transparent); pointer-events: none; z-index: -1; }
.pill { display: inline-flex; gap: 10px; align-items: center; height: 32px; padding: 0 14px 0 6px; border: 1px solid var(--line2); border-radius: 999px; font-size: 13px; color: var(--ink2); transition: border-color .16s var(--out), color .16s var(--out); }
.pill:hover { color: var(--ink); border-color: var(--ink3); }
.pill em { background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 500; }
.hero h1 { font: 600 76px/1.02 var(--sans); letter-spacing: -.04em; margin: 26px auto 0; }
.hero h1 .ln { display: block; padding-bottom: .04em; }
.hero .lead { font-size: 19px; line-height: 1.5; color: var(--ink2); max-width: 600px; margin: 20px auto 0; text-wrap: pretty; }
.hero .cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }
/* "Works with your agent": the agents' marks as the app draws them (web/public/agents, a white disc in both themes),
   overlapping like the app's presence stack; one link to the connect steps (D-067) */
.works { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 4px 4px 4px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink2); transition: border-color .16s var(--out), color .16s var(--out); }
.works:hover { color: var(--ink); border-color: var(--line2); }
.stack { display: flex; }
.stack li { position: relative; display: grid; place-items: center; width: 28px; height: 28px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--bg), inset 0 0 0 1px rgba(20, 20, 19, .14); }
.stack li:first-child { margin-left: 0; }
.stack .am { display: block; width: 16px; height: 16px; }
/* hero text: CSS only, never waits for a script (LCP); 8 px rise, 60 ms stagger */
@media (prefers-reduced-motion: no-preference) {
  .h-in { animation: rise .6s var(--out) both; animation-delay: calc(var(--i, 0) * 60ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* the product frame (01): a still of the review moment; site.js adds .play in view for one 9 s loop */
.frame { position: relative; margin: 52px auto 0; height: 470px; max-width: var(--wrap); border: 1px solid var(--line2); border-bottom: 0; border-radius: 16px 16px 0 0; background: var(--frame-bg); overflow: hidden; text-align: left; box-shadow: 0 -1px 0 var(--edge), 0 -30px 80px -30px var(--edge-glow); font-size: 13px; contain: layout paint; }
.frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--site-bg)); pointer-events: none; z-index: 3; }
/* the edge light sweeps once along the top border (1.2 s) */
.edge::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 4; background: linear-gradient(90deg, transparent, var(--accent-ink), transparent) no-repeat; background-size: 40% 100%; background-position: -60% 0; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .edge::before { animation: sweep 1.2s .4s var(--out) both; } }
@keyframes sweep { 0% { opacity: 1; background-position: -60% 0; } 85% { opacity: 1; } 100% { opacity: 0; background-position: 160% 0; } }
.f-bar { height: 44px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 16px; gap: 10px; color: var(--ink2); white-space: nowrap; }
.f-bar .nv { width: 18px; height: 18px; }
.f-bar b { color: var(--ink); font-weight: 500; }
.f-bar .share { height: 28px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line2); display: inline-flex; align-items: center; color: var(--ink); }
.av { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: #141413; flex: none; }
.av.sq { border-radius: 8px; }
.a-ana { background: #e9b872; } .a-cl { background: #d97757; } .a-ag { background: #fff; box-shadow: inset 0 0 0 1px rgba(20, 20, 19, .14); } .a-ag svg { width: 62%; height: 62%; } .a-luca { background: #9ad1b0; } .a-sam { background: #c9b6f2; } .a-gpt { background: #8fd6a8; } .a-gem { background: #9dbbff; }
.f-cv { position: absolute; inset: 44px 0 0 0; background: radial-gradient(var(--canvas-dot) 1px, transparent 1px) 0 0 / 20px 20px; }
.f-ab { position: absolute; background: #f7f4ee; border-radius: 4px; color: #141413; box-shadow: 0 0 0 1px rgba(20, 20, 19, .08); }
.f-lb { position: absolute; top: -22px; left: 0; font-size: 11px; color: var(--ink2); white-space: nowrap; }
.kiln { padding: 22px 26px; }
.kiln small { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8a4a2e; }
.kiln h3 { font-size: 30px; letter-spacing: -.03em; line-height: 1.05; margin: 8px 0; font-weight: 600; }
.kiln p { font-size: 11px; color: #55524c; max-width: 230px; line-height: 1.45; }
.kb { position: relative; display: inline-block; margin-top: 14px; font-size: 11px; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: #b4532a; color: #fff; }
.at { color: var(--accent-ink); }
/* ---------- 02 connect ---------- */
.two { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 56px; align-items: start; }
.facts { margin-top: 34px; }
.facts li { padding: 15px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink2); }
.facts b { display: block; color: var(--ink); font-weight: 500; }
.win { border: 1px solid var(--line2); border-radius: 16px; background: var(--frame-bg); overflow: hidden; box-shadow: 0 -1px 0 var(--edge), 0 40px 90px -40px var(--edge-glow); }
.tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; cursor: pointer; padding: 7px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink2); white-space: nowrap; transition: background-color .12s var(--out), color .12s var(--out); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--hover); color: var(--ink); }
.code { min-height: 372px; }
.code pre { font: 13.5px/1.9 var(--mono); padding: 26px 28px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.code [hidden] { display: none; }
.code .c { color: var(--ink3); }
.code .k { color: var(--accent-ink); }
.code .ok { color: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .code .xf { animation: xfade .12s linear; }
  .code .typing .ln { animation: type-in .28s var(--out) both; animation-delay: calc(var(--l, 0) * 80ms); }
}
.code .ln { display: block; }
@keyframes xfade { from { opacity: 0; } }
@keyframes type-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.win-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px 8px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink2); }
.copy { border: 0; background: none; cursor: pointer; color: var(--ink2); font-size: 12.5px; padding: 5px 9px; border-radius: 6px; }
.copy:hover { color: var(--ink); background: var(--hover); }
.copy[data-copied]::after { content: " ✓"; }

/* ---------- 03 the review loop ---------- */
.center { text-align: center; }
.center .sub { max-width: 560px; margin-left: auto; margin-right: auto; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--line2); }
.steps button { position: relative; text-align: left; border: 0; background: none; cursor: pointer; padding: 20px 22px 22px 0; color: var(--ink3); font-size: 14.5px; line-height: 1.45; }
.steps .n { font: 500 12px var(--mono); color: var(--ink2); }
.steps b { display: block; color: var(--ink2); font-weight: 500; font-size: 17px; margin: 6px 0 4px; }
.steps [aria-current="step"] { color: var(--ink2); }
.steps [aria-current="step"] b { color: var(--ink); }
.steps button::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--accent-ink); box-shadow: 0 0 12px var(--accent); }
.steps [aria-current="step"]::before { width: 62%; }
@media (prefers-reduced-motion: no-preference) {
  .steps.auto [aria-current="step"]::before { animation: prog 5s linear both; }
  .steps.auto.off [aria-current="step"]::before { animation-play-state: paused; }
}
@keyframes prog { from { width: 0; } to { width: 62%; } }
/* ---------- 04 on the canvas ----------
   Six cards, one frame: every visual is a 432 x 168 stage (.vi) centred in a .v of one height. On a card narrower than
   the stage needs, the whole stage scales in steps (--s, container queries on the card), so nothing is clipped, nothing
   moves relative to anything else, and the titles of a row stay on one line. Artboards are cream in both themes, as in
   the app; each visual uses the app's own pattern (compare slider, prototype link, pen, notes, image + alt text, follow). */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.bento .card { container-type: inline-size; }
.bento .v { --s: 1; height: calc(168px * var(--s) + 32px); position: relative; border-bottom: 1px solid var(--line); background: radial-gradient(var(--dot-soft) 1px, transparent 1px) 0 0 / 18px 18px; overflow: hidden; }
.vi { position: absolute; left: 50%; top: 50%; width: 432px; height: 168px; margin: -84px 0 0 -216px; scale: var(--s); }
@container (max-width: 463.98px) { .bento .v { --s: .9; } }
@container (max-width: 412.98px) { .bento .v { --s: .8; } }
@container (max-width: 369.98px) { .bento .v { --s: .72; } }
@container (max-width: 334.98px) { .bento .v { --s: .64; } }
@container (max-width: 300.98px) { .bento .v { --s: .56; } }
.bento .t { padding: 20px 22px 22px; }
.bento .t h3 { display: inline; font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.bento .t p { font-size: 14.5px; color: var(--ink2); margin-top: 4px; }
kbd { font: 500 11px var(--mono); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 6px; color: var(--ink2); margin-left: 6px; vertical-align: 2px; }
/* Resend's cursor-follow light on the card border (pointer: fine only; site.js sets --mx/--my) */
.bento .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .2s var(--out); padding: 1px; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0), var(--edge), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@media (hover: hover) and (pointer: fine) { .bento .card:hover::after { opacity: 1; } }
.pg { position: absolute; background: #f7f4ee; border-radius: 4px; box-shadow: 0 0 0 1px rgba(20, 20, 19, .08); }
.bento .pg { overflow: hidden; }
.bento .bar { position: absolute; height: 14px; background: #141413; border-radius: 3px; }
.bento .ln2 { position: absolute; height: 5px; background: rgba(20, 20, 19, .18); border-radius: 3px; }
.bento .blk { position: absolute; background: #e6dfd2; border-radius: 4px; }
.bento .tag.lbl { position: absolute; font-size: 11px; line-height: 14px; font-weight: 500; white-space: nowrap; color: var(--ink2); }
.note { position: absolute; width: 132px; padding: 10px; font-size: 11.5px; line-height: 1.35; color: #3a3206; background: #f3df7a; border-radius: 3px; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
.note small { display: block; margin-top: 8px; font-size: 9.5px; color: rgba(58, 50, 6, .8); }
.note.b { background: #bcd7ff; color: #0e2244; rotate: 1.5deg; }
.note.b small { color: rgba(14, 34, 68, .8); }
/* version history: the compare slider over the artboard (white split, round grip, the version tags; versions.css) */
.cmpv { position: absolute; border-radius: 4px; box-shadow: 0 0 0 2px var(--accent); }
.cmpv .side { position: absolute; inset: 0; border-radius: 4px; overflow: hidden; }
.cmpv .a { background: #f7f4ee; }
.cmpv .b { background: #fffdf8; clip-path: inset(0 0 0 var(--cut, 180px)); }
.cmpv .line { position: absolute; left: var(--cut, 180px); top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 20, 19, .25); }
.cmpv .grip { position: absolute; left: var(--cut, 180px); top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #fff; color: #141413; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(20, 20, 19, .2), 0 2px 8px rgba(0, 0, 0, .25); }
.cmpv .grip svg { width: 14px; height: 14px; }
.vtag { position: absolute; left: 8px; top: 8px; height: 20px; padding: 0 7px; border-radius: 10px; background: rgba(20, 20, 19, .78); color: #fff; font-size: 11px; line-height: 20px; white-space: nowrap; }
.vtag.r { left: auto; right: 8px; }
.btn-o { position: absolute; border: 1px solid #b4532a; border-radius: 99px; }
.btn-f { position: absolute; background: #b4532a; border-radius: 99px; }
.btn-f.ring { outline: 2px solid var(--accent); outline-offset: 3px; }
@property --cut { syntax: "<length>"; inherits: true; initial-value: 180px; }
/* images: a reference beside the artboard, selected, with the alt text editor under it (canvas.css .cimg, .img-alt) */
.ref { position: absolute; box-shadow: 0 0 0 2px var(--accent); }
.ref svg { display: block; }
.ref .hd { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1.5px var(--accent); }
.ref .nw { left: -5px; top: -5px; } .ref .ne { right: -5px; top: -5px; } .ref .sw { left: -5px; bottom: -5px; } .ref .se { right: -5px; bottom: -5px; }
.alt { position: absolute; padding: 7px 10px 8px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(0, 0, 0, .12); font-size: 12px; line-height: 16px; color: var(--ink); white-space: nowrap; }
.alt small { display: block; font-size: 11px; line-height: 14px; color: var(--ink2); margin-bottom: 2px; }
/* follow: the 3 px frame inside the canvas edge and the pill, in the followed person's presence colour (canvas.css .sp-*) */
.v.fol { --sp: #b85c00; box-shadow: inset 0 0 0 3px var(--sp); border-radius: 15px 15px 0 0; }
.spp { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 4px 0 5px; border-radius: 15px; background: var(--sp); color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; box-shadow: 0 0 0 2px color-mix(in srgb, var(--sp) 30%, transparent), 0 4px 16px rgba(0, 0, 0, .14); }
.spp .av { width: 20px; height: 20px; font-size: 10px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }
.spp .stop { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(255, 255, 255, .2); font-size: 11.5px; }
.spp kbd { margin: 0; padding: 0; border: 0; color: inherit; font-size: 9.5px; opacity: .8; vertical-align: 0; }
.ptr { position: absolute; left: 278px; top: 24px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
/* the demos run only while the card is in view (site.js .in-view); reduced motion and phones keep the still */
@media (prefers-reduced-motion: no-preference) and (min-width: 760px) {
  .in-view .cmpv { animation: cut 4s ease-in-out infinite alternate; }
  .in-view .draw { stroke-dasharray: 420; animation: draw 1.4s var(--out) both; }
  .in-view .link-l { animation: dash 1.2s linear infinite; }
  .in-view .settle { animation: settle .6s var(--out) both; animation-delay: calc(var(--i, 0) * 140ms); }
  .in-view .pan { animation: pan 7s ease-in-out infinite alternate; }
}
@keyframes cut { from { --cut: 140px; } to { --cut: 220px; } }
@keyframes draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes dash { to { stroke-dashoffset: -16; } }
@keyframes settle { from { opacity: 0; transform: translateY(-8px); } }
@keyframes pan { from { translate: 14px 0; } to { translate: -14px 0; } }

/* ---------- 05 teams: the version history panel, as the app draws it ---------- */
.two.t5 { grid-template-columns: 400px minmax(0, 1fr); gap: 72px; }
.vh { border: 1px solid var(--line2); border-radius: 16px; background: var(--frame-bg); overflow: hidden; box-shadow: 0 -1px 0 var(--edge), 0 40px 90px -40px var(--edge-glow); }
.vh-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.vh-head h3 { font-size: 14px; font-weight: 500; }
.vh-head span { margin-left: auto; font-size: 12.5px; color: var(--ink2); border: 1px solid var(--line2); border-radius: 8px; padding: 3px 10px; }
.vh-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.vh-row:first-child { border-top: 0; }
.vh-row.cur { background: var(--hover); }
.vh-th { height: 40px; border-radius: 4px; background: #f7f4ee; position: relative; overflow: hidden; box-shadow: 0 0 0 1px rgba(20, 20, 19, .08); }
.vh-th i { position: absolute; left: 7px; top: 8px; width: 28px; height: 4px; background: #141413; border-radius: 2px; }
.vh-th u { position: absolute; left: 7px; top: 22px; width: 16px; height: 7px; border-radius: 9px; background: #b4532a; }
.vh-th.o u { background: none; box-shadow: inset 0 0 0 1px #b4532a; }
.vh-th.pr i { width: 44px; }
.vh-l1 { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.vh-l1 .n { font-family: var(--mono); font-weight: 500; }
.vh-l1 .tg { font-size: 11px; border: 1px solid var(--line2); border-radius: 999px; padding: 1px 8px; color: var(--ink2); }
.vh-l1 time { margin-left: auto; font-size: 12px; color: var(--ink3); white-space: nowrap; }
.vh-by { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 13px; color: var(--ink2); min-width: 0; }
.vh-by span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-by .av { width: 16px; height: 16px; font-size: 8px; }
.vh-by .av.sq { border-radius: 5px; }
.vh-cap { margin-top: 14px; font-size: 13px; color: var(--ink3); }
@media (prefers-reduced-motion: no-preference) {
  .rv .vh-row[data-rv] { transform: none; transition: opacity .4s var(--out); transition-delay: calc(var(--i, 0) * 90ms); }
}

/* ---------- 06 stay in the loop ---------- */
.loop2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; margin-top: 52px; }
.loop2 .v { height: 270px; border-bottom: 1px solid var(--line); padding: 34px 36px 0; overflow: hidden; font-size: 14px; }
.loop2 .t { padding: 22px 26px 26px; }
.loop2 .t h3 { font-weight: 500; font-size: 19px; letter-spacing: -.015em; }
.loop2 .t p { font-size: 15px; color: var(--ink2); margin-top: 5px; }
.lth { display: flex; gap: 11px; font-size: 15.5px; }
.lth .av { width: 28px; height: 28px; font-size: 12px; }
.lth small { font: 11.5px var(--mono); color: var(--ink3); }
.lth .tx { margin-top: 2px; }
.sl { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 34px; position: relative; }
.sl::before, .sl::after { content: ""; position: absolute; left: 6px; top: 6px; height: 1px; }
.sl::before { right: 25%; background: var(--line2); }
.sl::after { width: calc(75% - 6px); background: var(--accent-ink); box-shadow: 0 0 10px var(--accent); transform-origin: left; }
.sl li { font: 500 12px var(--mono); color: var(--ink); padding-top: 24px; position: relative; }
.sl li::before { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--accent-ink); border: 1px solid var(--accent-ink); z-index: 1; }
.sl li:last-child { color: var(--accent-ink); }
.sl li:last-child::before { box-shadow: 0 0 0 5px var(--accent-soft); }
.sl small { display: block; font-weight: 400; color: var(--ink3); margin-top: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .rv .sl::after { transform: scaleX(0); transition: transform 2.7s linear .2s; }
  .rv .sl li::before { background: var(--bg); border-color: var(--line2); transition: background-color .2s, border-color .2s; transition-delay: calc(var(--i) * 900ms); }
  .rv .sl.in::after { transform: none; }
  .rv .sl.in li::before { background: var(--accent-ink); border-color: var(--accent-ink); }
}
.fy-tabs { display: flex; gap: 16px; color: var(--ink3); margin-bottom: 10px; font-size: 13px; }
.fy-tabs .on { color: var(--ink); }
.fy-tabs .n { background: var(--accent); color: var(--on-accent); border-radius: 99px; font: 500 11px var(--mono); padding: 1px 7px; margin-left: 5px; }
.fy { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink2); font-size: 13.5px; }
.fy b { color: var(--ink); font-weight: 500; }
.fy small { display: block; font-size: 12px; color: var(--ink3); }
.fy .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin: 8px 0 0 auto; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .rv .fy[data-rv] { transform: translateX(8px); transition-delay: calc(var(--i, 0) * 120ms); }
  .rv .fy[data-rv].in { transform: none; }
}

/* ---------- 07 security teaser ---------- */
.sec7 .btn { margin-top: 28px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.fgrid > div { padding: 28px 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fgrid > div:nth-child(2n) { border-right: 0; }
.fgrid > div:nth-child(n+3) { border-bottom: 0; }
.fgrid svg { margin-bottom: 16px; width: 22px; height: 22px; stroke: var(--accent-ink); fill: none; stroke-width: 1.6; }
.fgrid h3 { font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.fgrid p { font-size: 14.5px; color: var(--ink2); margin-top: 4px; }

/* ---------- 08 questions ---------- */
.two.faq { grid-template-columns: 360px minmax(0, 1fr); gap: 80px; }
.faq .sub { font-size: 16px; }
.faq .sub a, .lnk { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); border-radius: 3px; }
.faq .sub a:hover, .lnk:hover { text-decoration-color: currentColor; }
.qa details { border-top: 1px solid var(--line2); }
.qa details:last-child { border-bottom: 1px solid var(--line2); }
.qa summary { list-style: none; cursor: pointer; padding: 19px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 18px; font-weight: 500; letter-spacing: -.012em; border-radius: 6px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 16px; height: 16px; color: var(--ink3); flex: none; margin-top: 5px; transition: transform .18s var(--out); }
.qa details[open] summary svg { transform: rotate(45deg); }
.qa p { font-size: 16px; color: var(--ink2); padding: 0 60px 22px 0; text-wrap: pretty; }
.qa p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .qa details::details-content { block-size: 0; overflow: clip; transition: block-size .18s var(--out), content-visibility .18s allow-discrete; }
  .qa details[open]::details-content { block-size: auto; }
}
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ---------- 09 closing ---------- */
.close { position: relative; text-align: center; padding: 170px 0 150px; }
.close h2 { font: 600 68px/1.03 var(--sans); letter-spacing: -.04em; padding-bottom: .06em; text-wrap: balance; }
.close .sub { font-size: 19px; }
.close .btn { margin-top: 32px; }
.fine { font: 13px var(--mono); color: var(--ink3); margin-top: 16px; }

/* ---------- landing: narrower screens (one column, visuals keep their aspect, nothing scrolls sideways) ---------- */
@media (max-width: 1180px) { .frame { margin-left: 24px; margin-right: 24px; } }
@media (max-width: 899px) {
  .two, .two.t5, .two.faq { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero h1 { font-size: 60px; }
  .bento, .loop2 { grid-template-columns: minmax(0, 1fr); }
  .close h2 { font-size: 52px; }
}
@media (max-width: 759px) {
  .wrap { padding: 0 20px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 42px; line-height: 1.04; letter-spacing: -.035em; margin-top: 22px; }
  .hero h1 .ln { display: inline; }
  .hero .lead { font-size: 17px; }
  .hero .cta { flex-direction: column; align-items: stretch; max-width: 360px; margin: 28px auto 0; }
  .hero .cta .btn { height: 48px; }
  .hero .cta .btn.g { display: none; }
  .code { min-height: 0; }
  .code pre { font-size: 12px; line-height: 1.8; padding: 18px 18px; }
  .win-foot .mono { font-size: 11px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps button { padding-right: 12px; }
  .loop2 .v { padding: 26px 22px 20px; height: auto; }
  .sl small { font-size: 10.5px; }
  .fgrid { grid-template-columns: 1fr; }
  .fgrid > div { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .fgrid > div:last-child { border-bottom: 0 !important; }
  .qa p { padding-right: 0; }
  .close { padding: 110px 0 100px; }
  .close h2 { font-size: 40px; }
  .vh-row { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 12px 14px; }
}

/* ---------- the logo menu (logomenu.js): right-click or long-press the lockup for the brand files ---------- */
.lm { position: fixed; z-index: 1000; width: 236px; padding: 6px; border-radius: 14px; background: var(--raise); border: 1px solid var(--line2); box-shadow: var(--sh); font: 450 13.5px/1 var(--sans); color: var(--ink); opacity: 0; scale: .96; transition: opacity .12s linear, scale .16s var(--out); }
.lm[hidden] { display: none; }
.lm.in { opacity: 1; scale: 1; }
.lm > button, .lm > a { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lm svg { width: 14px; height: 14px; flex: none; color: var(--ink2); }
.lm > button:hover, .lm > a:hover, .lm > button:focus-visible, .lm > a:focus-visible { background: var(--hover); outline: none; }   /* a menu row: its focus is the filled row (D-052) */
.lm-note { margin: 6px 4px 2px; padding: 8px 6px 4px; border-top: 1px solid var(--line); font: 400 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
@media (prefers-reduced-motion: reduce) { .lm { transition: none; scale: 1; } }

/* connect section: one line for people, with the guide their agent reads (docs/growth/agent-onboarding.md §7) */
.guide { font-size: 15px; color: var(--ink2); margin-top: 22px; }
.guide a { color: var(--ink); font-weight: 500; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; transition: text-decoration-color .16s var(--out); }
.guide a:hover { text-decoration-color: currentColor; }
/* footer: the trademark line under © (docs/design/third-party-marks.md) */
.foot .legal .tm { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--ink3); }

/* ======================================================================== site round 2026-11-27
   The product mockups are made of the app's own pieces: their classes and CSS come from web/src/styles (expand.py
   APPCSS macro, scoped under .app with the app's tokens). Below: only placement, the mockup's page content, and the
   timeline hooks. play.js drives one animation-frame loop (transform, opacity, clip-path); without it, or with reduced
   motion, every mockup shows its finished still. */
.app .s24 { width: 24px; height: 24px; } .app .s22 { width: 22px; height: 22px; } .app .s20 { width: 20px; height: 20px; } .app .s16 { width: 16px; height: 16px; }
.app .nv-agent-av svg { width: 62%; height: 62%; }
.app .ag-mark { display: inline-block; } .app .ag-mark svg { width: 100%; height: 100%; }
.app .av { color: #fff; }
.app .ag-cursor, .app .lc-cursor { transition: none; }
.app .ag-flash, .app .ag-look { animation: none; }
.app [data-flash], .app [data-ring] { opacity: 0; }
.slot { display: inline-grid; } .slot > i { grid-area: 1 / 1; white-space: nowrap; }
.app .ag-status.slot { display: inline-grid; }
.ppl { margin-left: auto; display: flex; align-items: center; }
.ppl > * { box-shadow: 0 0 0 2px var(--bg); border-radius: 50%; }
.ppl > * + * { margin-left: -6px; }
.crumb-s { color: var(--ink2); }
.crumb-s b { color: var(--ink); font-weight: 500; }
/* the hero frame */
.frame.app { background: var(--bg); }
.f-in { position: absolute; inset: 0; }
.app .f-bar { color: var(--ink2); border-bottom-color: var(--line); background: var(--bg); position: relative; z-index: 2; }
.app .f-cv { background: radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 20px 20px var(--canvas); overflow: hidden; }
.hab { position: absolute; }
.hab.d { left: 80px; top: 52px; width: 520px; height: 330px; }
.hab.m { left: 650px; top: 52px; width: 150px; height: 330px; }
.hab > .f-lb { color: var(--ink2); }
.vs { display: inline-grid; } .vs > i { grid-area: 1 / 1; }
.ab-f { position: absolute; inset: 0; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--agent-ring) 5%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--agent-ring) 40%, transparent); }
.ab-f .kiln { position: absolute; inset: 0; background: #f7f4ee; color: #141413; }
.wipe-l { position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--agent-ring); opacity: 0; pointer-events: none; }
.kiln.sm { padding: 16px 14px; } .kiln.sm small { font-size: 9px; } .kiln.sm h3 { font-size: 17px; } .kiln.sm .kb { font-size: 9px; padding: 6px 10px; }
.kiln h3 { position: relative; }
.app .kb { transition: background-color .45s var(--out), color .45s var(--out), box-shadow .45s var(--out); background: #f7f4ee; color: #b4532a; box-shadow: inset 0 0 0 1px #b4532a; }
.app .kb.on { background: #b4532a; color: #fff; box-shadow: inset 0 0 0 1px #b4532a; }
.kb .ag-flash, h3 .ag-flash, h4 .ag-flash { inset: -4px; }
.hab > .ag-look { inset: -6px; } .hab > .ag-flash.board { inset: -3px; }
.pin-at { position: absolute; left: 100%; bottom: 40%; width: 0; height: 0; margin-left: -4px; z-index: 3; }
.pin-at.h { left: 100%; bottom: 55%; margin-left: 2px; }
.app .pin-at .pin { left: 0; bottom: 0; cursor: default; }
.app .pin.active { background: var(--accent); }
.frame .popover { left: auto; right: 22px; top: 92px; width: 284px; }
.app .composer .ph { font-size: 13px; color: var(--ink3); }
.app .pop-msgs { padding-bottom: 4px; }
.f-pause { position: absolute; right: 14px; bottom: 16px; z-index: 45; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--raise); color: var(--ink2); box-shadow: 0 0 0 1px var(--line2), var(--sh); display: grid; place-items: center; cursor: pointer; }
.f-pause:hover { color: var(--ink); }
.f-pause svg { width: 14px; height: 14px; }
.f-pause .i-play, .f-pause[data-paused] .i-pause { display: none; }
.f-pause[data-paused] .i-play { display: inline; }
.f-pause[hidden] { display: none; }

/* 03 how it works: one stage, four chapters */
.steps button::before { width: calc(var(--p, 0) * 62%); }
.steps [aria-current="step"]::before { width: calc(var(--p, 1) * 62%); }
.stage { margin-top: 34px; height: 380px; border: 1px solid var(--line2); border-radius: 16px; position: relative; overflow: hidden; background: var(--bg); box-shadow: 0 -1px 0 var(--edge), 0 40px 90px -40px var(--edge-glow); }
.st-in { position: absolute; inset: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.cli { border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.cli-h { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink2); flex: none; }
.dots { display: flex; gap: 5px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); }
.cli-l { padding: 14px 16px; display: grid; gap: 9px; font-size: 12px; line-height: 1.45; color: var(--ink); align-content: start; overflow: hidden; }
.cli-l .c { color: var(--ink3); }
.cli-l .ok { color: var(--ok); }
.cli-l .you { color: var(--ink); font-weight: 500; }
.cli-l .tool { color: var(--ink2); } .cli-l .tool b { color: var(--ink); font-weight: 500; }
.cv2 { position: relative; overflow: hidden; background: radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 20px 20px var(--canvas); }
.cv2-bar { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; padding: 0 14px; font-size: 12.5px; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 2; }
.hab.d2 { left: 44px; top: 84px; width: 460px; height: 300px; }
.stage .popover { left: auto; right: 22px; top: 70px; width: 272px; }
.cw { position: relative; display: inline-grid; }
.cw > span { grid-area: 1 / 1; white-space: nowrap; }
.cw .n { clip-path: inset(0 100% 0 0); }
.caret { position: absolute; left: 0; top: .08em; bottom: .04em; width: 2px; border-radius: 1px; background: var(--agent-ring, #a94f30); opacity: 0; }

/* 05 version history, working */
.vh.app { background: var(--bg); }
.vh-stage { position: relative; height: 236px; border-bottom: 1px solid var(--line); background: radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 20px 20px var(--canvas); }
.vh-bar2 { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 12px; border-radius: 10px; background: var(--raise); box-shadow: 0 0 0 1px var(--line), 0 2px 8px rgb(0 0 0 / .06); font-size: 13px; z-index: 2; }
.vh-now { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b2 { height: 26px; padding: 0 10px; border-radius: 8px; border: 0; font-size: 12.5px; font-weight: 500; cursor: pointer; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2, var(--line)); white-space: nowrap; }
.b2.pr { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.b2:hover { filter: brightness(1.06); }
.b2[hidden] { display: none; }
.vh-ab { position: absolute; left: 50%; top: 64px; width: 340px; height: 156px; margin-left: -170px; padding: 16px 20px; border-radius: 4px; background: #f7f4ee; color: #141413; box-shadow: 0 0 0 1px rgba(20, 20, 19, .08), 0 6px 18px -8px rgba(0, 0, 0, .25); overflow: hidden; }
.vh-ab small { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #8a4a2e; }
.vh-ab h4 { position: relative; font-size: 22px; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 6px; font-weight: 600; }
.vh-ab p { font-size: 10.5px; color: #55524c; max-width: 190px; }
.vh-ab .kb { margin-top: 10px; font-size: 10px; padding: 6px 11px; }
.vh-ab[data-btn="f"] .kb { background: #b4532a; color: #fff; }
.shelf { position: absolute; right: 18px; top: 52px; display: flex; gap: 6px; align-items: flex-end; width: 104px; height: 78px; padding: 0 8px 10px; border-radius: 4px; background: linear-gradient(#efe4d2, #cdb898); transition: opacity .4s var(--out), scale .4s var(--out); }
.shelf i { flex: 1; height: 26px; border-radius: 0 0 14px 14px; background: #2f5d62; } .shelf i:nth-child(2) { height: 18px; background: #b4532a; } .shelf i:nth-child(3) { height: 30px; background: #e9e2d4; }
.vh-ab[data-img="0"] .shelf { opacity: 0; scale: .92; }
.vh-ab .ag-flash { --lc: #a94f30; }
.vh-list { max-height: 330px; overflow: hidden; }
.vh-list li { display: grid; }
.vh-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 11px 18px; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; position: relative; }
.vh-list li:first-child .vh-row { border-top: 0; }
.vh-row:hover { background: var(--hover); }
.vh-row[aria-pressed="true"] { background: var(--hover); }
.vh-row[aria-pressed="true"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--accent); }
.vh-row:focus-visible { outline-offset: -2px; }
.vh-tx { display: block; min-width: 0; }
.vh-l1, .vh-by { display: flex; }
.vh-th s { position: absolute; right: 6px; top: 8px; width: 18px; height: 22px; border-radius: 2px; background: #cdb898; }
.vh-by .av { width: 16px; height: 16px; font-size: 7px; }
.vh-list li.new { animation: row-in .4s var(--out) both; }
@keyframes row-in { from { opacity: 0; translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .vh-list li.new { animation: none; } .shelf, .app .kb { transition: none; } }

/* 06b more, 07b pricing */
.more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 52px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.more li { padding: 24px 24px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more li:nth-child(4n) { border-right: 0; }
.more li:nth-last-child(-n+4) { border-bottom: 0; }
.more svg { width: 22px; height: 22px; margin-bottom: 14px; stroke: var(--accent-ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.more h3 { font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.more p { font-size: 14px; color: var(--ink2); margin-top: 4px; }
.more a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: 48px auto 0; }
.plan { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 26px 28px 28px; }
.plan.pro { border-color: var(--line2); box-shadow: 0 -1px 0 var(--edge), 0 30px 70px -40px var(--edge-glow); }
.plan h3 { font: 500 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.plan .pr { margin-top: 16px; font-size: 15px; color: var(--ink2); }
.plan .pr b { font: 600 40px/1 var(--sans); letter-spacing: -.03em; color: var(--ink); margin-right: 6px; }
.plan .pr small { display: block; margin-top: 6px; font-size: 13.5px; }
.plan ul { margin-top: 20px; border-top: 1px solid var(--line); }
.plan li { padding: 10px 0 0; font-size: 14.5px; color: var(--ink2); }
.plan li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--accent-ink); }
#pricing .fine { margin-top: 22px; }

/* the pen and notes on this page (play.js): everything stays in this browser */
.try { display: none; color: var(--ink); }
html.js .try { display: inline; }
html:not(.kbd) .kb-only { display: none !important; }
.try kbd { margin: 0 1px; vertical-align: 1px; }
html.js [data-pen] { cursor: var(--pen-cur); touch-action: none; }
:root { --pen-cur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M3 21l1.2-4.6L16.5 4.1a2 2 0 0 1 2.8 0l.6.6a2 2 0 0 1 0 2.8L7.6 19.8z' fill='%23fff' stroke='%23141413' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M3 21l1.2-4.6 3.4 3.4z' fill='%23e5484d'/%3E%3C/svg%3E") 3 21, crosshair; }
.dd-ink { position: absolute; left: 0; top: 0; width: 100%; z-index: 60; pointer-events: none; overflow: visible; }
.dd-ink path { fill: none; stroke: #e5484d; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dd-cap { position: fixed; inset: 0; z-index: 70; cursor: var(--pen-cur); }
.dd-cap.is-note { cursor: copy; }
.dd-notes { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 75; }
.dd-note { position: absolute; width: 208px; border-radius: 4px; background: #f3df7a; color: #3a3206; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.dd-nh { display: flex; align-items: center; height: 26px; padding: 0 4px; }
.dd-nh button { border: 0; background: none; color: rgba(58, 50, 6, .7); width: 24px; height: 22px; border-radius: 5px; cursor: pointer; display: grid; place-items: center; }
.dd-nh button:hover { background: rgba(58, 50, 6, .1); color: #3a3206; }
.dd-grip { cursor: grab !important; touch-action: none; -webkit-user-select: none; user-select: none; margin-right: auto; }
.dd-grip.dragging { cursor: grabbing !important; }
.dd-nh svg { width: 14px; height: 14px; }
.dd-note textarea { display: block; width: 100%; min-height: 84px; padding: 2px 12px 12px; border: 0; background: transparent; color: inherit; font: 14px/1.4 var(--sans); resize: none; field-sizing: content; }
.dd-note textarea:focus-visible { outline: none; }
.dd-note:focus-within { box-shadow: 0 0 0 2px var(--accent), 0 10px 24px rgba(0, 0, 0, .22); }
.dd-note textarea::placeholder { color: rgba(58, 50, 6, .55); }

/* site round: narrower screens */
@media (max-width: 1100px) {
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more li:nth-child(4n) { border-right: 1px solid var(--line); }
  .more li:nth-child(2n) { border-right: 0; }
  .more li:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .more li:nth-last-child(-n+2) { border-bottom: 0; }
  .hab.d { left: 40px; } .hab.m { left: 600px; }
  .st-in { grid-template-columns: 260px minmax(0, 1fr); }
  .hab.d2 { left: 24px; width: 400px; }
}
@media (max-width: 899px) {
  .hab.m { display: none; }
  .stage { height: 560px; }
  .st-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: 150px minmax(0, 1fr); }
  .cli { border-right: 0; border-bottom: 1px solid var(--line); }
  .cli-l { align-content: end; }
  .hab.d2 { top: 70px; }
  .stage .popover { top: auto; bottom: 16px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  .frame { height: 420px; margin: 40px 0 0; border-radius: 14px 14px 0 0; }
  .hab.d { left: 16px; top: 34px; width: calc(100% - 32px); height: 250px; }
  .frame .kiln h3, .stage .kiln h3 { font-size: 22px; }
  .frame .popover { right: 12px; top: 200px; width: min(290px, calc(100% - 24px)); }
  .frame .dock, .f-bar .crumb-s, .f-bar .share { display: none; }
  .f-pause { right: auto; left: 14px; }
  
  .stage { height: 600px; }
  .hab.d2 { left: 14px; right: 14px; width: auto; height: 260px; top: 56px; }
  .stage .popover { left: 14px; right: 14px; width: auto; }
  .more { grid-template-columns: minmax(0, 1fr); }
  .more li { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .more li:last-child { border-bottom: 0 !important; }
  .vh-ab { width: 290px; margin-left: -145px; }
  .shelf { width: 84px; }
}
/* the hero's first frame is its start (empty canvas) once play.js runs; if it never does, the still shows after 2.5 s */
@keyframes show { to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) and (min-width: 760px) {
  html.js .frame[data-stage]:not(.go) [data-in] { opacity: 0; animation: show .3s 2.5s forwards; }
}
.app .pin > .av { display: flex; }
.shelf { top: 76px; width: 92px; height: 64px; right: 16px; }
.vh .vh-cap { margin: 0; padding: 12px 18px 14px; border-top: 1px solid var(--line); }
.vh-ab > .ag-flash.board { inset: 0; border-radius: 4px; }
/* the app's dock and the label's Play (APPCSS) in the hero; Play shows as on a prototype start */
.frame .dock { bottom: 18px; z-index: 4; }
.app .f-lb .ab-play { opacity: 1; margin-left: 8px; vertical-align: middle; font-family: var(--sans); }
/* "Try them on this page": the app's Draw and Note icons with their keys */
.try-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; color: var(--ink2); }
.try-bar[hidden] { display: none; }
.tb-l { margin-right: 4px; }
.tb { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 10px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.tb:hover { background: var(--hover); }
.tb[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tb[hidden] { display: none; }
.tb kbd, .tb-s kbd { margin: 0; }
.tb .dock-illo { width: 20px; height: 20px; }
.tb-s { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
html.kbd .touch-only { display: none; }
/* pricing: the call to action under the plans */
.p-cta { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 32px; }
.p-cta .p-btns { display: flex; flex-flow: row wrap; justify-content: center; align-items: center; gap: 12px; }
.p-cta .fine { margin-top: 12px; }
/* A3 as the app draws it now (AgentLayer.tsx, AgentCard.tsx, RenderingFrame.tsx): the pointer is the mark (the app
   draws it in 3D at 48 px; the site keeps the flat mark, D-058 and docs/research/website-3d-mark-plan-2026-11.md) with
   the agent colour as light under it, the card beside it; the header pill; the rendering frame */
:root .app .agent-mark { fill: currentColor; color: #141413; }   /* the agent's mark is ink in both themes (founder, 2026-11-27); the site logo is not this class */
.app .ag-ci { width: 12px; height: 12px; } .app .ag-ci svg { width: 100%; height: 100%; display: block; }
/* the neutral agent (the nauvid mark, D-178) is ink everywhere; in the agent's card on dark it sits on a light chip, as the header's does */
:root[data-theme="dark"] .app .ag-ci:has(use[href="#am-agent"]) { background: rgb(255 255 255 / .92); border-radius: 3px; padding: 1px; width: 14px; height: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app .ag-ci:has(use[href="#am-agent"]) { background: rgb(255 255 255 / .92); border-radius: 3px; padding: 1px; width: 14px; height: 14px; } }
.app .ag-m3 { display: grid; place-items: center; width: 72px; height: 72px; }
.app .ag-m3 .agent-mark { position: relative; width: 34px; height: 34px; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .18)); }
.app .ag-m3::before { content: ""; position: absolute; left: 18px; right: 18px; bottom: 12px; height: 9px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--lc) 55%, transparent), transparent); }
/* the hero's pointer in 3D (D-155): nv3d.js draws the app's mark over the flat one (fallback until it draws, and under
   reduced motion); no ground light under a website mark but the 404's, so the flat glow goes too */
.app .ag-m3 > canvas { grid-area: 1 / 1; width: 72px; height: 72px; position: relative; }
.app .ag-m3 > .agent-mark { grid-area: 1 / 1; }
.app .ag-m3.m3-on > .agent-mark { visibility: hidden; }
.app .ag-m3.m3-on::before { display: none; }
.app .ag-card .slot, .app .ag-ln { display: grid; }
.app .ag-steps.slot > i, .app .ag-ln > i { grid-area: 1 / 1; }
/* the agent in the header's presence stack: its live mark (ink) beside its avatar; in dark, ink sits on a light disc so it stays legible, as the app's does */
.ppl > .ppl-mk { display: grid; place-items: center; width: 22px; height: 22px; margin-left: 4px; margin-right: 0; box-shadow: none; }
.ppl > .ppl-mk + * { margin-left: 2px; }
.app .ppl-mk .agent-mark { width: 16px; height: 16px; }
:root[data-theme="dark"] .ppl-mk { background: rgb(255 255 255 / .92); box-shadow: 0 0 0 2px var(--bg); width: 20px; height: 20px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ppl-mk { background: rgb(255 255 255 / .92); box-shadow: 0 0 0 2px var(--bg); width: 20px; height: 20px; } }
.ab-f > .ab-rendering { position: absolute; inset: 0; }
.app .ab-rendering .agent-mark { width: 28px; height: 28px; }
.hab.m .ab-rendering .agent-mark { width: 20px; height: 20px; }
.cw { --lc: #a94f30; }
.app .cw .ag-caret { animation: none; top: .08em; bottom: .04em; margin-left: 0; }

/* ---------- /pricing v2 (design https://nauvid.com/c/pNWhXYYKmZ; every class is pp-*) ---------- */
.pp-hero { padding-bottom: 8px; }
.pp-hero .ey { margin-top: 8px; }
.pp-hero h1 { font-size: 72px; margin-top: 20px; }
.pp-hero .lead { max-width: 640px; }
.pp-hero .lead b { color: var(--ink); font-weight: 500; }

/* monthly / yearly */
.pp-bill { display: inline-flex; gap: 2px; margin-top: 34px; padding: 4px; border-radius: 999px; background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); }
.pp-bill button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font: 500 14px/1 var(--sans); color: var(--ink2); cursor: pointer; }
.pp-bill button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 19, .10), inset 0 0 0 1px var(--line); }
.pp-bill em { font: 500 11.5px/1 var(--mono); padding: 4px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
[data-bill="y"] .pp-m, [data-bill="m"] .pp-y { display: none !important; }

/* the two plans */
.pp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin: 36px auto 0; text-align: left; }
.pp-plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 30px 32px 32px; }
.pp-plan.pro { border-color: var(--line2); background: var(--surface); box-shadow: 0 -1px 0 var(--edge), 0 40px 80px -44px var(--edge-glow), var(--sh); }
.pp-plan h2 { display: flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.pp-plan h2 em { font: 500 11.5px/1 var(--mono); letter-spacing: 0; text-transform: none; padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.pp-for { margin-top: 12px; font-size: 16px; color: var(--ink2); min-height: 48px; text-wrap: pretty; }
.pp-price { display: flex; align-items: flex-end; gap: 12px; margin-top: 22px; }
.pp-price b { font: 600 64px/.9 var(--sans); letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pp-price span { font-size: 14.5px; line-height: 1.35; color: var(--ink2); padding-bottom: 3px; }
.pp-note { margin-top: 12px; font: 13px/1.5 var(--mono); color: var(--ink3); min-height: 20px; }
.pp-plan .btn { width: 100%; margin-top: 22px; }
.pp-plan h3 { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); }
.pp-list { margin-top: 6px; }
.pp-list li { display: flex; gap: 11px; padding-top: 11px; font-size: 15px; line-height: 1.45; color: var(--ink2); }
.pp-list li b { color: var(--ink); font-weight: 500; }
.pp-list svg, .pp-both svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--accent-ink); }

/* on both plans */
.pp-both { max-width: 920px; margin: 20px auto 0; display: grid; grid-template-columns: 150px repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; text-align: left; overflow: hidden; }
.pp-both > * { padding: 18px 18px; font-size: 14px; line-height: 1.45; color: var(--ink2); border-left: 1px solid var(--line); }
.pp-both > :first-child { border-left: 0; font: 500 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); display: flex; align-items: center; }
.pp-both b { display: flex; gap: 8px; color: var(--ink); font-weight: 500; font-size: 15px; margin-bottom: 3px; }
.pp-fine { margin-top: 22px; }

/* agents strip */
.pp-agents { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 72px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink2); }
.pp-agents p > b { color: var(--ink); font-weight: 500; }
.pp-agents ul.pp-names { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.pp-agents .pp-names li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.pp-agents .pp-names svg { width: 18px; height: 18px; }
.pp-agents .pp-names li:last-child { color: var(--ink2); font-weight: 400; }

/* who pays + calculator */
.pp-roles { margin-top: 34px; }
.pp-roles li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 17px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink2); }
.pp-roles li:last-child { border-bottom: 1px solid var(--line); }
.pp-roles b { color: var(--ink); font-weight: 500; font-size: 16px; }
.pp-roles i { font: 500 13px/1.6 var(--mono); color: var(--ink); white-space: nowrap; }
.pp-roles i.free { color: var(--ok); }
.pp-roles li > span { grid-column: 1 / -1; }
.pp-calc { border: 1px solid var(--line2); border-radius: 20px; background: var(--surface); box-shadow: var(--sh); overflow: hidden; }
.pp-calc-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.pp-calc-h .pp-bill { margin: 0; }
.pp-calc-h .pp-bill button { height: 28px; padding: 0 12px; font-size: 13px; letter-spacing: 0; text-transform: none; }
.pp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 92px; align-items: center; gap: 18px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.pp-row label { font-size: 16px; font-weight: 500; color: var(--ink); }
.pp-row label small { display: block; font-size: 13.5px; font-weight: 400; color: var(--ink2); margin-top: 2px; }
.pp-step { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line2); }
.pp-step button { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--ink); cursor: pointer; }
.pp-step button:hover { background: var(--hover); }
.pp-step input { width: 44px; border: 0; background: transparent; text-align: center; font: 500 15px var(--mono); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.pp-step input::-webkit-outer-spin-button, .pp-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pp-row output { text-align: right; font: 500 15px var(--mono); color: var(--ink); }
.pp-row output.free { color: var(--ok); }
.pp-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: end; padding: 24px; background: color-mix(in srgb, var(--bg) 55%, var(--surface)); }
.pp-total p { font-size: 14.5px; color: var(--ink2); }
.pp-total p b { color: var(--ink); font-weight: 500; }
.pp-total .pp-sum { font: 600 44px/1 var(--sans); letter-spacing: -.035em; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.pp-total .pp-sum small { font: 400 14.5px/1 var(--sans); letter-spacing: 0; color: var(--ink2); margin-left: 6px; }
.pp-total .pp-hint { grid-column: 1 / -1; font: 13px/1.5 var(--mono); color: var(--ink3); }
.pp-total .btn { grid-column: 1 / -1; margin-top: 10px; }

/* comparison table */
.pp-cmp { width: 100%; margin-top: 56px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.45; text-align: left; }
.pp-cmp thead th { position: sticky; top: 72px; z-index: 5; padding: 18px 20px 18px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line2); vertical-align: bottom; font-weight: 400; }
.pp-cmp thead th:first-child { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.pp-cmp thead b { display: block; font: 600 20px/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.pp-cmp thead span { display: block; font: 13px/1.5 var(--mono); color: var(--ink3); margin-top: 2px; }
.pp-cmp col.f { width: 40%; } .pp-cmp col.a, .pp-cmp col.b { width: 30%; }
.pp-cmp tbody th, .pp-cmp tbody td { padding: 14px 20px 14px 0; border-top: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.pp-cmp tbody th { color: var(--ink2); }
.pp-cmp tbody th[colspan] { padding: 40px 0 12px; border-top: 0; font: 600 20px/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.pp-cmp td { color: var(--ink); }
.pp-cmp td.same { color: var(--ink2); }
.pp-cmp td svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; color: var(--accent-ink); margin-right: 6px; }
.pp-cmp tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.pp-tip { position: relative; text-decoration: underline dotted; text-decoration-color: var(--ink3); text-underline-offset: 4px; cursor: help; border-radius: 3px; }
.pp-tip::after { content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 8px); z-index: 9; width: 300px; padding: 12px 14px; border-radius: 10px; background: var(--ink-solid); color: var(--bg); font-size: 13.5px; line-height: 1.45; opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .14s var(--out), transform .14s var(--out); pointer-events: none; }
.pp-tip:hover::after, .pp-tip:focus-visible::after { opacity: 1; visibility: visible; transform: none; }

/* no surprises */
.pp-calm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.pp-calm li { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 24px 26px 26px; font-size: 15px; color: var(--ink2); }
.pp-calm b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.012em; color: var(--ink); margin-bottom: 8px; }
.pp-calm code { display: block; margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--hover); font-size: 12.5px; color: var(--ink); }

/* security */
.pp-sec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line2); border-radius: 16px; background: var(--surface); overflow: hidden; }
.pp-sec li { padding: 20px 22px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--ink2); }
.pp-sec li:nth-child(-n+2) { border-top: 0; } .pp-sec li:nth-child(odd) { border-left: 0; }
.pp-sec li > b:first-child { display: block; color: var(--ink); font-weight: 500; font-size: 15.5px; margin-bottom: 4px; }
.pp-more { margin-top: 26px; font-size: 15px; color: var(--ink2); }

.pp-sub { max-width: 430px; }
html:not(.js) .pp-bill, html:not(.js) .pp-step button { display: none; }

/* the two asks under the plans: the offer, and the way to us for anything bigger */
.pp-ask { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 920px; margin: 18px auto 0; text-align: left; }
.pp-ask li { padding: 14px 18px; border: 1px dashed var(--line2); border-radius: 14px; font-size: 14.5px; line-height: 1.45; color: var(--ink2); }
.pp-ask b { color: var(--ink); font-weight: 500; }
.pp-ask a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); border-radius: 3px; }
.pp-ask a:hover { text-decoration-color: currentColor; }
.pp-agents .pp-ag { display: inline-flex; }

/* the phone version of the table (built by expand.py from it): one accordion per group */
.pp-acc { display: none; }
.pp-grp summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-radius: 6px; }
.pp-grp summary::-webkit-details-marker { display: none; }
.pp-grp summary h3 { font: 600 18px/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.pp-grp summary svg { width: 16px; height: 16px; color: var(--ink3); flex: none; }
.pp-grp[open] summary svg { transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .pp-grp summary svg { transition: transform .18s var(--out); }
  .pp-grp::details-content { block-size: 0; overflow: clip; transition: block-size .18s var(--out), content-visibility .18s allow-discrete; }
  .pp-grp[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) { .pp-tip::after { transition: none; } }

@media (max-width: 899px) {
  .pp-hero h1 { font-size: 56px; }
  .pp-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .pp-for { min-height: 0; }
  .pp-both { grid-template-columns: 1fr 1fr; max-width: 520px; }
  .pp-both > :first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding: 14px 18px; }
  .pp-both > * { border-left: 0; }
  .pp-both > :nth-child(odd):not(:first-child) { border-left: 1px solid var(--line); }
  .pp-both > :nth-child(n+4) { border-top: 1px solid var(--line); }
  .pp-calm { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  .pp-hero h1 { font-size: 42px; }
  .pp-hero h1 .ln { display: block; }
  .pp-bill { margin-top: 26px; }
  .pp-plans { margin-top: 28px; gap: 14px; }
  .pp-plan { padding: 24px 22px 26px; border-radius: 18px; }
  .pp-price b { font-size: 56px; }
  .pp-both > * { padding: 14px 16px; }
  .pp-agents { margin-top: 56px; padding: 26px 0; text-align: center; }
  .pp-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 16px 18px; }
  .pp-row output { display: none; }
  .pp-calc-h { padding: 12px 18px; }
  .pp-total { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; }
  .pp-total .pp-sum { text-align: left; font-size: 40px; margin-top: 6px; }
  .pp-ask { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  /* the table gives way to the accordion: the feature, then Free and Pro side by side, under a Free / Pro header
     that sticks below the nav */
  .pp-cmp { display: none; }
  .pp-acc { display: block; margin-top: 32px; }
  .pp-acc-h { position: sticky; top: 64px; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; padding: 12px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line2); }
  .pp-acc-h b { display: block; font: 600 17px/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink); }
  .pp-acc-h span { display: block; font: 12px/1.5 var(--mono); color: var(--ink3); margin-top: 2px; }
  .pp-grp { border-bottom: 1px solid var(--line2); }
  .pp-r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; padding: 12px 0 13px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
  .pp-r:last-child { margin-bottom: 8px; }
  .pp-f { grid-column: 1 / -1; padding-bottom: 3px; font-size: 13.5px; color: var(--ink3); }
  .pp-v { color: var(--ink); }
  .pp-v.same { color: var(--ink2); }
  .pp-r svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; color: var(--accent-ink); margin-right: 6px; }
  .pp-v .pp-tip::after { left: auto; right: 0; }
  .pp-tip::after { width: 260px; }
  .pp-sec { grid-template-columns: minmax(0, 1fr); }
  .pp-sec li { border-left: 0 !important; border-top: 1px solid var(--line) !important; }
  .pp-sec li:first-child { border-top: 0 !important; }
  .pp-close h2 { font-size: 38px; }
  .close.pp-close { padding: 110px 0 100px; }
}

/* ---------- 04b · around the work (mx-*): the four card pictures of #context, drawn after the app's own patterns
   (canvas.css .cvid / .cimg-pdf / .pdfv / .media-*, search.css .sp-*) at the bento's 432 x 168 stage ---------- */
:root { --mx-shadow: 0 8px 28px rgba(0, 0, 0, .12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mx-shadow: 0 10px 32px rgba(0, 0, 0, .5); } }
:root[data-theme="dark"] { --mx-shadow: 0 10px 32px rgba(0, 0, 0, .5); }
.mx-vid { position: absolute; border-radius: 6px; background: #111; color: #fff; overflow: hidden; }
.mx-vid > svg { display: block; width: 100%; height: 100%; }
.mx-play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -26px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; background: rgb(0 0 0 / .62); box-shadow: 0 0 0 1px rgb(255 255 255 / .25); }
.mx-play svg { width: 16px; height: 16px; margin-left: 3px; fill: #fff; }
.mx-vmeta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 7px; padding: 16px 9px 7px; background: linear-gradient(to top, rgb(0 0 0 / .72), rgb(0 0 0 / 0)); font-size: 11px; line-height: 15px; white-space: nowrap; }
.mx-vmeta b { flex: none; padding: 1px 6px; border-radius: 4px; background: rgb(255 255 255 / .18); font-weight: 600; font-size: 10px; }
.mx-vmeta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mx-pdf { position: absolute; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(20, 20, 19, .12), 0 6px 18px rgba(0, 0, 0, .10); overflow: hidden; }
.mx-pdf.sel { box-shadow: 0 0 0 2px var(--accent); overflow: visible; }
.mx-pdf i { position: absolute; display: block; }
.mx-badge { position: absolute; left: 5px; top: 5px; padding: 1px 6px; border-radius: 999px; background: var(--raise); color: var(--ink2); box-shadow: 0 0 0 1px var(--line); font-size: 10px; line-height: 15px; white-space: nowrap; }
.mx-pv { position: absolute; display: flex; flex-direction: column; border-radius: 12px; background: var(--raise); box-shadow: 0 0 0 1px var(--line), var(--mx-shadow); overflow: hidden; }
.mx-pv-h { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 11px; flex: none; box-shadow: 0 1px 0 var(--line); font-size: 11.5px; color: var(--ink); white-space: nowrap; }
.mx-pv-h b { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.mx-pv-h span { color: var(--ink2); font-size: 10.5px; }
.mx-pv-h svg { width: 14px; height: 14px; fill: none; stroke: var(--ink2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mx-pv-s { position: relative; flex: 1; background: var(--bg); display: grid; place-items: center; }
.mx-pv-s .mx-pdf { position: relative; }
.mx-panel { position: absolute; display: flex; flex-direction: column; border-radius: 12px; background: var(--raise); box-shadow: 0 0 0 1px var(--line), var(--mx-shadow); overflow: hidden; }
.mx-panel-h { display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 0 12px; font-size: 12.5px; font-weight: 500; color: var(--ink); flex: none; }
.mx-panel-h span { font-weight: 400; font-size: 11.5px; color: var(--ink2); }
.mx-tabs { display: flex; gap: 14px; padding: 0 12px; height: 24px; font-size: 11.5px; color: var(--ink2); box-shadow: inset 0 -1px 0 var(--line); flex: none; }
.mx-tabs span { height: 24px; }
.mx-tabs .on { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--ink-solid); }
.mx-row { display: flex; align-items: center; gap: 10px; padding: 6px 12px; }
.mx-row + .mx-row { box-shadow: inset 0 1px 0 var(--line); }
.mx-row.on { background: var(--hover); }
.mx-th { position: relative; flex: none; width: 38px; height: 38px; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mx-th svg { display: block; width: 100%; height: 100%; }
.mx-th em { position: absolute; left: 2px; bottom: 2px; padding: 0 4px; border-radius: 4px; background: var(--raise); color: var(--ink2); font-size: 8.5px; line-height: 12px; font-style: normal; }
.mx-tx { min-width: 0; flex: 1; display: flex; flex-direction: column; white-space: nowrap; }
.mx-tx b { font-weight: 400; font-size: 12px; line-height: 16px; color: var(--ink); }
.mx-tx span { font-size: 10.5px; line-height: 14px; color: var(--ink2); }
.mx-tx small { font-size: 10.5px; line-height: 14px; color: var(--ink3); }
.mx-sp { position: absolute; display: flex; flex-direction: column; border-radius: 14px; background: var(--raise); box-shadow: 0 0 0 1px var(--line), var(--mx-shadow); overflow: hidden; }
.mx-sp-f { display: flex; align-items: center; gap: 8px; height: 34px; margin: 7px 7px 2px; padding: 0 4px 0 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--ink); flex: none; }
.mx-sp-f svg { width: 14px; height: 14px; fill: none; stroke: var(--ink2); stroke-width: 1.6; stroke-linecap: round; flex: none; }
.mx-sp-f > span { flex: 1; }
.mx-sp-f > span i { display: inline-block; width: 1px; height: 15px; margin-left: 1px; background: var(--accent); vertical-align: -3px; }
.mx-scope { display: flex; gap: 2px; padding: 2px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); font-size: 10.5px; color: var(--ink2); white-space: nowrap; }
.mx-scope span { padding: 2px 7px; border-radius: 5px; }
.mx-scope .on { background: var(--hover); color: var(--ink); font-weight: 500; }
.mx-gh { padding: 6px 15px 2px; font-size: 10.5px; line-height: 14px; font-weight: 500; color: var(--ink3); }
.mx-op { display: flex; align-items: center; gap: 9px; margin: 0 7px; padding: 5px 8px; border-radius: 8px; white-space: nowrap; }
.mx-op.on { background: var(--hover); }
.mx-ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.mx-ic svg { width: 13px; height: 13px; fill: none; stroke: var(--ink2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mx-op .mx-tx b { font-size: 12.5px; }
.mx-op mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; margin: 0 -1px; }
.mx-op em { flex: none; height: 18px; padding: 0 7px; border-radius: 9px; background: var(--hover); color: var(--ink2); font-size: 10px; line-height: 18px; font-weight: 500; font-style: normal; }
