@property --icon-start {
  syntax: "*";
  inherits: false;
}

@property --icon-end {
  syntax: "*";
  inherits: false;
}

:root {
  --in-oklab: ;
  --in-oklch: ;
  /* Theme: dark values here; light values in :root[data-site-theme="light"] below. site.js sets the attribute. */
  color-scheme: dark;
  --bg: #0d0d10;               /* Graphite: near-neutral so the pink leads */
  --ink: #f4f4f6;
  --muted: #a8a8b4;
  --fg-rgb: 255, 255, 255;      /* hairlines, hover tints, inner highlights */
  --surface-rgb: 15, 15, 18;    /* translucent panels */
  --surface-solid: #131316;     /* sticky table heads, demo grids */
  --surface-solid-2: #1b1b1e;
  --inset-bg: rgba(0, 0, 0, .38);
  --code-ink: #ececf0;
  --shadow-k: 1;                /* drop-shadow strength */
  --line: rgba(var(--fg-rgb), 0.07);
  --card: rgba(28, 28, 31, .72);
  --band: rgba(21, 21, 24, .78);
  --band-panel: rgba(22, 22, 27, .42);
  /* Palette led by Brickbot pink, with analogous violet and peach and a green for success. Old token names kept. */
  --blue: #7c6cff;              /* violet */
  --cyan: #a594ff;              /* light violet */
  --mint: #5fd49a;              /* green: success, strings */
  --peach: #ffa06b;
  --coral: #ff7d5c;
  --sun: #ffc94d;
  --pink: #ff3d8b;              /* Brickbot logo */
  --pink-text: #ff6fa8;         /* lighter pink for small text, 7:1 on --bg */
  --grad: var(--pink);          /* flat on purpose: no gradients in the UI (name kept for existing uses) */
  --pop: cubic-bezier(.22, 1, .36, 1);
  --btn-bg: var(--pink);       /* solid button color: Brickbot pink, 5.7:1 contrast with the dark button text */
  --btn-bg-hover: color-mix(in oklab, var(--btn-bg), white 18%);

  /* CSS-Driven Icon Engine Tokens (modern-web-guidance: icons) — Permissive geometric platform silhouettes */
  --icon-style-size: 1.1em;
  --icon-style-spacing: 0.42em;
  --icon-android: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 16v-3a7 7 0 0 1 14 0v3H5Z'/%3E%3Cpath d='m8 6-2-2.5M16 6l2-2.5'/%3E%3Ccircle cx='9.5' cy='12' r='1' fill='currentColor'/%3E%3Ccircle cx='14.5' cy='12' r='1' fill='currentColor'/%3E%3Cpath d='M4 16h16v3a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3Z'/%3E%3C/svg%3E");
  --icon-ios: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='3'/%3E%3Cpath d='M10.5 5.5h3M10 18.5h4'/%3E%3C/svg%3E");
  --icon-windows: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7.5' height='7.5' rx='1'/%3E%3Crect x='13' y='3.5' width='7.5' height='7.5' rx='1'/%3E%3Crect x='3.5' y='13' width='7.5' height='7.5' rx='1'/%3E%3Crect x='13' y='13' width='7.5' height='7.5' rx='1'/%3E%3C/svg%3E");
  --icon-linux: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a4 4 0 0 0-4 4v3.5C6.2 12.2 5.5 14.5 6 17c.4 2 2 3.5 6 3.5s5.6-1.5 6-3.5c.5-2.5-.2-4.8-2-6.5V7a4 4 0 0 0-4-4Z'/%3E%3Cpath d='m10.5 9 1.5 1.3L13.5 9M8 20.5l-2 1M16 20.5l2 1'/%3E%3C/svg%3E");
  --icon-macos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3Z'/%3E%3C/svg%3E");
  --icon-wasm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 20.5 7 20.5 17 12 22 3.5 17 3.5 7 12 2'/%3E%3Cpath d='m8 10 2 5 2-4 2 4 2-5'/%3E%3C/svg%3E");
  --icon-xr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5A3.5 3.5 0 0 1 6.5 7h11A3.5 3.5 0 0 1 21 10.5v4a3.5 3.5 0 0 1-3.5 3.5h-2.4a2 2 0 0 1-1.7-.9l-.8-1.2a1 1 0 0 0-1.2 0l-.8 1.2a2 2 0 0 1-1.7.9H6.5A3.5 3.5 0 0 1 3 14.5v-4Z'/%3E%3Cpath d='M7.5 11.5h2M14.5 11.5h2'/%3E%3C/svg%3E");
}

/* Light theme: same palette roles, darker accent shades so text keeps 4.5:1 on the light page */
:root[data-site-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f8;
  --ink: #17171c;
  --muted: #5b5b69;
  --fg-rgb: 20, 20, 30;
  --surface-rgb: 255, 255, 255;
  --surface-solid: #ffffff;
  --surface-solid-2: #f0f0f3;
  --inset-bg: rgba(20, 20, 30, .04);
  --code-ink: #24242c;
  --shadow-k: .3;
  --line: rgba(20, 20, 30, .12);
  --card: rgba(255, 255, 255, .85);
  --band: rgba(255, 255, 255, .8);
  --band-panel: rgba(255, 255, 255, .6);
  --blue: #5b47f0;
  --cyan: #6a55e8;
  --mint: #13875a;
  --peach: #c2541a;
  --coral: #c8401f;
  --sun: #946700;
  --pink-text: #d0195f;
}

@supports (background: linear-gradient(in oklab, white, black)) or (linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
    --in-oklch: in oklch;
  }
}

