/* Wisepage site styles. A single light look on purpose; every color comes from these tokens. */
:root {
  --bg: #ffffff;
  --band: #f4f4f2;
  --panel: #f7f7f5;
  --text: #121212;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #e7e7e4;
  --line-strong: #d6d6d2;
  --ink: #121212;
  --on-ink: #ffffff;
  --pill: #efefed;
  --blue: #2f6bff;
  --hl: #fff1a8;
  --cut: #e5484d;
  --code-key: #2f55d4;
  --code-str: #1f7a4d;
  --code-num: #b4540a;
  --ok: #1f9d55;
  --del-bg: #fdecec;
  --del-text: #b42318;
  --add-bg: #e8f6ee;
  --add-text: #146c43;
  --control-sm: 36px;
  --control-md: 44px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 760px) { .wrap { padding-inline: 32px; } }
.muted { color: var(--muted); }

/* ---------- Nav ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.wordmark { font: 600 1.1875rem/1 var(--sans); letter-spacing: -0.04em; justify-self: start; display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { flex: none; width: auto; height: 27px; color: var(--blue); }
.nav-links { display: flex; gap: 28px; font-size: 0.8125rem; color: var(--muted); }
.nav-links a { padding-block: 8px; }
.nav-links a:hover { color: var(--text); }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 8px; }
/* Mobile menu: a native <details>, so it opens without JavaScript */
.mnav { display: none; }
@media (max-width: 759px) { .mnav { display: block; } }
.mnav-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--control-sm); height: var(--control-sm); border-radius: 999px; background: var(--pill); color: var(--text); cursor: pointer; list-style: none; }
.mnav-btn::-webkit-details-marker { display: none; }
.mnav-btn span, .mnav-btn span::before, .mnav-btn span::after { display: block; width: 14px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform 0.2s ease, background-color 0.2s ease; }
.mnav-btn span { position: relative; }
.mnav-btn span::before, .mnav-btn span::after { content: ""; position: absolute; left: 0; }
.mnav-btn span::before { top: -4.5px; }
.mnav-btn span::after { top: 4.5px; }
.mnav[open] .mnav-btn span { background: transparent; }
.mnav[open] .mnav-btn span::before { transform: translateY(4.5px) rotate(45deg); }
.mnav[open] .mnav-btn span::after { transform: translateY(-4.5px) rotate(-45deg); }
.mnav-panel { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 4px 16px 12px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 32px -24px rgba(18, 18, 18, 0.35); }
.mnav-panel a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.mnav-panel a:last-child { border-bottom: 0; }
.mnav-panel a::after { content: "›"; color: var(--faint); font-size: 1.125rem; }
@media (max-width: 759px) { .nav { grid-template-columns: 1fr auto; } .nav-links { display: none; } }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--control-sm); padding: 0 16px; border-radius: 999px; border: 0; font: 500 0.8125rem/1 var(--sans); cursor: pointer; white-space: nowrap; transition: opacity 0.15s ease, background-color 0.15s ease; }
.pill-ink { background: var(--ink); color: var(--on-ink); }
.pill-ink:hover { opacity: 0.85; }
.pill-soft { background: var(--pill); color: var(--text); }
.pill-soft:hover { background: var(--line); }
.pill-md { height: var(--control-md); padding: 0 22px; font-size: 0.875rem; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-block: 72px 56px; }
@media (min-width: 760px) { .hero { padding-block: 104px 72px; } }
.announce { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px 0 4px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); box-shadow: 0 1px 2px rgba(18, 18, 18, 0.04), 0 6px 16px -12px rgba(18, 18, 18, 0.25); font-size: 0.8125rem; color: var(--muted); white-space: nowrap; max-width: 100%; transition: border-color 0.2s ease, color 0.2s ease; }
.announce:hover { border-color: var(--line-strong); color: var(--text); }
.announce-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--blue) 10%, var(--bg)); color: var(--blue); font-weight: 500; font-size: 0.75rem; }
.announce-text { overflow: hidden; text-overflow: ellipsis; }
.announce-arrow { flex: none; width: 12px; height: 12px; color: var(--faint); transition: transform 0.2s ease, color 0.2s ease; }
.announce:hover .announce-arrow { transform: translateX(3px); color: var(--text); }
@media (max-width: 479px) { .announce-more { display: none; } }
.hero h1 { font-family: var(--sans); font-weight: 500; font-size: clamp(2.5rem, 5.6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.05em; max-width: 11em; margin: 0 auto; }
.hero-sub { max-width: 34em; margin: 20px auto 0; color: var(--muted); font-size: 1rem; }

/* Hero: one playground mockup in a grey frame */
.hero-cta { margin-top: 28px; }
.hero-frame { position: relative; margin: 56px 0 0; background: var(--panel); border-radius: 6px; padding: 48px 48px 0; text-align: left; }
@media (max-width: 599px) { .hero-frame { padding: 20px 14px 0; margin-top: 40px; } }
.hero-frame .app { background: var(--bg); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 1px 2px rgba(18, 18, 18, 0.04), 0 30px 60px -40px rgba(18, 18, 18, 0.3); overflow: hidden; font-size: 0.875rem; min-height: 0; }
.app-top { display: flex; align-items: center; gap: 18px; height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.app-brand { display: inline-flex; align-items: center; gap: 7px; font: 600 0.9375rem/1 var(--sans); letter-spacing: -0.03em; }
.app-brand .logo-mark { height: 21px; }
/* Page is drawn at several sizes; these keep its line close to 1.4px everywhere */
.logo-mark path { stroke-width: 1.8; }
.logo-mark path:last-child { stroke-width: 1.5; }
.app-brand .logo-mark path { stroke-width: 2.3; }
.app-brand .logo-mark path:last-child { stroke-width: 1.9; }
.app-brand .logo-mark circle { r: 2px; }
.app-tabs { display: flex; gap: 4px; color: var(--muted); font-size: 0.8125rem; }
.app-tabs span { padding: 6px 10px; border-radius: 6px; }
.app-tabs .on { background: var(--pill); color: var(--text); font-weight: 500; }
.app-meta { margin-left: auto; font: 0.75rem/1 var(--mono); color: var(--muted); }
@media (max-width: 599px) { .app-tabs span:not(.on), .app-meta { display: none; } }
.dot-ok { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }
.pg { padding: 20px; display: grid; gap: 14px; }
.pg > *, .pg-body > * { min-width: 0; }
@media (max-width: 599px) { .pg { padding: 14px; } .pg-url { font-size: 0.75rem; } }
.pg-bar { display: flex; align-items: center; gap: 8px; }
.pg-method { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 500; font-size: 0.8125rem; }
.pg-method svg { width: 10px; height: 10px; color: var(--muted); }
.pg-url { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; font: 0.8125rem/1 var(--mono); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pg-run { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-weight: 500; font-size: 0.8125rem; }
.pg-tabs { display: flex; align-items: center; gap: 16px; padding: 0 2px; border-bottom: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.pg-tabs > span:not(.pg-status) { padding: 9px 0; margin-bottom: -1px; }
.pg-tabs .on { color: var(--text); font-weight: 500; border-bottom: 1.5px solid var(--text); }
.pg-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 0.75rem/1 var(--mono); white-space: nowrap; }
@media (max-width: 599px) { .pg-tabs > span:not(.on):not(.pg-status) { display: none; } }
.pg-body { display: grid; gap: 20px; padding-bottom: 8px; }
@media (min-width: 860px) { .pg-body { grid-template-columns: 1.5fr 1fr; gap: 28px; } }
.pg-out { margin: 0; padding: 6px 2px; font-size: 0.8125rem; line-height: 1.8; color: var(--text); overflow-x: auto; }
.pg-meta { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--panel); display: grid; gap: 10px; align-content: start; font-size: 0.8125rem; }
.pg-meta div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.pg-meta dt { color: var(--faint); }
.pg-meta dd { margin: 0; }

.k { color: var(--code-key); }
.s { color: var(--code-str); }
.n { color: var(--code-num); }
.c { color: var(--faint); }

/* ---------- App mockups (drawn like real product screens) ---------- */
.app { background: var(--bg); border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; box-shadow: 0 1px 2px rgba(18, 18, 18, 0.04); min-height: 340px; overflow: hidden; font-size: 0.8125rem; }
/* Band mockups */
.mock { width: 100%; max-width: 620px; min-height: 0; border-bottom: 1px solid var(--line); border-radius: 10px; }
.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); font: 0.6875rem/1 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; }
.diff-stat { display: flex; gap: 8px; }
.diff-stat .minus { color: var(--del-text); font-weight: 500; }
.diff-stat .plus { color: var(--add-text); font-weight: 500; }
.diff, .code { margin: 0; padding: 8px 0; font-size: 0.75rem; line-height: 1.9; overflow-x: auto; }
.diff .ln, .code .ln { display: block; padding: 0 14px 0 0; white-space: pre; }
.diff .ln i, .code .ln i { display: inline-block; width: 36px; padding-right: 12px; text-align: right; font-style: normal; color: var(--faint); user-select: none; }
.diff .del { background: var(--del-bg); color: var(--del-text); }
.diff .add { background: var(--add-bg); color: var(--add-text); }
.log-wrap { overflow-x: auto; }
.log { width: 100%; border-collapse: collapse; font-size: 0.75rem; white-space: nowrap; }
.log th { text-align: left; font-weight: 500; color: var(--faint); font-size: 0.6875rem; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.log td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.log tr:last-child td { border-bottom: 0; }
.log td:nth-child(2) { font-family: var(--mono); font-size: 0.6875rem; max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.log .r { text-align: right; }
.log .faint, .faint { color: var(--faint); }
.st { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font: 500 0.6875rem/1 var(--mono); }
.st.ok { background: var(--add-bg); color: var(--add-text); }
.st.err { background: var(--del-bg); color: var(--del-text); }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--pill); font-size: 0.6875rem; color: var(--muted); white-space: nowrap; }
.search-field { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-family: var(--sans); font-size: 0.8125rem; }
.search-field svg { width: 12px; height: 12px; color: var(--muted); }
.serp { display: grid; }
.hit { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hit:last-child { border-bottom: 0; }
.hit > div { min-width: 0; }
.fav { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--pill); font: 600 0.75rem/1 var(--sans); color: var(--muted); }
.hit-url { font: 0.6875rem/1.4 var(--mono); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit-title { font-size: 0.8125rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 599px) { .hit .chip { display: none; } .hit { grid-template-columns: 28px 1fr; } }
.editor { display: grid; }
@media (min-width: 640px) { .editor { grid-template-columns: 1fr 1fr; } .editor .pane + .pane { border-left: 1px solid var(--line); } }
.editor .pane { min-width: 0; }
.valid { display: inline-flex; align-items: center; gap: 6px; color: var(--add-text); }

/* ---------- Details ---------- */
.section { padding-block: 96px; }
@media (min-width: 760px) { .section { padding-block: 128px; } }
.proof-chips { display: flex; gap: 4px; flex: none; }

/* ---------- MCP page: setup tabs per app, an example conversation, tool cards ---------- */
.bot-block > p code { font-size: 0.8125rem; padding: 0.1em 0.4em; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--text); }
.mcp-page .chat { margin-top: 4px; }
.tool-name { justify-self: start; font: 500 0.75rem/1.4 var(--mono); color: var(--blue); }
.bot-card .chip { justify-self: start; margin-top: 8px; background: var(--bg); color: var(--text); }
.setup { display: flex; flex-direction: column; }
.setup-tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
@media (min-width: 600px) { .setup-tabs { flex-wrap: wrap; overflow: visible; } }
.setup-tabs button { flex: none; height: 32px; padding: 0 9px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 500 0.8125rem/1 var(--sans); cursor: pointer; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease; }
.setup-tabs button:hover { color: var(--text); }
.setup-tabs button[aria-selected="true"] { background: var(--pill); color: var(--text); }
.setup-panels { display: grid; flex: 1; }
.setup-panel { grid-area: 1 / 1; min-width: 0; }
.setup-panel:not(.on) { visibility: hidden; }
.setup-panel .con-body { padding: 18px 20px; white-space: pre; overflow-x: auto; overflow-wrap: normal; }
.setup .con-foot { padding-right: 10px; }
.chat { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; background: var(--band); }
.chat-head { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 500; }
.chat-body { display: grid; gap: 10px; align-content: start; flex: 1; }
.msg-user { justify-self: end; max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: var(--on-ink); font-size: 0.875rem; }
.msg-tool { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 0.75rem; }
.msg-tool .logo-mark { height: 18px; }
.msg-tool .logo-mark path { stroke-width: 2.7; }
.msg-tool .logo-mark path:last-child { stroke-width: 2.2; }
.msg-tool code { flex: none; font-weight: 500; }
.msg-url { flex: 1; min-width: 0; font: 0.75rem/1.4 var(--mono); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-tool .st { flex: none; }
.msg-agent { justify-self: start; max-width: 94%; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--bg); font-size: 0.875rem; line-height: 1.55; }
.chat-tools { font-size: 0.75rem; color: var(--muted); }
.chat-tools code { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-left: 2px; border-radius: 999px; background: var(--bg); font-size: 0.6875rem; color: var(--text); }

