:root {
  color-scheme: dark;
  /* Legacy blue palette kept as a quick rollback reference.
     bg #0f172a, bg-alt #1e293b, accent #60a5fa, accent-strong #22d3ee */
  --bg: #16120e;
  --bg-alt: #221a14;
  --panel: rgba(35, 28, 22, 0.76);
  --panel-strong: rgba(24, 19, 14, 0.88);
  --panel-soft: rgba(32, 25, 19, 0.58);
  --line: rgba(255, 244, 232, 0.08);
  --line-strong: rgba(214, 191, 168, 0.16);
  --text: #f5efe7;
  --muted: #b6a998;
  --accent: #8f775f;
  --accent-strong: #c7b299;
  --danger: #f87171;
  --success: #86efac;
  --warning: #fbbf24;
  --shadow: 0 18px 44px rgba(7, 5, 4, 0.24);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(111, 85, 59, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(194, 173, 146, 0.08), transparent 22%),
    linear-gradient(180deg, #15110d 0%, #100d0a 48%, #15110d 100%);
  color: var(--text);
}

/* Warm palette aliases for the public shell.
   Signed-in pages now share the same foundation through :root. */
.marketing-page,
.product-page {
  --marketing-bg-base: var(--bg);
  --marketing-bg-deep: #0f0c09;
  --marketing-panel: rgba(31, 24, 18, 0.82);
  --marketing-panel-strong: rgba(24, 19, 14, 0.92);
  --marketing-panel-soft: rgba(41, 32, 25, 0.48);
  --marketing-line: var(--line);
  --marketing-line-strong: var(--line-strong);
  --marketing-text: var(--text);
  --marketing-muted: var(--muted);
  --marketing-accent: var(--accent);
  --marketing-accent-strong: var(--accent-strong);
  --marketing-shadow: 0 22px 50px rgba(7, 5, 4, 0.32);
  --marketing-glow-one: rgba(124, 94, 65, 0.16);
  --marketing-glow-two: rgba(201, 181, 152, 0.08);
  background:
    radial-gradient(circle at top left, rgba(111, 85, 59, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(194, 173, 146, 0.08), transparent 22%),
    linear-gradient(180deg, #15110d 0%, #100d0a 48%, #15110d 100%);
  color: var(--marketing-text);
}

.marketing-page {
  min-height: 100vh;
  padding: 28px 24px 56px;
  position: relative;
  overflow: clip;
  isolation: isolate;
}

.marketing-frame {
  width: min(1260px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.marketing-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 8px 0 28px;
}

.marketing-nav-brand {
  margin-bottom: 0;
  gap: 12px;
}

.marketing-nav-brand .brand-logo {
  width: 34px;
  height: 34px;
}

.marketing-nav-wordmark {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.marketing-nav-links,
.marketing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marketing-nav-links {
  justify-content: center;
}

.marketing-nav-actions {
  justify-content: flex-end;
}

.marketing-nav-link {
  color: var(--marketing-muted);
  text-decoration: none;
  font-size: 0.79rem;
  line-height: 1;
}

.marketing-nav-link:hover {
  color: var(--marketing-text);
}

.marketing-nav-utility {
  color: var(--marketing-text);
  font-weight: 500;
}

.marketing-nav-sales {
  white-space: nowrap;
}

.marketing-nav-trial {
  white-space: nowrap;
}

.marketing-shell {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.product-page {
  min-height: 100vh;
  padding: 28px 24px 72px;
  position: relative;
  overflow: clip;
  isolation: isolate;
}

.marketing-page::before,
.product-page::before,
.marketing-page::after,
.product-page::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(34px);
  opacity: 0.56;
  z-index: 0;
}

.marketing-page::before,
.product-page::before {
  top: 10%;
  right: -12%;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, var(--marketing-glow-one) 0%, rgba(124, 94, 65, 0.03) 42%, transparent 70%);
  animation: marketingDriftOne 28s ease-in-out infinite alternate;
}

.marketing-page::after,
.product-page::after {
  left: -10%;
  bottom: 6%;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, var(--marketing-glow-two) 0%, rgba(201, 181, 152, 0.03) 44%, transparent 72%);
  animation: marketingDriftTwo 32s ease-in-out infinite alternate;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 450px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  margin-bottom: 52px;
}

.product-title {
  margin: 0 0 16px;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.product-body,
.product-section-copy {
  margin: 0;
  color: var(--marketing-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.product-hero-demo {
  min-height: 100%;
}

.product-section {
  margin-top: 46px;
}

.product-section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.product-section-heading h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.product-feature-grid,
.product-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-feature-card,
.product-value-card {
  height: 100%;
}

.product-value-card {
  position: relative;
  overflow: hidden;
  transition:
    border-color 560ms ease,
    box-shadow 560ms ease,
    background 560ms ease,
    opacity 560ms ease;
}

.product-value-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(199, 178, 153, 0.72) 0%, rgba(143, 119, 95, 0.18) 100%);
  opacity: 0;
  transition: opacity 560ms ease;
}

.product-value-card.is-emphasis {
  border-color: rgba(199, 178, 153, 0.2);
  box-shadow: 0 16px 30px rgba(14, 10, 7, 0.16);
  background: linear-gradient(180deg, rgba(40, 31, 24, 0.9) 0%, rgba(27, 21, 16, 0.82) 100%);
}

.product-value-card.is-emphasis::before {
  opacity: 1;
}

.product-feature-card h3,
.product-value-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.25;
}

.product-mini-screen {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 17, 13, 0.42);
}

.product-section-value {
  margin-top: 40px;
}

.marketing-title {
  margin: 0 0 10px;
  font-size: 1.85rem;
  line-height: 1.08;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.marketing-body {
  margin: 0;
  max-width: 30rem;
  color: var(--marketing-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.marketing-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.marketing-status {
  margin: 12px 0 0;
  min-height: 1rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.72rem;
  color: var(--muted);
}

.legal-links a {
  color: inherit;
  text-decoration: none;
}

.legal-links a:hover {
  color: var(--text);
}

.teaser-panel {
  position: relative;
  border: 1px solid var(--marketing-line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--marketing-panel) 0%, var(--marketing-panel-strong) 100%);
  box-shadow: var(--marketing-shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.teaser-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.018) 50%, transparent 100%),
    linear-gradient(180deg, rgba(143, 119, 95, 0.045) 0%, transparent 38%, rgba(199, 178, 153, 0.03) 100%);
  background-size: 260px 100%, 100% 100%;
  background-position: -220px 0, 0 0;
  animation: teaserSweep 18s linear infinite;
  pointer-events: none;
}

.teaser-panel::after {
  content: "";
  position: absolute;
  inset: auto 12% 10% auto;
  width: 11rem;
  height: 11rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 119, 95, 0.1) 0%, transparent 72%);
  animation: teaserPulse 12s ease-in-out infinite;
  pointer-events: none;
}

.teaser-window {
  position: relative;
  z-index: 1;
  animation: teaserFloat 18s ease-in-out infinite;
}

.teaser-window-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--marketing-line);
  background: rgba(19, 15, 11, 0.58);
}

