/* The landing page wears the workspace's own look (src/web/style.css): system sans
   for text, the manuscript's TeX Gyre Pagella for headings, Inconsolata for code,
   neutral greys and one blue. The hero backdrop repeats the gradient behind the
   README screenshots and the demo, and returns behind the closing downloads.

   One set of rules keeps it consistent: the serif is for display headings only
   (h1, h2 and feature titles); everything else is sans. Controls are pills,
   surfaces are 16px cards with a hairline border and no shadow, numbers are
   monospaced in the accent colour, and only windows (the product demos, the
   terminal and the small drawings in "Why") float. */
@font-face{font-family:"Paper Serif";src:url("fonts/TeXGyrePagellaX-Regular.otf") format("opentype");font-weight:400;font-display:swap}
@font-face{font-family:"Paper Serif";src:url("fonts/TeXGyrePagellaX-Bold.otf") format("opentype");font-weight:700;font-display:swap}
@font-face{font-family:"Paper Serif";src:url("fonts/TeXGyrePagellaX-Italic.otf") format("opentype");font-style:italic;font-display:swap}
@font-face{font-family:"Paper Mono";src:url("fonts/Inconsolatazi4-Regular.otf") format("opentype");font-weight:400;font-display:swap}
:root{
  --serif:"Paper Serif","TeX Gyre Pagella",Palatino,"Palatino Linotype","Songti SC","Noto Serif CJK SC",Georgia,serif;
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI","PingFang SC","Hiragino Sans GB","Noto Sans SC",system-ui,sans-serif;
  --mono:"Paper Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --bg:#ffffff;--bg-subtle:#fafafa;--bg-muted:#f4f4f4;--bg-hover:#efefef;
  --line:#ebebeb;--line-strong:#d6d6d6;--line-hover:#c4c4c4;
  --text:#171717;--text-2:#525252;--text-3:#8a8a8a;
  --accent:#2563eb;--accent-hover:#1d4ed8;--accent-soft:#eff6ff;--accent-line:#bfdbfe;
  --green:#15803d;--red:#b91c1c;
  --backdrop:linear-gradient(135deg,#e3ebfd 0%,#f7f8fb 50%,#e9e7fd 100%);
  --glass:rgb(255 255 255/.78);--mark:#dbe6fd;--button:#2563eb;--button-hover:#1d4ed8;
  --r:8px;--r-md:10px;--r-lg:16px;--r-xl:24px;
  --float:0 1px 2px rgb(15 23 42/.04),0 24px 48px -16px rgb(15 23 42/.16);
  --wrap:1120px;
  font:16px/1.6 var(--sans);color:var(--text);background:var(--bg);font-synthesis:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color-scheme:light;font-kerning:normal;
  scroll-behavior:smooth;scroll-padding-top:80px;
}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}}
/* Dark mode follows the system until the toggle chooses. */
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){
  --bg:#111214;--bg-subtle:#17181b;--bg-muted:#1f2024;--bg-hover:#26272b;
  --line:#2a2b30;--line-strong:#3a3b41;--line-hover:#4a4b52;
  --text:#ececed;--text-2:#a9aaaf;--text-3:#7d7e84;
  --accent:#5b8cff;--accent-hover:#7ba3ff;--accent-soft:#162139;--accent-line:#2c4170;
  --green:#4ade80;--red:#f87171;
  --backdrop:linear-gradient(135deg,#161c2e 0%,#111214 50%,#1b1830 100%);
  --glass:rgb(17 18 20/.74);--mark:rgb(91 140 255/.3);--button:#3466e8;--button-hover:#4a78ee;
  --float:0 1px 2px rgb(0 0 0/.3),0 24px 48px -16px rgb(0 0 0/.6);
  color-scheme:dark;
}}
:root[data-theme=dark]{
  --bg:#111214;--bg-subtle:#17181b;--bg-muted:#1f2024;--bg-hover:#26272b;
  --line:#2a2b30;--line-strong:#3a3b41;--line-hover:#4a4b52;
  --text:#ececed;--text-2:#a9aaaf;--text-3:#7d7e84;
  --accent:#5b8cff;--accent-hover:#7ba3ff;--accent-soft:#162139;--accent-line:#2c4170;
  --green:#4ade80;--red:#f87171;
  --backdrop:linear-gradient(135deg,#161c2e 0%,#111214 50%,#1b1830 100%);
  --glass:rgb(17 18 20/.74);--mark:rgb(91 140 255/.3);--button:#3466e8;--button-hover:#4a78ee;
  --float:0 1px 2px rgb(0 0 0/.3),0 24px 48px -16px rgb(0 0 0/.6);
  color-scheme:dark;
}
.app-window,.mini{
  /* Use the workspace palette in the page's resolved color scheme, including
     system changes and the no-script page. PDF ink stays softer in the dark. */
  --bg:light-dark(#ffffff,#2c2c2c);--bg-subtle:light-dark(#fafafa,#303030);--bg-muted:light-dark(#f5f5f5,#383838);--bg-hover:light-dark(#f0f0f0,#383838);--bg-active:light-dark(#e6e6e6,#444444);
  --canvas:light-dark(#f5f5f5,#1e1e1e);--raised:light-dark(#ffffff,#333333);--thumb:light-dark(#ffffff,#4d4d4d);
  --line:light-dark(#e6e6e6,#444444);--line-strong:light-dark(#d9d9d9,#4d4d4d);--line-hover:light-dark(#c4c4c4,#5e5e5e);
  --text:light-dark(#1e1e1e,#f0f0f0);--text-2:light-dark(#5e5e5e,#b3b3b3);--text-3:light-dark(#8f8f8f,#8c8c8c);
  --accent:light-dark(#0b8af0,#3aa6ff);--accent-hover:light-dark(#0a76d1,#6bbcff);--accent-soft:light-dark(#e5f3ff,#1c3a57);--accent-line:light-dark(#b3dbff,#2e5f8c);
  --button:#0b8af0;--button-hover:#0a76d1;
  --green:light-dark(#14a35a,#3fc47c);--red:light-dark(#e5482d,#ff7759);--green-soft:light-dark(#e6f6ec,#1e3a2a);--red-soft:light-dark(#fdede9,#47271f);
  --shadow-sm:0 0 .5px light-dark(rgb(0 0 0/.18),rgb(0 0 0/.6)),0 3px 8px light-dark(rgb(0 0 0/.1),rgb(0 0 0/.35)),0 1px 3px light-dark(rgb(0 0 0/.1),rgb(0 0 0/.35));
  --page-shadow:0 0 0 1px rgb(0 0 0/.04),0 1px 3px rgb(0 0 0/.08);
  --pdf-page:light-dark(#ffffff,#292929);--pdf-text:light-dark(#1e1e1e,#d6d6d6);
  --before:var(--red-soft);--before-edge:var(--red);--after:var(--green-soft);--after-edge:var(--green);
  --deleted:light-dark(#f8c4b8,#6e3a2d);--inserted:light-dark(#bfe5cc,#2d5a3e);
  --accept:var(--green);--reject:var(--red);--comment:var(--accent);--run:var(--green);
  --figure-blue:light-dark(#bed0f4,#5675a8);--figure-orange:light-dark(#f2cfae,#b1835e);
  color:var(--text);
}
*{box-sizing:border-box}
/* The app's icons, drawn once as symbols and stroked like the app's. */
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.ic{display:block;flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body{margin:0;background:var(--bg)}
h1,h2,h3,p,ol,ul,figure,pre{margin:0}
h1,h2{font-family:var(--serif);font-weight:400;letter-spacing:-.02em;text-wrap:balance}
img{display:block;max-width:100%;height:auto}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
button{font:inherit;color:inherit;cursor:pointer;background:none;border:0;padding:0}
button,a{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
::selection{background:rgb(37 99 235/.18)}
code{font-family:var(--mono);font-variant-ligatures:none}
p code,li code{font-size:.94em;padding:1px 6px;border-radius:6px;background:var(--bg-muted);white-space:nowrap}
.wrap{width:min(100% - 32px,var(--wrap));margin-inline:auto}

/* Serif text falls back to each language's own Mincho or Myeongjo, so
   Japanese, Korean and Traditional Chinese are not set in a Simplified face. */
html[lang=ja]{--serif:"Paper Serif","TeX Gyre Pagella",Palatino,"Hiragino Mincho ProN","Yu Mincho","Noto Serif CJK JP",serif}
html[lang=ja] :is(h1,h2,h3){font-feature-settings:"palt"}
html[lang=ko]{--serif:"Paper Serif","TeX Gyre Pagella",Palatino,"AppleMyungjo","Nanum Myeongjo","Noto Serif CJK KR",serif}
html[lang=zh-Hant]{--serif:"Paper Serif","TeX Gyre Pagella",Palatino,"Songti TC","Noto Serif CJK TC",serif}

/* Each page contains one language. CJK headings
   fall back to Songti and need no tightening. */
html:is([lang=zh-CN],[lang=zh-Hant],[lang=ja],[lang=ko]) :is(h1,h2,h3,.brand){letter-spacing:0}
html:is([lang=zh-CN],[lang=zh-Hant],[lang=ja],[lang=ko]) .hero h1{line-height:1.16}
html:is([lang=zh-CN],[lang=zh-Hant]) .hero h1{word-break:keep-all}
/* In the opening change, a changed Chinese phrase wraps as a whole rather
   than splitting its highlight. Formulas never break. */
html:is([lang=zh-CN],[lang=zh-Hant]) .hero .review-page :is(del,ins){white-space:nowrap}
.math{white-space:nowrap}

/* Buttons and other controls are pills. */
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 20px;border:1px solid transparent;border-radius:999px;font-size:15px;font-weight:500;white-space:nowrap;text-decoration:none;transition:background-color .15s,border-color .15s,color .15s}
.button:hover{text-decoration:none}
.button.compact{height:36px;padding:0 14px;font-size:14px}
.primary{background:var(--button);color:#fff}
.primary:hover{background:var(--button-hover)}
.secondary{background:var(--bg);border-color:var(--line-strong);color:var(--text)}
.secondary:hover{background:var(--bg-subtle);border-color:var(--line-hover)}
.ghost{color:var(--text-2)}
.ghost:hover{background:var(--bg-hover);color:var(--text)}

/* Flat accent text, consistent with the site's other links. */
.try-demo{position:relative;display:inline-flex;align-items:center;min-height:36px;color:var(--accent);font-size:14px;font-weight:500;line-height:1.4;white-space:nowrap}
.try-demo:hover,.try-demo:focus-visible{color:var(--accent-hover);text-decoration:none}
@media(prefers-reduced-motion:no-preference){
  .try-demo{transition:color .15s ease}
}

/* Top bar */
.topbar{position:sticky;top:0;z-index:10;background:var(--glass);-webkit-backdrop-filter:saturate(1.6) blur(16px);backdrop-filter:saturate(1.6) blur(16px);border-bottom:1px solid transparent;transition:border-color .2s}
.topbar.scrolled{border-bottom-color:var(--line)}
.topbar-inner{display:flex;align-items:center;gap:20px;height:64px}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--text);font:400 21px/1 var(--serif);letter-spacing:-.005em}
.brand:hover{text-decoration:none}
.brand-mark{width:26px;height:26px}
.nav{display:flex;align-items:center;gap:2px;flex:1}
.nav a:not(.topbar-universe){padding:7px 12px;border-radius:999px;font-size:14.5px;color:var(--text-2);transition:background-color .15s,color .15s}
.nav a:hover{background:var(--bg-hover);color:var(--text);text-decoration:none}
.topbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.topbar-universe{display:inline-flex;flex:none;align-items:center;gap:7px;min-height:38px;padding:7px 14px 7px 11px;border-radius:999px;color:var(--text);font-size:14px;font-weight:500;line-height:1.4;white-space:nowrap}
.topbar-universe:hover,.topbar-universe:focus-visible{background:var(--bg-hover);color:var(--text);text-decoration:none}
.universe-icon{flex:none;overflow:visible;color:var(--accent)}
.universe-planet{fill:color-mix(in srgb,currentColor 26%,var(--bg))}
.universe-orbit{transform-origin:12px 12px}
.demo-icon{display:none}
@media(prefers-reduced-motion:no-preference){
  .topbar-universe{transition:background-color .15s,color .15s}
  .topbar-universe:focus-visible .universe-orbit{animation:universe-orbit 1.4s ease-in-out}
}
@media(prefers-reduced-motion:no-preference) and (hover:hover){
  .topbar-universe:hover .universe-orbit{animation:universe-orbit 1.4s ease-in-out}
}
@keyframes universe-orbit{to{transform:rotate(360deg)}}
.topbar-demo{flex-shrink:0;margin-right:12px}
.icon-button{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:999px;color:var(--text-2);transition:background-color .15s,color .15s}
.icon-button:hover,.icon-button[aria-expanded=true]{background:var(--bg-hover);color:var(--text)}
.theme-button[hidden]{display:none}
.theme-button .icon-sun,.theme-button[aria-pressed=true] .icon-moon{display:none}
.theme-button[aria-pressed=true] .icon-sun{display:block}
.lang-menu{position:relative}
.lang-menu[hidden]{display:none}
.lang-list{position:absolute;top:calc(100% + 8px);right:0;min-width:168px;padding:5px;border:1px solid var(--line);border-radius:14px;background:var(--bg);box-shadow:0 1px 2px rgb(15 23 42/.04),0 12px 32px -8px rgb(15 23 42/.18)}
.lang-list[hidden]{display:none}
.lang-list>a{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;height:36px;padding:0 10px 0 12px;border-radius:9px;font-size:14px;color:var(--text);text-align:left}
.lang-list>a:hover,.lang-list>a:focus-visible{background:var(--bg-hover);outline:none}
.lang-list>a>svg{color:var(--accent);visibility:hidden}
.lang-list>a[aria-checked=true]>svg{visibility:visible}

/* Hero */
.hero{background:var(--backdrop)}
/* The first screen fills the window below the top bar. */
.hero-screen{position:relative;justify-content:center;min-height:calc(100svh - 64px);padding:48px 0 96px}
.hero-copy{display:flex;flex-direction:column;align-items:center;text-align:center}
.hero h1{font-size:clamp(34px,4.6vw,56px);line-height:1.1;color:var(--text)}
/* The headline's new word gets a pale blue highlighter stroke under its
   lower part, drawn in once the page opens. */
.hero h1 ins{padding:0 .04em;background:linear-gradient(transparent 66%,var(--mark) 66%,var(--mark) 90%,transparent 90%) no-repeat 0 0/100% 100%;text-decoration:none}
@media(prefers-reduced-motion:no-preference){.hero h1 ins{animation:mark .8s .35s cubic-bezier(.4,0,.2,1) backwards}}
@keyframes mark{from{background-size:0 100%}}
.hero .app-window{margin-top:36px}
/* A quiet arrow at the foot of the first screen: it bobs a few pixels, fades
   once the page moves, and stays still under reduced motion. */
.scroll-cue{position:absolute;bottom:24px;left:50%;display:grid;place-items:center;width:40px;height:40px;margin-left:-20px;border:1px solid var(--line-strong);border-radius:999px;background:var(--glass);color:var(--text-2);animation:cue-bob 2.4s ease-in-out infinite;transition:opacity .3s,background-color .15s}
.scroll-cue:hover{background:var(--bg);text-decoration:none}
.scroll-cue svg{width:18px;height:18px}
.scroll-cue.gone{opacity:0;pointer-events:none}
@keyframes cue-bob{50%{transform:translateY(5px)}}
/* Laptop screens are short: the first screen tightens rather than spilling. */
@media(max-height:820px) and (min-width:721px){
  .hero-screen{padding:24px 0 80px}
  .hero .app-window{margin-top:26px}
  .hero-screen .actions{margin-top:28px}
}
@media(prefers-reduced-motion:reduce){.scroll-cue{animation:none}}
/* The LaTeX logo as \LaTeX sets it, in serif display text: latex.ltx kerns
   L by -.36em, sets a script-size A with its top at the T's height, kerns
   -.15em, then T, -.1667em, E lowered .5ex, -.125em, X. The A's offsets are
   in its own, smaller em. The letters stay "LaTeX" for copy and search. */
.latex{white-space:nowrap}
.latex sup,.latex sub{position:relative;text-transform:uppercase;line-height:0}
.latex sup{top:-.3em;margin:0 -.21em 0 -.47em;font-size:.7em;vertical-align:baseline}
.latex sub{top:.22em;margin:0 -.125em 0 -.1667em;font-size:1em;vertical-align:baseline}

/* The opening window is Papilot on a Mac, with its toolbar and marking
   tools, reduced to the change: the PDF on the left, the chat on the right,
   and the rest of the text drawn as bars. The
   agent in the composer keeps changing, since any of them can do the work.
   The PDF keeps its height while a change resolves, so the first screen
   never shifts; the page simply runs on below. */
.app-window{--side:272px;container-type:inline-size;position:relative;display:flex;flex-direction:column;width:min(100%,980px);overflow:hidden;border:1px solid var(--line-strong);border-radius:12px;background:var(--bg);box-shadow:0 1px 2px rgb(15 23 42/.05),0 30px 64px -30px rgb(15 23 42/.34);text-align:left}
/* No title bar: as in the desktop app, the window controls share the 46px
   toolbar row, whose controls are the app's own, drawn without behaviour. */
.app-bar{position:absolute;top:0;left:0;z-index:3;display:flex;align-items:center;height:46px;padding:0 16px;pointer-events:none}
.app-bar .lights{gap:8px}
.app-bar .lights i{width:12px;height:12px;box-shadow:inset 0 0 0 .5px rgb(0 0 0/.16)}
.app-top{display:grid;grid-template-columns:minmax(0,1fr) var(--side);flex:none;border-bottom:1px solid var(--line);background:var(--bg);user-select:none;-webkit-user-select:none}
.app-tb{display:flex;align-items:center;gap:4px;min-width:0;height:46px;padding:0 8px 0 82px;overflow:hidden;font:500 13px/1 var(--sans);color:var(--text);white-space:nowrap}
.app-tb.side{padding-left:8px;border-left:1px solid var(--line)}
.tb-space{flex:1;min-width:0}
.tb-icon{display:grid;flex:none;place-items:center;width:30px;height:30px;border-radius:6px;color:var(--text)}
.tb-icon .ic{width:17px;height:17px}
.tb-run{color:var(--run)}
.tb-run .ic{width:19px;height:19px}
/* A segmented control: the chosen segment is a white thumb on a grey groove. */
.tb-seg{display:inline-flex;flex:none;align-items:center;gap:0;padding:2px;border-radius:7px;background:var(--bg-muted)}
.tb-seg>b{position:relative;display:flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:5px;font-weight:500;color:var(--text-2);transition:background-color .2s,color .2s,box-shadow .2s}
.tb-seg>b .ic{width:15px;height:15px}
.tb-seg>b.on{background:var(--thumb);color:var(--text);box-shadow:0 0 0 1px var(--line)}
.tb-seg>b.on .ic{color:var(--text)}
.tb-seg.icons>b{padding:0 7px}
.tb-badge{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--button);color:#fff;font:600 11px/18px var(--sans);font-style:normal;text-align:center}
.tb-decide{display:flex;flex:none;align-items:center;gap:6px}
.tb-count{margin:0 6px;color:var(--text);font-variant-numeric:tabular-nums}
.tb-count small{font-size:inherit;color:var(--text-3)}
/* The PDF's marking tools, in a white bar floating at the canvas's left edge. */
.app-rail{display:flex;flex-direction:column;align-items:center;align-self:start;gap:2px;width:46px;min-height:0;margin:8px 5px;padding:6px 0;overflow:hidden;border-radius:12px;background:var(--raised);box-shadow:var(--shadow-sm);color:var(--text)}
.app-rail>i,.rail-history>i,.m-tools>i{display:grid;flex:none;place-items:center;width:32px;height:32px;border-radius:8px;transition:background-color .2s,color .2s}
.app-rail .ic,.m-tools .ic{width:18px;height:18px}
.app-rail>.rail-collapse{position:relative;height:28px;margin-bottom:9px;color:var(--text-2)}
.app-rail>.rail-collapse::after{content:"";position:absolute;bottom:-5px;left:6px;right:6px;height:1px;background:var(--line)}
.app-rail>.rail-collapse .ic{width:14px;height:14px}
.app-rail hr{flex:none;width:20px;height:1px;margin:4px 0;border:0;background:var(--line)}
.rail-history{display:flex;flex-direction:column;align-items:center;gap:2px}
:is(.app-rail,.m-tools) .on{background:var(--button);color:#fff}
.app-body{display:grid;grid-template-columns:56px minmax(0,1fr) var(--side);background:var(--canvas)}
/* As the app does in a narrow window: the toolbar's controls lose their
   labels, then the PDF pane loses its rail. */
@container (max-width:920px){
  .app-tb .tb-label{display:none}
  .app-tb .tb-seg>b{padding:0 8px}
}
@media(min-width:721px){@container (max-width:600px){
  .app-rail{display:none}
  .app-body:not(.vm){grid-template-columns:minmax(0,1fr) var(--side)}
  .review-step{display:none}
  .review-number{margin-right:auto}
}}
.app-pdf{position:relative;display:flex;flex-direction:column;min-width:0;padding:22px 28px 0 14px;background:var(--canvas)}
.app-chat{display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-width:0;padding:16px 14px 14px;border-left:1px solid var(--line);background:var(--bg);user-select:none;-webkit-user-select:none}
/* Phone-only controls: the frosted navigation bar and the floating capsules. */
.m-nav,.m-decide,.m-tools{display:none}
/* The opening window's toolbar follows its change: the PDF while nobody has
   asked, then the changes, with the count while one waits. The tool
   that draws a box is chosen while a note is being written. */
.hero .app-window:has(.review-change[data-state=idle]) .tb-pdf,.hero .app-window:not(:has(.review-change[data-state=idle])) .tb-changes{background:var(--thumb);color:var(--text);box-shadow:0 0 0 1px var(--line)}
.hero .app-window:has(.review-change[data-state=idle]) .tb-pdf .ic,.hero .app-window:not(:has(.review-change[data-state=idle])) .tb-changes .ic{color:var(--text)}
.hero .app-window:not(:has(.review-change[data-state=pending])) :is(.tb-decide,.tb-badge){display:none}
.app-window.marking :is(.app-rail,.m-tools) .rail-region{background:var(--button);color:#fff}
.app-window.marking :is(.app-rail,.m-tools) .rail-select{background:none;color:inherit}
.m-chat.busy .ic{display:none}
.m-chat.busy::before{content:"";flex:none;width:12px;height:12px;border:2px solid var(--accent-line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(1turn)}}
.chat-thread{display:flex;flex-direction:column;gap:16px}
.chat-thread>*{transition:opacity .28s,transform .28s cubic-bezier(.25,.8,.25,1)}
/* The sent note, as the chat shows it: a heading, then each note's number
   and page, what it marks and the comment. */
.chat-bubble{padding:10px 14px 12px;border-radius:8px;background:var(--bg-muted);font:13.5px/1.55 var(--sans);color:var(--text)}
.chat-note-head{display:flex;align-items:center;gap:6px;margin-bottom:6px;font-size:12.5px;font-weight:500;color:var(--text-2)}
.chat-note-head .ic{width:14px;height:14px;color:var(--text-3)}
.chat-quote{display:flex;align-items:center;gap:6px;margin-bottom:4px;font:11.5px/1.4 var(--mono);color:var(--text-3)}
.chat-quote em{font-style:normal}
.chat-quote b{flex:none;min-width:18px;height:18px;border-radius:50%;background:var(--bg-subtle);color:var(--text-2);font:500 11px/18px var(--sans);font-variant-numeric:tabular-nums;text-align:center}
.chat-region{display:block;margin-bottom:3px;font-size:13px;font-style:italic;color:var(--text-3)}
.chat-comment+.chat-quote{margin-top:9px;padding-top:9px;border-top:1px solid var(--line-strong)}
/* What the agent did, folded to one line, as the chat lists tool calls. */
.chat-tool{display:flex;align-items:center;gap:8px;padding:0 4px;font:13px/1.4 var(--sans);color:var(--text-2)}
.chat-tool>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-tool .tool-more{margin-left:auto}
.chat-tool .ic{width:14px;height:14px;color:var(--text-3)}
.app-chat[data-step=sent] .chat-tool{display:none}
/* Notes added to the task wait above the composer until it is sent. */
.chat-picked{display:grid;gap:6px}
.chat-picked:not(:has(.on)){display:none}
.picked{display:none;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:3px 7px;padding:7px 10px 8px;border:1px solid var(--line);border-radius:10px;background:var(--bg);font:12px/1.4 var(--sans);color:var(--text-3);animation:chat-in .25s ease-out}
.picked.on{display:grid}
.picked b{min-width:18px;height:18px;padding:0 4px;border-radius:5px;background:var(--accent-soft);color:var(--accent);font:600 11px/18px var(--sans);text-align:center}
.picked>span{grid-column:1/-1;overflow:hidden;font-size:13px;color:var(--text);text-overflow:ellipsis;white-space:nowrap}
.chat-reply{padding:0 4px}
.chat-lines{display:grid;gap:10px;animation:chat-in .3s ease-out}
.chat-lines i,.chat-input i{display:block;height:7px;border-radius:4px;background:var(--line)}
.chat-dots{display:none;gap:5px;padding:4px 0}
.chat-dots i{width:7px;height:7px;border-radius:50%;background:var(--line-hover);animation:chat-dot 1.1s ease-in-out infinite}
.chat-dots i:nth-child(2){animation-delay:.15s}
.chat-dots i:nth-child(3){animation-delay:.3s}
@keyframes chat-dot{30%{background:var(--text-3);transform:translateY(-2px)}}
@keyframes chat-in{from{opacity:0;transform:translateY(6px)}}
/* The round's steps: an empty chat, a request the agent is working on, and
   the request answered. Without script the chat shows the last. */
.app-chat[data-step=empty] .chat-thread>:not(.chat-old){opacity:0;transform:translateY(8px)}
.app-chat[data-step=sent] .chat-dots{display:flex}
.app-chat[data-step=sent] .chat-reply:not(.chat-old) .chat-lines{display:none}
.chat-composer{padding:12px 8px 7px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.chat-input{display:flex;align-items:center;min-width:0;min-height:20px;overflow:hidden;white-space:nowrap}
.chat-input i{flex:none;width:58%}
.chat-agent.busy i::before{animation:busy 1s ease-in-out infinite}
@keyframes busy{50%{opacity:.3}}
/* The composer's footer: attach, the agent with its menu, and send, which
   stays grey until there is something to send. */
.chat-foot{display:flex;align-items:center;gap:4px;margin-top:14px}
.chat-plus{display:grid;flex:none;place-items:center;width:26px;height:26px;border-radius:5px;color:var(--text-2)}
.chat-foot .chat-agent{display:inline-grid;grid-template-columns:auto auto auto;justify-content:start;align-items:center;align-content:center;gap:1px 6px;height:auto;min-height:0;min-width:0;padding:0 4px;font:12.5px/15px var(--sans);color:var(--text-2);white-space:nowrap}
.chat-agent>i{grid-row:1/3}
.chat-agent b{grid-column:2;overflow:hidden;font-weight:500;text-overflow:ellipsis}
.chat-agent small{grid-column:2;overflow:hidden;font-size:11px;line-height:13px;color:var(--text-3);text-overflow:ellipsis}
.chat-agent>svg{grid-column:3;grid-row:1/3}
.chat-agent .ic{width:13px;height:13px;color:var(--text-3)}
.chat-agent.agent i{width:20px;height:20px;border:0;border-radius:0;background:none}
.chat-agent.agent i::before{width:17px;height:17px}
.chat-send{display:grid;flex:none;place-items:center;width:26px;height:26px;margin-left:auto;border-radius:50%;background:var(--bg-active);color:var(--text-3);transition:transform .12s,background-color .2s,color .2s}
.app-chat.ready .chat-send{background:var(--button);color:#fff}
.chat-send.pressed{transform:scale(.86)}
.chat-send .ic{width:15px;height:15px}
/* A pointer that plays one decision while nobody has touched the window. */
.app-cursor{position:absolute;top:0;left:0;z-index:5;display:none;width:22px;height:22px;opacity:0;pointer-events:none;transition:opacity .2s;will-change:transform;filter:drop-shadow(0 1px 1.5px rgb(0 0 0/.35))}
.playing .app-cursor{display:block}
.app-cursor.shown{opacity:1}
@media(hover:hover){.app-window:hover .app-cursor{opacity:0}}
.app-cursor svg{display:block;width:100%;height:100%;fill:#111;stroke:#fff;stroke-width:1.5;stroke-linejoin:round;transform-origin:25% 10%;transition:transform .12s}
.app-cursor.down svg{transform:scale(.84)}
.review-accept.pressed{background:var(--green-soft)}
/* A box drawn on the page opens a one-line note with its send button, as in
   the app's PDF view; the box is dashed until the note is sent, then carries
   the note's number. */
.demo-box{position:absolute;z-index:3;display:none;border:1.5px solid var(--accent);border-radius:3px;background:color-mix(in srgb,var(--accent) 7%,transparent);transition:opacity .2s;transform-origin:0 0}
.demo-box.open{display:block}
.demo-box.draft{border-style:dashed}
.demo-box.gone{opacity:0}
.demo-box[data-n]:not(.draft)::before{content:attr(data-n);position:absolute;top:50%;left:-15px;width:20px;height:20px;border-radius:50%;background:var(--button);color:#fff;font:600 11px/20px var(--sans);text-align:center;transform:translateY(-50%)}
.demo-note{position:absolute;z-index:4;display:none;align-items:center;gap:8px;padding:5px 5px 5px 14px;border:1px solid var(--line);border-radius:14px;background:var(--bg);box-shadow:0 14px 32px -12px rgb(15 23 42/.36);font:14px/1.5 var(--sans);color:var(--text);transform-origin:0 0}
.demo-note.open{display:flex;animation:pop .16s ease-out}
@keyframes pop{from{opacity:0;transform:translateY(-3px) scale(.96)}}
.demo-note-input{flex:1;min-width:0;overflow:hidden;white-space:nowrap}
.demo-note-hint{color:var(--text-3)}
.demo-note.filled .demo-note-hint{display:none}
.demo-note-typed::after{content:"";display:inline-block;width:1.5px;height:1.1em;margin:0 1px;vertical-align:-.2em;background:var(--text);animation:caret 1s steps(1) infinite}
@keyframes caret{50%{opacity:0}}
.demo-note-send{display:grid;flex:none;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--button);color:#fff;transition:transform .12s}
.demo-note-send svg{width:15px;height:15px}
.demo-note-send.pressed{transform:scale(.86)}

/* The page, drawn from Papilot's review viewer: unchanged lines are bars, and
   the change has a grey header with its number and actions, the typeset
   before and after (a coloured edge and a corner label on each) and its LaTeX
   source on request. Deciding resolves it as the viewer does: the side that
   goes folds away, and the one that stays loses its marks. */
.review-page{display:flex;flex:1;flex-direction:column;padding-top:26px;background:var(--pdf-page);box-shadow:var(--page-shadow);font:400 clamp(15px,1.5vw,18px)/1.55 var(--serif);color:var(--pdf-text)}
.sheet-lines{display:grid;align-content:start;gap:11px;padding:0 48px 0 40px}
.sheet-lines i{height:7px;border-radius:4px;background:var(--line)}
.sheet-lines:first-child{margin-bottom:22px}
.review-change+.sheet-lines{margin-top:22px}
.sheet-lines.fill{flex:1 1 0;min-height:44px;overflow:hidden}
/* The rest of a page is abstract too: headings, display equations with
   their numbers, and figures, drawn like the bars so the page reads as a
   paper without saying anything. */
.sheet-head{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding:0 48px 0 40px}
.sheet-head b{font:700 14px/1 var(--serif);color:var(--text-3)}
.sheet-head i{height:10px;border-radius:5px;background:var(--line-strong)}
.sheet-eq{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;padding:4px 56px;font:16px/1 var(--serif);color:var(--text-3)}
.sheet-lines+.sheet-eq{margin-top:4px}
.sheet-eq+.review-change{margin-top:16px}
.sheet-eq>i,.frac>i{display:block;height:8px;border-radius:4px;background:var(--line-strong)}
.frac{display:grid;justify-items:center;gap:4px}
.frac>b{display:block;justify-self:stretch;height:1.2px;background:var(--line-hover)}
.sheet-eq em{position:absolute;right:22px;font-size:12.5px;font-style:normal;color:var(--text-3)}
/* Figures. The opening page pictures its own sentence: a faded source file,
   LaTeX, and the page it typesets, kept quiet so the change above stays the
   subject. The Git scene's page has a TikZ-style automaton. Both sit over a
   caption bar. */
.sheet-fig{display:block;padding:0 6%}
.sheet-lines>.sheet-fig{margin-block:16px 6px}
.sheet-fig>i{display:block;width:40%;height:7px;margin:10px auto 0;border-radius:4px;background:var(--line)}
.fig-flow{display:flex;align-items:stretch;justify-content:center;gap:16px}
.fig-panel{display:flex;flex-direction:column;align-items:center;gap:6px}
.fig-panel>:first-child{margin-block:auto}
.fig-panel>b{font:400 10.5px/1 var(--mono);color:var(--text-3)}
.fig-source>svg{opacity:.55}
.fig-file{display:block;width:46px;height:56px}
.fig-file path{stroke:var(--line-strong)}
.fig-file path:first-child{fill:var(--bg-subtle)}
.fig-file text{font:7px var(--mono);fill:var(--text-3)}
.fig-step{display:flex;flex-direction:column;align-items:center;align-self:center;gap:2px;padding-bottom:16px;font:12px/1 var(--serif);color:var(--text-3)}
.fig-arrow{display:block;width:32px;height:12px}
.fig-page{display:flex;align-items:center;gap:5px;padding:4px 10px;border:1px solid var(--line);border-radius:2px;background:var(--bg);box-shadow:0 1px 4px rgb(15 23 42/.06);font:16px/1 var(--serif);color:var(--text-2)}
.fig-page var{font-style:italic}
.fig-page sup{font-size:.62em;line-height:0;vertical-align:.55em}
.fig-op{display:flex;flex-direction:column;align-items:center;gap:1px}
.fig-op>span{font-size:26px;line-height:.9}
.fig-op small{font-size:9.5px}
.fig-frac{display:inline-grid;text-align:center}
.fig-frac>span{padding:1px 3px}
.fig-frac>span:first-child{border-bottom:1px solid currentColor}
.fig-auto{display:block;width:100%;height:80px;overflow:visible}
.fig-auto [stroke]{stroke:var(--text-2)}
.fig-auto circle:not([fill=none]){fill:var(--pdf-page)}
.fig-auto .q{font:italic 12px var(--serif);fill:var(--pdf-text);text-anchor:middle}
.fig-auto .e{font:italic 11px var(--serif);fill:var(--text-2);text-anchor:middle}
/* An inference rule: premises over a line, the rule's name beside it, the
   conclusion below. */
.rule{display:inline-grid;grid-template-columns:auto auto;align-items:center;column-gap:8px;text-indent:0;white-space:nowrap;vertical-align:middle}
.rule-premises{display:flex;justify-content:center;gap:1.8em;padding:0 .5em 3px;border-bottom:1px solid currentColor}
.rule-name{grid-row:1/3;grid-column:2;font-size:.78em;font-variant:small-caps;letter-spacing:.02em}
.rule-conclusion{grid-column:1;padding-top:3px;text-align:center}
.after .second,.scene-rule{display:block;text-align:center;text-indent:0}
.after .second ins{display:inline-block;padding:6px 12px}
.review-change{position:relative;cursor:pointer;border-block:1px solid var(--line);transition:border-color .35s,box-shadow .35s}
.review-change.current{z-index:1;cursor:auto;box-shadow:0 0 0 1px var(--accent)}
/* Before anyone asks, the change is only its first side, as plain text, and
   once decided it is only the side that stays: no header, no frame. Clicking
   a decided change opens it for review again. */
.review-change:not([data-state=pending]){border-color:transparent;box-shadow:none}
.review-change:is([data-state=accepted],[data-state=rejected]){cursor:pointer}
.review-head{display:flex;align-items:center;gap:2px;min-height:38px;padding:3px 6px 3px 14px;border-bottom:1px solid var(--line);background:var(--bg);font:13.5px/1.4 var(--sans);color:var(--text-2);white-space:nowrap}
.review-change.current .review-head{background:var(--accent-soft);color:var(--text)}
/* The viewer's header: the change, where its source is, and its actions as
   icons. A lone change has no neighbours to step to. */
.review-step{display:none}
.review-step .ic{width:14px;height:14px}
.review-number{font-weight:500;color:var(--text)}
.review-where{min-width:0;margin:0 auto 0 10px;overflow:hidden;font:12px var(--mono);color:var(--text-3);text-overflow:ellipsis}
.review-head :is(button,a,.review-copy){display:inline-grid;flex:none;place-items:center;width:30px;height:28px;border-radius:5px;text-decoration:none;transition:background-color .15s}
.review-head :is(button,a):hover{background:var(--bg-hover);text-decoration:none}
.review-head :is(button,a,.review-copy) .ic{width:16px;height:16px}
.review-accept{color:var(--accept)}
.review-reject{color:var(--reject)}
.review-comment{color:var(--comment)}
.review-latex,.review-copy{color:var(--text-2)}
.review-latex[aria-expanded=true]{background:var(--bg-active);color:var(--text)}
.review-side{position:relative;padding:18px 48px 14px 40px;border-left:2px solid;transition:background-color .35s,border-color .35s}
.folding{overflow:hidden}
.review-side.before{background:var(--before);border-left-color:var(--before-edge)}
.review-side.after{background:var(--after);border-left-color:var(--after-edge)}
.review-label{position:absolute;top:6px;right:10px;font:12px/1 var(--sans);color:var(--before-edge);transition:opacity .3s}
.after .review-label{color:var(--after-edge)}
.review-page :is(del,ins){padding:0 1px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.review-side del{background:var(--deleted);color:inherit;text-decoration:line-through;text-decoration-color:var(--reject);text-decoration-thickness:1.5px}
.review-side ins{background:var(--inserted);text-decoration:none}
.review-side :is(del,ins){transition:background-color .35s,text-decoration-color .35s}
.review-change:not([data-state=pending]) .review-head:not(.folding),.review-change[data-state=idle] .after:not(.folding),.review-change[data-state=accepted] .before:not(.folding),.review-change[data-state=rejected] .after:not(.folding){display:none}
.review-change:not([data-state=pending]) .review-side:not(.folding){background:var(--pdf-page);border-left-color:transparent}
.review-change:not([data-state=pending]) .review-side:not(.folding) .review-label{opacity:0}
.review-change:not([data-state=pending]) .review-side:not(.folding) ins{background:transparent}
.review-change:not([data-state=pending]) .review-side:not(.folding) del{background:transparent;text-decoration-color:transparent}
.instant,.instant *{transition:none!important}
/* The source, as the viewer shows it: file and lines, then one word diff. */
.review-source{padding:10px 14px 12px;border-top:1px solid var(--line);cursor:auto}
.review-source[hidden]{display:none}
.review-source-title{margin-bottom:6px;font:11.5px var(--mono);color:var(--text-2)}
.review-source pre{padding:9px 12px;border:1px solid var(--line);border-radius:5px;font:12.5px/1.65 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text)}
.review-source del{background:var(--red-soft);color:var(--red);text-decoration:line-through;text-decoration-color:var(--reject)}
.review-source ins{background:var(--green-soft);color:var(--green);text-decoration:none}
.actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:40px}
.install{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 6px 0 18px;border:1px solid var(--line-strong);border-radius:999px;background:var(--bg)}
.install code{font-size:15.5px;color:var(--text);white-space:nowrap}
.prompt{color:var(--text-3);user-select:none;-webkit-user-select:none}
.copy{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:999px;color:var(--text-3);transition:background-color .15s,color .15s}
.copy:hover{background:var(--bg-hover);color:var(--text)}
.copy>svg{grid-area:1/1}
.copy .icon-check,.copy.copied .icon-copy{display:none}
.copy.copied .icon-check{display:block;color:var(--green)}
.demo{margin-top:64px}
/* Agent marks: the app's monochrome brand icons, tinted, on a quiet tile */
.agent{display:flex;align-items:center;gap:12px}
.agent i{display:grid;place-items:center;flex:none;width:40px;height:40px;border:1px solid var(--line);border-radius:12px;background:var(--bg-subtle)}
.agent i::before{content:"";width:22px;height:22px;background:var(--brand,var(--text));-webkit-mask:var(--logo) center/contain no-repeat;mask:var(--logo) center/contain no-repeat}
.agent.pi{--logo:url("/site-assets/agents/pi.svg")}
.agent.codex{--logo:url("/site-assets/agents/codex.svg")}
.agent.claude{--logo:url("/site-assets/agents/claude.svg");--brand:#d97757}
.agent.cursor{--logo:url("/site-assets/agents/cursor.svg")}
.agent.copilot{--logo:url("/site-assets/agents/copilot.svg")}
.agent.grok{--logo:url("/site-assets/agents/grok.svg")}
.agent.antigravity{--logo:url("/site-assets/agents/antigravity.svg");--brand:#4285f4}
.agent.kimi{--logo:url("/site-assets/agents/kimi.svg");--brand:#6366f1}
.agent.glm{--logo:url("/site-assets/agents/glm.svg");--brand:#5d78e5}
.agent.deepseek{--logo:url("/site-assets/agents/deepseek.svg");--brand:#4d6bfe}
.agent.qwen{--logo:url("/site-assets/agents/qwen.svg");--brand:#8b5cf6}
.agent.opencode{--logo:url("/site-assets/agents/opencode.svg")}
.agent.qoder{--logo:url("/site-assets/agents/qoder.svg")}
.agent.codebuddy{--logo:url("/site-assets/agents/codebuddy.svg")}
.agent.workbuddy{--logo:url("/site-assets/agents/workbuddy.svg")}

/* The agents under the hero: every logo pill at once, wrapping. With
   script they wait out of sight and arrive one after another. */
.logos{padding:72px 0 8px}
.logos h2{text-align:center;font:500 13.5px/1.4 var(--sans);letter-spacing:.02em;color:var(--text-3)}
.logos-copy{max-width:680px;margin:12px auto 0;text-align:center;font-size:16px;color:var(--text-2);text-wrap:pretty}
.logos .feature-links{justify-content:center;margin-top:12px}
.agent-grid{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:12px;max-width:940px;margin:24px auto 0;padding:0}
.agent-grid li{display:inline-flex;align-items:center;gap:10px;flex:none;height:52px;padding:0 20px 0 8px;border:1px solid var(--line);border-radius:999px;background:var(--bg);font-size:15.5px;font-weight:500;color:var(--text);white-space:nowrap;transition:opacity .5s ease,transform .5s cubic-bezier(.25,.8,.25,1)}
.agent-grid .agent i{width:36px;height:36px;border-radius:999px}
.agent-grid .agent i::before{width:20px;height:20px}
.agent-grid.waiting li{opacity:0;transform:translateY(12px) scale(.96)}
.agent-grid.waiting.arrived li{opacity:1;transform:none;transition-delay:calc(var(--i) * 70ms)}
/* Desktop downloads: one button, a menu of builds for each system */
.download{position:relative}
.download-button{min-width:212px}
.download-button .chevron{margin-left:2px;opacity:.85;transition:transform .15s}
.download-button[aria-expanded=true] .chevron{transform:rotate(180deg)}
.download:is(.linux,.windows) .os-mac,.download:is(.linux,.windows) .for-mac,.download:not(.linux) .os-linux,.download:not(.linux) .for-linux,.download:not(.windows) .os-windows,.download:not(.windows) .for-windows{display:none}
.download-list{position:absolute;z-index:20;top:calc(100% + 8px);left:0;min-width:100%;width:280px;padding:6px;border:1px solid var(--line);border-radius:16px;background:var(--bg);box-shadow:0 1px 2px rgb(15 23 42/.04),0 16px 40px -12px rgb(15 23 42/.22);text-align:left}
.download-group+.download-group{margin-top:4px;padding-top:4px;border-top:1px solid var(--line)}
.download-list{overflow-y:auto}
/* Without room below, the menu opens upward. */
.download.up .download-list{top:auto;bottom:calc(100% + 8px)}
.download-label{padding:8px 12px 4px;font-size:12px;font-weight:600;letter-spacing:.02em;color:var(--text-3)}
.download-list a{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:9px 12px;border-radius:10px;color:var(--text);font-size:14.5px}
.download-list a strong{font-weight:500}
.download-meta{font-size:13px;color:var(--text-3);white-space:nowrap}
.download-list a:hover,.download-list a:focus-visible{background:var(--bg-hover);outline:none;text-decoration:none}
.hero-note{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 18px;margin-top:16px;text-align:center;font-size:13.5px;color:var(--text-3)}
.hero-universe,.hero-guide{padding-block:3px;text-wrap:balance}
/* The header's GitHub button: the mark and, from deploys, the star count. */
.hero-star{display:inline-flex;align-items:center;gap:5px;padding-block:3px;white-space:nowrap}
.hero-star svg{flex:none}
.github-link:has(.github-count){display:inline-flex;align-items:center;gap:6px;width:auto;padding:0 12px 0 10px}
.github-link svg{flex:none}
.github-count{inline-size:6ch;text-align:end;font-size:13.5px;font-weight:500;font-variant-numeric:tabular-nums}

/* Sections share one header: a serif title. */
.section{padding:112px 0}
.section-head{max-width:760px;margin:0 auto 56px;text-align:center}
.section h2,.get h2{font-size:clamp(32px,4.2vw,46px);line-height:1.15}
.section-head>p{margin-top:14px;font-size:18px;color:var(--text-2);text-wrap:balance}
.num{font-family:var(--mono);font-weight:400;color:var(--accent)}

/* Features */
.feature{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:center;gap:72px}
.feature+.feature{margin-top:120px}
.feature.flip{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.feature.flip .feature-text{order:2}
.step{display:flex;align-items:baseline;gap:10px;font-size:14px;font-weight:600;color:var(--accent)}
.feature h3{margin-top:12px;font:400 34px/1.15 var(--serif);letter-spacing:-.015em}
.feature-text>p:not(.step):not(.feature-links){margin-top:16px;font-size:17px;color:var(--text-2);text-wrap:pretty}
.feature-links{display:flex;flex-wrap:wrap;gap:6px 20px;margin-top:18px;font-size:14.5px;font-weight:500}
.feature-links a{display:inline-flex;align-items:center;min-height:32px;color:var(--accent);font-weight:500}
.features{padding-top:24px}
:root{view-transition-name:none}
::view-transition{pointer-events:none}
.workflow-scene{height:500px}
.workflow-scene .app-cursor{z-index:8}
.scene-playback{position:absolute;top:9px;right:9px;z-index:10;display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;background:color-mix(in srgb,var(--bg) 88%,transparent);color:var(--text-3);box-shadow:0 2px 8px rgb(15 23 42/.08)}
.scene-playback:hover,.scene-playback:focus-visible{color:var(--accent);border-color:var(--accent-line)}
.scene-playback .ic{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.scene-playback .scene-play{fill:currentColor;stroke:none}
.scene-playback[hidden],.scene-playback svg[hidden]{display:none}
.sync-scene{height:430px}
.sync-panes{display:grid;grid-template-columns:minmax(0,1fr) 52px minmax(0,1fr);align-items:center;gap:12px;height:100%;padding:36px 24px;background:var(--bg-subtle);perspective:900px}
.sync-panel{position:relative;display:flex;flex-direction:column;height:340px;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--bg);box-shadow:var(--float)}
.sync-panel-head{display:flex;flex:none;align-items:center;gap:8px;height:46px;padding:0 14px;border-bottom:1px solid var(--line);font-size:13px;color:var(--text)}
.sync-panel-head>strong{font-weight:600}
.sync-state{display:flex;align-items:center;gap:5px;min-width:0;margin-left:auto;font-size:10px;color:var(--green);white-space:nowrap}
.sync-state>[lang]{overflow:hidden;text-overflow:ellipsis}
.sync-state i,.sync-live i{flex:none;width:6px;height:6px;border-radius:50%;background:currentColor}
.overleaf-mark{flex:none;width:21px;height:21px;background:light-dark(#138a07,#4cc34a);-webkit-mask:url("/site-assets/agents/overleaf.svg") center/contain no-repeat;mask:url("/site-assets/agents/overleaf.svg") center/contain no-repeat}
.sync-avatars{display:flex;flex:none;margin-left:auto}
.sync-avatars i{display:grid;place-items:center;width:22px;height:22px;border:2px solid var(--bg);border-radius:50%;background:#7c3aed;color:#fff;font:600 8px/1 var(--sans);font-style:normal}
.sync-avatars i+i{margin-left:-6px;background:#c27803}
.sync-paper{flex:1;padding:20px 18px;overflow:hidden;background:var(--pdf-page);color:var(--pdf-text);font:12px/1.5 var(--serif)}
.sync-paper>strong{font-size:14px}
.sync-bars{display:grid;gap:7px;margin:12px 0}
.sync-bars i{height:5px;border-radius:3px;background:var(--line)}
.sync-bars i:nth-child(2){width:86%}
.sync-bars i:nth-child(3){width:94%}
.sync-bars i:nth-child(4){width:64%}
.sync-paper p{position:relative;min-height:50px;margin:12px 0;padding:6px;border-radius:3px;background:var(--mark)}
.coauthor-cursor{position:relative;display:inline-block;width:0;height:1.2em;margin:0 -1px;border-left:2px solid #7c3aed;vertical-align:text-top}
.coauthor-cursor b{position:absolute;bottom:calc(100% + 3px);left:4px;padding:2px 6px;border-radius:4px;background:#7c3aed;color:#fff;font:500 9px/1.4 var(--sans);white-space:nowrap}
.coauthor-cursor.grace{border-color:#c27803}
.coauthor-cursor.grace b{top:calc(100% + 3px);right:4px;bottom:auto;left:auto;background:#c27803}
.sync-apply{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;gap:5px;padding:7px 10px;border-radius:8px;background:var(--button);color:#fff;font:500 11px/1.4 var(--sans);font-style:normal}
.sync-apply.pressed{transform:scale(.94)}
.sync-source{flex:1;padding:18px 10px;overflow:hidden;background:var(--bg);color:var(--text)}
.sync-source p{display:flex;align-items:center;gap:8px;height:38px;white-space:nowrap}
.sync-source p>span:first-child{width:14px;color:var(--text-3);font:10px var(--mono);text-align:right}
.sync-source code{font-size:10px;white-space:nowrap}
.sync-code-edit{display:flex;align-items:center;padding:3px 4px;border-radius:3px;background:var(--mark)}
.sync-caret{flex:none;width:1.5px;height:1.2em;background:#7c3aed}
.sync-source mark{padding:2px 3px;border-radius:2px;background:light-dark(#fef3c7,#453714);color:inherit;box-shadow:inset 0 -1px #c27803}
.sync-bridge{position:relative;display:grid;justify-items:center;gap:12px;color:var(--text-3)}
.sync-arrow{display:block;width:42px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sync-left{transform:scaleX(-1)}
.sync-live{display:flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:10px;font-weight:600}
.sync-packet{position:absolute;top:calc(50% - 10px);left:calc(50% - 8px);width:16px;height:20px;border:1.5px solid var(--accent);border-radius:3px;background:var(--bg);box-shadow:0 3px 10px var(--accent-line);opacity:0;pointer-events:none}
.sync-packet::before{content:"";position:absolute;inset:4px 3px;background:repeating-linear-gradient(to bottom,var(--accent) 0 1px,transparent 1px 4px)}
.sync-scene[data-step=editing] .sync-paper .coauthor-cursor{opacity:0}
.mobile-scene{height:520px}
.mobile-device{position:relative;display:flex;flex-direction:column;width:min(100%,340px);height:100%;margin-inline:auto;border-inline:1px solid var(--line);background:var(--bg);overflow:hidden}
.mobile-nav{display:flex;flex:none;align-items:center;gap:5px;height:52px;padding:0 8px;border-bottom:1px solid var(--line);color:var(--text-2)}
.mobile-nav>i{display:grid;place-items:center;width:30px;height:36px}
.mobile-nav .mobile-run{margin-right:28px;color:var(--run)}
.mobile-nav .tb-seg{display:flex;gap:3px;padding:3px;border-radius:10px;background:var(--bg-muted)}
.mobile-nav button{display:flex;align-items:center;gap:5px;min-height:34px;padding:0 10px;border-radius:8px;font-size:12px;white-space:nowrap}
.mobile-nav button[aria-pressed=true]{background:var(--bg);box-shadow:0 0 0 1px var(--line);color:var(--text)}
.mobile-nav .tb-badge{display:grid;place-items:center;min-width:16px;height:16px;border-radius:50%;background:var(--button);color:#fff;font-size:9px;font-style:normal}
.mobile-panes,.mobile-pane-track{display:flex;flex:1;flex-direction:column;min-height:0}
.mobile-review{flex:1;min-height:0}
.mobile-review[hidden],.mobile-chat[hidden],.template-status[hidden]{display:none}
.mobile-review .app-pdf{height:100%;padding:14px 10px 0}
.mobile-review .review-page{min-height:0;padding-top:12px;font-size:13px}
.mobile-review .review-head{min-height:32px;font-size:11px}
.mobile-review .review-where{margin-left:auto}
.mobile-review .review-side{padding:24px 14px 12px}
.mobile-review .sheet-lines{padding:0 14px}
.mobile-scene .m-decide{position:absolute;left:50%;bottom:12px;z-index:2;display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid var(--line-strong);border-radius:999px;background:color-mix(in srgb,var(--bg) 92%,transparent);box-shadow:var(--float);transform:translateX(-50%)}
.mobile-scene .m-decide>span{font:500 13px var(--sans);color:var(--text);white-space:nowrap}
.mobile-scene .m-decide>button{display:grid;place-items:center;width:44px;height:38px;border-radius:999px}
.mobile-scene .m-decide>button.pressed{transform:scale(.9)}
.mobile-scene[data-step=accepted] .m-accept{background:var(--green);color:#fff}
.mobile-scene[data-step=accepted] .tb-badge{opacity:0;transform:scale(0)}
.mobile-chat{display:flex;flex:1;flex-direction:column;justify-content:space-between;min-height:0;padding:16px 12px;background:var(--bg)}
.mobile-chat .chat-thread{gap:14px}
.mobile-chat .chat-reply{min-height:58px}
.mobile-chat .chat-composer{flex:none}
.mobile-chat .chat-dots{display:none}
.mobile-scene[data-step=thinking] .mobile-chat .chat-dots{display:flex}
.mobile-scene[data-step=thinking] .mobile-chat .chat-lines{display:none}
.mobile-scene .app-cursor{width:32px;height:32px;margin:-11px 0 0 -9px;border-radius:50%;filter:none}
.mobile-scene .app-cursor svg{display:none}
.mobile-scene .app-cursor::before{content:"";position:absolute;inset:0;border:2px solid var(--accent);border-radius:50%;background:var(--accent-soft);box-shadow:0 3px 12px var(--accent-line)}
.mobile-scene .app-cursor.down::before{transform:scale(.72);background:var(--accent-line)}
.mobile-success{position:absolute;top:46%;left:50%;z-index:5;display:none;place-items:center;width:64px;height:64px;margin:-32px;border:2px solid var(--green);border-radius:50%;background:var(--bg);color:var(--green);box-shadow:var(--float);pointer-events:none}
.mobile-success .ic{width:32px;height:32px;stroke-width:2.5}
.universe-scene{height:600px;background:var(--bg)}
.universe-head{display:flex;flex:none;align-items:center;gap:8px;height:46px;padding:0 16px;border-bottom:1px solid var(--line);color:var(--text)}
.universe-head>.ic{color:var(--accent)}
.universe-head>strong{font:400 21px var(--serif)}
.universe-head>span{margin-left:auto;margin-right:34px;color:var(--text-3);font:10px var(--mono)}
.universe-tools{flex:none;padding:12px 16px 10px;border-bottom:1px solid var(--line)}
.universe-search{position:relative}
.universe-search>.ic{position:absolute;top:14px;left:12px;color:var(--text-3);pointer-events:none}
.universe-search input{width:100%;height:44px;padding:0 12px 0 38px;border:1px solid var(--line-strong);border-radius:9px;background:var(--bg-subtle);color:var(--text);font:16px var(--sans)}
.universe-search input::placeholder{color:var(--text-3)}
.universe-scene[data-step=searching] .universe-search input{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.template-filters{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.template-filters button{min-height:32px;padding:0 10px;border:1px solid transparent;border-radius:999px;color:var(--text-2);font-size:11px;white-space:nowrap}
.template-filters button[aria-pressed=true]{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent);font-weight:600}
.template-grid{display:grid;flex:1;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:12px;min-height:0;padding:14px 16px 58px;overflow:hidden}
.template-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--bg);overflow-wrap:anywhere;view-transition-class:template-item}
.template-card.chosen{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft),0 14px 30px -18px var(--accent)}
.template-card[hidden]{display:none}
.template-preview{display:flex;flex-direction:column;gap:8px;height:100px;padding:14px;background:var(--pdf-page);color:var(--pdf-text);font-family:var(--serif);text-align:center}
.template-preview>strong{font-size:13px}
.template-preview>small{margin-top:auto;font-size:9px}
.preview-lines{display:grid;gap:5px}
.preview-lines i{height:3px;border-radius:2px;background:var(--line-strong)}
.preview-lines i:nth-child(even){width:76%;margin-inline:auto}
.preview-columns{display:grid;flex:1;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.preview-columns i{border:1px solid var(--line);background:repeating-linear-gradient(to bottom,var(--line-strong) 0 2px,transparent 2px 7px)}
.preview-rule{height:1px;background:var(--line-strong)}
.preview-seal{width:20px;height:20px;margin-inline:auto;border:2px solid var(--line-strong);border-radius:50%}
.template-preview.poster .preview-columns{grid-template-columns:repeat(3,minmax(0,1fr))}
.preview-chart{display:flex;align-items:flex-end;justify-content:center;gap:5px;height:24px}
.preview-chart i{width:12px;background:var(--figure-blue)}
.preview-chart i:nth-child(1){height:35%}.preview-chart i:nth-child(2){height:70%}.preview-chart i:nth-child(3){height:52%}.preview-chart i:nth-child(4){height:90%}
.template-meta{display:flex;flex:1;flex-direction:column;gap:2px;padding:10px}
.template-meta>strong{font-size:12px;color:var(--text)}
.template-meta>span{font-size:10px;color:var(--text-3)}
.template-open{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:32px;margin-top:5px;padding:0 8px;border-radius:6px;background:var(--accent-soft);color:var(--accent);font-size:10px;font-weight:600;text-align:left}
.template-open .ic{width:12px;height:12px}
.template-open.pressed{transform:scale(.97)}
.template-status{position:absolute;right:16px;bottom:14px;left:16px;display:flex;align-items:center;justify-content:center;gap:7px;min-height:36px;margin:0;border:1px solid var(--green);border-radius:9px;background:var(--bg);color:var(--green);font-size:12px;box-shadow:var(--float)}
.template-status-name{font-weight:600}
@media(prefers-reduced-motion:no-preference){
  .sync-scene[data-step=incoming] .sync-left,.sync-scene[data-step=outgoing] .sync-right{color:var(--accent);animation:sync-arrow .8s ease-in-out 2}
  .sync-scene[data-step=incoming] .sync-paper p,.sync-scene[data-step=outgoing] .sync-code-edit{animation:sync-edit .8s ease-out}
  .sync-scene[data-step=incoming] .sync-papilot{animation:sync-receive-left .55s ease-out}
  .sync-scene[data-step=outgoing] .sync-overleaf{animation:sync-receive-right .55s ease-out}
  .sync-scene[data-step=synced] .sync-live{animation:sync-live .55s cubic-bezier(.2,.9,.25,1.35)}
  .sync-scene[data-step=editing] .sync-caret,.coauthor-cursor{animation:caret 1s steps(1) infinite}
  .sync-live i{animation:sync-breathe 2s ease-in-out infinite}
  .mobile-nav button{transition:background-color .2s,color .2s,transform .2s}
  .mobile-nav .tb-badge{transition:opacity .25s,transform .25s}
  .mobile-scene .m-decide>button{transition:background-color .25s,color .25s,transform .15s}
  .mobile-scene .app-cursor::before{transition:transform .12s,background-color .12s}
  .mobile-scene[data-step=accepted] .mobile-success{display:grid;animation:mobile-success 1.15s cubic-bezier(.2,.8,.2,1) forwards}
  .mobile-scene[data-step=chat] .mobile-chat .chat-bubble{animation:mobile-bubble .45s cubic-bezier(.2,.8,.2,1)}
  .mobile-scene[data-step=chat] .mobile-chat .chat-lines i{animation:mobile-reply .55s cubic-bezier(.2,.8,.2,1) backwards}
  .mobile-scene[data-step=chat] .mobile-chat .chat-lines i+i{animation-delay:.12s}
  .template-filters button{transition:background-color .2s,color .2s,transform .2s}
  .template-card{transition:border-color .25s,box-shadow .25s}
  .template-card.chosen{animation:template-choice .6s cubic-bezier(.2,.85,.25,1.25)}
  .template-card.chosen .preview-lines i{animation:template-lines .65s ease-out backwards}
  .template-card.chosen .preview-lines i:nth-child(2){animation-delay:.1s}
  .template-card.chosen .preview-lines i:nth-child(3){animation-delay:.2s}
  .template-status:not([hidden]){animation:template-status .45s cubic-bezier(.2,.85,.25,1.25)}
  ::view-transition-group(.template-item){animation-duration:.38s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
  ::view-transition-old(.template-item){animation:template-card-out .18s ease-in forwards}
  ::view-transition-new(.template-item){animation:template-card-in .32s ease-out backwards}
}
@media(prefers-reduced-motion:reduce){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
}
@keyframes sync-arrow{50%{filter:drop-shadow(0 0 5px var(--accent));transform:translateX(4px)}}
@keyframes sync-edit{from{box-shadow:0 0 0 0 var(--accent);transform:translateY(4px)}to{box-shadow:0 0 0 6px transparent;transform:none}}
.sync-left{animation-name:sync-arrow-left}
@keyframes sync-arrow-left{50%{filter:drop-shadow(0 0 5px var(--accent));transform:scaleX(-1) translateX(4px)}}
@keyframes sync-receive-left{40%{transform:translateX(-7px) rotateY(2deg)}}
@keyframes sync-receive-right{40%{transform:translateX(7px) rotateY(-2deg)}}
@keyframes sync-live{40%{transform:scale(1.18)}}
@keyframes sync-breathe{50%{opacity:.35;transform:scale(.75)}}
@keyframes mobile-success{0%{opacity:0;transform:scale(.35) rotate(-18deg)}25%{opacity:1;transform:scale(1.12) rotate(3deg)}45%,70%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.9)}}
@keyframes mobile-bubble{from{opacity:0;transform:translateY(20px) scale(.96)}}
@keyframes mobile-reply{from{opacity:0;transform:scaleX(0);transform-origin:left}}
@keyframes template-choice{35%{transform:translateY(-8px) scale(1.025)}}
@keyframes template-lines{from{opacity:0;transform:scaleX(0);transform-origin:center}}
@keyframes template-status{from{opacity:0;transform:translateY(18px) scale(.96)}}
@keyframes template-card-out{to{opacity:0;transform:scale(.86)}}
@keyframes template-card-in{from{opacity:0;transform:translateY(14px) scale(.92)}}

/* Why: three ways to revise a LaTeX paper, each drawn as a small window that
   rises from its card. Code is monospaced, the page is serif; only the last
   window has no code in it. The two older ways share a row; Papilot's is a
   wide card of its own below them, its drawing beside its text. */
.eras{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.era{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--bg);overflow:hidden}
.era-text{padding:22px 24px 26px}
/* As in a style guide's "don't" and "do" examples, a coloured rule under each
   drawing and a mark in its tag say which way of working a card shows: red
   and a cross for the two older ones, blue and a tick for Papilot's. */
.era-tag{display:flex;align-items:center;gap:7px;font-size:13.5px;font-weight:600;color:var(--text-3)}
.era-tag svg{flex:none;width:18px;height:18px;padding:3px;border-radius:50%;background:#dc2626;color:#fff}
.era.old .era-tag{color:var(--red)}
.era.ours .era-tag{color:var(--accent)}
.era.ours .era-tag svg{background:var(--accent);color:#fff}
.era h3{margin-top:10px;font:400 26px/1.2 var(--serif);letter-spacing:-.01em}

.era-text>p:last-child{margin-top:8px;font-size:15px;line-height:1.6;color:var(--text-2);text-wrap:pretty}
.era.ours{border-color:var(--accent-line)}
.era-art{height:236px;padding:24px 20px 0;overflow:hidden;background:var(--bg-subtle);border-bottom:1px solid var(--line)}
.era.old .era-art{border-bottom:3px solid #dc2626}
.era.ours .era-art{background:var(--accent-soft);border-bottom:3px solid var(--accent)}
.era.ours{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);margin-top:28px}
.era.ours .era-art{height:300px;padding:30px 36px 0;border-bottom:0;border-right:3px solid var(--accent)}
.era.ours .era-text{align-self:center;padding:32px 44px}
.era.ours h3{font-size:32px}
.era.ours .era-text>p:last-child{font-size:16.5px}
.why-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 28px;margin-top:28px;text-align:center;font-size:14.5px;font-weight:500}
.why-links a{color:var(--accent)}
.why-links a:hover,.why-links a:focus-visible{color:var(--accent-hover)}
/* The wide card's drawing is larger, so its page is too. */
@media(min-width:961px){
  .era.ours .mini-bar{height:26px;gap:6px;padding:0 12px}
  .era.ours .mini-bar i{width:9px;height:9px}
  .era.ours .only .mini-pdf{padding:16px 92px 0}
  .era.ours .mini-page{gap:8px;padding:20px 26px 0}
  .era.ours .mini-heading{font-size:12px}
  .era.ours .bar{height:6px;border-radius:3px}
  .era.ours .mini-head{height:24px;padding:0 10px}
  .era.ours .mini-acts{gap:7px}
  .era.ours .mini-acts i{width:17px;height:17px}
  .era.ours .mini-acts svg{width:11px;height:11px}
  .era.ours .mini-side{gap:7px;padding:10px 14px}
  .era.ours .mini-comment{margin:-10px -40px 6px 0;padding:8px 8px 8px 12px}
  .era.ours .mini-comment i{width:20px;height:20px}
  .era.ours .mini-comment svg{width:11px;height:11px}
}
.mini{display:flex;flex-direction:column;height:100%;border:1px solid var(--line);border-bottom:0;border-radius:10px 10px 0 0;background:var(--bg);box-shadow:0 14px 32px -18px rgb(15 23 42/.28);overflow:hidden;user-select:none;-webkit-user-select:none}
.mini-bar{display:flex;gap:5px;flex:none;height:20px;align-items:center;padding:0 9px;border-bottom:1px solid var(--line)}
.mini-bar i{width:7px;height:7px;border-radius:50%;background:#ff5f57}
.mini-bar i:nth-child(2){background:#febc2e}
.mini-bar i:nth-child(3){background:#28c840}
/* Papilot's drawing has the app's toolbar in that row: a segmented
   control and the green compile button. */
.mini-seg{display:flex;gap:2px;margin-left:10px;padding:1.5px;border:1px solid var(--line-strong);border-radius:4px;background:var(--bg-active)}
.mini-seg b{width:14px;height:6px;border-radius:2px}
.mini-seg b.on{background:var(--bg);box-shadow:0 0 0 .5px var(--line)}
.mini-run{width:0;height:0;margin-left:auto;border-block:4px solid transparent;border-left:7px solid var(--run)}
.mini-body{display:grid;flex:1;min-height:0}
.mini-body>*{min-width:0;overflow:hidden}
.mini-body>*+*{border-left:1px solid var(--line)}
.split{grid-template-columns:1.15fr .85fr}
.diff{grid-template-columns:1.45fr .55fr}
.only{grid-template-columns:minmax(0,1fr)}
.mini-tab{display:inline-block;margin-bottom:6px;padding:2px 6px;border-radius:4px;background:var(--bg-muted);font:500 9px/1.3 var(--sans);color:var(--text-3)}
.mini-source{padding:8px 0 0 9px}
.mini-ai{display:inline-flex;align-items:center;gap:3px;margin-left:5px;background:var(--accent-soft);color:var(--accent)}
.mini-ai svg{width:9px;height:9px}
.mini-source pre{font:9px/1.6 var(--mono);color:var(--text-2);white-space:pre}
.mini-source b{font-weight:400;color:var(--accent)}
.mini-source em{font-style:normal;color:light-dark(#b45309,#eac584)}
.mini-source del,.mini-source ins{display:block;margin-left:-9px;padding-left:9px;text-decoration:none}
.mini-source del{background:var(--red-soft);color:var(--red)}
.mini-source ins{background:var(--green-soft);color:var(--green)}
.mini-source del::before{content:"− "}
.mini-source ins::before{content:"+ "}
.mini-source ins b{color:inherit}
.mini-pdf{position:relative;padding:10px 10px 0;background:var(--bg-muted)}
.mini-page{display:flex;flex-direction:column;gap:5px;height:100%;padding:12px 12px 0;background:var(--pdf-page);box-shadow:0 0 0 1px var(--line);font:9.5px/1.4 var(--serif);color:var(--pdf-text)}
.mini-page strong{margin-bottom:2px;font-size:10px}
.mini-eq{align-self:center;margin:3px 0;font-size:10px;white-space:nowrap}
.bar{display:block;flex:none;height:4px;border-radius:2px;background:var(--line)}
.bar.short{width:58%}
.only .mini-pdf{padding:12px 64px 0}
.only .mini-page{padding:14px 18px 0}
/* Papilot's drawing: a page with one change under review, its Comment
   chosen and a comment beside it. */
.mini-heading{display:flex;align-items:center;gap:6px;margin-bottom:2px;font:700 9.5px/1 var(--serif);color:var(--text-3)}
.mini-heading .bar{width:34%;height:5px;background:var(--line-strong)}
.bar.mid{width:78%}
.mini-review{display:grid;margin:4px -12px;border-block:1px solid var(--line);box-shadow:inset 0 0 0 1px var(--accent-line)}
.mini-head{display:flex;align-items:center;gap:8px;height:18px;padding:0 8px;border-bottom:1px solid var(--line);background:var(--bg-subtle)}
.mini-head{gap:4px}
.mini-head>.bar{width:16%;height:4px;background:var(--line-strong)}
.mini-step{font:9px/1 var(--sans);color:var(--text-3)}
.mini-acts .src{color:var(--text-2)}
.mini-acts .ic{width:9px;height:9px;stroke-width:2.2}
.mini-acts{display:flex;gap:5px;margin-left:auto}
.mini-acts i{display:grid;place-items:center;width:13px;height:13px;border-radius:3px}
.mini-acts svg{width:9px;height:9px}
.mini-acts .ok{color:var(--accept)}
.mini-acts .no{color:var(--reject)}
.mini-acts .talk{color:var(--comment);background:var(--accent-soft)}
.mini-side{display:grid;gap:5px;padding:7px 12px;border-left:2px solid}
.mini-side.before{border-left-color:var(--before-edge);background:var(--before)}
.mini-side.before .bar{background:var(--deleted)}
.mini-side.after{border-left-color:var(--after-edge);background:var(--after)}
.mini-side.after .bar{background:var(--inserted)}
.mini-comment{display:flex;align-items:center;gap:6px;align-self:flex-end;width:46%;margin:-8px -26px 4px 0;padding:6px 6px 6px 9px;border:1px solid var(--line);border-radius:9px;background:var(--bg);box-shadow:0 10px 22px -12px rgb(15 23 42/.4)}
.mini-comment>span{display:grid;flex:1;gap:4px}
.mini-comment .bar{background:var(--line-strong)}
.mini-comment i{display:grid;flex:none;place-items:center;width:15px;height:15px;border-radius:50%;background:var(--button);color:#fff}
.mini-comment svg{width:9px;height:9px}
/* Scrolling on, the older ways lose their colour (--old runs from 0 to 1 as
   they pass the top of the window) and Papilot's comes in (--new). Only the
   drawings and tags fade, so the text stays readable. */
.era.old :is(.era-art,.era-tag){filter:grayscale(var(--old,0));opacity:calc(1 - var(--old,0) * .45)}
.eras.staged .era.ours{opacity:var(--new,0);transform:translateY(calc((1 - var(--new,0)) * 28px))}

/* Feature windows: smaller copies of the opening window, all decoration.
   Their app bodies keep a fixed height so a round never moves the page. */
.scene{width:100%;box-shadow:0 1px 2px rgb(15 23 42/.05),0 24px 48px -26px rgb(15 23 42/.3)}
.scene-art{display:contents}
.scene{--side:232px}
.scene .app-body{height:430px}
.scene .app-pdf{padding:20px 16px 0 8px;overflow:hidden}
.scene .review-page{padding-top:22px;font-size:15px}
.scene .sheet-lines,.scene .sheet-head{padding:0 26px}
.scene .sheet-eq{padding:4px 40px}
.scene .sheet-eq em{right:16px}
.scene .sheet-lines.fill{gap:10px}
.scene .sheet-fig{padding:0 14%}
.scene .fig-auto{height:64px}
.scene .sheet-lines:first-child{margin-bottom:18px}
.scene .review-change+.sheet-lines{margin-top:18px}
.scene .review-side{padding:18px 48px 12px 24px}
.scene .review-head{min-height:36px;font-size:12.5px}
.scene .review-head{padding-block:3px}
.scene .review-head>i:not(.review-step){display:inline-grid;flex:none;place-items:center;width:27px;height:26px;border-radius:5px}
.scene .review-head>i .ic{width:16px;height:16px}
.scene .review-where{display:none}
.scene .review-number{margin-right:auto}
.scene .app-chat{gap:12px;padding:14px 12px 12px}
.scene .chat-thread{flex:1;gap:12px;min-height:0;overflow:hidden}
.scene .chat-bubble{font-size:13px}
.scene .chat-quote em{font-size:12px}
/* The narrower panels name only the agent, as the picker does when space runs out. */
.scene .chat-agent small{display:none}
.scene .chat-comment+.chat-quote{margin-top:8px}
.scene-text{position:relative;margin:0 26px 16px;text-wrap:pretty}
/* A figure: a bar chart with its legend in the top left, and a caption. */
.scene-figure{display:block;margin:0 26px 18px;padding:10px 14px 8px}
.figure-plot{position:relative;display:flex;align-items:flex-end;gap:9%;height:92px;padding:0 7%;border-left:1.5px solid var(--line-strong);border-bottom:1.5px solid var(--line-strong)}
.figure-plot b{flex:1;border-radius:2px 2px 0 0;background:var(--figure-blue)}
.figure-plot b:nth-child(odd){background:var(--figure-orange)}
.figure-legend{position:absolute;top:2px;left:10px;display:grid;gap:4px}
.figure-legend i{display:block;width:40px;height:6px;border-radius:3px;background:linear-gradient(90deg,var(--figure-blue) 0 9px,transparent 9px 13px,var(--line) 13px)}
.figure-legend i+i{background:linear-gradient(90deg,var(--figure-orange) 0 9px,transparent 9px 13px,var(--line) 13px)}
.figure-caption{display:block;width:38%;height:7px;margin:10px auto 0;border-radius:4px;background:var(--line)}
/* Earlier messages are bars; review feedback waits in a bar above the
   composer until it is sent. */
.chat-bubble.chat-old{display:grid;gap:8px;padding:11px 13px}
.chat-old i,.chat-old .chat-lines i{display:block;height:7px;border-radius:4px;background:var(--line)}
.chat-reply.chat-old .chat-lines i{background:var(--line)}
/* Review feedback waits in the composer, as the app keeps it, until send. */
.chat-draft{display:none;margin:-2px -2px 10px -4px;padding-bottom:9px;border-bottom:1px solid var(--line);font:12px/1.4 var(--sans);color:var(--text-3);animation:chat-in .25s ease-out}
.chat-draft.on{display:block}
.draft-head{display:flex;align-items:center;gap:6px;margin-bottom:7px;color:var(--text-2)}
.draft-head .ic{width:14px;height:14px}
.draft-head b{font-size:12.5px;font-weight:500;color:var(--text)}
.draft-head>span{margin-left:auto}
.draft-note{display:grid;gap:4px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:var(--bg-subtle)}
.draft-where{display:flex;align-items:center;gap:6px}
.draft-where b{min-width:17px;height:17px;border-radius:5px;background:var(--bg-muted);font:500 10px/17px var(--sans);text-align:center}
.draft-where em{padding:1px 5px;border-radius:4px;background:var(--bg-muted);font-style:normal;font-weight:500;color:var(--text-2)}
.draft-text{font-size:13px;color:var(--text)}
.tb-tab{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 6px;color:var(--text)}
.tb-tab .ic{width:15px;height:15px}
.tb-picked:empty{display:none}
.review-head .pressed{background:var(--bg-hover)}
.tb-seg>b.pressed{background:var(--bg-hover)}
/* A revision replaces the first attempt in place. */
.after[data-version="1"] .second,.after[data-version="2"] .first{display:none}
/* Version Management, as the app lays it out: the branch, the commit box,
   whose one button commits and then syncs, and what is staged on the left;
   the version history on the right. Each pane has its own toolbar row. */
.scene .app-body.vm{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.app-git,.app-history{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--bg);font:13px/1.4 var(--sans);color:var(--text-2);user-select:none;-webkit-user-select:none}
.app-history{border-left:1px solid var(--line)}
.app-git code,.app-history code{padding:0;border-radius:0;background:none;font:11.5px var(--mono);white-space:nowrap}
.vm-tb{display:flex;flex:none;align-items:center;gap:6px;height:46px;padding:0 8px;border-bottom:1px solid var(--line);white-space:nowrap}
.app-git .vm-tb{padding-left:82px}
.vm-tb .m-menu{display:none}
.vm-tb .tb-seg{font-weight:500}
.git-branch{display:inline-flex;align-items:center;gap:5px;min-width:0;color:var(--text-2)}
.git-branch .ic{width:14px;height:14px;color:var(--text-3)}
.git-branch code{color:var(--text)}
.git-ahead{padding:0 6px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font:500 11.5px/18px var(--sans)}
.git-pushed{display:flex;align-items:center;gap:7px;margin:10px 10px 0;padding:7px 10px;border-radius:6px;background:var(--green-soft);font-size:12.5px;color:var(--green);animation:chat-in .25s ease-out}
.git-pushed .ic{width:14px;height:14px}
.git-box{margin:10px 10px 6px;padding:9px 6px 6px 10px;border:1px solid var(--line);border-radius:8px}
.git-message{display:flex;min-height:36px;padding-right:4px}
.git-typed{overflow:hidden;color:var(--text);white-space:nowrap;text-overflow:ellipsis}
.git-hint{overflow:hidden;color:var(--text-3);white-space:nowrap;text-overflow:ellipsis}
.git-message.filled .git-hint{display:none}
.git-message.busy .git-hint{animation:busy 1s ease-in-out infinite}
.git-bar{display:flex;align-items:center;gap:6px}
.git-spark{display:grid;flex:none;place-items:center;width:28px;height:28px;border-radius:5px;color:var(--text-2);transition:background-color .1s}
.git-spark.pressed{background:var(--bg-hover)}
.git-split{display:flex;margin-left:auto;border-radius:5px;background:var(--button);color:#fff;transition:background-color .2s,color .2s}
.git-commit{display:flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-right:1px solid rgb(255 255 255/.25);font-weight:500;transition:background-color .1s}
.git-commit .ic,.git-more .ic{width:14px;height:14px}
.git-commit em{font-style:normal;opacity:.85}
.git-commit.pressed{background:var(--button-hover);border-radius:5px 0 0 5px}
.git-more{display:grid;place-items:center;width:28px}
.git-commit>span{display:none;align-items:center;gap:6px}
.scene[data-step=staged] .git-to-commit,.scene[data-step=committed] .git-to-sync,.scene[data-step=pushed] .git-synced{display:flex}
/* Commit waits for a message; once synced there is nothing left to do. */
.scene[data-step=staged] .git-message:not(.filled)~.git-bar .git-split,.scene[data-step=pushed] .git-split{background:var(--bg-active);color:var(--text-3)}
.scene[data-step=staged] .git-message:not(.filled)~.git-bar .git-commit,.scene[data-step=pushed] .git-commit{border-color:var(--line-strong)}
.git-staged{margin:4px 6px 0}
.git-group{display:flex;align-items:center;gap:6px;height:30px;padding:0 6px;font-weight:500;color:var(--text)}
.git-group .ic{width:12px;height:12px;color:var(--text-3)}
.git-group b{padding:0 6px;border-radius:999px;background:var(--bg-muted);font:500 11px/18px var(--sans);color:var(--text-2)}
.git-file{display:flex;align-items:center;gap:7px;height:32px;padding:0 8px 0 22px;border-radius:7px;background:var(--accent-soft);color:var(--accent)}
.git-file .ic{width:14px;height:14px}
.git-file b{margin-left:auto;font:500 12px var(--mono)}
.git-clean{display:flex;align-items:center;gap:7px;margin:8px 16px 0;font-size:12.5px;color:var(--text-3)}
.git-clean .ic{width:14px;height:14px}
.git-log{display:grid;gap:2px;margin:0;padding:8px 6px;list-style:none}
.git-log li{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:7px 8px;border-radius:8px}
.git-log li>i{flex:none;margin-top:1px;color:var(--text-3)}
.git-log li>i .ic{width:14px;height:14px}
.git-log li>span{display:grid;flex:1;gap:6px;min-width:0;padding-top:3px}
.git-log b,.git-log small{display:block;height:7px;border-radius:4px;background:var(--line-strong)}
.git-log small{height:6px;background:var(--line)}
.git-log code{flex:none;padding-top:2px;color:var(--text-3)}
.git-msg{min-width:0;margin-top:-3px;overflow:hidden;font-weight:500;color:var(--text);white-space:nowrap;text-overflow:ellipsis}
.git-new{background:var(--accent-soft)}
.scene[data-step=staged] :is(.git-new,.git-clean):not(.folding),.scene[data-step]:not([data-step=staged]) .git-staged:not(.folding),.scene[data-step]:not([data-step=committed]) .git-ahead,.scene[data-step]:not([data-step=pushed]) .git-pushed{display:none}

/* The closing download section echoes the hero's backdrop. */
.get{padding:112px 0;background:var(--backdrop)}
.get-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:72px;align-items:center}
.get-text>p{margin-top:18px;font-size:17px;color:var(--text-2);text-wrap:pretty}
.get .actions{justify-content:flex-start;margin-top:28px}
.get-links{display:flex;flex-wrap:wrap;gap:6px 22px;margin-top:22px;font-size:14.5px}
.terminal{overflow:hidden;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--bg);box-shadow:var(--float)}
.terminal-bar{display:flex;align-items:center;gap:12px;height:44px;padding:0 6px 0 16px;border-bottom:1px solid var(--line);font-size:13px;color:var(--text-3)}
.terminal-title{flex:1}
.lights{display:flex;gap:7px}
.lights i{width:11px;height:11px;border-radius:50%;background:#ff5f57}
.lights i:nth-child(2){background:#febc2e}
.lights i:nth-child(3){background:#28c840}
.terminal pre{padding:22px 22px 24px;overflow-x:auto;font-size:15.5px;line-height:1.8;color:var(--text)}
.output{color:var(--text-3)}

/* Footer */
.footer{padding:32px 0 calc(36px + env(safe-area-inset-bottom))}
.footer-inner{display:flex;align-items:center;gap:28px;font-size:14px;color:var(--text-3)}
.footer .brand{font-size:18px}
.footer .brand-mark{width:22px;height:22px}
.footer nav{display:flex;flex-wrap:wrap;gap:4px 22px;flex:1}
.footer nav a{color:var(--text-2)}
.footer nav button{color:var(--text-2)}
.footer nav button:hover{text-decoration:underline;text-underline-offset:3px}
/* The bilingual notice is readable without JavaScript or any analytics. */
.privacy-nav{display:flex;gap:20px;margin-left:auto;font-size:14px}
.privacy-page{width:min(100% - 32px,800px);margin-inline:auto;padding:48px 0 64px}
.privacy-heading{padding-bottom:32px;border-bottom:1px solid var(--line)}
.privacy-page h1{font-size:clamp(32px,5vw,48px);line-height:1.2;margin-bottom:20px}
.privacy-page h2{font-size:30px;line-height:1.3;margin-bottom:24px}
.privacy-page h3{font:600 18px/1.5 var(--sans);margin-bottom:10px;color:var(--text)}
.privacy-page p,.privacy-page li{font-size:16px;line-height:1.8;color:var(--text-2);overflow-wrap:anywhere}
.privacy-page p+p,.privacy-page ul+p{margin-top:12px}
.privacy-page .privacy-date{font-size:14px;color:var(--text-3);margin-bottom:14px}
.privacy-page article{padding-top:40px;scroll-margin-top:16px}
.privacy-page article+article{margin-top:48px;border-top:1px solid var(--line)}
.privacy-page section+section{margin-top:32px}
.privacy-page ul{padding-left:24px;margin-top:12px}
.privacy-page li+li{margin-top:6px}

@media(max-width:960px){
  .eras{grid-template-columns:minmax(0,1fr);max-width:560px;margin-inline:auto}
  .era.ours{grid-template-columns:minmax(0,1fr);margin-top:12px}
  .era.ours .era-art{height:236px;padding:24px 20px 0;border-right:0;border-bottom:3px solid var(--accent)}
  .era.ours .era-text{padding:22px 24px 26px}
  .era.ours h3{font-size:26px}
  .era.ours .era-text>p:last-child{font-size:15px}
  .feature,.feature.flip{grid-template-columns:minmax(0,1fr);gap:36px}
  .feature.flip .feature-text{order:0}
  .feature+.feature{margin-top:88px}
  .feature-text{max-width:600px}
  .scene{max-width:640px}
  .get-inner{grid-template-columns:minmax(0,1fr);gap:40px}
}
/* Universe stays beside the brand; the footer also links to the blog. */
@media(max-width:720px){
  .nav>a:not(.topbar-universe){display:none}
  .topbar-inner{gap:10px;height:60px}
  .hero-screen{min-height:calc(100svh - 60px);padding:24px 0 76px}
  .hero .app-window{margin-top:24px}
  .hero-screen .actions{margin-top:24px}
  .scroll-cue{bottom:20px}
  .hero h1 br{display:none}
  .actions{flex-direction:column;align-items:stretch;width:100%;max-width:360px}
  /* A phone shows the phone app: no window controls, the frosted
     navigation bar over a one-row toolbar, one pane at a time, and the
     capsules floating over the page. */
  .app-window{border-radius:22px}
  .app-bar{display:none}
  .app-top{display:block}
  .m-nav{display:flex;align-items:center;gap:4px;height:48px;padding:0 6px 0 2px;overflow:hidden;border-bottom:1px solid var(--line);font:500 14px/1 var(--sans);color:var(--text-2);white-space:nowrap}
  .m-nav .tb-seg{flex:0 1 auto;min-width:0}
  .m-nav .tb-seg>b{min-width:0}
  .m-nav .tb-seg>b>[lang]{min-width:0;overflow:hidden;text-overflow:ellipsis}
  .m-nav .tb-icon{width:40px;height:40px;border-radius:10px}
  .m-nav .tb-icon .ic{width:20px;height:20px}
  .m-nav .tb-run .ic{width:22px;height:22px}
  .m-nav .tb-seg{border-radius:11px}
  .m-nav .tb-seg>b{height:30px;padding:0 11px;border-radius:8px}
  .m-nav .tb-seg>b .ic{width:16px;height:16px}
  .app-tb{height:44px;padding:0 8px}
  :is(.app-tb.side,.tb-sidebar,.app-tb .tb-run,.app-tb .tb-label){display:none}
  .app-tb .tb-seg>b{padding:0 8px}
  .app-body{grid-template-columns:minmax(0,1fr)}
  .app-rail{display:none}
  .app-pdf{padding:14px 12px 0}
  .hero .app-chat{display:none}
  /* Room under the change for the capsule floating over the page. */
  .hero .sheet-lines.fill{min-height:92px}
  .m-decide,.m-tools{position:absolute;left:50%;bottom:12px;z-index:2;display:flex;align-items:center;gap:1px;max-width:calc(100% - 16px);padding:4px 6px;border:.5px solid color-mix(in srgb,var(--line-strong) 82%,transparent);border-radius:999px;background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:0 4px 14px rgb(0 0 0/.08),0 12px 32px rgb(0 0 0/.16);color:var(--text-2);transform:translateX(-50%);white-space:nowrap}
  .m-tools{height:46px;overflow:hidden}
  .m-tools>i{width:31px;height:36px;border-radius:999px}
  .m-tools hr{flex:none;width:1px;height:18px;margin:0 2px;border:0;background:var(--line)}
  .m-decide{gap:6px;height:54px;padding:6px 8px}
  .m-decide>i{display:grid;flex:none;place-items:center;width:20px;color:var(--text-3)}
  .m-decide>span{margin:0 4px;font:500 15px var(--sans);color:var(--text);font-variant-numeric:tabular-nums}
  .m-decide>:is(button,a,.m-accept,.m-reject,.m-talk){display:grid;flex:none;place-items:center;width:50px;height:40px;border-radius:999px;transition:transform .12s}
  .m-decide>.pressed{transform:scale(.9)}
  .m-decide .ic{width:20px;height:20px}
  .m-accept{background:var(--green-soft);color:var(--accept)}
  .m-reject{background:var(--red-soft);color:var(--reject)}
  .m-talk{background:var(--accent-soft);color:var(--comment)}
  .hero .app-window:has(.review-change[data-state=pending]) .m-tools,.hero .app-window:not(:has(.review-change[data-state=pending])) .m-decide{display:none}
  .review-head :is(.review-step,.review-where,.review-accept,.review-reject,.review-comment){display:none}
  .review-number{margin-right:auto;padding-left:8px;font-size:15px}
  .review-page{padding-top:12px;font-size:15px}
  .review-head{flex-wrap:wrap;padding-left:12px;font-size:13px}
  .sheet-lines,.sheet-head{padding:0 16px}
  .sheet-eq{padding:4px 40px}
  .sheet-eq em{right:12px}
  .sheet-lines:first-child{margin-bottom:14px}
  .review-change+.sheet-lines{margin-top:16px}
  .sheet-lines.fill{min-height:36px}
  .fig-flow{gap:10px}
  .fig-page{font-size:14px}
  .fig-op>span{font-size:23px}
  .review-side{padding:22px 16px 12px}
  .review-label{font-size:10.5px}
  .install{justify-content:space-between}
  .download-button{width:100%}
  .download-list{width:100%}
  .install code{font-size:15px}
  .demo{margin-top:44px}
  .logos{padding-top:52px}
  .agent-grid{gap:8px}
  .agent-grid li{height:42px;padding:0 14px 0 5px;font-size:14px}
  .agent-grid .agent i{width:32px;height:32px}
  .agent-grid .agent i::before{width:18px;height:18px}
  .section{padding:80px 0}
  .section-head{margin-bottom:40px}
  .features{padding-top:8px}
  .feature h3{font-size:28px}
  /* The feature windows show one pane at a time, as the phone app does: the
     PDF, or the chat once the navigation bar switches to it. Version
     Management stacks its two panes. */
  .scene .app-body{grid-template-columns:minmax(0,1fr);grid-template-rows:470px;height:auto}
  .scene .app-body>:is(.app-pdf,.app-chat){grid-area:1/1;min-height:0;transition:opacity .25s,visibility .25s}
  .scene:not([data-tab=side]) .app-chat,.scene[data-tab=side] .app-pdf{visibility:hidden;opacity:0}
  /* The chat has no PDF toolbar; its pane takes that row instead. */
  .scene[data-tab=side] :is(.app-tb,.demo-box){display:none}
  .scene[data-tab=side] .app-body{grid-template-rows:514px}
  .scene .app-chat{overflow:hidden;border-left:0}
  .scene .app-pdf{padding-top:16px}
  .scene:not([data-tab=side]) .seg-pdf,.scene[data-tab=side] .seg-side{background:var(--bg);color:var(--text);box-shadow:0 1px 2px rgb(0 0 0/.06),0 0 0 1px var(--line)}
  .scene:not([data-tab=side]) .seg-pdf .ic,.scene[data-tab=side] .seg-side .ic{color:var(--accent)}
  .scene .m-tools,.scene .m-decide{display:flex}
  .scene .app-body.vm{grid-template-columns:minmax(0,1fr);grid-template-rows:252px 250px}
  .scene .review-head>i:is(.review-accept,.review-reject,.review-comment){display:none}
  .scene .app-history{border-left:0;border-top:1px solid var(--line)}
  .app-git .vm-tb{padding-left:2px}
  .vm-tb .tb-sidebar{display:none}
  .vm-tb .m-menu{display:grid;width:40px;height:40px}
  .vm-tb .m-menu .ic{width:20px;height:20px}
  .scene .review-side{padding:22px 18px 12px}
  .scene .sheet-lines,.scene .sheet-head{padding:0 16px}
  .scene .scene-text{margin-inline:16px}
  .scene .scene-figure{margin-inline:16px;padding-inline:12px}
  .scene .scene-edited::before{left:-10px}
  .terminal pre{font-size:14px;padding:16px}
  .get{padding:80px 0}
  .footer-inner{flex-direction:column;align-items:flex-start;gap:14px}
}

/* Allow translated labels and long compounds to wrap within their cards. */
.era{overflow-wrap:anywhere}
.hero h1{overflow-wrap:anywhere}
.lang-list{max-height:calc(100dvh - 90px);overflow-y:auto;z-index:30}
.lang-list>a:hover{text-decoration:none}
.no-js-languages{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px;padding:16px}

/* Respect Japanese line-start restrictions in the display headline. */
html[lang=ja] .hero h1{overflow-wrap:normal;line-break:strict}

.privacy-controls{margin-top:24px;padding:20px;border:1px solid var(--line);border-radius:12px}
.privacy-controls .statistics-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.privacy-controls[hidden],.privacy-controls [hidden]{display:none}

@media(max-width:1120px){
  .sync-panes{grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);gap:8px;padding:28px 14px}
  .sync-panel-head{gap:6px;padding:0 10px;font-size:12px}
  .sync-paper{padding:18px 14px}
  .sync-source{padding-inline:8px}
  .sync-source code{font-size:9px}
  .sync-arrow{width:34px}
}
@media(max-width:720px){
  .sync-panes{grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);gap:4px;padding:24px 12px}
  .sync-panel{height:330px}
  .sync-panel-head{gap:6px;padding:0 9px;font-size:11px}
  .sync-state{font-size:9px}
  .sync-paper{padding:18px 12px}
  .sync-source{padding-inline:6px}
  .sync-source p{gap:5px}
  .sync-source code{font-size:8px}
  .sync-arrow{width:32px}
  .coauthor-cursor b{font-size:8px}
  .coauthor-cursor.grace b{right:4px;left:auto}
  .universe-head>span{display:none}
  .universe-scene{height:620px}
  .universe-tools{padding-inline:10px}
  .template-grid{gap:8px;padding:10px 10px 54px}
  .template-preview{height:82px;padding:10px}
  .template-meta{padding:8px}
  .template-open .ic{display:none}
}
@media(max-width:560px){
  .sync-scene{height:520px}
  .sync-panes{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);gap:8px;padding:16px 14px}
  .sync-panel{height:auto;min-height:0}
  .sync-panel-head{height:38px;padding:0 12px;font-size:12px}
  .sync-state{font-size:10px}
  .sync-paper{padding:12px 14px}
  .sync-paper .sync-bars:last-of-type{display:none}
  .sync-paper p{min-height:42px;margin:8px 0 0}
  .sync-source{padding:10px 12px}
  .sync-source p{height:32px;gap:8px}
  .sync-source code{font-size:10px}
  .sync-bridge{display:flex;align-items:center;justify-content:center;gap:10px}
  .sync-arrow{width:24px;transform:rotate(90deg)}
  .sync-left{transform:rotate(-90deg)}
}
/* Narrow headers keep their room for the demo and GitHub; Discord stays in the footer. */
@media(max-width:720px){.topbar .discord-link{display:none}}
@media(max-width:360px){
  .m-tools>i{width:27px}
  .m-decide{gap:4px}
  .m-decide>:is(button,a,.m-accept,.m-reject,.m-talk){width:44px}
  .sync-panel-head{padding-inline:7px}
  .sync-state,.sync-avatars{display:none}
}
@media(max-width:600px){
  .topbar-inner{gap:8px}
  .topbar .brand-name{display:none}
  .topbar-actions{gap:2px}
  .topbar-universe{min-height:34px;gap:5px;padding:5px 10px 5px 8px;font-size:13px}
  .universe-icon{width:22px;height:22px}
  .topbar .icon-button{width:30px;height:32px}
  .topbar .github-link:has(.github-count){width:auto;padding:0 8px 0 6px;gap:4px}
  .topbar-demo{justify-content:center;width:30px;min-height:34px;margin-right:2px}
  .topbar-demo .demo-icon{display:block}
  .topbar-demo>[lang]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media(max-width:360px){
  .topbar-inner{width:calc(100% - 16px);gap:4px}
  .topbar .brand{flex:none}
  .topbar-universe,.topbar .github-link:has(.github-count){padding-inline:4px}
}

/* CSP-clean dimension utilities replacing inline style="width/height:..." */
.h-30p{height:30%}
.h-40p{height:40%}
.h-44p{height:44%}
.h-62p{height:62%}
.h-86p{height:86%}
.w-100p{width:100%}
.w-22px{width:22px}
.w-26px{width:26px}
.w-28px{width:28px}
.w-30px{width:30px}
.w-34p{width:34%}
.w-34px{width:34px}
.w-36p{width:36%}
.w-40p{width:40%}
.w-40px{width:40px}
.w-42p{width:42%}
.w-44p{width:44%}
.w-44px{width:44px}
.w-46p{width:46%}
.w-48px{width:48px}
.w-50p{width:50%}
.w-56p{width:56%}
.w-56px{width:56px}
.w-58p{width:58%}
.w-62p{width:62%}
.w-64p{width:64%}
.w-64px{width:64px}
.w-66p{width:66%}
.w-68p{width:68%}
.w-70p{width:70%}
.w-72p{width:72%}
.w-74p{width:74%}
.w-82p{width:82%}
.w-86p{width:86%}
.w-94p{width:94%}
.topbar-cta{margin-right:4px}
.download-button.secondary{border-color:var(--line-strong)}

/* Elevated Editorial Side-by-Side Hero (Claude.ai × Linear × Papilot) */
.hero{
  background:
    radial-gradient(ellipse 68% 58% at 78% 36%, rgb(99 102 241 / .10), transparent 70%),
    radial-gradient(ellipse 52% 48% at 14% 18%, rgb(37 99 235 / .06), transparent 68%),
    var(--bg);
}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .hero{
  background:
    radial-gradient(ellipse 66% 56% at 76% 40%, rgb(91 140 255 / .14), transparent 72%),
    radial-gradient(ellipse 50% 48% at 88% 72%, rgb(153 100 255 / .11), transparent 70%),
    var(--bg);
}}
:root[data-theme=dark] .hero{
  background:
    radial-gradient(ellipse 66% 56% at 76% 40%, rgb(91 140 255 / .14), transparent 72%),
    radial-gradient(ellipse 50% 48% at 88% 72%, rgb(153 100 255 / .11), transparent 70%),
    var(--bg);
}

.hero-split-wrap{width:min(100% - 40px,1320px);display:flex;flex-direction:column;justify-content:center;padding:30px 0 70px}
.hero-split{display:grid;grid-template-columns:420px minmax(0,1fr);gap:56px;align-items:center;width:100%}

.hero-auth-col{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:18px;min-width:0}

.hero-pill-badge{display:inline-flex;align-items:center;gap:8px;padding:5px 13px 5px 10px;border-radius:999px;border:1px solid var(--line);background:color-mix(in srgb,var(--bg) 82%,transparent);font-size:12.5px;font-weight:500;color:var(--text);text-decoration:none;transition:border-color .15s,background-color .15s}
.hero-pill-badge:hover{border-color:var(--accent-line);background:var(--accent-soft);text-decoration:none}
.hero-pill-dot{width:7px;height:7px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#8953ee)}
.hero-pill-sep{color:var(--text-3)}
.hero-pill-muted{color:var(--text-2);font-weight:400}

.hero-auth-col h1{font-size:clamp(38px,3.8vw,54px);line-height:1.06;letter-spacing:-.025em;text-align:left;margin-top:2px}
.hero-accent-word{font-style:italic;background:linear-gradient(110deg,#2563eb 0%,#5f55e3 58%,#8953ee 100%);-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.06em}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .hero-accent-word{
  background:linear-gradient(110deg,#6da0ff 0%,#9884ff 55%,#c4a5ff 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
}}
:root[data-theme=dark] .hero-accent-word{
  background:linear-gradient(110deg,#6da0ff 0%,#9884ff 55%,#c4a5ff 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
}

.hero-lead{font-size:16px;line-height:1.58;color:var(--text-2);max-width:35ch}

.hero-auth-card{width:100%;max-width:396px;display:flex;flex-direction:column;gap:13px;margin-top:6px;padding:22px;border-radius:20px;border:1px solid var(--line);background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);text-align:left}
.hero-auth-card [hidden]{display:none!important}
.hero-auth-banner{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-radius:10px;border:1px solid var(--accent-line);background:var(--accent-soft);color:var(--text);font-size:13px;line-height:1.4}
.hero-auth-banner.is-error{border-color:color-mix(in srgb,var(--red) 30%,transparent);background:color-mix(in srgb,var(--red) 10%,var(--bg));color:var(--red)}
.hero-auth-banner-close{flex:none;width:22px;height:22px;border-radius:999px;font-size:16px;line-height:1;color:currentColor;opacity:.7}
.hero-auth-banner-close:hover{opacity:1;background:rgb(128 128 128/.14)}
.hero-auth-stack{display:flex;flex-direction:column;gap:11px}
.hero-auth-providers{display:flex;flex-direction:column;gap:8px}
.hero-oauth-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:8px}
.hero-oauth-grid:has(a[hidden]){grid-template-columns:1fr}
.hero-provider-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;height:42px;padding:0 14px;border-radius:999px;border:1px solid var(--line-strong);background:var(--bg);color:var(--text);font-size:13.5px;font-weight:500;white-space:nowrap;text-decoration:none;transition:background-color .14s,border-color .14s}
.hero-provider-btn:hover{background:var(--bg-subtle);border-color:var(--line-hover);text-decoration:none}
.hero-provider-btn:disabled{opacity:.55;cursor:not-allowed}
.hero-auth-divider{display:flex;align-items:center;gap:12px;color:var(--text-3);font-size:12px}
.hero-auth-divider::before,.hero-auth-divider::after{content:"";flex:1;height:1px;background:var(--line)}
.hero-auth-form{display:flex;flex-direction:column;gap:9px}
.hero-field input{width:100%;height:42px;padding:0 15px;border-radius:12px;border:1px solid var(--line-strong);background:var(--bg);color:var(--text);font:14px/1.4 var(--sans);transition:border-color .14s,box-shadow .14s}
.hero-field input:hover{border-color:var(--line-hover)}
.hero-field input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.hero-auth-submit{width:100%;height:42px;font-size:14px;font-weight:500}
.hero-auth-submit:disabled{opacity:.6;cursor:not-allowed}
.hero-otp-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-radius:10px;border:1px solid var(--line);background:var(--bg-subtle);font-size:13px;color:var(--text-2)}
.hero-otp-head strong{color:var(--text);font-weight:600}
.hero-otp-input{height:44px!important;font-family:var(--mono)!important;font-size:20px!important;font-weight:600;letter-spacing:.34em;text-align:center}
.hero-dev-chip{display:inline-flex;align-items:center;justify-content:space-between;width:100%;padding:8px 12px;border-radius:10px;border:1px dashed var(--accent-line);background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:500}
.hero-auth-switch{display:flex;align-items:center;justify-content:center;gap:5px;font-size:13px;color:var(--text-2);margin-top:1px}
.hero-link-btn{color:var(--text);font-weight:600;font-size:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line-hover)}
.hero-link-btn:hover{color:var(--accent);text-decoration-color:var(--accent)}

.hero-oss-link{display:inline-flex;align-items:center;gap:6px;margin-top:2px;font-size:13px;color:var(--text-2);text-decoration:none;transition:color .14s}
.hero-oss-link strong{font-weight:500;color:var(--text)}
.hero-oss-link svg{flex:none;transition:transform .16s ease}
.hero-oss-link:hover{color:var(--accent);text-decoration:none}
.hero-oss-link:hover strong{color:var(--accent)}
.hero-oss-link:hover svg{transform:translateX(3px)}

/* Full-Height Bleed-Right Atmospheric Showcase Canvas */
.hero-stage-col{
  position:relative;
  min-width:0;
  overflow:hidden;
  padding:18px 20px 22px;
  border-radius:26px;
  border:1px solid color-mix(in srgb,var(--accent) 18%,var(--line));
  background:
    radial-gradient(ellipse 80% 70% at 18% 12%, rgb(37 99 235 / .12), transparent 64%),
    radial-gradient(ellipse 74% 66% at 88% 88%, rgb(137 83 238 / .13), transparent 66%),
    radial-gradient(circle at 1px 1px, rgb(15 23 42 / .06) 1px, transparent 0) 0 0 / 22px 22px,
    #f6f8fe;
}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .hero-stage-col{
  border-color:rgb(137 156 255 / .18);
  background:
    radial-gradient(ellipse 80% 70% at 18% 12%, rgb(59 130 246 / .20), transparent 64%),
    radial-gradient(ellipse 74% 66% at 88% 88%, rgb(153 100 255 / .18), transparent 66%),
    radial-gradient(circle at 1px 1px, rgb(255 255 255 / .05) 1px, transparent 0) 0 0 / 22px 22px,
    #141722;
}}
:root[data-theme=dark] .hero-stage-col{
  border-color:rgb(137 156 255 / .18);
  background:
    radial-gradient(ellipse 80% 70% at 18% 12%, rgb(59 130 246 / .20), transparent 64%),
    radial-gradient(ellipse 74% 66% at 88% 88%, rgb(153 100 255 / .18), transparent 66%),
    radial-gradient(circle at 1px 1px, rgb(255 255 255 / .05) 1px, transparent 0) 0 0 / 22px 22px,
    #141722;
}

.hero-stage-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.hero-stage-chip{display:inline-flex;align-items:center;gap:8px;padding:4px 12px;border-radius:999px;border:1px solid color-mix(in srgb,var(--line) 85%,transparent);background:color-mix(in srgb,var(--bg) 78%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);font-size:12px;font-weight:500;color:var(--text-2)}
.hero-stage-live{display:block;width:6px;height:6px;border-radius:50%;background:var(--green)}

.hero-stage-col .app-window{
  --side:248px;
  width:100%;
  margin-top:0;
  border-radius:14px;
  box-shadow:0 1px 2px rgb(15 23 42/.06),0 24px 48px -24px rgb(37 99 235/.18);
}

@media(max-width:1120px){
  .hero-split{grid-template-columns:1fr;gap:32px;max-width:780px;margin-inline:auto}
  .hero-auth-col{max-width:440px;margin-inline:auto;align-items:center;text-align:center}
  .hero-auth-col h1{text-align:center}
  .hero-auth-card{width:100%}
  .hero-stage-col{padding:16px}
  .hero-stage-col .app-window{width:100%;border-radius:12px;border-right:1px solid var(--line-strong);--side:232px}
}
