:root {
  --paper: #f1edf6;
  --ink: #1a1612;
  --ink-2: #4b4339;
  --ink-3: #8a8073;
  --hug: #c44a3f;
  --hug-2: #a83a30;
  --green-2: #2f6b40;
  --line: #d3c8da;
  --surface: rgba(255, 253, 248, 0.9);
  --serif:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(
      ellipse 62% 42% at 84% -8%,
      rgba(132, 102, 178, 0.14) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 68% 50% at -8% 104%,
      rgba(196, 74, 63, 0.08) 0%,
      transparent 56%
    );
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 16.5px;
}

.app {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 34px 58px;
}

.brand-link {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.brand-link:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}
.brand-text {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: -0.02em;
  font-size: 30px;
  line-height: 1;
}
.brand-text .em {
  color: var(--hug);
  font-weight: 500;
}
.brand-text .small {
  font-size: 18px;
  color: var(--ink-3);
  margin-left: 1px;
  font-weight: 400;
}

header.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.nav {
  display: flex;
  gap: 20px;
  align-items: baseline;
  flex-wrap: wrap;
}
.nav a {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.15s,
    color 0.15s;
  padding-bottom: 1px;
}
.nav a:hover {
  color: var(--hug);
  border-bottom-color: var(--hug);
}
.nav a[aria-current="page"] {
  color: var(--hug);
  border-bottom-color: var(--hug);
}

.hero {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88),
    rgba(248, 243, 253, 0.8)
  );
  padding: 28px;
  box-shadow: 0 22px 40px -34px rgba(40, 25, 10, 0.28);
  margin-bottom: 16px;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
  align-items: stretch;
}
.hero-copy {
  min-width: 0;
}
.hero-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}
.kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(196, 74, 63, 0.35);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hug-2);
  margin-bottom: 11px;
  font-weight: 600;
  background: rgba(250, 233, 224, 0.62);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(32px, 4.3vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 10px;
  max-width: none;
}
.hero h1 .hero-question {
  display: block;
  white-space: nowrap;
}
.hero h1 .hero-question + .hero-question {
  margin-top: 2px;
}
.hero h1 em {
  color: var(--green-2);
  font-style: italic;
}
.hero p {
  color: var(--ink-2);
  max-width: 78ch;
}
.hero-trial {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-2);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.hero-trial a {
  color: inherit;
  text-decoration-color: color-mix(in oklab, var(--green-2) 55%, #ffffff);
  text-underline-offset: 2px;
}
.hero-trial a:hover {
  text-decoration-color: var(--green-2);
}
.hero-trial .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-2);
  box-shadow: 0 0 0 6px rgba(47, 107, 64, 0.12);
}

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

