/* Media & OTT site — badges, mode switch, small fixes on Metroflow design system */

.site-mode-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-right: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}
/* Technical badge — green (same family as brand accent) */
.site-mode-tech {
  color: var(--accent);
  border: 1px solid rgba(34, 229, 154, 0.4);
  background: var(--accent-wash);
}
html[data-theme="light"] .site-mode-tech {
  color: var(--accent-dim);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}

.site-mode-switch {
  font-size: 13px !important;
  padding: 8px 12px !important;
}

.nav-inner .site-mode-badge {
  align-self: center;
}

/* Homepage section snap — titles pin under sticky nav (Page Up/Down + index) */
/* Sticky nav offset for Page Up/Down + scrollIntoView */
body[data-page="home"] {
  scroll-padding-top: 76px;
}
body[data-page="home"] #hero,
body[data-page="home"] main > section[id],
body[data-page="home"] #your-workflow,
body[data-page="home"] #site-final-cta,
body[data-page="home"] .final-cta {
  scroll-margin-top: 76px;
}

/* ========== Page index: position indicator only (never interactive) ========== */
.page-index {
  position: fixed;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  align-items: stretch;
  padding: 12px 0;
  pointer-events: none !important;
  user-select: none;
}
.page-index-track {
  position: absolute;
  left: 15px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
  pointer-events: none;
}
.page-index-progress {
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), rgba(34, 229, 154, 0.35));
  border-radius: 2px;
  transition: height 0.15s linear;
}
.page-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none !important;
}
.page-index-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 0 8px;
  text-decoration: none;
  color: var(--text-faint);
  font-family: var(--font-body);
  pointer-events: none !important;
  cursor: default;
  max-width: none;
  overflow: visible;
  background: none !important;
  border: none !important;
  transform: none !important;
}
.page-index-list a::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid var(--text-faint);
  background: var(--bg);
  box-shadow: 0 0 0 2px var(--bg);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.pi-num { display: none; }
.pi-label {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.2s, max-width 0.2s;
  color: var(--accent);
  pointer-events: none;
}
.page-index-list a.is-active::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg), 0 0 10px var(--accent-glow);
}
.page-index-list a.is-active {
  color: var(--accent);
}
.page-index-list a.is-active .pi-label {
  opacity: 1;
  max-width: 140px;
  padding-left: 2px;
}
@media (max-width: 900px) {
  .page-index { display: none; }
}

/* Ensure hero grid shows on business home — fill viewport without huge empty gap */
.biz-hero-full {
  position: relative;
  padding: 56px 0 40px;
  text-align: center;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.biz-hero-full > .wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
/* Dual logo strips fill remaining hero space so next section stays below the fold */
.hero-logo-strips {
  padding: 36px 0 8px !important;
  border: none !important;
  margin-top: 8px;
  max-width: none;
  width: 100%;
}
.hero-logo-row {
  margin-bottom: 18px;
}
.hero-logo-row:last-child {
  margin-bottom: 0;
}
.hero-logo-strips .logos-label {
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.hero-logo-strips .logo-pill {
  padding: 10px 16px;
  min-height: 46px;
  font-size: 13px;
}
.marquee-track-a {
  animation: marquee 42s linear infinite;
}
.marquee-track-b {
  animation: marquee-reverse 48s linear infinite;
}
@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
/* Small breathing room before Company Brain — not a huge blank gap */
body[data-page="home"] #company-brain {
  padding-top: 72px;
}
@media (max-width: 720px) {
  .biz-hero-full {
    min-height: auto;
    padding: 40px 0 32px;
    display: block;
  }
  .hero-logo-strips { padding: 24px 0 4px !important; }
  .hero-logo-row { margin-bottom: 14px; }
}
.biz-hero-full .hero-grid-bg {
  opacity: 1;
}
.biz-hero-full .wrap { position: relative; z-index: 1; }
.biz-hero-full h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 860px;
  margin: 0 auto 18px;
  font-weight: 700;
  color: var(--text);
}

