:root {
  --bg: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --surface-dark: #1d1d1f;
  --red: #0071e3;
  --green: #34c759;
  --yellow: #ffd60a;
  --blue: #0071e3;
  --active-tint: linear-gradient(135deg, rgba(0, 113, 227, 0.16), rgba(52, 199, 89, 0.13) 52%, rgba(255, 214, 10, 0.18));
  --active-tint-strong: linear-gradient(135deg, rgba(0, 113, 227, 0.2), rgba(52, 199, 89, 0.16) 52%, rgba(255, 214, 10, 0.2));
  --active-fg: #075ca8;
  --active-border: rgba(0, 113, 227, 0.24);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
}

/* Intelligence Agent */
.agent-page {
  width: min(1460px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 120px;
}

.agent-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line, #2b3039);
}

.agent-hero h1 {
  max-width: 840px;
  margin: 10px 0 18px;
  color: #f5f5f7;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.agent-hero > div > p:last-child {
  margin: 0;
  color: #9a9da6;
  font-size: 18px;
}

.agent-data-stats {
  display: grid;
  gap: 12px;
  min-width: 240px;
}

.agent-data-stats span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  color: #858993;
  font-size: 13px;
}

.agent-data-stats strong {
  color: #f5f5f7;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.agent-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding: 12px 12px 12px 22px;
  background: #181b20;
  border: 1px solid #30343c;
  border-radius: 8px;
}

.agent-search label {
  color: #7f8490;
  font-size: 12px;
  text-transform: uppercase;
}

.agent-search input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  color: #f5f5f7;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 17px;
}

.agent-search button {
  min-height: 44px;
  padding: 0 24px;
  color: #fff;
  background: #0a84ff;
  border: 0;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
}

.agent-search button:hover,
.agent-search button:focus-visible {
  background: #2997ff;
}

.agent-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 40px;
}

.agent-suggestions button {
  padding: 8px 12px;
  color: #a9adb6;
  background: transparent;
  border: 1px solid #30343c;
  border-radius: 999px;
  cursor: pointer;
}

.agent-suggestions button:hover,
.agent-suggestions button:focus-visible {
  color: #f5f5f7;
  border-color: #0a84ff;
}

.agent-policy {
  margin: -20px 0 32px;
  color: #8e939e;
  font-size: 13px;
}

.agent-policy.is-blocked {
  color: #ff9f0a;
}

.agent-featured {
  padding: 40px 0 52px;
  border-top: 1px solid #2b3039;
  border-bottom: 1px solid #2b3039;
}

.agent-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #0a84ff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.agent-result-head small {
  color: #7f8490;
  font-weight: 500;
}

.agent-featured > h2 {
  max-width: 940px;
  margin: 16px 0 12px;
  color: #f5f5f7;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.agent-featured > p {
  max-width: 860px;
  margin: 0 0 36px;
  color: #a1a5ae;
  font-size: 17px;
  line-height: 1.7;
}

.agent-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #30343c;
  border-bottom: 1px solid #30343c;
}

.agent-matrix-cell {
  min-height: 230px;
  padding: 26px;
  border-right: 1px solid #30343c;
}

.agent-matrix-cell:last-child {
  border-right: 0;
}

.agent-matrix-cell span,
.agent-readout span {
  color: #0a84ff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.agent-matrix-cell strong {
  display: block;
  margin-top: 22px;
  color: #f5f5f7;
  font-size: 22px;
}

.agent-matrix-cell p {
  min-height: 70px;
  margin: 12px 0 18px;
  color: #a1a5ae;
  line-height: 1.6;
}

.agent-matrix-cell small {
  color: #6f7580;
}

.agent-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  margin-top: 40px;
}

.agent-readout p {
  position: relative;
  margin: 15px 0 0;
  padding-left: 18px;
  color: #b6bac2;
  line-height: 1.65;
}

.agent-readout p::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  background: #0a84ff;
  border-radius: 50%;
}

.agent-related {
  padding-top: 64px;
}

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

.agent-result-card {
  min-width: 0;
  padding: 24px;
  background: #181b20;
  border: 1px solid #2f343d;
  border-radius: 8px;
}

.agent-result-card h3 {
  margin: 22px 0 10px;
  color: #f5f5f7;
  font-size: 21px;
  line-height: 1.3;
}

.agent-result-card > p {
  min-height: 76px;
  margin: 0 0 24px;
  color: #9297a1;
  line-height: 1.6;
}

.agent-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: #30343c;
  border: 1px solid #30343c;
}

.agent-metrics div {
  padding: 14px;
  background: #14171b;
}

.agent-metrics dt {
  color: #747985;
  font-size: 11px;
}

.agent-metrics dd {
  margin: 6px 0 0;
  color: #f5f5f7;
  font-size: 20px;
  font-weight: 700;
}

.agent-caveat {
  min-height: 0 !important;
  margin-top: 14px !important;
  font-size: 12px;
}

.agent-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.agent-keywords span,
.agent-case-actions span {
  padding: 6px 8px;
  color: #aeb2bb;
  background: #242830;
  border-radius: 4px;
  font-size: 12px;
}

.agent-case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.agent-case-actions a {
  margin-left: auto;
  color: #0a84ff;
  font-size: 13px;
}

.agent-empty {
  padding: 64px 0;
  border-top: 1px solid #30343c;
}

.agent-empty strong {
  color: #f5f5f7;
  font-size: 24px;
}

.agent-empty p {
  color: #9398a2;
}

@media (max-width: 980px) {
  .agent-page {
    width: min(100% - 32px, 760px);
    padding-top: 48px;
  }

  .agent-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .agent-data-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .agent-data-stats span {
    display: grid;
    gap: 4px;
  }

  .agent-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-matrix-cell:nth-child(2) {
    border-right: 0;
  }

  .agent-matrix-cell:nth-child(-n + 2) {
    border-bottom: 1px solid #30343c;
  }

  .agent-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .agent-page {
    width: calc(100% - 28px);
    padding: 32px 0 88px;
  }

  .agent-hero h1 {
    font-size: 42px;
  }

  .agent-data-stats {
    grid-template-columns: 1fr;
  }

  .agent-data-stats span {
    display: flex;
  }

  .agent-search {
    grid-template-columns: 1fr auto;
    padding-left: 14px;
  }

  .agent-search label {
    grid-column: 1 / -1;
    padding-top: 4px;
  }

  .agent-suggestions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .agent-suggestions button {
    flex: 0 0 auto;
  }

  .agent-matrix,
  .agent-readout,
  .agent-result-grid {
    grid-template-columns: 1fr;
  }

  .agent-matrix-cell,
  .agent-matrix-cell:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #30343c;
  }

  .agent-matrix-cell:last-child {
    border-bottom: 0;
  }

  .agent-matrix-cell p {
    min-height: 0;
  }

  .agent-readout {
    gap: 36px;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color: var(--fg);
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-body);
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.global-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 260px minmax(280px, 460px) 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  padding: 16px 28px;
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--surface);
  background: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.brand small:only-child {
  margin-top: 0;
}

.global-search {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface);
}

.global-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.global-search input {
  min-width: 0;
  border: 0;
  color: var(--fg);
  background: transparent;
  outline: 0;
}

.platform-nav,
.main-nav,
.hero-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.platform-nav {
  justify-content: center;
}

.platform-pill,
.chip,
.main-nav a,
.primary-action,
.secondary-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  background: var(--surface);
  font-size: 13px;
  font-weight: 750;
}

.platform-pill,
.chip,
.main-nav a {
  min-height: 34px;
  padding: 8px 13px;
}

.platform-pill.is-active,
.chip.is-active,
.main-nav a.is-active {
  border-color: var(--active-border);
  color: var(--active-fg);
  background: var(--active-tint);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58), 0 8px 18px rgba(0, 113, 227, 0.08);
}

.main-nav {
  justify-content: flex-end;
}

.app-main {
  width: min(1520px, calc(100% - 56px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 680;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.08;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

p {
  line-height: 1.58;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

@keyframes split-rise {
  from {
    opacity: 0;
    transform: translateY(42px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tile-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 0.92fr) minmax(420px, 0.78fr);
  gap: 38px;
  align-items: center;
  min-height: 760px;
  padding: 50px 0 46px;
  isolation: isolate;
}

.home-hero::before {
  position: absolute;
  inset: 18px -24px 18px;
  z-index: -2;
  content: "";
  background:
    linear-gradient(120deg, rgba(0, 113, 227, 0.08), rgba(255, 255, 255, 0) 42%),
    linear-gradient(300deg, rgba(52, 199, 89, 0.08), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 245, 247, 0));
}

.home-hero::after {
  position: absolute;
  inset: 0 -24px;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(29, 29, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 31, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 68%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  color: var(--fg);
  max-width: 780px;
}

.hero-copy h1,
.hero-copy p {
  color: inherit;
}

.home-hero h1 {
  font-size: clamp(42px, 4.55vw, 64px);
  line-height: 1.02;
}

.home-hero h1 span {
  display: inline;
}

.hero-title {
  max-width: 820px;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-title .split-line {
  display: block;
  overflow: hidden;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}

.split-char {
  display: inline-block;
  opacity: 0;
  animation: split-rise 820ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 36ms);
  will-change: transform, opacity;
}

.hero-lede {
  max-width: 680px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 17px;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 28px;
}

.hero-proof-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.primary-action,
.secondary-action {
  min-height: 42px;
  padding: 11px 18px;
}

.primary-action {
  border-color: var(--fg);
  color: var(--surface);
  background: var(--fg);
}

.secondary-action {
  background: transparent;
}

.secondary-action.small {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 12px;
}

.hero-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 168px;
  gap: 12px;
  align-items: stretch;
  max-height: 680px;
  transform: translateZ(0);
}

.preview-tile {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-dark);
  opacity: 0;
  animation: tile-rise 720ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(180ms + var(--tile-index, 0) * 70ms);
}

.preview-tile:nth-child(1),
.preview-tile:nth-child(4) {
  grid-row: span 2;
  min-height: 0;
}

.preview-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 420ms ease, opacity 420ms ease;
}

.preview-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.42));
}

.preview-tile:hover img {
  opacity: 1;
  transform: scale(1.035);
}

.preview-tile span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--surface);
  background: rgba(21, 22, 18, 0.78);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stat-row div {
  min-height: 110px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.stat-row div:last-child {
  border-right: 0;
}

.stat-row strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
}

.stat-row span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.section-block {
  padding-top: 62px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.text-link {
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lane-grid,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lane-card,
.topic-card {
  min-height: 162px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.lane-card:hover,
.topic-card:hover,
.case-card:hover {
  border-color: var(--fg);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.lane-card strong,
.topic-card strong {
  display: block;
  font-size: 18px;
}

.lane-card strong {
  margin-top: 0;
}

.topic-card strong {
  margin-top: 18px;
}

.lane-card small,
.topic-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.latest-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.library-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 34px;
}

.library-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
}

.library-count {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.library-count strong {
  font-family: var(--font-mono);
  font-size: 34px;
}

.library-count span {
  color: var(--muted);
  font-size: 12px;
}

.filter-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.filter-strip {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
}

.filter-strip > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.filter-strip > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-results {
  min-width: 0;
}

.case-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.case-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-dark);
}

.case-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-thumb span {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--surface);
  background: rgba(21, 22, 18, 0.82);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 850;
}

.case-card-body {
  display: grid;
  gap: 12px;
  min-height: 228px;
  padding: 18px;
}

.case-card.is-compact .case-card-body {
  min-height: 210px;
}

.meta-line,
.case-foot,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.meta-line span,
.case-foot span,
.detail-actions span,
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.case-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.case-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.case-foot {
  margin-top: auto;
  justify-content: space-between;
}

.case-foot span:first-child {
  border-color: color-mix(in srgb, var(--green) 55%, var(--line));
  color: var(--green);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 34px;
  color: var(--muted);
  background: var(--surface);
}

.detail-hero {
  padding: 26px 0 34px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-title {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1120px;
}

.brand-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  color: var(--surface);
  background: var(--surface-dark);
  font-family: var(--font-display);
  font-size: 42px;
}

.brand-avatar.has-logo {
  border: 1px solid var(--line);
  padding: 11px;
  color: var(--fg);
  background: var(--surface);
}

.brand-avatar.has-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-title h1 {
  max-width: 1050px;
  font-size: clamp(34px, 4.4vw, 62px);
}

.detail-title p {
  max-width: 840px;
  margin: 18px 0 16px;
  color: var(--muted);
  font-size: 16px;
}

.detail-actions {
  margin-top: 24px;
}

.detail-actions span {
  background: var(--surface);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
  padding-top: 34px;
}

.study-main,
.study-aside {
  min-width: 0;
}

.study-aside {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
}

.compare-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compare-media figure,
.single-media {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-dark);
}

.compare-media video,
.single-media video {
  display: block;
  width: 100%;
  max-height: 660px;
  object-fit: contain;
  background: var(--surface-dark);
}

.compare-media figcaption {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 14px;
  color: var(--surface);
  font-size: 13px;
  font-weight: 800;
}

.long-media {
  max-height: 720px;
  overflow: auto;
  background: var(--surface-soft);
}

.long-media img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-section-head {
  margin-top: 34px;
}

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

.step-card,
.insight-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.step-card {
  display: grid;
  grid-template-columns: 44px 62px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
}