/* ---------- Details: switcher list + API console ---------- */
.split-head { display: grid; gap: 14px; margin-bottom: 56px; }
@media (min-width: 900px) { .split-head { grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; } }
.split-head .lede { max-width: 30em; }
.switcher { display: grid; gap: 16px; }
@media (min-width: 900px) { .switcher { grid-template-columns: 5fr 7fr; gap: 24px; align-items: stretch; } }
.switcher > * { min-width: 0; }
.sw-list { display: grid; gap: 4px; align-content: start; }
.sw-item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; width: 100%; padding: 16px 18px; border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: background-color 0.25s ease; }
.sw-item:hover { background: color-mix(in srgb, var(--panel) 60%, transparent); }
.sw-item[aria-selected="true"] { background: var(--panel); }
.sw-num { font: 500 0.75rem/1.6 var(--mono); color: var(--faint); padding-top: 1px; transition: color 0.25s ease; }
.sw-item[aria-selected="true"] .sw-num { color: var(--blue); }
.sw-copy { display: grid; min-width: 0; }
.sw-copy b { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); transition: color 0.25s ease; }
.sw-item[aria-selected="true"] .sw-copy b, .sw-item:hover .sw-copy b { color: var(--text); }
.sw-desc { display: grid; }
.sw-desc > span { overflow: hidden; color: var(--muted); font-size: 0.875rem; padding-top: 6px; }
.js .sw-desc { grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .sw-desc > span { min-height: 0; padding-top: 0; transition: padding-top 0.35s ease; }
.js .sw-item[aria-selected="true"] .sw-desc { grid-template-rows: 1fr; }
.js .sw-item[aria-selected="true"] .sw-desc > span { padding-top: 6px; }
.sw-bar { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; opacity: 0; }
.sw-stage { display: grid; padding: 28px; border-radius: 20px; background: var(--band); }
@media (max-width: 599px) { .sw-stage { padding: 12px; border-radius: 16px; } }
.sw-panel { grid-area: 1 / 1; display: grid; align-items: center; min-width: 0; transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.35s; }
.sw-panel:not(.on) { opacity: 0; visibility: hidden; transform: translateY(8px); }
.con { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(18, 18, 18, 0.04), 0 8px 20px -16px rgba(18, 18, 18, 0.16); overflow: hidden; min-width: 0; }
.con-head { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 0.8125rem; }
.con-head code { font-size: 0.75rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.con-head > :last-child { margin-left: auto; flex: none; }
.con-method { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--ink); color: var(--on-ink); font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.04em; }
.con-body { margin: 0; padding: 16px; font-size: 0.75rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.con-rows { list-style: none; margin: 0; padding: 6px 0; }
.con-rows li { display: grid; grid-template-columns: 64px 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 0.8125rem; }
.con-rows li:last-child { border-bottom: 0; }
.con-rows code { font-size: 0.75rem; color: var(--muted); }
.con-rows .faint { font: 0.75rem/1.4 var(--mono); }
.con-rows b { font-weight: 500; font-variant-numeric: tabular-nums; }
.con-rows b.plus { color: var(--add-text); }
.con-receipt li { grid-template-columns: minmax(0, 1fr) auto; }
.con-receipt .faint { font-family: var(--sans); }
@media (max-width: 479px) { .con-rows li { grid-template-columns: minmax(0, 1fr) auto; } .con-rows li > :nth-child(-n+2):not(:only-child) { display: none; } .con-receipt li > * { display: initial !important; } }
.con-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 16px; border-top: 1px solid var(--line); background: var(--panel); font-size: 0.75rem; color: var(--muted); }
.con-cost { flex: none; font-weight: 500; color: var(--add-text); }

/* ---------- Usage dashboard band ---------- */
.ledger-band { background: var(--band); padding-block: 96px; }
@media (min-width: 760px) { .ledger-band { padding-block: 128px; } }
.dash { background: var(--bg); border-radius: 18px; box-shadow: 0 1px 2px rgba(18, 18, 18, 0.04), 0 40px 80px -48px rgba(18, 18, 18, 0.35); overflow: hidden; }
.dash-top { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 0.8125rem; }
.log-title { font-weight: 500; }
.dash-range { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--pill); font-size: 0.75rem; color: var(--muted); }
.dash-range span { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; white-space: nowrap; }
.dash-range .on { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(18, 18, 18, 0.12); }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 0.75rem/1 var(--mono); color: var(--muted); }
@media (max-width: 479px) { .dash-range span:not(.on) { display: none; } .dash-top { padding: 0 14px; } }
.dash-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.metric { display: grid; gap: 4px; padding: 20px; min-width: 0; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric span { font-size: 0.8125rem; color: var(--muted); }
.metric b { font: 500 clamp(1.5rem, 3.2vw, 2.25rem)/1.1 var(--sans); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.metric small { font-size: 0.75rem; color: var(--faint); }
@media (max-width: 599px) { .metric { padding: 14px; } .metric small { display: none; } }
.dash-body { display: grid; }
@media (min-width: 900px) { .dash-body { grid-template-columns: 4fr 7fr; } .dash-chart { border-right: 1px solid var(--line); } }
.dash-body > * { min-width: 0; }
.dash-chart { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 20px; }
@media (max-width: 899px) { .dash-chart { border-bottom: 1px solid var(--line); } }
.dash-label { font-size: 0.8125rem; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 150px; }
.bars i { flex: 1; height: var(--h); min-height: 4px; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--blue) 18%, var(--bg)); transition: height 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bars i.now { background: var(--blue); }
.bars-axis { display: flex; justify-content: space-between; font: 0.6875rem/1 var(--mono); color: var(--faint); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 64px 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 0.8125rem; }
.feed li:last-child { border-bottom: 0; }
.feed .st { justify-self: start; }
.feed-ep { font-size: 0.75rem; color: var(--muted); }
.feed-target { font: 0.75rem/1.4 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-cost { font: 500 0.8125rem/1 var(--sans); font-variant-numeric: tabular-nums; text-align: right; }
.feed-cost.refund { color: var(--add-text); font-weight: 400; font-size: 0.75rem; }
@media (max-width: 479px) { .feed li { grid-template-columns: 58px minmax(0, 1fr) auto; padding: 0 14px; } .feed-ep { display: none; } }
.ledger-notes { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .ledger-notes { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.ledger-notes li { padding-top: 16px; border-top: 1px solid var(--line-strong); font-size: 0.875rem; color: var(--muted); }
.ledger-notes b { display: block; font-weight: 500; color: var(--text); margin-bottom: 2px; }

/* ---------- Pricing: one panel with the estimator, plans and credit costs ---------- */
.price-panel { padding: 8px; border-radius: 22px; background: var(--band); }
.estimator { padding: 22px 24px 24px; }
@media (max-width: 599px) { .estimator { padding: 16px 12px 20px; } }
.est-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.est-top label { font-size: 0.875rem; color: var(--muted); }
.est-top output { font: 500 1.75rem/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.estimator input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; margin: 22px 0; border-radius: 999px; background: linear-gradient(var(--blue), var(--blue)) 0 / var(--p, 40%) 100% no-repeat, var(--line-strong); cursor: pointer; }
.estimator input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); box-shadow: 0 2px 8px rgba(18, 18, 18, 0.18); transition: transform 0.15s ease; }
.estimator input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); box-shadow: 0 2px 8px rgba(18, 18, 18, 0.18); }
.estimator input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
.est-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg); }
.seg button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 0.8125rem/1 var(--sans); cursor: pointer; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.est-result { font-size: 0.875rem; color: var(--muted); }
.est-result b, .est-result a { color: var(--text); font-weight: 500; }
@media (max-width: 479px) { .seg { width: 100%; } .seg button { flex: 1; padding: 0 8px; } }
.plans { display: grid; background: var(--bg); border-radius: 16px; box-shadow: 0 1px 2px rgba(18, 18, 18, 0.05); overflow: hidden; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } .plan + .plan { border-left: 1px solid var(--line); } }
@media (max-width: 859px) { .plan + .plan { border-top: 1px solid var(--line); } }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; transition: background-color 0.35s ease; }
@media (max-width: 599px) { .plan { padding: 24px 20px; } }
.plan::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--blue); transform: scaleX(0); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.plan.match { background: color-mix(in srgb, var(--blue) 4%, var(--bg)); }
.plan.match::before { transform: scaleX(1); }
.plan-top { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.plan-name { font-size: 0.9375rem; font-weight: 500; margin-right: auto; }
.plan-badge, .plan-fit { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.6875rem; font-weight: 500; white-space: nowrap; }
.plan-badge { background: var(--pill); color: var(--text); }
.plan-fit { display: none; background: var(--blue); color: #ffffff; }
.plan.match .plan-fit { display: inline-flex; animation: fit-in 0.3s ease; }
.plan.match .plan-badge { display: none; }
@keyframes fit-in { from { opacity: 0; transform: translateY(3px); } }
.plan-price { font: 500 3rem/1 var(--sans); letter-spacing: -0.05em; margin-top: 20px; font-variant-numeric: lining-nums; }
.plan-price small { font: 400 0.875rem var(--sans); color: var(--muted); letter-spacing: 0; }
.plan-credits { margin-top: 14px; font-size: 0.9375rem; font-weight: 500; }
.plan-rate { margin: 2px 0 24px; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan .pill { width: 100%; }
.plan-features { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; font-size: 0.875rem; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--pill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23121212' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.costs { display: grid; gap: 14px 24px; padding: 22px 24px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .costs { grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: center; } }
@media (max-width: 599px) { .costs { padding: 18px 12px 12px; } }
.costs-title { grid-column: 1 / -1; font-size: 0.8125rem; font-weight: 500; }
@media (min-width: 860px) { .costs-title { grid-column: auto; grid-row: span 2; padding-right: 8px; } }
.cost { display: grid; gap: 2px; min-width: 0; align-content: start; }
.cost code { font-size: 0.75rem; color: var(--muted); }
.cost span { font-size: 0.8125rem; color: var(--muted); }
.cost b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.pay-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 4px 24px 18px; font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 599px) { .pay-note { padding: 4px 12px 14px; } }
.pay-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.04em; }
.custom-plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 16px; padding: 18px 16px 18px 24px; border: 1px solid var(--line); border-radius: 16px; font-size: 0.875rem; color: var(--muted); }
.custom-plan b { font-weight: 500; color: var(--text); }

/* ---------- Shared section heads ---------- */
.center-head { text-align: center; display: grid; gap: 14px; justify-items: center; margin-bottom: 64px; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.045em; }
.lede { color: var(--muted); font-size: 1rem; max-width: 36em; }

/* ---------- Feature band: stacked product moments ---------- */
.band { background: var(--band); padding-block: 96px 112px; }
@media (min-width: 760px) { .band { padding-block: 128px 144px; } }
.bento { display: grid; gap: 16px; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(5, 1fr); } .tile { grid-column: span 2; } .tile-wide { grid-column: span 3; } }
.tile { background: var(--bg); border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.tile-visual { padding: 32px 28px 8px; display: grid; place-items: center; min-height: 260px; }
@media (max-width: 599px) { .tile-visual { padding: 24px 16px 4px; min-height: 0; } }
.tile-text { padding: 20px 28px 28px; display: grid; gap: 6px; }
@media (max-width: 599px) { .tile-text { padding: 16px 16px 22px; } }
.tile-tag { font: 500 0.75rem/1.4 var(--mono); color: var(--muted); }
.tile-text h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.tile-text p:last-child { color: var(--muted); font-size: 0.875rem; }
.band-cta { text-align: center; margin-top: 112px; display: grid; gap: 20px; justify-items: center; }
.band-cta h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; }
.band-cta p { font-size: 0.875rem; color: var(--muted); }