@container style(--icon-start) {
  ::before {
    --icon-start: inherit;
    content: "" / var(--icon-style-alt, "");
    display: inline-block;
    width: var(--icon-style-size, 1em);
    height: var(--icon-style-size, 1em);
    background-color: var(--icon-style-color, currentColor);
    mask: var(--icon-start) no-repeat center / contain;
    vertical-align: calc(0.5cap - var(--icon-style-size, 1em) / 2 + var(--icon-style-voffset, -0.02em));
    flex: none;
    pointer-events: none;
    forced-color-adjust: none;
  }
  :where(:not(.icon, :empty))::before {
    margin-inline-end: var(--icon-style-spacing, 0.38em);
  }
}

/* Fallback hook for browsers without Container Style Queries */
@supports not (container-type: inline-size) {
  :where(.icon-start, .icon:empty)::before {
    content: image-set(linear-gradient(transparent 0 100%), var(--icon-start)) / var(--icon-style-alt, "");
    display: inline-block;
    width: var(--icon-style-size, 1em);
    height: var(--icon-style-size, 1em);
    background-color: var(--icon-style-color, currentColor);
    mask: var(--icon-start) no-repeat center / contain;
    vertical-align: calc(0.5cap - var(--icon-style-size, 1em) / 2 + var(--icon-style-voffset, -0.02em));
    flex: none;
    pointer-events: none;
    forced-color-adjust: none;
  }
  :where(.icon-start)::before { --icon-start: inherit; }
  :where(.icon:empty)::before { --icon-start: var(--icon); }
  :where(.icon-start:not(.icon, :empty))::before { margin-inline-end: var(--icon-style-spacing, 0.38em); }
}

