/* ParleML site. One accent (violet), one signal colour (mint), hairlines over boxes. */
:root {
  --bg: #07090d;
  --bg-2: #0b0e14;
  --surface: #0f131b;
  --raised: #141a24;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef2f7;
  --soft: #c3cbd6;
  --muted: #8592a3;
  --accent: #8b7dff;
  --accent-strong: #6f5cff;
  --mint: #3fd8ad;
  --amber: #f2b44e;
  --code: #0a0d12;
  --code-text: #d6deea;
  --glow: rgba(124, 108, 255, .28);
  --shadow: 0 40px 120px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fbfbfd;
  --bg-2: #f3f4f8;
  --surface: #ffffff;
  --raised: #f6f7fb;
  --line: rgba(15, 23, 42, .09);
  --line-2: rgba(15, 23, 42, .16);
  --text: #0e1422;
  --soft: #334155;
  --muted: #5d6b80;
  --accent: #5b47f0;
  --accent-strong: #4a35e6;
  --mint: #0b9a74;
  --amber: #b9770e;
  --code: #0e1422;
  --code-text: #dfe6f1;
  --glow: rgba(91, 71, 240, .16);
  --shadow: 0 40px 100px -30px rgba(30, 40, 90, .35), 0 0 0 1px rgba(15, 23, 42, .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
code, pre, .mono { font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { margin: 0; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.035em; }
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
.eyebrow { display: inline-block; font: 600 .74rem/1 ui-monospace, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; }
.sub { color: var(--muted); font-size: 1.14rem; line-height: 1.6; max-width: 60ch; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
section { padding: 120px 0; position: relative; }
.sec-head { margin-bottom: 56px; }
.sec-head .sub { margin-top: 18px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 64px; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.08rem; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.mark { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(140deg, var(--accent) 0%, var(--mint) 100%); color: #fff; font: 800 .82rem system-ui; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--muted); font-size: .92rem; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--soft); cursor: pointer; display: grid; place-items: center; font-size: 1rem; }
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
#menu { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: .98rem; border: 1px solid var(--line-2); color: var(--text); background: transparent; transition: border-color .15s, background .15s, transform .15s; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent-strong); border-color: transparent; color: #fff; box-shadow: 0 8px 30px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.primary:hover { background: var(--accent); transform: translateY(-1px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btns { justify-content: center; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: -260px; width: 1200px; height: 720px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 760px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 20%, #000 0, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 20%, #000 0, transparent 75%); opacity: .55; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--soft); font-size: .86rem; margin-bottom: 20px; }
.pill b { font: 600 .7rem ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); background: color-mix(in srgb, var(--mint) 14%, transparent); padding: 3px 8px; border-radius: 999px; }
.hero h1 .grad { background: linear-gradient(92deg, var(--accent) 10%, var(--mint) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { margin: 20px auto 0; font-size: 1.15rem; max-width: 70ch; }
/* Even line lengths, so no short last line is left on its own. */
.hero h1, .hero .sub, .cmd-note { text-wrap: balance; }
.cmd { display: flex; align-items: stretch; max-width: 760px; margin: 26px auto 0; border-radius: 12px; background: var(--code); border: 1px solid var(--line-2); overflow: hidden; text-align: left; box-shadow: 0 20px 60px -30px rgba(0,0,0,.6); }
.cmd .prompt { padding: 15px 0 15px 18px; color: #3fd8ad; font: 600 .9rem ui-monospace, Consolas, monospace; user-select: none; }
.cmd code { flex: 1; padding: 15px 16px 15px 10px; color: var(--code-text); font-size: .86rem; line-height: 1.55; }
.cmd code .img { color: #3fd8ad; white-space: nowrap; }
.cmd button { border: 0; border-left: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #c9d3e0; padding: 0 18px; font: 600 .84rem system-ui; cursor: pointer; }
.cmd button:hover { background: rgba(255,255,255,.09); }
.cmd-note { max-width: 760px; margin: 8px auto 0; color: var(--muted); font-size: .74rem; text-align: center; }
.cmd-note code { font-size: .7rem; }
.hero .btns { margin-top: 20px; }
.ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 18px; color: var(--muted); font-size: .92rem; }
.ticks span { display: inline-flex; align-items: center; gap: 8px; }
.ticks svg { width: 16px; height: 16px; color: var(--mint); }
.stage { position: relative; margin-top: 40px; }
.stage::before { content: ""; position: absolute; inset: 8% 6% -4%; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(30px); }
.window { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.window .bar, .shot .bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--raised); border-bottom: 1px solid var(--line); }
.window .bar i, .shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.window .bar span { margin-left: 14px; color: var(--muted); font: .76rem ui-monospace, Consolas, monospace; }
.window .ph, .shot .ph { display: none; }
.window.empty .ph, .shot.empty .ph { display: grid; place-items: center; aspect-ratio: 16 / 10; color: var(--muted); font: 600 .9rem ui-monospace, Consolas, monospace; text-align: center; padding: 24px; background: repeating-linear-gradient(135deg, var(--raised) 0 14px, var(--surface) 14px 28px); }
/* The product screenshots are light-theme captures: dim them a little on the dark page. */
:root:not([data-theme="light"]) .stage .window img, :root:not([data-theme="light"]) .tour-stage img { filter: brightness(.82) contrast(1.04); }
.stage .window { -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }

/* ---------- built on ---------- */
.built { padding: 24px 0 0; }
.built p { text-align: center; color: var(--muted); font-size: .86rem; margin-bottom: 20px; }
.marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; color: var(--soft); opacity: .8; font: 600 1.02rem/1 ui-monospace, Consolas, monospace; letter-spacing: -.01em; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; grid-column: span 2; display: flex; flex-direction: column; gap: 24px; padding: 28px; border-radius: 18px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); overflow: hidden; }
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile:hover { border-color: var(--line-2); }
.tile h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .96rem; }
.tile .viz { margin-top: auto; }
.label { font: 600 .66rem ui-monospace, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.illus { position: absolute; top: 18px; right: 20px; opacity: .8; }

.rules { display: grid; gap: 10px; }
.rule { display: grid; grid-template-columns: 1fr 190px; gap: 18px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); }
.rule code { font-size: .8rem; color: var(--soft); line-height: 1.55; }
.rule code b { color: var(--accent); font-weight: 600; }
.bars { display: grid; gap: 6px; }
.bars div { display: grid; grid-template-columns: 36px 1fr 36px; gap: 8px; align-items: center; font: .72rem ui-monospace, Consolas, monospace; color: var(--muted); }
.bars i { height: 6px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 3px; background: var(--c, var(--mint)); }
.status { justify-self: start; font: 600 .64rem ui-monospace, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-top: 4px; display: inline-block; }
.status.ok { color: var(--mint); background: color-mix(in srgb, var(--mint) 14%, transparent); }
.status.no { color: var(--amber); background: color-mix(in srgb, var(--amber) 16%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--soft); font-size: .86rem; background: var(--raised); }
.term { border-radius: 12px; background: #0a0d12; border: 1px solid rgba(255,255,255,.08); padding: 16px 18px; font: .8rem/1.8 ui-monospace, Consolas, monospace; color: #b8c3d3; overflow-x: auto; white-space: nowrap; }
.term .k { color: #9d91ff; }
.term .g { color: #3fd8ad; }
.term .d { color: #6b778a; }
.term .q { color: #f2b44e; }
.floor { display: grid; gap: 12px; }
.floor div { display: grid; grid-template-columns: 104px 1fr 48px; gap: 12px; align-items: center; font: .78rem ui-monospace, Consolas, monospace; color: var(--muted); }
.floor i { height: 10px; border-radius: 5px; background: var(--line); position: relative; overflow: hidden; }
.floor i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--c); border-radius: 5px; }
.floor b { color: var(--text); font-weight: 600; text-align: right; }
.score { width: 100%; border-collapse: collapse; font: .8rem ui-monospace, Consolas, monospace; }
.score td { padding: 7px 0; border-bottom: 1px dashed var(--line-2); color: var(--soft); width: auto; min-width: 0; font-weight: 400; }
.score td:last-child { text-align: right; color: var(--accent); font-weight: 600; }
.score tr:last-child td { border-bottom: 0; }
.off { display: grid; gap: 8px; font: .82rem ui-monospace, Consolas, monospace; color: var(--soft); }
.off div { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); }
.off em { font-style: normal; color: var(--mint); }

/* ---------- agents ---------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.list { display: grid; margin-top: 36px; border-top: 1px solid var(--line); }
.list > div { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.list h3 { font-size: 1.02rem; margin-bottom: 4px; }
.list p { color: var(--muted); font-size: .95rem; }
.ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); }
.ico svg { width: 20px; height: 20px; }
.note { color: var(--muted); font-size: .92rem; margin-top: 24px; }
.flowcard { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); padding: 28px; box-shadow: var(--shadow); }
.flowcard svg { width: 100%; height: auto; display: block; }
.flowcard .n { fill: var(--raised); stroke: var(--line-2); stroke-width: 1.2; }
.flowcard .hot { stroke: var(--accent); stroke-width: 1.6; }
.flowcard .t { fill: var(--text); font: 700 17px system-ui, sans-serif; }
.flowcard .s { fill: var(--muted); font: 13px system-ui, sans-serif; }
.flowcard .m { fill: var(--mint); font: 600 11px ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.flowcard .ln { stroke: var(--accent); stroke-width: 1.6; fill: none; }
.flowcard .ln2 { stroke: var(--mint); stroke-width: 1.6; fill: none; stroke-dasharray: 4 5; }

/* ---------- interpretation ---------- */
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); width: max-content; max-width: 100%; margin: 0 auto 44px; overflow-x: auto; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 9px 18px; border-radius: 8px; font: 600 .92rem system-ui; cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-2), 0 4px 14px -6px rgba(0,0,0,.4); }
.panel { display: none; grid-template-columns: 1fr 2.1fr; gap: 56px; align-items: center; }
.panel.on { display: grid; }
.panel h3 { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 14px; }
.panel p { color: var(--muted); }
.shot { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.more { display: block; text-align: center; margin-top: 44px; font-weight: 600; }

/* ---------- details ---------- */
#details { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#details .wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 80px; align-items: start; max-width: 1180px !important; }
#details .section-head { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 104px; }
#details .section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
#details .section-head .lead { color: var(--muted); margin-top: 18px; font-size: 1.05rem; }
#details .wrap > :not(.section-head) { grid-column: 2; }
.group { font: 600 .72rem ui-monospace, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin: 48px 0 6px; }
.group:first-of-type { margin-top: 4px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; font-weight: 600; font-size: 1.1rem; color: var(--text); }
summary::-webkit-details-marker { display: none; }
summary small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; font-size: .92rem; }
summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: no-repeat center / 12px 2px linear-gradient(var(--accent), var(--accent)), no-repeat center / 2px 12px linear-gradient(var(--accent), var(--accent)); }
details[open] summary::after { background: no-repeat center / 12px 2px linear-gradient(var(--accent), var(--accent)); }
summary:hover::after { border-color: var(--accent); }
.dbody { padding: 0 0 32px; color: var(--soft); font-size: .98rem; }
.dbody > * + * { margin-top: 14px; }
.dbody ul { margin: 0; padding-left: 1.15em; }
.dbody li { margin: 6px 0; }
.dbody li::marker { color: var(--accent); }
.dbody strong { color: var(--text); }
.dbody h3 { margin-top: 30px !important; margin-bottom: 4px !important; }
.dbody .grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.dbody .card { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.dbody .card .tag { font: 600 .66rem ui-monospace, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); margin-bottom: 8px; }
.dbody .card h3 { font-size: .98rem; margin: 0 0 6px !important; }
.dbody .card p { font-size: .9rem; color: var(--muted); }
.dbody .card ul { font-size: .92rem; color: var(--soft); }
.dbody .lead { font-size: 1rem; color: var(--soft); margin: 14px 0 0 !important; }
.dbody .note { margin-top: 12px; }
.tip { padding: 12px 16px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 0 10px 10px 0; color: var(--soft); font-size: .94rem; }
.warn { color: var(--amber); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two h3 { font-size: 1rem; margin: 0 0 10px !important; }

/* tables */
.tbl { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font: 600 .68rem ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--raised); }
td { color: var(--muted); }
td:first-child { color: var(--text); font-weight: 600; width: 34%; min-width: 9em; }
td.us, th.us { color: var(--text); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
th.us { color: var(--accent); }
.wide td:first-child { width: auto; }
.wide td, .wide th { min-width: 9.5em; }
.scroll-hint { display: none; color: var(--muted); font-size: .85rem; }

/* ---------- cta + footer ---------- */
.cta { overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; bottom: -320px; width: 1000px; height: 640px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.cta .wrap { position: relative; }
.cta .btns { margin-top: 28px; }
.contact { margin-top: 22px; color: var(--muted); font-size: .92rem; }
footer { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
footer p { margin-top: 10px; max-width: 52ch; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: flex-start; }
footer nav a { color: var(--muted); }
footer nav a:hover { color: var(--text); }

section[id], details[id] { scroll-margin-top: 84px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.w3, .tile.w4 { grid-column: span 2; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .panel, .panel.on { grid-template-columns: 1fr; gap: 24px; }
  #details .wrap { display: block; }
  #details .section-head { position: static; margin-bottom: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 80px 0; }
  .hero { padding-top: 56px; }
  .nav nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 4px; padding: 12px 20px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 10px 0; font-size: 1rem; }
  #menu { display: grid; margin-left: auto; }
  .rule { grid-template-columns: 1fr; gap: 10px; }
  .cmd code { font-size: .78rem; }
  .btns .btn { flex: 1 1 auto; }
  .stage { margin-top: 48px; }
  .marks { gap: 12px 26px; font-size: .9rem; }
  .tile { padding: 22px; }
  .dbody .grid, .two { grid-template-columns: 1fr; }
  .dbody .tbl:not(.wide) thead { display: none; }
  .dbody .tbl:not(.wide) tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .dbody .tbl:not(.wide) tr:last-child { border-bottom: 0; }
  .dbody .tbl:not(.wide) td { display: block; border: 0; padding: 2px 0; width: auto; min-width: 0; }
  .wide td:first-child, .wide th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
  .wide th:first-child { background: var(--raised); }
  .scroll-hint { display: block; }
}
@media (max-width: 760px) {
  .illus { position: static; order: -1; margin-bottom: -12px; }
  .pill { font-size: .78rem; text-align: left; }
}

/* code blocks stand out from the dark page: raised surface, visible edge, soft inner highlight */
:root { --code: #151c28; --code-edge: rgba(139, 125, 255, .35); }
:root[data-theme="light"] { --code: #121826; --code-edge: rgba(15, 23, 42, .2); }
.cmd { border-color: var(--code-edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent), 0 20px 50px -24px rgba(0,0,0,.6); }
.cmd button { background: rgba(255,255,255,.06); }
.term { background: var(--code); border-color: var(--code-edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
#compare .wide th.us, #compare .wide td.us { width: 34%; min-width: 16em; }
#compare .wide td:first-child { width: 14%; }
@media (min-width: 761px) {
  .wide td, .wide th { min-width: 0; }
  #compare .wide th.us, #compare .wide td.us { min-width: 0; }
  #d-oss .wide td.us, #d-oss .wide th.us { width: 22%; }
}

/* ---------- product tour ---------- */
.tour { max-width: 1080px; margin: 0 auto; }
.tour-main { position: relative; }
.tour-stage { margin: 0; cursor: zoom-in; }
.tour-stage img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--surface); }
.tour-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(8px); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; }
.tour-nav:hover { border-color: var(--accent); color: var(--accent); }
.tour-nav.prev { left: -22px; }
.tour-nav.next { right: -22px; }
.tour-cap { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: baseline; margin: 26px 4px 22px; }
.tour-cap h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.tour-cap p { grid-column: 1; color: var(--muted); max-width: 70ch; }
.tour-count { grid-row: 1; grid-column: 2; color: var(--muted); font: .82rem ui-monospace, Consolas, monospace; }
.thumbs { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.thumb { flex: 0 0 132px; scroll-snap-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 0; background: var(--surface); cursor: pointer; overflow: hidden; text-align: left; opacity: .62; transition: opacity .15s, border-color .15s, transform .15s; }
.thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; border-bottom: 1px solid var(--line); }
.thumb span { display: block; padding: 7px 10px; font-size: .78rem; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb:hover { opacity: .9; }
.thumb[aria-selected="true"] { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.thumb:focus-visible, .tour-nav:focus-visible, .tour-stage img:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#zoom { padding: 0; border: 0; border-radius: 12px; max-width: min(96vw, 1600px); max-height: 94vh; background: var(--surface); box-shadow: var(--shadow); }
#zoom::backdrop { background: rgba(3, 5, 9, .78); backdrop-filter: blur(4px); }
#zoom img { display: block; max-width: min(96vw, 1600px); max-height: 94vh; width: auto; height: auto; }
.zoom-close { position: absolute; top: 10px; right: 10px; background: color-mix(in srgb, var(--bg) 85%, transparent); }
@media (max-width: 1140px) { .tour-nav.prev { left: 8px; } .tour-nav.next { right: 8px; } }
@media (max-width: 760px) {
  .tour-nav { width: 36px; height: 36px; font-size: 1.3rem; }
  .tour-cap { grid-template-columns: 1fr; }
  .tour-count { grid-row: auto; grid-column: 1; }
  .thumb { flex-basis: 108px; }
}
.tour { max-width: 900px; }
.tour-stage img { aspect-ratio: 16 / 9; }
#tour .sec-head { margin-bottom: 40px; }

/* phones: the theme switch sits beside the menu button, and the two smallest tile visuals give way */
@media (max-width: 760px) {
  #theme { margin-left: auto; }
  #menu { margin-left: 0; }
  .tile .viz:has(.score), .tile .viz.off { display: none; }
  .tile { gap: 18px; }
  .bento { gap: 12px; }
  .built { padding-top: 8px; }
}
@media (max-width: 760px) { .nav .wrap { gap: 10px; } }