/* Homepage section titles — same visual weight as hero */
body[data-page="home"] .section-head {
  max-width: 900px;
  margin-bottom: 40px;
}
body[data-page="home"] .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text);
  margin: 0 auto 16px;
  max-width: 900px;
}
body[data-page="home"] .section-head p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
body[data-page="home"] .section-head .eyebrow {
  display: none; /* titles are the section name now */
}
body[data-page="home"] #chat .split-section-biz h2,
body[data-page="home"] #integrations .split-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem) !important;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
body[data-page="home"] #chat .eyebrow,
body[data-page="home"] #integrations .eyebrow {
  display: none;
}
.biz-hero-full .lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
/* ONCE: amber highlight + one delayed fade-blink (opacity only) */
.lead-once {
  display: inline;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.02em;
  animation: lead-once-blink 0.9s ease-in-out 1.1s 1 both;
}
html[data-theme="light"] .lead-once {
  color: #d97706; /* slightly deeper amber for light-mode contrast */
}
@keyframes lead-once-blink {
  0%   { opacity: 1; }
  40%  { opacity: 0.15; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lead-once { animation: none; }
}
.biz-hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Integrations search icon (SVG, not broken unicode) */
.int-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.int-search-icon svg {
  display: block;
  opacity: 0.7;
}

/* Final CTA optional brand mark */
.final-cta-logo {
  display: flex;
  justify-content: center;
  margin: 0 auto 18px;
  width: fit-content;
}
.final-cta-logo img,
.final-cta-logo svg {
  width: 48px;
  height: auto;
}

/* Quiet technical context label — green, not purple */
.tech-banner {
  display: none; /* removed flashy "TECHNICAL SITE" pills site-wide */
}
/* Technical CTA — premium pill, readable icon on dark badge */
.nav-tech-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(34, 229, 154, 0.55) !important;
  background: linear-gradient(135deg, #22E59A 0%, #10B981 100%) !important;
  color: #04140c !important;
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  text-decoration: none !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12) inset,
    0 6px 20px rgba(34, 229, 154, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.nav-tech-cta:hover {
  filter: brightness(1.04);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1) inset,
    0 8px 28px rgba(34, 229, 154, 0.42);
  transform: translateY(-1px);
}
.nav-tech-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #0B1210;
  box-shadow:
    0 0 0 1.5px rgba(4, 20, 12, 0.35),
    0 0 0 1px rgba(34, 229, 154, 0.45) inset;
  overflow: hidden;
}
.nav-tech-icon {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 50%;
}
.nav-tech-label {
  padding-right: 4px;
  color: #04140c;
  line-height: 1;
}
.nav-tech-cta-mobile {
  width: 100%;
  justify-content: center;
  padding: 10px 18px 10px 10px !important;
  font-size: 15px !important;
}
.nav-tech-cta-mobile .nav-tech-icon-wrap {
  width: 36px;
  height: 36px;
}
.nav-tech-cta-mobile .nav-tech-icon {
  width: 34px;
  height: 34px;
}
html[data-theme="light"] .nav-tech-cta {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06) inset,
    0 4px 14px rgba(16, 185, 129, 0.28);
}

/* Technical mode: circular back icon (matches outline ← in circle) before theme toggle */
.nav-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, transform 0.2s, opacity 0.2s;
}
.nav-back-btn:hover {
  color: var(--accent);
  background: var(--accent-wash);
  transform: scale(1.04);
}
.nav-back-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-back-btn svg { display: block; pointer-events: none; }

.uc-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  justify-content: center;
}
.uc-tab {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}
.uc-tab.active, .uc-tab:hover {
  color: var(--text);
  border-color: var(--accent-dim);
  background: var(--accent-wash);
}
.uc-panel { display: none; }
.uc-panel.active { display: block; }

.quote-line {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
  margin: 12px 0 14px;
  letter-spacing: -0.02em;
}

