/* Homepage (index.html): isometric / 3D space, in the Botzilla web app's dark palette (MainLayout.razor PaletteDark):
   slate floor with an isometric dot lattice, panels that float above it. */
:root {
    --bg: #363b44;
    --dot: rgba(166, 175, 187, .16);
    --surface: #2f343c;
    --surface-2: #3b414b;
    --chrome: #424954;
    --line: #4a525e;
    --edge: #272b32;
    --ink: #e7eaef;
    --muted: #a6afbb;
    --green: #4ccd8d;
    --green-deep: #2e6b4d;
    --green-edge: #1b3f2d;
    --green-soft: rgba(76, 205, 141, .12);
    --blue: #5291ef;
    --amber: #f1bb6e;
    --rose: #ef6b6b;
    --shadow: 28px 36px 48px -18px rgba(0, 0, 0, .55);
    --radius: 14px;
    --sans: "Segoe UI", "Inter", Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    --ease: cubic-bezier(.2, .75, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    line-height: 1.55;
    background-color: var(--bg);
    /* Triangular lattice: two offset dot layers give the isometric grid. */
    background-image:
        radial-gradient(circle, var(--dot) 1.1px, transparent 1.6px),
        radial-gradient(circle, var(--dot) 1.1px, transparent 1.6px);
    background-size: 36px 20.78px;
    background-position: 0 0, 18px 10.39px;
    -webkit-font-smoothing: antialiased;
    /* The page is at least one screen tall and main takes the spare room, so the footer always sits at the bottom. */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
main { overflow-x: clip; flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px;
    font: 600 15px/1 var(--sans); text-decoration: none;
    color: #fff; background: var(--green-deep);
    border-radius: 10px; border: 1px solid #3f8a64;
    box-shadow: 4px 4px 0 var(--green-edge);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--green-edge); }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--green-edge); }
/* Outlined, like the web app's secondary buttons (Manage, Refresh). */
.button-ghost { color: var(--blue); background: var(--surface); border-color: rgba(82, 145, 239, .55); box-shadow: 4px 4px 0 var(--edge); }
.button-ghost:hover { box-shadow: 6px 6px 0 var(--edge); }
.button-ghost:active { box-shadow: 1px 1px 0 var(--edge); }

