/* ============================================================================
   EPIEME HOME — use cases (11-use-cases).

   The vendor treatment was a hard white card butted against a grey slab,
   text-only tabs floating over a ruler, and a button pinned to the bottom of
   a tall column. This sheet keeps the markup and the tab behaviour and
   changes only how it looks: the section sits on the same warm cream band as
   the features section, the tabs become a segmented pill control, the two
   panes become soft rounded cards with a little air between them, the copy
   and its button stay together, and the illustration rests on a warm mint
   wash with real padding. The ruler is retired.

   Scoped to `.section_use-cases.uc-section`; authored classes use `uc-`.
   ============================================================================ */

.uc-section {
  --uc-ink: #1d2a24;
  --uc-ink-soft: #5d6a63;
  --uc-teal: #00896e;
  --uc-green: #0b1c15;
  --uc-cream: #f7f4ef;
  --uc-cream-deep: #efeae2;
  --uc-cream-edge: #e9e2d8;
  --uc-mint-1: #f0f6f2;
  --uc-mint-2: #dcebe2;
  --uc-radius: 1.75rem;

  border-top: 1px solid var(--uc-cream-edge);
  background-color: var(--uc-cream);
  color: var(--uc-ink);
}

.uc-section .container-large {
  border-left-color: var(--uc-cream-edge);
  border-right-color: var(--uc-cream-edge);
}

.uc-section .use-cases_component {
  gap: 2.5rem;
}

.uc-section .content-frame {
  background-color: transparent;
}

/* ── tabs: a segmented pill control ────────────────────────────────────── */
.uc-section .use-cases_tab-controls {
  display: none;
}

.uc-section .use-cases_tab-wrap {
  gap: 1.5rem;
}

.uc-section .use-cases_tabs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.uc-section .use-cases_tabs-menu-default {
  position: static;
  display: inline-flex;
  align-self: flex-start;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.3rem;
  border: 0;
  border-radius: 999px;
  background-color: var(--uc-cream-deep);
  overflow-x: auto;
  scrollbar-width: none;
}

.uc-section .use-cases_tabs-menu-default::-webkit-scrollbar {
  display: none;
}

.uc-section .use-cases_tab-link {
  flex: 0 0 auto;
  align-self: auto;
  height: auto;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background-color: transparent;
  opacity: 1;
  color: var(--uc-ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.uc-section .use-cases_tab-link:hover {
  color: var(--uc-ink);
}

.uc-section .use-cases_tab-link:focus-visible {
  outline: 2px solid var(--uc-teal);
  outline-offset: 2px;
}

.uc-section .use-cases_tab-link.w--current {
  background-color: #fff;
  color: var(--uc-ink);
  box-shadow: 0 1px 2px rgba(11, 28, 21, 0.08), 0 0 0 1px rgba(11, 28, 21, 0.04);
}

/* ── panes: two soft cards with air between them ──────────────────────── */
.uc-section .use-cases_pane-item {
  border: 0;
}

.uc-section .use-cases_pane-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.25rem;
}

.uc-section .use-cases_pane-item.w--tab-active .use-cases_pane-inner {
  animation: uc-fade 0.32s ease both;
}

@keyframes uc-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.uc-section .use-cases_pane-left {
  justify-content: flex-start;
  gap: 1.75rem;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  border: 1px solid var(--uc-cream-edge);
  border-radius: var(--uc-radius);
  background-color: #fff;
}

.uc-section .use-case_panel-left-top {
  gap: 0.75rem;
}

/* The "01" tag becomes a small teal index. */
.uc-section .use-case_panel-left-top .tag {
  color: var(--uc-teal);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.uc-section .use-case_panel-left-top h3 {
  margin: 0;
  color: var(--uc-ink);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.uc-section .use-case_panel-left-top p {
  margin: 0;
  max-width: 36ch;
  color: var(--uc-ink-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Button: the same pill as the features section. */
.uc-section .use-cases_pane-left .button.is-secondary {
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background-color: var(--uc-green);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.uc-section .use-cases_pane-left .button.is-secondary:hover {
  background-color: var(--uc-teal);
  transform: translateY(-1px);
}

.uc-section .use-cases_pane-left .button.is-secondary:focus-visible {
  outline: 2px solid var(--uc-teal);
  outline-offset: 2px;
}

/* Illustration pane: a warm mint wash with padding, no hard grey slab. */
.uc-section .use-cases_pane-right {
  width: auto;
  min-height: 24rem;
  max-height: none;
  border: 1px solid var(--uc-cream-edge);
  border-radius: var(--uc-radius);
  background: radial-gradient(120% 110% at 25% 0%, var(--uc-mint-1) 0%, var(--uc-mint-2) 100%);
}

.uc-section .vertical-tabs_background-wrap {
  inset: clamp(1.25rem, 3vw, 2.5rem);
  width: auto;
  height: auto;
}

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .uc-section .use-cases_pane-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .uc-section .use-cases_pane-right {
    min-height: 18rem;
  }
  .uc-section .use-cases_tabs-menu-default {
    align-self: stretch;
    grid-template-columns: none;
  }
}

@media (max-width: 479px) {
  .uc-section .use-cases_pane-left {
    padding: 1.5rem;
  }
  .uc-section .use-cases_pane-right {
    min-height: 14rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uc-section .use-cases_pane-item.w--tab-active .use-cases_pane-inner {
    animation: none;
  }
  .uc-section .use-cases_tab-link,
  .uc-section .use-cases_pane-left .button.is-secondary {
    transition: none;
  }
}