.split-section-biz {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .split-section-biz { grid-template-columns: 1fr; }
}

.illus-panel {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 20px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.illus-panel svg { width: 100%; max-width: 420px; height: auto; }

.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
}

.simple-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.simple-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.simple-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.check-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.check-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.phase-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) { .phase-row { grid-template-columns: 1fr; } }

@media (max-width: 1100px) {
  .nav-right .site-mode-switch { display: none; }
}
@media (max-width: 900px) {
  .site-mode-badge { display: none; }
}

/* Hero explainer "video" mockup */
.hex-player {
  max-width: 920px;
  margin: 36px auto 0;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.hex-stage { position: relative; padding: 18px 18px 8px; }
.hex-window {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  min-height: 320px;
  overflow: hidden;
}
/* Center control: static Play when paused; Pause only on hover while playing */
.hex-center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(34, 229, 154, 0.55);
  background: rgba(0, 0, 0, 0.55);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 24px var(--accent-glow);
  transition: transform 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
}
.hex-center-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(34, 229, 154, 0.18);
  border-color: var(--accent);
}
/* Paused: always show play icon, never pause */
.hex-player:not(.is-playing) .hex-center-play {
  opacity: 1;
  pointer-events: auto;
}
.hex-player:not(.is-playing) .hex-center-icon-pause {
  display: none !important;
}
.hex-player:not(.is-playing) .hex-center-icon-play {
  display: block !important;
}
/* Playing: hide control unless hovering the video window */
.hex-player.is-playing .hex-center-play {
  opacity: 0;
  pointer-events: none;
}
.hex-player.is-playing .hex-window:hover .hex-center-play {
  opacity: 0.95;
  pointer-events: auto;
}
.hex-player.is-playing .hex-center-icon-play {
  display: none !important;
}
.hex-player.is-playing .hex-center-icon-pause {
  display: block !important;
}
/* Bottom bar: progress only (no second play/pause pair) */
.hex-controls .hex-play { display: none !important; }
.hex-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 14px;
}
.hex-controls .hex-progress { flex: 1; }

/* Chat explainer mock */
.hex-player-chat .hex-chat-log {
  padding: 18px 18px 56px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
}
.hex-chat-msg {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.hex-chat-msg.user {
  align-self: flex-end;
  background: var(--accent-wash);
  border-color: rgba(34, 229, 154, 0.3);
}
.hex-chat-msg.bot {
  align-self: flex-start;
  background: var(--surface);
}
.hex-chat-who {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.hex-chat-user-text,
.hex-chat-bot-body {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.hex-chat-bot-title {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
}
.hex-chat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.hex-chat-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  border: 1px solid rgba(34, 229, 154, 0.3);
}
.chat-explainer {
  max-width: 920px;
  margin: 0 auto;
}
.hex-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.hex-dots { display: flex; gap: 6px; }
.hex-dots i {
  width: 9px; height: 9px; border-radius: 50%; display: block;
  background: var(--border-strong);
}
.hex-dots i:nth-child(1) { background: #f87171; }
.hex-dots i:nth-child(2) { background: #F59E0B; }
.hex-dots i:nth-child(3) { background: #22E59A; }
.hex-chrome-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.hex-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.hex-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.hex-tab.active {
  color: var(--accent);
  border-color: rgba(34, 229, 154, 0.35);
  background: var(--accent-wash);
}
.hex-body {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 16px;
  padding: 18px;
  min-height: 220px;
}
@media (max-width: 700px) {
  .hex-body { grid-template-columns: 1fr; }
  .hex-side { display: none; }
}
.hex-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.hex-q {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.45;
}
.hex-card {
  border-radius: 12px;
  border: 1px solid rgba(34, 229, 154, 0.35);
  background: var(--accent-wash);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hex-card strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
}
.hex-card span {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.hex-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.hex-side-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px;
  text-align: center;
  background: var(--surface);
}
.hex-cursor {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -4px 0 0 -4px;
  border-radius: 50% 50% 50% 0;
  background: var(--text);
  transform: rotate(-45deg) scale(0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1), top 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}
.hex-player.is-playing .hex-cursor { opacity: 0.95; }
.hex-cursor.is-click { transform: rotate(-45deg) scale(0.7); }
.hex-subtitles {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  z-index: 4;
  pointer-events: none;
}
html[data-theme="light"] .hex-subtitles {
  background: rgba(15, 23, 42, 0.82);
}
.hex-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.hex-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.hex-play:hover { filter: brightness(1.05); }
.hex-progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.hex-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 0.4s ease;
}
.hex-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  min-width: 36px;
  text-align: right;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .how-grid { grid-template-columns: 1fr; }
}
.how-card {
  padding: 22px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.how-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}
.how-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.how-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.cp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 760px) {
  .cp-grid { grid-template-columns: 1fr; }
}
.cp-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  min-height: 160px;
}
.cp-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.cp-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.ctx-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 800px) {
  .ctx-two { grid-template-columns: 1fr; }
}
.ctx-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.ctx-list li {
  position: relative;
  padding: 8px 0 8px 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.ctx-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.kpi-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) {
  .kpi-three { grid-template-columns: 1fr; }
}

