/* IntelMCP site. One stylesheet, no scripts, no inline styles (the CSP allows neither).
   Dark first; a light theme follows the system preference. Product views (.frame) stay
   dark in both themes, like the console they depict. Colour pairs meet WCAG AA. */

/* ---- Fonts: IBM Plex (SIL Open Font License, /fonts/OFL.txt), IBM's own split files ---- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/IBMPlexSans-Regular-Pi.woff2") format("woff2");
  unicode-range: U+2190-2199, U+2713, U+2116, U+2032-2033; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/IBMPlexSans-Regular-Cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/IBMPlexSansHebrew-Regular.woff2") format("woff2");
  unicode-range: U+0590-05FF, U+200C-200F, U+FB1D-FB4F; }

/* ---- Tokens ---- */
:root, .frame {
  --bg: #0f1115; --raised: #13161b; --surface: #171a21; --surface-2: #1d2129;
  --line: #262a33; --line-strong: #363c48;
  --fg: #e8eaee; --muted: #a4abb7; --faint: #8b93a0;
  --accent: #8ea2ff; --accent-hover: #b1beff; --accent-ink: #0f1115; --accent-soft: #1c2340;
  /* Reserved: incident status and severity, nothing else. */
  --new: #ff8566; --update: #e6b450; --repeat: #9aa3b0;
  --critical: #ff6b7a; --high: #ff9a52; --medium: #d9c45c; --low: #8fb8d9;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}
:root { color-scheme: dark light; }
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9; --raised: #eef0f4; --surface: #ffffff; --surface-2: #f1f3f6;
    --line: #dce0e6; --line-strong: #c5cbd4;
    --fg: #12151b; --muted: #4a5260; --faint: #5f6876;
    --accent: #2f4fd6; --accent-hover: #1f3bb0; --accent-ink: #ffffff; --accent-soft: #e6ebff;
    --new: #b93f1d; --update: #8a6200; --repeat: #596270;
    --critical: #b4233a; --high: #a34a0a; --medium: #7a6700; --low: #2f6690;
  }
  .frame { color-scheme: dark; }
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  font-kerning: normal; text-rendering: optimizeLegibility;
}
:lang(ar), :lang(fa) { font-family: "IBM Plex Sans Arabic", var(--sans); }
:lang(he) { font-family: "IBM Plex Sans Hebrew", var(--sans); }
[dir="rtl"] { text-align: right; unicode-bidi: isolate; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; letter-spacing: -0.012em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 1.3rem + 3.6vw, 3.5rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p, ul, ol, dl { margin: 0 0 1em; }
p { text-wrap: pretty; }
code, pre, kbd, samp { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; line-height: 1.55; margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
img, svg { max-width: 100%; height: auto; }
strong { font-weight: 600; }
::selection { background: var(--accent-soft); color: var(--fg); }

/* ---- Layout ---- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; font-size: 1.45rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: 0.45em; }
.band { padding: 72px 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--raised); }
.band > .wrap > h2 + .lead { margin-top: -0.2em; }
.page-head { padding: 56px 0 8px; }
.page-head .lead { max-width: 64ch; }
.page-body { padding: 24px 0 72px; }
.grid { display: grid; gap: 20px; }
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 760px) {
  .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
  .split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
  .toc { position: sticky; top: 24px; align-self: start; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .band { padding: 52px 0; }
  .page-head { padding-top: 40px; }
}

/* ---- Skip link, header, nav ---- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--fg); }
.brand svg { width: 28px; height: 28px; flex: none; }
.mark-ring { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.mark-ring.outer { opacity: 0.55; }
.mark-sweep { stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
.mark-core { fill: var(--fg); }
.mark-blip { fill: var(--new); }
.site-header nav { display: flex; align-items: center; gap: 4px 22px; margin-left: auto; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--fg); }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.site-header .button { padding: 7px 14px; font-size: 0.92rem; }
@media (max-width: 700px) {
  .site-header .wrap { padding-top: 10px; padding-bottom: 8px; gap: 8px 12px; }
  .site-header .button { margin-left: auto; }
  .site-header nav { order: 3; width: 100%; margin-left: 0; gap: 20px; overflow-x: auto; padding: 4px 0; }
}

/* ---- Buttons and small type ---- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); padding: 11px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; line-height: 1.25; text-align: center; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.button.secondary { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.button.secondary:hover { border-color: var(--accent); color: var(--fg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 14px; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.small, .note { font-size: 0.9rem; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.works-in { font-size: 0.9rem; color: var(--faint); margin-top: 18px; }
.works-in span + span::before { content: "·"; margin: 0 8px; color: var(--line-strong); }

/* ---- Hero ---- */
.hero { padding: 64px 0 72px; background: radial-gradient(900px 480px at 78% 30%, rgba(142, 162, 255, 0.08), transparent 70%); }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: 1.2rem; }
.price-inline { font-weight: 600; color: var(--fg); }
@media (min-width: 1000px) { .hero { padding: 88px 0 96px; } .hero .split { align-items: center; } }

/* ---- Cards ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .eyebrow { margin-bottom: 10px; }
.card.link { color: inherit; text-decoration: none; display: block; }
.card.link:hover { border-color: var(--line-strong); }

/* ---- Product views: the console frame ---- */
.frame { background: var(--surface); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 24px 60px -30px rgba(0, 0, 0, 0.7); font-size: 0.95rem; }
.frame-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--raised); font-family: var(--mono); font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; }
.frame-body { padding: 18px; }
.illustrative { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--update); border: 1px solid currentColor; border-radius: 4px; padding: 1px 7px; white-space: nowrap; }
.frame-caption { font-size: 0.88rem; color: var(--muted); margin-top: 12px; }

