/* GENERATED by build.py: concatenation of tokens.css, base.css, header.css, components.css, product.css, pages.css */
/* Banira V4 tokens — continuous dark. Values are Banira implementation targets (see docs/design/V4_NOTES.md). */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  /* grounds */
  --bg: #08090A;
  --bg-2: #0C0D0F;
  --panel: #111214;
  --panel-2: #17181B;
  --panel-3: #1E1F23;
  /* text (contrast on --bg: fg 17.6:1, fg-2 8.5:1, muted 5.4:1; on --panel-2: muted 4.6:1) */
  --fg: #EEEFF1;
  --fg-2: #A5A7AF;
  --muted: #8A8C95;
  /* lines */
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .11);
  --line-3: rgba(255, 255, 255, .18);
  --control-line: rgba(255, 255, 255, .16);
  /* product accents: carry meaning inside the product, not decoration */
  --lavender: #AAA3ED;
  --blue: #8AAFDA;
  --green: #77B697;
  --amber: #C6A568;
  --red: #E38B83;
  --lavender-bg: rgba(170, 163, 237, .12);
  --blue-bg: rgba(138, 175, 218, .12);
  --green-bg: rgba(119, 182, 151, .12);
  --amber-bg: rgba(198, 165, 104, .13);
  --red-bg: rgba(227, 139, 131, .12);
  --focus: #B9B3F5;
  /* type */
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --jp: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --t-xs: .75rem;
  --t-sm: .875rem;
  --t-base: 1rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --t-h4: 1.125rem;
  --t-h3: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --t-h2: clamp(1.875rem, 1.35rem + 2vw, 3rem);
  --t-h1: clamp(2.25rem, 1.3rem + 3.9vw, 4.5rem);
  --lh-tight: 1.06;
  --lh-head: 1.15;
  --lh-body: 1.6;
  /* layout */
  --container: 1240px;
  --gutter: clamp(20px, 3.4vw, 48px);
  --measure: 66ch;
  --header-h: 64px;
  --section: clamp(64px, 2.5rem + 4.5vw, 120px);
  /* shape */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --shadow: 0 24px 80px -24px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .35);
  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, .75, .2);
  --d-fast: 150ms;
  --d-med: 220ms;
  --d-slow: 450ms;
  --d-enter: 600ms;
}

