/* WondrBot's site (#101): the app's palette (src/theme/tokens.ts) and fonts,
   self-hosted. One stylesheet, served under a content hash. Links and buttons
   use darker steps of the accent than the app's, so small text passes AA. */

@font-face { font-family: 'Figtree'; font-weight: 400; font-display: swap; src: url(fonts/Figtree-Regular.4e2e9876c4.ttf) format('truetype'); }
@font-face { font-family: 'Figtree'; font-weight: 600; font-display: swap; src: url(fonts/Figtree-SemiBold.1b76aae525.ttf) format('truetype'); }
@font-face { font-family: 'Caprasimo'; font-weight: 400; font-display: swap; src: url(fonts/Caprasimo-Regular.54565d93f2.ttf) format('truetype'); }

:root {
  color-scheme: light dark;
  --bg: #f5ead8;
  --surface: #ebddc5;
  --surface-2: #f9f4ed;
  --ink: #201e1d;
  --muted: #5c5751;
  --line: rgba(32, 30, 29, 0.16);
  --accent: #c67139;
  --accent-soft: #ffc6a5;
  --accent2: #7a8a5e;
  --accent2-soft: #ccdbb2;
  --link: #8c491a;
  --btn: #9a4f1c;
  --btn-ink: #f5ead8;
  --focus: #3b5bdb;
  --frame: #201e1d;
  --screen: #f5ead8;
  /* A "Hey WondrBot, …" bubble's fill: unlike the page and its bands behind it (owner, 26 November 2026) */
  --bubble: #ffffff;
  /* The footer's own ground, unlike the page and its panels (owner, 27 November 2026) */
  --foot: #e2cfae;
}