.corpus-bridge {
  margin: 18px 0 6px;
  border: 1px solid rgba(179, 162, 198, 0.62);
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(247, 241, 253, 0.82),
    rgba(255, 255, 255, 0.9)
  );
  box-shadow:
    0 20px 38px -34px rgba(40, 25, 10, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.36) inset;
  padding: 20px;
}
.corpus-bridge .bridge-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 6px;
  font-weight: 700;
}
.corpus-bridge h2 {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(24px, 3.3vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 7px;
}
.corpus-bridge p {
  color: var(--ink-2);
  font-size: 14px;
  max-width: 80ch;
}
.token-cycle-diagram {
  position: relative;
  min-height: 392px;
  width: 93%;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  margin-left: auto;
  margin-right: -14px;
}
.token-cycle-anim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.token-flow-lane {
  position: absolute;
  height: 1.5px;
  transform-origin: left center;
}
.token-flow-lane::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(47, 107, 64, 0.2),
    rgba(47, 107, 64, 0.6)
  );
  box-shadow: 0 0 0 1px rgba(47, 107, 64, 0.1);
}
.token-flow-lane .token-chip {
  position: absolute;
  top: 50%;
  left: 0;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  border: 1px solid rgba(47, 107, 64, 0.42);
  background: radial-gradient(
    circle at 30% 28%,
    rgba(255, 255, 255, 0.92),
    rgba(225, 242, 229, 0.95)
  );
  color: #2f6b40;
  font: 800 22px/1 var(--sans);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 12px -10px rgba(40, 25, 10, 0.62);
  opacity: 0;
  animation: tokenTravel 5s linear infinite;
}
.token-flow-lane .token-label {
  position: absolute;
  top: -21px;
  left: 0;
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.84;
}
.token-flow-lane.flow-hug-to-users {
  left: 30%;
  top: 81%;
  width: 46%;
  transform: rotate(-67deg);
}
.token-flow-lane.flow-hug-to-users .token-chip {
  animation-delay: 0s;
}
.token-flow-lane.flow-labs-to-hug {
  left: 70%;
  top: 81%;
  width: 40%;
  transform: rotate(180deg);
}
.token-flow-lane.flow-labs-to-hug::before {
  background: linear-gradient(
    90deg,
    rgba(45, 112, 152, 0.18),
    rgba(45, 112, 152, 0.68)
  );
  box-shadow: 0 0 0 1px rgba(45, 112, 152, 0.1);
}
.token-flow-lane.flow-labs-to-hug .token-chip {
  border-color: rgba(45, 112, 152, 0.4);
  background: radial-gradient(
    circle at 30% 28%,
    rgba(255, 255, 255, 0.92),
    rgba(224, 238, 246, 0.95)
  );
  color: #2d7098;
  animation-delay: 0.65s;
}
.token-flow-lane.flow-users-to-labs {
  left: 48.8%;
  top: 15.4%;
  width: 44.5%;
  transform: rotate(66deg);
}
.token-flow-lane.flow-users-to-labs::before {
  background: linear-gradient(
    90deg,
    rgba(196, 74, 63, 0.18),
    rgba(196, 74, 63, 0.7)
  );
  box-shadow: 0 0 0 1px rgba(196, 74, 63, 0.12);
}
.token-flow-lane.flow-users-to-labs .token-chip {
  border-color: rgba(196, 74, 63, 0.42);
  background: radial-gradient(
    circle at 30% 28%,
    rgba(255, 255, 255, 0.92),
    rgba(251, 233, 227, 0.95)
  );
  color: #8e342b;
  animation-delay: 1.25s;
}
@keyframes tokenTravel {
  0% {
    left: 0;
    opacity: 0;
    transform: scale(0.82);
  }
  8% {
    opacity: 1;
    transform: scale(1);
  }
  82% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    left: calc(100% - 34px);
    opacity: 0;
    transform: scale(0.92);
  }
}
.token-cycle-ring {
  display: none;
}
.token-cycle-node {
  position: absolute;
  width: min(198px, 37%);
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  padding: 6px 8px;
  display: grid;
  gap: 2px;
  box-shadow: none;
  z-index: 2;
}
.token-cycle-node .name {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  text-align: center;
}
.token-node-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 2px;
}
.token-node-logo img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 5px;
  border: 0;
  background: transparent;
  padding: 0;
}
.token-node-logo.hug img {
  width: 23px;
  height: 23px;
  border-radius: 7px;
}
.token-node-logo.users img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}
.frontier-logo-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2px;
}
.frontier-provider-logo {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.96;
}
.token-cycle-node.users {
  top: 7.5%;
  left: 50%;
  transform: translateX(-50%);
}
.token-cycle-node.hugclaims {
  left: 5%;
  bottom: 9%;
}
.token-cycle-node.frontier-labs {
  right: 5%;
  bottom: 9%;
}
.bridge-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bridge-card {
  border: 1px solid rgba(179, 162, 198, 0.72);
  border-radius: 14px;
  background: #fff;
  padding: 12px 12px 10px;
}
.bridge-card .card-kicker {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 5px;
}
.bridge-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.14;
  margin-bottom: 6px;
}
.bridge-card ul {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.bridge-card li {
  padding-left: 14px;
  position: relative;
}
.bridge-card li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-2);
  position: absolute;
  left: 1px;
  top: 8px;
}

.corpus-figure-block {
  margin-top: 14px;
  border: 1px solid rgba(179, 162, 198, 0.66);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.92);
  padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}
