/* Cellara Proof Door — isolated state-2 page styles. */

.proof-hero .proof-boundary {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}

.proof-authority-micro { margin-top: 0.75rem; }

.proof-state-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.25rem 0 0;
}

.proof-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-sunk);
  color: var(--text-dim);
  white-space: nowrap;
}

.proof-badge--ok {
  background: #d8f3e7;
  color: #065f58;
  border-color: transparent;
}

.proof-badge--warn {
  background: #f8e7c8;
  color: #7a4b00;
  border-color: transparent;
}

.proof-badge--block {
  background: #f8d7da;
  color: #842029;
  border-color: transparent;
}

@media (prefers-color-scheme: dark) {
  .proof-badge--ok { background: #1a3d34; color: #9ee0c8; }
  .proof-badge--warn { background: #3d2e12; color: #f1c27a; }
  .proof-badge--block { background: #3d1a1f; color: #f1a0a8; }
}

.proof-cta-row { margin-top: 1.5rem; }

.proof-footer-boundary {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 1rem 0 1.25rem;
}

.proof-prompt-wrap {
  margin: 1rem 0 0;
  max-width: 100%;
}

.proof-prompt-disclosure,
.proof-protocol-details {
  margin: 1rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 12px 16px;
}

.proof-prompt-disclosure summary,
.proof-protocol-details summary {
  cursor: pointer;
  font-weight: 750;
}

.proof-prompt {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-sunk);
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  overflow-x: auto;
}

.copy-fallback {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
}

.proof-strip {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.proof-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--bg);
  max-width: 100%;
}

.proof-step--warn { border-color: #d4a017; }
.proof-step--ok { border-color: #0d9488; }
.proof-step--block { border-color: #b42318; }

.proof-step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.proof-step-head h3 {
  margin: 0;
  font-size: 1.05rem;
  flex: 1 1 auto;
  min-width: 12rem;
}

.proof-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.proof-account-card { margin: 0; }
.proof-limit { margin: 1rem 0; }

.proof-world-chooser { margin-top: 1rem; }

.proof-world-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 1rem 0 1.25rem;
}

.proof-world-option {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.proof-world-option strong,
.proof-world-option span {
  display: block;
}

.proof-world-option span {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 4px;
}

.proof-world-option:hover,
.proof-world-option:focus-visible,
.proof-world-option.is-active {
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.12);
}

.proof-manager-card {
  margin: 1rem 0;
  padding: clamp(18px, 3vw, 28px);
}

.proof-manager-card header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 1rem;
}

.proof-manager-card h3 { margin: 0; }

.proof-world-enhanced .proof-manager-card:not(.is-active) { display: none; }

.proof-manager-grid {
  display: grid;
  gap: 0;
  margin: 0;
}

.proof-manager-grid > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.proof-manager-grid dt {
  font-weight: 800;
  margin-bottom: 4px;
}

.proof-manager-grid dd {
  margin: 0;
  color: var(--text-dim);
}

.proof-manager-grid .proof-manager-next {
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid #0d9488;
  border-radius: var(--radius);
  background: rgba(13, 148, 136, 0.07);
}

.proof-manager-grid .proof-manager-next dd { color: var(--text); }

.proof-sample-boundary { margin: 0.75rem 0 1rem; }

.proof-beta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.proof-beta-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
  background: var(--bg);
}

.brief-example {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 0.75rem 0;
  background: var(--bg);
}

.brief-example summary {
  cursor: pointer;
  font-weight: 700;
}

.brief-example-body {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  margin: 0.75rem 0 0;
  max-width: 100%;
}

.machine-dir { padding-bottom: 3rem; }
.machine-dir ul { padding-left: 1.2rem; }

/* Living Company Test — a legible journey from fragments to reusable understanding. */
.living-hero {
  position: relative;
  overflow: hidden;
  padding-block: 64px 48px !important;
}

.living-hero .proof-cta-row { margin-top: 1rem; }
.living-hero .proof-authority-micro { margin-block: 1.15rem 0.9rem; }
.living-hero .proof-state-badges { margin-top: 0; }

.living-hero::before,
.living-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
}

.living-hero::before {
  width: min(54vw, 680px);
  height: min(54vw, 680px);
  top: -42%;
  right: -14%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.19), rgba(13, 148, 136, 0) 69%);
}

.living-hero::after {
  width: min(38vw, 480px);
  height: min(38vw, 480px);
  bottom: -40%;
  left: -10%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.13), rgba(217, 119, 6, 0) 70%);
}

.living-hero .wrap { position: relative; z-index: 1; }

.living-source-chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 1.75rem 0 1rem;
}

.living-source-chain article {
  position: relative;
  min-height: 11.5rem;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.living-source-chain article:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: #0d9488;
  font-weight: 900;
}

.living-source-chain span,
.living-source-chain strong,
.living-source-chain small { display: block; }

.living-source-chain span {
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.living-source-chain strong {
  margin: 0.8rem 0;
  line-height: 1.3;
}

.living-source-chain small {
  color: var(--text-dim);
  font-size: 0.77rem;
}

.living-insight-card {
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(13, 148, 136, 0.45);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.13), rgba(13, 148, 136, 0.025) 68%);
}

.living-insight-card::before {
  content: "CONNECTED";
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(13, 148, 136, 0.62);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.living-insight-card h3 {
  max-width: 26ch;
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  line-height: 1.07;
  letter-spacing: -0.025em;
}

.living-insight-card ul { margin: 1.25rem 0 0; padding-left: 1.2rem; }
.living-insight-card li { margin: 0.45rem 0; }

.living-act-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 1.5rem 0;
}

