/* Native product stories: distinct tonal chapters, structured UI framing, and smooth choreography. */
.ws-showcase, .ws-insight, .ws-progress {
  color: var(--color-text);
  scroll-margin-top: 100px;
  padding-block: clamp(64px, 8vw, 108px);
}

/* Three distinct, harmonious tonal backgrounds per chapter */
.ws-showcase {
  background: color-mix(in srgb, var(--color-butter, #f3db83) 22%, var(--color-bg));
  border-top: 1px solid var(--color-border);
}

.ws-insight {
  background: color-mix(in srgb, var(--color-sky, #dce8fc) 34%, var(--color-bg));
  border-top: 1px solid var(--color-border);
}

.ws-progress {
  background: color-mix(in srgb, var(--color-lavender, #e7e3f6) 28%, var(--color-bg));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.ws-showcase .lp-wrap, .ws-insight .lp-wrap, .ws-progress .lp-wrap {
  max-width: 1320px;
}

.ws-section-heading {
  margin-bottom: 28px;
  max-width: 660px;
}

.ws-section-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.7vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ws-section-heading p {
  max-width: 43ch;
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-soft);
}

.ws-feature-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.54fr);
  gap: clamp(32px, 4.5vw, 60px);
  align-items: center;
}

.ws-feature-copy { min-width: 0; }

/* Elevated interactive tab list card */
.ws-feature-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.ws-feature-tab {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 17px;
  gap: 14px;
  align-items: start;
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--color-text-soft);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 200ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms ease, border-color 200ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ws-feature-tab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-surface-soft);
  color: var(--color-text-soft);
  transition: background-color 200ms ease, color 200ms ease;
}

.ws-feature-tab__copy { min-width: 0; padding-top: 5px; }
.ws-feature-tab__copy strong {
  display: block;
  font-size: 14.5px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

.ws-feature-short { display: none; }

.ws-feature-tab__copy > span {
  display: none;
  margin-top: 6px;
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-soft);
  animation: wsFadeSlide 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ws-feature-tab[aria-selected="true"] {
  background: color-mix(in srgb, var(--color-accent) 7%, var(--color-surface));
  border-color: color-mix(in srgb, var(--color-accent) 22%, var(--color-border));
  color: var(--color-accent-text);
}

.ws-feature-tab[aria-selected="true"] .ws-feature-tab__icon {
  background: color-mix(in srgb, var(--color-accent) 14%, transparent);
  color: var(--color-accent-text);
}

.ws-feature-tab[aria-selected="true"] .ws-feature-tab__copy strong {
  color: var(--color-accent-text);
}

.ws-feature-tab[aria-selected="true"] .ws-feature-tab__copy > span {
  display: block;
}

.ws-feature-tab__arrow {
  padding-top: 7px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 200ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ws-feature-tab[aria-selected="true"] .ws-feature-tab__arrow {
  opacity: 1;
  transform: translateX(0);
}

.ws-feature-tab:focus-visible, .ws-feature-panel:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.ws-feature-panel { min-width: 0; }
[data-feature-showcase][data-keyboard="true"] .ws-feature-tab { transition: none; }

/* Elevated showcase film frame */
.ws-film { margin: 0; min-width: 0; }

.ws-film__stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: 22px;
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ws-film__stage:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 68px rgba(15, 23, 42, 0.13), 0 6px 16px rgba(15, 23, 42, 0.05);
}

.ws-film__poster, .ws-film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.ws-film__video { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 260ms ease; }
.ws-film[data-has-frame="true"] .ws-film__video { opacity: 1; visibility: visible; }

.ws-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ws-section-footer { margin-top: 28px; }
.ws-example-note { margin: 26px 0 0; max-width: 85ch; font-size: 11.5px; line-height: 1.7; color: var(--color-text-soft); }
.ws-section-footer .ws-example-note { margin: 0; }

/* Section 2: Match insights cards */
.ws-insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

.ws-insight-copy { grid-column: 2; grid-row: 1; min-width: 0; }
.ws-insight__film { grid-column: 1; grid-row: 1; min-width: 0; }
.ws-insight .ws-section-heading h2 { font-size: clamp(32px, 3.3vw, 48px); }

.ws-insight-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.ws-insight-points > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease;
}

.ws-insight-points > div:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--color-accent) 28%, var(--color-border));
}