/* ── base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg-2);
  font: 400 var(--t-base)/var(--lh-body) var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--fg); text-decoration-color: rgba(238, 239, 241, .35); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: color var(--d-fast) var(--ease), text-decoration-color var(--d-fast) var(--ease); }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { color: var(--fg); font-weight: 560; margin: 0; letter-spacing: -0.022em; line-height: var(--lh-head); text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: var(--lh-tight); letter-spacing: -0.035em; font-weight: 580; }
h2 { font-size: var(--t-h2); letter-spacing: -0.03em; line-height: 1.08; }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
code, .mono { font-family: var(--mono); font-size: .9em; font-feature-settings: normal; }
code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: .05em .35em; color: var(--fg); }
pre { margin: 0; font-family: var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
strong, b { color: var(--fg); font-weight: 560; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: rgba(170, 163, 237, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--fg); color: var(--bg); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 560; text-decoration: none; transition: top var(--d-fast) var(--ease); }
.skip:focus { top: 12px; }

/* ── layout ─────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section + .section { border-top: 1px solid transparent; }
.section--surface { background: var(--bg-2); border-block: 1px solid var(--line); }
.stack > * + * { margin-top: 1rem; }
.stack-s > * + * { margin-top: .5rem; }
.stack-l > * + * { margin-top: 1.5rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .split--even { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }
.mt-s { margin-top: .75rem; } .mt-m { margin-top: 1.5rem; } .mt-l { margin-top: 2.5rem; } .mt-xl { margin-top: 4rem; }

/* ── type helpers ───────────────────────────────────────────────────────── */
.lede { font-size: var(--t-lg); line-height: 1.55; color: var(--fg-2); max-width: 60ch; }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.muted { color: var(--muted); }
.fg { color: var(--fg); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-sm); color: var(--fg-2); font-weight: 500; letter-spacing: -0.005em; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lavender); }
.fig { font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.jp { font-family: var(--jp); letter-spacing: .2em; color: var(--muted); }
.head { max-width: 760px; }
.head > * + * { margin-top: 1rem; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .lede { margin-inline: auto; }
.h-quiet { color: var(--fg-2); }
.num { font-variant-numeric: tabular-nums; }
.h2 { font-size: var(--t-h2); } .h3 { font-size: var(--t-h3); } .h4 { font-size: var(--t-h4); }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--h); padding: 0 1.125rem;
  border-radius: var(--r-md); border: 1px solid transparent; font-size: var(--t-sm); font-weight: 520; letter-spacing: -0.006em; line-height: 1;
  text-decoration: none; white-space: nowrap; user-select: none;
  transition: background-color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.btn .ic { width: 16px; height: 16px; flex: none; }
.btn .arr { width: 14px; height: 14px; transition: transform var(--d-fast) var(--ease); }
.btn:hover .arr { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--fg); color: #0B0C0E; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12), 0 1px 0 rgba(255, 255, 255, .06); }
.btn--primary:hover { background: #fff; }
.btn--secondary { background: rgba(255, 255, 255, .055); color: var(--fg); border-color: var(--control-line); }
.btn--secondary:hover { background: rgba(255, 255, 255, .09); border-color: var(--line-3); }
.btn--ghost { color: var(--fg-2); }
.btn--ghost:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
.btn--sm { --h: 36px; padding: 0 .875rem; border-radius: 10px; font-size: .8125rem; }
.btn--xs { --h: 32px; padding: 0 .7rem; border-radius: var(--r-sm); font-size: .8125rem; }
.btn--lg { --h: 48px; padding: 0 1.375rem; font-size: var(--t-base); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; color: var(--fg); font-weight: 520; font-size: var(--t-sm); text-decoration: none; }
.link-arrow .arr { width: 14px; height: 14px; transition: transform var(--d-fast) var(--ease); }
.link-arrow:hover .arr { transform: translateX(3px); }

/* ── badges and status labels (always text + colour) ────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .3rem; height: 22px; padding: 0 .5rem; border-radius: 6px; font-size: .75rem; font-weight: 520; line-height: 1; white-space: nowrap; border: 1px solid var(--line-2); color: var(--fg-2); background: rgba(255, 255, 255, .04); letter-spacing: 0; vertical-align: middle; }
.badge .ic { width: 12px; height: 12px; }
.badge--concept { color: var(--lavender); background: var(--lavender-bg); border-color: rgba(170, 163, 237, .28); }
.badge--sample { color: var(--fg-2); }
.badge--ok { color: var(--green); background: var(--green-bg); border-color: rgba(119, 182, 151, .26); }
.badge--info { color: var(--blue); background: var(--blue-bg); border-color: rgba(138, 175, 218, .26); }
.badge--warn { color: var(--amber); background: var(--amber-bg); border-color: rgba(198, 165, 104, .28); }
.badge--bad { color: var(--red); background: var(--red-bg); border-color: rgba(227, 139, 131, .28); }
.badge--neutral { color: var(--fg-2); }
.badge--pending { color: var(--amber); background: var(--amber-bg); border-color: rgba(198, 165, 104, .28); }

/* ── reveal motion (JS adds .js; content is visible without JS) ─────────── */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--d-slow) var(--ease), transform var(--d-slow) var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero-in { opacity: 0; transform: translateY(14px); animation: heroIn var(--d-enter) var(--ease) forwards; animation-delay: var(--delay, 0ms); }
.js .hero-frame { opacity: 0; transform: translateY(18px); animation: heroIn 760ms var(--ease) forwards; animation-delay: var(--delay, 360ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }
/* Line-by-line entrance: each visual line rises from behind a mask and fades in (site.js splits the text). */
.js [data-split-lines]:not(.is-split) { opacity: 0; }
.split-line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.split-line > span { display: block; opacity: 0; transform: translateY(100%); animation: lineUp 900ms var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes lineUp { 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero-in, .js .hero-frame, .split-line > span { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js [data-split-lines] { opacity: 1 !important; }
}

/* ── header ─────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(8, 9, 10, .97); border-bottom: 1px solid var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(8, 9, 10, .72); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
}
.site-header.menu-open { background: rgba(10, 11, 12, .96); }
.header-inner { height: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--fg); text-decoration: none; flex: none; border-radius: 8px; }
.brand .mark { width: 24px; height: 24px; color: var(--fg); }
.wordmark { font-weight: 560; font-size: 1.0625rem; letter-spacing: -0.03em; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: .125rem; }
.nav-trigger, .nav-link { display: inline-flex; align-items: center; gap: .3rem; height: 34px; padding: 0 .75rem; border-radius: 9px; color: var(--fg-2); font-size: var(--t-sm); font-weight: 480; text-decoration: none; transition: color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease); }
.nav-trigger:hover, .nav-link:hover, .nav-trigger[aria-expanded="true"] { color: var(--fg); background: rgba(255, 255, 255, .05); }
.nav-link[aria-current="page"], .nav-item.is-current > .nav-trigger { color: var(--fg); }
.nav-trigger .chev { width: 10px; height: 10px; opacity: .7; transition: transform var(--d-med) var(--ease); }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: .375rem; flex: none; }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; color: var(--fg); }
.menu-toggle:hover { background: rgba(255, 255, 255, .06); }
.menu-toggle .bars, .menu-toggle .bars::before { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; position: relative; transition: transform var(--d-med) var(--ease), top var(--d-med) var(--ease); }
.menu-toggle .bars { top: -3px; }
.menu-toggle .bars::before { content: ""; position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(-90deg); }

/* mega menu panels */
.menu-panel {
  position: absolute; top: calc(var(--header-h) - 1px); left: 50%; width: min(880px, calc(100vw - var(--gutter) * 2)); transform: translate(-50%, -6px);
  background: #0E0F11; border: 1px solid var(--line-2); border-top-color: var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow);
  opacity: 0; transition: opacity var(--d-med) var(--ease), transform var(--d-med) var(--ease); overflow: hidden;
}
.menu-panel.is-open { opacity: 1; transform: translate(-50%, 0); }
.menu-inner { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
.menu-panel:has(.menu-preview) .menu-inner { grid-template-columns: minmax(0, 1fr) 280px; }
.menu-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.menu-h { font-size: var(--t-xs); color: var(--muted); font-weight: 500; margin-bottom: .5rem; padding-inline: .625rem; display: flex; gap: .5rem; align-items: baseline; }
.menu-sub { color: var(--muted); opacity: .8; font-weight: 400; }
.menu-sub::before { content: "·"; margin-right: .5rem; }
.menu-col ul { list-style: none; display: grid; gap: 2px; }
.menu-col a { display: grid; gap: .1rem; padding: .55rem .625rem; border-radius: 10px; text-decoration: none; transition: background-color var(--d-fast) var(--ease); }
.menu-col a:hover, .menu-col a:focus-visible { background: rgba(255, 255, 255, .05); }
.mi-title { color: var(--fg); font-size: var(--t-sm); font-weight: 520; display: inline-flex; gap: .4rem; align-items: center; }
.mi-desc { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.menu-preview { display: grid; align-content: space-between; gap: .75rem; padding: 1rem; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: border-color var(--d-fast) var(--ease); }
.menu-preview:hover { border-color: var(--line-3); }
.mp-cap { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .8125rem; color: var(--muted); }
.mp-cap b { color: var(--fg); font-weight: 520; width: 100%; }
.mp-cap .arr { width: 12px; height: 12px; }
.mp { display: grid; gap: .4rem; }
.mp-row { display: grid; grid-template-columns: 8px auto 1fr; gap: .5rem; align-items: center; padding: .5rem .6rem; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); font-size: .75rem; color: var(--fg-2); min-width: 0; }
.mp-row b { font-weight: 520; font-size: .75rem; }
.mp-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--in { background: var(--blue); } .dot--rule { background: var(--lavender); } .dot--ok { background: var(--green); } .dot--warn { background: var(--amber); } .dot--bad { background: var(--red); }
.menu-panel.is-open .mp-row { animation: mpLoop 8s var(--ease) infinite; }
.menu-panel.is-open .mp-rule { animation-delay: .25s; }
.menu-panel.is-open .mp-out { animation-delay: .5s; }
@keyframes mpLoop { 0% { opacity: .25; transform: translateY(4px); } 8%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: .25; transform: translateY(0); } }
.menu-announce { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.5rem; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: var(--t-sm); color: var(--fg); text-decoration: none; }
.menu-announce .arr { width: 14px; height: 14px; color: var(--muted); transition: transform var(--d-fast) var(--ease); }
.menu-announce:hover .arr { transform: translateX(3px); color: var(--fg); }
.menu-scrim { position: fixed; inset: var(--header-h) 0 0 0; background: rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity var(--d-med) var(--ease); z-index: 90; }
body.menu-open .menu-scrim { opacity: 1; }

/* mobile drawer */
.drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--bg); overflow-y: auto; padding: 1rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.js .drawer:not([hidden]) { animation: drawerIn var(--d-med) var(--ease); }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-6px); } }
.acc { list-style: none; }
.acc > li { border-bottom: 1px solid var(--line); }
.acc-trigger, .acc-link { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-size: 1.0625rem; color: var(--fg); font-weight: 520; text-decoration: none; }
.acc-trigger .chev { width: 12px; height: 12px; color: var(--muted); transition: transform var(--d-med) var(--ease); }
.acc-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc-panel { list-style: none; padding: 0 0 .75rem; display: grid; gap: 2px; }
.acc-panel a { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .75rem; border-radius: 10px; color: var(--fg-2); text-decoration: none; }
.acc-panel a:hover { background: rgba(255, 255, 255, .05); color: var(--fg); }
.drawer-cta { display: grid; gap: .6rem; margin-top: auto; }
body.drawer-open { overflow: hidden; }

@media (max-width: 1080px) { .hide-md { display: none; } }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { justify-content: space-between; }
}
@media (max-width: 420px) { .header-actions .btn--primary { display: none; } }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding-block: 4rem 2rem; background: var(--bg); }
.footer-grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.footer-brand { grid-column: span 2; max-width: 320px; display: grid; gap: .9rem; align-content: start; }
.footer-brand p { font-size: var(--t-sm); }
@media (max-width: 620px) { .footer-brand { grid-column: 1 / -1; } }
.footer-h { font-size: var(--t-sm); color: var(--fg); font-weight: 520; letter-spacing: -0.005em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer li a { color: var(--fg-2); font-size: var(--t-sm); text-decoration: none; }
.site-footer li a:hover { color: var(--fg); }
.footer-base { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: var(--t-xs); color: var(--muted); }
.status-line { display: inline-flex; align-items: center; gap: .5rem; }
.status-line i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--panel-3); color: var(--fg); border: 1px solid var(--line-2); border-radius: 10px; padding: .6rem 1rem; font-size: var(--t-sm); opacity: 0; pointer-events: none; transition: opacity var(--d-med) var(--ease), transform var(--d-med) var(--ease); z-index: 300; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(48px, 2rem + 4vw, 104px); padding-bottom: clamp(24px, 1rem + 2vw, 48px); position: relative; }
.hero::before { /* single restrained surface, not a page-wide fade */
  content: ""; position: absolute; inset: 0 0 auto; height: 720px; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 50% at 70% 10%, rgba(170, 163, 237, .07), transparent 70%), radial-gradient(40% 40% at 15% 0%, rgba(138, 175, 218, .05), transparent 70%);
}
.announce { display: inline-flex; align-items: center; gap: .6rem; height: 34px; padding: 0 .35rem 0 .4rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--fg-2); font-size: .8125rem; text-decoration: none; transition: border-color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease); }
.announce:hover { border-color: var(--line-3); background: rgba(255, 255, 255, .05); color: var(--fg); }
.announce .badge { border-radius: 999px; }
.announce .go { display: inline-flex; align-items: center; gap: .25rem; color: var(--fg); padding-right: .6rem; }
.announce .arr { width: 12px; height: 12px; transition: transform var(--d-fast) var(--ease); }
.announce:hover .arr { transform: translateX(2px); }
.hero h1 { margin-top: 1.25rem; max-width: 22ch; }
.hero h1 .line { display: block; }
.hero h1 .line--quiet { color: var(--fg-2); }
.hero .lede { margin-top: 1.5rem; max-width: 34em; }
.hero .cluster { margin-top: 2rem; }
.hero-meta { margin-top: 1.25rem; font-size: var(--t-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.hero-meta span { display: inline-flex; gap: .4rem; align-items: center; }
.hero-meta .ic { width: 14px; height: 14px; }
.page-hero { padding-top: clamp(48px, 3rem + 3vw, 104px); padding-bottom: clamp(32px, 2rem + 2vw, 64px); }
.page-hero h1 { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem); max-width: 18ch; margin-top: 1rem; }
.page-hero .lede { margin-top: 1.25rem; }
.page-hero .cluster { margin-top: 1.75rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--t-sm); color: var(--muted); }
.breadcrumb a { color: var(--fg-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg); }