.teaser-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.18);
  animation: teaserDotPulse 5.4s ease-in-out infinite;
}

.teaser-dot:nth-child(2) {
  animation-delay: 0.35s;
}

.teaser-dot:nth-child(3) {
  animation-delay: 0.7s;
}

.teaser-window-body {
  padding: 18px 20px 20px;
}

.teaser-window-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.teaser-window-header h2 {
  margin: 0;
  font-size: 1rem;
}

.teaser-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.signal-chip,
.sequence-step {
  border: 1px solid var(--marketing-line);
  border-radius: 9px;
  background: rgba(21, 17, 13, 0.42);
  transition:
    border-color 360ms ease,
    box-shadow 360ms ease,
    background 360ms ease,
    opacity 360ms ease;
}

.signal-chip {
  padding: 8px 10px;
}

.signal-chip-label,
.sequence-step-title {
  display: block;
  margin-bottom: 3px;
  color: var(--marketing-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.58rem;
}

.signal-chip-value,
.sequence-step-detail {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

.teaser-route-strip {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--marketing-line);
  border-radius: 10px;
  background: rgba(21, 17, 13, 0.32);
}

.teaser-route-current {
  font-size: 0.8rem;
  font-weight: 600;
}

.teaser-route-path {
  color: var(--marketing-muted);
  font-size: 0.66rem;
}

.teaser-activity-strip,
.teaser-sequence {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--marketing-line);
  border-radius: 10px;
  background: rgba(21, 17, 13, 0.32);
}

