/* Polier site. The design's own tokens ("Libelle": Fluent 2 structure, own colours) live here and nowhere else - Platform's token
   release in BS.UI.Primitives is postponed. System fonts only, no external request. Light and dark follow the system until the visitor
   chooses (Scripts/theme.ts sets data-theme). */
:root {
  --font-sans: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius-control: 4px;
  --radius-surface: 8px;
  --strand-1: #e5484d;
  --strand-2: #f5a524;
  --strand-3: #3fb950;
  --strand-4: #4f8cff;
  --strand-5: #a371f7;
  --background: #f6f6f3;
  --foreground: #121314;
  --card: #ffffff;
  --primary: #3f5a00;
  --primary-foreground: #ffffff;
  --primary-hover: #2f4400;
  --secondary: #ebebe6;
  --muted: #ebebe6;
  --muted-foreground: #585b60;
  --accent: #eef7d6;
  --accent-foreground: #2f4400;
  --destructive: #b42318;
  --success: #1d7a2e;
  --warning: #8a5300;
  --info: #2d5b8c;
  --success-subtle: #e4f3e6;
  --warning-subtle: #fff1cc;
  --info-subtle: #e6eef7;
  --destructive-subtle: #fbe4e1;
  --border: #dcdcd5;
  --input: #8a8a84;
  --ring: #3f5a00;
  --signal: #3f5a00;
  --diff-add: #e3f5e1;
  --diff-del: #fbe4e1;
  --grid-line: rgb(0 0 0 / 0.05);
  --glow: rgb(160 220 0 / 0.18);
  --elev-lg: 0 24px 60px -20px rgb(0 0 0 / 0.25);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --background: #0a0b0d;
    --foreground: #ededec;
    --card: #111317;
    --primary: #c8f135;
    --primary-foreground: #0a0b0d;
    --primary-hover: #d9ff5c;
    --secondary: #1a1d22;
    --muted: #16191e;
    --muted-foreground: #8d939c;
    --accent: #1a2209;
    --accent-foreground: #d9ff5c;
    --destructive: #ff7a6b;
    --success: #6ee787;
    --warning: #f5c35b;
    --info: #8ab4e8;
    --success-subtle: #10261a;
    --warning-subtle: #2e2410;
    --info-subtle: #121f30;
    --destructive-subtle: #2e1214;
    --border: #23272e;
    --input: #4a505a;
    --ring: #c8f135;
    --signal: #c8f135;
    --diff-add: #0f2a17;
    --diff-del: #2e1214;
    --grid-line: rgb(255 255 255 / 0.04);
    --glow: rgb(200 241 53 / 0.12);
    --elev-lg: 0 40px 120px -40px rgb(0 0 0 / 0.9);
    color-scheme: dark;
  }
}
:root[data-theme=dark] {
  --background: #0a0b0d;
  --foreground: #ededec;
  --card: #111317;
  --primary: #c8f135;
  --primary-foreground: #0a0b0d;
  --primary-hover: #d9ff5c;
  --secondary: #1a1d22;
  --muted: #16191e;
  --muted-foreground: #8d939c;
  --accent: #1a2209;
  --accent-foreground: #d9ff5c;
  --destructive: #ff7a6b;
  --success: #6ee787;
  --warning: #f5c35b;
  --info: #8ab4e8;
  --success-subtle: #10261a;
  --warning-subtle: #2e2410;
  --info-subtle: #121f30;
  --destructive-subtle: #2e1214;
  --border: #23272e;
  --input: #4a505a;
  --ring: #c8f135;
  --signal: #c8f135;
  --diff-add: #0f2a17;
  --diff-del: #2e1214;
  --grid-line: rgb(255 255 255 / 0.04);
  --glow: rgb(200 241 53 / 0.12);
  --elev-lg: 0 40px 120px -40px rgb(0 0 0 / 0.9);
  color-scheme: dark;
}