/* view switcher above the product frame */
.showcase { margin-top: clamp(40px, 2rem + 2vw, 64px); }
.switcher { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1rem; }
.switcher-tabs { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.switcher-tabs button { height: 34px; padding: 0 .9rem; border-radius: 9px; color: var(--fg-2); font-size: .8125rem; font-weight: 500; display: inline-flex; align-items: center; gap: .45rem; transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease); }
.switcher-tabs button[aria-selected="true"] { background: var(--panel-3); color: var(--fg); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 1px 2px rgba(0, 0, 0, .4); }
.switcher-tabs button:hover { color: var(--fg); }
.switcher-cap { font-size: var(--t-sm); color: var(--muted); max-width: 62ch; }
.switcher-cap b { color: var(--fg-2); font-weight: 520; }
.frame-wrap { position: relative; }
.frame-wrap > [role="tabpanel"] { outline: none; }
.frame-fade { position: relative; }
.frame-fade::after { /* product crop melts into the ground below; content above stays readable */
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 64px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg)); border-radius: 0 0 var(--r-xl) var(--r-xl);
}

/* ── cards ──────────────────────────────────────────────────────────────── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); position: relative; }
.card h3 { font-size: var(--t-h4); }
.card > * + * { margin-top: .6rem; }
.card .ic-wrap { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--fg); }
.card .ic-wrap .ic { width: 18px; height: 18px; }
.card--link { text-decoration: none; display: block; transition: border-color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease); }
.card--link:hover { border-color: var(--line-3); background: #131416; }
.card--quiet { background: transparent; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }

/* layers explainer (company / service / concept) */
.layers { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.layer { background: var(--bg-2); padding: 1.75rem; display: grid; gap: .6rem; align-content: start; }
.layer .fig { display: flex; align-items: center; gap: .5rem; }
.layer h3 { font-size: var(--t-h4); }
.layer p { font-size: .9375rem; }

/* feature rows with controls that open detail sheets */
.feature { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .feature { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } .feature--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); } .feature--rev > :first-child { order: 2; } }
.feature-copy > * + * { margin-top: 1.1rem; }
.feature-copy h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.controls { display: grid; gap: .5rem; margin-top: 1.75rem; }
.control { display: grid; grid-template-columns: 36px 1fr auto; gap: .9rem; align-items: center; text-align: left; padding: .9rem 1rem; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); transition: border-color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease); }
.control:hover { border-color: var(--line-3); background: #131416; }
.control .ic-wrap { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--fg); }
.control .ic-wrap .ic { width: 18px; height: 18px; }
.control b { display: block; font-size: var(--t-sm); }
.control span.d { display: block; font-size: .8125rem; color: var(--muted); margin-top: .1rem; }
.control .open { font-size: .75rem; color: var(--muted); display: inline-flex; gap: .3rem; align-items: center; }
.control .open .arr { width: 12px; height: 12px; }
.stage { position: relative; display: grid; gap: 1rem; padding: clamp(1rem, .6rem + 1.5vw, 2rem); border-radius: var(--r-xl); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at 50% 0%, rgba(255, 255, 255, .035), transparent 70%); }
.stage--fade { -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); padding-bottom: 3.5rem; }
.stage-row { display: grid; gap: 1rem; }
@media (min-width: 720px) { .stage-row--2 { grid-template-columns: 1fr 1fr; align-items: start; } }

/* product cards (reply, alert, schedule, score) */
.pcard { margin: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 1rem 1.1rem; display: grid; gap: .75rem; position: relative; box-shadow: 0 12px 40px -20px rgba(0, 0, 0, .8); }
.pcard-h { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: .75rem; }
.pcard figcaption { font-size: .75rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .65rem; }
.pcard-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .8125rem; color: var(--fg-2); }
.pcard-note .ic { width: 15px; height: 15px; flex: none; margin-top: .15rem; color: var(--blue); }
.mail-meta { display: grid; gap: .25rem; margin: 0; font-size: .8125rem; }
.mail-meta div { display: grid; grid-template-columns: 64px 1fr; gap: .5rem; }
.mail-meta dt { color: var(--muted); }
.mail-meta dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.mail-body { font-family: var(--sans); font-size: .875rem; line-height: 1.6; color: var(--fg); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .85rem 1rem; }
.alert-subj { font-size: .875rem; color: var(--fg); font-weight: 520; }
.sched { list-style: none; display: grid; gap: 0; position: relative; }
.sched li { display: grid; grid-template-columns: 14px auto 1fr auto; gap: .65rem; align-items: center; padding: .55rem 0; font-size: .8125rem; border-bottom: 1px solid var(--line); }
.sched li:last-child { border-bottom: 0; }
.sched .mono { color: var(--fg-2); font-size: .75rem; }
.sc-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--blue); }
.sched li[data-state="sent"] .sc-dot { background: var(--green); border-color: var(--green); }
.sched li[data-state="stopped"] .sc-dot, .sched li[data-state="paused"] .sc-dot, .sched li[data-state="on hold"] .sc-dot { border-color: var(--muted); }
.sc-step { color: var(--fg); }
.st { font-size: .7rem; padding: .15rem .45rem; border-radius: 5px; border: 1px solid var(--line-2); color: var(--fg-2); text-transform: capitalize; white-space: nowrap; }
.st--sent { color: var(--green); border-color: rgba(119, 182, 151, .3); }
.st--scheduled { color: var(--blue); border-color: rgba(138, 175, 218, .3); }
.st--stopped, .st--paused, .st--on-hold { color: var(--muted); }
.score-row { display: flex; align-items: baseline; gap: .5rem; }
.score-n { font-size: 2.25rem; font-weight: 560; color: var(--fg); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tier { margin-left: auto; font-size: .75rem; font-weight: 560; padding: .2rem .55rem; border-radius: 6px; text-transform: capitalize; border: 1px solid; }
.tier--hot { color: var(--amber); border-color: rgba(198, 165, 104, .35); background: var(--amber-bg); }
.tier--warm { color: var(--blue); border-color: rgba(138, 175, 218, .35); background: var(--blue-bg); }
.tier--cold { color: var(--fg-2); border-color: var(--line-2); }
.meter { height: 6px; border-radius: 6px; background: var(--panel-3); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--lavender), var(--blue)); transition: width 700ms var(--ease); }
.reasons { list-style: none; display: grid; gap: .3rem; font-size: .8125rem; }
.reasons li { display: grid; grid-template-columns: 42px 1fr; gap: .5rem; color: var(--fg-2); }
.reasons .pts { color: var(--green); font-size: .75rem; }
.reasons li.neg .pts { color: var(--red); }