/* Safari workarounds for WebKit #301609, #320220, and #325900 */
@keyframes webkit-301609 {}
@supports ((-webkit-nbsp-mode: normal) or (-webkit-touch-callout: none) or (font: -apple-system-body)) and (content-visibility: auto) {
  @layer webkit-301609-fix {
    ::before, ::after { animation: webkit-301609 0s; }
  }
  @property --icon-start {
    syntax: "*";
    inherits: true;
  }
  @layer webkit-325900-fix {
    @container style(--icon-start) {
      * { --icon-start: initial; }
    }
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { font-family: Outfit, system-ui, sans-serif; line-height: 1.1; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4cqi, 4.8rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2cqi, 3.1rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p, li { text-wrap: pretty; }
p { margin: 0; color: var(--muted); }
a { color: inherit; }
code, pre { font-family: "JetBrains Mono", ui-monospace, monospace; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* ==========================================================================
   LAYOUT SHELL — change the layout here. Menus are built by site.js (SITE list).
   Breakpoint (CSS cannot use variables in @media, so it is written out):
     ≥ 768px  left menu: icons, expands over the content on hover/keyboard focus
     < 768px  left menu becomes the bottom menu
   All sizes: "On this page" pill top-right, shows the current section, opens on hover/tap.
   ========================================================================== */
:root {
  --gap: 12px;                         /* space around the floating panels */
  --rail-w: 220px;                     /* left menu, expanded */
  --rail-mini: 64px;                   /* left menu, collapsed (icons) */
  --pager-w: 280px;                    /* "On this page" list width */
  --bottombar-h: 64px;                 /* mobile bottom menu */
  --panel-bg: rgba(var(--surface-rgb), .72);    /* semi-transparent menus */
  --panel-blur: 14px;
  --rail-bg: rgba(var(--surface-rgb), .06);       /* left menu, collapsed: almost transparent */
  --rail-bg-open: rgba(var(--surface-rgb), .6);   /* left menu, expanded on hover */
  --panel-radius: 16px;
  --panel-shadow: inset 0 1px 0 rgba(var(--fg-rgb), 0.056), 0 16px 40px rgba(0, 0, 0, calc(.4 * var(--shadow-k)));
  --menu-speed: .2s;
}
.js body { padding-left: calc(var(--rail-mini) + var(--gap)); }
main { container: main / inline-size; }

.panel-float {
  background: var(--panel-bg); border: 1px solid var(--line); border-radius: var(--panel-radius); box-shadow: var(--panel-shadow);
  backdrop-filter: blur(var(--panel-blur)); -webkit-backdrop-filter: blur(var(--panel-blur));
}
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: rotate var(--menu-speed); }
.skip { position: fixed; left: var(--gap); top: -60px; z-index: 30; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); }
.skip:focus { top: var(--gap); }

/* Left menu: icons, expands over the content on hover or keyboard focus. Same element is the bottom menu on mobile. */
.rail {
  position: fixed; z-index: 21; left: var(--gap); top: var(--gap); bottom: var(--gap); width: var(--rail-mini);
  display: flex; flex-direction: column; gap: 4px; padding: 8px; overflow: hidden; transition: width var(--menu-speed) var(--pop), background var(--menu-speed);
  background: var(--rail-bg); border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.rail:hover, .rail:focus-within { width: var(--rail-w); background: var(--rail-bg-open); box-shadow: var(--panel-shadow); backdrop-filter: blur(var(--panel-blur)); -webkit-backdrop-filter: blur(var(--panel-blur)); }
.rail__item {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 13px; border-radius: 10px; flex: none;
  color: var(--muted); font: 500 .92rem/1.2 Inter, sans-serif; text-decoration: none; transition: color .2s, background .2s;
}
.rail__item:hover { color: var(--ink); background: rgba(var(--fg-rgb), 0.042); }
.rail__item[aria-current] { color: var(--ink); background: rgba(var(--fg-rgb), 0.07); }
.rail__label { white-space: nowrap; opacity: 0; transition: opacity var(--menu-speed); }
.rail:hover .rail__label, .rail:focus-within .rail__label { opacity: 1; }
.rail__logo { margin-bottom: 8px; color: var(--ink); font: 700 1.1rem/1 Outfit, sans-serif; }
.rail__logo i { width: 22px; height: 22px; flex: none; border-radius: 6px; background: url("brand/brickbot-pink.svg") center / contain no-repeat; box-shadow: 0 0 14px rgba(255, 61, 139, .45); }
.rail__theme { margin-top: auto; border: 0; background: none; cursor: pointer; width: 100%; text-align: left; }
.rail__theme ~ .rail__cta { margin-top: 0; }
.rail__cta { margin-top: auto; background: var(--btn-bg); color: #101013; font-weight: 600; }
.rail__cta:hover { color: #101013; background: var(--btn-bg-hover); }

/* "On this page": pill bottom-right with the current section; the list opens upward on hover, tap or keyboard focus */
.pager { position: fixed; z-index: 20; bottom: var(--gap); right: var(--gap); display: flex; flex-direction: column-reverse; align-items: flex-end; max-width: calc(100% - var(--gap) * 2); pointer-events: none; }
.pager > * { pointer-events: auto; }
.pager__btn { display: inline-flex; align-items: center; gap: 8px; max-width: min(var(--pager-w), 100%); padding: 9px 14px; border-radius: 999px; color: var(--ink); font: 600 .88rem/1.2 Inter, sans-serif; cursor: pointer; }
.pager__btn .ico { width: 18px; height: 18px; color: var(--muted); }
.pager__btn b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager__list {
  display: none; gap: 2px; width: var(--pager-w); max-width: calc(100vw - var(--gap) * 2); max-height: calc(100vh - 90px); overflow-y: auto; padding: 8px;
  border-bottom: 8px solid transparent; background-clip: padding-box; /* invisible bridge, so hover survives the gap */
}
.pager__list a { padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: .9rem; text-decoration: none; transition: color .2s, background .2s; }
.pager__list a:hover { color: var(--ink); background: rgba(var(--fg-rgb), 0.042); }
.pager__list a[aria-current] { color: var(--ink); background: rgba(var(--fg-rgb), 0.07); }
.pager.open .pager__list, .pager:has(:focus-visible) .pager__list { display: grid; }
.pager__btn .ico:last-child { rotate: 180deg; } /* chevron points up: the list opens upward */
.pager.open .pager__btn .ico:last-child, .pager:has(:focus-visible) .pager__btn .ico:last-child { rotate: 0deg; }
@media (hover: hover) {
  .pager:hover .pager__list { display: grid; }
  .pager:hover .pager__btn .ico:last-child { rotate: 0deg; }
}

/* Mobile: the left menu becomes the bottom menu (logo and CTA hidden, Docs covers "Try the alpha") */
@media (max-width: 767px) {
  :root { --gap: 8px; --panel-bg: rgba(var(--surface-rgb), .88); }
  .js body { padding: 0 0 calc(var(--bottombar-h) + env(safe-area-inset-bottom)); }
  .rail, .rail:hover, .rail:focus-within {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; flex-direction: row; gap: 0;
    padding: 4px 4px env(safe-area-inset-bottom); border-radius: 0; border-width: 1px 0 0; min-height: var(--bottombar-h);
    background: var(--panel-bg); border-color: var(--line); backdrop-filter: blur(var(--panel-blur)); -webkit-backdrop-filter: blur(var(--panel-blur));
  }
  .rail__item { flex: 1; flex-direction: column; justify-content: center; gap: 3px; padding: 6px 0; font-size: .7rem; }
  .rail__label { opacity: 1; }
  .rail__logo, .rail__cta { display: none; }
  .rail__theme { margin-top: 0; text-align: center; }
  .pager { bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom) + var(--gap)); }
  .pager__list { max-height: calc(100vh - 160px); }
}

/* Background: one static pink glow. Static on purpose: a moving glow behind the blurred panels forced a re-blur every frame (scroll p95 50ms -> 17ms without it) */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; isolation: isolate; }
.aurora i {
  /* soft Gaussian-eased glow via multi-stop oklab gradient (avoids filter: blur() per-frame repaint and 2-stop Mach banding) */
  position: absolute; width: 68vmax; height: 68vmax; border-radius: 50%; color: var(--pink);
  background: radial-gradient(closest-side var(--in-oklab), currentColor, transparent);
  background: radial-gradient(
    closest-side var(--in-oklab),
    currentColor 0%,
    color-mix(in oklab, currentColor 86%, transparent) 16%,
    color-mix(in oklab, currentColor 62%, transparent) 32%,
    color-mix(in oklab, currentColor 38%, transparent) 48%,
    color-mix(in oklab, currentColor 18%, transparent) 64%,
    color-mix(in oklab, currentColor 6%, transparent) 80%,
    color-mix(in oklab, currentColor 1.5%, transparent) 92%,
    transparent 100%
  );
  opacity: .2;
}
.aurora i:nth-child(1) { left: -22vmax; top: -26vmax; }
.aurora i:nth-child(n+2) { display: none; } /* one glow only: pink top-left */

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
section { position: relative; padding: 100px 0; }
/* Band sections: a contained panel (border + flat translucent fill) instead of a full-width stripe */
.band {
  width: min(1160px, 100% - 32px); margin: 24px auto; padding-inline: clamp(20px, 4vw, 56px);
  border: 1px solid var(--line); border-radius: 28px;
  background: var(--band-panel);
  /* no backdrop-filter: behind it is only a smooth glow, so a blur looked the same but re-blurred ~1M px every scroll frame */
}
.band > .wrap { width: 100%; }

/* Connectors: a static line joins each top-level section to the one before it, with a node where it meets the edge */
main > section + section::before,
main > section + section::after { content: ""; position: absolute; left: 50%; pointer-events: none; z-index: 1; }
main > section + section::before {
  --len: 140px;
  top: calc(var(--len) / -2); height: var(--len); width: 2px; margin-left: -1px; border-radius: 2px;
  background: var(--line);
}
main > section + section::after {
  top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--pink); box-shadow: 0 0 12px rgba(255, 61, 139, .55);
}
.band + section::after { top: -29px; } /* after a panel, the node sits on the panel's bottom edge */
@container main (max-width: 620px) { main > section + section::before { --len: 100px; } }

.eyebrow {
  display: inline-block; font: 500 .78rem/1 "JetBrains Mono", monospace; letter-spacing: .12em;
  text-transform: uppercase; color: var(--pink-text); margin-bottom: 18px;
}
.head { max-width: 740px; margin-bottom: 52px; }
.head p { margin-top: 18px; font-size: 1.1rem; }
.grad { color: var(--pink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 12px;
  font: 600 .95rem/1 Inter, sans-serif; text-decoration: none; border: 1px solid var(--line);
  background: rgba(var(--fg-rgb), 0.028); box-shadow: inset 0 1px 0 rgba(var(--fg-rgb), 0.056);
  transition: transform .2s var(--pop), background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); background: rgba(var(--fg-rgb), 0.063); border-color: rgba(var(--fg-rgb), 0.252); }
.btn.primary { background: var(--btn-bg); color: #101013; border-color: transparent; box-shadow: 0 8px 24px rgba(255, 61, 139, .26); }
.btn.primary:hover { background: var(--btn-bg-hover); box-shadow: 0 12px 30px rgba(255, 61, 139, .36); }

.logo { font: 700 1.22rem/1 Outfit, sans-serif; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo i { width: 20px; height: 20px; background: url("brand/brickbot-pink.svg") center / contain no-repeat; border-radius: 6px; box-shadow: 0 0 14px rgba(255, 61, 139, .45); }
.site-header { display: flex; justify-content: center; padding-top: 40px; }
.site-header .logo { font-size: clamp(1.6rem, 4vw, 2.4rem); gap: .45em; letter-spacing: -.035em; } /* same lockup as the brand page: icon twice the text size, no glow */
.site-header .logo i { width: 2em; height: 2em; box-shadow: none; background-image: url("brand/brickbot-pink-animated.svg"); } /* looks around and blinks; static under reduced motion */
.site-header .logo b { color: var(--pink); font-weight: inherit; }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; } /* text + platforms first, live sample below */
.hero h1 { font-size: clamp(2.25rem, 3.8cqi, 3.4rem); overflow-wrap: break-word; }
.hero h1 .squig {
  position: relative; display: inline-block; white-space: nowrap;
  color: var(--pink);
}
.hero h1 .squig svg { display: none; }
.hero .lead { font-size: 1.12rem; margin: 22px 0 28px; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: .82rem; color: var(--muted); background: var(--card); }

.demo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: stretch; }
/* Theme controls: a column between the code and the phone */
.theme-col { display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; }
.theme-col .pill-group { flex-direction: column; flex-wrap: nowrap; }
.theme-col .pill-group button { text-align: left; padding: 8px 12px; }
.demo > * { min-width: 0; }
.panel {
  background: rgba(var(--surface-rgb), .88); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(var(--fg-rgb), 0.049), 0 20px 50px rgba(0, 0, 0, calc(.45 * var(--shadow-k)));
}
.panel .bar { display: flex; gap: 7px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); font: 500 .74rem/1 "JetBrains Mono", monospace; color: var(--muted); }
pre { margin: 0; padding: 16px; font-size: .76rem; line-height: 1.6; overflow-x: auto; color: var(--code-ink); }
#typed { height: 388px; white-space: pre-wrap; overflow: hidden; }
#typed::after { content: "▍"; color: var(--pink-text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.s { color: var(--mint); } .a { color: var(--sun); } .k { color: var(--cyan); } .c { color: #8a8a96; }