/* ---- base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  font-family: var(--font-sans);
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 600;
  margin: 0;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

table {
  border-collapse: collapse;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

main {
  outline: none;
  counter-reset: section;
}

svg {
  display: inline-block;
}

img, svg {
  max-width: 100%;
}

pre, code {
  font-family: var(--font-mono);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.js-only {
  display: none !important;
}

html.js .js-only {
  display: inline-flex !important;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 8px 14px;
  border-radius: var(--radius-control);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

/* ---- type ---- */
.display {
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.large-title {
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.03em;
}

.title-1 {
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.02em;
}

.title-2 {
  font-size: 28px;
  line-height: 36px;
}

.title-3 {
  font-size: 24px;
  line-height: 32px;
  margin-top: 28px;
}

.subtitle {
  font-size: 20px;
  line-height: 28px;
}

.lead {
  margin-top: 20px;
  color: var(--muted-foreground);
  max-width: 62ch;
}

.body-sm {
  font-size: 14px;
  line-height: 20px;
}

.caption {
  font-size: 12px;
  line-height: 16px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}

.section-count {
  counter-increment: section;
}

.section-count::before {
  content: counter(section, decimal-leading-zero) " /";
  margin-right: 0.5rem;
  color: var(--muted-foreground);
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--muted-foreground);
}

.dim {
  color: var(--muted-foreground);
}

.strong {
  font-weight: 600;
}

.signal {
  color: var(--signal);
}

.ok {
  color: var(--success);
}

.warn {
  color: var(--warning);
}

.destructive {
  color: var(--destructive);
}

