/* ============================================================
 * SHOWCASE — interactive "How it's used" section.
 * Vertical tab rail (left) + a large recolouring panel (right).
 * Each mode owns an accent (green/sky/red/orange) exposed as
 * --mode / --mode-tint / --mode-text so one ruleset themes all four.
 * ============================================================ */
.showcase {
  background: var(--ge-white);
  padding: var(--sp-16) 0;
}
@media (min-width: 768px) { .showcase { padding: var(--sp-20) 0; } }

/* Stage: asymmetric rail + panel. Stacks on mobile. */
.showcase__stage {
  margin-top: var(--sp-10);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 900px) {
  .showcase__stage {
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: var(--sp-6);
    align-items: stretch;
  }
}

/* ---------- Rail ---------- */
.showcase__rail {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.showcase__rail::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .showcase__rail {
    flex-direction: column;
    gap: var(--sp-3);
    overflow: visible;
    padding-bottom: 0;
  }
}

.showcase__tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  border: 0;
  border-radius: var(--radius-lg, 16px);
  background: transparent;
  color: var(--ge-text-secondary);
  cursor: pointer;
  position: relative;
  min-width: 210px;
  transition:
    background var(--dur-base) var(--ease-standard),
    color var(--dur-base) var(--ease-standard);
}
@media (min-width: 900px) { .showcase__tab { min-width: 0; } }

.showcase__tab:hover { color: var(--ge-navy); }
.showcase__tab.is-active {
  background: #E8E4F9;
  color: var(--ge-navy);
}
/* Chevron — only shown on the active tab */
.showcase__tab::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid #614DBA;
  border-top: 2px solid #614DBA;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-standard);
}
.showcase__tab.is-active::after { opacity: 1; }
.showcase__tab:focus-visible {
  outline: 2px solid #614DBA;
  outline-offset: 2px;
}
.showcase__tab-num { display: none; }
.showcase__tab-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.showcase__tab-name {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: var(--fw-regular);
  color: inherit;
  line-height: 1.15;
}
.showcase__tab-desc { display: none; }

/* Auto-advance progress bar — hidden in the pill treatment. */
.showcase__tab-progress { display: none; }
.showcase__tab-fill { display: none; }

/* ---------- Panel ---------- */
.showcase__panel {
  position: relative;
  border-radius: var(--radius-xl, 24px);
  overflow: hidden;
  min-height: clamp(420px, 52vw, 520px);
}

.showcase__pane {
  --mode: var(--ge-sky);
  --mode-tint: var(--ge-blue-3);
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  background: var(--mode-tint);
}
@media (min-width: 760px) {
  .showcase__pane {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-rows: 1fr;
    align-items: stretch;
  }
}
.showcase__pane[hidden] { display: none; }
.showcase__pane.is-active {
  display: grid;
  animation: showcasePaneIn 520ms var(--ease-standard) both;
}
@media (prefers-reduced-motion: reduce) {
  .showcase__pane.is-active { animation: none; }
}
@keyframes showcasePaneIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.showcase__pane--reception { --mode: var(--ge-green-4); --mode-tint: var(--ge-green-2); }
.showcase__pane--staff     { --mode: var(--ge-sky);     --mode-tint: var(--ge-blue-3); }
.showcase__pane--evacuation{ --mode: var(--ge-red-4);   --mode-tint: var(--ge-red-2); }
.showcase__pane--lockdown  { --mode: var(--ge-orange-safety); --mode-tint: var(--ge-orange-1); }
/* Unify all mode panels to the violet system (matches the filter buttons). */
.showcase__pane--reception,
.showcase__pane--staff,
.showcase__pane--evacuation,
.showcase__pane--lockdown { --mode: var(--ge-violet-4, #614DBA); --mode-tint: #FFFFFF; }

/* Big watermark number removed. */

.showcase__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-4);
  padding: clamp(28px, 3.4vw, 52px);
  max-width: 560px;
}
.showcase__tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--mode);
  font-size: 13px;
  font-weight: var(--fw-regular);
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(15, 20, 56, 0.06);
}
.showcase__heading {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: var(--fw-light);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ge-navy);
  margin: 0;
  text-wrap: balance;
}
.showcase__list {
  list-style: none;
  margin: var(--sp-2) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.showcase__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--sp-3);
  align-items: start;
  font-size: 15px;
  font-weight: var(--fw-light);
  line-height: 1.45;
  color: var(--ge-navy);
}
.showcase__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mode);
  color: #fff;
  margin-top: 1px;
}
.showcase__check svg { width: 12px; height: 12px; }