/* Page, the Wisepage agent: floating toast on the hero playground */
.agent-toast { position: absolute; z-index: 2; right: -18px; top: -26px; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; width: min(340px, calc(100% - 40px)); padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -20px rgba(18, 18, 18, 0.35); text-align: left; }
.agent-toast .avatar-page { width: 36px; height: 36px; }
.toast-meta { font-size: 0.6875rem; color: var(--faint); }
.toast-text { font-size: 0.8125rem; line-height: 1.45; }
@media (max-width: 1199px) { .agent-toast { right: 12px; } }
@media (max-width: 759px) { .agent-toast { position: relative; right: auto; top: auto; width: 100%; margin-bottom: 14px; } }

/* Agent message with the Page avatar */
.agent-msg { display: grid; grid-template-columns: 44px 1fr; gap: 14px; width: 100%; max-width: 500px; }
.avatar-page { width: 44px; height: 44px; color: var(--blue); }
.agent-msg .avatar-page path { stroke-width: 1.4; }
.agent-msg .avatar-page path:last-child { stroke-width: 1.15; }
.agent-body { display: grid; gap: 8px; min-width: 0; }
.agent-meta { font-size: 0.75rem; color: var(--faint); }
.agent-text { font-size: 0.9375rem; line-height: 1.55; }
.preview { display: grid; gap: 4px; justify-items: start; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px -22px rgba(18, 18, 18, 0.35); }
.preview-title { font-size: 0.875rem; font-weight: 500; }
.preview-url { font: 0.75rem/1.4 var(--mono); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--pill); font-size: 0.6875rem; color: var(--muted); white-space: nowrap; }