.teaser-activity-copy {
  font-size: 0.8rem;
  line-height: 1.35;
}

.teaser-activity-updated {
  color: var(--marketing-muted);
  font-size: 0.66rem;
}

.teaser-sequence {
  margin-top: 12px;
  margin-bottom: 0;
}

.teaser-sequence-copy {
  display: grid;
  gap: 4px;
}

.teaser-sequence-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.sequence-step {
  padding: 8px 10px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px;
}

.teaser-panel [data-demo-metric],
.teaser-panel [data-demo-section],
.teaser-panel [data-demo-card],
.teaser-panel [data-demo-sequence-step] {
  transition:
    transform 280ms ease,
    border-color 280ms ease,
    box-shadow 280ms ease,
    background 280ms ease,
    opacity 280ms ease;
}

.teaser-panel [data-demo-metric].is-active,
.teaser-panel [data-demo-section].is-active,
.teaser-panel [data-demo-card].is-active,
.teaser-panel [data-demo-sequence-step].is-active {
  transform: none;
  border-color: rgba(199, 178, 153, 0.22);
  box-shadow: 0 12px 24px rgba(14, 10, 7, 0.12);
  background: linear-gradient(180deg, rgba(40, 31, 24, 0.92) 0%, rgba(24, 19, 14, 0.86) 100%);
}

.teaser-panel.is-live-tick [data-demo-card],
.teaser-panel.is-live-tick [data-demo-metric].is-active {
  animation: teaserRefresh 420ms ease;
}

.teaser-panel .status-dot.online {
  box-shadow: 0 0 0 rgba(134, 239, 172, 0.42);
  animation: onlineStatusPulse 4.8s ease-in-out infinite;
}

.teaser-table-wrap {
  background: rgba(21, 17, 13, 0.28);
}

.teaser-overview-grid {
  column-gap: 10px;
}

a {
  color: inherit;
}

.page-shell {
  display: grid;
  grid-template-columns: 212px 1fr;
  min-height: 100vh;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.sidebar {
  padding: 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 19, 14, 0.92) 0%, rgba(18, 14, 11, 0.76) 100%);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover {
  color: inherit;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(7, 5, 4, 0.24));
}

.marketing-brand .brand-logo {
  width: 46px;
  height: 46px;
}

.brand h1,
.panel-header h3 {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-weight: 600;
}

.panel-header h3 {
  font-size: 0.92rem;
}

.brand h1 {
  font-size: 1rem;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
}

.control-panel {
  padding: 8px 0;
  margin-bottom: 8px;
  border-top: 1px solid var(--line);
}

.control-panel h2 {
  margin: 0 0 8px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.sidebar-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.sidebar-links {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.sidebar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(24, 19, 14, 0.62);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
}

.sidebar-link:hover {
  background: rgba(32, 25, 19, 0.82);
}

.main-content {
  padding: 8px 10px;
}

.content-frame {
  width: min(900px, 100%);
  margin: 0 auto;
}

.legal-page {
  min-height: 100vh;
  padding: 32px 20px 48px;
}

.legal-shell {
  width: min(860px, 100%);
  margin: 0 auto;
}

.public-support-page .product-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-grid {
  align-items: stretch;
}

.support-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.support-list li + li {
  margin-top: 6px;
}

.inline-link {
  color: var(--accent-strong);
  text-decoration: none;
}

.inline-link:hover {
  color: #ffffff;
}

.marketing-nav-signout {
  white-space: nowrap;
}

.public-user-signed-in .marketing-nav-sales,
.public-user-signed-in .marketing-nav-trial,
.public-user-signed-in .marketing-nav-utility {
  display: none;
}

@keyframes marketingDriftOne {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-2.5%, 3%, 0) scale(1.03);
  }
}

@keyframes marketingDriftTwo {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(3%, -4%, 0) scale(1.04);
  }
}

@keyframes teaserFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes teaserSweep {
  from {
    background-position: -220px 0, 0 0;
  }

  to {
    background-position: 110% 0, 0 0;
  }
}

