:root {
  /* --bg, --text, --accent: see platform-theme.css shade ramps */
  --nav-width: 280px;
  --nav-collapsed: 48px;
  --agent-width: 600px;
  --topbar-height: 52px;
  /* Shared left-rail tray + agent prompt band (pixel-aligned top borders) */
  --platform-footer-pad-y: 0.75rem;
  --platform-footer-pad-x: 0.75rem;
  --platform-footer-content-h: 2.5rem;
  --platform-footer-band-height: calc(
    1px + var(--platform-footer-pad-y) * 2 + var(--platform-footer-content-h)
  );
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
}

.platform-topbar {
  height: var(--topbar-height);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: var(--bg);
  position: relative;
  z-index: 9020;
}

.platform-topbar .brand {
  font-weight: 600;
  font-size: 1rem;
}

.platform-topbar .context {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.platform-body {
  display: flex;
  align-items: stretch;
  height: calc(100vh - var(--topbar-height));
  min-height: 0;
}

.platform-nav {
  width: var(--nav-width);
  border-right: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.platform-nav-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.platform-agent-input,
.platform-nav-bottom-tray-host {
  flex-shrink: 0;
  box-sizing: border-box;
  height: var(--platform-footer-band-height);
  min-height: var(--platform-footer-band-height);
  max-height: var(--platform-footer-band-height);
  border-top: 1px solid var(--border);
  padding: var(--platform-footer-pad-y) var(--platform-footer-pad-x);
  margin: 0;
}

.platform-agent-input {
  background: var(--bg);
}

.platform-nav-bottom-tray-host {
  display: flex;
  align-items: stretch;
  min-height: 0;
  background: var(--bg-subtle);
}

.platform-nav.collapsed {
  width: var(--nav-collapsed);
}

.platform-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.platform-nav a:hover,
.platform-nav a.active {
  background: var(--bg);
  color: var(--accent);
}

.platform-agent {
  width: var(--agent-width);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 0;
  background: var(--bg);
}

.platform-agent-header {
  position: relative;
  padding: 0.55rem 0.75rem 0.65rem;
  border-bottom: 1px solid var(--highlight-shade3);
  font-size: 0.8125rem;
  font-weight: 600;
  flex-shrink: 0;
  background: var(--bg-shade2);
}

.platform-agent-header__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  min-width: 0;
  /* Lock row height so Server ↔ On-device does not jump when device controls show */
  min-height: 1.625rem;
}

.platform-agent-header__title {
  font-weight: 600;
  color: var(--text-shade1);
  flex: 0 0 auto;
}

.platform-agent-header__cluster {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}

.platform-agent-header__mode {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  color: var(--text-shade2);
  cursor: pointer;
  margin: 0;
}

.platform-agent-header__mode input {
  accent-color: var(--link-shade1);
}

.platform-agent-header__balance {
  font-weight: 600;
  color: var(--text-shade1);
}

.platform-agent-header__device {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}

.platform-agent-header__device--collapsed {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.platform-agent-header__load-status {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-shade2);
  min-width: 2.1rem;
  text-align: right;
  white-space: nowrap;
  cursor: default;
}

.platform-agent-header__load-status--ready {
  color: var(--link-shade1);
  font-weight: 600;
}

.platform-agent-header__load-status--error {
  color: var(--text-shade1);
  font-weight: 600;
}

.platform-agent-header--load-active .platform-agent-header__load-status {
  color: var(--link-shade1);
}

.platform-agent-header__model-select {
  flex: 1 1 6rem;
  min-width: 0;
  max-width: 9.5rem;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.2;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  box-sizing: border-box;
  min-height: 1.375rem;
  border: 1px solid var(--input-border, var(--highlight-shade3));
  background: var(--input-bg, var(--bg-shade1));
  color: var(--text-shade1);
}

/* Mouse pick (e.g. Unload model) — avoid persistent halo; keyboard still gets a ring */
.platform-agent-header__model-select:focus {
  outline: none;
  box-shadow: none;
}

.platform-agent-header__model-select:focus-visible {
  outline: 2px solid var(--link-shade1);
  outline-offset: 1px;
}

.platform-agent-header__load,
.platform-agent-header__unload {
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.2;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--highlight-shade3);
  background: var(--button-bg, var(--bg-shade2));
  color: var(--button-text, var(--text-shade1));
  cursor: pointer;
  box-sizing: border-box;
  min-height: 1.375rem;
}

.platform-agent-header__load {
  border-color: var(--link-shade1);
  color: var(--link-shade1);
}

.platform-agent-header__load:disabled,
.platform-agent-header__unload:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.platform-agent-header__loadline {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--link-shade1);
  transition: width 0.2s ease;
  pointer-events: none;
}

/* No full-width “ready” bar — header border stays the normal divider when idle or loaded */
.platform-agent-header--model-ready .platform-agent-header__loadline {
  width: 0 !important;
  background: transparent;
}

