/* =====================================================================
   Strata · site styles
   Night bands (hero, automation band, closing) carry the moving print-layer
   lines and the serif-italic sheen. Between them, calm light working
   surfaces show the product as real, animated vignettes. Requires tokens.css.
   Motion is on by default unless the visitor prefers reduced motion;
   html.calm (the footer Motion switch) stills it.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.55 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
b { font-weight: 600; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); font-feature-settings: "zero"; }
.grow { flex: 1 1 auto; min-width: 0; }
.key { font: 500 var(--fs-key)/1 var(--mono); color: var(--muted); white-space: nowrap; }
.lab { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }

/* ---------------------------------------------------------------- reveal */
/* Visible by default. js adds .entered when an element first scrolls into view, and
   .rise (the blur-up animation) only if it wasn't already on screen at load. */
.rise { animation: rise var(--d-rise) var(--ease) backwards; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes rise { from { opacity: 0.22; transform: translateY(28px) scale(0.985); filter: blur(7px); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } }

/* ---------------------------------------------------------------- small parts */
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--pc, var(--aqua)); flex: none; animation: ping 2.4s infinite; }
.live-ok { --pc: var(--ok); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pc, var(--aqua)) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
.av { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 10px/1 var(--ui); color: #fff; flex: none; }
.av-1 { background: linear-gradient(135deg, var(--violet), var(--aqua)); }
.av-2 { background: linear-gradient(135deg, var(--coral), #ffb03a); }
.av-3 { background: linear-gradient(135deg, #3d7bff, #8a5cff); }
.av-4 { background: linear-gradient(135deg, var(--aqua), #3d7bff); }
.prio { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; flex: none; }
.prio i { width: 3px; border-radius: 1px; background: var(--line-2); }
.prio i:nth-child(1) { height: 5px; } .prio i:nth-child(2) { height: 8px; } .prio i:nth-child(3) { height: 12px; }
.p-low i:nth-child(1), .p-med i:nth-child(-n+2), .p-high i { background: var(--ink-2); }
.p-urgent i { background: var(--coral); }
.st { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.st-todo { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--ink-2); }
.st-prog { background: var(--accent-soft); color: var(--accent); }
.st-warn { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 55%, var(--ink)); }
.st-done { background: var(--ok-soft); color: color-mix(in srgb, var(--ok) 72%, var(--ink)); }
.st-bad { background: var(--bad-soft); color: var(--bad); }
.tag { font: 500 11px/1.2 var(--mono); padding: 3px 7px; border-radius: 6px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 3px; flex: none; background: var(--c, var(--muted)); }
.swap { display: inline-grid; justify-items: start; align-items: center; }
.swap > * { grid-area: 1 / 1; }
.swap > :nth-child(2) { opacity: 0; }
.lights { display: inline-flex; gap: 6px; flex: none; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.lights i:nth-child(1) { background: color-mix(in srgb, var(--coral) 80%, transparent); }
.lights i:nth-child(2) { background: color-mix(in srgb, var(--warn) 75%, transparent); }
.lights i:nth-child(3) { background: color-mix(in srgb, var(--ok) 75%, transparent); }
.tw { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.tw .ghost { visibility: hidden; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin: 0 1px -2px; background: var(--accent); border-radius: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- logo */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; position: relative; overflow: hidden; flex: none; background: linear-gradient(135deg, var(--violet), var(--coral) 60%, var(--aqua)); display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; color: #fff; }
.logo-txt { display: grid; line-height: 1.15; }
.logo-txt b { font-weight: 650; letter-spacing: -0.01em; font-size: 15.5px; }
.logo-txt span { font-size: 12px; opacity: 0.62; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-btn); font: 600 14.5px/1.2 var(--ui); white-space: nowrap; border: 1px solid transparent; transition: transform 0.2s var(--ease), box-shadow 0.3s, background-position 0.6s var(--ease), border-color 0.2s, background-color 0.2s; }
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-grad { color: #fff; background: linear-gradient(110deg, var(--violet), var(--coral) 55%, var(--violet)); background-size: 200% 100%; box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--coral) 75%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-grad:hover { background-position: 100% 0; box-shadow: 0 16px 40px -12px var(--coral), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-glass { color: var(--hero-ink); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.1); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-line { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.btn-line:hover { border-color: var(--muted); }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 13px; font-size: 13.5px; border-radius: 10px; }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; color: var(--hero-ink); padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: background-color 0.35s var(--ease), border-color 0.35s, backdrop-filter 0.35s; }
.nav.scrolled { background: color-mix(in srgb, var(--hero) 76%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: rgba(255, 255, 255, 0.08); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.nav-home { display: inline-flex; border-radius: 10px; }
.nav-links { display: flex; gap: 2px; margin-left: 22px; }
.nav-links a { padding: 7px 12px; border-radius: 9px; color: var(--hero-muted); font-weight: 500; font-size: 14px; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--hero-ink); background: rgba(255, 255, 255, 0.07); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-sign { padding: 8px 12px; color: var(--hero-ink); font-weight: 550; font-size: 14px; border-radius: 9px; transition: background-color 0.2s; }
.nav-sign:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------------------------------------------------------------- hero band */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--hero-ink); background: radial-gradient(120% 110% at 0% 0%, var(--hero-lift) 0%, var(--hero) 58%); padding: calc(160px + env(safe-area-inset-top, 0px)) 0 340px; }
.layers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--hero) 0%, color-mix(in srgb, var(--hero) 74%, transparent) 36%, transparent 70%), linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--hero) 90%, transparent) 100%); }
.hero-in > * { animation: load var(--d-load) var(--ease) backwards; animation-delay: calc(var(--k, 0) * 90ms + 80ms); }
.hero-in > :nth-child(2) { --k: 1; } .hero-in > :nth-child(3) { --k: 2; } .hero-in > :nth-child(4) { --k: 3; } .hero-in > :nth-child(5) { --k: 4; }
@keyframes load { from { opacity: 0.12; transform: translateY(18px); filter: blur(8px); } }
.pill-dark { display: inline-flex; gap: 8px; align-items: center; font: 500 12.5px/1 var(--mono); color: var(--hero-muted); padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.h1 { font-size: var(--fs-h1); line-height: 0.93; letter-spacing: -0.05em; font-weight: 650; margin: 24px 0 26px; max-width: 11.5ch; text-wrap: balance; }
/* The signature: a serif-italic phrase with a drifting sheen. Inline padding keeps the
   italic's overhang from being clipped by background-clip. */
.h1 em, .band-dark .h2 em, .cta-h em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em;
  background: var(--sheen); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen var(--d-sheen) ease-in-out infinite alternate;
  padding: 0.08em 0.16em; margin: 0 -0.16em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@keyframes sheen { to { background-position: 100% 0; } }
.hero-lead { font-size: clamp(16px, 1.45vw, 19px); color: var(--hero-muted); max-width: 54ch; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--hero-muted); font-size: 13.5px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.dot-grad { width: 13px; height: 13px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--aqua)); }

/* ---------------------------------------------------------------- product frame */
.stage-wrap { position: relative; z-index: 2; overflow-x: clip; margin-top: -280px; animation: loadFrame 1.3s var(--ease) backwards 0.35s; }
@keyframes loadFrame { from { opacity: 0.15; transform: translateY(60px); } }
.stage { --tilt: 14deg; position: relative; isolation: isolate; width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin: 0 auto; perspective: 1800px; perspective-origin: 50% 100%; }
.stage-glow { position: absolute; inset: 6% 4% -8%; z-index: -1; pointer-events: none; background: radial-gradient(45% 55% at 28% 50%, color-mix(in srgb, var(--violet) 55%, transparent), transparent 70%), radial-gradient(45% 55% at 74% 60%, color-mix(in srgb, var(--coral) 42%, transparent), transparent 70%), radial-gradient(30% 40% at 90% 20%, color-mix(in srgb, var(--aqua) 30%, transparent), transparent 70%); filter: blur(50px); animation: glow 12s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translate(30px, -14px) scale(1.06); opacity: 0.75; } }
.frame { position: relative; border-radius: var(--r-frame); overflow: hidden; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line-2) 70%, transparent); box-shadow: var(--shadow-frame); transform: rotateX(var(--tilt)); transform-origin: 50% 100%; will-change: transform; }
html.calm .frame { transform: none; }
.chrome { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.url { margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); color: var(--muted); padding: 6px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; overflow: hidden; max-width: 60%; }
.app { display: grid; grid-template-columns: 216px minmax(0, 1fr); height: 530px; }
.side { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); min-width: 0; }
.side .logo { padding: 2px 6px; }
.side .logo-txt span { color: var(--muted); opacity: 1; }
.proj { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; min-width: 0; }
.proj b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.projkey { font: 600 10.5px/1 var(--mono); padding: 4px 5px; border-radius: 5px; color: #fff; background: linear-gradient(135deg, var(--violet), var(--coral)); }
.side-grp { display: grid; gap: 1px; }
.side-lab { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 9px 5px; }
.sn { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; }
.sn svg { color: var(--muted); }
.sn.on { background: var(--accent-soft); color: var(--accent); }
.sn.on svg { color: var(--accent); }
.badge { margin-left: auto; font: 500 11px/1 var(--mono); font-style: normal; padding: 3px 6px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.badge.hot { background: var(--coral); color: #fff; }
.main { padding: 18px 20px; min-width: 0; background: var(--bg); display: flex; flex-direction: column; gap: 14px; }
.head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.head b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.head span { color: var(--muted); font-size: 12.5px; }
.chips { margin-left: auto; display: flex; gap: 5px; }
.chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 500; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Board: one card lifts out of its column and lands in the next (a CSS-only FLIP loop). */
.board { --g: 10px; --n: 4; --src: 1; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--g); align-items: start; }
.col { background: var(--sunk); border-radius: 14px; padding: 8px; min-height: 320px; display: flex; flex-direction: column; min-width: 0; }
.colhead { display: flex; align-items: center; gap: 7px; height: 26px; margin-bottom: 6px; padding: 0 4px; font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.colhead > i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.c { font: 500 11.5px/1 var(--mono); color: var(--muted); }
.c b { font-weight: 500; }
.card, .mover { height: 78px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 11px; display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(11, 16, 32, 0.05); flex: none; min-width: 0; }
.card-t { font-weight: 550; font-size: 12.8px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-m { display: flex; align-items: center; gap: 7px; min-width: 0; }
.slot { height: 0; margin-bottom: 0; border-radius: var(--r-card); border: 2px dashed transparent; flex: none; }
.slot-src { height: 78px; margin-bottom: 8px; animation: slotSrc 9s var(--ease) infinite 1.4s; }
.slot-dst { animation: slotDst 9s var(--ease) infinite 1.4s; }
@keyframes slotSrc { 0%, 22% { height: 78px; margin-bottom: 8px; } 36%, 92% { height: 0; margin-bottom: 0; } 100% { height: 78px; margin-bottom: 8px; } }
@keyframes slotDst { 0%, 15% { height: 0; margin-bottom: 0; border-color: transparent; } 28% { height: 78px; margin-bottom: 8px; border-color: var(--line-2); } 40%, 88% { height: 78px; margin-bottom: 8px; border-color: transparent; } 96%, 100% { height: 0; margin-bottom: 0; } }
.mover { position: absolute; z-index: 3; margin: 0; top: 40px; left: calc(var(--src) * ((100% - (var(--n) - 1) * var(--g)) / var(--n) + var(--g)) + 8px); width: calc((100% - (var(--n) - 1) * var(--g)) / var(--n) - 16px); border-color: var(--line-2); animation: move 9s var(--ease) infinite 1.4s; }
@keyframes move {
  0%, 14% { transform: none; box-shadow: 0 1px 2px rgba(11, 16, 32, 0.05); opacity: 1; }
  22% { transform: translate(calc(50% + 13px), -14px) rotate(2.6deg) scale(1.05); box-shadow: var(--shadow-lg); }
  34% { transform: translate(calc(100% + 26px), -6px) rotate(1.2deg) scale(1.04); box-shadow: var(--shadow-lg); }
  40%, 86% { transform: translate(calc(100% + 26px), 0); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 22%, transparent), var(--shadow); opacity: 1; }
  91% { transform: translate(calc(100% + 26px), 0); opacity: 0; }
  95% { transform: none; opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.mpill b { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.board .swap > :first-child { animation: swapA 9s infinite 1.4s; }
.board .swap > :nth-child(2) { animation: swapB 9s infinite 1.4s; }
@keyframes swapA { 0%, 37% { opacity: 1; transform: none; } 40%, 90% { opacity: 0; transform: translateY(-4px); } 94%, 100% { opacity: 1; transform: none; } }
@keyframes swapB { 0%, 37% { opacity: 0; transform: translateY(4px); } 40%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
html.calm .mover, html.calm .slot, html.calm .board .swap > * { animation: none; }

/* Floating pieces around the shot */
.float { position: absolute; z-index: 4; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 16px; font-size: 13px; }
.float-queue { left: -34px; bottom: -40px; width: 340px; animation: float1 9s ease-in-out infinite; }
.float-chat { right: -30px; bottom: 74px; width: 350px; display: flex; gap: 10px; align-items: flex-start; animation: float2 10s ease-in-out infinite; }
@keyframes float1 { 50% { translate: 0 -10px; } }
@keyframes float2 { 50% { translate: 0 9px; } }
.qrow { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 550; min-width: 0; }
.qrow:first-of-type { border-top: 0; }
.qrow > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow .st { margin-left: auto; }
.chat-body { min-width: 0; flex: 1; }
.chat-who { display: flex; gap: 8px; align-items: baseline; margin-bottom: 2px; }
.chat-who b { font-size: 13px; }
.chat-who span { font-size: 11.5px; color: var(--muted); }

/* ---------------------------------------------------------------- sections */
.sec { position: relative; padding: var(--s-9) 0; }
.sec > .wrap { position: relative; z-index: 1; }
.sec-first { padding-top: 120px; }
.sec-head { max-width: 780px; }
.center { margin-inline: auto; text-align: center; }
.center .h2 { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--violet), var(--coral)); }
.h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.044em; font-weight: 650; margin: 18px 0 20px; text-wrap: balance; }
.h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; background: var(--sheen-light); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0.08em 0.16em; margin: 0 -0.16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.glows { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glows i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.15; }
.glows i:nth-child(1) { width: 560px; height: 560px; left: -180px; top: 80px; background: var(--violet); animation: drift1 var(--d-drift) ease-in-out infinite alternate; }
.glows i:nth-child(2) { width: 480px; height: 480px; right: -160px; top: 46%; background: var(--coral); animation: drift2 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(120px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-110px, -70px) scale(0.9); } }

/* ---------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 64px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px; padding: 26px; border-radius: var(--r-tile); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.3s; min-width: 0; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.tile > * { position: relative; z-index: 1; }
.glow::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--violet) 10%, transparent), transparent 60%); }
.glow:hover::before { opacity: 1; }
.tile-txt h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 6px; }
.tile-txt p { color: var(--muted); font-size: 14.5px; max-width: 54ch; }
.vis { position: relative; flex: 1; min-height: 220px; border-radius: var(--r-vis); background: var(--sunk); border: 1px solid var(--line); padding: 16px; overflow: hidden; }
.t-4 { grid-column: span 4; } .t-2 { grid-column: span 2; } .t-3 { grid-column: span 3; } .t-tall { grid-row: span 2; }

/* list with filter chips */
.fchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 12.5px/1.2 var(--ui); transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--spring); }
.fchip:hover { border-color: var(--line-2); }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fchip:active { transform: scale(0.95); }
.rows { height: 282px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.row { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.55s var(--ease), opacity 0.4s var(--ease); }
.row.off { grid-template-rows: 0fr; opacity: 0; }
.row-clip { min-height: 0; overflow: hidden; }
.row-in { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.row-t { font-weight: 550; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* full-page record */
.page { display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.page-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 14px; padding: 14px 16px 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(34px); opacity: 0.5; }
.blobs i:nth-child(1) { width: 200px; height: 200px; right: -50px; top: -110px; background: var(--aqua); animation: blob1 14s ease-in-out infinite alternate; }
.blobs i:nth-child(2) { width: 150px; height: 150px; right: 110px; top: -100px; background: var(--violet); opacity: 0.3; animation: blob2 18s ease-in-out infinite alternate; }
.blobs i:nth-child(3) { width: 140px; height: 140px; right: 10px; bottom: -110px; background: var(--coral); opacity: 0.26; animation: blob1 16s ease-in-out infinite alternate-reverse; }
@keyframes blob1 { to { transform: translate(-60px, 40px) scale(1.15); } }
@keyframes blob2 { to { transform: translate(50px, 30px) scale(0.9); } }
.pills { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tpill { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; font-weight: 600; padding: 2px 8px 2px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.page-title { font-size: 22px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.12; }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blk { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.blk .lab { margin-bottom: 6px; }
.blk p, .blk li { font-size: 13px; color: var(--ink-2); }
.blk ol { padding-left: 18px; display: grid; gap: 2px; }
.blk li::marker { color: var(--muted); font: 500 12px var(--mono); }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.thumbs i { aspect-ratio: 4 / 3; border-radius: 8px; background: radial-gradient(60% 70% at 30% 30%, color-mix(in srgb, var(--aqua) 45%, transparent), transparent 70%), radial-gradient(60% 70% at 80% 80%, color-mix(in srgb, var(--violet) 35%, transparent), transparent 70%), var(--sunk); }
.thumbs i:nth-child(2) { background: radial-gradient(60% 70% at 70% 30%, color-mix(in srgb, var(--coral) 40%, transparent), transparent 70%), radial-gradient(50% 60% at 20% 80%, color-mix(in srgb, var(--aqua) 35%, transparent), transparent 70%), var(--sunk); }
.thumbs .add { display: grid; place-items: center; font: 500 12px var(--mono); font-style: normal; color: var(--muted); background: var(--sunk); border: 1px dashed var(--line-2); }
.results { display: flex; flex-wrap: wrap; gap: 6px; }
.res { padding: 6px 11px; border-radius: 9px; border: 1px solid var(--line-2); font-weight: 550; font-size: 12.5px; color: var(--ink); }
.res-pass { animation: press 6s var(--ease) infinite 1s; }
@keyframes press { 0%, 30% { background: transparent; color: var(--ink); border-color: var(--line-2); transform: none; } 36% { transform: scale(0.9); background: transparent; color: var(--ink); } 42%, 90% { background: var(--ok); color: #fff; border-color: var(--ok); transform: none; } 100% { background: transparent; color: var(--ink); border-color: var(--line-2); } }
.pswap > :first-child { opacity: 0; animation: ipA 6s infinite 1s; }
.pswap > :nth-child(2) { opacity: 1; animation: ipB 6s infinite 1s; }
@keyframes ipA { 0%, 40% { opacity: 1; } 44%, 92% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes ipB { 0%, 40% { opacity: 0; transform: scale(0.9); } 44%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
html.calm .pswap > :first-child { animation: none; opacity: 0; }
html.calm .pswap > :nth-child(2) { animation: none; opacity: 1; }
html.calm .res-pass { animation: none; background: var(--ok); color: #fff; border-color: var(--ok); }

/* docs */
.doc { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; padding: 12px; }
.doc-tree { display: grid; gap: 2px; align-content: start; font-size: 12px; }
.doc-tree span { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 7px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.doc-tree svg { color: var(--muted); }
.doc-tree .on { background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-weight: 550; }
.doc-tree .kid { margin-left: 12px; }
.doc-page { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.crumbs { font-size: 11px; color: var(--muted); }
.doc-h { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; margin: 2px 0 8px; }
.doc-h2 { font-size: 13px; font-weight: 650; margin: 14px 0 0; color: var(--ink); }
.sync { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--ok-soft); color: color-mix(in srgb, var(--ok) 72%, var(--ink)); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync svg { animation: spin 4s var(--ease) infinite; }
@keyframes spin { 0%, 70% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
.lines { margin-top: 12px; display: grid; gap: 8px; }
.lines i { display: block; height: 7px; border-radius: 4px; background: var(--sunk); transform-origin: left; animation: write 7s var(--ease) infinite; }
.lines i:nth-child(2) { animation-delay: 0.3s; } .lines i:nth-child(3) { animation-delay: 0.6s; background: linear-gradient(90deg, color-mix(in srgb, var(--violet) 28%, var(--sunk)), var(--sunk)); }
@keyframes write { 0% { transform: scaleX(0); } 16%, 100% { transform: scaleX(1); } }

/* search */
.kb { display: flex; flex-direction: column; gap: 10px; }
.kb-search { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 11px; background: var(--surface); border: 1px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); font-size: 14px; color: var(--ink); }
.kb-search svg { color: var(--muted); }
.kb-search .tw { display: inline; color: var(--ink); font-size: 14px; }
.kb-res { display: grid; gap: 6px; }
.kb-hit { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; display: grid; gap: 1px; min-width: 0; }
.kb-hit b { font-size: 13px; }
.kb-hit span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-hit:first-child { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); animation: hit 3.2s ease-in-out infinite; }
@keyframes hit { 50% { box-shadow: 0 0 0 4px var(--accent-soft); } }

/* thread */
.thread { display: grid; gap: 12px; align-content: start; }
.cmt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.who { font-weight: 600; font-size: 13px; }
.who span { color: var(--muted); font-weight: 400; font-size: 11.5px; margin-left: 6px; }
.bd { font-size: 13.5px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 8px 11px; border-radius: 4px 12px 12px 12px; margin-top: 4px; }
.bd .tw { font-size: 13.5px; }
.ev { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.ev b { color: var(--ink-2); font-weight: 600; }
.tick { width: 20px; display: grid; place-items: center; }
.tick i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--line-2)); }

/* report */
.report { display: flex; flex-direction: column; gap: 10px; }
.rhead { display: flex; gap: 10px; align-items: flex-start; }
.rhead > div { min-width: 0; flex: 1; display: grid; }
.rhead b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rhead span { font-size: 12px; color: var(--muted); }
.spark { width: 100%; height: 110px; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.spark-line { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 6s var(--ease) infinite; }
.spark-fill { animation: fillIn 6s var(--ease) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 1; } 42%, 100% { stroke-dashoffset: 0; } }
@keyframes fillIn { 0%, 20% { opacity: 0; } 46%, 100% { opacity: 1; } }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpis div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; }
.kpis span { font-size: 11px; color: var(--muted); }
.kpis b { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- night band */
.band-dark { color: var(--hero-ink); background: radial-gradient(70% 50% at 85% 0%, color-mix(in srgb, var(--violet) 24%, transparent), transparent 70%), radial-gradient(60% 45% at 0% 100%, color-mix(in srgb, var(--coral) 14%, transparent), transparent 70%), var(--hero); overflow: hidden; isolation: isolate; }
.band-dark .eyebrow { color: #b7a8ff; }
.band-dark .lead { color: var(--hero-muted); }
.strata-lines { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 14px); -webkit-mask-image: radial-gradient(70% 55% at 50% 22%, #000, transparent 75%); mask-image: radial-gradient(70% 55% at 50% 22%, #000, transparent 75%); animation: strata 10s linear infinite; }
@keyframes strata { to { background-position: 0 -140px; } }
.duo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; margin-top: 60px; align-items: stretch; }
.term { background: var(--term); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--r-frame); overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 90px -30px color-mix(in srgb, var(--violet) 45%, transparent); }
.term-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font: 500 12px/1 var(--mono); color: var(--hero-muted); background: rgba(255, 255, 255, 0.025); }
.term-body { height: 448px; padding: 18px 20px 20px; overflow: hidden; font: 13px/1.65 var(--mono); color: #dfe2f2; font-feature-settings: "zero"; }
.rule { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.02); margin-bottom: 10px; }
.rule .k { color: #b7a8ff; } .rule .s { color: #7fe3d8; } .rule .n { color: #ffc36b; } .rule .f { color: #ff9a85; }
.log { margin-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.1); padding-top: 12px; display: grid; gap: 2px; }
.log-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; color: var(--hero-muted); opacity: 0.3; transition: opacity 0.45s var(--ease), color 0.45s; }
.log-row.on { opacity: 1; color: #dfe2f2; }
.log-row .t { color: #5d6485; }
.log-row .okc { color: #8ff0c6; }
.panel { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-frame); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6); }
.panel-top { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--muted); }
.step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sunk); font-size: 13px; color: var(--ink-2); transition: opacity 0.45s var(--ease), filter 0.45s; }
.step b { color: var(--ink); }
.step svg { color: var(--accent); }
.step:not(.on) { opacity: 0.3; filter: saturate(0); }
.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.point { padding: 22px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.025); transition: border-color 0.3s, background-color 0.3s; }
.point:hover { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.045); }
.point-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--violet), var(--coral)); margin-bottom: 14px; box-shadow: 0 8px 24px -8px var(--violet); }
.point h3 { font-size: 16px; font-weight: 650; margin-bottom: 6px; letter-spacing: -0.01em; }
.point p { color: var(--hero-muted); font-size: 14px; }

/* ---------------------------------------------------------------- flow */
.flow { position: relative; margin: 64px auto 0; max-width: 1000px; padding-top: 70px; }
.loop { position: absolute; top: 0; left: 0; width: 100%; height: 72px; overflow: visible; }
.loop path { fill: none; stroke-linecap: round; }
.loop-bg { stroke: color-mix(in srgb, var(--coral) 32%, transparent); stroke-width: 2; stroke-dasharray: 3 6; }
.loop-fg { stroke: var(--coral); stroke-width: 2.5; stroke-dasharray: 22 600; animation: loopRun 3.2s linear infinite; }
@keyframes loopRun { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -622; } }
.loop-lab { position: absolute; top: 0; left: 70%; transform: translateX(-50%); font: 500 11.5px/1 var(--mono); color: var(--coral); background: var(--bg); padding: 5px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--coral) 35%, transparent); white-space: nowrap; }
.track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.track-line { position: absolute; left: 10%; right: 10%; top: 21px; height: 2px; background: var(--line-2); border-radius: 2px; }
.track-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--muted), var(--accent) 50%, var(--warn) 75%, var(--ok)); transform-origin: left; animation: fill 7s linear infinite; }
@keyframes fill { 0% { transform: scaleX(0); } 70%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.track-dot { position: absolute; top: 50%; left: 100%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 18px var(--accent); animation: tdot 7s linear infinite; }
@keyframes tdot { 0% { left: 0; opacity: 1; } 70%, 92% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }
.node { display: grid; justify-items: center; gap: 12px; text-align: center; position: relative; z-index: 1; padding: 0 4px; }
.node-o { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--c); box-shadow: var(--shadow); animation: node 7s var(--ease) infinite; animation-delay: calc(var(--i) * 1.225s); }
.node-o i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
@keyframes node { 0% { transform: scale(1); } 5% { transform: scale(1.2); box-shadow: 0 0 0 9px color-mix(in srgb, var(--c) 18%, transparent), var(--shadow); } 16%, 100% { transform: scale(1); box-shadow: var(--shadow); } }
.node b { font-size: 14px; font-weight: 600; }
html.calm .track-fill { animation: none; transform: scaleX(1); }
html.calm .track-dot { animation: none; opacity: 0; }
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 64px; }
.act { padding: 26px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.act-k { font: 500 12px/1 var(--mono); color: var(--accent); }
.act h3 { font-size: 18px; font-weight: 650; margin: 14px 0 6px; letter-spacing: -0.015em; }
.act p { color: var(--muted); font-size: 14.5px; }

/* ---------------------------------------------------------------- proof */
.proof-sec { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--sunk) 70%, transparent) 30%, transparent); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; }
.logos { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 36px; color: var(--muted); }
.logos span { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; letter-spacing: -0.02em; font-size: 16px; }
.logos svg { width: 18px; height: 18px; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.quote { position: relative; padding: 20px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; align-content: start; }
.quote blockquote { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.quote blockquote::before { content: "“"; display: block; height: 22px; font: 400 44px/1 var(--serif); color: var(--coral); }
.quote figcaption { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.quote figcaption span { color: var(--muted); display: block; font-size: 12px; }
.sample { position: absolute; top: 14px; right: 14px; font: 500 10.5px/1 var(--mono); color: var(--muted); padding: 4px 7px; border-radius: 6px; border: 1px dashed var(--line-2); }
.vis-stack { position: relative; display: grid; }
.sms { position: relative; overflow: hidden; display: grid; gap: 12px; padding: 24px; border-radius: var(--r-panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: linear-gradient(90deg, var(--violet), var(--coral), var(--aqua)) top / 100% 3px no-repeat, var(--surface); margin-right: 40px; padding-bottom: 58px; }
.sms-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.sms-top > div { min-width: 0; }
.sms-ic { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--violet), var(--coral)); color: #fff; display: grid; place-items: center; flex: none; }
.sms-top b { display: block; font-size: 15px; }
.sms-top span { font-size: 12.5px; color: var(--muted); }
.bubble { justify-self: start; max-width: 88%; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: var(--sunk); font-size: 13.5px; color: var(--ink-2); animation: pop 0.5s var(--spring) backwards; }
.bubble.me { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--accent); color: var(--on-accent); }
.bubble:nth-of-type(2) { animation-delay: 0.3s; } .bubble:nth-of-type(3) { animation-delay: 0.6s; }
.audit { position: relative; z-index: 2; margin: -36px 0 0 48px; background: var(--term); color: #dfe2f2; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--r-frame); padding: 14px 16px 8px; font: 12.5px/1.4 var(--mono); box-shadow: 0 30px 70px -24px rgba(6, 9, 20, 0.6); }
.audit-h { display: flex; align-items: center; gap: 8px; color: var(--hero-muted); margin-bottom: 6px; font-size: 12px; }
.audit-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); animation: arow 8s var(--ease) infinite; animation-delay: calc(var(--i) * 0.45s); }
@keyframes arow { 0% { opacity: 0.15; transform: translateX(-8px); } 6%, 100% { opacity: 1; transform: none; } }
.audit-a { color: #b7a8ff; } .audit-a.ok { color: #6be3b0; } .audit-a.warn { color: #ffc36b; }
.audit-d { color: var(--hero-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-t { color: #5d6485; }

/* ---------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-tile); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan.pick { background: linear-gradient(90deg, var(--violet), var(--coral), var(--aqua)) top / 100% 3px no-repeat, var(--surface); box-shadow: var(--shadow-lg); }
.plan-k { font: 500 12px/1 var(--mono); color: var(--accent); }
.plan h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.plan > p { color: var(--muted); font-size: 14.5px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 44px; font-weight: 650; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: 13.5px; }
.plan ul { list-style: none; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); padding-top: 14px; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { margin-top: 3px; color: var(--ok); }
.plan .btn { margin-top: auto; }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-top: 48px; align-items: start; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, box-shadow 0.3s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--sunk); flex: none; transition: background-color 0.25s, transform 0.4s var(--spring); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; border-radius: 2px; background: var(--ink-2); transition: transform 0.4s var(--spring); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--accent-soft); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; max-width: 60ch; }
.faq details[open] p { animation: pop 0.45s var(--ease) backwards; }

/* ---------------------------------------------------------------- closing band & footer */
.cta { position: relative; isolation: isolate; overflow: hidden; color: var(--hero-ink); text-align: center; padding: var(--s-10) 0; background: radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--violet) 22%, var(--hero)) 0%, var(--hero) 60%); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 65% at 50% 50%, color-mix(in srgb, var(--hero) 82%, transparent), transparent 85%); }
.cta-in { display: grid; justify-items: center; }
.cta-h { font-size: var(--fs-cta); line-height: 0.95; letter-spacing: -0.048em; font-weight: 650; margin: 26px 0 22px; text-wrap: balance; }
.cta p { color: var(--hero-muted); font-size: 18px; max-width: 54ch; line-height: 1.6; }
.cta .hero-cta { justify-content: center; }
.foot { background: var(--bg); border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot-brand { display: grid; gap: 10px; max-width: 48ch; }
.foot-brand p { color: var(--muted); font-size: 13.5px; }
.foot .logo-txt span { color: var(--muted); opacity: 1; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 14px; color: var(--ink-2); }
.foot-links a { transition: color 0.2s; }
.foot-links a:hover { color: var(--ink); }
.motion { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 500 13px/1 var(--ui); padding: 6px 8px; border-radius: 8px; background: none; border: 0; transition: color 0.2s, background-color 0.2s; }
.motion:hover { color: var(--ink); background: var(--sunk); }
.sw { width: 26px; height: 15px; border-radius: 999px; background: var(--line-2); position: relative; transition: background-color 0.2s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--spring); }
.motion[aria-checked="true"] .sw { background: linear-gradient(90deg, var(--violet), var(--coral)); }
.motion[aria-checked="true"] .sw::after { transform: translateX(11px); }

/* ---------------------------------------------------------------- calm */
/* Calm keeps every frame and colour, just stills it: canvases draw one frame,
   loops stop at their resting state, reveals don't play. */
html.calm .rise, html.calm .hero-in > *, html.calm .stage-wrap, html.calm .h1 em, html.calm .h2 em, html.calm .cta-h em,
html.calm .live, html.calm .stage-glow, html.calm .float-queue, html.calm .float-chat, html.calm .glows i, html.calm .blobs i,
html.calm .lines i, html.calm .sync svg, html.calm .kb-hit, html.calm .spark-line, html.calm .spark-fill, html.calm .strata-lines,
html.calm .loop-fg, html.calm .node-o, html.calm .bubble, html.calm .audit-row, html.calm .caret, html.calm .faq details[open] p { animation: none; }
html.calm .tile:hover { transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1300px) { .float-queue { left: 18px; bottom: -44px; } .float-chat { right: 18px; } }
@media (max-width: 1180px) { .mpill { display: none; } .app { grid-template-columns: 190px minmax(0, 1fr); } }
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-4 { grid-column: span 2; } .t-2, .t-3 { grid-column: span 1; } .t-tall { grid-row: auto; }
  .t-wide-md { grid-column: span 2; }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}