.underline {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.underline:hover {
  color: var(--signal);
}

.grow {
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 768px) {
  .display {
    font-size: 56px;
    line-height: 60px;
  }
  .large-title {
    font-size: 40px;
    line-height: 48px;
  }
  .title-2 {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.02em;
  }
}
@media (min-width: 1100px) {
  .display {
    font-size: 68px;
    line-height: 72px;
  }
}
/* ---- layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 24px;
  }
}
@media (min-width: 1024px) {
  .container {
    padding-inline: 32px;
  }
}
.section {
  padding-block: 80px;
}

.section.tight {
  padding-block: 48px;
}

.section.band {
  background: var(--card);
  background-image: radial-gradient(ellipse 60% 50% at 50% 0%, var(--glow), transparent 70%);
}

.section-head {
  max-width: 42rem;
}

.section-head .title-2 {
  margin-top: 16px;
}

.section-head .pill {
  margin-top: 16px;
}

.section-body {
  margin-top: 40px;
}

@media (min-width: 768px) {
  .section {
    padding-block: 112px;
  }
  .section-body {
    margin-top: 48px;
  }
}
.page-narrow {
  max-width: 760px;
  padding-block: 56px 80px;
}

.page-wide {
  padding-block: 56px 96px;
}

.page-narrow .lead, .page-wide .lead {
  margin-bottom: 24px;
}

.page-narrow h1 {
  margin-bottom: 8px;
}

.gap-top {
  margin-top: 56px;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.row.between, .between {
  justify-content: space-between;
}

.wrap {
  flex-wrap: wrap;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note {
  margin-top: 24px;
  max-width: 72ch;
}

.cta {
  margin-top: 24px;
}

.top {
  margin-top: 16px;
}

/* ---- controls ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms;
}

.btn .icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  border-color: var(--input);
  background: var(--card);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--secondary);
}

.btn-lg {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

.icon-lg {
  width: 24px;
  height: 24px;
  margin-bottom: 24px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  border-radius: var(--radius-control);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--foreground);
}

.icon-btn .icon {
  width: 14px;
  height: 14px;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--input);
  border-radius: var(--radius-control);
  padding: 2px;
}

.segmented button, .segmented a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 32px;
  padding: 0 8px;
  border: 0;
  background: none;
  border-radius: var(--radius-control);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  cursor: pointer;
}

.segmented button .icon {
  width: 16px;
  height: 16px;
}

.segmented button:hover, .segmented a:hover {
  background: var(--secondary);
}

.segmented [aria-pressed=true], .segmented [aria-current=true] {
  background: var(--accent);
  color: var(--accent-foreground);
}

span.segmented {
  padding: 2px;
  gap: 0;
}

.pill {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 14px;
  line-height: 20px;
}

.pill .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.pill-warning {
  background: var(--warning-subtle);
  color: var(--warning);
}

.pill-info {
  background: var(--info-subtle);
  color: var(--info);
}

.pill-success {
  background: var(--success-subtle);
  color: var(--success);
}

.pill-mono {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted-foreground);
}

.pill-mono.signal {
  color: var(--signal);
}

.pill-mono.ok {
  color: var(--success);
}

.pill-mono.warn {
  color: var(--warning);
}

.avatar {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
  background: var(--primary);
  color: var(--primary-foreground);
}

.avatar .icon {
  width: 14px;
  height: 14px;
}

.avatar.sm {
  width: 20px;
  height: 20px;
  border-radius: 999px;
}

.mini-btn {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  font-size: 12px;
}

.mini-btn.on {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: transparent;
}

/* ---- header / footer ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand-link {
  border-radius: var(--radius-control);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
}

.brand-mark {
  width: 32px;
  height: 20px;
}

.brand-bubble {
  fill: var(--primary);
}

.brand-name {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-desktop, .header-tools {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  font-size: 14px;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--secondary);
}

.header-tools {
  align-items: center;
  gap: 8px;
}

.menu-mobile {
  position: relative;
}

.menu-mobile summary {
  list-style: none;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  cursor: pointer;
}

.menu-mobile summary::-webkit-details-marker {
  display: none;
}

.menu-panel {
  position: fixed;
  inset: 64px 0 auto 0;
  padding: 16px;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100dvh - 64px);
  overflow: auto;
}

.menu-panel ul {
  display: flex;
  flex-direction: column;
}

.menu-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.menu-panel .segmented {
  display: inline-flex;
}

@media (min-width: 768px) {
  .nav-desktop, .header-tools {
    display: flex;
  }
  .menu-mobile {
    display: none;
  }
}
.site-footer {
  background: var(--background);
  padding-block: 64px 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.footer-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--card);
  padding: 40px 32px 44px;
}

@media (min-width: 768px) {
  .footer-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 48px 40px 52px;
  }
}
.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand .header-tools {
  display: flex;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}
.footer-h {
  font-size: 14px;
  font-weight: 600;
  color: var(--signal);
}

.footer-cols ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-cols a {
  font-size: 14px;
  color: var(--muted-foreground);
  text-decoration: none;
}

.footer-cols a:hover {
  color: var(--foreground);
}

.wordmark {
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  margin-bottom: -1px;
  height: clamp(60px, 14vw, 170px);
}

.wordmark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wordmark text {
  font-size: 190px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: var(--font-sans);
}

.wm-stop {
  stop-color: var(--signal);
}

.footer-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--card);
  padding: 20px 24px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-box .caption {
  color: var(--muted-foreground);
}

.trademarks {
  max-width: 90ch;
}

.stripe {
  display: flex;
  height: 3px;
}

.footer-cta .stripe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.stripe span {
  flex: 1;
  opacity: 0.8;
}

.stripe span:nth-child(1) {
  background: linear-gradient(90deg, transparent, var(--strand-1));
}

.stripe span:nth-child(2) {
  background: linear-gradient(90deg, transparent, var(--strand-2));
}

.stripe span:nth-child(3) {
  background: linear-gradient(90deg, transparent, var(--muted-foreground));
}

.stripe span:nth-child(4) {
  background: linear-gradient(90deg, transparent, var(--strand-4));
}

.stripe span:nth-child(5) {
  background: linear-gradient(90deg, transparent, var(--foreground));
}

.stripe-full {
  height: 2px;
  opacity: 0.7;
  margin-top: 0;
}

.stripe-full span:nth-child(n) {
  background: none;
}

.stripe-full {
  background: linear-gradient(90deg, var(--strand-1), var(--strand-2), var(--strand-3), var(--strand-4), var(--strand-5));
}

/* ---- grids of cells ---- */
.cell-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--border);
}

.cell-grid.plain {
  padding: 0;
}

.cell {
  background: var(--background);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color 150ms;
}

.cell:hover {
  background: var(--card);
}

.cell h3 {
  font-size: 20px;
  line-height: 28px;
}

.cell.is-planned h3::after {
  content: " · geplant";
  font-size: 12px;
  font-weight: 400;
  color: var(--warning);
}

:lang(en) .cell.is-planned h3::after {
  content: " · planned";
}

@media (min-width: 768px) {
  .cell {
    padding: 32px;
  }
  .cell-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cell-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cell-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .cell-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.steps .cell {
  gap: 4px;
}

.step-no {
  font-family: var(--font-mono);
  font-size: 32px;
  line-height: 40px;
  color: var(--signal);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.icon-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.icon-list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
}

.icon-list .icon {
  width: 20px;
  height: 20px;
  margin-top: 0;
}

.icon-list.wide {
  margin-block: 20px;
  max-width: 80ch;
}

.icon-list.wide li {
  font-size: 16px;
  line-height: 24px;
}

.council {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--card);
  padding: 20px;
}