.ws-insight-points__icon {
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-accent) 11%, var(--color-surface-soft));
  color: var(--color-accent-text);
}

.ws-insight-points h3 { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 600; }
.ws-insight-points p { grid-column: 2; max-width: 37ch; margin: 0; font-size: 13px; line-height: 1.6; color: var(--color-text-soft); }

/* Section 3: Connected pipeline pill bar */
.ws-progress__heading {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: flex-end;
  margin-bottom: 36px;
}

.ws-progress__heading .ws-section-heading { margin: 0; }

.ws-journey {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 8px;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.ws-journey li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--color-text-soft);
  transition: background-color 220ms ease, color 220ms ease;
}

.ws-journey li > span {
  display: inline-flex;
  color: var(--color-accent-text);
}

.ws-journey li.is-active {
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
  color: var(--color-accent-text);
}

.ws-progress__film { max-width: 1080px; margin: auto; }
.ws-showcase ::selection, .ws-insight ::selection, .ws-progress ::selection {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

@keyframes wsFadeSlide {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
  .ws-feature-tab:hover {
    color: var(--color-text);
    background: var(--color-surface-soft);
  }
}

@media (max-width: 1100px) {
  .ws-feature-layout { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
  .ws-feature-copy { display: contents; }
  .ws-feature-copy > .ws-section-heading { order: 0; margin: 0; }
  .ws-feature-tabs { order: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px; border-radius: 16px; }
  .ws-feature-tab { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; text-align: center; }
  .ws-feature-tab__copy { padding-top: 0; }
  .ws-feature-tab__copy > span, .ws-feature-tab[aria-selected="true"] .ws-feature-tab__copy > span, .ws-feature-tab__arrow { display: none; }
  .ws-feature-tab__copy strong { font-size: 13px; }
  .ws-feature-panel { order: 2; width: 100%; }
  .ws-insight-layout { display: flex; flex-direction: column; gap: 28px; align-items: stretch; }
  .ws-insight-copy { display: contents; }
  .ws-insight-copy > .ws-section-heading { order: 0; margin: 0; }
  .ws-insight__film { order: 1; width: 100%; }
  .ws-insight-points { order: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 0; }
  .ws-section-heading h2 { font-size: 40px; }
  .ws-progress__heading { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 760px) {
  .ws-feature-layout { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .ws-feature-copy { display: contents; }
  .ws-feature-copy > .ws-section-heading { order: 0; margin: 0; }
  .ws-feature-tabs { order: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 4px; }
  .ws-feature-tab { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 74px; padding: 10px 4px; text-align: center; }
  .ws-feature-tab__copy strong { font-size: 11px; line-height: 1.3; font-weight: 500; }
  .ws-feature-full { display: none; }
  .ws-feature-short { display: inline; }
  .ws-feature-tab__copy > span, .ws-feature-tab[aria-selected="true"] .ws-feature-tab__copy > span, .ws-feature-tab__arrow { display: none; }
  .ws-feature-panel { order: 2; width: 100%; max-width: 520px; margin: auto; }
  .ws-film__stage { aspect-ratio: 39 / 80; }
  .ws-section-heading h2, .ws-insight .ws-section-heading h2 { font-size: clamp(32px, 7.4vw, 44px); }
  .ws-section-heading p { font-size: 15px; line-height: 1.7; margin-top: 14px; }
  .ws-insight-layout { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .ws-insight-copy { display: contents; }
  .ws-insight-copy > .ws-section-heading { order: 0; margin: 0; }
  .ws-insight__film { order: 1; width: 100%; max-width: 520px; margin: auto; }
  .ws-insight-points { order: 2; display: flex; flex-direction: column; gap: 12px; margin-top: 0; }
  .ws-journey { border-radius: 18px; width: 100%; justify-content: space-between; }
  .ws-progress__film { max-width: 520px; }
  .ws-example-note { margin-top: 20px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-feature-tab, .ws-feature-tab__icon, .ws-feature-tab__arrow, .ws-film__stage, .ws-film__video, .ws-insight-points > div, .ws-journey li {
    transition: none;
  }
  .ws-feature-tab__copy > span { animation: none; }
}

.ws-product-story > .lp-section { padding-block: clamp(52px, 7vw, 96px); }