.living-act-card {
  position: relative;
  min-height: 15rem;
  padding: clamp(20px, 3.5vw, 30px);
  border-top: 4px solid #0d9488;
}

.living-act-card:nth-child(2) { border-top-color: #7c3aed; }
.living-act-card:nth-child(3) { border-top-color: #d97706; }
.living-act-card:nth-child(4) { border-top-color: #2563eb; }

.living-act-card h3 {
  margin: 2rem 0 0.6rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.living-act-card a { display: inline-block; margin-top: 0.7rem; font-weight: 750; }

.living-act-num {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 900;
}

.living-handoff,
.living-beta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 2rem 0 0;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-sunk);
}

.living-handoff h3,
.living-beta h3 { margin: 0 0 0.55rem; }
.living-handoff p:last-child,
.living-beta p:last-child { margin-bottom: 0; }

.living-verdict-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--line);
}

.living-verdict-grid > div {
  display: grid;
  gap: 6px;
  min-height: 9rem;
  align-content: center;
  padding: clamp(18px, 3vw, 26px);
  background: var(--bg);
}

.living-verdict-grid strong { color: #0f766e; font-size: 1.05rem; }
.living-verdict-grid span { color: var(--text-dim); }

.living-final-question {
  margin: 2rem 0;
  padding: clamp(22px, 4vw, 34px);
  border-left: 5px solid #0d9488;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-sunk);
}

.living-final-question h3 {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.45rem, 3.5vw, 2.15rem);
  line-height: 1.2;
}

.living-uses {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 1rem 0 1.5rem;
}

.living-uses span {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.88rem;
}

@media (prefers-color-scheme: dark) {
  .living-source-chain span,
  .living-verdict-grid strong { color: #5eead4; }
  .living-insight-card { background: linear-gradient(145deg, rgba(20, 184, 166, 0.16), rgba(20, 184, 166, 0.035) 68%); }
}

@media (max-width: 760px) {
  .living-source-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .living-source-chain article:nth-child(2)::after { display: none; }
}

@media (max-width: 620px) {
  .living-act-grid,
  .living-verdict-grid { grid-template-columns: 1fr; }
  .living-handoff,
  .living-beta { grid-template-columns: 1fr; }
  .living-handoff .btn,
  .living-beta .btn { width: 100%; text-align: center; }
}

@media (max-width: 440px) {
  .living-source-chain { grid-template-columns: 1fr; }
  .living-source-chain article { min-height: 0; }
  .living-source-chain article:not(:last-child)::after {
    content: "↓";
    display: grid;
    top: auto;
    right: 50%;
    bottom: -12px;
    transform: translateX(50%);
  }
  .living-insight-card::before { display: none; }
}

@media (max-width: 400px) {
  .proof-prompt,
  .brief-example-body {
    font-size: 0.82rem;
  }

  .proof-step-head h3 { min-width: 0; }

  .proof-cta-row .btn {
    width: 100%;
    text-align: center;
  }

  .proof-world-options { grid-template-columns: 1fr; }
}

/* Pipeline Reality Check — evidence-first, human-readable comparison. */
.pipeline-hero-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 2rem 0 1rem;
}

.pipeline-hero-result > div {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg);
  padding: clamp(18px, 4vw, 28px);
}

.pipeline-hero-result strong,
.pipeline-hero-result span { display: block; }

.pipeline-hero-result strong {
  font-size: clamp(2rem, 7vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.pipeline-hero-result span {
  color: var(--text-dim);
  margin-top: 8px;
  font-weight: 700;
}

.pipeline-compare,
.pipeline-surface-grid,
.pipeline-proof-limits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 1.5rem 0;
}

.pipeline-result-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(18px, 3vw, 28px);
  background: var(--bg);
}

.pipeline-result-card--raw { border-top: 5px solid #b45309; }
.pipeline-result-card--cellara { border-top: 5px solid #0d9488; }

.pipeline-card-label {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}

.pipeline-result-card h3,
.pipeline-surface-card h3 {
  margin-top: 0;
  font-size: clamp(1.45rem, 4vw, 2.1rem);
}

.pipeline-result-card blockquote {
  margin: 1.25rem 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--line);
  background: var(--bg-sunk);
  color: var(--text-dim);
  font-size: 0.92rem;
}

.pipeline-account-change {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 2rem 0 1rem;
}

.pipeline-account-change > div:not(.pipeline-arrow) {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 16px;
}

.pipeline-account-change span,
.pipeline-account-change strong,
.pipeline-account-change small { display: block; }

.pipeline-account-change span,
.pipeline-account-change small { color: var(--text-dim); }
.pipeline-account-change span { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.pipeline-account-change strong { margin: 8px 0; }
.pipeline-arrow { align-self: center; color: var(--text-dim); font-weight: 900; }

.pipeline-surface-card { padding: clamp(18px, 3vw, 26px); }

.pipeline-surface-card dl { margin: 1rem 0; }
.pipeline-surface-card dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.pipeline-surface-card dt { color: var(--text-dim); }
.pipeline-surface-card dd { margin: 0; font-weight: 850; }

.pipeline-method {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-sunk);
  padding: 14px 18px;
  margin: 1.5rem 0 0;
}
.pipeline-method summary { cursor: pointer; font-weight: 800; }

.pipeline-proof-limits > div {
  border-top: 3px solid var(--line);
  padding-top: 12px;
}

@media (max-width: 720px) {
  .pipeline-compare,
  .pipeline-surface-grid,
  .pipeline-proof-limits { grid-template-columns: 1fr; }

  .pipeline-account-change { grid-template-columns: 1fr; }
  .pipeline-arrow { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 460px) {
  .pipeline-hero-result { grid-template-columns: 1fr; }
  .pipeline-hero .btn { width: 100%; text-align: center; }
}