.council .icon {
  width: 20px;
  height: 20px;
}

/* ---- hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-inner {
  position: relative;
  padding-block: 64px 48px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  margin-top: 16px;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }
  .hero-inner {
    padding-block: 96px 64px;
  }
  .hero-side {
    padding-top: 12px;
  }
}
.hero-short {
  max-width: 44ch;
  color: var(--muted-foreground);
  margin-bottom: 20px;
}

.scramble {
  display: inline-block;
  white-space: nowrap;
}

.scramble .t1 {
  color: var(--strand-3);
}

.scramble .t2 {
  color: var(--strand-1);
}

.scramble i {
  display: inline-block;
  font-style: normal;
}

.hero-progress {
  position: absolute;
  right: 32px;
  top: 0;
  width: 25%;
  height: 1px;
  background: var(--border);
  display: none;
}

@media (min-width: 1024px) {
  html.js .hero-progress {
    display: block;
  }
}
.hero-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--foreground);
}

.hero-progress.run span {
  animation: hero-progress linear forwards;
  animation-duration: var(--hero-ms, 4500ms);
}

.hero-progress.paused span {
  animation-play-state: paused;
}

@keyframes hero-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.hero-visual-wrap {
  margin: 48px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--card);
  box-shadow: var(--elev-lg);
}

.hv-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-bottom: 1px solid var(--border);
}

.hv-panel:last-child {
  border-bottom: 0;
}

.hv-tab {
  display: flex;
  width: 100%;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  color: var(--muted-foreground);
  cursor: pointer;
}

.hv-panel[data-active=true] .hv-tab {
  color: var(--foreground);
}

.hv-tab .mono {
  opacity: 0.6;
}

.hv-sub {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv-body {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 16px;
  animation: fade-in 400ms ease-out;
}

.hv-panel[data-active=true] .hv-body {
  display: block;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .hero-visual {
    flex-direction: row;
    height: 400px;
  }
  .hv-panel {
    flex: 1 1 0;
    border-bottom: 0;
    border-right: 1px solid var(--border);
    transition: flex-grow 700ms cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
  }
  .hv-panel:last-child {
    border-right: 0;
  }
  .hv-panel[data-active=true] {
    flex-grow: 3.2;
  }
  .hv-body {
    display: block;
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 0;
    animation: none;
  }
  .hv-content {
    width: 560px;
    padding: 24px;
  }
  .hv-body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in oklab, var(--background) 70%, transparent);
    opacity: 1;
    transition: opacity 700ms;
    pointer-events: none;
  }
  .hv-panel[data-active=true] .hv-body::after {
    opacity: 0;
  }
  .hv-sub {
    opacity: 0;
    transition: opacity 500ms;
  }
  .hv-panel[data-active=true] .hv-sub {
    opacity: 1;
  }
}
.hero-lead {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 14px;
}

.hero-lead > .muted {
  max-width: 80ch;
}

.hero-lead-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

@media (min-width: 1024px) {
  .hero-lead {
    grid-template-columns: 1.6fr 1fr;
  }
}
.card-sm {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--card);
  padding: 12px;
}

.pill-mono {
  white-space: nowrap;
}

.diff {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  font-size: 12px;
  line-height: 16px;
}

.diff code {
  display: block;
  padding: 4px 12px;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}

.diff .meta {
  color: var(--muted-foreground);
}

.diff .del {
  background: var(--diff-del);
}

.diff .add {
  background: var(--diff-add);
}

.terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--background);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---- integrations + facts ---- */
.integrations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.integrations li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 80px;
  padding: 8px 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--muted-foreground);
  font-size: 14px;
  transition: background-color 150ms, color 150ms;
}

.integrations li:hover {
  background: color-mix(in oklab, var(--muted) 40%, transparent);
  color: var(--signal);
}

.int-name {
  font-weight: 500;
  line-height: 1.2;
}