/* ========== Visual homepage systems ========== */
body[data-page="home"] .vis-section { padding: 88px 0; }
body[data-page="home"] .content-section.alt.vis-section {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-wash), transparent 55%),
    var(--surface);
}

/* ========== What is a Company Brain ========== */
.company-brain-section {
  position: relative;
  overflow: hidden;
}
.cb-stage {
  display: grid;
  gap: 28px;
  margin-bottom: 36px;
}
.cb-video {
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}
.cb-definition {
  padding: 28px 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}
.cb-definition-lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 14px;
}
.cb-definition-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 720px;
}
.cb-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cb-pillar {
  padding: 28px 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}
.cb-pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-wash);
  border: 1px solid rgba(34, 229, 154, 0.25);
}
.cb-pillar-icon svg { width: 28px; height: 28px; }
.cb-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
}
.cb-pillar p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
@media (max-width: 720px) {
  .cb-pillars { grid-template-columns: 1fr; }
  .cb-definition { padding: 22px 20px; }
}

/* How it works video + Your Workflow steps (one continuous block) */
.how-workflow .workflow-video {
  max-width: 920px;
  margin: 0 auto;
}
.workflow-steps-block {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.workflow-steps-head {
  margin-bottom: 28px;
}
.workflow-steps-head h2 {
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
}

/* Your Workflow journey */
.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.journey-track {
  display: none;
}
.journey-step {
  position: relative;
  padding: 28px 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
  overflow: hidden;
}
.journey-step::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 48%;
  z-index: 2;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  opacity: 0.7;
}
.journey-step:last-child::after { display: none; }
.journey-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-wash);
  border: 1px solid rgba(34, 229, 154, 0.25);
}
.journey-icon svg { width: 40px; height: 40px; }
.journey-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.journey-step h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0;
}
.journey-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.journey-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.journey-chips span {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
}
.journey-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--accent-wash);
  border: 1px solid rgba(34, 229, 154, 0.3);
  font-size: 12px;
  color: var(--text-muted);
  width: fit-content;
}
.journey-metric-pill strong { color: var(--accent); font-family: var(--font-display); }
.journey-shield, .journey-activate {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(34, 229, 154, 0.4);
  width: fit-content;
}
.journey-activate { display: flex; gap: 8px; }
.journey-activate span {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent-wash);
  color: var(--accent);
}
@media (max-width: 1000px) {
  .journey { grid-template-columns: 1fr 1fr; }
  .journey-step::after { display: none; }
}
@media (max-width: 560px) {
  .journey { grid-template-columns: 1fr; }
}