/* ---------- Header ---------- */
/* Floating glass pill (after index9), in the dark palette. */
.site-header { position: sticky; top: 12px; z-index: 20; margin-top: 12px; padding: 0 16px; }
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 7px 7px 7px 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(47, 52, 60, .72); border: 1px solid rgba(231, 234, 239, .1); border-radius: 999px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 14px 34px -14px rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .header-inner { background: rgba(47, 52, 60, .97); }
}
.brand { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.beta { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; color: var(--green); background: var(--green-soft); }
nav { display: flex; align-items: center; gap: 2px; }
.nav-link { white-space: nowrap; padding: 8px 12px; border-radius: 99px; text-decoration: none; color: var(--muted); font-size: 15px; }
.nav-link:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
.nav-cta { white-space: nowrap; padding: 8px 16px; border-radius: 99px; background: var(--ink); color: #1e2228; text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-cta:hover { background: #fff; }

/* ---------- Shared browser bits ---------- */
.omni { position: relative; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.omni b { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--muted); opacity: .55; }
.omni .url { min-width: 0; flex: 1; padding: 3px 10px; font: 400 11.5px/1.4 var(--mono); color: var(--muted); background: var(--surface-2); border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skeleton { display: grid; align-content: start; gap: 10px; padding: 18px; background: var(--surface); }
.skeleton span { height: 10px; border-radius: 4px; background: var(--chrome); }
.skeleton span:nth-child(1) { width: 52%; height: 14px; }
.skeleton span:nth-child(2) { width: 86%; }
.skeleton span:nth-child(3) { width: 70%; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px; padding: 48px 0 220px; }
/* "Elevated" like the buttons and cards: a hard offset edge under the letters. */
.eyebrow { margin-bottom: 16px; font: 650 22px/1.2 var(--sans); color: var(--green); letter-spacing: .01em; text-shadow: 2px 2px 0 var(--green-edge); }
h1 { font-size: clamp(34px, 4.4vw, 58px); font-weight: 700; }
h1 span { color: var(--green); }
.lead { margin-top: 22px; max-width: 30em; font-size: 18px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.platform { margin-top: 18px; font-size: 13px; color: var(--muted); }

.stack-stage { position: relative; display: grid; place-items: center; perspective: 1800px; padding: 40px 0 10px; }
.stack {
    --flat: var(--scroll-flat, 0);
    position: relative; width: min(560px, 100%);
    transform-style: preserve-3d;
    transform: rotateX(calc(54deg * (1 - var(--flat)))) rotateZ(calc(-36deg * (1 - var(--flat)))) translateY(calc(-30px * (1 - var(--flat))));
    transition: transform .7s var(--ease);
}
/* Hover untilts the stack to a flat front view. Only the stage's own box takes the pointer: the slabs move as they
   tilt, so letting them be hovered made the stack flatten out from under the mouse, tilt back, and shake. */
.stack { pointer-events: none; }
.stack-stage:hover .stack { --flat: 1; }
.slab {
    position: absolute; inset: 0;
    transform-style: preserve-3d;
    /* Tilted: slabs spaced up the z axis. Flat: they sit just behind the front one, peeking above it. */
    transform: translate3d(calc(var(--i) * -22px * (1 - var(--flat))), calc(var(--i) * (26px - 42px * var(--flat))), calc(var(--i) * (-58px + 42px * var(--flat))));
    transition: transform .7s var(--ease);
}
.slab:first-child { position: relative; }
.slab-lift {
    height: 100%;
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--edge); border-radius: 12px; overflow: hidden;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 6px 6px 0 -1px var(--edge);
    animation: bob 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * -1.4s);
}
@keyframes bob { 50% { transform: translateZ(12px); } }
/* The floor shadow belongs to the bottom slab: a soft box-shadow in its own plane, so it always sits right under the
   stack. (A separate blurred layer pushed down the z axis showed as a detached dark patch beside the slabs.) */
.slab:last-child .slab-lift { box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 6px 6px 0 -1px var(--edge), 30px 40px 44px -4px rgba(0, 0, 0, .5); }
.slab-mini .slab-lift { background: var(--surface-2); }
.chrome { display: flex; align-items: flex-end; gap: 4px; height: 32px; padding: 0 10px; background: var(--chrome); }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 14px; font: 500 11.5px/1 var(--sans); color: var(--muted); border-radius: 8px 8px 0 0; white-space: nowrap; }
.tab.is-active { color: var(--ink); background: var(--surface); }
.tab i { width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--green)); }
.tab-ghost { width: 70px; height: 18px; margin-bottom: 4px; background: rgba(255, 255, 255, .05); border-radius: 6px; }
.slab[data-bot="2"] { --c: var(--blue); }
.slab[data-bot="3"] { --c: var(--amber); }
.slab[data-bot="4"] { --c: var(--rose); }
/* The address bar's progress line runs once per Navigate. */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--c, var(--green)); transform-origin: left; transform: scaleX(0); opacity: 0; }
.slab.is-loading .progress i { animation: load .75s var(--ease) forwards; }
@keyframes load { 0% { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.stack-count { position: absolute; right: 6%; bottom: 0; font: 500 12px/1 var(--mono); color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 7px 10px; border-radius: 8px; box-shadow: 3px 3px 0 var(--edge); }

/* ---------- Mini Studio inside each bot slab: workflow on the left, the browser (tabs, address bar, page) on the right ---------- */
.slab-screen {
    position: relative; margin: 0; aspect-ratio: 1820 / 1180; overflow: hidden;
    display: grid; grid-template-columns: 41% minmax(0, 1fr);
    background: var(--surface); font-size: 10.5px; line-height: 1.3;
}
.slab-screen.is-snap::after { content: ""; position: absolute; inset: 0; background: #fff; animation: snap .5s ease-out forwards; pointer-events: none; }
@keyframes snap { from { opacity: .7; } to { opacity: 0; } }
.browser { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.browser .page { flex: 1; min-height: 0; overflow: hidden; }

/* Workflow cards, drawn like Studio's: icon, bold title, a one-line summary with Studio's token colours
   (variables blue, lists green, dictionaries violet, tables amber, literal values peach). */
.wf { --card: #2c3138; --card-line: #3a414b; --val: #e6ae96; --var: #58a0fa; --list: #4ac778; --dict: #b184fa; --tbl: #f0b23e; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #23272d; border-right: 1px solid var(--edge); }
.wf-head { flex: none; display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 10px; font: 500 9.5px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; background: var(--chrome); }
.wf-head b { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--green); }
.wf-view { flex: 1; min-height: 0; overflow: hidden; padding: 8px 8px 0; }
.wf ol { position: relative; list-style: none; margin: 0; padding: 0 0 8px; display: grid; gap: 5px; transition: transform .45s var(--ease); }
.wf li {
    position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 8px; align-items: center;
    margin-left: calc(var(--d, 0) * 12px); padding: 6px 8px;
    background: var(--card); border: 1px solid var(--card-line); border-radius: 7px;
    transition: background .25s, border-color .25s, opacity .25s, box-shadow .25s;
}
/* Loops and Ifs are drawn like Studio's container groups (CardTreeEngine.DrawContainerGroups): one tinted, outlined box
   around the container and all its children (an If and its Else share one box), and a chevron on the container.
   homepage.js lays the boxes out (wfGroups). */
.wf .grp { position: absolute; border-radius: 9px; background: rgba(90, 154, 232, .09); border: 1px solid rgba(90, 154, 232, .32); pointer-events: none; }
.wf .grp-if { background: rgba(116, 135, 226, .1); border-color: rgba(116, 135, 226, .36); }
.wf li.has-kids { padding-left: 20px; }
.wf li.has-kids::before { content: ""; position: absolute; left: 7px; top: 50%; margin-top: -2px; border: 4px solid transparent; border-top: 5px solid #9aa3ae; border-bottom: 0; }
.wf li i { display: grid; place-items: center; color: #e7eaef; }
.wf li svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wf li div { min-width: 0; display: grid; gap: 1px; }
.wf li b { font-weight: 700; font-size: 11px; color: #f0f2f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf li span { font-size: 9.5px; color: #9aa3ae; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf li span em { font-style: normal; color: var(--val); }
.wf li span em.d-var { color: var(--var); }
.wf li span em.d-list { color: var(--list); }
.wf li span em.d-dict { color: var(--dict); }
.wf li span em.d-tbl { color: var(--tbl); }
.wf li .t { display: none; font: 600 9px/1 var(--mono); font-style: normal; color: #7ee2a8; background: #1f3d2c; padding: 3px 5px; border-radius: 4px; }
/* Data actions are green cards, as in Studio. */
.wf li.k-data { background: #263d30; border-color: #335a43; }
.wf li.k-data i { color: #4ccd8d; }
.wf li.k-loop i, .wf li.k-if i { color: #c4a3ff; }
/* The running card is blue with its time badge. */
.wf li.is-now { background: #24456e; border-color: #5a9ae8; box-shadow: 0 0 0 1px rgba(90, 154, 232, .35); }
.wf li.is-now .t, .wf li.has-run .t { display: block; }
.wf li.is-skip { opacity: .4; }
.wf li[data-result] .t { display: none; }
.wf li[data-result]::after { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font: 600 8.5px/1 var(--mono); padding: 2px 4px; border-radius: 3px; }
.wf li[data-result="true"]::after { content: "true"; color: #7ee2a8; background: #1f3d2c; }
.wf li[data-result="false"]::after { content: "false"; color: #f3a3a3; background: #4a2626; }

/* The page is a light web page in both themes, like a real site inside Studio's browser. */
.page { position: relative; min-width: 0; padding: 10px 12px; background: #f6f7f9; color: #1f2328; }
/* Bots 2-4 sit behind bot 1: only the empty right side of their pages shows past it, which read as flat grey blocks
   when only slightly dimmed. Dim them well down so they read as darker screens stacked behind, and light them up when
   the stack flattens. */
.slab-mini .page { filter: brightness(calc(.34 + .66 * var(--flat))) saturate(calc(.6 + .4 * var(--flat))); transition: filter .7s var(--ease); }
.pg { position: relative; display: grid; gap: 7px; }
.pg-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 700; font-size: 12.5px; letter-spacing: -.01em; }
.pill { font: 500 9.5px/1 var(--mono); color: #5d6470; background: #e6e9ee; padding: 3px 6px; border-radius: 99px; }
.pill b { color: #1d7f4f; }
.fld { display: grid; gap: 2px; }
.fld > span, .day > span { font-size: 9.5px; color: #5d6470; }
.in {
    display: block; min-height: 20px; padding: 3px 7px; font: 400 10.5px/1.3 var(--sans); color: #1f2328;
    background: #fff; border: 1px solid #cfd5dd; border-radius: 5px; white-space: nowrap; overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.in.sel { color: #8a919c; }
.in.sel.is-set { color: #1f2328; }
.in.is-focus { border-color: #2f6fd6; box-shadow: 0 0 0 2px rgba(47, 111, 214, .2); }
.in.is-focus::after { content: ""; display: inline-block; width: 1px; height: 11px; margin-left: 1px; vertical-align: -2px; background: #1f2328; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chk { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #3b414b; }
.box { flex: none; width: 12px; height: 12px; border: 1px solid #aeb5bf; border-radius: 3px; background: #fff; }
.box.is-on { background: #1d7f4f; border-color: #1d7f4f; box-shadow: inset 0 0 0 2px #fff; }
.btn {
    justify-self: start; padding: 5px 12px; font-weight: 600; font-size: 10.5px; color: #fff;
    background: #1d7f4f; border-radius: 5px; box-shadow: 2px 2px 0 #135a37;
    transition: transform .12s, box-shadow .12s;
}
.btn.ghost { justify-self: end; color: #2f6fd6; background: #fff; border: 1px solid #b9cdf0; box-shadow: 2px 2px 0 #d8dce2; }
.btn.is-pressed { transform: translate(2px, 2px); box-shadow: 0 0 0 transparent; }
.toast {
    position: absolute; left: 50%; bottom: -2px; transform: translate(-50%, 8px); opacity: 0;
    padding: 5px 10px; font-weight: 600; font-size: 10.5px; white-space: nowrap;
    color: #0f2219; background: #bff0d4; border: 1px solid #7fd3a5; border-radius: 6px;
    transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.is-hit { outline: 2px solid rgba(76, 205, 141, .9); outline-offset: 1px; border-radius: 3px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.card { display: grid; gap: 2px; padding: 5px; background: #fff; border: 1px solid #e0e4ea; border-radius: 6px; transition: border-color .2s, background .2s; }
.card i { height: 22px; border-radius: 4px; background: hsl(var(--h, 200) 55% 78%); }
.card .nm { font-weight: 600; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .pr { font: 500 9.5px/1.2 var(--mono); color: #1d7f4f; justify-self: start; }
.card.is-hit { outline-color: rgba(82, 145, 239, .9); }
.card.is-got { background: #effaf4; border-color: #9fdcbb; }
.search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.search .btn { justify-self: stretch; }
.res { display: grid; gap: 4px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.res.is-on { opacity: 1; transform: none; }
.res p { display: flex; justify-content: space-between; padding: 4px 8px; background: #fff; border: 1px solid #e0e4ea; border-radius: 5px; }
.res p b { font: 500 10px/1.3 var(--mono); }
.res p.is-hit { outline: 0; border-color: #7fd3a5; background: #effaf4; }
.flag { justify-self: start; font: 500 9.5px/1 var(--mono); color: #6b3fa0; background: #efe6fb; padding: 4px 7px; border-radius: 5px; opacity: 0; transition: opacity .3s; }
.flag.is-on { opacity: 1; }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.day { display: grid; gap: 2px; text-align: center; }
.day .in { text-align: center; padding-inline: 2px; }
.total { justify-self: end; font-size: 10.5px; color: #5d6470; }
.total b { color: #1f2328; font-family: var(--mono); }

/* The botzilla pointer, copied from Studio's in-browser automation pointer
   (Botzilla.Studio.Shared/Browser/BrowserAutomationExtensions.cs, PointerOverlayScript): white arrow, dark outline,
   mint name bubble. The arrow tip sits at (2, 1.5), so the pointer is shifted by 2px to land the tip on the target. */
.bz-cursor { position: absolute; left: 0; top: 0; z-index: 3; display: none; width: 20px; height: 22px; pointer-events: none; transform: translate(calc(var(--cx, 60%) - 2px), calc(var(--cy, 50%) - 2px)); transition: transform .58s cubic-bezier(.45, 0, .2, 1); }
.is-running .bz-cursor { display: block; }
.bz-cursor svg { display: block; width: 20px; height: 22px; overflow: visible; transform-origin: 2px 1.5px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .53)); }
.bz-cursor svg path { fill: #eef2ec; stroke: #0c0f0d; stroke-width: 1.2; stroke-linejoin: round; }
.bz-cursor span { position: absolute; left: 16px; top: 20px; padding: 2px 8px; border-radius: 4px 10px 10px 10px; background: #7ad9a1; color: #0b2415; font: 600 11px/1.5 ui-monospace, Consolas, monospace; white-space: nowrap; transform-origin: 0 0; }
.stack-count b { color: var(--green-deep); }
.is-offscreen *, .is-offscreen *::after { animation-play-state: paused !important; }

/* ---------- Section heads ---------- */
section { scroll-margin-top: 88px; }
.section-head { max-width: 640px; margin: 0 auto 28px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 650; }
/* The features and tour headings run on one line (they wrap only on phones); "everything" is in italics. */
.features .section-head, .tour .section-head { max-width: none; }
.section-head h2.one-line { white-space: nowrap; font-size: clamp(28px, 3.7vw, 46px); }
.section-head h2 em { font-style: italic; text-shadow: 3px 3px 0 var(--edge); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.features, .tour, .pricing { padding: 48px 0; }

/* ---------- Feature tiles ---------- */
/* Bento: six columns. Row 1-2: Visual scripting (tall) beside the browser and Runtime Data. Row 3: Botty beside the
   Action Library. Row 4: one wide card with the features that have no screenshot. */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 28px; }
.t-workflow { grid-column: span 2; grid-row: span 2; }
.t-browser, .t-data, .t-botty { grid-column: span 4; }
.t-library { grid-column: span 2; }
/* Row 4: Run C# (a third) beside the threads card, its text beside a wide shot. */
.t-third { grid-column: span 2; }
.shot-third { flex: none; height: auto; aspect-ratio: 3 / 2; padding: 10px; align-items: stretch; }
.shot-third img { width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 6px; }
.t-scale { grid-column: span 4; }
.tile-shot-tile.t-scale .tile-face { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 28px; align-items: start; }
.t-scale-text p + p { margin-top: 10px; }
.shot-scale { margin-top: 0; align-self: end; }
.shot-scale img { width: 100%; height: auto; }
.tile-shot-tile .tile-face { display: flex; flex-direction: column; min-height: 0; }
.tile-shot-tile h3 { font-size: 21px; }
.tile-shot-tile p { font-size: 15px; max-width: 46em; }
/* A dark "screen" around each Studio screenshot, the same in both themes because Studio is dark. */
.shot {
    position: relative; flex: 1; min-height: 0; margin: 18px 0 0; padding: 12px 12px 0; overflow: hidden;
    display: flex; justify-content: center; align-items: flex-start;
    background: #1b1f25; border: 1px solid var(--line); border-radius: 10px;
}
.shot img { display: block; max-width: 100%; height: auto; border-radius: 6px 6px 0 0; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); }
/* Tall shots fill whatever height their row has (contain: size keeps them from setting it) and fade out at the
   bottom instead of ending on a hard crop. */
.shot-tall, .shot-chat {
    contain: size; min-height: 380px;
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent);
}
.shot-wide { flex: none; height: 320px; }
.shot-wide img { width: 100%; height: auto; }
.shot-strip { flex: none; align-self: flex-start; max-width: 100%; padding: 12px; }
.shot-strip img { border-radius: 6px; }
/* Botty: the text and how it works on the left, the panel at work on the right, as tall as the row. */
.t-botty .tile-face { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 24px; }
.t-botty-text { display: flex; flex-direction: column; }
.shot-chat { margin-top: 0; }
.steps { list-style: none; counter-reset: step; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.steps li { position: relative; counter-increment: step; padding-left: 44px; }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center;
    font: 600 13px/1 var(--mono); color: var(--green); background: var(--green-soft); border: 1px solid rgba(76, 205, 141, .4); border-radius: 8px;
    box-shadow: 2px 2px 0 -1px var(--green-edge);
}
.steps b { display: block; font-size: 15px; color: var(--ink); }
.steps span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.steps .hl { color: var(--green); font-weight: 650; background: var(--green-soft); padding: 1px 6px; border-radius: 5px; box-shadow: 2px 2px 0 -1px var(--green-edge); white-space: nowrap; }
/* Screenshot zoom: the screenshots invite a click, and open large over a dimmed page. The dialog covers the whole
   screen so a click anywhere outside the picture closes it. */
.shot img { cursor: zoom-in; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.shot img:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .7); }
.shot img:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
dialog.zoom { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; color: var(--ink); }
dialog.zoom[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; animation: zoom-in .22s var(--ease); }
dialog.zoom::backdrop { background: rgba(14, 16, 20, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.zoom img { display: block; max-width: 92vw; max-height: 82vh; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #1b1f25; box-shadow: 10px 10px 0 -1px var(--edge), 0 40px 80px -20px rgba(0, 0, 0, .7); }
.zoom-caption { font-weight: 600; font-size: 15px; color: #e7eaef; }
.zoom-close {
    position: fixed; top: 18px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center;
    font: 400 26px/1 var(--sans); color: #e7eaef; background: rgba(47, 52, 60, .9); border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; cursor: pointer;
}
.zoom-close:hover { background: #3b414b; }
@keyframes zoom-in { from { opacity: 0; transform: scale(.96); } }
/* Cards are fixed "windows": the card itself is the window frame, .tile-tab its title bar. */
.tile, .plan {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius);
    /* The isometric "edge" is a hard offset, the floor shadow is long and soft. */
    box-shadow: 8px 8px 0 -1px var(--edge), var(--shadow);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile-tab {
    display: flex; align-items: center; gap: 9px; height: 34px; padding-left: 14px; padding-right: 14px;
    font: 500 12px/1 var(--mono); color: var(--muted); user-select: none; cursor: default;
    background: rgba(255, 255, 255, .035); border-bottom: 1px solid var(--edge);
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.tile-tab i { flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--green); }
.tile-face, .plan-face { flex: 1; padding: 22px; }
.tile:hover, .tile:focus-within { transform: translate(-6px, -8px); box-shadow: 14px 16px 0 -1px var(--edge), 44px 56px 60px -20px rgba(0, 0, 0, .5); }
.tile h3 { font-size: 18px; font-weight: 650; }
.tile p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.pro { display: inline-block; vertical-align: 3px; margin-left: 4px; font: 500 10.5px/1 var(--mono); color: var(--amber); background: rgba(241, 187, 110, .16); padding: 4px 6px; border-radius: 5px; letter-spacing: 0; }

/* ---------- Studio tour (after index9): a window with a vertical tab list down the side ---------- */
.feat {
    --t: 0;
    display: grid; grid-template-columns: 250px minmax(0, 1fr);
    background: var(--chrome); border: 1px solid var(--edge); border-radius: 14px; overflow: hidden;
    box-shadow: 10px 10px 0 -1px var(--edge), 40px 60px 80px -30px rgba(0, 0, 0, .5);
    transform: perspective(1600px) rotateX(calc(var(--t) * 9deg)) rotateZ(calc(var(--t) * -1.2deg)) scale(calc(1 - var(--t) * .03));
    transform-origin: 50% 100%;
}
.feat-side { min-width: 0; padding: 12px 8px; }
.feat-side-title { margin: 2px 10px 10px; font: 500 11px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.feat-tabs { display: flex; flex-direction: column; gap: 3px; }
.feat-tabs [role="tab"] {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; cursor: pointer;
    font: 500 14px/1.2 var(--sans); color: var(--muted); text-align: left;
    background: transparent; border: 1px solid transparent; border-radius: 10px;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.feat-tabs [role="tab"] i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--fav); }
.feat-tabs [role="tab"] .pro { margin-left: auto; }
.feat-tabs [role="tab"]:hover { background: rgba(255, 255, 255, .05); color: var(--ink); }
.feat-tabs [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--ink); border-color: var(--edge); box-shadow: 3px 3px 0 -1px var(--edge); }
.feat-tabs [role="tab"]:focus-visible { outline-offset: -3px; }
.feat-main { min-width: 0; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--edge); }
.feat-omni { height: 38px; }
.feat-omni .url { font-size: 12.5px; }
.feat-body { display: flex; flex-direction: column; gap: 18px; padding: 22px 22px 22px; }
.feat-panel { min-height: 112px; }
.feat-panel:not([hidden]) { animation: fadeUp .35s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.feat-panel h3 { font-size: 26px; font-weight: 650; }
.feat-panel p { margin-top: 8px; max-width: 560px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; }
.chips li { padding: 4px 11px; font: 400 12.5px/1.5 var(--mono); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; box-shadow: 2px 2px 0 -1px var(--edge); }
.feat-video { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #11161f; }
.feat-video video { width: 100%; aspect-ratio: 1820 / 1072; cursor: pointer; }

/* Video controls: a dark glass bar along the bottom, shown on hover, keyboard focus or while paused. */
.vc {
    position: absolute; left: 10px; right: 10px; bottom: 10px;
    display: flex; align-items: center; gap: 10px; padding: 6px 8px;
    color: #e7eaef; background: rgba(22, 25, 31, .72); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
    opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease);
}
.vc[hidden] { display: none; }
.feat-video:hover .vc, .feat-video:focus-within .vc, .feat-video.is-paused .vc { opacity: 1; transform: none; }
@media (hover: none) { .vc { opacity: 1; transform: none; } }
.vc-btn {
    flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
    color: inherit; background: transparent; border: 0; border-radius: 9px; cursor: pointer;
    transition: background .15s;
}
.vc-btn:hover { background: rgba(255, 255, 255, .12); }
.vc-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.vc-btn svg { width: 18px; height: 18px; }
.vc-play svg { fill: currentColor; }
.vc-full svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vc-play .i-play, .is-paused .vc-play .i-pause, .vc-full .i-exit, .is-full .vc-full .i-enter { display: none; }
.is-paused .vc-play .i-play, .is-full .vc-full .i-exit { display: block; }
.vc-time { flex: none; min-width: 3.4ch; font: 500 12px/1 var(--mono); color: #c3cad4; font-variant-numeric: tabular-nums; }
/* Seek bar: green fill up to the playhead, a round thumb that grows on hover. */
.vc-seek {
    --p: 0%;
    flex: 1; min-width: 0; height: 18px; margin: 0; cursor: pointer; background: transparent;
    -webkit-appearance: none; appearance: none;
}
.vc-seek::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: linear-gradient(to right, var(--green) var(--p), rgba(255, 255, 255, .22) var(--p)); }
.vc-seek::-moz-range-track { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .22); }
.vc-seek::-moz-range-progress { height: 5px; border-radius: 99px; background: var(--green); }
.vc-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -4px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); transition: transform .15s; }
.vc-seek::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.vc-seek:hover::-webkit-slider-thumb, .vc-seek:focus-visible::-webkit-slider-thumb { transform: scale(1.2); }
.vc-seek:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 99px; }
/* Big play button in the middle while paused. */
.vc-big {
    position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; padding: 0;
    color: #fff; background: rgba(46, 107, 77, .9); border: 1px solid #3f8a64; border-radius: 50%; cursor: pointer;
    box-shadow: 4px 4px 0 var(--green-edge), 0 14px 34px -10px rgba(0, 0, 0, .6);
    transform: translate(-50%, -50%) scale(.85); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.vc-big svg { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }
.is-paused .vc-big { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.vc-big:hover { background: var(--green-deep); }
/* Full screen: the figure is exactly the screen and the video letterboxes inside it, so any screen shape (ultrawide too)
   shows the whole picture. A 100% height did not resolve in the auto-sized grid, so the video sized by width and was cropped. */
.feat-video.is-full { display: grid; place-items: center; width: 100vw; height: 100vh; border: 0; border-radius: 0; background: #000; }
.feat-video.is-full video { width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto; object-fit: contain; }
.feat-video.is-full .vc { left: 50%; right: auto; bottom: 24px; width: min(900px, 100% - 48px); transform: translateX(-50%); }
.feat-video.is-full:hover .vc, .feat-video.is-full:focus-within .vc, .feat-video.is-full.is-paused .vc { transform: translateX(-50%); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr); gap: 40px 32px; align-items: stretch; }
.plan-face { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.plan h3 { font-size: 22px; font-weight: 650; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.amount { font-size: 52px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.per { color: var(--muted); font-size: 15px; }
.was { color: var(--muted); font-size: 22px; }
.billed { font-size: 13.5px; color: var(--muted); margin-top: -6px; }
.points { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.points li { position: relative; padding-left: 24px; }
.points li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 10px; border-radius: 3px; background: var(--green-soft); border: 1.5px solid var(--green); transform: rotate(45deg) scaleY(.75); }
.plan-face .button { margin-top: auto; align-self: flex-start; }
.plan-pro { transform: translate(-6px, -10px); }
.plan-pro .tile-tab i { background: var(--amber); }
.plan-pro { border-color: var(--green); box-shadow: 12px 14px 0 -1px var(--green-deep), 44px 60px 70px -24px rgba(0, 0, 0, .5); }
.plan-soon { align-self: center; }
.plan-soon { background: #3d424b; border-style: dashed; box-shadow: 5px 5px 0 -1px var(--line); }
.plan-soon .tile-tab { border-bottom-style: dashed; border-bottom-color: var(--line); }
.plan-soon .tile-tab i { background: var(--edge); }
.plan-soon h3 { font-size: 19px; }
.plan-soon p { color: var(--muted); font-size: 14.5px; }
.soon { align-self: flex-start; font: 500 11px/1 var(--mono); color: var(--amber); background: rgba(241, 187, 110, .14); padding: 5px 8px; border-radius: 5px; }
.credits { margin-top: 40px; color: var(--muted); font-size: 14.5px; }
/* Open beta: a full-width card above the plans; the plans fade back while the beta runs (they come into focus on hover). */
.beta-card { position: relative; background: var(--surface); border: 1px solid var(--green); border-radius: var(--radius); box-shadow: 10px 10px 0 -1px var(--green-deep), var(--shadow); }
.beta-card .tile-tab { color: var(--green); }
.beta-face { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 28px; align-items: center; padding: 26px 28px; }
.beta-text h3 { font-size: 24px; font-weight: 650; }
.beta-text p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.beta-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: beta; }
.beta-steps li { position: relative; display: grid; gap: 1px; padding-left: 36px; counter-increment: beta; }
.beta-steps li::before { content: counter(beta); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; display: grid; place-items: center; font: 600 12px/1 var(--mono); color: var(--green); background: var(--green-soft); border: 1px solid var(--green-edge); border-radius: 6px; }
.beta-steps b { font-size: 15px; }
.beta-steps span { color: var(--muted); font-size: 14px; }
.beta-actions { display: flex; flex-direction: column; gap: 12px; }
.plans-note { margin: 0 0 22px; text-align: center; font: 500 12.5px/1.4 var(--mono); color: var(--muted); }
.plans.is-later { opacity: .5; filter: saturate(.35); transition: opacity .35s var(--ease), filter .35s var(--ease); }
.plans.is-later:hover, .plans.is-later:focus-within { opacity: .85; filter: none; }
/* The Pro price stays secret during the beta: the page only holds a placeholder ($00), blurred, never the real amount. */
.price-hidden { filter: blur(9px); user-select: none; pointer-events: none; }
@media (max-width: 1080px) {
    .beta-face { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .beta-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 700px) {
    .beta-face { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px; }
    .beta-actions .button { flex: 1 1 auto; }
}

/* ---------- Closing + footer ---------- */
.closing { display: grid; justify-items: center; gap: 20px; text-align: center; padding: 40px 0 72px; }
.closing h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 700; }
.closing p { color: var(--muted); font-size: 14px; }
/* Footer doubles as the support area: the header's Support link lands here. */
.site-footer { border-top: 1px solid var(--line); background: rgba(0, 0, 0, .1); scroll-margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: start; padding: 48px 0 40px; }
.support-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: 8px 8px 0 -1px var(--edge), var(--shadow); }
.support-card .tile-tab i { background: var(--blue); }
.support-face { display: grid; gap: 14px; padding: 24px; }
.support-face h2 { font-size: 28px; font-weight: 700; }
.support-face p { color: var(--muted); font-size: 15px; }
.support-face code { font: 500 13px/1 var(--mono); color: var(--ink); background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
.support-face .button { justify-self: start; }
.support-links { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; font-size: 14.5px; }
.support-links a, .footer-links a { color: var(--muted); text-decoration: none; }
.support-links a::before { content: "→ "; color: var(--green); }
.support-links a:hover, .footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.faq h3, .footer-links h3 { margin-bottom: 14px; font: 500 12px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 13px 2px; cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 500 16px/1 var(--mono); color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
/* While an answer slides shut its "+" turns back at once, so the icon follows the click, not the end of the slide. */
.faq details.is-closing summary::after { transform: none; }
.faq details p { padding: 0 2px 14px; color: var(--muted); font-size: 14.5px; }
/* align-items: start undoes the header's nav rule (it centres), so every footer heading sits on one line. */
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.footer-links div { display: grid; gap: 9px; align-content: start; font-size: 14.5px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.footer-inner .brand { color: var(--ink); }
.footer-start { display: flex; align-items: center; gap: 10px; }
.theme-slot .bz-theme-toggle { margin: 0; border: 1px solid var(--line); background: var(--surface); opacity: 1; color: var(--ink); }
.theme-slot .bz-theme-toggle:hover { background: var(--surface-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    /* Two columns: the two tall shots side by side, the wide ones full width, the extras two to a row. */
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .t-workflow, .t-library { grid-column: span 1; grid-row: auto; }
    .t-browser, .t-data, .t-botty { grid-column: 1 / -1; }
    .t-workflow { order: 1; } .t-library { order: 2; } .t-browser { order: 3; } .t-data { order: 4; } .t-botty { order: 5; } .t-extra { order: 10; }
    /* Three extras two to a row: the last one takes the whole row. */
    .tiles > .t-extra:last-child { grid-column: 1 / -1; }
    .t-third { grid-column: span 1; } .t-code, .t-scale { grid-column: 1 / -1; } .tile-shot-tile.t-scale .tile-face { grid-template-columns: minmax(0, 1fr); }
    .t-scrape { order: 6; } .t-captcha { order: 7; } .t-code { order: 8; } .t-scale { order: 9; }
    .shot-tall { min-height: 440px; }
    .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .plan-soon { grid-column: 1 / -1; align-self: stretch; }
}
@media (max-width: 900px) {
    .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 32px; }
    .stack-stage { padding-top: 10px; }
}
/* Phones: no 3D at all. Bot 1 sits flat and keeps working; bots 2-4 become a compact list of tab + address rows. */
@media (max-width: 700px) {
    .nav-hide { display: none; }
    .nav-link { padding: 8px 9px; font-size: 14px; }
    .nav-cta { padding: 8px 14px; font-size: 14px; }
    .site-header .beta { display: none; }
    .header-inner { gap: 6px; }
    .stack-stage { perspective: none; }
    .stack, .stack-stage:hover .stack, .stack:focus-within { --flat: 1; transform: none; display: grid; gap: 10px; width: 100%; }
    .slab { position: relative; inset: auto; transform: none; }
    .slab-lift, .slab:last-child .slab-lift { animation: none; box-shadow: 5px 5px 0 -1px var(--edge); }
    .slab-mini .slab-screen { display: block; aspect-ratio: auto; }
    .slab-mini .wf, .slab-mini .page, .slab-mini .bz-cursor { display: none !important; }
    .slab-mini .browser { flex-direction: row; align-items: stretch; }
    .slab-screen { aspect-ratio: 1 / 1.05; grid-template-columns: 44% minmax(0, 1fr); }

    .slab-mini .chrome { height: auto; padding: 0 8px; align-items: center; }
    .slab-mini .tab { height: 22px; border-radius: 6px; padding: 0 10px; }
    .slab-mini .tab-ghost { display: none; }
    .slab-mini .omni { flex: 1; min-width: 0; height: 36px; border-bottom: 0; }
    .stack-count { position: static; justify-self: start; margin-top: 18px; }
    .stack-stage { place-items: stretch; }
    .tiles, .plans { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .t-workflow, .t-library, .t-browser, .t-data, .t-botty, .t-third, .tiles > .t-extra:last-child, .t-code, .t-scale { grid-column: auto; }
    .t-botty .tile-face { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
    .shot-tall, .shot-chat { min-height: 360px; }
    .shot-wide { height: 220px; }
    .feat { transform: none; }
    .feat { grid-template-columns: minmax(0, 1fr); }
    .feat-side { padding: 8px; }
    .feat-side-title { display: none; }
    .feat-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .feat-tabs [role="tab"] { width: auto; flex: none; white-space: nowrap; }
    .feat-main { border-left: 0; border-top: 1px solid var(--edge); }
    .feat-body { padding: 16px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 48px; }
    .plan-pro { transform: none; }
    .features, .tour, .pricing { padding: 36px 0; }
    .section-head h2.one-line { white-space: normal; }
    .hero { padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .feat-panel:not([hidden]) { animation: none; }
    .feat { transform: none; }
}

/* ---------- Light mode (shared theme.js switch; dark is the designed default) ----------
   Same isometric space on an off-white floor: white window cards, a light glass header, grey hard offset edges. */
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #eef0f3;
    --dot: rgba(93, 100, 112, .24);
    --surface: #ffffff;
    --surface-2: #f4f6f8;
    --chrome: #e3e7ec;
    --line: #d8dce2;
    --edge: #c4cad3;
    --ink: #1f2328;
    --muted: #5d6470;
    --green: #1f8a56;
    --green-deep: #1d7f4f;
    --green-edge: #135a37;
    --green-soft: rgba(31, 138, 86, .1);
    --blue: #2f6fd6;
    --amber: #a86a10;
    --rose: #c94444;
    --shadow: 28px 36px 48px -18px rgba(40, 48, 60, .2);
}
:root[data-theme="light"] .button { border-color: #17683f; }
:root[data-theme="light"] .button-ghost { border-color: rgba(47, 111, 214, .5); }
:root[data-theme="light"] .header-inner {
    background: rgba(255, 255, 255, .72); border-color: rgba(31, 35, 40, .1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 14px 34px -16px rgba(40, 48, 60, .28);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root[data-theme="light"] .header-inner { background: rgba(255, 255, 255, .97); }
}
:root[data-theme="light"] .nav-link:hover { background: rgba(31, 35, 40, .06); }
:root[data-theme="light"] .nav-cta { color: #fff; }
:root[data-theme="light"] .nav-cta:hover { background: #000; }
:root[data-theme="light"] .slab-lift { box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 6px 6px 0 -1px var(--edge); }
:root[data-theme="light"] .tab-ghost,
:root[data-theme="light"] .feat-tabs [role="tab"]:hover { background: rgba(31, 35, 40, .06); }
@media (min-width: 701px) { :root[data-theme="light"] .slab:last-child .slab-lift { box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 6px 6px 0 -1px var(--edge), 30px 40px 44px -4px rgba(40, 48, 60, .22); } }
:root[data-theme="light"] .tile-tab { background: #f3f5f7; }
:root[data-theme="light"] .tile:hover,
:root[data-theme="light"] .tile:focus-within { box-shadow: 14px 16px 0 -1px var(--edge), 44px 56px 60px -20px rgba(40, 48, 60, .22); }
:root[data-theme="light"] .pro { background: rgba(168, 106, 16, .12); }
:root[data-theme="light"] .soon { background: rgba(168, 106, 16, .1); }
:root[data-theme="light"] .feat { box-shadow: 10px 10px 0 -1px var(--edge), 40px 60px 80px -30px rgba(40, 48, 60, .25); }
:root[data-theme="light"] .plan-pro { box-shadow: 12px 14px 0 -1px var(--green-deep), 44px 60px 70px -24px rgba(40, 48, 60, .22); }
:root[data-theme="light"] .plan-soon { background: #f6f7f9; box-shadow: 5px 5px 0 -1px var(--line); border-color: #b9c0ca; }
:root[data-theme="light"] .site-footer { background: rgba(255, 255, 255, .55); }
:root[data-theme="light"] .feat-video { background: #e3e7ec; }
:root[data-theme="light"] .support-card { box-shadow: 8px 8px 0 -1px var(--edge), var(--shadow); }
:root[data-theme="light"] .page { background: #fbfcfd; }
/* Narrowest phones: the logo and the beta link need the room more than Features and Botty AI (both are on the page below). */
@media (max-width: 500px) {
    .nav-link[href$="#features"], .nav-link[href$="#botty"] { display: none; }
}