.step-card span,
.step-card time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
}

.step-card span {
  color: var(--red);
}

.step-card time {
  color: var(--muted);
}

.step-card strong {
  min-width: 0;
}

.step-card p {
  grid-column: 3;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.insight-panel {
  padding: 18px;
}

.insight-panel h2 {
  font-size: 24px;
}

.analysis-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.analysis-list li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.analysis-list li::before {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.pattern-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.pattern-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--surface);
}

.pattern-list dt,
.pattern-list dd {
  margin: 0;
  font-size: 13px;
}

.pattern-list dt {
  color: var(--muted);
  font-weight: 800;
}

.prompt-panel {
  background: var(--surface-soft);
}

.prompt-panel p {
  margin: 16px 0 0;
  color: var(--fg);
  font-size: 14px;
}

.flow-detail-hero {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--line);
}

.flow-hero-grid {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: start;
}

.flow-hero-grid h1 {
  max-width: 980px;
  font-size: clamp(34px, 4vw, 58px);
}

.flow-hero-grid p {
  max-width: 820px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 16px;
}

.flow-meta-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.flow-meta-panel div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
}

.flow-meta-panel div:last-child {
  border-bottom: 0;
}

.flow-meta-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.flow-meta-panel strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}

.commerce-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: 26px;
}

.detail-jump-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 820px;
  margin-top: 14px;
}

.detail-jump-nav button {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--fg);
  background: var(--surface);
  text-align: left;
}

.detail-jump-nav span {
  font-size: 13px;
  font-weight: 850;
}

.detail-jump-nav strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commerce-tab {
  display: grid;
  gap: 4px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface);
  text-align: left;
}

.commerce-tab span {
  font-size: 14px;
  font-weight: 850;
}

.commerce-tab small {
  color: var(--muted);
  font-size: 12px;
}

.commerce-tab.is-active {
  border-color: var(--active-border);
  color: var(--active-fg);
  background: var(--active-tint);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58), 0 10px 22px rgba(0, 113, 227, 0.08);
}

.commerce-tab.is-active small {
  color: #386f9c;
}

.flow-workspace {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 28px;
}

.flow-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.flow-sidebar-head,
.side-insight,
.flow-video-section,
.selected-position {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.flow-sidebar-head {
  padding: 16px;
}

.flow-sidebar-head strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
}

.flow-sidebar-head span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.position-button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  text-align: left;
}

.position-button span,
.position-button time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 850;
}

.position-button span {
  color: var(--red);
}

.position-button strong,
.position-button small {
  grid-column: 2;
  display: block;
  min-width: 0;
}

.position-button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.position-button time {
  grid-column: 2;
  justify-self: start;
  color: var(--muted);
}

.position-button.is-active,
.chapter-button.is-active {
  border-color: var(--fg);
  box-shadow: 0 10px 24px rgba(21, 22, 18, 0.08);
}

.position-button.is-disabled,
.position-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.position-button.is-disabled time,
.position-button:disabled time {
  color: var(--red);
}

.side-insight {
  padding: 16px;
}

.side-insight strong,
.side-insight span {
  display: block;
}

.side-insight span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.flow-main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.flow-video-section {
  padding: 18px;
}

.flow-player-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.phone-frame {
  overflow: hidden;
  width: min(100%, 420px);
  border-radius: 28px;
  padding: 12px;
  background: #101112;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
}

.phone-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 720px;
  border-radius: 20px;
  object-fit: contain;
  background: #050505;
}

.video-notes {
  min-width: 0;
}

.video-notes h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.video-notes p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
}

.chapter-list {
  display: grid;
  gap: 8px;
  max-height: 604px;
  margin-top: 22px;
  overflow: auto;
  padding-right: 4px;
}

.chapter-button {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--surface-soft);
  text-align: left;
}

.chapter-button time {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
}

.chapter-button span,
.chapter-button strong,
.chapter-button small {
  display: block;
  min-width: 0;
}

.chapter-button small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.selected-position {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
}

.selected-position h2 {
  font-size: 30px;
}

.selected-position p {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--muted);
}

.small-action {
  white-space: nowrap;
}

.screens-section {
  min-width: 0;
}

.screen-count {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 14px;
}

.screenshot-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.screenshot-card:hover {
  border-color: var(--fg);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.screenshot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  object-fit: cover;
  object-position: top;
  background: var(--surface-soft);
}

.screenshot-card span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 850;
}

.screenshot-card strong,
.screenshot-card small {
  display: block;
  min-width: 0;
}

.screenshot-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.flow-analysis-section {
  min-width: 0;
}

.analysis-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.analysis-score-card,
.analysis-dimensions,
.analysis-metrics {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--fg);
  background: var(--surface);
}

.analysis-score-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.analysis-score-lockup {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.analysis-score-lockup strong {
  font-size: 48px;
  line-height: 1;
}

.analysis-score-lockup span,
.analysis-score-card small {
  color: var(--muted);
}

.analysis-score-card h3,
.analysis-score-card p {
  margin: 0;
}

.analysis-score-card h3 {
  font-size: 19px;
  line-height: 1.35;
}

.analysis-score-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.analysis-score-card small {
  font-size: 11px;
  line-height: 1.5;
}

.analysis-dimensions {
  display: grid;
  gap: 13px;
  align-content: start;
}

.analysis-dimension {
  display: grid;
  grid-template-columns: minmax(72px, 0.75fr) minmax(120px, 1.5fr) 52px;
  gap: 12px;
  align-items: center;
}

.analysis-dimension > span,
.analysis-dimension strong {
  font-size: 12px;
}

.analysis-dimension > div {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.analysis-dimension i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.analysis-dimension strong {
  text-align: right;
}

.analysis-dimension strong small {
  color: var(--muted);
  font-size: 10px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.analysis-card,
.prompt-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.analysis-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}

.analysis-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
}

.analysis-card p {
  margin: 0;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.58;
}

.analysis-card strong {
  font-size: 18px;
  line-height: 1.35;
}

.analysis-metrics {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.analysis-metrics > strong {
  font-size: 18px;
  line-height: 1.35;
}

.analysis-metrics > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.analysis-metrics > div span {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--fg);
  background: var(--active-tint);
  font-size: 12px;
  font-weight: 700;
}

.prompt-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.prompt-card strong {
  font-size: 18px;
  line-height: 1.35;
}

.prompt-card code {
  display: block;
  overflow: auto;
  border-radius: 8px;
  padding: 14px;
  color: var(--fg);
  background: var(--surface-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  white-space: normal;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 8, 8, 0.72);
}

.image-modal-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(980px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.image-modal-card img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--surface-soft);
}

.image-modal-card.is-long {
  width: min(760px, 100%);
}

.image-modal-card.is-long img {
  justify-self: center;
  width: min(520px, 100%);
  max-height: none;
  object-fit: contain;
  object-position: top;
}

.modal-close {
  position: sticky;
  top: 0;
  justify-self: end;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  background: var(--surface);
  font-size: 22px;
  line-height: 1;
}

.modal-caption {
  display: grid;
  gap: 6px;
}