/* Control plane cards */
.plane-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.plane-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}
.plane-card:hover {
  border-color: var(--accent-dim);
  box-shadow: var(--shadow-glow);
}
.plane-art {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}
.plane-card.accent-a .plane-art { background: linear-gradient(145deg, var(--accent-wash), transparent 70%); }
.plane-card.accent-b .plane-art { background: linear-gradient(145deg, rgba(56,189,248,0.12), transparent 70%); color: #38bdf8; }
.plane-card.accent-c .plane-art { background: linear-gradient(145deg, var(--amber-wash), transparent 70%); color: var(--amber); }
.plane-card.accent-d .plane-art { background: linear-gradient(145deg, rgba(139,92,246,0.12), transparent 70%); color: #8b5cf6; }
.plane-art svg { width: 100%; height: 100%; max-width: 280px; }
.plane-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 22px;
  margin-top: 16px;
}
.plane-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  padding: 0 22px;
  margin: 0;
}
.plane-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 0 22px;
  margin: 0;
  flex: 1;
}
.plane-card .link-arrow { padding: 0 22px; margin-top: 4px; }
@media (max-width: 800px) {
  .plane-grid { grid-template-columns: 1fr; }
}

/* Context brain board */
.brain-board {
  position: relative;
  min-height: 420px;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 50% 50%, var(--accent-wash), transparent 45%),
    var(--bg);
  padding: 32px 24px 40px;
  overflow: hidden;
}
.brain-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0 36px;
}
.brain-orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: radial-gradient(circle at 35% 30%, rgba(34,229,154,0.35), rgba(34,229,154,0.06) 55%, transparent);
  box-shadow: 0 0 60px var(--accent-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.brain-orb span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
}
.brain-orb small {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 110px;
  line-height: 1.35;
}
.brain-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.brain-node {
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.brain-node strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text);
}
.brain-node span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
@media (max-width: 800px) {
  .brain-nodes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .brain-nodes { grid-template-columns: 1fr; }
}

/* Chat stage */
.chat-stage {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}
.chat-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chat-pill {
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}
.chat-blurb {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 420px;
}
.chat-mock {
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  padding: 0 0 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.08);
}
.chat-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.chat-mock-bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border-strong);
}
.chat-mock-bar span:nth-child(1) { background: #f87171; }
.chat-mock-bar span:nth-child(2) { background: #F59E0B; }
.chat-mock-bar span:nth-child(3) { background: #22E59A; }
.chat-mock-bar em {
  margin-left: 8px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.chat-bubble {
  margin: 14px 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 88%;
}
.chat-bubble.user {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.chat-bubble.bot {
  background: var(--accent-wash);
  border: 1px solid rgba(34, 229, 154, 0.3);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-bubble.bot strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.chat-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-sources span {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .chat-stage { grid-template-columns: 1fr; }
}

/* KPI visual cards */
.kpi-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kpi-visual-card {
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 280px;
}
.kpi-visual-card.featured {
  border-color: rgba(34, 229, 154, 0.35);
  background: linear-gradient(160deg, var(--accent-wash), var(--bg) 55%);
}
.kpi-visual-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: -0.02em;
}
.kpi-visual-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.kpi-visual-card li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  border-top: 1px solid var(--border);
}
.kpi-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--bg) 58%, transparent 59%),
    conic-gradient(var(--accent) calc(var(--p) * 1%), var(--border) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kpi-ring span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}
.kpi-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 72px;
  width: 100%;
  max-width: 140px;
}
.kpi-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  opacity: 0.85;
  display: block;
}
.kpi-money {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-wash);
  border: 1px solid rgba(34, 229, 154, 0.3);
}
@media (max-width: 900px) {
  .kpi-visual { grid-template-columns: 1fr; }
}