@keyframes teaserPulse {
  0%,
  100% {
    transform: scale(0.97);
    opacity: 0.2;
  }

  50% {
    transform: scale(1.02);
    opacity: 0.34;
  }
}

@keyframes teaserDotPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.34;
  }

  50% {
    transform: scale(1);
    opacity: 0.56;
  }
}

@keyframes teaserRefresh {
  0% {
    opacity: 0.9;
    filter: saturate(0.92);
  }

  100% {
    opacity: 1;
    filter: saturate(1);
  }
}

@keyframes onlineStatusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.18);
  }

  50% {
    box-shadow: 0 0 0 3px rgba(134, 239, 172, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-page::before,
  .product-page::before,
  .marketing-page::after,
  .product-page::after,
  .teaser-panel::before,
  .teaser-panel::after,
  .teaser-window,
  .teaser-dot,
  .teaser-panel .status-dot.online,
  .product-value-card,
  .product-value-card::before,
  .teaser-panel.is-live-tick [data-demo-card],
  .teaser-panel.is-live-tick [data-demo-metric].is-active {
    animation: none !important;
  }
}

.legal-card {
  padding: 24px;
}

.legal-card h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.legal-card h3 {
  margin: 18px 0 6px;
  font-size: 0.98rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.legal-card ul {
  margin: 0;
  padding-left: 18px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 6px;
  padding: 0 0 5px;
  border-bottom: 1px solid var(--line);
}

.hero h2 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.15;
  font-weight: 600;
}

.hero-copy {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.hero-badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(24, 19, 14, 0.58);
  color: var(--muted);
  font-size: 0.68rem;
  backdrop-filter: blur(14px);
}

.hero-onboarding {
  margin-bottom: 10px;
}

.panel-onboarding {
  max-width: 760px;
}

.checkout-panel-header h3 {
  font-size: 1rem;
}

.checkout-copy {
  max-width: 44rem;
}

.checkout-success-card,
.checkout-wait-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(24, 19, 14, 0.56) 0%, rgba(18, 14, 11, 0.4) 100%);
}

.checkout-success-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
}

.step-list {
  display: grid;
  gap: 10px;
}

.step-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 19, 14, 0.44);
}

.step-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.72rem;
}

.step-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(143, 119, 95, 0.18);
  border: 1px solid rgba(199, 178, 153, 0.24);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
}

.metrics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 4px;
}

.metrics-grid-compact .metric-card {
  min-width: 126px;
}

.metric-card,
.panel,
.data-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.metric-card {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 5px 7px;
  background: linear-gradient(180deg, rgba(40, 31, 24, 0.86) 0%, rgba(26, 21, 16, 0.76) 100%);
}

.metric-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-value {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
}

.panel {
  padding: 7px 8px;
  margin-bottom: 4px;
  background: linear-gradient(180deg, rgba(35, 28, 22, 0.9) 0%, rgba(23, 18, 13, 0.84) 100%);
}

.access-panel.is-hidden {
  display: none;
}

.panel-copy {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.inline-notice {
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 19, 14, 0.44);
  color: var(--text);
  font-size: 0.68rem;
  line-height: 1.45;
}

.inline-notice.warn {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  margin-bottom: 3px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  display: grid;
  gap: 4px;
  font-size: 0.68rem;
}

.auth-form span {
  color: var(--muted);
}

.auth-form input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(24, 19, 14, 0.44);
  color: var(--text);
  font: inherit;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(24, 19, 14, 0.44);
}

.download-card .panel-copy {
  flex: 1 1 auto;
}

.download-card .button {
  width: 100%;
  min-height: 32px;
  margin-top: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border-radius: 7px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, #efe8de 0%, #d7c4af 100%);
  color: #18120d;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(26, 21, 16, 0.42);
  color: var(--text);
}

.button-danger {
  border-color: rgba(248, 113, 113, 0.26);
  background: rgba(248, 113, 113, 0.12);
  color: #fee2e2;
}

.marketing-page .metric-card,
.marketing-page .panel,
.marketing-page .data-card,
.product-page .metric-card,
.product-page .panel,
.product-page .data-card {
  border-color: var(--marketing-line);
  background: linear-gradient(180deg, rgba(35, 28, 22, 0.9) 0%, rgba(23, 18, 13, 0.84) 100%);
  box-shadow: 0 18px 38px rgba(8, 6, 4, 0.2);
}