.corpus-figure-head h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.corpus-figure-head p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.corpus-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
.corpus-portal {
  border: 1px solid rgba(179, 162, 198, 0.68);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(250, 246, 255, 0.92);
  box-shadow: 0 12px 26px -24px rgba(40, 25, 10, 0.34);
}
.corpus-portal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(179, 162, 198, 0.55);
  background: linear-gradient(
    180deg,
    rgba(241, 233, 251, 0.95),
    rgba(253, 249, 255, 0.9)
  );
  color: var(--ink-2);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.corpus-portal-title {
  font-family: var(--mono);
  letter-spacing: 0.09em;
  color: var(--ink);
}
.corpus-portal-lights {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.corpus-portal-lights .light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(80, 64, 101, 0.18);
}
.corpus-portal-lights .l-red {
  background: rgba(196, 74, 63, 0.76);
}
.corpus-portal-lights .l-yellow {
  background: rgba(226, 168, 44, 0.76);
}
.corpus-portal-lights .l-green {
  background: rgba(47, 107, 64, 0.76);
}
.corpus-portal-status {
  color: var(--green-2);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.corpus-plot {
  position: relative;
  min-height: 500px;
  height: 100%;
  border-radius: 0;
  border: 0;
  background:
    radial-gradient(
      circle at 20% 24%,
      rgba(196, 74, 63, 0.12) 0,
      transparent 33%
    ),
    radial-gradient(
      circle at 76% 27%,
      rgba(45, 112, 152, 0.11) 0,
      transparent 34%
    ),
    radial-gradient(
      circle at 22% 72%,
      rgba(47, 107, 64, 0.11) 0,
      transparent 35%
    ),
    radial-gradient(
      circle at 72% 74%,
      rgba(128, 95, 168, 0.11) 0,
      transparent 35%
    ),
    radial-gradient(
      circle at 48% 52%,
      rgba(212, 130, 37, 0.11) 0,
      transparent 36%
    ),
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(246, 238, 253, 0.7));
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}
.corpus-plot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 22, 18, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 22, 18, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.26;
  pointer-events: none;
}
.corpus-scene {
  position: absolute;
  inset: 14px;
  z-index: 1;
}
.corpus-density-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.corpus-blob {
  position: absolute;
  width: 160px;
  height: 130px;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.22;
}
.corpus-blob.b-medicine {
  left: 8%;
  top: 9%;
  background: rgba(196, 74, 63, 0.7);
}
.corpus-blob.b-finance {
  left: 58%;
  top: 10%;
  background: rgba(45, 112, 152, 0.7);
}
.corpus-blob.b-legal {
  left: 12%;
  top: 58%;
  background: rgba(47, 107, 64, 0.7);
}
.corpus-blob.b-math {
  left: 58%;
  top: 60%;
  background: rgba(128, 95, 168, 0.7);
}
.corpus-blob.b-coding {
  left: 34%;
  top: 36%;
  background: rgba(212, 130, 37, 0.75);
}
.corpus-blob.b-other {
  left: 76%;
  top: 44%;
  background: rgba(108, 121, 142, 0.68);
}
.corpus-dots {
  position: absolute;
  inset: 10px;
}
.corpus-cluster-label {
  appearance: none;
  border: 0;
  position: absolute;
  z-index: 3;
  font: 700 9px var(--sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(26, 22, 18, 0.56);
  background: transparent;
  border-radius: 999px;
  padding: 1px 3px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.14s ease,
    color 0.14s ease,
    transform 0.14s ease,
    box-shadow 0.14s ease;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86),
    0 0 8px rgba(255, 253, 248, 0.88);
}
.corpus-cluster-label:hover,
.corpus-cluster-label.is-active {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 0 0 1px rgba(132, 102, 178, 0.3) inset;
  transform: translateY(-1px);
}
.corpus-cluster-label:focus-visible {
  outline: 2px solid rgba(132, 102, 178, 0.45);
  outline-offset: 2px;
}
.corpus-cluster-label.l-medicine {
  left: 3%;
  top: 3%;
}
.corpus-cluster-label.l-finance {
  left: 75%;
  top: 3%;
}
.corpus-cluster-label.l-legal {
  left: 3%;
  top: 91%;
}
.corpus-cluster-label.l-math {
  left: 80%;
  top: 91%;
}
.corpus-cluster-label.l-coding {
  left: 33%;
  top: 3%;
}
.corpus-cluster-label.l-other {
  left: 88%;
  top: 58%;
}
.corpus-dot {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.84;
  transition:
    left 0.45s ease,
    top 0.45s ease,
    opacity 0.28s ease,
    transform 0.28s ease;
}
.corpus-dot.entering {
  animation: corpusDotIn 0.34s ease-out;
}
.corpus-dot.leaving {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
}
.corpus-dot.d-medicine {
  background: rgba(196, 74, 63, 0.82);
  box-shadow: 0 0 8px rgba(196, 74, 63, 0.36);
}
.corpus-dot.d-finance {
  background: rgba(45, 112, 152, 0.82);
  box-shadow: 0 0 8px rgba(45, 112, 152, 0.34);
}
.corpus-dot.d-legal {
  background: rgba(47, 107, 64, 0.82);
  box-shadow: 0 0 8px rgba(47, 107, 64, 0.36);
}
.corpus-dot.d-math {
  background: rgba(128, 95, 168, 0.82);
  box-shadow: 0 0 8px rgba(128, 95, 168, 0.34);
}
.corpus-dot.d-coding {
  background: rgba(212, 130, 37, 0.86);
  box-shadow: 0 0 8px rgba(212, 130, 37, 0.38);
}
.corpus-dot.d-other {
  background: rgba(108, 121, 142, 0.8);
  box-shadow: 0 0 8px rgba(108, 121, 142, 0.3);
}
@keyframes corpusDotIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25);
  }
  100% {
    opacity: 0.84;
    transform: translate(-50%, -50%) scale(1);
  }
}
.corpus-side {
  display: grid;
  gap: 9px;
}
.portal-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(179, 162, 198, 0.56);
  border-radius: 999px;
  background: rgba(247, 241, 253, 0.9);
  width: fit-content;
}
.portal-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 700 10px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  cursor: pointer;
  transition:
    background 0.14s ease,
    color 0.14s ease;
}
.portal-tab:hover {
  background: rgba(132, 102, 178, 0.12);
  color: var(--ink);
}
.portal-tab.is-active {
  background: rgba(132, 102, 178, 0.2);
  color: var(--ink);
}
.portal-tab:focus-visible {
  outline: 2px solid rgba(132, 102, 178, 0.42);
  outline-offset: 1px;
}
.portal-card {
  border: 1px solid rgba(179, 162, 198, 0.62);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 248, 0.95),
    rgba(250, 246, 255, 0.92)
  );
  padding: 8px;
  display: none;
  gap: 7px;
  box-shadow: 0 12px 24px -24px rgba(40, 25, 10, 0.32);
}
.portal-card.is-active {
  display: grid;
}
.portal-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.portal-card-head .title {
  color: var(--ink);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.portal-card-head .badge {
  border: 1px solid rgba(47, 107, 64, 0.35);
  color: var(--green-2);
  background: rgba(47, 107, 64, 0.12);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}
.portal-card-head .badge.soft {
  border-color: rgba(179, 162, 198, 0.5);
  color: var(--ink-2);
  background: rgba(241, 233, 251, 0.72);
}
.portal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.portal-stage-cycle {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 16px;
  align-items: stretch;
}
.portal-card-legend .portal-stage-cycle {
  margin-top: 0;
}
.portal-stage-wheel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(56px, 1fr));
  gap: 12px;
  min-height: 248px;
  padding: 8px;
  isolation: isolate;
}
.portal-stage-wheel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  border: 1.5px dashed rgba(101, 163, 242, 0.55);
  box-shadow: 0 0 16px rgba(101, 163, 242, 0.16);
  pointer-events: none;
  z-index: 0;
}
.pipeline-cycle-core {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  border: 1px solid rgba(93, 136, 202, 0.45);
  background: radial-gradient(
    circle at 35% 30%,
    rgba(248, 252, 255, 0.98),
    rgba(228, 238, 252, 0.92)
  );
  color: #275b8a;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 12px 20px -18px rgba(33, 67, 115, 0.56);
  z-index: 1;
  pointer-events: none;
}
.pipeline-stage-btn {
  appearance: none;
  border: 1px solid rgba(118, 183, 255, 0.48);
  border-radius: 11px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(237, 245, 255, 0.92)
  );
  color: #162640;
  padding: 10px 10px;
  min-height: 80px;
  display: grid;
  justify-items: center;
  gap: 3px;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease,
    background 0.16s ease;
  box-shadow: 0 12px 22px -18px rgba(33, 67, 115, 0.52);
  z-index: 2;
  text-align: center;
}
.pipeline-stage-btn .stage-index {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(35, 72, 115, 0.78);
}
.pipeline-stage-btn .stage-label {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
.pipeline-stage-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(73, 204, 255, 0.72);
  box-shadow:
    0 16px 22px -20px rgba(0, 146, 217, 0.52),
    0 0 0 1px rgba(73, 204, 255, 0.2);
}
.pipeline-stage-btn:focus-visible {
  outline: 2px solid rgba(73, 204, 255, 0.42);
  outline-offset: 2px;
}
.pipeline-stage-btn.is-active {
  border-color: rgba(73, 204, 255, 0.76);
  background:
    linear-gradient(
      180deg,
      rgba(231, 249, 255, 0.98),
      rgba(224, 240, 255, 0.98)
    ),
    radial-gradient(circle at 22% 0%, rgba(94, 228, 255, 0.28), transparent 58%);
  box-shadow:
    0 16px 24px -20px rgba(0, 146, 217, 0.56),
    0 0 0 1px rgba(73, 204, 255, 0.24),
    0 0 18px rgba(73, 204, 255, 0.18);
  animation: pipelineStagePulse 2.2s ease-in-out infinite;
}
.pipeline-stage-btn[data-stage-id="collect"] {
  grid-column: 2;
  grid-row: 1;
}
.pipeline-stage-btn[data-stage-id="curate"] {
  grid-column: 3;
  grid-row: 2;
}
.pipeline-stage-btn[data-stage-id="posttrain"] {
  grid-column: 2;
  grid-row: 3;
}
.pipeline-stage-btn[data-stage-id="regression"] {
  grid-column: 1;
  grid-row: 2;
}
.portal-stage-detail {
  border: 1px solid rgba(179, 162, 198, 0.56);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 248, 0.95),
    rgba(248, 243, 255, 0.9)
  );
  padding: 12px 13px;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 248px;
  box-shadow: 0 12px 24px -22px rgba(40, 25, 10, 0.34);
}
.portal-stage-detail .detail-step {
  color: #2f6b40;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.portal-stage-detail h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.pipeline-visual-wrap {
  margin: 2px 0 0;
  border: 1px solid rgba(173, 157, 192, 0.46);
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(242, 237, 251, 0.9)
  );
  padding: 8px;
  display: grid;
  gap: 0;
}
.pipeline-visual {
  width: 95%;
  margin: 0 auto;
  aspect-ratio: 1.65 / 1;
  object-fit: contain;
  display: block;
  border-radius: 7px;
  background: #fff;
  border: 1px solid rgba(173, 157, 192, 0.36);
}
@keyframes pipelineStagePulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pipeline-stage-btn.is-active {
    animation: none;
  }
}
.corpus-kpi {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 7px 9px;
  background: rgba(255, 253, 248, 0.84);
}
.corpus-kpi .k-label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 4px;
  font-weight: 600;
}
.corpus-kpi strong {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.corpus-kpi.removed strong {
  color: var(--hug-2);
}
.corpus-side .corpus-live-note {
  margin: 0;
}
.corpus-side .corpus-train-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  gap: 8px;
  box-shadow: none;
}
.corpus-side .corpus-legend {
  align-self: stretch;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
  gap: 6px;
}
.corpus-side .corpus-legend li {
  border: 1px solid rgba(179, 162, 198, 0.46);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.8);
  padding: 3px 6px;
  font-size: 11px;
}
.corpus-side .corpus-legend li:hover {
  background: rgba(245, 238, 255, 0.88);
}
.corpus-legend {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.84);
  display: grid;
  gap: 8px;
}
.corpus-legend li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  border-radius: 9px;
  transition: background 0.14s ease;
}
.corpus-legend li:hover {
  background: rgba(132, 102, 178, 0.08);
}
.corpus-legend li::before {
  display: none;
}
.corpus-legend .name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.corpus-legend .swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.corpus-legend .count {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.corpus-domain-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 3px 7px;
  margin-left: -7px;
  cursor: pointer;
  transition:
    background 0.14s ease,
    color 0.14s ease;
}
.corpus-domain-trigger:hover,
.corpus-domain-trigger.is-active {
  background: rgba(132, 102, 178, 0.12);
  color: var(--ink);
}
.corpus-domain-trigger:focus-visible {
  outline: 2px solid rgba(132, 102, 178, 0.45);
  outline-offset: 2px;
  background: rgba(132, 102, 178, 0.1);
}
.corpus-domain-gain {
  font: 700 10px var(--sans);
  letter-spacing: 0.08em;
  color: var(--green-2);
  background: rgba(47, 107, 64, 0.12);
  border: 1px solid rgba(47, 107, 64, 0.26);
  border-radius: 999px;
  padding: 1px 6px;
  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  white-space: nowrap;
}
.corpus-domain-trigger:hover .corpus-domain-gain,
.corpus-domain-trigger:focus-visible .corpus-domain-gain,
.corpus-domain-trigger.is-active .corpus-domain-gain {
  opacity: 1;
  transform: translateY(0);
}
.corpus-live-note {
  border: 1px dashed rgba(179, 162, 198, 0.6);
  border-radius: 11px;
  padding: 7px 8px;
  background: rgba(255, 253, 248, 0.74);
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.4;
}
.corpus-live-note strong {
  color: var(--ink);
  font-weight: 700;
}
.corpus-train-panel {
  border: 1px solid rgba(179, 162, 198, 0.68);
  border-radius: 11px;
  background: rgba(250, 246, 255, 0.92);
  padding: 10px 11px 11px;
  display: grid;
  gap: 9px;
}
.corpus-train-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: start;
}
.corpus-train-left {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.corpus-train-right {
  min-width: 0;
  border-left: 1px solid rgba(179, 162, 198, 0.46);
  padding-left: 11px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.corpus-train-right .plot-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.corpus-train-right .plot-title .hint {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  color: var(--ink-2);
}
.corpus-train-head {
  display: grid;
  gap: 3px;
}
.corpus-train-head strong {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.03em;
}
.corpus-train-head span {
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.35;
}
.corpus-train-controls {
  display: grid;
  gap: 8px;
}
.corpus-train-field {
  display: grid;
  gap: 4px;
}
.corpus-train-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  color: var(--ink-3);
}
.corpus-train-field select {
  width: 100%;
}
.corpus-train-field select {
  appearance: none;
  border: 1px solid rgba(179, 162, 198, 0.78);
  border-radius: 8px;
  padding: 6px 8px;
  font: 600 11px var(--sans);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.95);
}
.corpus-train-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.corpus-train-kpi {
  border: 1px solid rgba(179, 162, 198, 0.58);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.86);
  padding: 7px 8px;
  display: grid;
  gap: 2px;
}
.corpus-train-kpi .label {
  font-size: 9.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.corpus-train-kpi strong {
  color: var(--ink);
  font: 700 16px/1 var(--serif);
  letter-spacing: -0.02em;
}
.corpus-train-kpi .stat {
  font-size: 9px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.corpus-train-domain-list {
  list-style: none;
  margin: 0;
  padding: 5px 7px;
  display: grid;
  gap: 1px;
  border: 1px solid rgba(179, 162, 198, 0.5);
  border-radius: 9px;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 248, 0.9),
    rgba(247, 241, 255, 0.82)
  );
}
.corpus-train-domain-list li {
  display: grid;
  gap: 3px;
  padding: 4px 2px;
}
.corpus-train-domain-list li + li {
  border-top: 1px solid rgba(179, 162, 198, 0.3);
}
.corpus-train-domain-row {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-2);
}
.corpus-train-domain-row .name {
  font-weight: 700;
  color: var(--ink);
  font-size: 11.5px;
}
.corpus-train-domain-row .delta-main {
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  text-align: right;
  white-space: nowrap;
  min-width: 52px;
}
.corpus-train-domain-row .delta-main.up {
  color: var(--green-2);
}
.corpus-train-domain-row .delta-main.down {
  color: #b74438;
}
.corpus-train-bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(211, 199, 226, 0.76),
    rgba(198, 184, 218, 0.62)
  );
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.52),
    inset 0 -1px 2px rgba(80, 63, 108, 0.16);
}
.corpus-train-bar .base,
.corpus-train-bar .delta-segment {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
}
.corpus-train-bar .base {
  left: 0;
  background: rgba(137, 113, 171, 0.42);
}
.corpus-train-bar .delta-segment.pos {
  background: linear-gradient(
    90deg,
    rgba(47, 107, 64, 0.86),
    rgba(64, 145, 88, 0.95)
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}
.corpus-train-bar .delta-segment.neg {
  background: linear-gradient(
    90deg,
    rgba(183, 68, 56, 0.88),
    rgba(212, 92, 74, 0.95)
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}
.corpus-train-bar .delta-segment {
  transition:
    left 0.42s ease,
    width 0.42s ease;
}
.corpus-train-bar .marker {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(71, 58, 95, 0.28);
  background: rgba(126, 101, 165, 0.92);
}
.corpus-train-bar .marker.current {
  background: rgba(40, 98, 57, 0.95);
}
.corpus-train-bar .marker.current.neg {
  background: rgba(181, 60, 46, 0.95);
}
.stream {
  border: 1px solid rgba(179, 162, 198, 0.56);
  border-radius: 20px;
  background: var(--surface);
  box-shadow:
    0 20px 38px -32px rgba(40, 25, 10, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.36) inset;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.stream-head {
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(211, 200, 218, 0.78);
  background: linear-gradient(
    180deg,
    rgba(245, 239, 250, 0.9),
    rgba(255, 255, 255, 0.72)
  );
}
.stream-head .stream-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-bottom: 6px;
  font-weight: 600;
}
.stream-head h2 {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stream-head p {
  color: var(--ink-2);
  font-size: 14px;
}

.tiers {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 26px 16px 20px;
  position: relative;
  counter-reset: tier;
}
.tiers::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 30px;
  bottom: 24px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(132, 102, 178, 0.1),
    rgba(132, 102, 178, 0.42),
    rgba(132, 102, 178, 0.1)
  );
}
.tier-card {
  counter-increment: tier;
  width: min(100%, var(--tier-width, 100%));
  margin-inline: auto;
  position: relative;
  border: 1px solid rgba(211, 200, 218, 0.88);
  border-radius: 14px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 16px 30px -28px rgba(40, 25, 10, 0.28);
}
.tier-card:nth-child(1) {
  --tier-width: 90%;
}
.tier-card:nth-child(2) {
  --tier-width: 94%;
}
.tier-card:nth-child(3) {
  --tier-width: 97%;
}
.tier-card:nth-child(4) {
  --tier-width: 100%;
}
.tier-card::after {
  content: "stage " counter(tier);
  position: absolute;
  top: 10px;
  right: 12px;
  border: 1px solid rgba(132, 102, 178, 0.38);
  border-radius: 999px;
  padding: 3px 8px;
  background: #f8f3ff;
  color: #655485;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  z-index: 2;
}
.tier-top {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  cursor: pointer;
  padding: 20px 18px 16px;
  transition: background 0.15s ease;
}
.tier-top::-webkit-details-marker {
  display: none;
}
.tier-top::marker {
  content: "";
}
.tier-top:hover {
  background: linear-gradient(
    180deg,
    rgba(248, 243, 255, 0.9),
    rgba(255, 255, 255, 0.7)
  );
}
.tier-top::after {
  content: "Show details";
  grid-column: 1 / -1;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #655485;
  margin-top: 1px;
}
.tier-card[open] .tier-top {
  background: linear-gradient(
    180deg,
    rgba(248, 243, 255, 0.95),
    rgba(255, 255, 255, 0.78)
  );
}
.tier-card[open] .tier-top::after {
  content: "Hide details";
  color: var(--hug-2);
}
.tier-name {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 430;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-right: 92px;
}
.tier-price {
  display: grid;
  gap: 2px;
  justify-items: start;
  color: var(--green-2);
  white-space: nowrap;
}
.price-line {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.price-prefix {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--ink-3);
}
.price-number {
  font-family: var(--serif);
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 520;
  color: var(--green-2);
}
.price-quarter-number {
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: color-mix(in oklab, var(--green-2) 76%, #243832);
}
.price-unit {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ink-3);
}
.tier-copy {
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 0;
}
.tier-body {
  border-top: 1px dashed rgba(211, 200, 218, 0.75);
  padding: 14px 18px 18px;
  display: grid;
  gap: 12px;
}
.tier-list {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.tier-list li {
  padding-left: 14px;
  position: relative;
}
.tier-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--hug) 42%, #8a8073);
  position: absolute;
  left: 1px;
  top: 8px;
}