/* delivery diagram */
.diagram { margin: 0; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--r-xl); border: 1px dashed var(--line-3); background: var(--bg-2); }
.dg { list-style: none; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); counter-reset: dg; position: relative; }
.dg-node { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 1rem; display: grid; gap: .35rem; align-content: start; }
.dg-node::after { content: ""; position: absolute; top: 34px; right: -.75rem; width: .75rem; height: 1px; background: var(--line-3); }
.dg-node:last-child::after { display: none; }
.dg-node:last-child { border-color: rgba(198, 165, 104, .35); }
.dg-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--panel-2); color: var(--fg); margin-bottom: .25rem; }
.dg-ic .ic { width: 17px; height: 17px; }
.dg-t { color: var(--fg); font-size: var(--t-sm); font-weight: 520; }
.dg-d { font-size: .8125rem; color: var(--muted); line-height: 1.45; }
.diagram figcaption { margin-top: 1rem; font-size: .8125rem; color: var(--muted); }
.dg-node .pulse { position: absolute; top: 31px; right: -.75rem; width: 7px; height: 7px; border-radius: 50%; background: var(--lavender); opacity: 0; }
.js .diagram.is-in .dg-node .pulse { animation: dgPulse 4.5s var(--ease) infinite; animation-delay: calc(var(--i) * .7s); }
@keyframes dgPulse { 0% { opacity: 0; transform: translateX(-6px); } 15% { opacity: 1; } 30%, 100% { opacity: 0; transform: translateX(10px); } }
@media (max-width: 760px) { .dg-node::after, .dg-node .pulse { display: none; } }

/* lists */
.ticks { list-style: none; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); transform: rotate(-45deg) translateY(-4px); }
.crosses li::before { border: 0; width: 10px; height: 1.5px; background: var(--muted); transform: none; top: .8em; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.steps > li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: var(--t-sm); color: var(--muted); padding-top: .2rem; }
.steps h3 { font-size: var(--t-h4); }
.steps p { margin-top: .35rem; }
.steps .meta { font-size: .8125rem; color: var(--muted); margin-top: .5rem; }

/* notes */
.note { border: 1px solid var(--line-2); background: var(--panel); border-radius: var(--r-md); padding: 1rem 1.15rem; font-size: .9375rem; }
.note--pending { border-color: rgba(198, 165, 104, .3); background: rgba(198, 165, 104, .06); }
.note--legal { border-color: rgba(227, 139, 131, .3); background: rgba(227, 139, 131, .05); }
.note--concept { border-color: rgba(170, 163, 237, .28); background: rgba(170, 163, 237, .05); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
caption { text-align: left; padding: .9rem 1rem; color: var(--muted); font-size: .8125rem; border-bottom: 1px solid var(--line); }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--muted); font-weight: 500; font-size: .8125rem; background: var(--bg-2); }
tbody th { color: var(--fg); font-weight: 520; }
tbody tr:last-child > * { border-bottom: 0; }
td { color: var(--fg-2); }
td.num, th.num { text-align: right; }

/* pricing */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 1rem; }
.plan > * + * { margin-top: 0; }
.plan > .badge { align-self: flex-start; }
.plan .price { font-size: 2.5rem; font-weight: 560; color: var(--fg); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: var(--t-sm); color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: .25rem; }
.plan ul { list-style: none; display: grid; gap: .55rem; font-size: .9375rem; }
.plan ul li { padding-left: 1.4rem; position: relative; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 6px; border-left: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2); transform: rotate(-45deg) translateY(-3px); }
.plan .btn { margin-top: auto; }
.plan--focus { border-color: var(--line-3); background: linear-gradient(180deg, #15161A, var(--panel)); }
.plan:focus-within, .plan:hover { border-color: var(--line-3); }
.plan .recurring { font-size: var(--t-sm); color: var(--muted); }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.15rem 0; color: var(--fg); font-weight: 520; font-size: 1.0625rem; letter-spacing: -0.01em; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform var(--d-med) var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq .answer { padding: 0 0 1.25rem; max-width: 70ch; }
.faq .answer > * + * { margin-top: .75rem; }

/* prose (articles, legal) */
.article { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .article { grid-template-columns: 220px minmax(0, 1fr); } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: .1rem; font-size: var(--t-sm); }
.toc p { margin-bottom: .5rem; }
.toc a { color: var(--muted); text-decoration: none; padding: .3rem 0 .3rem .75rem; border-left: 1px solid var(--line); }
.toc a:hover, .toc a.is-active { color: var(--fg); border-left-color: var(--fg-2); }
@media (max-width: 999px) { .toc { position: static; display: none; } }
.prose { max-width: 70ch; font-size: var(--t-md); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: var(--t-h3); margin-top: 2.75rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: var(--t-h4); margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: .5rem; }
.prose li::marker { color: var(--muted); }
.prose .table-wrap { margin-block: 1.5rem; }
.prose .note { margin-block: 1.5rem; }

/* forms */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: .4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: var(--t-sm); color: var(--fg); font-weight: 500; padding: 0; }
.field .opt { color: var(--muted); font-weight: 400; margin-left: .35rem; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-height: 44px; padding: .6rem .8rem; background: var(--bg-2); border: 1px solid var(--control-line); border-radius: 10px; color: var(--fg);
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.75 5 6.75l3-3' fill='none' stroke='%238A8C95' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 10px; padding-right: 2rem; }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(185, 179, 245, .2); }
input::placeholder, textarea::placeholder { color: #6E7079; }
.help { font-size: .8125rem; color: var(--muted); }
.field-error { display: none; font-size: .8125rem; color: var(--red); }
.is-invalid .field-error { display: block; }
.is-invalid input, .is-invalid textarea, .is-invalid select { border-color: rgba(227, 139, 131, .7); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: .65rem; align-items: start; font-size: var(--t-sm); }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--lavender); }
.choice-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.choice { display: flex; gap: .6rem; align-items: center; min-height: 44px; padding: 0 .8rem; border: 1px solid var(--control-line); border-radius: 10px; background: var(--bg-2); font-size: var(--t-sm); cursor: pointer; transition: border-color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease); }
.choice:hover { border-color: var(--line-3); }
.choice:has(input:checked) { border-color: rgba(170, 163, 237, .6); background: var(--lavender-bg); color: var(--fg); }
.choice input { width: 16px; height: 16px; accent-color: var(--lavender); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--r-md); padding: 1.25rem; border: 1px solid var(--line-2); background: var(--panel); display: grid; gap: .75rem; }
.form-status--warn { border-color: rgba(198, 165, 104, .35); }
.form-status--ok { border-color: rgba(119, 182, 151, .35); }
.form-status--bad { border-color: rgba(227, 139, 131, .4); }
.form-status pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .85rem; font-size: .8125rem; color: var(--fg); }
.form-error-summary { color: var(--fg); }