.int-state {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.integrations .is-planned .int-state {
  color: var(--warning);
  opacity: 1;
}

@media (min-width: 640px) {
  .integrations {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1024px) {
  .integrations {
    grid-template-columns: repeat(8, 1fr);
  }
}
.facts {
  display: grid;
  margin-top: 16px;
  border: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}
.facts-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .facts-numbers {
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
}
.facts-numbers p {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.facts-numbers p:first-child {
  border-right: 1px solid var(--border);
}

.facts-numbers .facts-wide {
  grid-column: span 2;
  border-bottom: 0;
}

.fact-value {
  font-size: 28px;
  line-height: 36px;
  white-space: nowrap;
}

.quote {
  margin: 0;
  padding: 24px;
  background: color-mix(in oklab, var(--muted) 30%, transparent);
}

.quote blockquote {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.quote figcaption {
  margin-top: 12px;
}

/* ---- problem ---- */
.problem {
  overflow: hidden;
}

.problem-stage {
  position: relative;
}

.chaos {
  position: relative;
  height: 240px;
}

.chaos svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chaos-line {
  fill: none;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  opacity: 0.35;
}

.chaos-flow {
  fill: none;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 8 92;
  stroke-linecap: round;
  animation: chaos-flow 4.5s linear infinite;
}

.chaos-gate {
  stroke: var(--muted-foreground);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0.4;
}

.chaos-bundle {
  fill: none;
  stroke: var(--strand-3);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  opacity: 0.7;
}

.s1 {
  stroke: var(--strand-1);
}

.s2 {
  stroke: var(--strand-2);
}

.s3 {
  stroke: var(--strand-3);
}

@keyframes chaos-flow {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: -100;
  }
}
.problem-copy {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 640px) {
  .problem-stage {
    height: 440px;
  }
  .chaos {
    position: absolute;
    inset: 0;
    height: auto;
  }
  .problem-copy {
    position: relative;
    margin: 0 0 0 auto;
    width: 50%;
    height: 100%;
    justify-content: center;
    gap: 24px;
    padding-left: 40px;
  }
}
.problem-cards {
  margin-top: 64px;
}

/* ---- context ---- */
.context {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.context-diagram {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--card);
  padding: 24px;
}

.ctx-sources {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ctx-source {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--background);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
}

.ctx-lines {
  width: 100%;
  height: 100%;
  min-height: 160px;
}

.ctx-line {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 4 6;
  animation: ctx-dash 1s linear infinite;
  opacity: 0.8;
}

@keyframes ctx-dash {
  to {
    stroke-dashoffset: -10;
  }
}
.ctx-plan {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--signal);
  border-radius: var(--radius-control);
  padding: 16px;
  background: var(--accent);
}

@media (max-width: 520px) {
  .context-diagram {
    grid-template-columns: 1fr 40px 1fr;
    padding: 12px;
  }
  .ctx-source {
    font-size: 11px;
    padding: 6px 8px;
  }
}
/* ---- showcase + mock-ups ---- */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 1024px) {
  .showcase {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    gap: 32px;
  }
}
.showcase-visual {
  min-width: 0;
  align-self: start;
}

.showcase-frame {
  border-radius: var(--radius-control);
  padding: 16px;
  background: linear-gradient(90deg, #4a403a 0%, #b9a99a 18%, #e8ddd0 50%, #b9a99a 82%, #4a403a 100%);
}

@media (min-width: 768px) {
  .showcase-frame {
    padding: 28px;
  }
}
.showcase-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--background);
  box-shadow: var(--elev-lg);
  text-align: left;
}

.showcase-rule {
  display: flex;
  height: 2px;
}

.showcase-rule span:nth-child(1) {
  width: 8%;
  background: var(--success);
}

.showcase-rule span:nth-child(2) {
  width: 42%;
  background: var(--border);
}

.showcase-rule span:nth-child(3) {
  width: 6%;
  background: var(--info);
}

.showcase-rule span:nth-child(4) {
  width: 30%;
  background: var(--border);
}

.showcase-rule span:nth-child(5) {
  width: 14%;
  background: var(--signal);
}

.showcase-visual .caption {
  margin-top: 8px;
  color: var(--muted-foreground);
}

.showcase-notes {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 1024px) {
  .showcase-notes {
    padding-top: 16px;
  }
}
.showcase-notes li {
  border-radius: var(--radius-control);
  outline: none;
  cursor: default;
}

.showcase-notes li:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}

.showcase-notes h3 {
  font-size: 14px;
  line-height: 20px;
  transition: color 150ms;
  text-underline-offset: 4px;
}

.showcase-notes p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted-foreground);
}