.trial {
  margin-top: 14px;
  border: 1px solid rgba(132, 102, 178, 0.44);
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(247, 241, 253, 0.86),
    rgba(255, 255, 255, 0.88)
  );
  box-shadow:
    0 20px 36px -34px rgba(60, 45, 90, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.38) inset;
  padding: 20px;
}

.sample-data {
  margin-top: 10px;
  border: 1px solid rgba(132, 102, 178, 0.38);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(252, 249, 255, 0.84),
    rgba(255, 255, 255, 0.92)
  );
  box-shadow:
    0 20px 34px -34px rgba(60, 45, 90, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.36) inset;
  padding: 16px;
}
.sample-data h3 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(22px, 2.9vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.sample-data p {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.sample-actions {
  margin-bottom: 10px;
}
.sample-download-btn {
  appearance: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    background 0.15s ease;
}
.sample-download-btn:hover {
  transform: translateY(-1px);
  background: #2d2720;
}
.sample-download-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}
.sample-table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid rgba(179, 162, 198, 0.64);
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.sample-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1360px;
  font-size: 13px;
  color: var(--ink-2);
  table-layout: auto;
}
.sample-table col.col-time {
  width: 190px;
}
.sample-table col.col-source {
  width: 155px;
}
.sample-table col.col-domain {
  width: 120px;
}
.sample-table col.col-difficulty {
  width: 122px;
}
.sample-table col.col-confidence {
  width: 96px;
}
.sample-table col.col-cashback {
  width: 150px;
}
.sample-table col.col-summary {
  width: 30%;
}
.sample-table col.col-edits {
  width: 40%;
}
.sample-table th,
.sample-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(211, 200, 218, 0.62);
  vertical-align: top;
  white-space: normal;
  line-height: 1.35;
}
.sample-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(248, 243, 255, 0.96);
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  border-bottom: 1px solid rgba(179, 162, 198, 0.72);
  backdrop-filter: blur(3px);
}
.sample-table tbody tr:nth-child(even) {
  background: rgba(251, 247, 255, 0.48);
}
.sample-table tbody tr:hover {
  background: rgba(245, 238, 255, 0.7);
}
.sample-table td.time {
  width: 165px;
  color: var(--ink-3);
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.sample-table td.numeric {
  width: 74px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}
.sample-table td.difficulty {
  text-align: center;
}
.difficulty-meter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}
.difficulty-meter .block {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(179, 162, 198, 0.62);
  background: rgba(236, 228, 245, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.difficulty-meter .block.on {
  background: linear-gradient(
    180deg,
    rgba(132, 102, 178, 0.84),
    rgba(110, 82, 154, 0.9)
  );
  border-color: rgba(95, 72, 135, 0.78);
}
.sample-table td.cashback {
  width: 110px;
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: var(--green-2);
  letter-spacing: 0.01em;
}
.sample-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  font-weight: 700;
  white-space: nowrap;
}
.sample-pill.ai {
  background: rgba(132, 102, 178, 0.14);
  border-color: rgba(132, 102, 178, 0.3);
  color: #5f4b82;
}
.sample-pill.domain {
  background: rgba(47, 107, 64, 0.12);
  border-color: rgba(47, 107, 64, 0.26);
  color: #2f6b40;
}
.sample-table td.summary {
  white-space: normal;
  min-width: 360px;
  line-height: 1.35;
}
.sample-table td.edit-snippet {
  white-space: normal;
  min-width: 520px;
  line-height: 1.35;
  font-size: 12px;
  border-left: 1px dashed rgba(179, 162, 198, 0.6);
}
.sample-table td.edit-snippet .edit-meta {
  margin-bottom: 6px;
}
.sample-table td.edit-snippet .edit-count {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(179, 162, 198, 0.7);
  background: rgba(245, 239, 252, 0.92);
  color: var(--ink-2);
  font: 600 10.5px var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  white-space: nowrap;
}
.sample-table thead th.edit-col {
  border-left: 1px dashed rgba(179, 162, 198, 0.75);
}
.sample-table td.edit-snippet .fragment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--ink-2);
}
.sample-table td.edit-snippet .dots {
  color: var(--ink-3);
  letter-spacing: 0.04em;
  font-family: var(--mono);
}
.sample-table td.edit-snippet .bad {
  color: #7a1f1a;
  background: rgba(196, 74, 63, 0.16);
  border: 1px solid rgba(196, 74, 63, 0.26);
  border-radius: 6px;
  padding: 1px 5px;
  margin: 0 2px;
  text-decoration: line-through;
  text-decoration-thickness: 1.6px;
  text-decoration-color: rgba(122, 31, 26, 0.85);
}
.sample-table td.edit-snippet .good {
  color: #1f5530;
  background: rgba(47, 107, 64, 0.16);
  border: 1px solid rgba(47, 107, 64, 0.3);
  border-radius: 6px;
  padding: 1px 5px;
  margin: 0 2px;
}
.sample-table td.edit-snippet .arrow {
  color: var(--ink-3);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}