.phone {
  width: 242px; padding: 10px; border-radius: 34px; background: #1b1b1e;
  border: 1px solid rgba(var(--fg-rgb), 0.224);
  box-shadow: inset 0 1px 0 rgba(var(--fg-rgb), 0.126), 0 28px 70px rgba(0, 0, 0, calc(.6 * var(--shadow-k)));
  transition: border-radius .3s, width .3s, background .3s, box-shadow .3s;
}
.screen { height: 422px; border-radius: 26px; background: #18181b; padding: 12px; display: flex; flex-direction: column; gap: 9px; border: 1px solid rgba(var(--fg-rgb), 0.035); }
.device-status { display: flex; justify-content: space-between; align-items: center; font: 600 .66rem/1 "JetBrains Mono", monospace; color: var(--muted); padding: 2px 6px 4px; border-bottom: 1px solid rgba(var(--fg-rgb), 0.042); }
.device-status i { width: 36px; height: 5px; border-radius: 99px; background: rgba(var(--fg-rgb), 0.126); display: inline-block; }
.piece { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .35s var(--pop); }
.piece.on { opacity: 1; transform: none; }
.ui-card { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: rgba(124, 108, 255, .12); font: 600 .86rem/1.3 Outfit, sans-serif; }
.ui-btn { margin-top: auto; border: 0; cursor: pointer; padding: 11px; border-radius: 10px; background: var(--grad); color: #101013; font: 600 .8rem/1 Inter, sans-serif; }
.ui-btn:active { transform: scale(.97); }

/* Cards */
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 28px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(var(--fg-rgb), 0.056), 0 14px 34px rgba(0, 0, 0, calc(.32 * var(--shadow-k)));
  transition: transform .25s var(--pop), border-color .2s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 61, 139, .4); box-shadow: inset 0 1px 0 rgba(var(--fg-rgb), 0.105), 0 20px 44px rgba(0, 0, 0, calc(.45 * var(--shadow-k))); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; }