.modal-caption span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Apple-inspired visual pass */
body {
  color: var(--fg);
  background:
    linear-gradient(180deg, #fbfbfd 0%, var(--bg) 340px, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.global-header {
  min-height: 72px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px 32px;
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: saturate(180%) blur(24px);
}

.brand {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 7px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.brand-mark img {
  filter: none;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.brand small {
  color: #86868b;
  font-size: 11px;
}

.global-search {
  height: 42px;
  border-color: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.global-search span {
  color: #86868b;
  font-size: 11px;
  font-weight: 700;
}

.platform-pill,
.chip,
.main-nav a,
.primary-action,
.secondary-action {
  border-color: rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 650;
}

.platform-pill.is-active,
.chip.is-active,
.main-nav a.is-active {
  border-color: rgba(0, 113, 227, 0.22);
  color: #075ca8;
  background: var(--active-tint);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62), 0 10px 24px rgba(0, 113, 227, 0.1);
}

.primary-action {
  border-color: #0071e3;
  color: #fff;
  background: #0071e3;
  box-shadow: 0 10px 22px rgba(0, 113, 227, 0.22);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.42);
}

.app-main {
  width: min(1560px, calc(100% - 64px));
  padding-top: 42px;
}

.eyebrow {
  color: #0071e3;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

h1 {
  line-height: 1.02;
}

h2 {
  line-height: 1.1;
}

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

.home-hero {
  min-height: 720px;
  gap: 58px;
  padding-top: 62px;
  padding-bottom: 56px;
}

.home-hero h1 {
  font-size: clamp(48px, 5.6vw, 84px);
  letter-spacing: 0;
}

.hero-title {
  max-width: 980px;
  font-weight: 520;
}

.hero-title .split-line:last-child .split-char {
  color: #075ca8;
}

.hero-eyebrow {
  display: inline-flex;
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-lede {
  max-width: 760px;
  color: #6e6e73;
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.42;
}

.hero-proof-row span {
  border-color: rgba(0, 0, 0, 0.08);
  color: #515154;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hero-board {
  grid-auto-rows: 174px;
  gap: 12px;
  filter: drop-shadow(0 30px 68px rgba(0, 0, 0, 0.16));
}

.preview-tile {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.preview-tile:nth-child(2),
.preview-tile:nth-child(6) {
  margin-top: 22px;
}

.preview-tile:nth-child(3) {
  margin-top: 48px;
}

.preview-tile span {
  background: rgba(29, 29, 31, 0.72);
  backdrop-filter: blur(16px);
}

.preview-tile,
.case-card,
.lane-card,
.topic-card,
.library-count,
.empty-state,
.flow-meta-panel,
.detail-jump-nav button,
.flow-sidebar-head,
.side-insight,
.flow-video-section,
.selected-position,
.analysis-card,
.prompt-card,
.step-card,
.insight-panel,
.commerce-tab,
.position-button,
.chapter-button,
.screenshot-card,
.stat-row,
.filter-panel,
.detail-actions span,
.tag {
  border-color: rgba(0, 0, 0, 0.08);
}

.preview-tile,
.case-card,
.lane-card,
.topic-card,
.library-count,
.empty-state,
.flow-meta-panel,
.detail-jump-nav button,
.flow-sidebar-head,
.side-insight,
.flow-video-section,
.selected-position,
.analysis-card,
.prompt-card,
.step-card,
.insight-panel,
.commerce-tab,
.position-button,
.chapter-button,
.screenshot-card {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.lane-card:hover,
.topic-card:hover,
.case-card:hover,
.screenshot-card:hover,
.detail-jump-nav button:hover {
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
}

.stat-row {
  background: rgba(255, 255, 255, 0.78);
}

.stat-row div {
  border-color: rgba(0, 0, 0, 0.08);
}

.stat-row strong,
.library-count strong {
  font-family: var(--font-display);
  font-weight: 700;
}

.filter-panel {
  background: rgba(0, 0, 0, 0.08);
}

.filter-strip {
  background: rgba(255, 255, 255, 0.82);
}

.case-thumb,
.single-media,
.compare-media figure {
  background: #1d1d1f;
}

.case-card-body {
  background: #fff;
}

.meta-line span,
.case-foot span,
.detail-actions span,
.tag,
.screen-count {
  border-color: rgba(0, 0, 0, 0.08);
  color: #6e6e73;
  background: rgba(255, 255, 255, 0.72);
}

.case-foot span:first-child {
  border-color: rgba(52, 199, 89, 0.28);
  color: #248a3d;
}

.flow-detail-hero,
.detail-hero {
  padding-top: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.flow-detail-hero {
  padding-top: 22px;
  padding-bottom: 16px;
}

.back-link,
.text-link {
  color: #0071e3;
  border-bottom-color: currentColor;
}

.brand-avatar {
  border-radius: 8px;
  background: #1d1d1f;
  font-family: var(--font-display);
  font-weight: 700;
}

.brand-avatar.has-logo {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.flow-hero-grid h1,
.detail-title h1 {
  max-width: 1100px;
  font-size: clamp(44px, 5.2vw, 78px);
  line-height: 1.03;
}

.flow-hero-grid h1 {
  max-width: 880px;
  font-size: clamp(36px, 3.6vw, 56px);
  text-wrap: balance;
}

.flow-hero-grid p,
.detail-title p {
  max-width: 860px;
  color: #6e6e73;
  font-size: 18px;
  line-height: 1.48;
}

.flow-hero-grid p {
  margin: 12px 0;
  font-size: 17px;
}

.commerce-tabs {
  max-width: 680px;
  margin-top: 18px;
}

.flow-meta-panel div {
  border-color: rgba(0, 0, 0, 0.08);
}

.flow-meta-panel span,
.detail-jump-nav strong,
.flow-sidebar-head span {
  color: #6e6e73;
}

.detail-jump-nav button {
  min-height: 50px;
}

.commerce-tab {
  min-height: 64px;
  padding: 14px 16px;
}

.commerce-tab span {
  font-size: 15px;
  font-weight: 700;
}

.commerce-tab.is-active {
  border-color: rgba(0, 113, 227, 0.24);
  color: #075ca8;
  background: var(--active-tint-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62), 0 14px 30px rgba(0, 113, 227, 0.12);
}

.flow-workspace {
  gap: 28px;
  padding-top: 16px;
}

.flow-sidebar {
  top: 98px;
}

.flow-sidebar-head strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.position-button {
  min-height: 76px;
  padding: 12px;
}

.position-button span,
.position-button time,
.chapter-button time,
.screenshot-card span,
.step-card span,
.step-card time {
  font-family: var(--font-body);
  font-weight: 700;
}

.position-button span,
.chapter-button time,
.screenshot-card span,
.step-card span {
  color: #0071e3;
}

.position-button.is-active,
.chapter-button.is-active {
  border-color: rgba(0, 113, 227, 0.52);
  background: #f5faff;
  box-shadow: 0 12px 26px rgba(0, 113, 227, 0.1);
}

.side-insight span,
.chapter-button small,
.screenshot-card small,
.selected-position p,
.analysis-card span {
  color: #6e6e73;
}

.analysis-card span {
  color: #0071e3;
}

.analysis-card p,
.prompt-card code {
  color: #1d1d1f;
}

.prompt-card code {
  background: #f5f5f7;
}

.flow-video-section {
  padding: 20px;
}

.phone-frame {
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(180deg, #2c2c2e, #0b0b0c);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.phone-frame video {
  border-radius: 26px;
}

.video-notes h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.04;
}

.video-notes p {
  color: #6e6e73;
  font-size: 16px;
  line-height: 1.52;
}

.chapter-button {
  background: #f5f5f7;
}

.selected-position h2 {
  font-size: 34px;
  line-height: 1.08;
}

.screenshot-grid {
  gap: 16px;
}

.screenshot-card {
  padding: 12px;
}

.screenshot-card img {
  border-radius: 8px;
  background: #f5f5f7;
}

.image-modal {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(18px);
}

.image-modal-card {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.modal-close {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

@media (max-width: 1180px) {
  .global-header {
    grid-template-columns: 240px minmax(240px, 1fr) auto;
  }

  .platform-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .main-nav {
    justify-content: flex-end;
  }

  .home-hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .flow-hero-grid {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .flow-meta-panel {
    grid-column: 1 / -1;
  }

  .flow-workspace,
  .flow-player-grid {
    grid-template-columns: 1fr;
  }

  .flow-sidebar {
    position: static;
  }

  .position-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .study-aside {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lane-grid,
  .topic-grid,
  .latest-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .global-header {
    position: static;
    grid-template-columns: 1fr;
    width: 100vw;
    max-width: 100vw;
    padding: 16px;
  }

  .main-nav,
  .platform-nav {
    justify-content: flex-start;
  }

  .app-main {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 18px 16px 72px;
  }

  .home-hero,
  .library-hero,
  .detail-hero,
  .detail-layout,
  .section-block,
  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .home-hero {
    min-height: 0;
    padding-top: 24px;
  }

  .home-hero h1,
  .detail-title h1,
  .flow-hero-grid h1,
  .library-hero h1 {
    font-size: 36px;
    line-height: 1.08;
    word-break: break-all;
  }

  .home-hero h1 span {
    display: block;
  }

  .hero-lede,
  .library-hero p,
  .flow-hero-grid p,
  .detail-title p {
    font-size: 15px;
    max-width: 22em;
    word-break: break-all;
  }

  .detail-title h1,
  .flow-hero-grid h1,
  .library-hero h1 {
    max-width: 10em;
  }

  .hero-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-tile,
  .preview-tile:nth-child(1),
  .preview-tile:nth-child(4) {
    grid-row: auto;
    min-height: 190px;
  }

  .stat-row,
  .lane-grid,
  .topic-grid,
  .latest-grid,
  .case-grid,
  .commerce-tabs,
  .detail-jump-nav,
  .flow-hero-grid,
  .position-list,
  .compare-media,
  .step-grid,
  .study-aside,
  .analysis-overview,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .analysis-dimension {
    grid-template-columns: 82px minmax(90px, 1fr) 48px;
    gap: 8px;
  }

  .flow-meta-panel {
    grid-column: auto;
  }

  .flow-meta-panel div {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .flow-workspace {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .flow-player-grid {
    grid-template-columns: 1fr;
  }

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

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

  .selected-position h2 {
    font-size: 26px;
  }

  .chapter-list {
    max-height: none;
    overflow: visible;
  }

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

  .stat-row div {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-row div:last-child {
    border-bottom: 0;
  }

  .library-hero,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-count {
    width: 100%;
    height: auto;
    place-items: start;
    padding: 18px;
  }

  .filter-strip {
    grid-template-columns: 1fr;
  }

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

  .filter-strip .chip {
    width: 100%;
    text-align: center;
  }

  .detail-title {
    grid-template-columns: 1fr;
  }

  .brand-avatar {
    width: 64px;
    height: 64px;
    font-size: 30px;
  }

  .brand-avatar.has-logo {
    padding: 8px;
  }

  .step-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .step-card strong {
    grid-column: 2;
  }

  .step-card p {
    grid-column: 1 / -1;
  }
}

/* Database product shell v3.1 */
.global-header {
  grid-template-columns: minmax(190px, 1fr) auto minmax(250px, 420px);
  gap: 22px;
  min-height: 72px;
  padding: 12px 32px;
}

.global-header .main-nav {
  flex-wrap: nowrap;
  justify-content: center;
}

.global-header .main-nav a {
  min-height: 36px;
  border-radius: 6px;
  padding: 9px 14px;
  white-space: nowrap;
}

.global-header .global-search {
  width: 100%;
  height: 42px;
}

.home-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.65fr);
  gap: 72px;
  align-items: end;
  min-height: 520px;
  border-bottom: 1px solid var(--line);
  padding: 78px 0 64px;
}

.home-version {
  display: block;
  margin-bottom: 24px;
  color: #64b5ff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.home-intro h1 {
  max-width: 860px;
  font-size: clamp(52px, 6.2vw, 92px);
  line-height: 0.98;
}

.home-intro > p {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.home-intro .hero-actions {
  margin-top: 34px;
}

.home-snapshot,
.library-summary,
.case-record-strip {
  margin: 0;
}

.home-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.home-snapshot div {
  min-height: 132px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px;
}

.home-snapshot dt,
.library-summary dt,
.case-record-strip dt {
  color: #747b86;
  font-size: 10px;
  font-weight: 750;
}

.home-snapshot dd,
.library-summary dd {
  margin: 12px 0 5px;
  color: var(--fg);
  font-size: 32px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.home-snapshot small,
.home-stat-row small {
  color: #747b86;
  font-size: 10px;
}

.home-stat-row {
  margin-top: 0;
}

.home-stat-row div {
  display: grid;
  gap: 5px;
  min-height: 126px;
  align-content: center;
}

.home-stat-row strong {
  font-size: clamp(28px, 3vw, 42px);
}

.home-latest-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.standard-lane-grid .lane-card {
  min-height: 128px;
}

.standard-lane-grid .lane-card > span {
  color: #747b86;
}

.home-matrix {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 52px 0;
}

.home-matrix-head {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
}

.home-matrix-head span,
.brand-library-strip > div:first-child span {
  display: block;
  margin-bottom: 10px;
  color: #64b5ff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.home-matrix-head h2 {
  font-size: clamp(28px, 3vw, 46px);
}

.home-matrix-head a {
  color: #64b5ff;
  font-size: 13px;
  font-weight: 750;
}

.home-matrix > p {
  max-width: 820px;
  margin: 18px 0 36px;
  color: var(--muted);
  line-height: 1.7;
}

.home-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.home-matrix-grid article {
  min-height: 210px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px;
}

.home-matrix-grid article > span,
.home-matrix-grid article small {
  color: #64b5ff;
  font-size: 10px;
}

.home-matrix-grid article strong {
  display: block;
  margin-top: 30px;
  font-size: 18px;
}

.home-matrix-grid article p {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.home-matrix-caveat {
  display: block;
  margin-top: 14px;
  color: #747b86;
  font-size: 11px;
}

.source-ledger {
  border-top: 1px solid var(--line);
}

.source-ledger article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 120px;
  gap: 24px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.source-ledger article strong {
  font-size: 14px;
}

.source-ledger article span,
.source-ledger article small {
  color: var(--muted);
  font-size: 12px;
}

.source-ledger article small {
  text-align: right;
}

.brand-library-strip {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding-top: 38px;
}

.brand-library-strip > div:first-child strong {
  display: block;
  font-size: 22px;
}

.asset-logo-wall.is-compact {
  width: 100%;
  margin: 28px 0 0;
  padding: 0;
}

.asset-logo-wall.is-compact .asset-logo-row:nth-child(n + 2) {
  display: none;
}

.asset-logo-wall.is-compact .asset-logo-tile {
  width: 72px;
  height: 72px;
  border-radius: 6px;
}

.library-standard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 64px 0 42px;
}

.library-standard-hero h1 {
  font-size: clamp(48px, 5vw, 72px);
}

.library-standard-hero p {
  max-width: 780px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
}

.library-summary {
  display: grid;
  grid-template-columns: repeat(3, 110px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.library-summary div {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.library-summary dd {
  margin: 8px 0 0;
  font-size: 24px;
}

.library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
  margin-top: 28px;
}

.library-toolbar label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 16px;
  background: var(--surface);
}

.library-toolbar span {
  color: #747b86;
  font-size: 10px;
  font-weight: 750;
}

.library-toolbar input,
.library-toolbar select {
  min-width: 0;
  border: 0;
  color: var(--fg);
  background: transparent;
  outline: 0;
  font: inherit;
  font-size: 13px;
}

.library-toolbar select {
  color-scheme: dark;
}

.library-standard-hero + .library-toolbar + .filter-panel {
  margin-top: 16px;
}

.filter-strip > span {
  width: 56px;
}

.case-results .section-head h2 span {
  color: #747b86;
  font-size: 14px;
  font-weight: 550;
}

.case-source {
  display: block;
  overflow: hidden;
  color: #747b86;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-record-strip {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr repeat(4, minmax(110px, 0.8fr));
  border-bottom: 1px solid var(--line);
}

.case-record-strip div {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 12px 16px;
}

.case-record-strip div:last-child {
  border-right: 0;
}

.case-record-strip dd {
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--fg);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-record-strip + .detail-jump-nav {
  border-top: 0;
}

@media (max-width: 1080px) {
  .home-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .home-snapshot {
    max-width: 720px;
  }

  .home-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-matrix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-record-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-record-strip div:nth-child(3) {
    border-right: 0;
  }

  .case-record-strip div:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .global-header {
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 10px;
    min-height: 0;
    padding: 10px 16px 12px;
  }

  .global-header .brand {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .global-header .brand-mark {
    width: 38px;
    height: 38px;
  }

  .global-header .brand small {
    display: none;
  }

  .global-header .main-nav {
    justify-content: flex-end;
  }

  .global-header .main-nav a {
    min-height: 32px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .global-header .global-search {
    grid-column: 1 / -1;
    height: 38px;
  }

  .home-overview {
    min-height: 0;
    padding: 48px 0 42px;
  }

  .home-intro h1 {
    font-size: clamp(42px, 13vw, 58px);
    line-height: 1.02;
  }

  .home-intro > p {
    margin-top: 20px;
    font-size: 15px;
  }

  .home-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-snapshot div {
    min-height: 108px;
    padding: 14px;
  }

  .home-snapshot dd {
    font-size: 26px;
  }

  .home-latest-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-matrix {
    margin-top: 56px;
    padding: 38px 0;
  }

  .home-matrix-head {
    display: block;
  }

  .home-matrix-head a {
    display: inline-block;
    margin-top: 16px;
  }

  .home-matrix-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-matrix-grid article {
    min-height: 0;
  }

  .source-ledger article {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 16px;
    padding: 13px 0;
  }

  .source-ledger article small {
    grid-column: 1 / -1;
    text-align: left;
  }

  .library-standard-hero {
    display: block;
    padding: 42px 0 30px;
  }

  .library-standard-hero h1 {
    font-size: 48px;
  }

  .library-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
  }

  .library-summary div {
    padding: 10px;
  }

  .library-summary dd {
    font-size: 20px;
  }

  .library-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-strip > span {
    width: 100%;
  }

  .filter-strip > div {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filter-strip .chip {
    flex: 0 0 auto;
    width: auto;
  }

  .case-record-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-record-strip div,
  .case-record-strip div:nth-child(3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .case-record-strip div:nth-child(2n) {
    border-right: 0;
  }

  .case-record-strip div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .global-header {
    gap: 12px;
    padding: 14px 16px;
    background: rgba(251, 251, 253, 0.9);
  }

  .app-main {
    padding-top: 24px;
  }

  .home-hero h1,
  .detail-title h1,
  .flow-hero-grid h1,
  .library-hero h1 {
    max-width: 100%;
    font-size: 42px;
    line-height: 1.08;
    word-break: normal;
  }

  .hero-lede,
  .library-hero p,
  .flow-hero-grid p,
  .detail-title p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.5;
    word-break: normal;
  }

  .commerce-tab,
  .position-button,
  .chapter-button,
  .selected-position,
  .flow-video-section,
  .flow-sidebar-head,
  .side-insight,
  .screenshot-card,
  .case-card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  .phone-frame {
    width: min(100%, 332px);
    border-radius: 32px;
  }

  .phone-frame video {
    border-radius: 22px;
  }

  .video-notes h2 {
    font-size: 34px;
  }

  .selected-position h2 {
    font-size: 28px;
  }

  .image-modal {
    padding: 14px;
  }
}

@media (max-width: 760px) {
  .home-hero {
    padding-top: 34px;
    padding-bottom: 38px;
  }

  .home-hero h1.hero-title {
    font-size: 44px;
    line-height: 1.04;
  }

  .hero-title .split-line {
    display: block;
    margin-bottom: 2px;
  }

  .home-hero h1.hero-title .split-char {
    display: inline-block;
  }

  .hero-proof-row {
    margin-top: -4px;
    margin-bottom: 24px;
  }

  .hero-proof-row span {
    padding: 6px 10px;
    font-size: 11px;
  }

  .hero-board {
    grid-auto-rows: 184px;
    gap: 12px;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.12));
  }

  .preview-tile:nth-child(2),
  .preview-tile:nth-child(3),
  .preview-tile:nth-child(6) {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .split-char,
  .preview-tile {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .preview-tile img {
    transition: none;
  }
}

/* Evolvion-inspired experimental pass */
@keyframes flow-gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes shine-sweep {
  0% {
    background-position: 180% 0;
  }

  100% {
    background-position: -180% 0;
  }
}

@keyframes hero-card-drift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

body {
  color: #f7f7ff;
  background:
    linear-gradient(125deg, rgba(126, 39, 255, 0.18), transparent 34%),
    linear-gradient(235deg, rgba(0, 205, 255, 0.12), transparent 40%),
    linear-gradient(180deg, #010915 0%, #050b1d 48%, #081126 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 72%);
}

.global-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(1, 9, 21, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: saturate(160%) blur(24px);
}

.brand strong,
.main-nav a,
.platform-pill,
.chip,
.primary-action,
.secondary-action {
  color: #f7f7ff;
}

.brand small,
.global-search span {
  color: rgba(247, 247, 255, 0.58);
}

.brand-mark,
.brand-avatar.has-logo {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.global-search,
.platform-pill,
.chip,
.main-nav a,
.secondary-action,
.hero-proof-row span {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(247, 247, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.global-search input {
  color: #f7f7ff;
}

.global-search input::placeholder {
  color: rgba(247, 247, 255, 0.45);
}

.platform-pill.is-active,
.chip.is-active,
.main-nav a.is-active,
.commerce-tab.is-active {
  border-color: rgba(187, 117, 255, 0.42);
  color: #fff;
  background: linear-gradient(135deg, rgba(187, 117, 255, 0.28), rgba(0, 205, 255, 0.14));
  box-shadow: 0 14px 34px rgba(126, 39, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.app-main {
  padding-top: 28px;
}

.home-hero {
  margin-bottom: 24px;
  min-height: 760px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 72px 32px 64px;
  background:
    linear-gradient(115deg, rgba(126, 39, 255, 0.18), transparent 38%),
    linear-gradient(245deg, rgba(0, 205, 255, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.32);
}

@media (min-width: 1500px) {
  .app-main {
    width: min(1680px, calc(100% - 168px));
  }

  .home-hero {
    grid-template-columns: minmax(520px, 0.82fr) minmax(520px, 0.9fr);
    min-height: 700px;
    padding: 48px 40px 52px;
  }

  .hero-title {
    max-width: 840px;
  }

  .home-hero h1.hero-title {
    font-size: clamp(58px, 4.8vw, 86px);
  }

  .hero-lede {
    max-width: 720px;
  }

  .hero-board {
    justify-self: end;
    width: min(700px, 100%);
    grid-auto-rows: clamp(150px, 8.8vw, 188px);
  }

  .stat-row {
    width: min(1480px, calc(100% - 72px));
    margin: 0 auto 22px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
  }

  .section-block {
    margin-top: 32px;
    padding-top: 52px;
  }
}

.home-hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(126, 39, 255, 0.14), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.home-hero::after {
  inset: 0;
  opacity: 0.75;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 76%);
}

.hero-eyebrow {
  position: relative;
  overflow: hidden;
  border-color: rgba(187, 117, 255, 0.32);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
}

.hero-eyebrow::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent 38%, rgba(255, 255, 255, 0.62) 50%, transparent 62%);
  background-size: 220% 100%;
  animation: shine-sweep 3.2s linear infinite;
}

.hero-title {
  color: #fff;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
}

.home-hero .hero-copy {
  color: #f7f7ff;
}

.home-hero .hero-title .split-char {
  color: rgba(247, 247, 255, 0.96);
}

.hero-title .split-line:last-child .split-char {
  color: transparent;
  background: linear-gradient(90deg, #8ee8ff, #bb75ff, #f0ccff, #8ee8ff);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation-name: split-rise, flow-gradient;
  animation-duration: 820ms, 6s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), linear;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
  animation-delay: calc(var(--i) * 36ms), 0s;
}

.hero-lede {
  color: rgba(247, 247, 255, 0.76);
}

.hero-proof-row span {
  color: rgba(247, 247, 255, 0.72);
}

.primary-action {
  position: relative;
  overflow: hidden;
  border-color: rgba(187, 117, 255, 0.5);
  color: #fff;
  background: linear-gradient(90deg, #a365ff, #7111ff);
  box-shadow: 0 18px 42px rgba(113, 17, 255, 0.3);
}

.primary-action::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: shine-sweep 3.6s linear infinite;
}

.secondary-action {
  color: rgba(247, 247, 255, 0.88);
}

.hero-board {
  filter: drop-shadow(0 34px 80px rgba(126, 39, 255, 0.2));
}

.preview-tile {
  border-color: rgba(255, 255, 255, 0.1);
  background: #060b21;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  animation-name: tile-rise, hero-card-drift;
  animation-duration: 720ms, 5.6s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), ease-in-out;
  animation-delay: calc(180ms + var(--tile-index, 0) * 70ms), calc(900ms + var(--tile-index, 0) * 280ms);
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
}

.preview-tile::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  pointer-events: none;
}

.preview-tile::after {
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 42%, rgba(1, 9, 21, 0.72)),
    linear-gradient(135deg, rgba(126, 39, 255, 0.18), transparent 48%);
}

.preview-tile span {
  z-index: 2;
  color: #fff;
  background: rgba(1, 9, 21, 0.68);
}

.stat-row,
.section-block,
.library-hero,
.filter-panel,
.case-card,
.lane-card,
.topic-card,
.library-count,
.flow-meta-panel,
.flow-sidebar-head,
.side-insight,
.flow-video-section,
.selected-position,
.analysis-card,
.prompt-card,
.commerce-tab,
.position-button,
.chapter-button,
.screenshot-card,
.empty-state {
  border-color: rgba(255, 255, 255, 0.08);
  color: #f7f7ff;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.stat-row {
  margin-bottom: 24px;
}

.section-head h2,
.case-card h3,
.lane-card strong,
.topic-card strong,
.library-hero h1,
.detail-title h1,
.flow-hero-grid h1,
.video-notes h2,
.selected-position h2,
.flow-sidebar-head strong,
.flow-meta-panel strong,
.analysis-card p,
.prompt-card strong {
  color: #fff;
}

p,
.hero-lede,
.library-hero p,
.case-card p,
.topic-card span,
.case-foot span,
.meta-line span,
.flow-hero-grid p,
.video-notes p,
.side-insight span,
.chapter-button small,
.screenshot-card small,
.selected-position p,
.detail-title p {
  color: rgba(247, 247, 255, 0.66);
}

.case-card-body,
.filter-strip,
.prompt-card code,
.chapter-button {
  background: rgba(255, 255, 255, 0.045);
}

.case-thumb,
.single-media,
.compare-media figure {
  background: #060b21;
}

.text-link,
.back-link,
.eyebrow,
.chapter-button time,
.screenshot-card span,
.analysis-card span,
.position-button span {
  color: #9fdfff;
}

.brand-avatar-wordmark {
  color: #050505;
  background: #f7f7ff;
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  font-weight: 920;
  letter-spacing: -0.02em;
}

.case-card.is-diagnosis .case-thumb img {
  object-position: top center;
}

.diagnosis-hero {
  padding: 24px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.diagnosis-title-grid {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(190px, 260px);
  gap: 22px;
  align-items: start;
}

.diagnosis-title-grid h1 {
  max-width: 1040px;
  color: #fff;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.02;
}

.diagnosis-title-grid p {
  max-width: 840px;
  margin: 16px 0;
  color: rgba(247, 247, 255, 0.68);
  font-size: 16px;
  line-height: 1.6;
}

.diagnosis-hero-score {
  display: grid;
  gap: 6px;
  min-height: 148px;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(187, 117, 255, 0.18), rgba(0, 205, 255, 0.08)),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.diagnosis-hero-score span,
.diagnosis-hero-score small {
  color: rgba(247, 247, 255, 0.66);
  font-size: 12px;
  font-weight: 820;
}

.diagnosis-hero-score strong {
  color: #fff;
  font-size: 48px;
  line-height: 0.95;
}

.diagnosis-workspace {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: start;
  padding-top: 28px;
}

.pdp-evidence-column,
.diagnosis-breakdown {
  min-width: 0;
}

.pdp-device,
.pdp-sync-panel,
.diagnosis-aside > section,
.diagnosis-module,
.priority-card,
.diagnosis-prompt {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.pdp-review-stage {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) 244px;
  gap: 16px;
  align-items: start;
}

.pdp-device {
  display: grid;
  justify-items: center;
  max-height: min(86vh, 880px);
  overflow: auto;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    #050b1d;
}

.pdp-device img {
  display: block;
  width: min(520px, 100%);
  height: auto;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.pdp-sync-panel {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 14px;
  max-height: min(86vh, 880px);
  overflow: auto;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(187, 117, 255, 0.12), rgba(0, 205, 255, 0.06)),
    rgba(255, 255, 255, 0.055);
}

.sync-score-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.sync-score-head .eyebrow {
  margin-bottom: 0;
}

.sync-score-head div {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.sync-score-head strong {
  color: #fff;
  font-size: 30px;
  line-height: 0.95;
}

.sync-score-head span {
  color: rgba(247, 247, 255, 0.56);
  font-size: 11px;
  font-weight: 820;
}

.sync-now {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.sync-progress-track {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.sync-progress-track i {
  display: block;
  width: 100%;
  min-height: 12px;
  border-radius: inherit;
  background: linear-gradient(180deg, #8ee8ff, #bb75ff);
  transition: height 120ms ease;
}

.sync-now-copy {
  min-width: 0;
}

.sync-active-index {
  color: #9fdfff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
}

.sync-active-title {
  margin-top: 5px;
  color: #fff;
  font-size: 22px;
  line-height: 1.15;
}

.sync-active-module {
  margin: 9px 0 0;
  color: rgba(247, 247, 255, 0.68);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.4;
}

.sync-active-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.sync-active-score {
  color: #fff;
  font-size: 16px;
}

.sync-active-level {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.sync-active-level.is-strong {
  color: #9ff8c2;
  background: rgba(52, 199, 89, 0.14);
}

.sync-active-level.is-mid {
  color: #ffd98a;
  background: rgba(255, 214, 10, 0.14);
}

.sync-active-level.is-weak {
  color: #ff9fa6;
  background: rgba(255, 69, 58, 0.14);
}

.sync-active-note {
  display: block;
  margin-top: 12px;
  color: rgba(247, 247, 255, 0.58);
  font-size: 12px;
  line-height: 1.48;
}

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

.sync-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 3px 9px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  color: rgba(247, 247, 255, 0.74);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.sync-step:hover,
.sync-step.is-active {
  border-color: rgba(187, 117, 255, 0.46);
  background: linear-gradient(135deg, rgba(187, 117, 255, 0.18), rgba(0, 205, 255, 0.08));
}

.sync-step:hover {
  transform: translateY(-1px);
}

.sync-step span {
  grid-row: 1 / span 2;
  color: #9fdfff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
}

.sync-step strong {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
}

.sync-step small {
  color: rgba(247, 247, 255, 0.5);
  font-size: 11px;
  line-height: 1.3;
}

.diagnosis-aside {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.diagnosis-score-card,
.diagnosis-facts,
.diagnosis-section-map {
  padding: 18px;
}

.score-lockup {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.score-lockup strong {
  color: #fff;
  font-size: 62px;
  line-height: 0.95;
}

.score-lockup span {
  color: rgba(247, 247, 255, 0.5);
  font-size: 18px;
  font-weight: 820;
}

.diagnosis-score-card h2 {
  margin-top: 12px;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

.diagnosis-score-card p:not(.eyebrow) {
  margin: 12px 0 0;
  color: rgba(247, 247, 255, 0.68);
  font-size: 14px;
  line-height: 1.6;
}

.diagnosis-facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
}

.diagnosis-facts div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 16px;
  background: rgba(5, 11, 29, 0.72);
}

.diagnosis-facts span {
  color: rgba(247, 247, 255, 0.46);
  font-size: 12px;
  font-weight: 820;
}

.diagnosis-facts strong {
  min-width: 0;
  color: rgba(247, 247, 255, 0.9);
  font-size: 13px;
  line-height: 1.38;
}

.diagnosis-section-map div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.diagnosis-section-map span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(247, 247, 255, 0.74);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 760;
}

.diagnosis-section-map strong {
  color: #9fdfff;
  font-family: var(--font-mono);
  font-size: 10px;
}

.diagnosis-open {
  justify-content: center;
  min-height: 46px;
}

.diagnosis-breakdown {
  padding-top: 34px;
}

.diagnosis-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.diagnosis-module {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.module-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  gap: 8px;
  align-items: center;
}

.module-head span {
  color: #9fdfff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 850;
}

.module-head strong {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
}

.module-info {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(159, 223, 255, 0.2);
  border-radius: 999px;
  color: #9fdfff;
  background: rgba(159, 223, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

.module-info::before,
.module-info::after {
  position: absolute;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}

.module-info::after {
  right: 0;
  bottom: calc(100% + 10px);
  width: min(260px, 64vw);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(247, 247, 255, 0.82);
  background: rgba(5, 11, 29, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  content: attr(data-tooltip);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  transform: translateY(4px);
}

.module-info::before {
  right: 8px;
  bottom: calc(100% + 4px);
  width: 10px;
  height: 10px;
  background: rgba(5, 11, 29, 0.96);
  content: "";
  transform: translateY(4px) rotate(45deg);
}

.module-info:hover::before,
.module-info:hover::after,
.module-info:focus-visible::before,
.module-info:focus-visible::after,
.module-info.is-open::before,
.module-info.is-open::after {
  opacity: 1;
  transform: translateY(0);
}

.module-score em {
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.diagnosis-module.is-strong .module-score em {
  color: #9ff8c2;
  background: rgba(52, 199, 89, 0.14);
}

.diagnosis-module.is-mid .module-score em {
  color: #ffd98a;
  background: rgba(255, 214, 10, 0.14);
}

.diagnosis-module.is-weak .module-score em {
  color: #ff9fa6;
  background: rgba(255, 69, 58, 0.14);
}

.module-score {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.module-score b {
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.module-score small {
  color: rgba(247, 247, 255, 0.48);
  font-size: 12px;
  font-weight: 760;
}

.score-rail {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.score-rail i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ee8ff, #bb75ff);
}

.diagnosis-module p,
.priority-card p {
  margin: 0;
  color: rgba(247, 247, 255, 0.66);
  font-size: 13px;
  line-height: 1.55;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.priority-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.priority-card span {
  width: max-content;
  border-radius: 999px;
  padding: 6px 9px;
  color: #050b1d;
  background: #9fdfff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
}

.priority-card strong {
  color: #fff;
  font-size: 19px;
  line-height: 1.25;
}

.priority-card small {
  color: #bb75ff;
  font-size: 13px;
  font-weight: 850;
}

.diagnosis-prompt {
  padding: 18px;
}

.diagnosis-prompt code {
  display: block;
  color: rgba(247, 247, 255, 0.82);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  white-space: normal;
}

@media (max-width: 1180px) {
  .diagnosis-title-grid {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .diagnosis-hero-score {
    grid-column: 1 / -1;
  }

  .diagnosis-workspace,
  .priority-grid {
    grid-template-columns: 1fr;
  }

  .diagnosis-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdp-review-stage {
    grid-template-columns: minmax(420px, 1fr) 260px;
  }

  .diagnosis-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .global-header {
    background: rgba(1, 9, 21, 0.86);
  }

  .home-hero {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-hero h1.hero-title {
    font-size: 36px;
  }

  .diagnosis-title-grid {
    grid-template-columns: 1fr;
  }

  .diagnosis-title-grid h1 {
    font-size: 36px;
  }

  .diagnosis-hero-score {
    min-height: 116px;
  }

  .pdp-review-stage {
    grid-template-columns: 1fr;
  }

  .pdp-sync-panel {
    position: sticky;
    top: 8px;
    z-index: 6;
    order: -1;
    max-height: 320px;
  }

  .sync-now {
    grid-template-columns: 6px minmax(0, 1fr);
  }

  .sync-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sync-step {
    grid-template-columns: 1fr;
  }

  .sync-step span {
    grid-row: auto;
  }

  .pdp-device {
    max-height: 620px;
    padding: 10px;
  }

  .diagnosis-facts div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .module-head {
    grid-template-columns: 22px minmax(0, 1fr) 22px;
    gap: 6px;
  }

  .diagnosis-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .diagnosis-module {
    gap: 8px;
    padding: 11px;
  }

  .module-head span {
    font-size: 9px;
  }

  .module-head strong {
    font-size: 12px;
    line-height: 1.22;
  }

  .module-info {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .module-score b {
    font-size: 24px;
  }

  .module-score small {
    font-size: 11px;
  }

  .module-score em {
    padding: 3px 6px;
    font-size: 10px;
  }

  .score-rail {
    height: 4px;
  }

  .module-info::after {
    position: fixed;
    right: 16px;
    bottom: 18px;
    left: 16px;
    width: auto;
    transform: translateY(8px);
  }

  .module-info::before {
    display: none;
  }

  .module-info:hover::after,
  .module-info:focus-visible::after,
  .module-info.is-open::after {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow::after,
  .primary-action::after {
    animation: none;
  }

  .hero-title .split-line:last-child .split-char {
    animation: none;
    opacity: 1;
  }
}

/* Pageflows-style asset wall KV */
:root {
  --red: #007aff;
  --blue: #007aff;
  --active-fg: #ffffff;
  --active-border: rgba(0, 122, 255, 0.44);
  --active-tint: linear-gradient(135deg, rgba(0, 122, 255, 0.95), rgba(10, 132, 255, 0.78));
  --active-tint-strong: linear-gradient(135deg, #007aff, #0a84ff);
}

@keyframes logo-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

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

body {
  color: #f5f5f7;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 122, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #151518 0%, #101114 46%, #08090c 100%);
}

body::before {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
}

.global-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(19, 19, 22, 0.78);
  box-shadow: none;
}

.brand-mark {
  border-color: rgba(255, 255, 255, 0.14);
  background: #f5f5f7;
}

.brand strong,
.main-nav a,
.platform-pill,
.chip,
.primary-action,
.secondary-action {
  color: #f5f5f7;
}

.brand small,
.global-search span {
  color: rgba(245, 245, 247, 0.56);
}

.global-search,
.platform-pill,
.chip,
.main-nav a,
.secondary-action {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
}

.global-search input {
  color: #f5f5f7;
}

.global-search input::placeholder {
  color: rgba(245, 245, 247, 0.42);
}

.platform-pill.is-active,
.chip.is-active,
.main-nav a.is-active,
.commerce-tab.is-active {
  border-color: rgba(0, 122, 255, 0.56);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.92), rgba(10, 132, 255, 0.64));
  box-shadow: 0 14px 34px rgba(0, 122, 255, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.eyebrow,
.text-link,
.back-link,
.chapter-button time,
.screenshot-card span,
.analysis-card span,
.position-button span {
  color: #0a84ff;
}

.primary-action {
  border-color: #0a84ff;
  color: #ffffff;
  background: #0a84ff;
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.24);
}

.primary-action::after {
  display: none;
  animation: none;
}

.home-hero.logo-kv {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: min(780px, calc(100vh - 112px));
  margin-bottom: 24px;
  border: 0;
  border-radius: 0;
  padding: 64px 0 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.home-hero.logo-kv::before {
  position: absolute;
  inset: -28px calc(50% - 50vw) 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 50% 28%, rgba(0, 122, 255, 0.14), transparent 32%),
    radial-gradient(circle at 12% 100%, rgba(0, 122, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 34%),
    #18181b;
}

.home-hero.logo-kv::after {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.22) 72%, rgba(0, 0, 0, 0.46) 100%),
    linear-gradient(90deg, rgba(24, 24, 27, 0.92), transparent 17%, transparent 83%, rgba(24, 24, 27, 0.92));
  pointer-events: none;
}

.logo-kv .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(980px, 100%);
  max-width: none;
  margin: 0 auto;
  color: #f5f5f7;
  text-align: center;
}

.hero-community {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin: 0 0 24px;
  color: rgba(245, 245, 247, 0.58);
  font-size: 14px;
  font-weight: 650;
}

.home-hero.logo-kv h1.hero-title {
  max-width: 980px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(54px, 5.2vw, 86px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.05;
  text-shadow: none;
}

.logo-kv .hero-title .split-char {
  color: #ffffff;
}

.logo-kv .hero-title .split-line:last-child {
  color: transparent;
  background: linear-gradient(
    105deg,
    #edf7ff 0%,
    #b8dcff 28%,
    #64b5ff 56%,
    #2997ff 78%,
    #0a84ff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-kv .hero-title .split-line:last-child .split-char {
  color: transparent;
  background: none;
  -webkit-text-fill-color: transparent;
  animation-name: split-rise;
  animation-duration: 820ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  animation-delay: calc(var(--i) * 36ms);
}

.logo-kv .hero-lede {
  max-width: 720px;
  margin: 28px auto 26px;
  color: rgba(245, 245, 247, 0.62);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.55;
}

.logo-kv .hero-proof-row {
  justify-content: center;
  margin: 0 0 28px;
}

.logo-kv .hero-proof-row span {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(245, 245, 247, 0.72);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.logo-kv .secondary-action {
  color: rgba(245, 245, 247, 0.88);
  background: rgba(255, 255, 255, 0.08);
}

.asset-logo-wall {
  position: relative;
  flex: 0 0 auto;
  width: 100vw;
  margin-top: auto;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: 46px 0 42px;
  overflow: hidden;
}

.asset-logo-wall::before,
.asset-logo-wall::after {
  position: absolute;
  top: 0;
  z-index: 2;
  width: min(14vw, 220px);
  height: 100%;
  content: "";
  pointer-events: none;
}

.asset-logo-wall::before {
  left: 0;
  background: linear-gradient(90deg, #18181b 0%, rgba(24, 24, 27, 0) 100%);
}

.asset-logo-wall::after {
  right: 0;
  background: linear-gradient(270deg, #18181b 0%, rgba(24, 24, 27, 0) 100%);
}

.asset-logo-row {
  width: max-content;
  margin-bottom: 12px;
  animation: logo-marquee var(--duration, 60s) linear infinite;
}

.asset-logo-row:last-child {
  margin-bottom: 0;
}

.asset-logo-row.is-reverse {
  animation-direction: reverse;
}

.asset-logo-track {
  display: flex;
  gap: 12px;
  width: max-content;
}

.asset-logo-tile {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(62px, 5.2vw, 92px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--tile-fg);
  background: var(--tile-bg);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.asset-logo-tile img {
  display: block;
  width: 56%;
  height: 56%;
  object-fit: contain;
}

.asset-logo-tile img[hidden],
.asset-logo-tile b[hidden] {
  display: none;
}

.asset-logo-tile b {
  display: grid;
  place-items: center;
  max-width: 82%;
  color: var(--tile-fg);
  font-family: var(--font-display);
  font-size: clamp(11px, 0.76vw, 15px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
  text-align: center;
  word-break: keep-all;
}

@media (min-width: 1500px) {
  .home-hero.logo-kv {
    min-height: min(820px, calc(100vh - 100px));
    padding-top: 74px;
  }
}

@media (max-width: 980px) {
  .home-hero.logo-kv {
    min-height: 720px;
    padding-top: 54px;
  }

  .home-hero.logo-kv h1.hero-title {
    font-size: clamp(42px, 9vw, 64px);
  }

  .asset-logo-wall {
    padding-top: 36px;
  }
}

@media (max-width: 760px) {
  .global-header {
    background: rgba(19, 19, 22, 0.9);
  }

  .app-main {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-hero.logo-kv {
    min-height: 680px;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding: 54px 0 0;
    overflow: visible;
  }

  .logo-kv .hero-copy {
    position: relative;
    left: 50%;
    width: 100%;
    width: 100vw;
    max-width: 100vw;
    padding-right: 18px;
    padding-left: 18px;
    transform: translateX(-50%);
  }

  .home-hero.logo-kv h1.hero-title {
    max-width: 330px;
    font-size: clamp(33px, 9.2vw, 38px);
    line-height: 1.08;
    word-break: keep-all;
  }

  .logo-kv .hero-title .split-line {
    overflow: visible;
    white-space: normal;
  }

  .logo-kv .hero-title .split-line:last-child {
    background: none;
  }

  .logo-kv .hero-title .split-line:last-child .split-char {
    color: var(--mobile-title-color, #64b5ff);
    -webkit-text-fill-color: var(--mobile-title-color, #64b5ff);
  }

  .logo-kv .hero-title .split-line:last-child .split-char:nth-child(1) {
    --mobile-title-color: #b8dcff;
  }

  .logo-kv .hero-title .split-line:last-child .split-char:nth-child(2) {
    --mobile-title-color: #8bc8ff;
  }

  .logo-kv .hero-title .split-line:last-child .split-char:nth-child(3) {
    --mobile-title-color: #64b5ff;
  }

  .logo-kv .hero-title .split-line:last-child .split-char:nth-child(4) {
    --mobile-title-color: #2997ff;
  }

  .logo-kv .hero-title .split-line:last-child .split-char:nth-child(5) {
    --mobile-title-color: #0a84ff;
  }

  .logo-kv .hero-lede {
    max-width: 276px;
    font-size: 15px;
    word-break: normal;
  }

  .logo-kv .hero-proof-row,
  .logo-kv .hero-actions {
    justify-content: center;
    width: min(100%, 276px);
    margin-right: auto;
    margin-left: auto;
  }

  .logo-kv .hero-proof-row span {
    padding: 6px 9px;
    font-size: 11px;
  }

  .hero-community {
    font-size: 12px;
  }

  .asset-logo-wall {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-top: 34px;
  }

  .asset-logo-wall::before,
  .asset-logo-wall::after {
    width: 38px;
  }

  .asset-logo-track {
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .asset-logo-row {
    animation: none;
  }
}

/* Surface hierarchy: page sections stay open; only content objects are framed. */
.section-block,
.library-hero {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.stat-row {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.library-count {
  width: auto;
  height: auto;
  min-width: 96px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.filter-panel {
  gap: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.filter-strip {
  background: transparent;
}

.filter-strip + .filter-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lane-card,
.topic-card {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.case-card,
.flow-meta-panel,
.flow-sidebar-head,
.side-insight,
.flow-video-section,
.selected-position,
.analysis-card,
.prompt-card,
.commerce-tab,
.position-button,
.chapter-button,
.screenshot-card,
.empty-state,
.diagnosis-hero-score,
.pdp-device,
.pdp-sync-panel,
.diagnosis-aside > section,
.diagnosis-module,
.priority-card,
.diagnosis-prompt {
  box-shadow: none;
}

@media (max-width: 760px) {
  .section-block {
    padding-top: 52px;
  }

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

  .stat-row div {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat-row div:nth-child(2n) {
    border-right: 0;
  }

  .stat-row div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .library-count {
    display: flex;
    gap: 8px;
    align-items: baseline;
    justify-content: flex-start;
    min-width: 0;
  }

  .library-count strong {
    font-size: 28px;
  }

  .filter-strip {
    padding-right: 0;
    padding-left: 0;
  }
}

.detail-jump-nav button,
.position-button,
.chapter-button {
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 247, 0.88);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.detail-jump-nav button:hover,
.position-button:hover,
.chapter-button:hover {
  border-color: rgba(0, 122, 255, 0.42);
  background: rgba(0, 122, 255, 0.1);
  box-shadow: none;
}

.detail-jump-nav strong,
.position-button time,
.chapter-button small {
  color: rgba(245, 245, 247, 0.54);
}

.commerce-tab.is-active,
.position-button.is-active,
.chapter-button.is-active {
  border-color: rgba(0, 122, 255, 0.56);
  color: #ffffff;
  background: rgba(0, 122, 255, 0.18);
  box-shadow: none;
}

.commerce-tab.is-active small {
  color: rgba(245, 245, 247, 0.68);
}

/* Color system v2: neutral charcoal surfaces with Apple Blue interaction. */
:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --fg: #f5f5f7;
  --muted: #a1a1aa;
  --line: #2b313b;
  --surface: #171a21;
  --surface-soft: #1d222b;
  --surface-dark: #07080b;
  --red: #0a84ff;
  --green: #30d158;
  --yellow: #ffd60a;
  --blue: #0a84ff;
  --active-tint: rgba(10, 132, 255, 0.16);
  --active-tint-strong: rgba(10, 132, 255, 0.24);
  --active-fg: #f5f5f7;
  --active-border: rgba(10, 132, 255, 0.58);
  --shadow: none;
}

html,
body,
.site-shell {
  color: var(--fg);
  background: var(--bg);
}

body::before {
  display: none;
  background: none;
}

.global-header {
  border-bottom-color: var(--line);
  background: rgba(17, 19, 24, 0.94);
  box-shadow: none;
}

.global-search,
.platform-pill,
.chip,
.main-nav a,
.secondary-action {
  border-color: var(--line);
  color: var(--fg);
  background: var(--surface);
  box-shadow: none;
}

.brand small,
.global-search span,
.global-search input::placeholder {
  color: #7c838e;
}

.global-search input {
  color: var(--fg);
}

.platform-pill.is-active,
.chip.is-active,
.main-nav a.is-active,
.commerce-tab.is-active,
.position-button.is-active,
.chapter-button.is-active {
  border-color: var(--active-border);
  color: var(--fg);
  background: var(--active-tint-strong);
  box-shadow: none;
}

.primary-action {
  border-color: #0a84ff;
  color: #ffffff;
  background: #0a84ff;
  box-shadow: none;
}

.home-hero.logo-kv::before {
  background: #111318;
}

.home-hero.logo-kv::after {
  background: none;
}

.logo-kv .hero-lede,
.library-hero p,
.detail-title p,
.flow-hero-grid p,
.diagnosis-title-grid p,
.case-card p,
.topic-card span,
.step-card p,
.analysis-list li,
.analysis-card p,
.prompt-card code,
.prompt-panel p,
.pattern-list dd,
.selected-position p,
.side-insight p,
.video-notes p,
.sync-active-note {
  color: var(--muted);
}

.hero-community,
.case-card small,
.lane-card small,
.meta-line span,
.case-foot span,
.screen-count,
.flow-meta-panel span,
.flow-sidebar-head span,
.chapter-button small,
.screenshot-card small,
.step-card time,
.position-button time,
.sync-score-head span,
.sync-step small {
  color: #7c838e;
}

.section-head h2,
.case-card h3,
.lane-card strong,
.topic-card strong,
.library-hero h1,
.detail-title h1,
.flow-hero-grid h1,
.diagnosis-title-grid h1,
.video-notes h2,
.selected-position h2,
.flow-sidebar-head strong,
.flow-meta-panel strong,
.insight-panel h2,
.step-card strong,
.pattern-list dt,
.analysis-card strong,
.prompt-card strong,
.diagnosis-module strong,
.priority-card strong,
.sync-active-title,
.sync-active-score {
  color: var(--fg);
}

.eyebrow,
.text-link,
.back-link,
.analysis-card span,
.step-card span,
.chapter-button time,
.screenshot-card span,
.position-button span,
.sync-active-index,
.diagnosis-section-map strong {
  color: #0a84ff;
}

.lane-card,
.topic-card,
.case-card,
.step-card,
.insight-panel,
.analysis-card,
.prompt-card,
.flow-meta-panel,
.flow-sidebar-head,
.side-insight,
.flow-video-section,
.selected-position,
.commerce-tab,
.position-button,
.chapter-button,
.screenshot-card,
.empty-state,
.diagnosis-hero-score,
.pdp-sync-panel,
.diagnosis-aside > section,
.diagnosis-module,
.priority-card,
.diagnosis-prompt,
.sync-step,
.image-modal-card {
  border-color: var(--line);
  color: var(--fg);
  background: var(--surface);
  box-shadow: none;
}

.case-card-body,
.prompt-card code,
.pattern-list div,
.diagnosis-facts div {
  color: var(--fg);
  background: var(--surface-soft);
}

.pattern-list {
  border-color: var(--line);
  background: var(--line);
}

.detail-actions span,
.tag,
.hero-proof-row span,
.diagnosis-section-map span {
  border-color: var(--line);
  color: var(--muted);
  background: var(--surface-soft);
  box-shadow: none;
}

.filter-strip,
.section-block,
.library-hero,
.diagnosis-hero,
.diagnosis-workspace,
.diagnosis-breakdown,
.flow-detail-hero,
.flow-workspace,
.screens-section,
.flow-analysis-section,
.detail-layout {
  background: transparent;
  box-shadow: none;
}

.filter-strip + .filter-strip,
.diagnosis-hero,
.detail-hero {
  border-color: var(--line);
}

.pdp-device,
.case-thumb,
.single-media,
.compare-media figure,
.long-media {
  border-color: var(--line);
  background: var(--surface-dark);
}

.pdp-sync-panel,
.diagnosis-hero-score {
  background: var(--surface-soft);
}

.sync-progress-track,
.score-rail {
  background: #2b313b;
}

.sync-progress-track i,
.score-rail i {
  background: #0a84ff;
}

.sync-step:hover,
.sync-step.is-active,
.detail-jump-nav button:hover,
.position-button:hover,
.chapter-button:hover {
  border-color: var(--active-border);
  background: var(--active-tint);
  box-shadow: none;
}

.analysis-list li::before {
  background: #30d158;
}

.sync-active-level.is-strong,
.diagnosis-module.is-strong .module-score em {
  color: #30d158;
  background: rgba(48, 209, 88, 0.12);
}

.sync-active-level.is-mid,
.diagnosis-module.is-mid .module-score em {
  color: #ffd60a;
  background: rgba(255, 214, 10, 0.12);
}

.sync-active-level.is-weak,
.diagnosis-module.is-weak .module-score em {
  color: #ff453a;
  background: rgba(255, 69, 58, 0.12);
}

.priority-card span {
  color: #0b0c0f;
  background: #64b5ff;
}

.priority-card small {
  color: #64b5ff;
}

.modal-caption {
  color: var(--muted);
  background: var(--surface);
}

@media (max-width: 760px) {
  .global-header {
    background: #111318;
  }
}

/* Badge contrast normalization */
.case-thumb span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--fg);
  background: rgba(11, 12, 15, 0.84);
  box-shadow: none;
}

.meta-line span,
.case-foot span,
.screen-count {
  border-color: var(--line);
  color: var(--muted);
  background: var(--surface-soft);
  box-shadow: none;
}

.case-foot span:first-child {
  border-color: rgba(48, 209, 88, 0.36);
  color: var(--green);
  background: rgba(48, 209, 88, 0.12);
}

/* Catalog-backed business categories and video case detail */
.lane-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lane-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 148px;
}

.lane-card > span {
  color: #64b5ff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-strip.is-primary {
  padding-top: 18px;
  padding-bottom: 18px;
}

.filter-strip.is-primary .chip {
  min-height: 38px;
}

.brand-avatar-text {
  padding: 10px;
  color: #f5f5f7;
  background: #20242d;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  word-break: break-word;
}

.video-case-meta span:last-child {
  color: #8ec9ff;
}

.video-case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
  padding-top: 34px;
}

.video-case-main,
.video-case-aside {
  min-width: 0;
}

.video-case-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.video-case-switcher button {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  border: 0;
  padding: 10px 13px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}

.video-case-switcher button span {
  color: #64b5ff;
  font-family: var(--font-mono);
  font-size: 10px;
}

.video-case-switcher button.is-active {
  color: #ffffff;
  background: rgba(10, 132, 255, 0.2);
}

.video-case-player {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(72vh, 760px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050608;
}

.video-case-player video {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  object-fit: contain;
  background: #050608;
}

.video-case-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  gap: 8px;
  padding: 28px;
  color: var(--fg);
  background: #111318;
  text-align: center;
}

.video-case-player.has-error .video-case-fallback {
  display: grid;
}

.video-case-fallback span {
  color: var(--muted);
  font-size: 13px;
}

.video-case-fallback a {
  margin-top: 8px;
  color: #64b5ff;
  font-size: 13px;
  font-weight: 800;
}

.video-node-list {
  border-top: 1px solid var(--line);
}

.video-node {
  display: grid;
  grid-template-columns: 34px 58px minmax(150px, 0.65fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 8px;
  color: var(--fg);
  background: transparent;
  text-align: left;
  transition: background 160ms ease;
}

.video-node:hover,
.video-node:focus-visible {
  background: rgba(10, 132, 255, 0.1);
}

.video-node > span,
.video-node time {
  color: #64b5ff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.video-node strong {
  font-size: 14px;
  line-height: 1.45;
}

.video-node p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.video-keyframe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.video-keyframe-grid button {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 12;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  background: #050608;
}

.video-keyframe-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.video-keyframe-grid button:hover img {
  transform: scale(1.02);
}

.video-keyframe-grid button span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 999px;
  padding: 5px 7px;
  color: #ffffff;
  background: rgba(5, 6, 8, 0.82);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
}

.video-case-aside {
  position: sticky;
  top: 112px;
  border-top: 1px solid var(--line);
}

.video-score-panel,
.video-business-panel,
.video-insight-list {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.video-score-total {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 20px;
}

.video-score-total span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.video-score-total strong {
  font-size: 42px;
  line-height: 1;
}

.video-score-total small {
  color: var(--muted);
  font-size: 11px;
}

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

.video-score-list > div {
  display: grid;
  grid-template-columns: 64px minmax(70px, 1fr) 28px;
  gap: 10px;
  align-items: center;
}

.video-score-list span,
.video-score-list strong {
  font-size: 11px;
}

.video-score-list strong {
  text-align: right;
}

.video-score-list i {
  display: block;
  overflow: hidden;
  height: 4px;
  border-radius: 999px;
  background: #2b313b;
}

.video-score-list b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0a84ff;
}

.video-score-panel > p,
.video-business-panel > p:last-child,
.video-source-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.video-business-panel h2,
.video-insight-list > h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

.video-insight {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 5px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 15px 0;
}

.video-insight > span {
  grid-row: 1 / span 2;
  color: #64b5ff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.video-insight[data-insight-kind="weakness"] > span {
  color: #ff9f0a;
}

.video-insight[data-insight-kind="business_value"] > span,
.video-insight[data-insight-kind="recommendation"] > span {
  color: #30d158;
}

.video-insight strong {
  font-size: 13px;
}

.video-insight p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.video-source-note {
  margin: 18px 0 0;
}

@media (max-width: 1080px) {
  .lane-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-case-layout {
    grid-template-columns: 1fr;
  }

  .video-case-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }

  .video-source-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .lane-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .lane-card {
    min-height: 122px;
    padding: 15px;
  }

  .filter-strip.is-primary > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .filter-strip.is-primary .chip {
    width: 100%;
  }

  .video-case-layout {
    gap: 24px;
    padding-top: 22px;
  }

  .video-case-switcher {
    grid-template-columns: 1fr;
  }

  .video-case-player {
    min-height: 62vh;
  }

  .video-case-player video {
    height: 62vh;
  }

  .video-node {
    grid-template-columns: 30px 50px minmax(0, 1fr);
    gap: 8px;
    padding: 15px 4px;
  }

  .video-node p {
    grid-column: 3;
  }

  .video-keyframe-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .video-case-aside {
    grid-template-columns: 1fr;
  }

  .video-source-note {
    grid-column: auto;
  }
}

/* Mobile-first asset framing: most evidence is captured in a 9:19.5 viewport. */
.case-card {
  grid-template-columns: minmax(132px, 37%) minmax(0, 1fr);
  align-items: stretch;
}

.case-thumb {
  align-self: start;
  width: 100%;
  min-height: 0;
  aspect-ratio: 9 / 19.5;
  background: #050608;
}

.case-thumb img,
.case-card.is-diagnosis .case-thumb img {
  object-fit: cover;
  object-position: top center;
}

.case-card-body,
.case-card.is-compact .case-card-body {
  gap: 10px;
  min-height: 0;
  padding: 16px;
}

.case-card h3 {
  font-size: 18px;
}

.case-card p {
  font-size: 13px;
  line-height: 1.55;
}

@media (min-width: 1500px) {
  .case-grid,
  .latest-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.video-case-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 32px;
}

.video-case-main {
  display: grid;
  grid-template-columns: minmax(270px, 320px) minmax(300px, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 18px 24px;
  align-items: start;
}

.video-case-switcher {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.video-case-player {
  grid-column: 1;
  grid-row: 2 / span 2;
  width: 100%;
  min-height: 0;
  aspect-ratio: 9 / 19.5;
  align-self: start;
}

.video-case-player video {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 19.5;
}

.video-node-section {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

.video-keyframe-section {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
}

.video-keyframe-grid button {
  aspect-ratio: 9 / 19.5;
}

.pdp-review-stage {
  grid-template-columns: minmax(280px, 340px) minmax(220px, 1fr);
  gap: 18px;
}

.pdp-device {
  width: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: 9 / 19.5;
  justify-self: center;
  overflow: auto;
  padding: 0;
  background: #050608;
  overscroll-behavior: contain;
}

.pdp-device img {
  width: 100%;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.pdp-sync-panel {
  max-height: min(76vh, 738px);
}

@media (max-width: 1180px) {
  .video-case-main {
    grid-template-columns: minmax(260px, 310px) minmax(280px, 1fr);
  }

  .pdp-review-stage {
    grid-template-columns: minmax(280px, 330px) minmax(240px, 1fr);
  }
}

@media (max-width: 760px) {
  .case-card {
    grid-template-columns: minmax(112px, 34%) minmax(0, 1fr);
  }

  .case-card-body,
  .case-card.is-compact .case-card-body {
    gap: 8px;
    padding: 13px;
  }

  .case-card h3 {
    font-size: 16px;
  }

  .case-card p {
    -webkit-line-clamp: 2;
    font-size: 12px;
  }

  .meta-line {
    gap: 5px;
  }

  .meta-line span,
  .case-foot span {
    padding: 4px 6px;
    font-size: 9px;
  }

  .video-case-main {
    display: block;
  }

  .video-case-switcher {
    margin-bottom: 12px;
  }

  .video-case-player {
    width: min(100%, 286px);
    min-height: 0;
    margin-right: auto;
    margin-left: auto;
    aspect-ratio: 9 / 19.5;
  }

  .video-case-player video {
    height: 100%;
  }

  .video-node-section,
  .video-keyframe-section {
    margin-top: 24px;
  }

  .video-keyframe-grid button {
    aspect-ratio: 9 / 19.5;
  }

  .pdp-review-stage {
    grid-template-columns: 1fr;
  }

  .pdp-device {
    width: min(100%, 286px);
    max-height: none;
    aspect-ratio: 9 / 19.5;
  }

  .pdp-sync-panel {
    max-height: 280px;
  }
}

/* Keep the brand mark as supporting metadata instead of a second hero. */
.video-case-title {
  display: block;
  max-width: 1180px;
}

.detail-brandline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.detail-brandline .brand-avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 7px;
  padding: 8px;
  font-size: 16px;
}

.detail-brandline .eyebrow {
  margin: 0;
}

.video-case-title > h1 {
  max-width: 1240px;
  font-size: clamp(42px, 4.4vw, 68px);
}

.video-case-title > p {
  max-width: 980px;
}

@media (min-width: 761px) {
  .detail-title:not(.video-case-title) {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
  }

  .detail-title:not(.video-case-title) > .brand-avatar {
    width: 64px;
    height: 64px;
    padding: 10px;
    font-size: 18px;
  }
}

.diagnosis-title-grid {
  grid-template-columns: 64px minmax(0, 1fr) minmax(190px, 260px);
  gap: 18px;
}

.diagnosis-title-grid > .brand-avatar {
  width: 64px;
  height: 64px;
  padding: 10px;
  font-size: 18px;
}

.flow-hero-grid {
  grid-template-columns: 64px minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
}

.flow-hero-grid > .brand-avatar {
  width: 64px;
  height: 64px;
  padding: 10px;
  font-size: 18px;
}

@media (max-width: 1180px) {
  .video-case-layout {
    grid-template-columns: 1fr;
  }

  .diagnosis-title-grid {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .flow-hero-grid {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .video-case-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-brandline {
    gap: 10px;
    margin-bottom: 14px;
  }

  .detail-brandline .brand-avatar {
    width: 44px;
    height: 44px;
    padding: 7px;
  }

  .diagnosis-title-grid {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .diagnosis-title-grid > .brand-avatar {
    width: 48px;
    height: 48px;
    padding: 8px;
  }

  .flow-hero-grid {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .flow-hero-grid > .brand-avatar {
    width: 48px;
    height: 48px;
    padding: 8px;
  }

  .diagnosis-title-grid > .diagnosis-hero-score {
    grid-column: 1 / -1;
  }
}

/* Video case editorial layout: compact identity hero, then media plus analysis. */
.video-case-hero {
  padding: 38px 0 42px;
}

.video-case-title {
  max-width: none;
}

.detail-brandline {
  gap: 18px;
  margin-bottom: 26px;
}

.detail-brandline .brand-avatar {
  width: 76px;
  height: 76px;
  padding: 12px;
}

.detail-brandcopy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.detail-brandcopy p,
.detail-brandcopy span {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.2;
}

.detail-brandcopy p {
  font-size: clamp(16px, 1.4vw, 20px);
  text-transform: uppercase;
}

.detail-brandcopy span {
  font-size: clamp(14px, 1.2vw, 18px);
}

.video-case-title > h1 {
  max-width: none;
  font-size: clamp(50px, 5.1vw, 78px);
  line-height: 1.01;
}

.video-case-overview {
  display: grid;
  grid-template-columns: minmax(640px, 740px) minmax(330px, 380px);
  gap: clamp(44px, 5vw, 72px);
  align-items: start;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 0 0;
}

.video-case-main,
.video-case-aside {
  min-width: 0;
}

.video-case-main {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr);
  gap: 20px;
  align-items: start;
}

.video-case-switcher {
  grid-column: 1 / -1;
  margin-bottom: 14px;
}

.video-case-player {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  min-height: 0;
  aspect-ratio: 9 / 19.5;
  border-radius: 8px;
}

.video-case-player video {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: contain;
}

.video-case-aside {
  position: sticky;
  top: 108px;
}

.video-case-main .video-node-section {
  min-width: 0;
  max-height: min(78vh, 860px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.video-case-main .detail-section-head {
  align-items: center;
  margin-bottom: 14px;
}

.video-case-main .detail-section-head h2 {
  font-size: 24px;
}

.video-case-main .video-node {
  grid-template-columns: 28px 46px minmax(0, 1fr);
  gap: 6px 8px;
  padding: 15px 8px;
  border-left: 2px solid transparent;
}

.video-case-main .video-node p {
  grid-column: 3;
  font-size: 12px;
  line-height: 1.5;
}

.video-case-main .video-node.is-active {
  border-left-color: var(--blue);
  background: var(--active-tint);
}

.video-case-main .video-node.is-active strong {
  color: #ffffff;
}

.video-case-evidence {
  display: block;
  max-width: 980px;
  margin: 0 auto;
  padding-top: 72px;
}

.video-case-evidence .video-node-section,
.video-case-evidence .video-keyframe-section {
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  margin-top: 0;
}

@media (min-width: 1280px) {
  .video-case-title > h1 {
    white-space: nowrap;
  }
}

@media (min-width: 981px) {
  .video-case-player {
    width: min(100%, 420px, 36vh);
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 980px) {
  .video-case-overview,
  .video-case-evidence {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .video-case-overview {
    max-width: 640px;
    padding-left: 0;
  }

  .video-case-aside {
    position: static;
    display: block;
  }
}

@media (max-width: 760px) {
  .video-case-hero {
    padding: 22px 0 28px;
  }

  .detail-brandline {
    gap: 12px;
    margin-bottom: 18px;
  }

  .detail-brandline .brand-avatar {
    width: 52px;
    height: 52px;
    padding: 8px;
  }

  .detail-brandcopy p {
    font-size: 14px;
  }

  .detail-brandcopy span {
    font-size: 13px;
  }

  .video-case-title > h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.04;
  }

  .video-case-overview {
    gap: 28px;
    padding-top: 28px;
  }

  .video-case-main {
    display: block;
  }

  .video-case-player {
    width: min(100%, 310px);
    margin: 0 auto;
  }

  .video-case-main .video-node-section {
    max-height: none;
    margin-top: 30px;
    overflow: visible;
  }

  .video-case-evidence {
    gap: 34px;
    padding-top: 52px;
  }
}

/* Video case research workbench v3 */
.video-case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 48px;
  align-items: end;
  padding: 28px 0 30px;
}

.video-case-title {
  min-width: 0;
  max-width: none;
}

.video-case-title .detail-brandline {
  gap: 14px;
  margin-bottom: 15px;
}

.video-case-title .detail-brandline .brand-avatar {
  width: 60px;
  height: 60px;
  padding: 10px;
}

.video-case-title .detail-brandcopy {
  gap: 4px;
}

.video-case-title .detail-brandcopy p {
  font-size: 14px;
}

.video-case-title .detail-brandcopy span {
  font-size: 12px;
}

.video-case-title > h1 {
  max-width: 920px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.04;
  white-space: normal;
}

.video-case-title > .video-case-summary {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.video-case-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  min-width: 0;
  margin: 0;
}

.video-case-facts div {
  min-width: 0;
}

.video-case-facts dt,
.video-case-facts dd {
  margin: 0;
}

.video-case-facts dt {
  margin-bottom: 6px;
  color: #747b86;
  font-size: 10px;
  font-weight: 750;
}

.video-case-facts dd {
  overflow: hidden;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.video-case-jumpnav {
  display: none;
}

.video-case-overview {
  grid-template-columns: minmax(620px, 760px) minmax(320px, 380px);
  gap: clamp(36px, 4vw, 56px);
  max-width: none;
  padding-top: 30px;
}

.video-case-main {
  display: grid;
  grid-template-columns: minmax(220px, 350px) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}

.video-case-media-column {
  min-width: 0;
  scroll-margin-top: 110px;
}

.video-case-media-column .video-case-switcher {
  grid-column: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.video-case-media-column .video-case-switcher button {
  min-height: 42px;
  padding: 8px 10px;
  font-size: 11px;
}

.video-case-player {
  width: min(100%, 300px, 26svh);
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
}

.video-case-player video {
  aspect-ratio: 9 / 19.5;
}

.video-case-main.is-landscape-media {
  grid-template-columns: minmax(420px, 1.7fr) minmax(240px, 0.8fr);
  gap: 22px;
}

.video-case-player.is-landscape-media {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  background: #050608;
}

.video-case-player.is-landscape-media video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.video-case-main.is-landscape-media .video-node {
  grid-template-columns: 42px 96px minmax(0, 1fr);
  min-height: 94px;
  padding: 8px;
}

.video-case-main.is-landscape-media .video-node > img {
  width: 96px;
  height: 60px;
  object-fit: cover;
}

.video-case-evidence.is-landscape-media .video-keyframe-grid button {
  grid-template-columns: minmax(140px, 44%) minmax(0, 1fr);
}

.video-case-evidence.is-landscape-media .video-keyframe-grid button > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-media-caption {
  margin: 10px 0 0;
  color: #747b86;
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
}

.video-case-main .video-node-section {
  grid-column: auto;
  grid-row: auto;
  max-height: min(78vh, 800px);
  padding-right: 4px;
  scroll-margin-top: 110px;
}

.video-case-main .detail-section-head {
  min-height: 48px;
  margin-bottom: 12px;
}

.video-case-main .detail-section-head h2 {
  font-size: 22px;
}

.video-case-main .video-node-list {
  display: grid;
  gap: 10px;
  border-top: 0;
}

.video-case-main .video-node {
  display: grid;
  grid-template-columns: 50px 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  overflow: hidden;
  min-height: 132px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px;
  background: transparent;
  transition: border-color 160ms ease, background 160ms ease;
}

.video-case-main .video-node:hover,
.video-case-main .video-node:focus-visible {
  border-color: rgba(10, 132, 255, 0.34);
  background: rgba(10, 132, 255, 0.07);
}

.video-case-main .video-node.is-active {
  border-color: var(--blue);
  background: rgba(10, 132, 255, 0.12);
}

.video-node-meta,
.video-node-copy {
  display: grid;
  min-width: 0;
}

.video-node-meta {
  align-self: stretch;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-right: 1px solid var(--line);
  padding-right: 10px;
}

.video-node-meta b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #8ec9ff;
  font-family: var(--font-mono);
  font-size: 10px;
}

.video-node.is-active .video-node-meta b {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.video-node-meta time {
  color: #747b86;
  font-family: var(--font-mono);
  font-size: 9px;
}

.video-case-main .video-node > img {
  display: block;
  width: 92px;
  height: 112px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
}

.video-node-copy {
  gap: 5px;
  text-align: left;
}

.video-node-copy small {
  color: #64b5ff;
  font-size: 9px;
  font-weight: 800;
}

.video-node-copy strong {
  font-size: 14px;
  line-height: 1.4;
}

.video-case-main .video-node .video-node-copy p {
  display: -webkit-box;
  grid-column: auto;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.video-case-aside {
  top: 106px;
  scroll-margin-top: 110px;
}

.video-case-aside .video-score-panel,
.video-case-aside .video-business-panel,
.video-case-aside .video-insight-list {
  padding: 20px 0;
}

.video-case-aside .video-score-total {
  margin-bottom: 18px;
}

.video-case-aside .video-score-total strong {
  font-size: 38px;
}

.video-case-aside .video-business-panel h2,
.video-case-aside .video-insight-list > h2 {
  font-size: 18px;
}

.video-case-evidence {
  max-width: none;
  border-top: 1px solid var(--line);
  margin-top: 54px;
  padding-top: 34px;
  scroll-margin-top: 110px;
}

.video-case-evidence .video-keyframe-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.video-case-evidence .video-keyframe-grid button {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 170px;
  aspect-ratio: auto;
  border-color: var(--line);
  padding: 10px;
  background: var(--surface);
  text-align: left;
}

.video-case-evidence .video-keyframe-grid button > img {
  width: 118px;
  height: 148px;
  border-radius: 5px;
  object-fit: cover;
  object-position: top center;
}

.video-evidence-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.video-evidence-copy small {
  color: #64b5ff;
  font-family: var(--font-mono);
  font-size: 9px;
}

.video-evidence-copy strong {
  color: var(--fg);
  font-size: 13px;
  line-height: 1.4;
}

.video-evidence-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.video-evidence-source {
  margin: 16px 0 0;
  color: #747b86;
  font-size: 11px;
}

@media (max-width: 1080px) {
  .video-case-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .video-case-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .video-case-overview {
    grid-template-columns: minmax(0, 1fr);
    max-width: 900px;
  }

  .video-case-main.is-landscape-media {
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
  }

  .video-case-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 30px;
  }

  .video-case-aside .video-source-note {
    grid-column: 1 / -1;
  }

  .video-case-evidence .video-keyframe-grid button {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .video-case-evidence .video-keyframe-grid button > img {
    width: 96px;
    height: 128px;
  }
}

@media (max-width: 760px) {
  .video-case-hero {
    gap: 20px;
    padding: 22px 0 24px;
  }

  .video-case-title .detail-brandline .brand-avatar {
    width: 52px;
    height: 52px;
    padding: 8px;
  }

  .video-case-title > h1 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.08;
  }

  .video-case-title > .video-case-summary {
    margin-top: 12px;
    font-size: 13px;
  }

  .video-case-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }

  .video-case-jumpnav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    margin: 0 0 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
  }

  .video-case-jumpnav button {
    min-height: 42px;
    border: 0;
    border-right: 1px solid var(--line);
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    font-weight: 750;
  }

  .video-case-jumpnav button:last-child {
    border-right: 0;
  }

  .video-case-jumpnav button.is-active {
    color: #64b5ff;
    background: rgba(10, 132, 255, 0.12);
  }

  .video-case-overview {
    gap: 34px;
    padding-top: 18px;
  }

  .video-case-main {
    display: block;
  }

  .video-case-player.is-landscape-media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .video-case-player {
    width: min(100%, 310px);
  }

  .video-case-main .video-node-section {
    max-height: none;
    margin-top: 34px;
    padding-right: 0;
    overflow: visible;
  }

  .video-case-main .video-node {
    grid-template-columns: 46px 82px minmax(0, 1fr);
    gap: 10px;
    min-height: 116px;
    padding: 9px;
  }

  .video-case-main .video-node > img {
    width: 82px;
    height: 98px;
  }

  .video-node-meta {
    padding-right: 7px;
  }

  .video-node-copy strong {
    font-size: 13px;
  }

  .video-case-main .video-node .video-node-copy p {
    -webkit-line-clamp: 2;
    font-size: 10px;
  }

  .video-case-aside {
    display: block;
  }

  .video-case-evidence {
    margin-top: 46px;
    padding-top: 28px;
  }

  .video-case-evidence .video-keyframe-grid {
    grid-auto-columns: minmax(260px, 82vw);
    grid-template-columns: none;
    grid-auto-flow: column;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .video-case-evidence .video-keyframe-grid button {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 142px;
    scroll-snap-align: start;
  }

  .video-case-evidence .video-keyframe-grid button > img {
    width: 92px;
    height: 120px;
  }
}

/* Unified detail-page system */
.detail-system-hero {
  min-height: 0;
  border-bottom: 1px solid var(--line);
  padding: 28px 0 30px;
}

.detail-system-hero h1 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.04;
}

.detail-system-hero .brand-avatar,
.detail-system-hero .brand-avatar.has-logo {
  width: 60px;
  height: 60px;
  padding: 10px;
}

.detail-system-hero .tag-row {
  gap: 14px;
  margin-top: 15px;
}

.detail-system-hero .tag {
  position: relative;
  border: 0;
  border-radius: 0;
  padding: 0 0 0 10px;
  color: #7c838e;
  background: transparent;
  font-size: 10px;
}

.detail-system-hero .tag::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #4b5360;
  content: "";
  transform: translateY(-50%);
}

.detail-jump-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  overflow: hidden;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.detail-jump-nav button {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 10px 16px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.detail-jump-nav button:last-child {
  border-right: 0;
}

.detail-jump-nav button::after {
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 2px;
  background: transparent;
  content: "";
}

.detail-jump-nav button:hover,
.detail-jump-nav button:focus-visible,
.detail-jump-nav button.is-active {
  color: var(--fg);
  background: rgba(10, 132, 255, 0.06);
}

.detail-jump-nav button.is-active::after {
  background: var(--blue);
}

.detail-jump-nav span {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}

.detail-jump-nav strong {
  color: #747b86;
  font-size: 10px;
  font-weight: 650;
}

.flow-detail-hero.detail-system-hero {
  padding-top: 28px;
}

.flow-detail-hero .flow-hero-grid {
  grid-template-columns: 60px minmax(0, 1fr) minmax(380px, 470px);
  gap: 16px;
  align-items: start;
}

.flow-detail-hero .flow-hero-grid h1,
.diagnosis-hero .diagnosis-title-grid h1,
.detail-system-hero .detail-title h1 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.04;
}

.flow-detail-hero .flow-hero-grid p,
.diagnosis-hero .diagnosis-title-grid p,
.detail-system-hero .detail-title p {
  max-width: 780px;
  margin: 13px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.flow-detail-hero .flow-meta-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.flow-detail-hero .flow-meta-panel div {
  display: block;
  min-height: 0;
  min-width: 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding: 10px 0 0;
}

.flow-detail-hero .flow-meta-panel span,
.flow-detail-hero .flow-meta-panel strong {
  display: block;
}

.flow-detail-hero .flow-meta-panel span {
  margin-bottom: 5px;
  font-size: 9px;
}

.flow-detail-hero .flow-meta-panel strong {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.commerce-tabs-shell {
  width: min(100% - 64px, 1376px);
  margin: 0 auto;
  padding-top: 20px;
}

.commerce-tabs-shell .commerce-tabs {
  max-width: 680px;
  margin: 0;
}

.diagnosis-hero .diagnosis-title-grid {
  grid-template-columns: 60px minmax(0, 1fr) 176px;
  gap: 16px;
  align-items: start;
}

.diagnosis-hero .diagnosis-hero-score {
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0 8px 24px;
  background: transparent;
}

.diagnosis-hero .diagnosis-hero-score strong {
  font-size: 44px;
}

.detail-system-hero .detail-title:not(.video-case-title) {
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  max-width: 1100px;
}

.detail-system-hero .detail-actions {
  gap: 0;
  margin: 18px 0 0 76px;
}

.detail-system-hero .detail-actions span {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 0 14px;
  color: #7c838e;
  background: transparent;
}

.detail-system-hero .detail-actions span:first-child {
  padding-left: 0;
}

.detail-system-hero .detail-actions span:last-child {
  border-right: 0;
}

.flow-workspace,
.diagnosis-workspace,
.detail-layout {
  gap: 34px;
  padding-top: 30px;
}

.flow-workspace {
  grid-template-columns: 280px minmax(0, 1fr);
}

.diagnosis-workspace,
.detail-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.flow-video-section,
.selected-position,
.diagnosis-aside > section,
.study-aside .insight-panel {
  border-color: var(--line);
  border-radius: 7px;
  box-shadow: none;
}

.flow-video-section,
.selected-position {
  background: transparent;
}

.flow-sidebar,
.study-aside,
.diagnosis-aside {
  top: 104px;
}

.flow-video-section,
.screens-section,
.flow-analysis-section,
.diagnosis-workspace,
.diagnosis-breakdown,
.study-main,
.study-aside {
  scroll-margin-top: 104px;
}

.simple-timeline-section {
  padding-top: 42px;
}

.detail-system-hero + .detail-jump-nav + .detail-layout,
.detail-system-hero + .detail-jump-nav + .diagnosis-workspace,
.detail-system-hero + .detail-jump-nav + .flow-workspace,
.detail-system-hero + .detail-jump-nav + .video-case-overview {
  padding-top: 30px;
}

@media (max-width: 1080px) {
  .flow-detail-hero .flow-hero-grid,
  .diagnosis-hero .diagnosis-title-grid {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .flow-detail-hero .flow-meta-panel,
  .diagnosis-hero .diagnosis-hero-score {
    grid-column: 2;
  }

  .diagnosis-hero .diagnosis-hero-score {
    display: flex;
    gap: 12px;
    align-items: baseline;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 14px 0 0;
  }

  .flow-workspace,
  .diagnosis-workspace,
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-sidebar,
  .study-aside,
  .diagnosis-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .detail-system-hero {
    padding: 22px 0 24px;
  }

  .detail-system-hero h1,
  .flow-detail-hero .flow-hero-grid h1,
  .diagnosis-hero .diagnosis-title-grid h1,
  .detail-system-hero .detail-title h1 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.08;
  }

  .detail-system-hero .brand-avatar,
  .detail-system-hero .brand-avatar.has-logo {
    width: 52px;
    height: 52px;
    padding: 8px;
  }

  .flow-detail-hero .flow-hero-grid,
  .diagnosis-hero .diagnosis-title-grid,
  .detail-system-hero .detail-title:not(.video-case-title) {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .flow-detail-hero .flow-meta-panel,
  .diagnosis-hero .diagnosis-hero-score {
    grid-column: 1 / -1;
  }

  .flow-detail-hero .flow-meta-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commerce-tabs-shell {
    width: calc(100% - 32px);
    padding-top: 16px;
  }

  .detail-system-hero .detail-actions {
    margin-left: 0;
  }

  .detail-jump-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-jump-nav:has(button:nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-jump-nav button {
    display: grid;
    gap: 3px;
    justify-content: stretch;
    min-height: 50px;
    padding: 8px;
    text-align: center;
  }

  .detail-jump-nav button::after {
    right: 8px;
    left: 8px;
  }

  .detail-jump-nav strong {
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .flow-workspace,
  .diagnosis-workspace,
  .detail-layout {
    gap: 28px;
    padding-top: 24px;
  }
}

/* Video detail layout balance */
.detail-jump-nav {
  width: 100%;
  max-width: none;
}

.video-case-overview {
  grid-template-columns: minmax(0, 1fr) clamp(340px, 24vw, 400px);
  gap: clamp(32px, 3vw, 48px);
  justify-content: stretch;
  max-width: none;
}

.video-case-main {
  gap: 32px;
}

.video-case-main.is-landscape-media {
  grid-template-columns: minmax(420px, 1.55fr) minmax(280px, 0.9fr);
  gap: 32px;
}

.video-case-main.is-landscape-media .video-node {
  grid-template-columns: 42px minmax(88px, 112px) minmax(0, 1fr);
}

.video-case-main.is-landscape-media .video-node > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
}

@media (max-width: 1180px) {
  .video-case-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .video-case-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 28px;
  }

  .video-case-aside .video-source-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .video-case-overview {
    gap: 30px;
  }

  .video-case-main.is-landscape-media {
    display: block;
  }

  .video-case-aside {
    display: block;
  }
}