/* detail sheets (native <dialog>) */
.sheet { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(620px, 100vw); max-width: 100vw; padding: 0; border: 0; border-left: 1px solid var(--line-2); background: #0D0E10; color: var(--fg-2); overflow: hidden; }
.sheet::backdrop { background: rgba(0, 0, 0, .62); }
.sheet[open] { animation: sheetIn 280ms var(--ease); }
.sheet[open]::backdrop { animation: fadeIn 280ms var(--ease); }
.sheet.is-closing { animation: sheetOut 200ms var(--ease-in) forwards; }
.sheet.is-closing::backdrop { animation: fadeOut 200ms var(--ease-in) forwards; }
@keyframes sheetIn { from { transform: translateX(32px); opacity: 0; } }
@keyframes sheetOut { to { transform: translateX(32px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.sheet-inner { height: 100%; display: flex; flex-direction: column; }
.sheet-head { position: relative; padding: 1.5rem 1.75rem 1.25rem; border-bottom: 1px solid var(--line); display: grid; gap: .3rem; }
.sheet-head h2 { font-size: 1.5rem; padding-right: 6rem; }
.kicker { font-size: .8125rem; color: var(--muted); }
.sheet-close { position: absolute; top: 1.25rem; right: 1.25rem; }
.sheet-body { overflow-y: auto; padding: 1.5rem 1.75rem 2.5rem; display: grid; gap: 1.25rem; align-content: start; overscroll-behavior: contain; }
.sheet-body h3 { font-size: var(--t-h4); margin-top: .5rem; }
.sheet-intro { font-size: 1rem; color: var(--fg-2); }
.sheet-view { display: grid; gap: 1rem; }
.limits { list-style: none; display: grid; gap: .5rem; font-size: .9375rem; }
.limits li { padding-left: 1.25rem; position: relative; }
.limits li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1.5px; background: var(--amber); }
.sheet-cta { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: .5rem; }
.tpl-list { display: grid; gap: .4rem; }
.tpl-list details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.tpl-list summary { cursor: pointer; display: flex; justify-content: space-between; gap: .75rem; padding: .65rem .85rem; font-size: var(--t-sm); color: var(--fg); }
.tpl-list .mail-body { margin: 0 .6rem .6rem; }
@media (max-width: 640px) { .sheet { width: 100vw; border-left: 0; } .sheet-head, .sheet-body { padding-inline: 1.25rem; } }
body.sheet-open { overflow: hidden; }

/* closing band */
.closing { text-align: center; }
.closing h2 { max-width: 18ch; margin-inline: auto; }
.closing .lede { margin: 1.25rem auto 0; }
.closing .cluster { justify-content: center; margin-top: 2rem; }
.next-steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-top: 3rem; text-align: left; counter-reset: ns; }
.next-steps li { list-style: none; counter-increment: ns; padding: 1.25rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); display: grid; gap: .35rem; }
.next-steps li::before { content: counter(ns); font-family: var(--mono); font-size: .75rem; color: var(--muted); width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2); display: grid; place-items: center; margin-bottom: .35rem; }
.next-steps b { font-size: .9375rem; }
.next-steps span { font-size: var(--t-sm); }

/* ── Lead Desk sample workspace (.ld) ───────────────────────────────────── */
.ld { --ld-h: 660px; position: relative; border-radius: var(--r-xl); background: #0D0E10; border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .5); overflow: hidden; font-size: .875rem; color: var(--fg-2); isolation: isolate; }
.ld::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); z-index: 2; }
.ld[data-variant="full"] { --ld-h: 720px; }
.ld-chrome { height: 52px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 0 .75rem 0 .6rem; border-bottom: 1px solid var(--line); background: #0F1012; }
.ld-biz-wrap { position: relative; }
.ld-biz { display: inline-flex; align-items: center; gap: .5rem; height: 34px; padding: 0 .55rem 0 .35rem; border-radius: 9px; color: var(--fg); font-size: .8125rem; font-weight: 520; }
.ld-biz:hover, .ld-biz[aria-expanded="true"] { background: rgba(255, 255, 255, .05); }
.ld-biz .chev { width: 10px; height: 10px; color: var(--muted); }
.ld-avatar { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: #26303B; color: var(--blue); font-size: .7rem; font-weight: 640; }
.ld-biz-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: 290px; padding: .9rem 1rem; border-radius: var(--r-md); background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: grid; gap: .5rem; font-size: .8125rem; }
.ld-title { display: flex; gap: .6rem; justify-content: center; font-size: .8125rem; color: var(--fg); font-weight: 520; }
.ld-clock { font-size: .75rem; color: var(--muted); }
.ld-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); height: var(--ld-h); }
.ld-static { display: none; }
.no-js .ld-body, .ld.is-broken .ld-body { display: none; }
.no-js .ld-static, .ld.is-broken .ld-static { display: block; padding: 1.5rem; }
.ld-static ol { list-style: decimal; padding-left: 1.25rem; display: grid; gap: .9rem; margin-top: 1rem; }
.ld-static li span { display: block; }
.ld-static .mail-body { margin-top: .5rem; }

