/* FluxFront — "See it in action" tabbed showcase (#showcase). Four tabs; each panel = big visual (real
   screenshot or a CSS-built sample UI "vignette") + three bullets. js/modules/showcase-tabs.js drives
   the tabs (roving tabindex, arrow keys). Vignettes are illustrative sample UI, never real customer data. */
/* ===================== SHOWCASE ===================== */
.showcase { background: var(--surface); }
.tablist { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: var(--r-pill); background: var(--cream); border: 1px solid var(--hairline); width: max-content; max-width: 100%; margin-bottom: 26px; }
.tablist [role="tab"] { padding: 10px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); transition: background var(--d-2), color var(--d-2); }
.tablist [role="tab"]:hover { color: var(--ink); }
.tablist [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--cream); }
.tabpanel { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.tabpanel[hidden] { display: none; }
.tab-visual { min-width: 0; }
.tab-visual img { width: 100%; height: auto; }
.tab-copy h3 { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 600; letter-spacing: var(--ls-tight); line-height: 1.2; }
.tab-copy ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.tab-copy li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; }
.tab-copy li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--teal-wash)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat; }
.tab-copy .arrow-link { margin-top: 22px; }
@media (max-width: 900px) { .tabpanel { grid-template-columns: 1fr; } .tablist { width: 100%; } .tablist [role="tab"] { flex: 1; text-align: center; padding-inline: 10px; } }

/* ---- vignettes (sample UI) ---- */
.vig { background: var(--cream); border: 1px solid var(--hairline-2); border-radius: var(--r-xl); box-shadow: var(--sh-lg); padding: 24px 28px 20px; max-width: 760px; margin-inline: auto; }
.vig-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.vig-head b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.vig-head > span:not(.chip) { color: var(--ink-2); font-size: var(--t-sm); }
.vig-head .chip { margin-left: auto; }
.chip-good { border-color: #BFE3CB; background: var(--good-wash); color: #166534; }
.chip-good .dot { background: var(--good); }
.vig-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: var(--t-xs); color: var(--ink-3); }
.vig-btn { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: var(--r-pill); background: var(--teal); color: var(--ink); font-weight: 600; font-size: var(--t-xs); }
.vig-btn--ghost { background: transparent; border: 1px solid var(--hairline-2); color: var(--ink); }
/* inspection rows */
.vig-rows { list-style: none; margin: 6px 0 0; padding: 0; }
.vig-rows li { display: grid; grid-template-columns: 14px 1.1fr 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: var(--t-sm); }
.vig-rows li:last-child { border-bottom: 0; }
.vig-rows b { font-weight: 600; }
.vig-rows span { color: var(--ink-2); }
.vig-rows em { font-style: normal; font-size: var(--t-xs); color: var(--ink-3); white-space: nowrap; }
.st { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.st-good { background: var(--good); } .st-warn { background: var(--warn); } .st-bad { background: var(--bad); }
/* estimate lines */
.vig-lines { list-style: none; margin: 6px 0 0; padding: 0; }
.vig-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: var(--t-sm); color: var(--ink-2); }
.vig-lines li:last-child { border-bottom: 0; }
.vig-lines .vig-total { font-weight: 600; color: var(--ink); font-size: 1rem; }
/* inbox thread */
.vig-thread { display: grid; gap: 8px; margin-top: 14px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: var(--t-sm); line-height: 1.45; }
.msg-in { background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 4px; justify-self: start; }
.msg-out { background: var(--ink); color: var(--cream); border-bottom-right-radius: 4px; justify-self: end; }
.msg-sys { justify-self: center; background: var(--good-wash); color: #166534; font-size: var(--t-xs); font-weight: 600; border-radius: var(--r-pill); padding: 5px 12px; }
@media (max-width: 480px) { .vig { padding: 18px 16px 14px; } .vig-rows li { grid-template-columns: 12px 1fr auto; } .vig-rows li span { grid-column: 2 / -1; } }
