/* Channel picker (home "From self-serve to white-glove" + /demos).
   Folder-style tabs over one panel; the tabs advance on their own and each carries its own timer bar.
   Markup is built by /file/js/channel-picker.js inside any [data-channel-picker]; GSAP animates the switch. */
.channel-picker { width: 100%; max-width: 940px; margin: 28px auto 0; }

/* Tabs: inactive = warm gray, active = white and joined to the white panel below */
.cp-tabs { display: flex; gap: 6px; padding: 0 14px; position: relative; z-index: 1; }
.cp-tab {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: -1px; padding: 12px 12px 20px;
  border: 1px solid #d9d5d1; border-radius: 12px 12px 0 0; background: #f4f0eb;
  color: #6b6661; font: inherit; font-size: 17px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: background-color .3s ease, color .3s ease;
}
.cp-tab:hover { background: #efe9e2; color: #393531; }
.cp-tab[aria-selected="true"] { background: #fff; border-bottom-color: #fff; color: #393531; }
.cp-tab:focus-visible { outline: 2px solid #116f6d; outline-offset: -4px; }
.cp-tab img { width: 38px; height: 38px; flex: 0 0 auto; display: block; opacity: .55; transition: opacity .3s ease; }
.cp-tab:hover img, .cp-tab[aria-selected="true"] img { opacity: 1; }

/* Label with a smaller, dimmer subtext line under it */
.cp-label { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.cp-label small { margin-top: 3px; color: #8a847e; font-size: 13px; font-weight: 400; line-height: 1.2; }
.cp-tab[aria-selected="true"] .cp-label small { color: #6b6661; }

/* The timer bar sits along the bottom of each tab, just above the panel it advances */
.cp-bar { position: absolute; bottom: 9px; left: 14px; right: 14px; height: 4.5px; border-radius: 3px; background: rgba(57, 53, 49, .08); overflow: hidden; }
.cp-fill { display: block; height: 100%; width: 0; border-radius: 3px; background: #116f6d; }

/* Panel: one white card; panels share one grid cell, so its height never jumps */
.cp-panels {
  display: grid; padding: 28px 24px 32px; background: #fff;
  border: 1px solid #d9d5d1; border-radius: 16px; box-shadow: 0 12px 32px rgba(57, 53, 49, .06);
}
.cp-panel { grid-area: 1 / 1; text-align: center; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.cp-panel.is-active { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.channel-picker.cp-gsap .cp-panel { transition: none; } /* GSAP drives it instead */
.channel-picker .cp-panel h3 { margin: 0 0 8px; color: #393531; font-size: 24px; font-weight: 500; line-height: 1.3; text-transform: none; letter-spacing: normal; text-wrap: balance; }
.channel-picker .cp-panel p { max-width: 640px; margin: 0 auto; color: #595551; font-size: 17px; font-weight: 400; line-height: 1.5; text-align: center; text-wrap: balance; }
.channel-picker .cp-panel .cp-tip { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 4px auto 16px; padding: 7px 14px; border-radius: 999px; background: rgba(17, 111, 109, .07); color: #116f6d; font-size: 15px; line-height: 1.4; text-align: left; }
.cp-tip svg { flex: 0 0 auto; }
.cp-pic { display: block; max-width: 700px; margin: 0 auto; }
.cp-pic img, .cp-pic svg { display: block; width: 100%; height: auto; }
.cp-try {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  background: #116f6d; color: #fff; font-size: 16px; font-weight: 500; text-decoration: none;
  transition: background-color .2s ease;
}
.cp-try:hover { background: #0d5957; color: #fff; }
.cp-try:focus-visible { outline: 2px solid #116f6d; outline-offset: 3px; }

/* Narrow screens: keep one row of four tabs, icon above label */
@media (max-width: 640px) {
  .cp-tabs { gap: 4px; padding: 0 8px; }
  .cp-tab { flex-direction: column; gap: 4px; padding: 8px 4px 15px; font-size: 13px; border-radius: 10px 10px 0 0; }
  .cp-tab img { width: 28px; height: 28px; }
  .cp-label { align-items: center; }
  .cp-label small { display: none; } /* no room on phones */
  .cp-bar { bottom: 6px; left: 8px; right: 8px; }
  .cp-panels { padding: 20px 12px 24px; border-radius: 14px; }
  .channel-picker .cp-panel h3 { font-size: 20px; }
  .channel-picker .cp-panel p { font-size: 15px; }
  .channel-picker .cp-panel .cp-tip { font-size: 13px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-tab, .cp-tab img, .cp-panel, .cp-panel.is-active { transition: none; }
}