/* ========== Use cases hub ========== */
.uc-hero {
  padding: 56px 0 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.uc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--accent-wash), transparent 60%);
  pointer-events: none;
}
.uc-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.uc-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.uc-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.uc-hero-lead {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 28px;
}
.uc-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto 18px;
}
.uc-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  display: flex;
  pointer-events: none;
}
.uc-search {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
}
.uc-search:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.uc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.uc-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.uc-chip:hover, .uc-chip.active {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: var(--accent-wash);
}
.uc-hub-section { padding-top: 12px; }
.uc-hub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.uc-hub-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin: 0;
}
.uc-hub-head p { color: var(--text-faint); font-size: 14px; margin: 0; }
.uc-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.uc-bento-equal {
  grid-template-columns: repeat(4, 1fr);
}
.uc-bento-2 { grid-template-columns: repeat(2, 1fr); }
.uc-bento-3 { grid-template-columns: repeat(3, 1fr); }
.uc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  min-height: 220px;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.uc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.uc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 0;
}
.uc-card-icon svg {
  width: 44px;
  height: 44px;
  display: block;
}
/* Hover only */
.uc-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22) !important;
  background: var(--surface-2);
}
.uc-card:focus,
.uc-card:focus-visible,
.uc-card:active {
  outline: none !important;
  border-color: var(--border);
  transform: none;
  box-shadow: none !important;
  background: var(--surface);
}
.uc-card:hover:focus,
.uc-card:hover:focus-visible {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22) !important;
  background: var(--surface-2);
}
/* No permanent featured / selected card */
.uc-card.featured {
  grid-column: auto;
  border-color: var(--border);
  background: var(--surface);
}
.uc-card-highlight {
  animation: uc-flash 1.2s ease-out 1;
}
@keyframes uc-flash {
  0%, 25% { border-color: var(--accent); }
  100% { border-color: var(--border); }
}
.uc-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent-wash);
  border: 1px solid rgba(34, 229, 154, 0.25);
  white-space: nowrap;
}
.uc-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}
.uc-card p {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.uc-card-cta {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
  letter-spacing: -0.01em;
}
.uc-tech-callout {
  margin-top: 40px;
  padding: 28px 28px;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--surface);
}
.uc-tech-callout h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 6px;
}
.uc-tech-callout p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 480px;
}
@media (max-width: 1100px) {
  .uc-bento, .uc-bento-equal { grid-template-columns: repeat(2, 1fr); }
  .uc-bento-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .uc-bento, .uc-bento-equal, .uc-bento-2, .uc-bento-3 { grid-template-columns: 1fr; }
}