/* Dark when the system is dark and nothing else was chosen, or whenever dark was chosen ("make this page a lot darker"). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #201e1d;
    --surface: #2e2b25;
    --surface-2: #262420;
    --ink: #f5ead8;
    --muted: #b9b1a4;
    --line: rgba(245, 234, 216, 0.16);
    --accent: #d67f48;
    --accent-soft: #643312;
    --accent2: #8fa073;
    --accent2-soft: #3d472b;
    --link: #f6a06b;
    --btn: #e8925a;
    --btn-ink: #201e1d;
    --focus: #9db4ff;
    --frame: #57514a;
    --screen: #161514;
    --bubble: #46403a;
    --foot: #161514;
  }
}
:root[data-theme='dark'] {
  --bg: #201e1d;
  --surface: #2e2b25;
  --surface-2: #262420;
  --ink: #f5ead8;
  --muted: #b9b1a4;
  --line: rgba(245, 234, 216, 0.16);
  --accent: #d67f48;
  --accent-soft: #643312;
  --accent2: #8fa073;
  --accent2-soft: #3d472b;
  --link: #f6a06b;
  --btn: #e8925a;
  --btn-ink: #201e1d;
  --focus: #9db4ff;
  --frame: #57514a;
  --screen: #161514;
  --bubble: #46403a;
  --foot: #161514;
}
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: Caprasimo, Georgia, serif; font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin: 0 0 0.35em; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 2; }
/* read by assistive technology, not shown */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* the home heading's morph: every line in one cell, so the heading keeps the height of its tallest line */
.morph { display: grid; }
.morph > span { grid-area: 1 / 1; opacity: 0; filter: blur(6px); transform: translateY(0.12em); transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease; }
.morph > span.on { opacity: 1; filter: none; transform: none; }
/* the heading and its pause button, side by side */
.morph-row { display: flex; align-items: flex-start; gap: 12px; }
.morph-row h1 { flex: 1; min-width: 0; }
.morph-toggle { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-top: 0.35em; padding: 0; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.morph-toggle:hover { color: var(--ink); border-color: var(--muted); }
.morph-toggle svg { width: 12px; height: 12px; fill: currentColor; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* header and footer */
.top { border-bottom: 1px solid var(--line); }
/* The header sticks to the top, and slips away while you read on down (restyle.js), back as soon as you scroll up or tab
   into it (owner, 26 November 2026). An anchor's target stops below it. */
.top { position: sticky; top: 0; z-index: 15; background: var(--bg); }
.top.away { transform: translateY(-100%); }
.top.at-once { transition: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .top { transition: transform 0.2s ease; }
}
:where([id]) { scroll-margin-top: 96px; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: Caprasimo, Georgia, serif; font-size: 1.7rem; color: var(--accent); text-decoration: none; line-height: 1; display: inline-flex; align-items: center; gap: 0.22em; }
/* The app's robot after the name, as tall as its letters (owner, 26 November 2026). */
.brand-bot { width: 1.05em; height: 1.05em; flex: none; fill: var(--accent); }
.brand-bot .bot-antenna { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.brand-bot .bot-face { fill: #201e1d; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-left: auto; }
@media (max-width: 639px) {
  .top .app { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; }
}
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.foot { background: var(--foot); border-top: 1px solid var(--line); margin-top: 72px; padding: 36px 0 48px; color: var(--muted); font-size: 0.95rem; }
.foot .cols { display: grid; gap: 28px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .foot .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foot h2 { font-family: Figtree, system-ui, sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--ink); margin: 0 0 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 4px 0; }
.foot a { color: var(--muted); }
/* Who makes it, and what the site doesn't do: in italics and smaller (owner, 26 November 2026), in the muted ink, AA still. */
.foot .fine { margin-top: 28px; font-style: italic; font-size: 0.85rem; }
.foot .copyright { margin: 8px 0 0; font-size: 0.8rem; }
/* The language switcher (#93): each language named in itself, on one wrapping line. */
.foot .foot-langs { margin-top: 28px; }
.foot .foot-langs ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot .foot-langs li { margin: 0; }
.foot .foot-langs a[aria-current='page'] { color: var(--ink); font-weight: 600; text-decoration: none; }

/* buttons */
.btn { display: inline-block; background: var(--btn); color: var(--btn-ink); text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--btn); line-height: 1.2; }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.small { padding: 7px 16px; font-size: 0.95rem; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 24px 0 8px; }
/* "[No credit card needed]": an aside to the button, in brackets and small (owner, 26 November 2026) */
.no-card { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.01em; }
.note { font-size: 0.95rem; color: var(--muted); }

/* sections */
main { display: block; }
main h1 { margin-top: 44px; }
main .hero h1 { margin-top: 0; }
.section { padding: 56px 0 0; }
.narrow > .section { padding-top: 32px; }
.hero { display: grid; gap: 32px; align-items: center; padding-top: 48px; }
/* Side by side on a wide window, as long as the hero itself has the room (container "hero"). The window alone let the
   chat beside the page take 372px of the room, and the two columns could not shrink below the text's longest word
   (larger with "increase the font size") plus the 250px phone in front, so the hero grew wider than the page and
   pushed it sideways. 40em of room fits both with a margin, and grows with "increase the font size"; without the chat
   the room is always more than that, so the layout is the same as before. */
.hero-room { container: hero / inline-size; }
.hero-art { aspect-ratio: 600 / 480; width: 100%; }
/* the hero's screens (#101): real screenshots from the demo, framed as phones; one in front, two behind on a wide screen */
.hero-shots { position: relative; display: grid; justify-items: center; padding: 8px 0 0; }
.phone { margin: 0; width: min(62vw, 250px); border: 9px solid #1d1a16; border-radius: 34px; overflow: hidden; background: #1d1a16; box-shadow: 0 18px 40px rgba(29, 26, 22, 0.22); }
.phone img { display: block; width: 100%; height: auto; }
.phone-front { position: relative; z-index: 2; grid-area: 1 / 1; }
.phone-back { display: none; }
.shots-caption { margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); text-align: center; }
@media (min-width: 860px) { @container hero (min-width: 40em) {
  .hero { grid-template-columns: 1.05fr 0.95fr; padding-top: 72px; }
  .hero-shots { min-height: 560px; }
  .phone-front { width: 250px; }
  .phone-back { display: block; position: absolute; top: 48px; width: 200px; z-index: 1; opacity: 0.96; }
  .phone-left { left: 2%; transform: rotate(-6deg); }
  .phone-right { right: 2%; transform: rotate(6deg); }
} }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cards.wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards.wide .art { max-width: 220px; }
/* four cards: one column, then two; four only for the short ones, never three */
.cards.four { grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
/* Four across on a wide window, as long as the section has the room for them: with the chat beside the page (and the
   words larger), four columns could not shrink to fit, and pushed the page sideways (owner, 26 November 2026). */
.section:has(> .cards.four) { container: cards / inline-size; }
@media (min-width: 1000px) { @container cards (min-width: 950px) { .cards.four:not(.wide) { grid-template-columns: repeat(4, 1fr); } } }
.card { background: var(--surface); border-radius: 28px; padding: 22px; }
.card .art { display: block; width: 100%; aspect-ratio: 160 / 110; margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
/* ecosystem: a tile with the project's initials beside its name */
.cards.projects { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.project { display: flex; gap: 16px; align-items: flex-start; position: relative; }
.project h2, .project h3 { margin: 2px 0 6px; }
.project h2 a, .project h3 a { color: inherit; text-decoration: none; }
.project h2 a::after, .project h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.project:hover h2 a, .project:hover h3 a, .project h2 a:focus-visible, .project h3 a:focus-visible { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.project:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.project .host { color: var(--muted); font-size: 0.9rem; }
.tile { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; font-family: Caprasimo, Georgia, serif; font-size: 1.35rem; color: var(--ink); }
.tile.t0 { background: var(--accent-soft); }
.tile.t1 { background: var(--accent2-soft); }
.tile.t2 { background: var(--line); }
.project.featured { margin-bottom: 20px; padding: 28px; }
.project.featured .tile { width: 72px; height: 72px; font-size: 1.7rem; border-radius: 22px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
/* "Try it now" after the steps (owner, 26 November 2026): after the third on a phone, in the empty fourth cell of the
   2 × 2 grid from 560px, and centred under the row of three from 900px. Not a step: no number, no rule. */
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps .try-cell { grid-column: 1 / -1; } }
.steps li.try-cell { counter-increment: none; border-top: 0; padding-top: 0; align-self: center; justify-self: center; }
.steps li.try-cell::before { content: none; }
.steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 12px; }
.steps li::before { content: counter(step); font-family: Caprasimo, Georgia, serif; font-size: 1.6rem; color: var(--accent); display: block; }
.principles { display: grid; gap: 28px 40px; }
@media (min-width: 760px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles section { border-left: 3px solid var(--accent2); padding-left: 16px; }
.band { background: var(--surface); border-radius: 32px; padding: 32px 24px; margin-top: 56px; }
.band h2 { margin-bottom: 0.4em; }

/* about: facts and questions */
dl.facts { display: grid; grid-template-columns: minmax(120px, 13em) 1fr; margin: 0; border-top: 1px solid var(--line); }
dl.facts dt, dl.facts dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
dl.facts dt { font-weight: 600; padding-right: 16px; }
@media (max-width: 520px) { dl.facts { grid-template-columns: 1fr; } dl.facts dt { border-bottom: 0; padding-bottom: 0; } }
.faq section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.faq p { margin-bottom: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }

/* pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 28px; }
.plan { background: var(--surface); border-radius: 28px; padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; }
.plan h2 { font-size: 1.6rem; margin: 0; }
.plan .price { font-family: Caprasimo, Georgia, serif; font-size: 2.2rem; line-height: 1.1; margin: 4px 0; }
.plan .price small { font-family: Figtree, system-ui, sans-serif; font-size: 1rem; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 8px 0 0; }
.plan li { padding: 7px 0; border-top: 1px solid var(--line); }
.rates { border-collapse: collapse; margin: 8px 0 16px; }
.rates caption { caption-side: top; text-align: left; padding-bottom: 6px; }
.rates th, .rates td { text-align: left; padding: 6px 18px 6px 0; border-bottom: 1px solid var(--line); }
.pill { display: inline-block; font-size: 0.85rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent2-soft); color: var(--ink); }

/* the blog (#208): the list, a post, and what its Markdown may become */
.posts { display: grid; gap: 28px; }
.post-card { display: grid; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .post-card:has(> img) { grid-template-columns: 200px 1fr; align-items: start; } }
.post-card img { border-radius: 18px; width: 100%; object-fit: cover; aspect-ratio: 1200 / 630; }
.post-card h2 { font-size: clamp(1.35rem, 2.8vw, 1.7rem); margin-bottom: 0.25em; }
.post-card h2 a { color: inherit; text-decoration-color: var(--accent); }
.post-card p:last-child { margin-bottom: 0; }
.meta { color: var(--muted); font-size: 0.95rem; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.langs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.langs a:hover { border-color: var(--accent); }
.langs a[aria-current='page'] { background: var(--accent2-soft); border-color: transparent; }
.paging { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.post header { margin-bottom: 24px; }
.post .picture { margin: 0 0 28px; }
.post .picture img { border-radius: 24px; width: 100%; }
.prose h2 { margin-top: 1.4em; }
.prose h3, .prose h4 { margin-top: 1.4em; }
.prose h4 { font-size: 1rem; font-weight: 600; margin: 1.2em 0 0.3em; }
.prose ol { padding-left: 1.4em; }
.prose img { border-radius: 18px; }
.prose blockquote { margin: 0 0 1em; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface); padding: 1px 6px; border-radius: 6px; }
.prose pre { background: var(--surface); padding: 14px 16px; border-radius: 16px; overflow-x: auto; margin: 0 0 1em; }
.prose pre code { background: none; padding: 0; font-size: 0.88rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* illustration fills: presentation attributes are the fallback, these follow the scheme */
.f-bg { fill: var(--bg); }
.f-surface { fill: var(--surface); }
.f-surface2 { fill: var(--surface-2); }
.f-ink { fill: var(--ink); }
.f-muted { fill: var(--muted); }
.f-accent { fill: var(--accent); }
.f-btn { fill: var(--btn); }
.f-accent-soft { fill: var(--accent-soft); }
.f-accent2 { fill: var(--accent2); }
.f-accent2-soft { fill: var(--accent2-soft); }
.f-frame { fill: var(--frame); }
.f-screen { fill: var(--screen); }
.f-btn-ink { fill: var(--btn-ink); }
.s-ink { stroke: var(--ink); }
.s-accent { stroke: var(--accent); }
.s-accent2 { stroke: var(--accent2); }
.s-muted { stroke: var(--muted); }
.s-line { stroke: var(--line); }

/* the hero builds itself, once; no motion for anyone who asked for less */
@media (prefers-reduced-motion: no-preference) {
  .build { animation: build 0.6s ease-out both; }
  .build.b1 { animation-delay: 0.5s; }
  .build.b2 { animation-delay: 0.9s; }
  .build.b3 { animation-delay: 1.3s; }
  .build.b4 { animation-delay: 1.7s; }
  .build.b0 { animation-delay: 0.1s; }
}
@keyframes build { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── the restyle frame (home), and the styles its prompts put on this site ── */
.restyle p { max-width: 60ch; }
.prompts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 6px; }
/* Each bubble stands apart from whatever is behind it, in every theme and restyle: its own fill, and a border in the link colour. */
.prompt { font: inherit; font-size: 0.95rem; text-align: left; padding: 10px 16px; border-radius: 18px 18px 18px 6px; border: 2px solid var(--link); background: var(--bubble); color: var(--ink); cursor: pointer; }
.prompt:hover:not(:disabled) { border-color: var(--ink); }
.prompt.on { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.prompt:disabled, .prompt[aria-disabled='true'] { cursor: default; opacity: 0.85; }
.prompt.reset { border-style: dashed; color: var(--muted); }
/* With square corners a bubble is still a speech bubble (owner, 26 November 2026): a tail at its foot, its border's
   colour around its fill's, where the round bubble has its pointed corner. Shown only while the corners are square. */
.prompt { position: relative; --tail-edge: var(--link); --tail-fill: var(--bubble); }
.prompt:hover:not(:disabled) { --tail-edge: var(--ink); }
.prompt.on { --tail-edge: var(--btn); --tail-fill: var(--btn); }
.prompt::before, .prompt::after { content: ''; position: absolute; clip-path: polygon(0 0, 100% 0, 0 100%); opacity: 0; pointer-events: none; }
.prompt::before { left: 14px; bottom: -12px; width: 14px; height: 12px; background: var(--tail-edge); }
.prompt::after { left: 16px; bottom: -8px; width: 12px; height: 10px; background: var(--tail-fill); }
html.s-square .prompt::before, html.s-square .prompt::after { opacity: 1; }
html.s-square .prompts { row-gap: 20px; }

/* Blue is the whole palette, backgrounds too (owner, 26 November 2026): a blue-tinted page in light and dark, the ink as it is. */
html.s-blue {
  --bg: #e6edf8; --surface: #d3dff1; --surface-2: #f2f6fc; --screen: #e6edf8; --bubble: #ffffff; --foot: #c5d5ec;
  --accent: #3f6fc4; --accent-soft: #c8d8f5; --accent2: #5e7a8a; --accent2-soft: #b9d2de;
  --link: #2451a3; --btn: #244f9e; --btn-ink: #f2f6fc;
  /* The pie's second slice: hot pink, since blue's second accent is too near its first (owner, 26 November 2026). */
  --pie2: #ff1493;
}
@media (prefers-color-scheme: dark) {
  html.s-blue:not([data-theme='light']) {
    --bg: #151b25; --surface: #212b3b; --surface-2: #1a2230; --screen: #0f141c; --bubble: #2f3c52; --foot: #0f141c;
    --accent: #6f9ae6; --accent-soft: #1f3766; --accent2: #7fa2b3; --accent2-soft: #2a4250;
    --link: #9dbcf4; --btn: #86a9ee; --btn-ink: #151b25;
  }
}
html.s-blue[data-theme='dark'] {
  --bg: #151b25; --surface: #212b3b; --surface-2: #1a2230; --screen: #0f141c; --bubble: #2f3c52; --foot: #0f141c;
  --accent: #6f9ae6; --accent-soft: #1f3766; --accent2: #7fa2b3; --accent2-soft: #2a4250;
  --link: #9dbcf4; --btn: #86a9ee; --btn-ink: #151b25;
}
/* A newspaper's headlines (owner, 29 November 2026): a bold, tight serif every computer has. */
html.s-serif h1, html.s-serif h2, html.s-serif h3, html.s-serif .plan .price, html.s-serif .steps li::before, html.s-serif :is(.canvas-figure, .pay-h, .pay-amount) { font-family: 'Times New Roman', Times, 'Liberation Serif', Georgia, serif; font-weight: 700; letter-spacing: -0.01em; }
/* The body text's size; "increase the font size" scales it with everything else, and it eases with the change. */
body { font-size: calc(17px * var(--zoom, 1)); }
/* "Increase the font size": every word, not only the body text: the root size (headings, buttons, anything in rem) and the body's together. */
html.s-zoom { --zoom: 1.2; font-size: 120%; }
/* Square corners everywhere but the phones around the screenshots, which stay phones (owner, 26 November 2026). */
html.s-square *:not(.phone), html.s-square *::before, html.s-square *::after { border-radius: 2px !important; }
/* A restyle morphs over a second (botchat.js): colours, sizes and corners ease, and a new font fades in through a blur. */
@media (prefers-reduced-motion: no-preference) {
  html.restyling, html.restyling *, html.restyling *::before, html.restyling *::after { transition: color 1s, background-color 1s, border-color 1s, fill 1s, stroke 1s, border-radius 1s, font-size 1s, letter-spacing 1s, padding 0.35s, transform 0.45s, opacity 0.5s, filter 0.5s; }
  html.font-morph :is(h1, h2, h3, .plan .price), html.font-morph .steps li::before { opacity: 0.08; filter: blur(8px); }
}

/* "How good are you?": a heading, a pie drawn slice by slice, its legend, and a line typed out */
.ask-awesome { margin-top: 40px; }
/* A line between what "how good are you?" drew and the footer's bubble (owner, 26 November 2026) */
.footer-ask { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 28px; }
/* The home page's footer, folded behind "add a footer here" by botchat.js: hidden, its links still in the page */
.foot.folded-foot { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .foot.arriving { animation: foot-in 1s ease-out both; }
}
@keyframes foot-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.awesome { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.awesome[hidden] { display: none; }
.awesome:focus { outline: none; }
/* The pie in the middle of the page, its legend beneath it (owner, 26 November 2026). */
.awesome-chart { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 8px 0 14px; }
.awesome-chart svg { width: clamp(130px, 36vw, 170px); height: auto; aspect-ratio: 1; flex: none; transform: rotate(-90deg); }
.slice { fill: none; stroke-width: 50; stroke-dasharray: 0 100; }
.slice.big { stroke: var(--accent); }
.slice.small { stroke: var(--pie2, var(--accent2)); stroke-dashoffset: -82; }
.awesome.drawn .slice.big { stroke-dasharray: 82 100; }
.awesome.drawn .slice.small { stroke-dasharray: 18 100; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.swatch { width: 16px; height: 16px; border-radius: 5px; flex: none; }
.swatch.big { background: var(--accent); }
.swatch.small { background: var(--pie2, var(--accent2)); }
.typed { font-size: 1.1rem; display: grid; }
/* The whole line, unseen, holds its room, so the page doesn't move while it is typed. */
.typed > .typed-room, .typed > .typed-out { grid-area: 1 / 1; }
.typed-room { visibility: hidden; }
.typed-out.typing::after { content: ''; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .slice.big { transition: stroke-dasharray 1.1s ease-out; }
  .slice.small { transition: stroke-dasharray 0.6s ease-out 1s; }
}

/* The pretend chat the prompts open: a panel on the right, a sheet at the bottom on a phone. */
.bot-chat { position: fixed; z-index: 20; top: 16px; right: 16px; bottom: 16px; width: 340px; display: flex; flex-direction: column; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 50px rgba(20, 18, 16, 0.25); transform: translateX(calc(100% + 32px)); }
.bot-chat[hidden] { display: none; }
.bot-chat.in { transform: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 4px 18px; }
.chat-head h2 { font-size: 1.35rem; margin: 0; color: var(--accent); }
.chat-close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.chat-close:hover { border-color: var(--muted); }
.chat-close svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.chat-note { margin: 0 18px 6px; font-size: 0.8rem; line-height: 1.4; color: var(--muted); }
.chat-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 14px 14px; }
.chat-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 86%; padding: 9px 13px; border-radius: 18px; font-size: 0.95rem; line-height: 1.4; }
.msg.you { align-self: flex-end; background: var(--btn); color: var(--btn-ink); border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.chat-typing { display: flex; gap: 5px; width: fit-content; margin: 8px 0 0; padding: 13px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface); }
.chat-typing[hidden] { display: none; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
/* The chat's own bubbles keep a tail too when the corners are square: under the person's on the right, WondrBot's on the left. */
.msg, .chat-typing { position: relative; }
html.s-square .chat-log { gap: 14px; }
html.s-square .msg::after, html.s-square .chat-typing::after { content: ''; position: absolute; bottom: -8px; width: 12px; height: 8px; background: inherit; }
html.s-square .msg.you::after { right: 10px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
html.s-square .msg.bot::after, html.s-square .chat-typing::after { left: 10px; clip-path: polygon(0 0, 100% 0, 0 100%); }
@media (min-width: 900px) {
  html.chat-open body { padding-right: 372px; }
  /* On the left, dragged or asked there (owner, 26 November 2026); the page makes room on that side instead. */
  html.chat-left .bot-chat { right: auto; left: 16px; }
  html.chat-left .bot-chat:not(.in) { transform: translateX(calc(-100% - 32px)); }
  html.chat-open.chat-left body { padding-right: 0; padding-left: 372px; }
  .chat-head { cursor: grab; touch-action: none; }
  html.chat-dragging .chat-head { cursor: grabbing; }
  html.chat-dragging .bot-chat, html.chat-dragging body { transition: none; user-select: none; }
}
/* On a phone, a drawer from the left over half the screen (owner, 26 November 2026): opened by the first prompt and
   left open while the page changes beside it; a tap to its right lands on a clear layer that closes it. Closed, it is
   out of sight and out of reach, and a tab on the left edge opens it. */
.chat-handle, .chat-scrim { display: none; }
@media (max-width: 899px) {
  .bot-chat { top: 0; bottom: 0; left: 0; right: auto; width: 50vw; border-radius: 0 20px 20px 0; border-left: 0; transform: translateX(-105%); visibility: hidden; touch-action: pan-y; }
  .bot-chat.in { transform: none; visibility: visible; }
  .chat-head { padding: 10px 10px 2px 16px; }
  .chat-head h2 { font-size: 1.1rem; }
  .chat-close { width: 32px; height: 32px; }
  .chat-note { margin: 0 16px 4px; font-size: 0.72rem; }
  .chat-body { padding: 6px 12px 12px; }
  /* While the tab is there, the page makes room for it, so it never covers a word. */
  html.chat-tab body { padding-left: 34px; }
  .chat-handle { position: fixed; z-index: 19; left: 0; top: 50%; transform: translateY(-50%); display: grid; place-items: center; gap: 2px; width: 32px; padding: 10px 2px; border: 2px solid var(--link); border-left: 0; border-radius: 0 14px 14px 0; background: var(--bubble); color: var(--link); cursor: pointer; box-shadow: 0 6px 18px rgba(20, 18, 16, 0.18); }
  .chat-handle[hidden] { display: none; }
  .chat-scrim { display: block; position: fixed; z-index: 19; top: 0; bottom: 0; left: 50vw; right: 0; }
  .chat-scrim[hidden] { display: none; }
  .chat-handle svg { width: 20px; height: 20px; fill: currentColor; }
  .chat-count { font: 600 0.75rem/1 Figtree, system-ui, sans-serif; color: var(--ink); }
}
@media (prefers-reduced-motion: no-preference) {
  .bot-chat { transition: transform 0.35s ease; }
  /* The drawer's slide on a phone, a quarter second; out of reach once it is away. */
  @media (max-width: 899px) {
    .bot-chat { transition: transform 0.25s ease, visibility 0s linear 0.25s; }
    .bot-chat.in { transition: transform 0.25s ease, visibility 0s; }
  }
  body { transition: padding 0.35s ease; }
  .msg { animation: msg-in 0.3s ease-out both; }
  .chat-typing span { animation: typing 1s ease-in-out infinite; }
  .chat-typing span:nth-child(2) { animation-delay: 0.15s; }
  .chat-typing span:nth-child(3) { animation-delay: 0.3s; }
}
/* A star for each bubble tried, at the chat's foot (owner, 26 November 2026); confetti over the page once all are. */
.chat-stars { flex: none; padding: 10px 14px 14px; border-top: 1px solid var(--line); text-align: center; }
.stars-note { margin: 0 0 6px; font-size: 0.8rem; line-height: 1.3; color: var(--muted); }
.chat-stars.all .stars-note { color: var(--ink); font-weight: 600; }
.stars { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; }
.star { display: grid; width: 20px; height: 20px; }
.star svg { width: 100%; height: 100%; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linejoin: round; }
.star.on svg { fill: var(--accent); stroke: var(--accent); }
@media (max-width: 899px) {
  .chat-stars { padding: 8px 8px 12px; }
  .stars { gap: 2px; }
  .star { width: 14px; height: 14px; }
}
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .star.new svg { animation: star-pop 0.6s ease-out; }
}
@keyframes star-pop { 0% { transform: scale(0.4); } 60% { transform: scale(1.3); } 100% { transform: none; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* Support's questions (owner, 26 November 2026): by topic, each one opening in place, no script needed */
/* The home page's plugins (owner, 26 November 2026): ChainCrew the biggest box, tiles beside it, then whose data it is */
.plugin-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0 12px; }
.plugin-feature { grid-column: 1 / -1; order: -1; display: block; background: var(--accent-soft); color: var(--ink); text-decoration: none; }
.plugin-feature .plugin-head { display: flex; }
.plugin-feature h3 { font-family: Caprasimo, Georgia, serif; font-weight: 400; font-size: 1.45rem; margin: 10px 0 8px; }
.plugin-feature-body { display: block; max-width: 52ch; }
.plugin-feature:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
/* "See every plugin": on the right, a quiet link with an arrow that steps on when pointed at (owner, 27 November 2026). */
.plugins-all { text-align: right; margin: 0; }
.plugins-all a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; font-weight: 600; color: var(--link); text-decoration: none; border-bottom: 2px solid transparent; }
.plugins-all a::after { content: '\2192'; transition: transform 0.15s ease; }
.plugins-all a:hover { border-bottom-color: var(--accent); }
.plugins-all a:hover::after { transform: translateX(3px); }
.plugin-tile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px; border-radius: 22px; color: var(--ink); text-decoration: none; font-weight: 600; }
.plugin-tile .tile { width: 44px; height: 44px; border-radius: 14px; font-size: 1.1rem; }
.plugin-tile-use { flex-basis: 100%; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.plugin-tile:hover .plugin-tile-name { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
@media (min-width: 760px) {
  /* The tiles on the left, ChainCrew's box on the right (owner, 26 November 2026). */
  .plugin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(96px, auto); grid-auto-flow: row dense; }
  .plugin-feature { order: 0; grid-column: 3 / span 2; grid-row: 1 / span 3; padding: 28px; }
  .plugin-feature.rows-1 { grid-row: 1 / span 1; }
  .plugin-feature.rows-2 { grid-row: 1 / span 2; }
}
.yours { border-left: 3px solid var(--accent2); padding-left: 16px; margin-top: 24px; }
.yours h3 { margin-bottom: 6px; }
.yours p { max-width: 62ch; }
/* The owner's sentence, set apart in the heading face, and its asterisk (owner, 26 November 2026). Without scripts the
   longer account is a footnote below; with them (html.js), a popover by the asterisk on hover, focus or tap. */
.claim { font-family: Caprasimo, Georgia, serif; font-size: 1.12rem; line-height: 1.45; letter-spacing: 0.005em; margin-bottom: 0.6em; }
.note-mark { font: 600 1rem/1 Figtree, system-ui, sans-serif; vertical-align: super; margin-left: 2px; padding: 2px 6px; border: 0; border-radius: 999px; background: transparent; color: var(--link); cursor: pointer; }
.note-mark:hover { background: var(--surface); }
.claim-note { font-size: 0.95rem; color: var(--muted); }
html.js .claim-wrap { position: relative; }
html.js .claim-note { position: absolute; z-index: 5; left: 0; top: 100%; width: min(100%, 36rem); margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--ink); box-shadow: 0 12px 32px rgba(20, 18, 16, 0.18); visibility: hidden; opacity: 0; }
html.js .claim-note > span[aria-hidden] { display: none; }
html.js .claim-wrap:hover .claim-note, html.js .claim-wrap:focus-within .claim-note, html.js .claim-wrap.open .claim-note { visibility: visible; opacity: 1; }
html.js .claim-wrap.dismissed .claim-note { visibility: hidden; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html.js .claim-note { transition: opacity 0.15s ease, visibility 0.15s; }
}

/* /plugins (owner, 26 November 2026): one card each, its facts as a short list */
.plugins-intro h2 { margin-top: 32px; }
.providers ul { padding-left: 20px; }
.providers li { margin: 6px 0; }
.plugin-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 18px; }
.plugin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.plugin-head h3 { margin: 0; }
.plugin-facts { margin: 10px 0 0; display: grid; gap: 6px; font-size: 0.95rem; }
.plugin-facts div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 10px; }
.plugin-facts dt { color: var(--muted); }
.plugin-facts dd { margin: 0; }
.plugin-asks-h { margin: 12px 0 4px; color: var(--muted); font-size: 0.95rem; }
.plugin-asks { margin: 0; padding-left: 18px; font-size: 0.95rem; }
.plugin-site { margin: 12px 0 0; }

/* The legal pages in the site's frame: the admin's text, its headings plain */
.legal h1 { margin-top: 40px; }
.legal section { margin-top: 26px; }
.legal h2 { font-family: Figtree, system-ui, sans-serif; font-weight: 600; font-size: 1.15rem; margin: 0 0 6px; }
.legal p { max-width: 68ch; }
.support-faq h3 { margin: 28px 0 4px; font-size: 1.05rem; color: var(--muted); letter-spacing: 0.02em; }
.support-faq details { border-bottom: 1px solid var(--line); }
/* The summary stays a summary (no flex, which some browsers let break it); its + sits at the end. */
.support-faq summary { list-style: none; cursor: pointer; position: relative; padding: 14px 2.2em 14px 0; font-weight: 600; }
.support-faq summary::-webkit-details-marker { display: none; }
.support-faq summary::after { content: '+'; position: absolute; right: 0; top: 13px; width: 1.4em; text-align: center; font-size: 1.25rem; line-height: 1.2; color: var(--accent); }
.support-faq details[open] > summary::after { content: '−'; }
.support-faq summary:hover { color: var(--link); }
.support-faq details > p { margin: 0 0 16px; max-width: 62ch; }

/* "Try it now" under the steps: a prompt that works the chat, and one that fixes the page light or dark, side by side
   where they fit, one above the other where they don't */
.try-now { margin-top: 10px; font-size: 0.95rem; text-align: center; }
.try-prompts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
html.s-square .try-prompts { row-gap: 20px; }

/* The billing page (#239): the plan, the plans, top-ups; built by billing.js */
.billing { max-width: 720px; padding-bottom: 48px; }
.billing .lead { color: var(--muted); }
.billing .card { background: var(--surface); border-radius: 18px; padding: 18px 20px; margin: 16px 0; }
.billing .card h2 { margin: 0 0 8px; font-size: 1.15rem; }
.billing .plan-name { font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; }
.billing .credits { font-weight: 600; }
.billing .muted { color: var(--muted); }
.billing .small { font-size: 0.92rem; }
.billing .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.billing .plan-list { list-style: none; margin: 0; padding: 0; }
.billing .plan-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.billing .plan-row:first-child { border-top: 0; }
.billing .tag { font-size: 0.9rem; font-weight: 600; color: var(--link); white-space: nowrap; }
.billing .btn { cursor: pointer; font: inherit; font-weight: 600; }
.billing .btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.billing .btn:disabled { opacity: 0.6; cursor: default; }
.billing button.link { background: none; border: 0; padding: 0; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }
.billing .note { padding: 10px 14px; border-radius: 12px; background: var(--surface); }
.billing .note.ok { color: var(--ink); border-left: 4px solid var(--accent); }
.billing .note.error { color: var(--ink); border-left: 4px solid #c0392b; }



/* WondrBot vs the agents: WondrBot's answer beside the others', bundled where they answer alike; stacked rows on a phone */
.vs-scroll { overflow-x: auto; }
/* Its two comparisons are tabs: links to each one's anchor. Where :has() works, the panel named in the address shows
   (the agents when none is); where it doesn't, the two stack, each under its heading. */
.vs-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.vs-tabs a { display: inline-block; padding: 10px 16px; border-radius: 10px 10px 0 0; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.vs-tabs a:hover { color: var(--ink); }
.vs-panel h2 { margin-top: 0; }
.vs-panels:has(> .vs-tabs) > .vs-panel { padding-top: 24px; }
/* With the tabs working, the tab names the panel; its heading stays for screen readers. */
.vs-panels:has(> .vs-tabs) > .vs-panel > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vs-panels:has(> .vs-panel:target) > .vs-panel:not(:target),
.vs-panels:not(:has(> .vs-panel:target)) > .vs-panel:not(#agents) { display: none; }
.vs-panels:has(#agents:target) a[data-tab='agents'],
.vs-panels:has(#app-builders:target) a[data-tab='app-builders'],
.vs-panels:not(:has(> .vs-panel:target)) a[data-tab='agents'] { color: var(--ink); background: var(--surface); border-bottom-color: var(--accent); }
.vs { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.vs th, .vs td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.vs thead th { font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.vs tbody th { font-weight: 600; width: 22%; }
.vs .us { background: var(--surface); padding-left: 12px; border-radius: 0; font-weight: 600; width: 34%; }
.vs td + td, .vs thead th:last-child { padding-left: 14px; }
.vs td .col { display: none; }
.vs .groups { list-style: none; margin: 0; padding: 0; }
.vs .groups li + li { margin-top: 8px; }
.reasons .card h3 { margin-top: 0; }
.sources ul { padding-left: 18px; }
@media (max-width: 760px) {
  .vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vs tr, .vs th, .vs td, .vs tbody th { display: block; width: auto; padding-right: 0; }
  .vs tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .vs th, .vs td { border: 0; padding: 4px 0; }
  .vs td + td { padding: 8px 0 4px; }
  .vs td .col { display: block; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
  .vs .us { padding: 8px 10px; border-radius: 10px; width: auto; }
}

/* Templates ready for you to use: eight phones, two across on a phone, four across from a wide screen */
.phones { list-style: none; padding: 0; margin: 24px 0 12px; display: grid; gap: 20px 16px; grid-template-columns: repeat(2, 1fr); }
.phones li { margin: 0; display: grid; justify-items: center; gap: 10px; }
.phones .phone { width: 100%; max-width: 250px; }
.phone-caption { margin: 0; font-weight: 600; font-size: 0.95rem; text-align: center; }
@media (min-width: 900px) { .phones { grid-template-columns: repeat(4, 1fr); gap: 28px 20px; } }
/* With scripts, the first row only (two on a phone, four from 900px), until "show me some more examples" (owner, 26 November 2026). */
html.js .phones.folded > li:nth-child(n + 3) { display: none; }
@media (min-width: 900px) { html.js .phones.folded > li:nth-child(n + 3) { display: grid; } html.js .phones.folded > li:nth-child(n + 5) { display: none; } }
.more-row { margin: 4px 0 16px; text-align: center; }
/* "Illustrative examples only…": an aside, in italics (owner, 26 November 2026) */
.footnote { font-style: italic; }
.phones > li.shown:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .phones > li.shown { animation: shown-in 0.8s ease-out both; }
  .phones > li.shown:nth-child(even) { animation-delay: 0.12s; }
}
@keyframes shown-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* The sign-up link WondrBot offers for finding all ten bubbles (owner, 27 November 2026): on a line of its own. */
.bonus-link { display: block; margin-top: 6px; font-weight: 600; }

/* ── Apps built live on the home page (owner, 29 November 2026): a canvas in a phone, its parts as the app draws them
   (src/theme/tokens.ts): a kicker, a heading in Caprasimo, figures under small capitals, lists and tables in cards.
   Without scripts each shows built; with them it waits for its bubble, and botchat.js reveals it part by part. ── */
.showcase-ask { margin: 24px 0; }
html.js .showcase:not(.built) { display: none; }
.showcase { display: flex; justify-content: center; margin: 8px 0 10px; }
.showcase:focus { outline: none; }
.phone.app-phone { position: relative; width: min(100%, 360px); border-color: var(--frame); background: var(--frame); }
.canvas { position: relative; background: var(--bg); color: var(--ink); padding: 34px 16px 22px; font-size: 0.9rem; line-height: 1.45; text-align: left; }
.canvas-notch { position: absolute; top: 10px; left: 50%; width: 76px; height: 16px; margin-left: -38px; border-radius: 999px; background: var(--frame); }
.canvas-kicker { margin: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); }
.canvas-h { font-family: Caprasimo, Georgia, serif; font-weight: 400; font-size: 1.75rem; line-height: 1.15; margin: 2px 0 14px; }
.canvas-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.canvas-label { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.canvas-figure { display: block; font-family: Caprasimo, Georgia, serif; font-weight: 400; font-size: 1.45rem; line-height: 1.25; overflow-wrap: anywhere; }
.canvas-metric small { display: block; font-size: 0.78rem; color: var(--muted); }
.canvas-card { background: var(--surface); border-radius: 24px; padding: 14px 16px; margin: 0 0 12px; }
.canvas-card-title { margin: 0 0 8px; font-weight: 600; font-size: 1rem; }
.canvas-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.canvas-list li > span { display: block; font-weight: 600; }
.canvas-list small { display: block; font-size: 0.82rem; color: var(--muted); }
.canvas-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.canvas-table caption { text-align: left; font-weight: 600; font-size: 1rem; padding-bottom: 6px; }
.canvas-table th, .canvas-table td { text-align: left; vertical-align: top; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.canvas-table thead th { color: var(--muted); font-weight: 600; }
.canvas-table tbody th { font-weight: 400; }
.canvas-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.canvas-table tfoot th, .canvas-table tfoot td { font-weight: 600; }
.canvas-table tfoot tr:first-child > * { border-top: 2px solid var(--line); }
.canvas-table > :last-child > tr:last-child > * { border-bottom: 0; }
.canvas-muted { margin: 4px 0 0; font-size: 0.8rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .showcase.building .part { opacity: 0; transform: translateY(14px); }
  .showcase.building .part.in { opacity: 1; transform: none; transition: opacity 0.45s ease-out, transform 0.45s ease-out; }
}
/* The calendar app: a month as the app's calendar part draws it, a dot under each day with an event. Its events and
   "Sample data" wait for "connect my calendar" (with scripts; without, they show), and say they are samples. */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; text-align: center; font-size: 0.8rem; }
.cal-grid b { font-weight: 400; font-size: 0.72rem; color: var(--muted); padding-bottom: 4px; }
.cal-grid span { position: relative; display: grid; place-items: center; height: 2.1em; margin: 0 auto; aspect-ratio: 1; border-radius: 999px; }
.cal-grid .today { background: var(--line); font-weight: 600; }
.cal-grid .ev::after { content: ''; position: absolute; bottom: 2px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); }
.cal-grid .s1 { grid-column-start: 1; } .cal-grid .s2 { grid-column-start: 2; } .cal-grid .s3 { grid-column-start: 3; } .cal-grid .s4 { grid-column-start: 4; }
.cal-grid .s5 { grid-column-start: 5; } .cal-grid .s6 { grid-column-start: 6; } .cal-grid .s7 { grid-column-start: 7; }
.sample-pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 0.15em; background: var(--accent-soft); color: var(--ink); }
.cal-empty { display: none; margin: 10px 0 0; font-size: 0.82rem; color: var(--muted); }
html.js #show-calendar:not(.connected) :is(.cal-events, .sample-pill) { display: none; }
html.js #show-calendar:not(.connected) .cal-grid .ev::after { display: none; }
html.js #show-calendar:not(.connected) .cal-empty { display: block; }
.follow-row { margin-top: 4px; }
.follow-row[hidden] { display: none; }
/* "Pay Sam €20": a sheet over the canvas, as the app asks before anything moves money. Two plain buttons, no form. */
.sheet-scrim { position: absolute; inset: 0; background: rgba(20, 18, 16, 0.45); }
.sheet-scrim[hidden], .pay-sheet[hidden] { display: none; }
.pay-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 18px 18px; border-radius: 26px 26px 0 0; background: var(--surface-2); color: var(--ink); box-shadow: 0 -10px 30px rgba(20, 18, 16, 0.25); text-align: left; font-size: 0.9rem; }
.pay-sheet:focus { outline: none; }
.sheet-grip { display: block; width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 999px; background: var(--line); }
.pay-h { font-family: Caprasimo, Georgia, serif; font-weight: 400; font-size: 1.4rem; line-height: 1.2; margin: 2px 0 0; }
.pay-amount { font-family: Caprasimo, Georgia, serif; font-size: 2.1rem; line-height: 1.2; margin: 2px 0 8px; }
.pay-lines { margin: 0 0 12px; display: grid; gap: 4px; }
.pay-lines div { display: grid; grid-template-columns: 3.5em minmax(0, 1fr); gap: 8px; }
.pay-lines dt { color: var(--muted); }
.pay-lines dd { margin: 0; font-weight: 600; }
.pay-nothing { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: 14px; background: var(--accent2-soft); font-weight: 600; }
.pay-nothing svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.pay-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 8px; }
.pay-buttons button { font: inherit; font-weight: 600; padding: 11px 12px; border-radius: 999px; cursor: pointer; border: 2px solid var(--line); background: transparent; color: var(--ink); }
.pay-buttons .pay-confirm { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.pay-demo { margin: 0; font-size: 0.78rem; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  #show-calendar.connected .cal-grid .ev::after { animation: dot-in 0.5s ease-out both; }
  .pay-sheet.rising { animation: sheet-up 0.35s ease-out both; }
  .sheet-scrim.rising { animation: fade-in 0.35s ease-out both; }
}
@keyframes dot-in { from { transform: scale(0); } to { transform: none; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
/* The soccer team's app: its members with a face each, and the latest vote as an outcome, a tick in a tinted circle. */
.team-people { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.team-people li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; }
.team-people li > span:not(.team-face) { font-weight: 600; }
.team-people small { grid-column: 2; font-size: 0.78rem; color: var(--muted); }
.team-face { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; background: var(--accent-soft); color: var(--ink); }
.team-face.t1 { background: var(--accent2-soft); }
.team-face.t2 { background: var(--surface-2); }
.canvas-status { margin: 0 0 14px; }
.status-line { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; }
.status-line strong { display: block; font-size: 1.02rem; }
.status-line small { display: block; font-size: 0.78rem; color: var(--muted); }
.status-mark { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; }
.status-mark.good { background: var(--accent2-soft); color: var(--ink); }
.status-mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