/* Rendering: one big status button */
.render-demo { display: grid; gap: 14px; justify-items: center; text-align: center; }
.render-note { font-size: 0.8125rem; color: var(--faint); }
.big-btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 999px; background: var(--blue); color: #ffffff; font-size: 1rem; font-weight: 500; box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--blue) 70%, transparent); }
.big-btn svg { width: 18px; height: 18px; }
.render-sub { font-size: 0.75rem; color: var(--muted); }

/* Search results with thumbnails */
.results-card { width: 100%; max-width: 520px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 34px -26px rgba(18, 18, 18, 0.35); }
.results-q { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.results-q svg { width: 13px; height: 13px; color: var(--muted); }
.result-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.result-row:last-child { border-bottom: 0; }
.result-row > div { min-width: 0; }
.r-title { font-size: 0.875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-url { font: 0.75rem/1.4 var(--mono); color: var(--faint); }
@media (max-width: 479px) { .result-row .chip { display: none; } .result-row { grid-template-columns: 1fr; } }

/* Extraction with a product image and checked fields */
.extract-card { width: 100%; max-width: 520px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 12px 34px -26px rgba(18, 18, 18, 0.35); display: grid; gap: 14px; }
.extract-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.75rem; color: var(--faint); }
.valid-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--add-bg); color: var(--add-text); font-weight: 500; white-space: nowrap; }
.valid-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.875rem; }
.checks li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; }
.checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--add-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23146c43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.checks span { font: 0.75rem/1.4 var(--mono); color: var(--muted); }
.checks b { font-weight: 500; }