.marketing-page .metric-card,
.product-page .metric-card {
  background: linear-gradient(180deg, rgba(40, 31, 24, 0.86) 0%, rgba(26, 21, 16, 0.76) 100%);
}

.marketing-page .metric-label,
.marketing-page .panel-copy,
.marketing-page .overview-item dt,
.marketing-page .status-label,
.marketing-page .status-detail,
.product-page .metric-label,
.product-page .panel-copy,
.product-page .overview-item dt,
.product-page .status-label,
.product-page .status-detail {
  color: var(--marketing-muted);
}

.marketing-page .overview-item dd,
.marketing-page .inline-status,
.product-page .overview-item dd,
.product-page .inline-status {
  color: var(--marketing-text);
}

.marketing-page .overview-grid,
.product-page .overview-grid {
  border-top-color: var(--marketing-line);
}

.marketing-page .overview-item,
.product-page .overview-item {
  border-bottom-color: var(--marketing-line);
}

.marketing-page .status-card,
.product-page .status-card {
  border-color: var(--marketing-line);
  background: rgba(32, 25, 19, 0.58);
}

.marketing-page .download-card,
.marketing-page .inline-notice,
.marketing-page .step-item,
.product-page .download-card,
.product-page .inline-notice,
.product-page .step-item {
  border-color: var(--marketing-line);
  background: rgba(24, 19, 14, 0.44);
}

.marketing-page .step-item p,
.product-page .step-item p {
  color: var(--marketing-muted);
}

.marketing-page .step-number,
.product-page .step-number {
  background: rgba(143, 119, 95, 0.18);
  border-color: rgba(199, 178, 153, 0.24);
  color: var(--marketing-text);
}

.marketing-page .button-primary,
.product-page .button-primary {
  background: linear-gradient(135deg, #efe8de 0%, #d7c4af 100%);
  color: #18120d;
}

.marketing-page .button-secondary,
.product-page .button-secondary {
  border-color: var(--marketing-line-strong);
  background: rgba(26, 21, 16, 0.42);
  color: var(--marketing-text);
}

.marketing-page .hero-badge,
.marketing-page .pill,
.product-page .hero-badge,
.product-page .pill {
  border-color: var(--marketing-line);
  background: rgba(24, 19, 14, 0.58);
  color: var(--marketing-muted);
}

.marketing-page .runtime-table th,
.marketing-page .runtime-table td,
.product-page .runtime-table th,
.product-page .runtime-table td {
  border-bottom-color: var(--marketing-line);
}

.marketing-page .runtime-table th,
.product-page .runtime-table th {
  background: rgba(24, 19, 14, 0.74);
  color: var(--marketing-muted);
}

.marketing-page .runtime-table td,
.marketing-page .mini-status,
.marketing-page .inline-link,
.marketing-page .support-list,
.product-page .runtime-table td,
.product-page .mini-status,
.product-page .inline-link,
.product-page .support-list {
  color: var(--marketing-text);
}

.marketing-page .table-muted,
.marketing-page .support-list,
.product-page .table-muted,
.product-page .support-list {
  color: var(--marketing-muted);
}

.marketing-page .inline-link:hover,
.product-page .inline-link:hover {
  color: #ffffff;
}

.marketing-page .intercepts-table-wrap,
.product-page .intercepts-table-wrap {
  border-color: var(--marketing-line);
  background: rgba(21, 17, 13, 0.26);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  border-top: 1px solid var(--line);
}

.overview-grid > .empty-state {
  grid-column: 1 / -1;
}

.overview-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 4px;
  align-items: center;
  padding: 2px 0;
  border-bottom: 1px solid var(--line);
}

.overview-item dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.overview-item dd {
  margin: 0;
  line-height: 1.15;
  font-size: 0.66rem;
  color: var(--text);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 3px;
}

.status-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 150px;
  gap: 1px;
  min-width: 0;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
}

.status-label {
  color: var(--muted);
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.inline-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-size: 0.62rem;
  font-weight: 600;
}