/* ========== Playbook detail ========== */
.pb-page { padding-bottom: 48px; }
.pb-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-top: 28px;
}
.pb-sidebar {
  position: sticky;
  top: 88px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.pb-back {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 14px;
  font-weight: 600;
}
.pb-back:hover { color: var(--text); }
.pb-side-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 10px;
}
.pb-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pb-toc a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.pb-toc a:hover {
  background: var(--accent-wash);
  color: var(--accent);
}
.pb-toc a.is-active {
  background: var(--accent-wash);
  color: var(--accent);
  font-weight: 600;
  border-left: 2px solid var(--accent);
  padding-left: 8px;
}
.pb-main { min-width: 0; }
.pb-hero {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.pb-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  letter-spacing: -0.04em;
  margin: 8px 0 12px;
}
.pb-lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 20px;
}
.pb-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.pb-section:last-child { border-bottom: none; }
.pb-section-alt {
  background: var(--surface);
  margin: 0 -20px;
  padding: 28px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pb-section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.pb-muted {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.pb-section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.pb-section-grid.reverse { direction: rtl; }
.pb-section-grid.reverse > * { direction: ltr; }
.pb-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}
.pb-list li { margin-bottom: 8px; }
.pb-list-check { list-style: none; padding-left: 0; }
.pb-list-check li {
  position: relative;
  padding-left: 28px;
}
.pb-list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.pb-pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pb-pain-card {
  padding: 16px 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pb-pain-card p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.pb-pain-x {
  color: #f87171;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}
.pb-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pb-after-card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.pb-after-n {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 8px;
}
.pb-after-card p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.pb-steps {
  margin: 0;
  padding-left: 22px;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 15px;
}
.pb-steps li { margin-bottom: 10px; }
.pb-steps strong { color: var(--text); }
.pb-kpi-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-kpi-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 229, 154, 0.35);
  background: var(--accent-wash);
  color: var(--accent);
}
.pb-illus { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.pb-illus svg { display: block; width: 100%; height: auto; }
.btn-sm { padding: 8px 12px !important; font-size: 13px !important; }
@media (max-width: 900px) {
  .pb-shell { grid-template-columns: 1fr; }
  .pb-sidebar { position: static; }
  .pb-section-grid, .pb-section-grid.reverse { grid-template-columns: 1fr; direction: ltr; }
  .pb-pain-grid, .pb-after-grid { grid-template-columns: 1fr; }
}

/* ========== Case studies (business) ========== */
.cs-hero {
  padding: 64px 0 36px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-wash), transparent 55%);
}
.cs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.04em;
  margin: 10px auto 14px;
  max-width: 800px;
}
.cs-hero-lead {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 32px;
}
.cs-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.cs-stat {
  padding: 18px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.cs-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.cs-stat span {
  font-size: 12px;
  color: var(--text-muted);
}
.cs-section { padding-top: 40px; }
.cs-featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 32px;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  align-items: center;
}
.cs-featured h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.03em;
  margin: 10px 0 12px;
}
.cs-featured-copy > p {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 16px;
}
.cs-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 229, 154, 0.35);
  background: var(--accent-wash);
}
.cs-result-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.cs-result-bar strong {
  display: block;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.15rem;
}
.cs-result-bar span { font-size: 12px; color: var(--text-muted); }
.cs-featured-visual {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.cs-featured-visual svg { display: block; width: 100%; height: auto; }
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cs-card {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}
.cs-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
}
.cs-card > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.cs-card-meta {
  font-size: 13px;
  color: var(--text-faint);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.cs-card-meta strong { color: var(--accent); }
.cs-quote {
  padding: 36px 40px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 28px;
}
.cs-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin: 0 0 14px;
  color: var(--text);
}
.cs-quote cite {
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.cs-tech-link {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cs-tech-link p { margin: 0; color: var(--text-muted); max-width: 480px; }
@media (max-width: 900px) {
  .cs-stat-row { grid-template-columns: 1fr 1fr; }
  .cs-featured { grid-template-columns: 1fr; }
  .cs-grid { grid-template-columns: 1fr; }
}

/* ========== Security & governance ========== */
.sec-hero {
  padding: 56px 0 40px;
  background: radial-gradient(ellipse 70% 55% at 20% 0%, var(--accent-wash), transparent 55%);
}
.sec-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.sec-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  letter-spacing: -0.04em;
  margin: 10px 0 16px;
}
.sec-lead {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 0 24px;
}
.sec-hero-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.sec-hero-visual svg { display: block; width: 100%; height: auto; }
.sec-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sec-pillar {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg);
  min-height: 180px;
}
.sec-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.sec-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 10px 0 8px;
  letter-spacing: -0.02em;
}
.sec-pillar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.sec-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}
.sec-split h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.sec-muted { color: var(--text-muted); margin: 0 0 18px; line-height: 1.6; }
.sec-flow {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sec-flow-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.sec-flow-step span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-wash);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sec-flow-step strong { display: block; font-size: 14px; margin-bottom: 2px; }
.sec-flow-step em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
}
.sec-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sec-risk {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.sec-risk h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 10px;
}
.sec-risk p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.sec-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
}
.sec-cta-band h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.sec-cta-band p {
  margin: 0;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .sec-hero-grid, .sec-split { grid-template-columns: 1fr; }
  .sec-pillars, .sec-risk-grid { grid-template-columns: 1fr; }
}

