.assurance-note {
  margin: -.5rem 0 1.25rem;
  color: var(--muted, #91a1b5);
  font-size: .82rem;
  text-align: right;
}

.exception-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 180px auto;
  gap: .75rem;
  align-items: end;
  margin: 0 0 1rem;
}

.exception-filters label {
  display: grid;
  gap: .35rem;
  color: var(--muted, #91a1b5);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.exception-filters input,
.exception-filters select,
.currency-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 9px;
  padding: .55rem .7rem;
  color: inherit;
  background: rgba(15, 23, 42, .72);
}

.exception-filters span {
  padding-bottom: .65rem;
  color: var(--muted, #91a1b5);
  font-size: .82rem;
}

.equation-actions,
.workspace-actions,
.showcase-cta > div:last-child,
footer > div:last-child {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}

.workspace-actions {
  max-width: 720px;
  align-items: center;
  justify-content: flex-end;
}

.workspace-actions .source-strip {
  flex: 1 1 300px;
}

.button[disabled],
input[disabled] {
  opacity: .48;
  cursor: not-allowed;
}

.graph-node.assurance rect {
  stroke: #8b5cf6;
}

.graph-node.assurance .node-meta {
  fill: #c4b5fd;
}

.gate-card.review {
  border-color: rgba(245, 158, 11, .45);
  box-shadow: 0 24px 70px rgba(245, 158, 11, .08);
}

.gate-card.review .confidence-ring {
  background: conic-gradient(#f59e0b var(--score), rgba(255, 255, 255, .07) 0);
}

.currency-field {
  display: grid;
  grid-template-columns: auto 90px;
  justify-content: end;
  align-items: center;
  gap: .6rem;
  margin-top: .8rem;
  color: var(--muted, #91a1b5);
  font-size: .8rem;
}

.currency-field input {
  min-height: 38px;
  padding: .5rem .65rem;
  text-transform: uppercase;
}

.desktop-action {
  text-decoration: none;
}

.credibility-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: -10px 0 90px;
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  background: rgba(8, 20, 18, .72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
}

.credibility-strip div {
  min-height: 96px;
  display: grid;
  align-content: center;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

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

.credibility-strip strong {
  color: var(--mint);
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -.05em;
}

.credibility-strip span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.decision-story,
.showcase-proof {
  margin: 0 0 110px;
}

.story-heading {
  max-width: 900px;
  margin-bottom: 30px;
}

.story-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.story-heading > p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: #abc0b8;
  font-size: 17px;
}

.story-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}

.story-card {
  position: relative;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 70%),
    var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .18);
}

.story-card-hot {
  border-color: rgba(101, 245, 198, .35);
  background:
    linear-gradient(145deg, rgba(101, 245, 198, .13), transparent 72%),
    var(--panel);
}

.story-step {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.story-card > strong {
  display: block;
  margin: 22px 0 6px;
  color: var(--mint);
  font-size: clamp(42px, 5vw, 66px);
  line-height: .95;
  letter-spacing: -.07em;
}

.story-card h3 {
  margin: 18px 0 8px;
  font-size: 20px;
  letter-spacing: -.025em;
}

.story-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.story-card p b {
  color: var(--text);
}

.story-arrow {
  display: grid;
  place-items: center;
  color: rgba(101, 245, 198, .65);
  font-size: 28px;
}

.showcase-proof {
  padding-top: 110px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.proof-grid article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .022);
}

.proof-grid article > span {
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.proof-grid h3 {
  margin: 42px 0 12px;
  font-size: 24px;
  letter-spacing: -.035em;
}

.proof-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.showcase-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 24px 26px;
  border: 1px solid rgba(101, 245, 198, .24);
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(101, 245, 198, .10), rgba(255, 255, 255, .02));
}

.showcase-cta strong,
.showcase-cta span {
  display: block;
}

.showcase-cta strong {
  font-size: 18px;
}

.showcase-cta span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.showcase-cta a,
footer a {
  color: inherit;
  text-decoration: none;
}

footer > div:first-child strong,
footer > div:first-child span {
  display: block;
}

footer > div:first-child span {
  margin-top: 4px;
}

footer > div:last-child {
  align-items: center;
  justify-content: flex-end;
}

footer a:hover {
  color: var(--mint);
}

.tour-card {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  width: min(390px, calc(100vw - 30px));
  padding: 22px;
  border: 1px solid rgba(101, 245, 198, .38);
  border-radius: 18px;
  background: rgba(8, 22, 19, .97);
  box-shadow: 0 28px 100px rgba(0, 0, 0, .56), 0 0 0 1px rgba(255, 255, 255, .025) inset;
  backdrop-filter: blur(22px);
}

.tour-card[hidden] {
  display: none;
}

.tour-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tour-progress button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: transparent;
  font-size: 19px;
}

.tour-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.tour-card > p:not(.eyebrow) {
  min-height: 78px;
  margin: 0;
  color: #b7cac3;
  font-size: 14px;
}

.tour-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.tour-focus {
  position: relative;
  z-index: 35;
  outline: 2px solid var(--mint);
  outline-offset: 7px;
  box-shadow: 0 0 0 8px rgba(101, 245, 198, .08), 0 30px 100px rgba(0, 0, 0, .45) !important;
  transition: outline-color .2s ease, box-shadow .2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .preview-window {
    animation: showcase-float 8s ease-in-out infinite;
  }

  .tour-focus {
    animation: tour-pulse 1.8s ease-in-out infinite;
  }
}

@keyframes showcase-float {
  0%, 100% { transform: rotateY(-4deg) rotateX(2deg) translateY(0); }
  50% { transform: rotateY(-2deg) rotateX(1deg) translateY(-8px); }
}

@keyframes tour-pulse {
  0%, 100% { outline-color: rgba(101, 245, 198, .9); }
  50% { outline-color: rgba(101, 245, 198, .35); }
}

@media (max-width: 1100px) {
  .credibility-strip {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .credibility-strip div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .story-route {
    grid-template-columns: 1fr;
  }

  .story-arrow {
    min-height: 28px;
    transform: rotate(90deg);
  }

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

@media (max-width: 800px) {
  .exception-filters {
    grid-template-columns: 1fr 1fr;
  }

  .exception-filters label:first-child {
    grid-column: 1 / -1;
  }

  .assurance-note {
    text-align: left;
  }

  .workspace-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .workspace-actions .source-strip {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .credibility-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 70px;
  }

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

  .credibility-strip div:nth-child(1),
  .credibility-strip div:nth-child(2) {
    border-top: 0;
  }

  .credibility-strip div:nth-child(even),
  .credibility-strip div:last-child {
    border-right: 0;
  }

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

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

@media (max-width: 700px) {
  .desktop-action {
    display: none;
  }

  .hero-actions .button {
    width: 100%;
  }

  .story-card {
    min-height: auto;
  }

  .decision-story,
  .showcase-proof {
    margin-bottom: 78px;
  }

  .showcase-proof {
    padding-top: 78px;
  }

  .tour-card {
    right: 15px;
    bottom: 15px;
  }
}