.status-detail {
  color: var(--muted);
  max-width: 100%;
  font-size: 0.54rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

.status-dot.online {
  background: var(--success);
}

.status-dot.offline {
  background: var(--danger);
}

.status-dot.warn {
  background: var(--warning);
}

.runtime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
}

.runtime-grid .panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
}

.runtime-grid .card-list {
  flex: 1 1 auto;
  min-height: 128px;
  max-height: 320px;
  overflow-y: auto;
}

.card-list {
  display: grid;
  gap: 2px;
}

.intercepts-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 17, 13, 0.26);
}

.runtime-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.runtime-table th,
.runtime-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.runtime-table th {
  color: var(--muted);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  background: rgba(24, 19, 14, 0.74);
}

.runtime-table td {
  font-size: 0.64rem;
  color: var(--text);
}

.runtime-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-primary {
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
}

.table-muted {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.56rem;
}

.table-code {
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
}

.workstation-card-actions {
  margin-top: 10px;
}

.data-card {
  padding: 5px 6px;
  border-radius: 6px;
  background: rgba(24, 19, 14, 0.44);
  box-shadow: none;
}

.data-card h4 {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
}

.data-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.2;
}

.mini-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: var(--text);
  font-size: 0.58rem;
  font-weight: 600;
}

.mini-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

.mini-status.online::before {
  background: var(--success);
}

.mini-status.offline::before {
  background: var(--danger);
}

.mini-status.warn::before {
  background: var(--warning);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 3px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 4px;
  border-radius: 6px;
  background: rgba(214, 191, 168, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.57rem;
}

.tag.success {
  color: #d9fbe7;
  background: rgba(134, 239, 172, 0.12);
  border-color: rgba(134, 239, 172, 0.24);
}

.tag.warn {
  color: #f8e3a0;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.24);
}

.tag.danger {
  color: #fee2e2;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.24);
}

.is-hidden {
  display: none;
}

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

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

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

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

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 6px;
  color: var(--muted);
  text-align: center;
  font-size: 0.66rem;
  background: rgba(21, 17, 13, 0.26);
}

.card-list.empty-state {
  align-content: center;
}

.stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 3px;
  font-size: 0.64rem;
}

.stack strong {
  color: var(--muted);
  font-weight: 500;
  margin-right: 4px;
}

.nested-card-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.nested-card {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 17, 13, 0.26);
}

.nested-card h5 {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 600;
}

.list-grid {
  display: grid;
  gap: 8px;
}

.list-grid dl {
  margin: 0;
  display: grid;
  gap: 4px;
}

.list-grid dt {
  color: var(--muted);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.list-grid dd {
  margin: 0;
  font-size: 0.68rem;
}

.loading-block {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px 12px 8px;
  color: var(--muted);
  font-size: 0.72rem;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.18);
  border-top-color: var(--accent-strong);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .marketing-nav {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
  }

  .marketing-nav-links,
  .marketing-nav-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .marketing-shell {
    grid-template-columns: 1fr;
  }

  .product-hero,
  .product-feature-grid,
  .product-value-grid,
  .public-support-page .product-feature-grid,
  .teaser-sequence-steps {
    grid-template-columns: 1fr;
  }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics-grid,
  .status-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card,
  .status-card {
    min-width: 0;
  }

  .runtime-grid {
    grid-template-columns: 1fr;
  }

  .runtime-grid .card-list {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .marketing-page {
    padding: 20px 14px;
  }

  .product-page {
    padding: 20px 14px 44px;
  }

  .marketing-frame {
    width: min(100%, 1260px);
  }

  .marketing-nav {
    gap: 12px;
    padding-bottom: 18px;
  }

  .marketing-nav-links {
    gap: 12px;
  }

  .marketing-nav-actions {
    width: 100%;
    gap: 8px;
  }

  .marketing-nav-actions .button,
  .marketing-nav-utility {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .marketing-title {
    font-size: 1.45rem;
  }

  .product-title {
    font-size: 1.6rem;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .teaser-activity-strip,
  .teaser-sequence {
    padding: 10px;
  }

  .main-content,
  .sidebar {
    padding: 20px;
  }

  .metrics-grid,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
    align-items: start;
  }

  .overview-item,
  .list-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .action-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