/* sidebar */
.ld-side { border-right: 1px solid var(--line); background: #0B0C0E; padding: .75rem .5rem; display: flex; flex-direction: column; gap: .25rem; min-height: 0; }
.ld-views, .ld-rules { display: grid; gap: 1px; }
.ld-view, .ld-rule { display: grid; grid-template-columns: 18px 1fr auto; gap: .55rem; align-items: center; height: 34px; padding: 0 .55rem; border-radius: 8px; color: var(--fg-2); font-size: .8125rem; text-align: left; transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease); }
.ld-view .ic, .ld-rule .ic { width: 16px; height: 16px; }
.ld-view:hover, .ld-rule:hover { background: rgba(255, 255, 255, .045); color: var(--fg); }
.ld-view[aria-pressed="true"] { background: rgba(255, 255, 255, .07); color: var(--fg); }
.ld-rule { grid-template-columns: 18px 1fr; }
.count { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ld-side-h { font-size: .7rem; color: var(--muted); padding: 1rem .55rem .35rem; font-weight: 500; }
.ld-side-foot { margin-top: auto; padding: .75rem .55rem 0; border-top: 1px solid var(--line); display: grid; gap: .15rem; font-size: .7rem; color: var(--fg-2); }
.ld-side-foot [data-actions] { font-variant-numeric: tabular-nums; color: var(--fg); }

/* main panels */
.ld-main { min-width: 0; min-height: 0; position: relative; }
.ld-panel { height: 100%; min-height: 0; }
.ld-panel--inquiries { display: grid; grid-template-columns: 260px minmax(0, 1fr) 256px; }
.js .ld-panel[data-panel]:not([hidden]) { animation: panelIn 220ms var(--ease); }
@keyframes panelIn { from { opacity: 0; } }

/* inquiry list */
.ld-list { border-right: 1px solid var(--line); overflow-y: auto; min-height: 0; padding: .5rem; display: grid; align-content: start; gap: 2px; }
.ld-list-h { font-size: .7rem; color: var(--muted); padding: .7rem .6rem .35rem; font-weight: 500; display: flex; justify-content: space-between; }
.ld-item { display: grid; grid-template-columns: 1fr auto; gap: .2rem .5rem; text-align: left; width: 100%; padding: .6rem .65rem; border-radius: 9px; border: 1px solid transparent; transition: background-color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease); }
.ld-item:hover { background: rgba(255, 255, 255, .035); }
.ld-item[aria-current="true"] { background: rgba(255, 255, 255, .06); border-color: var(--line-2); }
.ld-item .nm { color: var(--fg); font-weight: 520; font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-item .tm { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ld-item .sn { grid-column: 1 / -1; font-size: .75rem; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-item .tg { grid-column: 1 / -1; display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .2rem; }
.pill { display: inline-flex; align-items: center; gap: .3rem; height: 20px; padding: 0 .4rem; border-radius: 5px; font-size: .6875rem; font-weight: 500; border: 1px solid var(--line-2); color: var(--fg-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill--plain::before { display: none; }
.pill--urgent, .pill--hot { color: var(--amber); border-color: rgba(198, 165, 104, .3); }
.pill--warm, .pill--info, .pill--new { color: var(--blue); border-color: rgba(138, 175, 218, .3); }
.pill--ok, .pill--replied { color: var(--green); border-color: rgba(119, 182, 151, .3); }
.pill--attention, .pill--needs-attention { color: var(--red); border-color: rgba(227, 139, 131, .32); }
.pill--quiet, .pill--spam, .pill--booked, .pill--cold { color: var(--muted); }
.pill--neutral { color: var(--fg-2); }
.pill--neutral::before { display: none; }

/* conversation */
.ld-convo { display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-width: 0; min-height: 0; background: #0D0E10; }
.ld-convo-head { display: flex; align-items: center; gap: .75rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); min-height: 60px; }
.ld-convo-title { min-width: 0; flex: 1; display: grid; gap: .1rem; }
.ld-convo-title .nm { color: var(--fg); font-size: .9375rem; font-weight: 560; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.ld-convo-title .sub { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-back { display: none; align-items: center; gap: .3rem; height: 32px; padding: 0 .5rem 0 .3rem; border-radius: 8px; color: var(--fg-2); font-size: .8125rem; }
.ld-back .ic { width: 16px; height: 16px; }
.ld-props-toggle { display: none; }
.ld-tour { display: flex; align-items: center; gap: .75rem; padding: .55rem .9rem; border-bottom: 1px solid var(--line); background: #0F1012; }
.ld-steps { list-style: none; display: flex; gap: 2px; flex: 1; min-width: 0; }
.ld-steps li { flex: 1; min-width: 0; }
.ld-step { width: 100%; display: grid; gap: .3rem; padding: .35rem .4rem .45rem; border-radius: 7px; text-align: left; color: var(--muted); position: relative; transition: color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease); }
.ld-step::before { content: ""; height: 2px; border-radius: 2px; background: var(--panel-3); display: block; }
.ld-step::after { content: ""; position: absolute; left: .4rem; top: .35rem; height: 2px; border-radius: 2px; background: var(--fg-2); width: 0; }
.ld-step.is-done::after { width: calc(100% - .8rem); background: var(--fg-2); }
.ld-step.is-current::after { width: calc(100% - .8rem); background: var(--lavender); }
.ld.is-playing .ld-step.is-current::after { width: 0; animation: stepFill var(--dwell, 3200ms) linear forwards; }
@keyframes stepFill { to { width: calc(100% - .8rem); } }
.ld-step .n { font-family: var(--mono); font-size: .65rem; }
.ld-step .t { font-size: .75rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-step:hover { color: var(--fg-2); background: rgba(255, 255, 255, .03); }
.ld-step.is-current, .ld-step[aria-pressed="true"] { color: var(--fg); }
.ld-step.is-skipped .t { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.ld-tour-ctrl { display: flex; gap: 2px; flex: none; }
.ld-ctl { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--fg-2); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.ld-ctl:hover { color: var(--fg); border-color: var(--line-3); }
.ld-ctl .ic { width: 14px; height: 14px; }
.ld-ctl .ic-play { display: none; }
.ld:not(.is-playing) .ld-ctl .ic-play { display: block; }
.ld:not(.is-playing) .ld-ctl .ic-pause { display: none; }

/* thread */
.ld-thread { overflow-y: auto; min-height: 0; padding: 1.1rem 1.1rem 2rem; display: grid; align-content: start; gap: .75rem; scroll-behavior: smooth; }
.ld-thread:focus-visible { outline-offset: -3px; }
.ld-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); padding: .9rem 1rem; display: grid; gap: .7rem; transition: border-color 300ms var(--ease), opacity 300ms var(--ease), background-color 300ms var(--ease); }
.js .ld-card.is-new { animation: cardIn 380ms var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } }
.ld-card.is-current { border-color: rgba(170, 163, 237, .42); background: #131318; box-shadow: 0 0 0 3px rgba(170, 163, 237, .06); }
.ld-card.is-past { opacity: .78; }
.ld-card-h { display: flex; align-items: center; gap: .6rem; font-size: .75rem; color: var(--muted); }
.ld-card-h .n { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-family: var(--mono); font-size: .65rem; border: 1px solid var(--line-2); color: var(--fg-2); flex: none; }
.ld-card.is-current .ld-card-h .n { border-color: rgba(170, 163, 237, .5); color: var(--lavender); }
.ld-card-h b { color: var(--fg); font-size: .8125rem; font-weight: 560; }
.ld-card-h .tm { margin-left: auto; font-family: var(--mono); font-size: .7rem; }
.ld-card p { font-size: .875rem; }
.ld-msg { font-size: .9375rem; line-height: 1.55; color: var(--fg); }
.ld-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .75rem; color: var(--muted); }
.ld-meta b { color: var(--fg-2); font-weight: 500; }
.ld-why { font-size: .8125rem; color: var(--fg-2); }
.ld-sim { font-size: .72rem; color: var(--muted); display: inline-flex; gap: .35rem; align-items: center; }
.ld-sim::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.ld-card .mail-body { font-size: .875rem; }
.ld-card .sched li { font-size: .8125rem; }

/* properties */
.ld-props { border-left: 1px solid var(--line); overflow-y: auto; min-height: 0; padding: 1rem; display: grid; align-content: start; gap: 1.1rem; background: #0B0C0E; }
.ld-props-h { font-size: .7rem; color: var(--muted); font-weight: 500; margin-bottom: .45rem; letter-spacing: 0; }
.ld-props dl { margin: 0; display: grid; gap: .4rem; font-size: .8125rem; }
.ld-props dl div { display: grid; grid-template-columns: 72px 1fr; gap: .5rem; }
.ld-props dt { color: var(--muted); }
.ld-props dd { margin: 0; color: var(--fg); overflow-wrap: break-word; min-width: 0; }
.ld-props dd.trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-next { padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); font-size: .8125rem; color: var(--fg); display: grid; gap: .2rem; }
.ld-next[data-kind="urgent"] { border-color: rgba(198, 165, 104, .4); }
.ld-next[data-kind="attention"] { border-color: rgba(227, 139, 131, .45); }
.ld-next[data-kind="info"] { border-color: rgba(138, 175, 218, .35); }
.ld-labels { display: flex; flex-wrap: wrap; gap: .3rem; }
.ld-mini-sched { list-style: none; display: grid; gap: .3rem; font-size: .75rem; }
.ld-mini-sched li { display: flex; justify-content: space-between; gap: .5rem; color: var(--fg-2); }
.ld-mini-sched .st { border: 0; padding: 0; }
.ld-props-close { display: none; }

/* follow-ups and tracker views */
.ld-view-panel { height: 100%; overflow: auto; padding: 1rem 1.1rem 2rem; display: grid; align-content: start; gap: 1rem; }
.ld-view-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.ld-view-title { font-size: 1rem; color: var(--fg); font-weight: 560; }
.seg { display: inline-flex; padding: 2px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); }
.seg button { height: 28px; padding: 0 .65rem; border-radius: 7px; font-size: .75rem; color: var(--fg-2); }
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--fg); }
.ld-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.ld-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .72rem; padding: .5rem .6rem; border-bottom: 1px solid var(--line); background: transparent; white-space: nowrap; }
.ld-table td { padding: .6rem; border-bottom: 1px solid var(--line); color: var(--fg-2); vertical-align: middle; }
.ld-table td.nm { color: var(--fg); font-weight: 520; white-space: nowrap; }
.ld-table tr.is-row-link { cursor: pointer; }
.ld-table tr.is-row-link:hover td { background: rgba(255, 255, 255, .025); }
.ld-table .mono { font-size: .72rem; }
.ld-table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; background: var(--panel); }
.ld-table-wrap:focus-visible { outline-offset: 2px; }
.ld-empty { padding: 2.25rem 1rem; text-align: center; display: grid; gap: .4rem; justify-items: center; color: var(--fg-2); border: 1px dashed var(--line-2); border-radius: var(--r-md); }
.ld-empty .ic { width: 22px; height: 22px; color: var(--muted); }
.ld-empty b { font-size: .875rem; }
.ld-note { font-size: .75rem; color: var(--muted); }
.ld-row-note { font-size: .72rem; color: var(--muted); display: block; margin-top: .15rem; white-space: normal; }

/* responsive: properties become a drawer, then list → detail */
@media (max-width: 1180px) {
  .ld-panel--inquiries { grid-template-columns: 240px minmax(0, 1fr); }
  .ld-props { position: absolute; top: 0; right: 0; bottom: 0; width: min(300px, 88%); z-index: 6; box-shadow: -24px 0 48px rgba(0, 0, 0, .55); transform: translateX(105%); transition: transform var(--d-med) var(--ease); visibility: hidden; }
  .ld.props-open .ld-props { transform: none; visibility: visible; }
  .ld-props-toggle { display: inline-flex; }
  .ld-props-close { display: inline-flex; justify-self: start; }
}
@media (max-width: 900px) {
  .ld { --ld-h: 640px; }
  .ld-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .ld-side { flex-direction: row; align-items: center; gap: .25rem; padding: .4rem; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .ld-side::-webkit-scrollbar { display: none; }
  .ld-views, .ld-rules { display: flex; gap: 2px; }
  .ld-view, .ld-rule { grid-template-columns: 16px auto auto; white-space: nowrap; }
  .ld-side-h { padding: 0 .25rem 0 .75rem; white-space: nowrap; }
  .ld-side-foot { display: none; }
  .ld-chrome { grid-template-columns: auto 1fr; }
  .ld-title { display: none; }
  .ld-clock { justify-self: end; }
}
@media (max-width: 720px) {
  .ld { --ld-h: 620px; font-size: .875rem; }
  .ld-panel--inquiries { grid-template-columns: minmax(0, 1fr); }
  .ld-panel--inquiries .ld-convo { display: none; }
  .ld.show-detail .ld-panel--inquiries .ld-convo { display: grid; }
  .ld.show-detail .ld-panel--inquiries .ld-list { display: none; }
  .ld-list { border-right: 0; }
  .ld-back { display: inline-flex; }
  .ld-convo-head { padding: .6rem .7rem; gap: .5rem; }
  .ld-convo-title .nm { font-size: .875rem; }
  .ld-step .t { display: none; }
  .ld-step.is-current .t { display: block; }
  .ld-steps li:has(.is-current) { flex: 3; }
  .ld-thread { padding: .9rem .8rem 2rem; }
  .ld-biz-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ld-view span:not(.count), .ld-rule span { font-size: .78rem; }
}

/* ── Workspace concept (.ws) ────────────────────────────────────────────── */
.ws { border-radius: var(--r-xl); background: #0D0E10; border: 1px solid rgba(170, 163, 237, .22); box-shadow: var(--shadow); overflow: hidden; }
.ws-chrome { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: #0F1012; }
.ws-title { display: inline-flex; align-items: center; gap: .55rem; font-size: .8125rem; color: var(--fg); }
.ws-title .mark { width: 18px; height: 18px; color: var(--lavender); }
.ws-title b { font-weight: 560; }
.ws-body { padding: 1rem; display: grid; gap: 1rem; min-height: 520px; align-content: start; }
.ws[data-variant="full"] .ws-body { min-height: 560px; }
.ws-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); justify-self: start; overflow-x: auto; max-width: 100%; }
.ws-tabs button { height: 32px; padding: 0 .8rem; border-radius: 8px; font-size: .8125rem; color: var(--fg-2); white-space: nowrap; }
.ws-tabs button[aria-selected="true"] { background: var(--panel-3); color: var(--fg); }
.ws[data-variant="compact"] .ws-tabs { display: none; }
.ws [role="tabpanel"] { outline-offset: 4px; border-radius: 8px; display: grid; gap: .75rem; align-content: start; }
.ws [role="tabpanel"][hidden] { display: none; }
.ws-static { display: none; padding: 1.25rem; }
.no-js .ws-body { display: none; }
.no-js .ws-static { display: block; }
.ws-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.ws-stat { padding: 1rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); display: grid; gap: .3rem; }
.ws-stat .k { font-size: .75rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; }
.ws-stat .v { font-size: 1.75rem; color: var(--fg); font-weight: 560; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ws-stat .d { font-size: .75rem; color: var(--fg-2); }
.ws-cols { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .ws-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.ws-box { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); padding: .9rem 1rem; display: grid; gap: .6rem; align-content: start; min-width: 0; }
.ws-box h2 { font-size: .8125rem; color: var(--fg); font-weight: 560; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.ws-list { list-style: none; display: grid; gap: 0; }
.ws-list li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .8125rem; }
.ws-list li:first-child { border-top: 0; }
.ws-list .t { color: var(--fg); font-weight: 500; }
.ws-list .s { grid-column: 1 / -1; color: var(--muted); font-size: .75rem; }
.ws-act { list-style: none; display: grid; gap: 0; }
.ws-act li { display: grid; grid-template-columns: 64px 10px 1fr; gap: .6rem; align-items: baseline; padding: .45rem 0; font-size: .8125rem; color: var(--fg-2); }
.ws-act .tm { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.ws-act .dot { transform: translateY(-1px); }
.ws-act button { text-align: left; color: var(--fg-2); }
.ws-act button:hover { color: var(--fg); text-decoration: underline; text-underline-offset: .2em; }
.ws-flow { display: grid; gap: .75rem; }
.ws-wf { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); padding: 1rem; display: grid; gap: .8rem; }
.ws-wf-h { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ws-wf-h b { color: var(--fg); font-size: .9375rem; margin-right: auto; }
.ws-seq { list-style: none; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); counter-reset: q; }
.ws-seq li { padding: .65rem .75rem; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); font-size: .78rem; color: var(--fg-2); display: grid; gap: .2rem; }
.ws-seq li span { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-family: var(--mono); }
.ws-wf.is-paused .ws-seq li { color: var(--muted); border-style: dashed; }
.switch { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--fg-2); }
.switch button { width: 34px; height: 20px; border-radius: 999px; background: var(--panel-3); border: 1px solid var(--line-2); position: relative; transition: background-color var(--d-fast) var(--ease); }
.switch button::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg-2); transition: transform var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease); }
.switch button[aria-checked="true"] { background: rgba(119, 182, 151, .35); border-color: rgba(119, 182, 151, .5); }
.switch button[aria-checked="true"]::after { transform: translateX(14px); background: var(--fg); }
.switch button:disabled { opacity: .5; cursor: not-allowed; }
.ws-brief { display: grid; gap: .75rem; max-width: 70ch; }
.ws-brief p { font-size: .9375rem; color: var(--fg-2); }
.ws-brief ul { list-style: none; display: grid; gap: .45rem; }
.ws-brief li { padding-left: 1rem; position: relative; font-size: .875rem; }
.ws-brief li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--lavender); }
.ws-integr { display: flex; flex-wrap: wrap; gap: .4rem; }
.ws-integr span { font-size: .72rem; padding: .25rem .5rem; border-radius: 6px; border: 1px dashed var(--line-3); color: var(--fg-2); }
.mini-btn { font-size: .72rem; height: 26px; padding: 0 .55rem; border-radius: 7px; border: 1px solid var(--line-2); color: var(--fg-2); background: rgba(255, 255, 255, .03); }
.mini-btn:hover { color: var(--fg); border-color: var(--line-3); }