.blob {
  width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px;
  border-radius: 12px; background: rgba(255, 61, 139, .12); color: var(--pink-text);
  border: 1px solid rgba(255, 61, 139, .32); box-shadow: inset 0 1px 0 rgba(var(--fg-rgb), 0.098);
  font: 600 .88rem/1 "JetBrains Mono", monospace;
}
.card:nth-child(3n+2) .blob { background: rgba(124, 108, 255, .14); color: var(--cyan); border-color: rgba(124, 108, 255, .35); }
.card:nth-child(3n) .blob { background: rgba(255, 160, 107, .12); color: var(--peach); border-color: rgba(255, 160, 107, .32); }

/* What: steps */
.steps { position: relative; }
.steps > svg { position: absolute; left: 8%; right: 8%; top: 44px; width: 84%; height: 40px; z-index: -1; }
.steps > svg path { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 6 9; opacity: .5; animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -30; } }
.num { font: 700 1.1rem/1 Outfit, sans-serif; }

/* Case study */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.split > *, .stack > *, .hero .wrap > *, .cmp-grid > *, .uc-layout > *, .walkthrough-stage > *, .roi-grid > * { min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0; }
.fact { padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.fact strong { display: block; font: 600 1.6rem/1.2 Outfit, sans-serif; color: var(--ink); }
.fact span { font-size: .82rem; color: var(--muted); }
.stack { display: grid; gap: 18px; }
ul.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: .97rem; }
ul.ticks li { padding-left: 26px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50% 50% 50% 4px; background: var(--grad); }

/* fediim component previews (real fediim CSS from vendor/fediim) */
.fd-preview { padding: 22px; display: grid; gap: 12px; justify-items: start; transition: background .3s; }
.fd-preview > .fd-card { justify-self: stretch; }
.fd-preview .fd-btn.narrow { display: block; max-width: 190px; line-height: var(--size-touch); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-preview > .fd-root:not(.uc-scope) { background: transparent; }
.uc-scope { border-radius: var(--radius-lg); }
.uc-preview.fd-root { background: var(--bg-canvas); }
.uc-preview.fd-root .uc-chart { border-color: var(--border-default); background: var(--bg-card); }
.uc-preview.fd-root .uc-bar { background: var(--accent); }
.uc-preview.fd-root .uc-bar span { color: var(--text-secondary); }
.field { width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--inset-bg); color: var(--ink); font: 1rem/1.2 Inter, sans-serif; }
.swatch { width: 18px; height: 18px; border-radius: 50%; display: inline-block; vertical-align: -4px; margin-right: 8px; background: var(--c); }

/* Pipeline case study */
.pipe .card { display: flex; flex-direction: column; align-items: flex-start; }
.pipe .card p { flex: 1; margin-bottom: 18px; }
.pipe .tag { margin-bottom: 0; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .76rem; line-height: 1.3; padding: 6px 12px; }
.pipe .blob { position: absolute; top: 26px; right: 26px; margin: 0; width: 44px; height: 44px; }
.who { font: 500 .74rem/1 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.pipe .card.live { border-color: rgba(95, 212, 154, .7); transform: translateY(-6px); box-shadow: 0 18px 50px rgba(165, 148, 255, .14); }

/* 3D catalog example */
.scene { height: 300px; display: grid; place-items: center; perspective: 800px; cursor: grab; touch-action: none; user-select: none; }
.scene:active { cursor: grabbing; }
.cube { position: relative; width: 130px; height: 130px; transform-style: preserve-3d; transform: rotateX(calc(var(--el, 15) * -1deg)) rotateY(calc(var(--az, 0) * 1deg)); }
.cube b { position: absolute; inset: 0; border-radius: 22px; border: 1px solid rgba(var(--fg-rgb), 0.245); background: rgba(124, 108, 255, .5); }
.cube b:nth-child(1) { transform: translateZ(65px); }
.cube b:nth-child(2) { transform: rotateY(180deg) translateZ(65px); }
.cube b:nth-child(3) { transform: rotateY(90deg) translateZ(65px); background: rgba(165, 148, 255, .5); }
.cube b:nth-child(4) { transform: rotateY(-90deg) translateZ(65px); background: rgba(165, 148, 255, .5); }
.cube b:nth-child(5) { transform: rotateX(90deg) translateZ(65px); background: rgba(255, 160, 107, .55); }
.cube b:nth-child(6) { transform: rotateX(-90deg) translateZ(65px); background: rgba(var(--surface-rgb), .6); }
.readout { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); font: .78rem/1 "JetBrains Mono", monospace; color: var(--muted); }
.readout button { cursor: pointer; margin-left: auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; }
.readout button + button { margin-left: 0; }
.readout button:hover { background: rgba(var(--fg-rgb), 0.056); }