/* ========== Quick start guide ========== */
.qs-hero {
  padding: 48px 0 28px;
  background: radial-gradient(ellipse 70% 50% at 80% 0%, var(--accent-wash), transparent 55%);
}
.qs-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.qs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  margin: 10px 0 14px;
}
.qs-lead {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 0 16px;
}
.qs-time-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qs-time-pills span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
}
.qs-hero-visual {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.qs-hero-visual svg { display: block; width: 100%; height: auto; }
.qs-sticky-nav {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.qs-sticky-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 10px 24px;
  overflow-x: auto;
}
.qs-sticky-inner a {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0;
}
.qs-sticky-inner a:hover { color: var(--accent); }
.qs-section { padding-top: 36px; padding-bottom: 36px; }
.qs-step {
  display: grid;
  grid-template-columns: 64px 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}
.qs-step-final { grid-template-columns: 64px 1fr; }
.qs-step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.qs-step-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.qs-muted {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 16px;
}
.qs-step-art {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.qs-step-art svg { display: block; width: 100%; height: auto; }
.qs-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.qs-check {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.qs-check strong { display: block; font-size: 14px; margin-bottom: 4px; }
.qs-check span { font-size: 12px; color: var(--text-muted); }
.qs-code-block {
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--code-bg);
  overflow: hidden;
  margin-bottom: 14px;
}
.qs-code-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-faint);
}
.qs-copy {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
}
.qs-copy:hover { border-color: var(--accent-dim); }
.qs-code-block pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
}
.qs-code-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}
.qs-tip {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(34, 229, 154, 0.35);
  background: var(--accent-wash);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.qs-tip strong { color: var(--accent); }
.qs-tip code, .qs-muted code, .qs-env-table code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 4px;
}
.qs-env-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.qs-env-table > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  color: var(--text-muted);
}
.qs-ports {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.qs-port {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qs-port strong { font-family: var(--font-mono); color: var(--accent); font-size: 16px; }
.qs-port span { font-size: 12px; color: var(--text-muted); }
.qs-port a { font-size: 12px; color: var(--accent); font-weight: 600; text-decoration: none; margin-top: 4px; }
.qs-ol {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}
.qs-ol li { margin-bottom: 8px; }
.qs-ol a { color: var(--accent); }
.qs-next-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.qs-next {
  display: block;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.qs-next:hover {
  border-color: var(--accent-dim);
  transform: translateY(-1px);
}
.qs-next strong { display: block; font-family: var(--font-display); margin-bottom: 6px; color: var(--text); }
.qs-next span { font-size: 13px; color: var(--text-muted); line-height: 1.45; }
@media (max-width: 900px) {
  .qs-hero-grid, .qs-step { grid-template-columns: 1fr; }
  .qs-step-num { margin-bottom: -8px; }
  .qs-check-grid, .qs-ports, .qs-next-grid { grid-template-columns: 1fr; }
  .qs-env-table > div { grid-template-columns: 1fr; }
  .qs-sticky-nav { top: 60px; }
}

/* ========== Technical in-depth feature pages ========== */
.depth-hero {
  padding: 48px 0 28px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, var(--accent-wash), transparent 55%);
}
.depth-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 14px;
}
.depth-back:hover { color: var(--text); }
.depth-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  letter-spacing: -0.04em;
  margin: 8px 0 12px;
}
.depth-hero-lead {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 20px;
}
.depth-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.depth-toc a {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.depth-toc a:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-wash);
}
.depth-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 84px;
}
.depth-section-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.depth-section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.depth-lead {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 16px;
}
.depth-bullets {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.depth-bullets li {
  position: relative;
  padding: 10px 12px 10px 32px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.depth-bullets li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.depth-map-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}
.depth-map-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}
.depth-map-card h3 { margin: 0; }
.depth-map-card p { margin: 0; flex: 1; }
.depth-map-card .uc-card-cta { margin-top: 4px; }