.platform-agent-transcript {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.platform-agent-input {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.platform-agent-input textarea {
  flex: 1;
  min-height: 0;
  height: var(--platform-footer-content-h);
  max-height: var(--platform-footer-content-h);
  resize: none;
  border: 1px solid var(--input-border, var(--border));
  border-radius: 6px;
  padding: 0.5rem;
  font: inherit;
  color: var(--text-shade1);
  background: var(--input-bg, var(--bg));
  overflow-y: auto;
}

.platform-agent-input textarea::placeholder {
  color: var(--text-shade3);
  opacity: 1;
}

.platform-agent-input button {
  flex-shrink: 0;
  height: var(--platform-footer-content-h);
  padding: 0 0.9rem;
  border: none;
  border-radius: 6px;
  background: var(--link-shade1);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.platform-agent-input button:hover:not(:disabled) {
  opacity: 0.88;
}

.platform-agent-transcript .msg {
  margin-bottom: 0.75rem;
}

.platform-agent-transcript .who {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.platform-agent-transcript .bubble {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  white-space: pre-wrap;
}

.platform-agent-launchables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.platform-agent-launchable {
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-shade2, var(--bg));
}

.platform-agent-transcript .msg.user .bubble {
  color: var(--text-shade1);
  background: color-mix(in srgb, var(--link-shade1) 11%, var(--bg-shade2));
  border-color: color-mix(in srgb, var(--link-shade1) 28%, var(--border));
}

[data-theme='dark'] .platform-agent-transcript .msg.user .bubble {
  background: color-mix(in srgb, var(--link-shade1) 16%, var(--bg-shade2));
  border-color: color-mix(in srgb, var(--link-shade1) 32%, var(--highlight-shade3));
}

.platform-canvas {
  flex: 1;
  overflow: auto;
  padding: 1.5rem;
  position: relative;
}


.platform-canvas h1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.platform-core-apps {
  margin-top: 1.5rem;
  max-width: 42rem;
}

.platform-core-apps-lead {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.platform-core-apps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.35rem;
}

.platform-core-apps-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border, #e5e5e8);
  border-radius: 6px;
  font-size: 0.9rem;
}

.platform-core-apps-list li.disabled {
  opacity: 0.55;
}

.core-app-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.platform-core-drive {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #e5e5e8);
}

.core-drive-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.core-drive-label {
  font-size: 0.8rem;
  color: var(--text-shade2);
  min-width: 3.5rem;
}

.core-drive-btn {
  border: 1px solid var(--button-border, var(--border));
  background: var(--button-bg);
  color: var(--button-text, var(--text-shade1));
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font: inherit;
}

.core-drive-btn:hover {
  border-color: var(--link-shade1);
}

.core-drive-input {
  width: 100%;
  max-width: 32rem;
  padding: 0.35rem 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid var(--input-border, var(--border));
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-shade1);
  background: var(--input-bg, var(--bg));
}

.core-drive-input::placeholder {
  color: var(--text-shade3);
  opacity: 1;
}

.core-drive-pre {
  font-size: 0.75rem;
  color: var(--text-shade1);
  background: var(--input-bg, var(--bg-shade4));
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: 6px;
  overflow: auto;
  max-height: 8rem;
}

.core-drive-textarea {
  width: 100%;
  max-width: 32rem;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  padding: 0.5rem;
  border: 1px solid var(--input-border, var(--border));
  border-radius: 6px;
  color: var(--text-shade1);
  background: var(--input-bg, var(--bg));
}

.core-drive-status {
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
  color: var(--text-shade2);
}

.platform-core-drive--browser .core-drive-status {
  margin-top: 0.5rem;
}

.core-drive-status.ok {
  color: color-mix(in srgb, #1a5f2a 75%, var(--text-shade1));
}

.core-drive-status.err {
  color: color-mix(in srgb, #dc2626 85%, var(--text-shade1));
}

.platform-core-drive h3 {
  color: var(--text-shade1);
}

.platform-core-drive .core-drive-lead {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 0.5rem;
}

.platform-core-drive--browser .core-drive-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  margin: 0.5rem 0 0.65rem;
  font-size: 0.82rem;
}

.core-drive-crumb {
  border: none;
  background: none;
  padding: 0.1rem 0.25rem;
  font: inherit;
  color: var(--link-shade1);
  cursor: pointer;
  border-radius: 4px;
}

.core-drive-crumb:hover {
  background: var(--highlight-shade4);
}

.core-drive-crumb--current {
  color: var(--text-shade1);
  font-weight: 600;
  cursor: default;
}

.core-drive-crumb-sep {
  color: var(--text-shade3);
  user-select: none;
}

.core-drive-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 36rem;
}

.core-drive-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--highlight-shade3);
  background: var(--bg-shade2);
  color: var(--text-shade1);
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
}

.core-drive-entry:hover {
  border-color: var(--link-shade1);
  background: var(--bg-shade1);
}

.core-drive-entry__icon {
  flex: 0 0 auto;
  color: var(--link-shade1);
  width: 1rem;
}

.core-drive-entry__name {
  font-weight: 500;
}

.core-drive-entry__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.core-drive-entry__sub {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-shade2);
}

.core-drive-empty {
  font-size: 0.85rem;
  color: var(--text-shade2);
  margin: 0.25rem 0;
}

.core-drive-preview {
  margin-top: 0.75rem;
  max-width: 40rem;
  border: 1px solid var(--highlight-shade3);
  border-radius: 8px;
  background: var(--bg-shade2);
  padding: 0.5rem 0.65rem 0.65rem;
}

.core-drive-preview__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-shade1);
  margin-bottom: 0.35rem;
}

.core-drive-preview__body {
  margin: 0;
  max-height: 14rem;
  overflow: auto;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-shade1);
  background: var(--input-bg, var(--bg-shade1));
  border: 1px solid var(--highlight-shade4);
  border-radius: 4px;
  padding: 0.45rem;
}

.core-drive-preview__close {
  margin-top: 0.5rem;
}

.auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0c0c0e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-page--solid {
  background-color: #ffffff;
}

.auth-page--solid::before {
  display: none;
}

.auth-page--solid .auth-card {
  background: var(--bg-shade1, #ffffff);
  border: 1px solid var(--border, #e8e6e1);
  box-shadow: 0 8px 32px var(--shadow-shade2, rgba(0, 0, 0, 0.08));
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 0;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  padding: 2rem 2rem 1.75rem;
  background: var(--bg-shade1, #ffffff);
  border: 1px solid var(--border, #e8e6e1);
  border-radius: 12px;
  box-shadow: 0 16px 48px var(--shadow-shade1, rgba(0, 0, 0, 0.35));
  color: var(--text);
}

.auth-logo {
  display: block;
  max-width: 160px;
  max-height: 48px;
  width: auto;
  height: auto;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

.auth-banner {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 1.25rem;
}

.auth-card h1 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 1.25rem;
  text-align: center;
  color: var(--text-muted);
}

.auth-card input {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--input-border, var(--border));
  border-radius: 6px;
  font: inherit;
  background: var(--input-bg, var(--bg-shade1));
  color: var(--text);
}

.auth-card button[type='submit'] {
  width: 100%;
  padding: 0.6rem;
  background: var(--cta-bg, var(--accent));
  color: var(--cta-text, #fff);
  border: none;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

.auth-card button[type='submit']:hover {
  filter: brightness(1.05);
}

.auth-toggle {
  margin: 1rem 0 0;
  text-align: center;
}

.auth-card .btn-link {
  width: auto;
  padding: 0.25rem 0.5rem;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-card .btn-link:hover {
  color: var(--link-shade2, var(--accent));
}

.auth-card .message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-muted);
}

/* legacy inference mounts removed — see .platform-agent-header__* */

/* —— Workspace topnav + topsheet + app layers (v0) —— */

.platform-topbar--workspace {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.platform-topbar--workspace .brand {
  justify-self: start;
}

.platform-topnav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.platform-topbar-end {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.platform-topbar-auth {
  border: 1px solid var(--button-border, var(--border));
  background: var(--button-bg, var(--bg));
  color: var(--button-text, var(--text));
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.platform-topnav-item {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
}

.platform-topnav-item:hover {
  color: var(--accent);
}

.platform-topnav-caret {
  display: inline-block;
  font-size: 0.65rem;
  transition: transform 0.15s ease;
  transform: rotate(180deg);
}

.platform-topnav-caret.is-open {
  transform: rotate(0deg);
}

.platform-topsheet {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--topbar-height);
  z-index: 9010;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  padding: 2rem 2.5rem 2.5rem;
  pointer-events: auto;
  box-sizing: border-box;
}

.platform-topsheet-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  align-items: start;
  gap: 2rem 2.5rem;
}

.platform-topsheet-inner--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.platform-topsheet-inner--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.platform-topsheet-col--featured {
  min-width: 0;
}

.platform-topsheet-featured-card {
  display: block;
  width: 100%;
  margin: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
  max-width: calc(100% - 80px);
}

.platform-topsheet-featured-card__visual {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #e8e4dc 0%, #c9bfb0 45%, #8a7f72 100%);
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-topsheet-featured-card:hover .platform-topsheet-featured-card__visual {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.platform-topsheet-featured__eyebrow {
  margin: 0 40px 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.platform-topsheet-featured__title {
  margin: 0 40px 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.platform-topsheet-featured__desc {
  margin: 0 40px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.platform-topsheet-col__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.platform-topsheet-link {
  display: block;
  width: 100%;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0;
  margin: 0 0 28px;
  cursor: pointer;
  text-align: left;
}

.platform-topsheet-link:last-child {
  margin-bottom: 0;
}

.platform-topsheet-link__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
}

.platform-topsheet-link__label {
  font-weight: 500;
  transition: color 0.15s ease;
}

.platform-topsheet-link__icon {
  font-size: 0.7rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.2s ease;
  color: var(--accent);
  flex-shrink: 0;
}

.platform-topsheet-link__desc {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.15s ease, opacity 0.15s ease;
}

.platform-topsheet-link:hover .platform-topsheet-link__label,
.platform-topsheet-link:hover {
  color: var(--accent);
}

.platform-topsheet-link:hover .platform-topsheet-link__desc {
  color: var(--accent);
  opacity: 1;
}

.platform-topsheet-link:hover .platform-topsheet-link__icon {
  opacity: 1;
  transform: translateX(2px);
}

.platform-topsheet-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.platform-topsheet-blur {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--topbar-height);
  z-index: 9000;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.platform-nav-section {
  padding: 0.5rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
}

.platform-nav-section__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.5rem 1rem 0.35rem;
}

.platform-nav-section__links .platform-nav-link,
.platform-nav .platform-nav-link--site {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.platform-nav-section__links .platform-nav-link:hover,
.platform-nav-section__links .platform-nav-link.active {
  background: var(--bg);
  color: var(--accent);
}

.platform-nav-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.25rem 1rem 0.5rem;
  margin: 0;
}

.platform-nav-running__row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem 0.15rem 0.75rem;
}

.platform-nav-running__row--active {
  background: var(--bg);
}

.platform-nav-running__focus {
  flex: 1;
  border: none;
  background: none;
  text-align: left;
  font: inherit;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  cursor: pointer;
  color: var(--text);
}

.platform-nav-running__close {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.15rem 0.35rem;
}

/* App open: canvas flush; inset lives on #platform-canvas-app-host */
.platform-canvas:has(#platform-canvas-app-host:not([hidden])) {
  padding: 0;
}

.platform-canvas-app-host:not([hidden]) {
  --app-layer-pad: clamp(1.25rem, 3vw, 2rem);
  box-sizing: border-box;
  min-height: 100%;
  padding: var(--app-layer-pad);
}

.platform-canvas-home:empty {
  display: none;
}

.platform-canvas--visitor-home {
  padding: 0;
}

.platform-canvas-home--visitor .platform-static-app {
  width: 100%;
}

.platform-visitor-home-fallback {
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.platform-media-window-band__lede {
  max-width: 42rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.platform-media-window-band__actions {
  margin: 0;
}

.platform-app-layer {
  min-height: 100%;
  box-sizing: border-box;
}

.platform-app-layer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.platform-app-layer__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.platform-app-layer__close {
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.platform-app-layer__lede {
  margin: 0;
  color: var(--text-muted);
  max-width: 42rem;
  line-height: 1.5;
}

.platform-auth-wall {
  max-width: 28rem;
  padding: 2rem 0 3rem;
}

.platform-auth-wall__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.platform-auth-wall__text {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.platform-auth-wall__actions {
  margin: 0;
}

.platform-account {
  max-width: 42rem;
}

.platform-account__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #5c6570);
}

.platform-account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid var(--border, #e2e6ec);
  padding-bottom: 0.65rem;
}

.platform-account-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted, #5c6570);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

.platform-account-tab:hover {
  color: var(--text, #1a1d21);
  background: var(--bg-subtle, #f6f7f9);
}

.platform-account-tab.is-active {
  color: var(--text, #1a1d21);
  border-color: var(--border, #e2e6ec);
  background: var(--bg, #fff);
}

.platform-account-section-head__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.platform-account-section-head__lead {
  margin: 0 0 1rem;
  color: var(--text-muted, #5c6570);
  line-height: 1.5;
  font-size: 0.92rem;
}

.platform-account-placeholder {
  padding: 1rem 1.1rem;
  border: 1px dashed var(--border, #e2e6ec);
  border-radius: 10px;
  background: var(--bg-subtle, #f6f7f9);
}

.platform-account-placeholder__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted, #5c6570);
}

.platform-account-gate__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.platform-account-gate__text {
  margin: 0 0 1rem;
  color: var(--text-muted, #5c6570);
  line-height: 1.5;
}

.platform-account-gate__actions {
  margin: 0;
}

.platform-account-status {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--link-shade1, #2563eb);
}

.platform-account-status--error {
  color: #b42318;
}

.platform-account-form__group {
  margin: 0 0 1.35rem;
  padding: 0;
  border: 0;
}

.platform-account-form__legend {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #5c6570);
  margin-bottom: 0.75rem;
  padding: 0;
}

.platform-account-field {
  margin-bottom: 1rem;
}

.platform-account-field__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.platform-account-field__desc {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted, #5c6570);
  line-height: 1.4;
}

.platform-account-input {
  width: 100%;
  max-width: 22rem;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  font-size: 0.92rem;
  border: 1px solid var(--input-border, var(--border));
  border-radius: 8px;
  background: var(--input-bg, var(--bg));
  color: var(--text-shade1);
}

.platform-account-input--select {
  max-width: 16rem;
}

.platform-account-input--area {
  max-width: 36rem;
  min-height: 6rem;
  resize: vertical;
  font-family: inherit;
}

.platform-account-input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.platform-account-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.platform-account-save {
  border: 1px solid transparent;
  background: var(--link-shade1);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}

.platform-account-save:hover:not(:disabled) {
  opacity: 0.88;
}

.platform-account-save:disabled {
  opacity: 0.6;
  cursor: wait;
}

.platform-account-save--secondary {
  background: var(--bg-shade2);
  color: var(--text-shade1);
}

.platform-account-meta {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted, #5c6570);
}

.platform-account-meta--warn {
  color: var(--text-shade2);
}

.platform-account-subsection {
  margin: 0 0 1.35rem;
  padding: 0 0 1.1rem;
  border-bottom: 1px solid var(--border);
}

.platform-account-subsection:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.platform-account-subsection__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-shade1);
}

.platform-account-subsection__lead {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.platform-account-org-list,
.platform-account-team-list,
.platform-account-financial-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.platform-account-org-row,
.platform-account-team-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg, var(--bg));
}

.platform-account-org-row__name,
.platform-account-team-row__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-shade1);
}

.platform-account-org-row__meta,
.platform-account-team-row__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.platform-account-financial-stub .platform-account-financial-list {
  margin: 0.65rem 0 0.25rem;
  padding-left: 1.1rem;
  list-style: disc;
  display: block;
}

.platform-account-fin-balance {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.platform-account-fin-balance strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.platform-account-fin-history {
  list-style: none;
  margin: 0;
  padding: 0;
}

.platform-account-fin-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--platform-border-subtle, rgba(0, 0, 0, 0.08));
  font-size: 0.9rem;
}

.platform-account-fin-connect__actions {
  flex-wrap: wrap;
}

.platform-account-financial-stub .platform-account-financial-list li {
  font-size: 0.88rem;
  color: var(--text-shade2);
  margin: 0.2rem 0;
}

.platform-app-layer__body {
  margin: 0;
}

.platform-app-layer__sections {
  display: flex;
  flex-direction: column;
  margin-left: calc(-1 * var(--app-layer-pad, 1.5rem));
  margin-right: calc(-1 * var(--app-layer-pad, 1.5rem));
  width: calc(100% + 2 * var(--app-layer-pad, 1.5rem));
  max-width: none;
}

.platform-md-viewer__status,
.platform-md-viewer__error {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.platform-md-viewer__error {
  color: var(--danger, #b42318);
}

.platform-md-viewer__prose {
  max-width: 720px;
  line-height: 1.6;
  color: var(--text);
}

.platform-md-viewer__prose h1,
.platform-md-viewer__prose h2,
.platform-md-viewer__prose h3 {
  margin: 1.5rem 0 0.75rem;
  line-height: 1.25;
}

.platform-md-viewer__prose p,
.platform-md-viewer__prose ul,
.platform-md-viewer__prose ol {
  margin: 0 0 1rem;
}

.platform-md-viewer__prose a {
  color: var(--accent, #0b6bcb);
}

.platform-md-viewer__prose--hidden {
  display: none;
}

.platform-md-viewer__actions {
  margin: 0 0 1rem;
}

.platform-md-viewer__open-editor {
  font: inherit;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-shade2, var(--bg));
  color: var(--text);
}

.platform-code-editor__status,
.platform-code-editor__error {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.platform-code-editor__error {
  color: var(--danger, #b42318);
}

.platform-code-editor__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.platform-code-editor__path {
  font-family: ui-monospace, monospace;
  flex: 1 1 auto;
  min-width: 12rem;
}

.platform-code-editor__save {
  font: inherit;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-shade2, var(--bg));
  color: var(--text);
}

.platform-code-editor__save:disabled {
  opacity: 0.6;
  cursor: wait;
}

.platform-code-editor__save-msg {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.platform-code-editor__save-msg--err {
  color: var(--danger, #b42318);
}

.platform-code-editor__frame {
  min-height: min(70vh, 640px);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-shade1, #fff);
}

.platform-code-editor__monaco {
  width: 100%;
  height: min(70vh, 640px);
}

.platform-app-layer[data-app-id='editor'] .platform-app-layer__body {
  display: flex;
  flex-direction: column;
  min-height: min(75vh, 820px);
}

.platform-editor-v2-mount-wrap,
.platform-editor-v2-mount {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: min(70vh, 760px);
  width: 100%;
}

.platform-editor-v2-host {
  flex: 1;
  min-height: min(68vh, 720px);
  width: 100%;
}

.platform-editor-v2__status {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

/* —— Static section templates (app canvas) —— */

.platform-static-section {
  min-height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
}

.platform-static-section:last-child {
  border-bottom: none;
}

.platform-static-section__inner {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.platform-static-section--breadcrumb-hero-logos .platform-static-section__inner,
.platform-static-section--breadcrumb-hero-logos-video .platform-static-section__inner {
  max-width: 880px;
}

.platform-static-logo-strip--below-cta {
  margin-top: 2.5rem;
}

.platform-static-section--eyebrow-title-paragraph,
.platform-static-section--eyebrow-title-paragraph-2col,
.platform-static-section--eyebrow-title-paragraph-3col {
  min-height: 400px;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.platform-static-section--eyebrow-title-paragraph .platform-static-section__inner {
  max-width: 720px;
  padding-left: 2rem;
  padding-right: 2rem;
}

.platform-static-section--eyebrow-title-paragraph-2col .platform-static-section__inner,
.platform-static-section--eyebrow-title-paragraph-3col .platform-static-section__inner {
  max-width: 1120px;
  padding-left: 2rem;
  padding-right: 2rem;
}

.platform-static-prose-grid {
  display: grid;
  gap: 2.75rem 2.25rem;
  align-items: start;
  width: 100%;
}

.platform-static-prose-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-static-prose-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-static-prose--module .platform-static-prose__title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 1rem;
}

.platform-static-prose--module .platform-static-prose__body {
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .platform-static-prose-grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .platform-static-prose-grid--2 {
    grid-template-columns: 1fr;
  }
}

.platform-static-section--cta-band {
  min-height: 400px;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.platform-static-section--cta-band .platform-static-section__inner {
  max-width: 640px;
  padding-left: 2rem;
  padding-right: 2rem;
}

.platform-static-cta-band {
  text-align: center;
  width: 100%;
}

.platform-static-cta-band__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.platform-static-cta-band__desc {
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 32rem;
}

.platform-static-cta-band__actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.platform-static-section--kpi-two-column,
.platform-static-section--quote-feature-split,
.platform-static-section--media-prose-split {
  min-height: 800px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.platform-static-section--kpi-two-column .platform-static-section__inner,
.platform-static-section--quote-feature-split .platform-static-section__inner,
.platform-static-section--media-prose-split .platform-static-section__inner {
  max-width: 1120px;
  padding-left: 2rem;
  padding-right: 2rem;
}

.platform-static-quote-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 3.5rem;
  align-items: center;
  width: 100%;
}

.platform-static-quote-split--reverse .platform-static-quote-split__narrative {
  order: 2;
}

.platform-static-quote-split--reverse .platform-static-quote-split__figure {
  order: 1;
}

.platform-static-quote-split__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.platform-static-quote-split__lede {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 38ch;
}

.platform-static-quote-split__figure {
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--border);
}

.platform-static-quote-split--reverse .platform-static-quote-split__figure {
  padding: 0 1.25rem 0 0;
  border-left: none;
  border-right: 3px solid var(--border);
}

.platform-static-quote-split__text {
  margin: 0;
  padding: 0;
}

.platform-static-quote-split__text p {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
}

.platform-static-quote-split__cite {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1.25rem;
  font-style: normal;
}

.platform-static-quote-split__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.platform-static-quote-split__role {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.platform-static-media-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 3.5rem;
  align-items: center;
  width: 100%;
}

.platform-static-media-split--reverse .platform-static-media-split__copy {
  order: 2;
}

.platform-static-media-split--reverse .platform-static-media-split__media {
  order: 1;
}

.platform-static-media-split__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.platform-static-media-split__body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 38ch;
}

.platform-static-media-split__media {
  width: 100%;
  min-width: 0;
}

.platform-static-media-split .platform-static-hero-video,
.platform-static-media-split .platform-static-hero-video--split {
  margin: 0;
}

.platform-static-media-split .platform-static-hero-video__player,
.platform-static-media-split .platform-static-hero-video--placeholder {
  max-height: min(38vh, 400px);
}

.platform-static-media-split__image-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-subtle);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.platform-static-media-split__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 800px) {
  .platform-static-media-split {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: start;
  }

  .platform-static-media-split--reverse .platform-static-media-split__copy,
  .platform-static-media-split--reverse .platform-static-media-split__media {
    order: unset;
  }

  .platform-static-media-split__body {
    max-width: none;
  }

  .platform-static-quote-split {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: start;
  }

  .platform-static-quote-split--reverse .platform-static-quote-split__narrative,
  .platform-static-quote-split--reverse .platform-static-quote-split__figure {
    order: unset;
  }

  .platform-static-quote-split__lede {
    max-width: none;
  }

  .platform-static-quote-split__figure {
    padding-left: 1rem;
  }

  .platform-static-quote-split--reverse .platform-static-quote-split__figure {
    padding-right: 1rem;
    padding-left: 0;
  }
}

.platform-static-kpi-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: start;
  width: 100%;
}

.platform-static-kpi-split__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.platform-static-kpi-split__lede {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 36ch;
}

.platform-static-kpi-split__metrics {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.platform-static-kpi-split__value {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.platform-static-kpi-split__label {
  margin: 0.5rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

@media (max-width: 800px) {
  .platform-static-kpi-split {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .platform-static-kpi-split__lede {
    max-width: none;
  }
}

.platform-static-prose__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted);
}

.platform-static-prose__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.platform-static-prose__body {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 100%;
}

.platform-static-hero-video {
  width: 100%;
  margin: 0 0 2rem;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-subtle);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.platform-static-hero-video__player {
  display: block;
  width: 100%;
  max-height: min(52vh, 520px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a0a0a;
}

.platform-static-hero-video--placeholder {
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-static-hero-video__placeholder-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.platform-static-hero__cta-row--after-video {
  margin-top: 0;
  margin-bottom: 2rem;
}

.platform-static-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.platform-static-breadcrumb__link {
  color: var(--text-muted);
  text-decoration: none;
}

.platform-static-breadcrumb__link:hover {
  color: var(--accent);
}

.platform-static-breadcrumb__current {
  color: var(--text);
}

.platform-static-breadcrumb__sep {
  color: var(--border);
  user-select: none;
}

.platform-static-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.platform-static-hero__desc {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 36rem;
}

.platform-static-hero__cta-row {
  margin: 0 0 3rem;
}

.platform-static-logo-strip {
  overflow: hidden;
  width: 100%;
  margin: 0 -1.5rem;
  padding: 1.25rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.platform-static-logo-strip__track {
  display: flex;
  width: max-content;
  animation: platform-logo-marquee 45s linear infinite;
}

.platform-static-logo-strip__track:hover {
  animation-play-state: paused;
}

@keyframes platform-logo-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.platform-static-logo-strip__list {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  margin: 0;
  padding: 0 1.75rem;
  list-style: none;
}

.platform-static-logo-strip__item {
  flex-shrink: 0;
}

.platform-static-logo-strip__wordmark {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.platform-static-logo-strip__img {
  max-height: 2rem;
  width: auto;
  opacity: 0.75;
}

.platform-static-section--link-card-grid .platform-static-section__inner {
  max-width: 1120px;
}

.platform-static-section-heading {
  margin: 0 0 1.75rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.platform-static-link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.platform-static-link-grid__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 7.5rem;
  padding: 1.25rem 1.35rem;
  border: none;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-static-link-grid__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.11);
}

.platform-static-link-grid__card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.platform-static-link-grid__card-label {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.platform-static-link-grid__card-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* —— UI primitives (buttons, cards, form fields) —— */

:root {
  --danger: #dc2626;
  --focus-ring: rgba(37, 99, 235, 0.22);
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.35rem;
  margin: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.platform-btn--sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.platform-btn--lg {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
}

.platform-btn--primary,
.platform-btn--accent,
.platform-static-cta {
  color: #fff;
  background: var(--link-shade1);
}

.platform-btn--primary:hover:not(:disabled),
.platform-btn--accent:hover:not(:disabled),
.platform-static-cta:hover {
  opacity: 0.88;
}

.platform-btn--secondary,
.platform-static-cta--secondary {
  color: var(--text);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border);
}

.platform-btn--secondary:hover:not(:disabled),
.platform-static-cta--secondary:hover {
  opacity: 1;
  background: var(--bg-subtle);
}

.platform-btn--ghost {
  color: var(--text);
  background: transparent;
}

.platform-btn--ghost:hover:not(:disabled) {
  background: var(--bg-subtle);
}

.platform-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.platform-btn:disabled,
.platform-btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
}

.platform-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.platform-card--elevated {
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.platform-card--outline {
  box-shadow: none;
}

.platform-card__header {
  padding: 1.25rem 1.35rem 0;
}

.platform-card__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.platform-card__subtitle {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.platform-card__body {
  padding: 1rem 1.35rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.platform-card__footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem 1.25rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.platform-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.platform-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.platform-input,
.platform-textarea,
.platform-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin: 0;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-shade1);
  background: var(--input-bg, var(--bg));
  border: 1px solid var(--input-border, var(--border));
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.platform-textarea {
  resize: vertical;
  min-height: 5rem;
}

.platform-input::placeholder,
.platform-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.platform-input:hover:not(:disabled):not(:focus),
.platform-textarea:hover:not(:disabled):not(:focus),
.platform-select:hover:not(:disabled):not(:focus) {
  border-color: var(--highlight-shade2);
}

.platform-input:focus-visible,
.platform-textarea:focus-visible,
.platform-select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.platform-input:disabled,
.platform-textarea:disabled,
.platform-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--bg-shade4);
}

.platform-field__hint {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.platform-field__error {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--danger);
}

.platform-field--error .platform-input,
.platform-field--error .platform-textarea,
.platform-field--error .platform-select {
  border-color: var(--danger);
}

.platform-field--error .platform-input:focus-visible,
.platform-field--error .platform-textarea:focus-visible,
.platform-field--error .platform-select:focus-visible {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.platform-static-section--ui-primitives-showcase {
  min-height: auto;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.platform-static-section--ui-primitives-showcase .platform-static-section__inner {
  max-width: 880px;
  padding-left: 2rem;
  padding-right: 2rem;
}

.platform-ui-showcase__title {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.platform-ui-showcase__block {
  margin-bottom: 2.5rem;
}

.platform-ui-showcase__block:last-child {
  margin-bottom: 0;
}

.platform-ui-showcase__label {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.platform-ui-showcase__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
  margin-bottom: 0.85rem;
}

.platform-ui-showcase__row:last-child {
  margin-bottom: 0;
}

.platform-ui-showcase__card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.platform-ui-showcase__form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 28rem;
}

.platform-ui-showcase__form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.25rem;
}

@media (max-width: 640px) {
  .platform-ui-showcase__card-row {
    grid-template-columns: 1fr;
  }
}

.platform-ui-showcase__row--align-center {
  align-items: center;
}

@keyframes platform-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Wave 3 — scroll reveal (opt-in: section.reveal or section.motion.reveal) */
.platform-reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.platform-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .platform-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@keyframes platform-segment-fill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.platform-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--bg-subtle);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: platform-spin 1s linear infinite;
}

.platform-spinner--sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.platform-spinner--lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .platform-spinner {
    animation: none;
    border-top-color: var(--text-muted);
  }
}

.platform-btn--on-dark {
  background: #fff;
  color: var(--text);
}

.platform-btn--on-dark:hover {
  opacity: 0.92;
}

.platform-static-section__inner--bleed {
  max-width: none;
  padding: 0;
  width: 100%;
}

.platform-static-section--photo-bleed-band {
  min-height: 0;
  padding: 0;
  border-bottom: none;
}

.platform-photo-bleed {
  position: relative;
  width: 100%;
  min-height: min(72vh, 640px);
  background-color: #1a1d21;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.platform-photo-bleed__scrim {
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
}

.platform-photo-bleed__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 2rem;
  color: #fff;
}

.platform-photo-bleed__eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.platform-photo-bleed__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.platform-photo-bleed__desc {
  margin: 0 0 1.5rem;
  max-width: 40ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.platform-static-section--photo-contained-overlay,
.platform-static-section--stats-row,
.platform-static-section--feature-icon-list,
.platform-static-section--faq-list,
.platform-static-section--purchase-pricing-grid,
.platform-static-section--timed-media-deck {
  min-height: 400px;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.platform-static-section--photo-contained-overlay .platform-static-section__inner,
.platform-static-section--stats-row .platform-static-section__inner,
.platform-static-section--feature-icon-list .platform-static-section__inner,
.platform-static-section--faq-list .platform-static-section__inner,
.platform-static-section--purchase-pricing-grid .platform-static-section__inner,
.platform-static-section--timed-media-deck .platform-static-section__inner {
  max-width: 1120px;
  padding-left: 2rem;
  padding-right: 2rem;
}

.platform-photo-card {
  position: relative;
  min-height: min(52vh, 480px);
  border-radius: 16px;
  overflow: hidden;
  background-color: #1a1d21;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: flex-end;
}

.platform-photo-card__scrim {
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
}

.platform-photo-card__content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
  color: #fff;
  width: 100%;
}

.platform-photo-card__eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.platform-photo-card__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.platform-photo-card__desc {
  margin: 0 0 1.25rem;
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.platform-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  width: 100%;
}

.platform-stats-row__value {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.platform-stats-row__label {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
}

.platform-feature-list__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
}

.platform-feature-list__lede {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: 48ch;
}

.platform-feature-list__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.platform-feature-list__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.platform-feature-list__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 1rem;
}

.platform-feature-list__item-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.platform-feature-list__item-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.platform-faq {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 40rem;
}

.platform-faq__item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 1rem;
  background: var(--bg);
}

.platform-faq__question {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
}

.platform-faq__question::-webkit-details-marker {
  display: none;
}

.platform-faq__answer {
  padding: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.platform-purchase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.platform-purchase-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
}

.platform-purchase-card--featured {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.12);
}

.platform-purchase-card__cap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
}

.platform-purchase-card__cap img,
.platform-purchase-card__cap--bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.platform-purchase-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.platform-purchase-card__badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.platform-purchase-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.platform-purchase-card__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.platform-purchase-card__price {
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
}

.platform-purchase-card__compare {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.platform-purchase-card__currency {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.platform-purchase-card__amount {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.platform-purchase-card__period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.platform-purchase-card__nested {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.platform-purchase-card__nested-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.platform-purchase-card__features {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
}

.platform-purchase-card__cta {
  margin-top: 0.75rem;
}

.platform-timed-deck__stage {
  margin-top: 1.5rem;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.platform-timed-deck__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.platform-timed-deck__image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.platform-timed-deck__copy {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.platform-timed-deck__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.platform-timed-deck__desc {
  margin: 0;
  line-height: 1.55;
  color: var(--text-muted);
}

.platform-segment-bar {
  display: flex;
  gap: 6px;
  width: 100%;
}

.platform-segment-bar__segment {
  flex: 1;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.platform-segment-bar__track {
  display: block;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.platform-segment-bar__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 960px) {
  .platform-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-purchase-grid {
    grid-template-columns: 1fr;
  }

  .platform-timed-deck__panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .platform-stats-row {
    grid-template-columns: 1fr;
  }
}

/* —— Wave 2 sections —— */

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

.platform-static-section--announcement-bar {
  min-height: 0;
  padding: 0;
  border-bottom: none;
}

.platform-announcement-bar {
  width: 100%;
  background: var(--text);
  color: #fff;
}

.platform-announcement-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.65rem 2rem;
  box-sizing: border-box;
}

.platform-announcement-bar__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: center;
}

.platform-announcement-bar__link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.platform-announcement-bar__dismiss {
  flex-shrink: 0;
  margin: 0;
  padding: 0.25rem 0.5rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}

.platform-announcement-bar__dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
}

.platform-static-section--section-divider {
  min-height: auto;
  padding: 0.75rem 0;
}

.platform-static-section--section-divider .platform-static-section__inner {
  max-width: 1120px;
}

.platform-section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.platform-section-divider::before,
.platform-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.platform-static-section--logo-wall,
.platform-static-section--compare-columns,
.platform-static-section--footer-strip,
.platform-static-section--empty-state,
.platform-static-section--newsletter-band,
.platform-static-section--testimonial-carousel,
.platform-static-section--team-avatar-row {
  min-height: auto;
  padding: 2rem 0;
}

.platform-static-section--logo-wall .platform-static-section__inner,
.platform-static-section--compare-columns .platform-static-section__inner,
.platform-static-section--footer-strip .platform-static-section__inner,
.platform-static-section--empty-state .platform-static-section__inner,
.platform-static-section--newsletter-band .platform-static-section__inner,
.platform-static-section--testimonial-carousel .platform-static-section__inner,
.platform-static-section--team-avatar-row .platform-static-section__inner {
  max-width: 1120px;
  padding-left: 2rem;
  padding-right: 2rem;
}

.platform-logo-wall__lede {
  margin: -0.75rem 0 1.5rem;
  color: var(--text-muted);
  max-width: 48ch;
}

.platform-logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.platform-logo-wall__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
}

.platform-logo-wall__wordmark {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.platform-logo-wall__img {
  max-height: 2.25rem;
  width: auto;
  max-width: 100%;
  opacity: 0.8;
}

.platform-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.platform-compare-col {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.25rem;
  background: var(--bg);
}

.platform-compare-col--highlight {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.platform-compare-col__badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.platform-compare-col__title {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.platform-compare-col__subtitle {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.platform-compare-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.platform-compare-col__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.platform-compare-col__label {
  color: var(--text-muted);
}

.platform-compare-col__cta {
  margin: 1rem 0 0;
}

.platform-footer-strip {
  text-align: center;
  padding-top: 0.5rem;
}

.platform-footer-strip__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.platform-footer-strip__link {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
}

.platform-footer-strip__link:hover {
  color: var(--accent);
}

.platform-footer-strip__copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.platform-empty-state {
  text-align: center;
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 0;
}

.platform-empty-state__icon {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.platform-empty-state__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.platform-empty-state__desc {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.platform-newsletter {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.platform-newsletter__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
}

.platform-newsletter__desc {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.platform-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: flex-start;
}

.platform-newsletter__field {
  flex: 1 1 14rem;
  max-width: 20rem;
  margin: 0;
}

.platform-testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.platform-testimonial-card {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.platform-testimonial-card__text {
  margin: 0 0 1rem;
  padding: 0;
}

.platform-testimonial-card__text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  font-style: italic;
}

.platform-testimonial-card__name {
  font-size: 0.9rem;
  font-weight: 600;
}

.platform-testimonial-card__role {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.platform-team-row__lede {
  margin: -0.5rem 0 1.5rem;
  color: var(--text-muted);
}

.platform-team-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.platform-team-row__member {
  text-align: center;
}

.platform-team-row__avatar-wrap {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-team-row__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-team-row__initials {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.platform-team-row__name {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.platform-team-row__role {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .platform-compare-grid,
  .platform-testimonial-row {
    grid-template-columns: 1fr;
  }

  .platform-team-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