/* Roadmap */
.track { height: 10px; border-radius: 999px; background: rgba(var(--fg-rgb), 0.056); margin-bottom: 30px; overflow: hidden; }
.track i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.8s .3s cubic-bezier(.2, .8, .2, 1); }
.track.in i { width: 55%; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font: 600 .72rem/1 Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; background: rgba(var(--fg-rgb), 0.056); color: var(--muted); }
.tag.done { background: rgba(95, 212, 154, .16); color: var(--mint); }
.tag.now { background: rgba(255, 201, 77, .16); color: var(--sun); }
.tag.next { background: rgba(165, 148, 255, .16); color: var(--cyan); }
/* Roadmap: one centered tier per release, its items as small cards below */
.road { display: grid; gap: 56px; }
.tier { position: relative; text-align: center; }
.tier + .tier::before { content: ""; position: absolute; top: -48px; left: 50%; width: 2px; height: 40px; background: var(--line); }
.tier .tag { margin-bottom: 10px; }
.tier h3 { margin-bottom: 20px; }
.tier-items { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tier-items li { flex: 0 1 250px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: .88rem; line-height: 1.45; color: var(--muted); text-align: left; }
@container main (max-width: 620px) { .tier-items li { flex-basis: 100%; } }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button {
  cursor: pointer; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: 500 .92rem/1 Inter, sans-serif; transition: transform .25s var(--pop);
}
.tabs button:hover { transform: translateY(-2px); }
.tabs button[aria-selected="true"], .tabs button[aria-pressed="true"] { background: var(--btn-bg); color: #101013; border-color: transparent; font-weight: 600; }
.tabpanel[hidden] { display: none; }
.note { margin-top: 20px; padding: 16px 20px; border-radius: 18px; border: 1px dashed rgba(255, 201, 77, .45); color: var(--muted); font-size: .92rem; }
.note b { color: var(--sun); font-weight: 600; }

/* Agents */
.chat { display: grid; gap: 14px; }
.bubble { padding: 14px 18px; border-radius: 22px 22px 22px 6px; background: rgba(var(--fg-rgb), 0.049); border: 1px solid var(--line); font-size: .95rem; max-width: 420px; }
.bubble.me { justify-self: end; border-radius: 22px 22px 6px 22px; background: rgba(124, 108, 255, .22); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.models { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Pricing */
.price { font: 600 2rem/1.2 Outfit, sans-serif; margin: 6px 0 4px; color: var(--ink); }
.card.hot { border-color: rgba(255, 61, 139, .55); }
.card .btn { margin-top: 24px; }

/* Contact */
#contact { text-align: center; margin-bottom: 0; }
#contact .head { margin-inline: auto; }
#contact .cta { justify-content: center; }

footer { margin-top: clamp(64px, 10vw, 120px); padding: 34px 0; font-size: .85rem; color: var(--muted); background: var(--band); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .8s var(--pop); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@container main (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .steps > svg { display: none; }
}
@container main (max-width: 620px) {
  section { padding: 76px 0; }
  .g3, .g4, .facts, .kpis { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; justify-items: center; }
  .theme-col { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .theme-col .pill-group { flex-direction: row; flex-wrap: wrap; }
  .demo .panel { width: 100%; }
  #typed { height: 430px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .piece { opacity: 1; transform: none; }
  .hero h1 .squig path { stroke-dashoffset: 0; }
}

/* Home page */
.card .more { display: inline-block; margin-top: 14px; color: var(--pink-text); text-decoration: none; font-weight: 500; font-size: .92rem; }
a.card.link { text-decoration: none; color: inherit; display: block; }
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font: 600 1.08rem/1.3 Outfit, sans-serif; color: var(--ink); }
.faq details p { padding-bottom: 18px; }
.faq a { color: var(--pink-text); }
.start-snippet { max-width: 720px; margin: 0 auto 28px; }

/* Technical spec page */
.doc-hero { padding: 70px 0 50px; }
.doc-hero h1 { font-size: clamp(2.2rem, 5cqi, 3.6rem); }
.doc-hero .lead { font-size: 1.15rem; margin-top: 20px; max-width: 760px; }
.doc { padding-bottom: 80px; }
.doc section { padding: 0 0 76px; }
.doc h2 { font-size: clamp(1.7rem, 3cqi, 2.2rem); margin-bottom: 18px; }
.doc h3 { margin: 34px 0 12px; }
.doc p { margin-bottom: 14px; max-width: 78ch; }
.doc p, .doc li, .doc td, .layer span, .flow div { overflow-wrap: anywhere; }
.doc p code, .doc li code, .doc td code { font-size: .86em; padding: 2px 6px; border-radius: 6px; background: rgba(var(--fg-rgb), 0.049); color: var(--code-ink); }
.doc .panel, .doc .tablewrap, .doc .note { margin: 16px 0 22px; }
.doc ul.ticks { margin: 12px 0 18px; }
.doc ul.ticks li { max-width: 78ch; }
.tablewrap { overflow: auto; max-inline-size: 100%; border: 1px solid var(--line); border-radius: 20px; background: rgba(var(--surface-rgb), .5); container-type: inline-size; }
.tablewrap.cmp-wrap { max-block-size: min(680px, 82vh); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
caption { text-align: left; padding: 14px 16px 0; font: 600 .85rem/1.3 Outfit, sans-serif; color: var(--muted); }
thead { position: sticky; inset-block-start: 0; z-index: 2; background: var(--surface-solid); }
th { text-align: left; font: 500 .74rem/1 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); padding: 14px 16px; white-space: nowrap; background: var(--surface-solid); }
tbody th { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--surface-solid); color: var(--ink); font: 600 .9rem/1.4 Inter, sans-serif; text-transform: none; letter-spacing: 0; border-top: 1px solid var(--line); }
td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); vertical-align: top; }
td:first-child { color: var(--ink); white-space: nowrap; }
@container (width < 600px) {
  .cmp-table, .cmp-table thead, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; }
  .cmp-table thead { display: none; }
  .cmp-table tr { margin-block-end: 1rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .cmp-table tbody th { position: sticky; inset-block-start: 0; z-index: 2; background: var(--surface-solid-2); white-space: normal; border-top: 0; }
  .cmp-table { --label-2: "Google A2UI"; --label-3: "AnySDUI (1.0.0-alpha01)"; }
  .cmp-table td { white-space: normal; }
  .cmp-table td:nth-child(2)::before { content: var(--label-2) ": "; display: block; font: 600 .72rem/1.4 "JetBrains Mono", monospace; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .cmp-table td:nth-child(3)::before { content: var(--label-3) ": "; display: block; font: 600 .72rem/1.4 "JetBrains Mono", monospace; text-transform: uppercase; color: var(--mint); margin-bottom: 4px; }
}

/* Comparison & Use Cases */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 .74rem/1.3 "JetBrains Mono", monospace; white-space: nowrap; }
.pill.yes { background: rgba(95, 212, 154, .16); color: var(--mint); }
.pill.part { background: rgba(255, 201, 77, .16); color: var(--sun); }
.pill.no { background: rgba(255, 125, 92, .16); color: var(--coral); }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.uc-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.uc-preview { padding: 20px; display: grid; gap: 14px; background: #17171a; }
.uc-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.uc-chart { display: flex; align-items: flex-end; gap: 10px; height: 110px; padding: 14px 12px 6px; border-radius: 16px; border: 1px solid var(--line); background: rgba(var(--fg-rgb), 0.021); }
.uc-bar { flex: 1; background: var(--grad); border-radius: 8px 8px 3px 3px; min-height: 12px; transition: height .4s var(--pop); position: relative; }
.uc-bar span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font: 500 .68rem/1 "JetBrains Mono", monospace; color: var(--muted); }
.uc-stepper { display: flex; gap: 6px; margin-bottom: 4px; }
.uc-step { flex: 1; padding: 6px 10px; border-radius: 10px; font: 600 .74rem/1.2 "JetBrains Mono", monospace; text-align: center; background: rgba(var(--fg-rgb), 0.035); color: var(--muted); border: 1px solid var(--line); }
.uc-step.on { background: rgba(165, 148, 255, .18); color: var(--cyan); border-color: var(--cyan); }
.uc-log { font: .75rem/1.5 "JetBrains Mono", monospace; padding: 12px 14px; border-radius: 14px; background: var(--inset-bg); border: 1px solid var(--line); color: var(--mint); max-height: 150px; overflow-y: auto; display: grid; gap: 6px; }
@container main (max-width: 960px) { .cmp-grid, .uc-layout { grid-template-columns: 1fr; } }
.layers { display: grid; gap: 10px; margin: 18px 0 24px; }
.layer { padding: 16px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; }
.layer b { font: 500 .9rem/1.3 "JetBrains Mono", monospace; color: var(--ink); }
.layer span { font-size: .92rem; color: var(--muted); }
.layer.side { border-style: dashed; }
.flow { counter-reset: f; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 24px; }
.flow div { counter-increment: f; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); font-size: .92rem; color: var(--muted); }
.flow div::before { content: counter(f); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; background: var(--grad); color: #101013; font: 700 .9rem/1 Outfit, sans-serif; }
.flow b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.copy { margin-left: auto; cursor: pointer; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; }
.copy:hover { color: var(--ink); background: rgba(var(--fg-rgb), 0.056); }
@container main (max-width: 960px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .layer { grid-template-columns: 1fr; gap: 4px; }
}
@container main (max-width: 620px) { .flow { grid-template-columns: 1fr; } td:first-child { white-space: normal; } }

/* Supported Platforms Dock (Above the Fold) */
.platform-dock { margin-top: 28px; }
.hero .wrap > .platform-dock { margin-top: 0; } /* home: sits below the live sample as its own grid row */
.platform-dock-label {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font: 600 .7rem/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 10px;
}
.platform-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px clamp(24px, 3cqi, 40px); } /* every line centered with the same wide gap; overflow wraps to the next line */
.plat-badge {
  display: inline-flex; align-items: center; padding: 7px 12px 7px 9px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(var(--fg-rgb), 0.025);
  font: 500 .78rem/1.1 Inter, sans-serif; color: var(--ink);
  --icon-style-color: var(--pink-text);
  --icon-style-size: 1.9em;      /* platform icon size (about 24px) */
  --icon-style-spacing: .55em;
}
.plat-badge small { color: var(--muted); font: 400 .68rem/1 "JetBrains Mono", monospace; margin-left: 6px; }
.plat-badge.plat-android { --icon-start: var(--icon-android); }
.plat-badge.plat-ios { --icon-start: var(--icon-ios); }
.plat-badge.plat-win { --icon-start: var(--icon-windows); }
.plat-badge.plat-linux { --icon-start: var(--icon-linux); }
.plat-badge.plat-macos { --icon-start: var(--icon-macos); }
.plat-badge.plat-wasm { --icon-start: var(--icon-wasm); }
.plat-badge.plat-xr { --icon-start: var(--icon-xr); border-color: rgba(255, 61, 139, .4); --icon-style-color: var(--pink); }

/* Interactive Hero Scenario & Platform Controls */
.hero-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pill-group { display: inline-flex; gap: 4px; flex-wrap: wrap; background: rgba(var(--surface-rgb), .85); padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.pill-group button {
  cursor: pointer; border: 0; border-radius: 8px; padding: 6px 10px; background: transparent;
  color: var(--muted); font: 600 .72rem/1 "JetBrains Mono", monospace; transition: background .2s, color .2s;
}
.pill-group button[aria-pressed="true"] { background: var(--btn-bg); color: #101013; }
/* Home sample: neutral selection, so the choices do not compete with the call-to-action buttons */
.hero .pill-group button[aria-pressed="true"] { background: rgba(var(--fg-rgb), 0.112); color: var(--ink); }
.phone[data-skin="ios"] { border-radius: 42px; border-color: rgba(var(--fg-rgb), 0.266); background: #1b1b1e; }
.phone[data-skin="ios"] .screen { border-radius: 32px; }
.pill-group .swatch { width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(var(--fg-rgb), 0.245); }
/* fediim components inside the phone: fediim's own styles, made compact for a 242px screen */
.screen.fd-root { background: var(--bg-canvas); transition: background .3s; }
.screen.fd-root .device-status { color: var(--text-secondary); border-color: var(--border-subtle); }
.screen.fd-root .device-status i { background: var(--border-default); }
.screen .fd-card { padding: 12px; gap: 10px; }
/* The outer card is just a wrapper: no second background on top of the screen */
.screen > .fd-card { padding: 0; background: none; border: 0; box-shadow: none; }
.screen .fd-card .fd-card { padding: 10px 12px; gap: 4px; background: var(--bg-sunken); }
.screen .fd-card__title { font-size: 15px; line-height: 22px; }
.screen .fd-card .fd-card .fd-card__title { font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.screen .fd-stat__num { font-size: 24px; line-height: 30px; white-space: nowrap; }
.screen .fd-input { width: 100%; }
.hero-mini-chart { display: none; gap: 6px; align-items: flex-end; height: 52px; padding: 8px 10px 4px; border-radius: var(--radius-md, 12px); border: 1px solid var(--border-subtle, var(--line)); }
.hero-mini-chart.on { display: flex; }
.hero-mini-chart i { flex: 1; background: var(--accent); border-radius: 4px 4px 2px 2px; display: block; }

/* 4-Target Synchronized Walkthrough Player (#video-demo) */
.walkthrough-stage { display: grid; grid-template-columns: .95fr 1.05fr; gap: 20px; align-items: stretch; }
.targets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; background: var(--surface-solid); }
.target-frame { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: #1a1a1d; display: grid; gap: 8px; transition: border-color .3s, transform .3s var(--pop); }
.target-frame.sync-pulse { border-color: var(--mint); transform: translateY(-2px); }
.target-frame header { display: flex; justify-content: space-between; align-items: center; font: 600 .7rem/1 "JetBrains Mono", monospace; color: var(--cyan); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.target-frame header span { color: var(--pink-text); }
.target-mock { font-size: .78rem; display: grid; gap: 6px; padding-top: 4px; }
.target-mock .m-bar { height: 26px; border-radius: 8px; background: rgba(124, 108, 255, .16); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-weight: 600; color: var(--ink); }
.target-mock .m-cta { padding: 6px 10px; border-radius: 999px; background: var(--grad); color: #101013; font: 600 .72rem/1 Inter, sans-serif; text-align: center; }
@container main (max-width: 960px) { .walkthrough-stage { grid-template-columns: 1fr; } }
@container main (max-width: 560px) { .targets-grid { grid-template-columns: 1fr; } }

/* Brand-Consistent Range Slider (modern-web-guidance: slider) */
.roi-box { padding: 32px; border-radius: 28px; border: 1px solid var(--line); background: rgba(var(--surface-rgb), .85); margin-top: 44px; }
.roi-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; margin-top: 22px; }
@container main (max-width: 860px) { .roi-grid { grid-template-columns: 1fr; } }
input[type="range"].brand-slider {
  --slider-track-size: 0.55rem;
  --slider-thumb-size: 1.35rem;
  --slider-track-radius: 999px;
  --slider-thumb-radius: 50%;
  --slider-track-color: rgba(var(--fg-rgb), 0.126);
  --slider-fill-color: #ff6fa8;
  --slider-thumb-color: #a594ff;
  --slider-direction: to right;
  --attr-min: attr(min type(<number>), 10);
  --attr-max: attr(max type(<number>), 150);
  --control-value: attr(value type(<number>), 52);
  --slider-progress: calc(progress(var(--control-value), var(--attr-min), var(--attr-max)) * 100%);
  appearance: none;
  inline-size: 100%;
  block-size: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"].brand-slider:dir(rtl) { --slider-direction: to left; }
@supports not (opacity: progress(1, 0, 100)) {
  input[type="range"].brand-slider {
    --slider-progress: calc((var(--control-value) - var(--attr-min)) / (var(--attr-max) - var(--attr-min)) * 100%);
  }
}
input[type="range"].brand-slider::-webkit-slider-runnable-track {
  block-size: var(--slider-track-size);
  border: 0;
  border-radius: var(--slider-track-radius);
  background: linear-gradient(var(--slider-direction), var(--slider-fill-color) var(--slider-progress), var(--slider-track-color) var(--slider-progress));
}
input[type="range"].brand-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  inline-size: var(--slider-thumb-size);
  block-size: var(--slider-thumb-size);
  margin-block-start: calc((var(--slider-track-size) - var(--slider-thumb-size)) / 2);
  border: 2px solid #101013;
  border-radius: var(--slider-thumb-radius);
  background: var(--slider-thumb-color);
}
input[type="range"].brand-slider::-moz-range-track {
  block-size: var(--slider-track-size);
  border: 0;
  border-radius: var(--slider-track-radius);
  background: var(--slider-track-color);
}
input[type="range"].brand-slider::-moz-range-progress {
  block-size: var(--slider-track-size);
  border-radius: var(--slider-track-radius);
  background: var(--slider-fill-color);
}
input[type="range"].brand-slider::-moz-range-thumb {
  inline-size: var(--slider-thumb-size);
  block-size: var(--slider-thumb-size);
  border: 2px solid #101013;
  border-radius: var(--slider-thumb-radius);
  background: var(--slider-thumb-color);
}
input[type="range"].brand-slider:focus-visible {
  outline: 2px solid var(--slider-fill-color);
  outline-offset: 4px;
}