/* ── page-specific ──────────────────────────────────────────────────────── */
.pcard--exception { border-color: rgba(227, 139, 131, .25); }
.stage .ws-wf { background: var(--panel); }
.stage .ws-seq { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.demo-intro { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: end; margin-bottom: 1.25rem; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: var(--t-sm); color: var(--muted); }
.legend { list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.legend .ic { width: 15px; height: 15px; color: var(--fg-2); }
.scope { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.scope .card ul { margin-top: .75rem; }
.kv-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.kv-grid > div { background: var(--bg-2); padding: 1.25rem 1.4rem; display: grid; gap: .35rem; align-content: start; }
.kv-grid b { font-size: .9375rem; }
.kv-grid p { font-size: var(--t-sm); }
.example { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
@media (min-width: 860px) { .example { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); align-items: start; } }
.example blockquote { margin: 0; color: var(--fg); font-size: 1rem; line-height: 1.55; }
.example .res { display: grid; gap: .5rem; font-size: var(--t-sm); }
.example .res div { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.err-code { font-family: var(--mono); font-size: var(--t-sm); color: var(--muted); }
.ws-page-note { margin-bottom: 1.25rem; }
.price-table td.num, .price-table th.num { white-space: nowrap; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
@media (max-width: 520px) {
  .announce { white-space: nowrap; max-width: 100%; }
  .announce > span:nth-child(2) { display: none; }
  .switcher-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .switcher-tabs button { justify-content: center; white-space: nowrap; }
  .switcher-tabs .badge--sample { display: none; }
}

/* ── two-tone statement (homepage) ── */
.statement-sec { padding-block: calc(var(--section) * .7); }
.statement { font-size: clamp(1.625rem, 1.1rem + 2.2vw, 2.875rem); line-height: 1.16; letter-spacing: -0.028em; font-weight: 540; color: var(--fg); max-width: 26em; text-wrap: pretty; }
.statement .line { display: block; }
.statement .line--quiet { color: #8F919A; }

/* ── two-column section head (title left, copy right) ── */
.feature-head { display: grid; gap: 1.5rem 4rem; grid-template-columns: minmax(0, 1fr); align-items: start; margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
@media (min-width: 900px) { .feature-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.feature-head h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); line-height: 1.02; }
.feature-head h2 .line { display: block; }
.feature-head .lede { color: var(--fg); opacity: .86; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); }

/* ── Automations at work: a row of windows that replay short sequences ── */
.aw-row-wrap { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.aw-track { display: flex; gap: 14px; overflow-x: auto; padding: 4px max(var(--gutter), calc((100vw - var(--container)) / 2)) 24px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.aw-track::-webkit-scrollbar { display: none; }
.aw-track:focus-visible { outline-offset: -4px; }
.aw { flex: 0 0 min(380px, 84vw); scroll-snap-align: center; height: 440px; display: flex; flex-direction: column; border-radius: 14px; background: linear-gradient(180deg, #121316, #0E0F11); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.aw-h { display: flex; align-items: center; gap: .55rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--fg); }
.aw-h .ic { width: 15px; height: 15px; color: var(--fg-2); }
.aw-h b { font-weight: 560; }
.aw-ctl { margin-left: auto; display: inline-flex; gap: 10px; }
.aw-ctl i { width: 9px; height: 1.5px; background: var(--muted); opacity: .6; }
.aw-ctl i:nth-child(2) { height: 9px; background: none; border: 1.5px solid var(--muted); width: 9px; border-radius: 2px; }
.aw-ctl i:nth-child(3) { transform: rotate(45deg); box-shadow: 0 0 0 0 var(--muted); }
.aw-b { padding: 1rem; display: flex; flex-direction: column; gap: .75rem; font-size: .8125rem; color: var(--fg-2); overflow: hidden; }
.aw-msg { align-self: flex-end; max-width: 88%; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 10px; padding: .6rem .75rem; color: var(--fg); line-height: 1.45; display: grid; gap: .25rem; }
.aw-msg--sys { background: #181a1f; }
.aw-from { font-size: .7rem; color: var(--muted); }
.aw-ctx { align-self: flex-end; display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--muted); }
.aw-ctx .ic { width: 13px; height: 13px; }
.aw-ctx b { color: var(--fg-2); font-weight: 500; }
.aw-work { font-size: .75rem; color: var(--muted); }
.aw-work .mono { font-size: .7rem; margin-left: .25rem; }
.aw-think { background: linear-gradient(90deg, var(--muted) 0%, var(--fg) 45%, var(--muted) 90%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.aw-out { color: var(--fg); line-height: 1.5; }
.aw-group { border: 1px solid var(--line-2); border-radius: 10px; padding: .6rem .7rem; display: grid; gap: .35rem; background: rgba(255, 255, 255, .015); }
.aw-gh { font-size: .72rem; color: var(--fg-2); font-weight: 560; }
.aw-gh + .aw-row { margin-top: -.05rem; }
.aw-row { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--fg); min-width: 0; }
.aw-row > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw--planned { border-style: dashed; }
.aw--planned .aw-msg, .aw--planned .aw-out { color: var(--fg-2); }
.seq-wait { opacity: 0; transform: translateY(8px); }
.seq-in { opacity: 1; transform: none; transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--fg); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ── cinematic tilted stage behind a heading (Lead Desk hero) ── */
.cine { position: relative; min-height: clamp(560px, 78vh, 820px); display: flex; align-items: flex-end; overflow: hidden; padding-bottom: clamp(48px, 3rem + 3vw, 104px); border-bottom: 1px solid var(--line); isolation: isolate; }
.cine-copy { position: relative; z-index: 2; }
.cine-copy h1 { font-size: clamp(2.375rem, 1.4rem + 4vw, 4.75rem); line-height: 1.02; max-width: 22ch; margin-top: 1rem; }
.cine-copy h1 .line { display: block; }
.cine::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 9, 10, .55) 0%, rgba(8, 9, 10, .25) 30%, rgba(8, 9, 10, .7) 62%, var(--bg) 92%), radial-gradient(80% 60% at 70% 30%, transparent, rgba(8, 9, 10, .55)); }
.cine-stage { position: absolute; inset: 0; perspective: 1600px; perspective-origin: 60% 0%; overflow: hidden; }
.cine-plane { position: absolute; left: 50%; top: -6%; width: 1700px; display: grid; grid-template-columns: 520px 1fr; gap: 28px; transform-origin: 50% 0;
  transform: translateX(-46%) rotateX(48deg) rotateZ(-16deg) translateZ(0); filter: blur(.6px); opacity: .75; }
.js .cine-plane { animation: cineDrift 46s ease-in-out infinite alternate, cineIn 1600ms var(--ease) both; }
@keyframes cineDrift { from { translate: 0 0; } to { translate: -90px 50px; } }
@keyframes cineIn { from { opacity: 0; filter: blur(6px); } }
.cine-composer { align-self: start; margin-top: 60px; border-radius: 18px; border: 1px solid var(--line-2); background: #15161A; padding: 1.4rem 1.5rem; display: grid; gap: 1rem; box-shadow: 0 40px 80px rgba(0, 0, 0, .6); }
.cc-head { display: flex; align-items: center; gap: .6rem; font-size: 1rem; color: var(--fg); }
.cc-head .mono { font-size: .8rem; color: var(--muted); }
.cc-av { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #26303B; color: var(--blue); font-size: .8rem; font-weight: 640; }
.cc-type { font-size: 1.375rem; line-height: 1.45; color: var(--fg); min-height: 6em; }
.cc-bar { display: flex; gap: .8rem; align-items: center; padding-top: .8rem; border-top: 1px solid var(--line); }
.cc-ic { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--muted); opacity: .6; }
.cc-send { margin-left: auto; padding: .45rem .9rem; border-radius: 8px; background: rgba(170, 163, 237, .35); color: var(--fg); font-size: .9rem; }
.cine-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cine-col { display: grid; gap: 14px; align-content: start; }
.cine-colh { display: flex; align-items: center; gap: .5rem; font-size: 1rem; color: var(--fg-2); padding: .3rem .2rem; }
.cine-colh span { color: var(--muted); margin-left: .2rem; }
.cine-card { border-radius: 14px; background: #131417; border: 1px solid var(--line-2); padding: 1rem 1.1rem; display: grid; gap: .35rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.js .cine-card { animation: cardRise 900ms var(--ease) both; animation-delay: calc(400ms + var(--i) * 140ms); }
@keyframes cardRise { from { opacity: 0; transform: translateY(40px); } }
.cine-card b { color: var(--fg); font-size: 1.125rem; font-weight: 540; }
.cc-id { font-size: .8rem; color: var(--muted); }
.cc-sub { font-size: .9rem; color: var(--fg-2); }
.cc-tags { display: flex; gap: .4rem; margin-top: .3rem; }
.cc-tags .pill { height: 24px; font-size: .78rem; }
.page-hero--after { padding-top: clamp(32px, 2rem + 2vw, 64px); }
.page-hero--after .lede { margin-top: 0; }
@media (max-width: 760px) {
  .cine-plane { width: 1100px; grid-template-columns: 380px 1fr; transform: translateX(-40%) rotateX(50deg) rotateZ(-18deg); }
  .cine-board { grid-template-columns: repeat(2, 1fr); }
  .cine-col:nth-child(n+3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .js .cine-plane, .js .cine-card { animation: none; } .seq-wait { opacity: 1; transform: none; } }