/* ---------- FAQ: heading on the side, one accordion column ---------- */
.faq-section { padding-top: 0; }
.faq-split { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq-split { grid-template-columns: 4fr 7fr; gap: 72px; align-items: start; } .faq-side { position: sticky; top: 104px; } }
.faq-side { display: grid; gap: 14px; justify-items: start; }
.ask { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--panel); font-size: 0.8125rem; color: var(--muted); }
.ask .avatar-page { width: 36px; height: 36px; }
.ask b { display: block; font-weight: 500; color: var(--text); }
.ask a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.faq { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-size: 1rem; font-weight: 500; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s ease; }
.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa p { color: var(--muted); font-size: 0.9375rem; padding: 0 36px 22px 0; }
.qa p code { font-size: 0.8125rem; padding: 0.1em 0.35em; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--text); overflow-wrap: anywhere; }
.qa a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Access panel ---------- */
.access-panel { background: var(--band); border-radius: 20px; padding: 64px 24px; text-align: center; }
@media (min-width: 760px) { .access-panel { padding: 96px 48px; } }
.access h2 { font: 500 clamp(2rem, 4.4vw, 3rem)/1.06 var(--sans); letter-spacing: -0.045em; }
.access-panel > p { color: var(--muted); max-width: 32em; margin: 14px auto 0; }
.perks { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.perks li { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--bg); font-size: 0.8125rem; }
.perks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.signup { max-width: 460px; margin: 32px auto 0; display: grid; gap: 10px; text-align: left; }
.signup-row { display: grid; gap: 8px; }
@media (min-width: 520px) { .signup-row { grid-template-columns: 1fr auto; } }
.signup input { width: 100%; height: var(--control-md); padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: 400 0.875rem/1.4 var(--sans); }
.signup input::placeholder { color: var(--faint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: 0.8125rem; text-align: center; }
.form-status.ok { color: var(--code-str); }
.form-status.error { color: var(--cut); }
.fine { font-size: 0.75rem; color: var(--faint); text-align: center; }
.fine a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer: links on top, an oversized wordmark, then the fine print ---------- */
.site-footer { background: var(--band); padding-block: 72px 36px; font-size: 0.8125rem; overflow: hidden; }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 5fr 7fr; gap: 64px; } }
.footer-brand { display: grid; gap: 20px; justify-items: start; align-content: start; }
.footer-tag { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.025em; max-width: 14em; text-wrap: balance; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h4 { font-size: 0.75rem; font-weight: 500; color: var(--faint); margin: 0 0 12px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.875rem; }
.footer-cols a { transition: color 0.15s ease; }
@media (max-width: 1023px) { .footer-cols ul { gap: 0; } .footer-cols a { display: inline-flex; align-items: center; min-height: 32px; } }
.footer-cols a:hover { color: var(--blue); }
.site-footer .wrap { container-type: inline-size; }
/* Sized to the full content width: ~21cqi without JS, then fitted exactly by the footer script */
.footer-mark { margin: 56px 0 0; font: 600 21cqi/1 var(--sans); letter-spacing: -0.06em; color: var(--line-strong); white-space: nowrap; user-select: none; }
.footer-mark span { display: inline-block; }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(32px, 4.5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line-strong); font-size: 0.75rem; color: var(--muted); }
.footer-base .to-top { margin-left: auto; color: var(--text); }
.footer-base .to-top:hover { color: var(--blue); }