@media (max-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .nav-links { display: none; }
  .col-last { display: none; }
  .board { --n: 3; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); height: 360px; }
  .side, .chips, .col-first { display: none; }
  .board { --n: 2; --src: 0; }
  .col { min-height: 240px; }
  .float-queue { display: none; }
  .float-chat { position: relative; right: auto; bottom: auto; width: auto; margin: -34px 14px 0; }
  .acts, .bento, .faq, .quotes { grid-template-columns: minmax(0, 1fr); }
  .t-4, .t-2, .t-3, .t-wide-md { grid-column: auto; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding: calc(118px + env(safe-area-inset-top, 0px)) 0 250px; }
  .hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--hero) 55%, transparent) 0%, color-mix(in srgb, var(--hero) 70%, transparent) 60%, var(--hero) 100%); }
  .h1 { margin: 20px 0 18px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .stage-wrap { margin-top: -200px; }
  .sec { padding: 88px 0; }
  .sec-first { padding-top: 96px; }
  .lead, .cta p { font-size: 16.5px; }
  .bento { margin-top: 44px; gap: 14px; }
  .tile { padding: 20px; border-radius: 20px; gap: 18px; }
  .vis { padding: 12px; }
  .row-in .tag, .row-in .prio, .row-in .key, .row-in .av { display: none; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-tree { display: none; }
  .term-body { height: auto; min-height: 380px; font-size: 12px; padding: 14px; }
  .points { grid-template-columns: minmax(0, 1fr); }
  .sms { margin-right: 0; padding: 18px; padding-bottom: 52px; }
  .audit { margin: 14px 0 0; }
  .audit-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .audit-d { grid-column: 1 / -1; grid-row: 2; }
  .flow { padding-top: 60px; }
  .node-o { width: 34px; height: 34px; }
  .node-o i { width: 10px; height: 10px; }
  .track-line { top: 16px; }
  .node b { font-size: 11.5px; line-height: 1.25; }
  .loop { height: 62px; }
  .cta { padding: 110px 0; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .price b { font-size: 38px; }
}
@media (max-width: 520px) {
  .nav-sign { display: none; }
  .nav-in { height: 60px; }
  .nav .logo-txt span { display: none; }
  .head b { font-size: 17px; }
  .kpis b { font-size: 15px; }
}