.showcase-notes li:hover h3, .showcase-notes li:focus h3 {
  color: var(--signal);
  text-decoration: underline;
}

.showcase-footer {
  cursor: auto !important;
}

.aside-note {
  border-left: 2px solid var(--signal);
  padding-left: 16px;
  font-size: 14px;
  color: var(--muted-foreground);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.mock-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted-foreground);
}

.mock-bar span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-body {
  display: flex;
}

.mock-side {
  display: none;
  width: 160px;
  flex: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-right: 1px solid var(--border);
  font-size: 12px;
}

.mock-side span {
  padding: 6px 8px;
  border-radius: var(--radius-control);
  color: var(--muted-foreground);
}

.mock-side .on {
  background: var(--muted);
  color: var(--foreground);
}

@media (min-width: 768px) {
  .mock-side {
    display: flex;
  }
}
.mock-main {
  min-width: 0;
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  flex: 1;
}

@media (min-width: 768px) {
  .mock-cols {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
  .mock-col:first-child {
    border-right: 1px solid var(--border);
  }
}
.mock-col {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.mock-table {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-control);
  overflow: hidden;
}

.mock-table th {
  background: var(--card);
  color: var(--muted-foreground);
  font-weight: 400;
  text-align: left;
  padding: 8px 12px;
}

.mock-table td {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}

.mock-table td:last-child {
  color: var(--warning);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--signal);
  margin-right: 8px;
  vertical-align: middle;
}

.mock-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .mock-pair {
    grid-template-columns: 1fr 1fr;
  }
}
.classes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.classes li {
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--card);
  padding: 8px 12px;
}

.approval-card {
  margin-top: 16px;
  border: 1px solid color-mix(in oklab, var(--warning) 40%, transparent);
  background: var(--warning-subtle);
  border-radius: var(--radius-control);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 96px;
  margin: 12px 0 8px;
  border-bottom: 1px solid var(--border);
}

.bars span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: color-mix(in oklab, var(--signal) 70%, transparent);
}

.bars span.hot {
  background: var(--warning);
}

.kill {
  border: 1px solid color-mix(in oklab, var(--destructive) 40%, transparent);
  border-radius: var(--radius-control);
  padding: 12px;
  margin-top: auto;
}

.mock-review {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}

.mock-review .file {
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.mock-review .diff {
  border: 0;
  border-radius: 0;
}

.mock-review .card-sm {
  margin: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-runs {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}

.mock-runs li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}

.mock-runs li:first-child {
  border-top: 0;
}

.mock-runs li > span:nth-child(2) {
  width: 80px;
  flex: none;
}

/* Hovering or focusing a note lights the mock-up area with the same index (CSS only). */
.showcase [data-area] {
  transition: outline-color 300ms, background-color 300ms, opacity 300ms;
  outline: 1px solid transparent;
  outline-offset: 2px;
}

.showcase:has(li[data-i]:is(:hover, :focus)) [data-area] {
  opacity: 0.55;
}

.showcase:has(li[data-i="0"]:is(:hover, :focus)) [data-area~="0"],
.showcase:has(li[data-i="1"]:is(:hover, :focus)) [data-area~="1"],
.showcase:has(li[data-i="2"]:is(:hover, :focus)) [data-area~="2"],
.showcase:has(li[data-i="3"]:is(:hover, :focus)) [data-area~="3"],
.showcase:has(li[data-i="4"]:is(:hover, :focus)) [data-area~="4"],
.showcase:has(li[data-i="5"]:is(:hover, :focus)) [data-area~="5"] {
  opacity: 1;
  outline-color: var(--signal);
  background-color: color-mix(in oklab, var(--signal) 10%, transparent);
}

/* ---- proof / pilot teaser / faq ---- */
.proof-box {
  border: 2px dashed var(--input);
  border-radius: var(--radius-surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .proof-box {
    padding: 32px;
  }
}
.proof-box > p:first-child {
  max-width: 72ch;
}

.proof-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.proof-slots span {
  height: 64px;
  border: 1px dashed var(--input);
  border-radius: var(--radius-control);
}

.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--muted-foreground);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding-bottom: 16px;
  max-width: 70ch;
}

/* ---- forms ---- */
.form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}

.field {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.field.narrow {
  max-width: 24rem;
}

.field > label, .field legend {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
}

.field input[type=text], .field input[type=email], .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--input);
  border-radius: var(--radius-control);
  background: var(--card);
  padding: 8px 12px;
  color: var(--foreground);
}