.sample-table tbody tr:last-child td {
  border-bottom: 0;
}
.sample-table tbody tr.sample-row-leaving {
  opacity: 0;
  transform: translateY(-14px);
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}
.trial h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 7px;
}
.trial h3 em {
  font-style: italic;
  color: var(--green-2);
}
.trial p {
  color: var(--ink-2);
  margin-bottom: 12px;
  max-width: 74ch;
  font-size: 14.5px;
}
.trial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.trial-card {
  border: 1px solid rgba(179, 162, 198, 0.7);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}
.trial-card .trial-name {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
  font-weight: 700;
}
.trial-card .trial-title {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.trial-card ul {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.trial-card li {
  padding-left: 14px;
  position: relative;
}
.trial-card li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-2);
  position: absolute;
  left: 1px;
  top: 8px;
}

.cta-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 13px;
}
.cta-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 9px 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 700;
  transition:
    transform 0.14s ease,
    background 0.15s ease;
}
.cta-btn:hover {
  transform: translateY(-1px);
  background: #2d2720;
}

footer.bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
footer.bottom em {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--ink-2);
  font-style: italic;
}

@media (max-width: 1040px) {
  .streams {
    grid-template-columns: 1fr;
  }
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .corpus-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portal-card.portal-card-metrics,
  .portal-card.portal-card-training,
  .portal-card.portal-card-legend {
    grid-column: span 2;
  }
}
@media (max-width: 760px) {
  .app {
    padding: 0 16px 34px;
  }
  header.top {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero h1 .hero-question {
    white-space: normal;
  }
  .corpus-side {
    grid-template-columns: 1fr;
  }
  .portal-card.portal-card-metrics,
  .portal-card.portal-card-training,
  .portal-card.portal-card-legend {
    grid-column: span 1;
  }
  .portal-stage-cycle {
    grid-template-columns: 1fr;
  }
  .corpus-train-layout {
    grid-template-columns: 1fr;
  }
  .corpus-train-right {
    border-left: 0;
    border-top: 1px solid rgba(179, 162, 198, 0.46);
    padding-left: 0;
    padding-top: 9px;
  }
  .portal-stage-wheel {
    min-height: 190px;
    gap: 8px;
  }
  .corpus-plot {
    min-height: 410px;
  }
  .corpus-scene {
    inset: 8px;
  }
  .corpus-dots {
    inset: 6px;
  }
  .pipeline-stage-btn {
    min-height: 68px;
    padding: 8px;
  }
  .hero-panel {
    padding: 0;
  }
  .token-cycle-diagram {
    min-height: 340px;
  }
  .token-cycle-diagram {
    width: 100%;
    margin-right: 0;
  }
  .token-cycle-node.users {
    top: 7%;
  }
  .token-cycle-node.hugclaims,
  .token-cycle-node.frontier-labs {
    bottom: 7%;
    width: 40%;
  }
  .bridge-grid {
    grid-template-columns: 1fr;
  }
  .trial-grid {
    grid-template-columns: 1fr;
  }
  .hero,
  .corpus-bridge,
  .stream-head,
  .trial {
    padding: 16px;
  }
  .tiers {
    padding: 10px;
  }
  .tiers::before {
    display: none;
  }
  .tier-card,
  .tier-card:nth-child(1),
  .tier-card:nth-child(2),
  .tier-card:nth-child(3),
  .tier-card:nth-child(4) {
    width: 100%;
  }
}
