/* SECTION 5: Dashboard showcase (agent B, v14, 2026-10-01).
   Sola's "Platform" pattern: an inset, rounded panel inside the frame (here the evergreen of the hero and footer),
   a centred head, and one product shot with Sola's 4px rgba(255,255,255,.25) ring. The four panels reuse the .mock card
   and "Sample data" pill from sections.css. Every selector starts with .showcase. */

/* Own top line (dots on it), no bottom line: Comparison's top line closes the panel's frame (integrator, v14). */
.showcase .showcase-box { padding: 8px; border-top: 1px solid var(--token-line); }
.showcase .showcase-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 104px 56px 40px;
  border-radius: 16px;
  background: var(--brand-deep);
}
/* the hero's film grain, very faint, so the panel isn't a flat swatch */
.showcase .showcase-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.showcase .showcase-head { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.showcase .showcase-head .eyebrow { color: var(--brand-accent); }
.showcase .showcase-head .h2 { color: var(--token-white); }
/* the three "every" phrases always stack, one per line */
.showcase .showcase-head .h2 span { display: block; }
.showcase .showcase-lede {
  max-width: 420px;
  font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -0.04em;
  color: var(--token-grey-d1);
}

/* ---------- the product shot ---------- */
.showcase .showcase-shot { margin: 64px auto 0; max-width: 1120px; }
.showcase .showcase-app {
  overflow: hidden;
  border-radius: 14px;
  background: #F3F2EC;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25), 0 40px 80px -32px rgba(0, 0, 0, .6);
}
.showcase .showcase-bar {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 16px;
  background: var(--token-bg);
  border-bottom: 1px solid #e7e6df;
}
.showcase .showcase-lights { position: absolute; left: 16px; top: 50%; display: flex; gap: 6px; transform: translateY(-50%); }
.showcase .showcase-lights i { width: 9px; height: 9px; border-radius: 50%; background: #dddbd3; }
.showcase .showcase-title {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: -0.03em; color: var(--token-grey-54);
}
.showcase .showcase-title svg { width: 13px; height: 13px; }
.showcase .showcase-title path { fill: var(--token-ink); }

.showcase .showcase-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 12px;
}
.showcase .showcase-card {
  display: flex; flex-direction: column;
  min-width: 0;
  padding: 18px 20px 14px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
}
.showcase .showcase-card .mock-head { margin-bottom: 4px; }
.showcase .showcase-card .mock-head b { font-size: 14px; letter-spacing: -0.03em; }
.showcase .showcase-desc {
  margin-bottom: 14px;
  font-size: 12.5px; font-weight: 500; line-height: 1.45; letter-spacing: -0.02em;
  color: var(--token-grey-7a);
  max-width: 52ch;
}

/* status colours: green #0E7A57, amber #B06A12, red #B3261E */
.showcase .is-green { color: #0E7A57; }
.showcase .is-red { color: #B3261E; }

/* ---------- tables (awarded vs. paid, scorecard) ---------- */
.showcase .showcase-table { width: 100%; border-collapse: collapse; font-feature-settings: "tnum"; }
/* when a card is taller than its table (it shares a grid row with a longer card), the rows share the extra height */
.showcase .showcase-card > .showcase-table { flex: 1 0 auto; }
.showcase .showcase-table thead th {
  padding: 0 0 8px;
  border-bottom: 1px solid #e9e8e2;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px; font-weight: 500; line-height: 1.3; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--token-grey-7a);
  text-align: right;
  vertical-align: bottom;
}
.showcase .showcase-table thead th:first-child { text-align: left; }
.showcase .showcase-table tbody th, .showcase .showcase-table td {
  padding: 11px 0;
  border-top: 1px solid #efeee8;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.showcase .showcase-table tbody tr:first-child > * { border-top: 0; }
.showcase .showcase-table tbody th { text-align: left; font-weight: 600; }
.showcase .showcase-table td + td, .showcase .showcase-table th + td { padding-left: 16px; }
.showcase .showcase-id { font-weight: 600; }
.showcase .showcase-who { font-weight: 500; color: var(--token-grey-61); }
.showcase .showcase-who::before { content: " · "; content: " · " / ", "; white-space: pre; color: var(--token-grey-ad); }
.showcase .showcase-chip {
  display: inline-block; padding: 1px 7px; border-radius: 6px;
  background: #efeee8; color: var(--token-grey-54);
  font-size: 12px; font-weight: 600;
}
.showcase .showcase-score td.is-red::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; border-radius: 50%; background: #B3261E;
}

/* ---------- unpaid awards by insurer ---------- */
/* Wide card: "Insurer C · 7 awards · $9,840" over the next step, the pill on the right.
   Narrow card (< 420px, i.e. tablet and phone): name and pill share the first line, the counts and next step sit below. */
.showcase .showcase-card { container-type: inline-size; }
.showcase .showcase-unpaid { display: flex; flex-direction: column; }
.showcase .showcase-unpaid li {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 3px;
  padding: 10px 0 10px 14px;
  border-top: 1px solid #efeee8;
}
.showcase .showcase-unpaid li:first-child { border-top: 0; padding-top: 2px; }
.showcase .showcase-unpaid li::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: #B06A12;
}
.showcase .showcase-unpaid li:first-child::before { top: 4px; }
.showcase .showcase-unpaid li.is-red::before { background: #B3261E; }
.showcase .showcase-u-main { grid-column: 1; grid-row: 1; color: var(--token-grey-61); font-feature-settings: "tnum"; }
.showcase .showcase-u-main b { font-weight: 600; color: var(--token-ink); }
.showcase .showcase-u-meta::before { content: " · "; content: " · " / ", "; white-space: pre; }
.showcase .showcase-u-next { grid-column: 1; grid-row: 2; font-size: 12.5px; color: var(--token-grey-7a); font-feature-settings: "tnum"; }
.showcase .showcase-u-next b { font-weight: 600; color: var(--token-ink-2); white-space: nowrap; }
.showcase .showcase-pill {
  grid-column: 2; grid-row: 1 / span 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px 2px 7px; border-radius: 30px;
  font-size: 11.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.5; white-space: nowrap;
  font-feature-settings: "tnum";
}
.showcase .showcase-pill i { width: 6px; height: 6px; border-radius: 50%; }
.showcase .showcase-pill.is-red { background: #FBEAE8; color: #B3261E; }
.showcase .showcase-pill.is-red i { background: #B3261E; }
.showcase .showcase-pill.is-amber { background: #FCF1E1; color: #8A5310; }
.showcase .showcase-pill.is-amber i { background: #B06A12; }
@container (max-width: 420px) {
  .showcase .showcase-who { display: block; font-size: 12px; }
  .showcase .showcase-who::before { content: none; }
  .showcase .showcase-u-meta { display: block; font-size: 12.5px; }
  .showcase .showcase-u-meta::before { content: none; }
  .showcase .showcase-pill { grid-row: 1; align-self: start; }
  .showcase .showcase-u-next { grid-column: 1 / -1; }
}

/* ---------- outcomes with reasons ---------- */
.showcase .showcase-stack { display: flex; gap: 3px; height: 10px; }
.showcase .showcase-stack i {
  border-radius: 3px;
  transform-origin: left center; transform: scaleX(0);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1) .9s;
}
.showcase .showcase-stack i:nth-child(2) { transition-delay: 1s; }
.showcase .showcase-stack i:nth-child(3) { transition-delay: 1.1s; }
.showcase .showcase-shot.in .showcase-stack i { transform: none; }
.showcase .showcase-stack .is-won, .showcase .showcase-legend .is-won { background: #0E7A57; }
.showcase .showcase-stack .is-lost, .showcase .showcase-legend .is-lost { background: #B3261E; }
.showcase .showcase-stack .is-nf, .showcase .showcase-legend .is-nf { background: #bdbab0; }
.showcase .showcase-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--token-grey-61); }
.showcase .showcase-legend li { display: flex; align-items: center; gap: 7px; }
.showcase .showcase-legend i { width: 8px; height: 8px; border-radius: 2px; }
.showcase .showcase-legend b { font-weight: 600; color: var(--token-ink); font-feature-settings: "tnum"; }
.showcase .showcase-subhead {
  margin-top: 16px; padding-bottom: 6px;
  border-bottom: 1px solid #e9e8e2;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--token-grey-7a);
}
.showcase .showcase-reasons li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 8px 0;
  border-top: 1px solid #efeee8;
}
.showcase .showcase-reasons li:first-child { border-top: 0; }
.showcase .showcase-reasons span { color: var(--token-ink-2); }
.showcase .showcase-reasons b { font-weight: 600; font-feature-settings: "tnum"; }

.showcase .showcase-cap {
  margin-top: 20px;
  font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: -0.02em;
  color: var(--token-grey-ad);
  text-align: center;
}

/* ---------- tablet (810–1199) ---------- */
@media (max-width: 1199px) {
  .showcase .showcase-panel { padding: 88px 24px 32px; }
  .showcase .showcase-shot { margin-top: 48px; }
  .showcase .showcase-card { padding: 16px 16px 12px; }
}

/* ---------- phone (< 810): one column, batch ids stack over the insurer ---------- */
@media (max-width: 809px) {
  /* 8px inset on phones too: the same inset as the security band, the closing CTA and the footer card (integrator) */
  .showcase .showcase-panel { padding: 64px 10px 20px; border-radius: 14px; }
  .showcase .showcase-head { padding: 0 14px; gap: 14px; }
  .showcase .showcase-lede { font-size: 15px; }
  .showcase .showcase-shot { margin-top: 40px; }
  .showcase .showcase-app { border-radius: 12px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 24px 48px -24px rgba(0, 0, 0, .6); }
  .showcase .showcase-bar { height: 36px; }
  .showcase .showcase-lights { left: 12px; gap: 5px; }
  .showcase .showcase-lights i { width: 7px; height: 7px; }
  .showcase .showcase-grid { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .showcase .showcase-card { padding: 14px 14px 10px; }
  .showcase .showcase-table tbody th, .showcase .showcase-table td { padding: 9px 0; }
  .showcase .showcase-table td + td, .showcase .showcase-table th + td { padding-left: 10px; }
  .showcase .showcase-table thead th { white-space: normal; }
  .showcase .showcase-score thead th { font-size: 9.5px; }
  .showcase .showcase-cap { margin-top: 16px; }
}

/* without JS the shot never gets .in: show the bar at full length */
.no-js .showcase .showcase-stack i { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .showcase .showcase-stack i { transition: none; transform: none; }
}