.field textarea {
  resize: vertical;
}

.field [aria-invalid=true] {
  border-color: var(--destructive);
}

.field-error {
  margin-top: 4px;
  font-size: 14px;
  color: var(--destructive);
}

.grid-2 {
  display: grid;
  gap: 28px 24px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: var(--radius-control);
  cursor: pointer;
}

.choice:hover {
  background: var(--secondary);
}

.choice input {
  width: 20px;
  height: 20px;
  flex: none;
  accent-color: var(--primary);
}

.choice input[type=checkbox] {
  align-self: flex-start;
  margin-top: 12px;
}

.choice span.body-sm {
  padding-block: 10px;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.csp-hint {
  display: none;
  margin-top: 8px;
}

.form:has(#purchasing option[value=csp]:checked) .csp-hint {
  display: block;
}

.notice {
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--card);
  padding: 16px 20px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 0;
}

.notice a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice-warning {
  background: var(--warning-subtle);
  border-color: color-mix(in oklab, var(--warning) 40%, transparent);
}

.notice-error {
  background: var(--destructive-subtle);
  border-color: var(--destructive);
}

.notice-info {
  background: var(--info-subtle);
  border-color: color-mix(in oklab, var(--info) 40%, transparent);
  color: var(--info);
}

.notice-success {
  background: var(--card);
}

.notice-success .icon-lg {
  margin-bottom: 0;
}

/* ---- prose pages ---- */
.prose h2 {
  margin-top: 48px;
  margin-bottom: 12px;
}

.prose h2:first-of-type {
  margin-top: 32px;
}

.prose p + p {
  margin-top: 12px;
}

.prose p {
  max-width: 80ch;
}

.numbered {
  list-style: decimal;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 80ch;
}

.table-wrap {
  overflow-x: auto;
  margin-block: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
}

.table {
  width: 100%;
  font-size: 14px;
  line-height: 20px;
}

.table th, .table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border);
}

.table thead th {
  background: var(--card);
  border-top: 0;
  color: var(--muted-foreground);
  font-weight: 600;
}

.table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.status-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.status-list h3 {
  font-size: 16px;
  line-height: 24px;
}

.plans {
  margin-top: 32px;
}

.plan {
  gap: 8px;
}

.plan .btn {
  margin-top: auto;
  align-self: flex-start;
}

.plan .icon-list {
  margin-block: 12px 20px;
}

.price {
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.empty-state {
  gap: 8px;
}

.empty-mark {
  font-size: 40px;
  line-height: 48px;
  color: var(--muted-foreground);
}

.timeline {
  margin-top: 32px;
  border-left: 1px solid var(--border);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 760px;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--signal);
}

.timeline p {
  margin-top: 4px;
  max-width: 70ch;
}

/* ---- teams page ---- */
.teams-hero {
  padding-block: 56px 48px;
  background: radial-gradient(ellipse 65% 70% at 20% 0%, color-mix(in oklab, var(--strand-4) 22%, transparent), transparent 70%);
}

.teams-hero-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .teams-hero-grid {
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
  }
}
.teams-window {
  margin: 0;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--card);
  box-shadow: var(--elev-lg);
  overflow: hidden;
  min-height: 340px;
}

.teams-window figcaption {
  grid-column: 1/-1;
  border-top: 1px solid var(--border);
  padding: 8px 12px;
  color: var(--muted-foreground);
}

.teams-side {
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.teams-side .eyebrow {
  padding: 0 8px 8px;
}

.teams-side label {
  padding: 6px 8px;
  border-radius: var(--radius-control);
  font-size: 13px;
  color: var(--muted-foreground);
  cursor: pointer;
}

.teams-side label:hover {
  background: var(--secondary);
}

#ch-0:checked ~ .teams-side label[for=ch-0], #ch-1:checked ~ .teams-side label[for=ch-1], #ch-2:checked ~ .teams-side label[for=ch-2] {
  background: var(--muted);
  color: var(--foreground);
}

#ch-0:focus-visible ~ .teams-side label[for=ch-0], #ch-1:focus-visible ~ .teams-side label[for=ch-1], #ch-2:focus-visible ~ .teams-side label[for=ch-2] {
  outline: 2px solid var(--ring);
}