/* ---------- Site owners page (WisepageBot) ---------- */
.bot { max-width: 880px; margin: 0 auto; padding: 72px 16px 104px; display: grid; gap: 64px; }
@media (min-width: 760px) { .bot { padding: 104px 32px 128px; gap: 88px; } }
.bot > * { min-width: 0; }
.bot-hero { display: grid; justify-items: center; gap: 14px; text-align: center; }
.bot-avatar { width: 64px; height: 64px; margin-bottom: 4px; }
/* Drawn larger here, so thinner strokes keep the same visual weight as the header logo */
.bot-avatar path { stroke-width: 0.96; }
.bot-avatar path:last-child { stroke-width: 0.8; }
.bot-avatar circle { r: 1.5px; }
.bot-hero h1 { font: 500 clamp(2.5rem, 5.6vw, 3.75rem)/1.04 var(--sans); letter-spacing: -0.05em; }
.bot-hero .lede { max-width: 36em; }
.bot-hero .perks { margin-top: 10px; }
.bot-hero .perks li { background: var(--panel); }
.bot-block { display: grid; gap: 16px; }
.bot-head { display: flex; align-items: baseline; gap: 12px; }
.bot-head .sw-num { color: var(--blue); }
.bot-head h2 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; }
.bot-block > p { max-width: 40em; color: var(--muted); }
.bot-block .con { margin-top: 4px; }
.bot-cards { display: grid; gap: 12px; margin-top: 4px; }
@media (min-width: 700px) { .bot-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bot-card { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 16px; background: var(--panel); }
.bot-card h3 { font-size: 0.9375rem; font-weight: 500; }
.bot-card p { font-size: 0.875rem; color: var(--muted); }
.copy { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); font: 500 0.75rem/1 var(--sans); cursor: pointer; transition: background-color 0.15s ease; }
.copy:hover { background: var(--panel); }
.bot-optout { display: grid; justify-items: center; gap: 14px; padding-block: 56px; }
@media (min-width: 760px) { .bot-optout { padding-block: 72px; } }
.bot-optout h2 { font: 500 clamp(1.75rem, 3.6vw, 2.25rem)/1.1 var(--sans); letter-spacing: -0.04em; }
.bot-optout > p { max-width: 34em; color: var(--muted); }
.bot-optout .bot-email { margin-top: 6px; font: 500 0.9375rem/1.4 var(--mono); color: var(--text); overflow-wrap: anywhere; user-select: all; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 680px; margin: 0 auto; padding: 72px 16px 104px; }
@media (min-width: 760px) { .prose { padding: 104px 32px 128px; } }
.prose h1 { font: 500 clamp(2.2rem, 5vw, 3rem)/1.08 var(--sans); letter-spacing: -0.045em; margin-bottom: 10px; }
.prose h2 { font-size: 1.0625rem; font-weight: 500; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 10px 0; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font-size: 0.8125rem; color: var(--faint); margin-bottom: 32px; }
.prose code { font-size: 0.8125rem; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 0.1em 0.35em; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }

/* ---------- Polish ---------- */
.typing { display: none; }
.footer-mark i { display: inline-block; font-style: normal; }
.pill[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.pill[aria-busy="true"]::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; }
::selection { background: var(--hl); color: var(--text); }
p { text-wrap: pretty; }
.hero h1 { font-optical-sizing: auto; }
.site-header { transition: box-shadow 0.25s ease, border-color 0.25s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(18, 18, 18, 0.35); }
.pill { transition: opacity 0.15s ease, background-color 0.15s ease, transform 0.15s ease; }
.pill:active { transform: scale(0.97); }
.link-arrow::after { display: inline-block; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.qa summary:hover { color: var(--blue); }
.qa summary { transition: color 0.2s ease; }

@media (prefers-reduced-motion: no-preference) {
  /* Playground: Run is pressed, then the response lands */
  .pg-run { animation: press 0.35s ease 1.2s both; }
  @keyframes press { 50% { transform: scale(0.94); opacity: 0.8; } }
  .agent-toast { animation: land 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 2.1s both; }
  .resp { animation: land 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 1.5s both; }

  /* Page load sequence */
  .rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 110ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes land { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

  /* Band mockups: rows appear one by one when the card comes into view (only armed below the fold) */
  .fcard > * { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .fcard.armed:not(.in) > * { opacity: 0; transform: translateY(12px) scale(0.98); }
  .fcard .big-btn { transition: transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) 0.35s; }
  .fcard.armed:not(.in) .big-btn { transform: scale(0.9); }

  /* Sections below the hero: settle in as they scroll into view */
  .reveal { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--o, 0) * 90ms); }
  .reveal.armed:not(.in) { opacity: 0; transform: translateY(18px); }
  .plan.reveal { transition: opacity 0.7s ease calc(var(--o, 0) * 90ms), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--o, 0) * 90ms), border-color 0.3s ease, box-shadow 0.3s ease; }

  /* Usage log: new rows slide in at the top */
  .feed li { transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 1.6s ease; }
  .feed li.new { opacity: 0; transform: translateY(-10px); background: color-mix(in srgb, var(--blue) 7%, transparent); }
  .live .dot-ok { animation: pulse 1.8s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 0%, transparent); } }

  /* FAQ answers open smoothly where the browser supports it */
  :root { interpolate-size: allow-keywords; }
  .qa::details-content { height: 0; overflow: clip; transition: height 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), content-visibility 0.35s allow-discrete; }
  .qa[open]::details-content { height: auto; }

  /* Page waves from the FAQ */
  .ask .avatar-page { animation: bob 3.2s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-3px) rotate(-4deg); } }

  /* Details switcher: a progress line under the active row while it advances on its own */
  .switcher.auto .sw-item[aria-selected="true"] .sw-bar { opacity: 1; animation: sw-progress 6s linear both; }
  @keyframes sw-progress { to { transform: scaleX(1); } }

  /* Dashboard bars rise when the dashboard comes into view */
  .dash .bars i { transition-delay: calc(var(--d, 0) * 30ms); }
  .dash.armed:not(.in) .bars i { height: 4px; }

  /* Hero: the URL is typed, Run is pressed, then the markdown streams in line by line */
  .pg-url-text { display: inline-block; animation: type 0.7s steps(40, end) 0.55s both; }
  @keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
  .pg-out { animation: stream 0.9s steps(9, end) 1.55s both; }
  @keyframes stream { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
  .pg-meta > div { animation: land 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .pg-meta > div:nth-child(1) { animation-delay: 1.7s; }
  .pg-meta > div:nth-child(2) { animation-delay: 1.8s; }
  .pg-meta > div:nth-child(3) { animation-delay: 1.9s; }
  .pg-meta > div:nth-child(4) { animation-delay: 2s; }
  .pg-meta > div:nth-child(5) { animation-delay: 2.1s; }

  /* Bento: Page types before answering */
  .fcard.armed .typing { display: inline-flex; gap: 4px; align-items: center; height: 30px; padding: 0 12px; justify-self: start; border-radius: 999px; background: var(--pill); overflow: hidden; }
  .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: dot 1s ease-in-out infinite; }
  .typing i:nth-child(2) { animation-delay: 0.15s; }
  .typing i:nth-child(3) { animation-delay: 0.3s; }
  @keyframes dot { 30% { transform: translateY(-3px); background: var(--muted); } }
  .fcard.armed.in .typing { animation: typing-done 0.25s ease 1.3s forwards; }
  @keyframes typing-done { to { opacity: 0; height: 0; margin-bottom: -8px; } }
  .fcard.armed .agent-text, .fcard.armed .preview { transition: opacity 0.5s ease 1.5s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 1.5s; }
  .fcard.armed .preview { transition-delay: 1.7s; }
  .fcard.armed:not(.in) .agent-text, .fcard.armed:not(.in) .preview { opacity: 0; transform: translateY(8px); }

  /* Bento: search results arrive one by one, extracted fields are checked off in order */
  .fcard.armed .result-row, .fcard.armed .checks li { transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(0.3s + var(--r, 0) * 0.16s); }
  .fcard.armed:not(.in) .result-row, .fcard.armed:not(.in) .checks li { opacity: 0; transform: translateY(8px); }
  .fcard.armed .checks li::before { transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); transition-delay: calc(0.45s + var(--r, 0) * 0.16s); }
  .fcard.armed:not(.in) .checks li::before { transform: scale(0); }
  .fcard.armed .valid-chip { transition: opacity 0.4s ease 1.2s, transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1) 1.2s; }
  .fcard.armed:not(.in) .valid-chip { opacity: 0; transform: scale(0.85); }
  .result-row:nth-of-type(2), .checks li:nth-child(2) { --r: 1; }
  .result-row:nth-of-type(3), .checks li:nth-child(3) { --r: 2; }
  .result-row:nth-of-type(4), .checks li:nth-child(4) { --r: 3; }

  /* Details switcher: the console fills in each time a panel opens */
  .sw-panel.on .con-body { animation: stream 0.7s steps(10, end) 0.1s both; }
  .sw-panel.on .con-rows li { animation: land 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .sw-panel.on .con-rows li:nth-child(1) { animation-delay: 0.1s; }
  .sw-panel.on .con-rows li:nth-child(2) { animation-delay: 0.22s; }
  .sw-panel.on .con-rows li:nth-child(3) { animation-delay: 0.34s; }
  .sw-panel.on .con-rows li:nth-child(4) { animation-delay: 0.46s; }
  .sw-panel.on .con-foot { animation: land 0.4s ease 0.6s both; }

  /* Dashboard: a metric flashes blue when a new call changes it */
  .metric b.bump { animation: bump 0.9s ease; }
  @keyframes bump { 20% { color: var(--blue); } }

  /* Pricing: plan columns arrive one after another */
  .price-panel.armed .plan { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.35s ease; }
  .price-panel.armed .plan:nth-child(2) { transition-delay: 0.12s, 0.12s, 0s; }
  .price-panel.armed .plan:nth-child(3) { transition-delay: 0.24s, 0.24s, 0s; }
  .price-panel.armed:not(.in) .plan { opacity: 0; transform: translateY(14px); }
  .plan.match .plan-price { animation: bump-scale 0.45s cubic-bezier(0.3, 1.5, 0.5, 1); }
  @keyframes bump-scale { 40% { transform: scale(1.04); } }
  .plan-price { transform-origin: left bottom; }

  /* Access: perks pop in, the form reports back smoothly */
  .access-panel.armed .perks li { transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1); transition-delay: calc(0.35s + var(--r, 0) * 0.1s); }
  .access-panel.armed:not(.in) .perks li { opacity: 0; transform: translateY(6px) scale(0.95); }
  .perks li:nth-child(2) { --r: 1; }
  .perks li:nth-child(3) { --r: 2; }
  .pill[aria-busy="true"]::after { animation: spin 0.7s linear infinite; }
  @keyframes spin { to { transform: rotate(1turn); } }
  .form-status.ok, .form-status.error { animation: land 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }

  /* Footer: the wordmark's letters rise in turn */
  .footer-mark.armed i { transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--l) * 60ms); }
  .footer-mark.armed:not(.in) i { opacity: 0; transform: translateY(35%); }

  /* MCP chat: the question, the tool call, then the answer */
  .chat.armed .chat-body > * { transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .chat.armed .msg-tool { transition-delay: 0.7s; }
  .chat.armed .msg-agent { transition-delay: 1.5s; }
  .chat.armed:not(.in) .chat-body > * { opacity: 0; transform: translateY(8px); }
  .setup-panel.on .con-body { animation: land 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
}