/* Conversation */
.chat { display: grid; gap: 16px; }
.turn { display: grid; gap: 6px; }
.speaker { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.turn.you .bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; justify-self: start; max-width: 46ch; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.tool { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); background: var(--raised); border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; }
.incidents { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.incidents > li { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--raised); }
.incidents .head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 4px; }
.incidents .title { font-weight: 600; }
.incidents p { margin: 4px 0 0; color: var(--muted); font-size: 0.93rem; }
.quote { margin: 8px 0 0; padding: 8px 12px; border-inline-start: 2px solid var(--line-strong); color: var(--fg); background: var(--surface); border-radius: 0 6px 6px 0; font-size: 0.95rem; }
.quote[dir="rtl"] { border-radius: 6px 0 0 6px; }

/* Status badges (incident role) and severity: reserved colours */
.badge { display: inline-block; font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 4px; padding: 0 6px; line-height: 1.6; white-space: nowrap; }
.badge.new { color: var(--new); }
.badge.update { color: var(--update); }
.badge.repeat { color: var(--repeat); }
.sev { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.sev::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--low); }
.sev.critical::before { background: var(--critical); }
.sev.high::before { background: var(--high); }
.sev.medium::before { background: var(--medium); }
.verdict { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.verdict strong { color: var(--fg); font-weight: 500; }

/* Alert card */
.alert-card .frame-body { display: grid; gap: 14px; }
.alert-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.alert-top .time { margin-left: auto; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.alert-title { font-size: 1.08rem; font-weight: 600; margin: 0; line-height: 1.35; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 0.88rem; }
.kv dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding-top: 2px; }
.kv dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.excerpt { margin: 0; padding: 12px 14px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; font-size: 1.05rem; line-height: 1.8; }
.summary { margin: 0; color: var(--muted); font-size: 0.93rem; }
.summary strong { color: var(--fg); }
.iocs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ioc { font-family: var(--mono); font-size: 0.8rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; color: var(--fg); overflow-wrap: anywhere; }
.ioc .t { color: var(--faint); margin-right: 6px; }
.alert-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.fake-link { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

/* Code-like blocks inside frames */
.frame pre { background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0; font-size: 0.82rem; }
.k { color: var(--accent); }
.s { color: var(--fg); }
.c { color: var(--faint); }

/* Illustrative dashboard sketch: bars use fixed height classes (no inline styles) */
.dash-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (min-width: 560px) { .dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dash-stat { background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.dash-stat b { display: block; font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-stat span { font-size: 0.78rem; color: var(--muted); }
.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; height: 132px; padding: 8px 4px 0; border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-direction: column-reverse; gap: 2px; }
.bar i { display: block; border-radius: 2px; }
.bar .l { background: var(--low); } .bar .m { background: var(--medium); } .bar .h { background: var(--high); } .bar .c { background: var(--critical); }
.u1 { height: 6px; } .u2 { height: 12px; } .u3 { height: 18px; } .u4 { height: 24px; } .u5 { height: 30px; }
.u6 { height: 36px; } .u7 { height: 42px; } .u8 { height: 48px; } .u10 { height: 60px; } .u12 { height: 72px; }
.bar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding: 6px 4px 0; font-family: var(--mono); font-size: 0.7rem; color: var(--faint); text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }

/* ---- Steps ---- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps > li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps > li::before { content: "0" counter(step); display: block; font-family: var(--mono); font-size: 0.85rem; color: var(--accent); margin-bottom: 10px; }
.steps h3 { margin-bottom: 0.4em; }
.steps p { color: var(--muted); margin-bottom: 0.6em; }
.steps p:last-child { margin-bottom: 0; }

/* ---- Example prompts by role ---- */
.role h3 { display: flex; align-items: baseline; gap: 10px; }
.prompts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.prompts li { font-family: var(--mono); font-size: 0.86rem; line-height: 1.5; padding: 9px 12px 9px 30px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; position: relative; }
.prompts li::before { content: "›"; position: absolute; left: 12px; top: 8px; color: var(--accent); }

/* ---- Feature lists, facts, checks ---- */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px 32px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.features li { padding-left: 22px; position: relative; }
.features li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border: 1.5px solid var(--accent); border-radius: 2px; }
.features strong { display: block; }
.not-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.not-list li { padding-left: 26px; position: relative; color: var(--muted); }
.not-list li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }
.not-list strong { color: var(--fg); }
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts > div { background: var(--surface); padding: 18px 20px; }
.facts dt { font-size: 0.85rem; color: var(--muted); }
.facts dd { margin: 0 0 4px; font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.asof { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); margin: 12px 0 0; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.langs li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 0.95rem; }
.langs .code { font-family: var(--mono); font-size: 0.75rem; color: var(--faint); margin-inline-start: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.tags li { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trust li { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.trust strong { display: block; margin-bottom: 4px; }
.trust span { color: var(--muted); font-size: 0.95rem; }

/* ---- Pricing ---- */
.plan { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 28px; max-width: 520px; }
.plan .name { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.price { font-size: 3rem; font-weight: 600; margin: 0; letter-spacing: -0.03em; line-height: 1.1; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 9px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 0.42em; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan .button { width: 100%; }
.plan .small { margin: 14px 0 0; }

/* ---- FAQ and connect tabs (details, no script) ---- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 15px; font-family: var(--mono); font-size: 1.2rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); max-width: 70ch; }
.faq details > div p:last-child { margin-bottom: 0; }
.tabs { display: grid; gap: 10px; margin: 0 0 1.2em; }
.tabs details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tabs details[open] { border-color: var(--line-strong); }
.tabs summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.tabs summary::-webkit-details-marker { display: none; }
.tabs summary::after { content: "Show"; font-family: var(--mono); font-size: 0.75rem; color: var(--accent); align-self: center; }
.tabs details[open] summary::after { content: "Hide"; }
.tabs details > div { padding: 0 18px 16px; }
.tabs details > div > :last-child { margin-bottom: 0; }

/* ---- Callouts, changelog, toc ---- */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin: 0 0 1.2em; }
.callout p:last-child { margin-bottom: 0; }
.cta-band { text-align: left; }
.cta-band h2 { max-width: 20ch; }
.changelog { list-style: none; padding: 0; margin: 0; }
.changelog > li { display: grid; gap: 4px 32px; padding: 24px 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .changelog > li { grid-template-columns: 160px minmax(0, 1fr); } }
.changelog time { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); padding-top: 3px; }
.changelog ul { margin: 0; padding-left: 1.1em; }
.changelog li li { margin-bottom: 0.5em; }
.toc { font-size: 0.92rem; }
.toc p { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.toc ul { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--fg); }
@media (max-width: 999px) { .toc { display: none; } }
.legal-meta { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: 0.92rem; background: var(--raised); }
.footer-cols { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .footer-cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-cols h2 { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-cols a { color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--fg); text-decoration: underline; }
.footer-brand p { max-width: 36ch; margin-top: 12px; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; font-size: 0.85rem; color: var(--faint); }
.footer-legal p { margin: 0 0 6px; }
@media (max-width: 520px) { .footer-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; color: #000; }
}

/* ---- Small additions ---- */
.features.single { grid-template-columns: minmax(0, 1fr); }
.prompt-menu-title { margin: 40px 0 16px; }
.frame-bar span { overflow-wrap: anywhere; }
.grid + .note, .grid + p, .steps + .note, .facts + .asof + .grid { margin-top: 20px; }
.band .grid + p { margin-top: 24px; }
figure { margin: 0; }
.frame > figcaption.frame-caption { margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--line); background: var(--raised); font-size: 0.84rem; }
.frame + .frame-caption { margin: 12px 0 28px; }
.frame pre + pre { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.features + .note, .features + p { margin-top: 20px; }
@media (min-width: 1000px) { .split > .frame { position: sticky; top: 24px; } }
.steps-stacked { grid-template-columns: minmax(0, 1fr) !important; }
.h3 { font-size: 1.15rem; }
.prose .prompts { max-width: none; }
.glossary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; }
.glossary dt { font-weight: 600; margin-top: 10px; }
.glossary dd { margin: 0; color: var(--muted); }
@media (min-width: 640px) { .glossary { grid-template-columns: 180px minmax(0, 1fr); } .glossary dt, .glossary dd { margin-top: 10px; } }
.page-body h2:first-child { margin-top: 0; }
@media (max-width: 420px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.works-in span { white-space: nowrap; }
.band .faq { max-width: 820px; }
.page-body > .wrap > section { margin-bottom: 64px; }
.page-body > .wrap > section > h2 { margin-top: 0; }
.asof { margin-bottom: 24px; }
.page-body .faq + h2 { margin-top: 48px; }
.page-body .narrow > h2 { margin-top: 48px; font-size: 1.5rem; }
.page-body .narrow > h2:first-child { margin-top: 0; }