.teams-thread {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.thread {
  display: none;
  flex-direction: column;
  gap: 12px;
}

#ch-0:checked ~ .teams-thread .t0, #ch-1:checked ~ .teams-thread .t1, #ch-2:checked ~ .teams-thread .t2 {
  display: flex;
}

.msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
  max-width: 92%;
  animation: rise 0.6s ease-out both;
}

.msg:nth-child(2) {
  animation-delay: 0.3s;
}

.msg:nth-child(3) {
  animation-delay: 0.6s;
}

.msg.me {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-foreground);
  border-radius: var(--radius-surface);
  padding: 8px 12px;
}

.who {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.msg.me .who {
  color: inherit;
  opacity: 0.8;
}

.approval {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.typing {
  display: flex;
  gap: 4px;
  align-items: center;
}

.dot-anim {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--muted-foreground);
  animation: dot 1s ease-in-out infinite;
}

.dot-anim:nth-child(2) {
  animation-delay: 0.15s;
}

.dot-anim:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
.teams-press {
  animation: press 6s ease-in-out infinite;
}

@keyframes press {
  0%, 38%, 100% {
    transform: scale(1);
  }
  42% {
    transform: scale(0.9);
  }
}
.statement {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--card);
  padding: 28px 24px;
  max-width: 70ch;
}

.trust {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}

.tile-visual {
  position: relative;
  height: 120px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--background);
  overflow: hidden;
  margin-block: 8px;
}

.tv-card {
  position: absolute;
  left: 16%;
  top: 22%;
  width: 52%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tv-card i {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

.tv-card i:first-child {
  width: 70%;
}

.tv-card b {
  height: 14px;
  width: 40%;
  border-radius: 3px;
  background: var(--primary);
}

.tv-cursor {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--signal);
  animation: cursor 6s ease-in-out infinite;
}

@keyframes cursor {
  0%, 100% {
    left: 75%;
    top: 80%;
    transform: scale(1);
  }
  35% {
    left: 30%;
    top: 62%;
  }
  42% {
    left: 30%;
    top: 62%;
    transform: scale(0.8);
  }
  50% {
    left: 30%;
    top: 62%;
    transform: scale(1);
  }
}
.tv-1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.tv-notice {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--signal);
  animation: pulse 3.5s ease-in-out infinite;
}

.tv-notice:nth-child(2) {
  animation-delay: 0.5s;
}

.tv-notice:nth-child(3) {
  animation-delay: 1s;
}

.tv-notice .icon {
  width: 16px;
  height: 16px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
.tv-2 {
  display: grid;
  place-items: center;
}

.tv-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--signal);
  color: var(--signal);
}

.tv-ring {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1px solid var(--signal);
  border-radius: 999px;
  animation: ping 2.4s ease-out infinite;
}

.tv-ring.r2 {
  animation-delay: 1.2s;
}

@keyframes ping {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}
/* ---- reduced motion: nothing moves ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
  .chaos-flow {
    stroke-dasharray: none;
    stroke-opacity: 0.35;
  }
  .hv-body {
    animation: none;
  }
  .msg {
    opacity: 1;
  }
}
/* Blog (BS.Web.Blog, plan P4.4): the package's article stylesheet only reads these tokens, so the articles follow the site's light and dark theme. */
:root {
  --bs-article-bg: var(--background);
  --bs-article-ink: var(--foreground);
  --bs-article-muted: var(--muted-foreground);
  --bs-article-accent: var(--primary);
  --bs-article-accent-ink: var(--primary-foreground);
  --bs-article-heading: var(--foreground);
  --bs-article-surface: var(--secondary);
  --bs-article-border: var(--border);
  --bs-article-focus: var(--ring);
  --bs-article-radius: var(--radius-surface);
  --bs-article-font: var(--font-sans);
  --bs-article-scroll-margin: 5rem;
  --bs-index-width: 1200px;
}

.blog-cards {
  margin-top: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--card);
  list-style: none;
}

.blog-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
}

.blog-article {
  padding: 40px 16px 32px;
}

.blog-article > p:last-child {
  margin-top: 24px;
}

.blog-card a {
  color: var(--foreground);
  text-decoration: none;
}

.blog-card a:hover {
  text-decoration: underline;
}

.blog-index [data-bs-more] {
  margin-top: 32px;
}

.blog-article .bs-article-cta .btn {
  margin-top: 12px;
}