/* Read-more pill in the lockdown copy column. */
.showcase__readmore {
  align-self: flex-start;
  margin-top: var(--sp-2);
}
/* Read-more link — icon was unstyled (svg rendered unsized); give it a
 * proper inline pill + sized circular arrow. */
.modes__readmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: var(--fs-body-sm, 14px);
  font-weight: var(--fw-regular);
  color: var(--ge-violet-4, #614DBA);
  transition: color var(--dur-base) var(--ease-standard);
}
.modes__readmore-text { line-height: 1.2; }
.modes__readmore-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--ge-violet-4, #614DBA);
  color: var(--ge-white);
  transition: transform var(--dur-base) var(--ease-standard);
}
.modes__readmore-icon svg { width: 14px; height: 14px; }
.modes__readmore:hover { color: #4A3995; }
.modes__readmore:hover .modes__readmore-icon { transform: translateX(3px); }
.showcase__media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #fff;
  min-height: 240px;
}
@media (min-width: 760px) {
  .showcase__media { min-height: 0; height: 100%; }
}
.showcase__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-standard);
}
.showcase__pane.is-active .showcase__media img { transform: scale(1.0); }
.showcase__media:hover img { transform: scale(1.04); }

/* Phone mockup — don't crop; sit it centred on a clean white panel so
 * it fills its half like the photo panes in the other tabs. */
.showcase__media--mockup {
  background: var(--ge-white);
  display: grid;
  place-items: center;
}
.showcase__media--mockup img {
  position: static;
  width: auto;
  height: 86%;
  max-width: 78%;
  object-fit: contain;
}
.showcase__media--mockup:hover img { transform: scale(1.03); }

/* ============================================================
 * MOBILE (<= 759px) — simplify the product demo so it's easy to use:
 *  • Tab rail becomes a 2×2 grid of tappable chips (all four modes
 *    visible at once — no horizontal scrolling / hidden options).
 *  • Panes flow at natural height (image on top, copy below) instead
 *    of fixed-height absolutely-positioned cross-fades that cramp text.
 * ============================================================ */
@media (max-width: 759px) {
  .showcase { padding: var(--sp-8) 0; }
  .showcase__stage { margin-top: var(--sp-6); gap: var(--sp-4); }

  /* Rail: 2×2 grid of real-looking filter BUTTONS — each one clearly
   * tappable (outlined card by default, filled violet when active),
   * so all four modes read as a button group, not plain text. */
  .showcase__rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
    overflow: visible;
    padding-bottom: 0;
  }
  .showcase__tab {
    min-width: 0;
    flex: initial;
    justify-content: center;
    text-align: center;
    min-height: 52px;
    padding: var(--sp-3) var(--sp-3);
    background: var(--ge-white);
    border: 1.5px solid var(--ge-violet-2, #E8E4F9);
    border-radius: var(--radius-lg, 16px);
    color: var(--ge-navy);
    box-shadow: 0 1px 2px rgba(15, 20, 56, 0.05);
    transition:
      background var(--dur-base) var(--ease-standard),
      border-color var(--dur-base) var(--ease-standard),
      color var(--dur-base) var(--ease-standard),
      transform var(--dur-base) var(--ease-standard);
  }
  .showcase__tab:active { transform: scale(0.98); }
  /* Active filter = solid violet pill, white label */
  .showcase__tab.is-active {
    background: var(--ge-violet-4, #614DBA);
    border-color: var(--ge-violet-4, #614DBA);
    color: var(--ge-white);
    box-shadow: 0 6px 16px rgba(97, 77, 186, 0.28);
  }
  .showcase__tab.is-active .showcase__tab-name { color: var(--ge-white); }
  /* The desktop "active" chevron would float oddly inside a centred
   * button — drop it; the filled state is the indicator on mobile. */
  .showcase__tab::after { display: none; }
  .showcase__tab-text { align-items: center; }
  .showcase__tab-name { font-size: 16px; font-weight: var(--fw-regular); }
  .showcase__tab-desc { display: none; }  /* mode name alone is clear */

  /* Panel: let the active pane define the height */
  .showcase__panel {
    min-height: 0;
    border-radius: var(--radius-xl, 24px);
  }
  .showcase__pane.is-active {
    position: relative;
    display: flex;
    flex-direction: column;
  }
  /* Image leads, copy follows — a simple stacked card */
  .showcase__media {
    order: -1;
    position: relative;
    height: 220px;
    min-height: 0;
  }
  .showcase__media--mockup { height: 280px; }
  .showcase__copy {
    padding: var(--sp-6);
    max-width: none;
    gap: var(--sp-3);
  }
  .showcase__heading { font-size: 22px; }
  .showcase__list li { font-size: 15px; }
}
