/* The panels are ordinary readable articles until the carousel initializes. */
.why-slider {
  --why-enter: -32px;
  --why-exit: 32px;
  --why-ink: var(--soft-cyan);
  --why-surface: #082139;
  --why-line: rgba(111, 231, 255, .22);
  --why-wash: rgba(0, 136, 255, .12);
}
[data-theme="light"] .why-slider {
  --why-surface: #fff;
  --why-line: rgba(0, 102, 204, .22);
  --why-wash: rgba(0, 102, 204, .07);
}
.why-stage { display: grid; gap: 24px; touch-action: pan-y pinch-zoom; }
.why-slide {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center; gap: 36px; padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--glass-border); border-radius: 24px;
  background: var(--glass-bg); min-width: 0;
}
.is-enhanced .why-stage { gap: 0; position: relative; overflow: hidden; border-radius: 24px; }
.is-enhanced .why-slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(var(--why-enter));
  transition: opacity 450ms ease, transform 650ms cubic-bezier(.22, 1, .36, 1), visibility 0s 650ms;
}
.is-enhanced .why-slide.is-active {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0);
  transition-delay: 0s; z-index: 2;
}
.is-enhanced .why-slide.is-leaving {
  visibility: visible; transform: translateX(var(--why-exit)); z-index: 1;
}
.why-slide:focus-visible { outline: 2px solid var(--soft-cyan); outline-offset: -5px; }
.why-copy { min-width: 0; }
.why-kicker { color: var(--soft-cyan); font-size: .875rem; margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.why-kicker span { font-variant-numeric: tabular-nums; }
.why-kicker::after { content: ''; height: 1px; width: 40px; background: var(--why-line); }
.why-slide h3 { font-size: clamp(1.4rem, 2.6vw, 2.15rem); font-weight: 800; line-height: 1.65; margin-bottom: 18px; text-wrap: balance; }
.why-description { color: var(--text-secondary); font-size: 1.0625rem; line-height: 2.1; max-width: 510px; }
.why-note { display: flex; align-items: baseline; gap: 10px; margin-top: 26px; color: var(--text); font-size: .875rem; line-height: 1.9; }
.why-note::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--soft-cyan); flex: none; }
.why-visual {
  min-width: 0; position: relative; display: grid; place-items: center;
  background: radial-gradient(ellipse, var(--why-wash), transparent 70%);
}
.why-visual::before {
  content: ''; position: absolute; inset: 0; opacity: .4; pointer-events: none;
  background-image: linear-gradient(var(--why-line) 1px, transparent 1px), linear-gradient(90deg, var(--why-line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse, #000, transparent 68%);
}
.why-art { position: relative; width: 100%; max-width: 420px; height: auto; color: var(--why-ink); overflow: visible; }
.why-art .art-surface { fill: var(--why-surface); stroke: var(--why-line); stroke-width: 1.5; }
.why-art .art-line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-art .art-soft { fill: none; stroke: var(--why-line); stroke-width: 1.5; }
.why-art .art-fill { fill: currentColor; }
.why-art .art-wash { fill: var(--why-wash); }
.is-enhanced .is-active .why-draw { animation: why-draw 1100ms cubic-bezier(.22, 1, .36, 1) both; }
.is-enhanced .is-active .why-float { animation: why-float 6s ease-in-out infinite; }
.is-paused .why-float { animation-play-state: paused !important; }
.why-tabs {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px; margin-top: 18px;
}
.why-tab {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  min-width: 0; min-height: 76px; padding: 14px 16px;
  border: 1px solid transparent; border-radius: 12px; background: transparent;
  color: var(--text-secondary); font: inherit; font-size: .875rem; line-height: 1.7; text-align: start; cursor: pointer;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease;
}
.why-tab > span:first-child { font-size: .75rem; opacity: .8; }
.why-tab[aria-selected="true"] { background: var(--nav-link-hover-bg); color: var(--soft-cyan); border-color: var(--why-line); }
.why-tab:focus-visible { outline-offset: 2px; }
@media (hover: hover) { .why-tab:hover { background: var(--nav-link-hover-bg); color: var(--text); } }
.why-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; }
.why-controls[hidden], .why-tabs[hidden] { display: none; }
.why-arrows { display: flex; align-items: center; gap: 12px; }
.why-arrow, .why-play {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border: 1px solid var(--glass-border); border-radius: 10px;
  background: var(--glass-bg); color: var(--text); cursor: pointer; font: inherit; font-size: .8125rem;
}
.why-arrow { width: 44px; flex: none; }
.why-play { padding: 10px 14px; }
.why-arrow svg { width: 20px; height: 20px; }
.why-play svg { width: 16px; height: 16px; }
.why-play[aria-pressed="true"] .why-play-icon, .why-play[aria-pressed="false"] .why-pause-icon { display: none; }
.why-count { direction: ltr; font-size: .8125rem; color: var(--text-secondary); min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }
.why-progress { position: absolute; bottom: 1px; inset-inline: 24px; height: 2px; z-index: 3; overflow: hidden; pointer-events: none; }
.why-progress-fill { display: block; height: 100%; width: 100%; background: var(--soft-cyan); transform: scaleX(0); transform-origin: right; opacity: .6; }
.why-live, .why-input-help { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.why-compact-copy, .why-mobile-ui, .why-swipe-hint { display: none; }
@keyframes why-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes why-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 900px) {
  .why-slide { gap: 20px; padding: 28px; }
  .why-tabs { gap: 6px; }
  .why-tab { padding: 12px 8px; font-size: .8125rem; }
}
@media (max-width: 768px) {
  .is-enhanced .why-deck { position: relative; isolation: isolate; padding-inline: 12px; margin-bottom: 18px; }
  .is-enhanced .why-deck::before, .is-enhanced .why-deck::after {
    content: ''; position: absolute; border: 1px solid var(--why-line); border-radius: 24px;
    background: var(--why-surface); pointer-events: none;
  }
  .is-enhanced .why-deck::before { inset: 24px 30px -16px; opacity: .5; z-index: -2; }
  .is-enhanced .why-deck::after { inset: 12px 21px -8px; opacity: .8; z-index: -1; }
  .is-enhanced .why-stage { background: var(--why-surface); }
  .is-enhanced .why-swipe-hint {
    display: block; position: absolute; top: 50px; left: 4px; z-index: 4;
    width: 56px; height: 62px; color: var(--soft-cyan); pointer-events: none;
  }
  .why-swipe-hint svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .why-hand-shape { fill: url(#why-hand-skin); stroke: #ad7152; stroke-width: 1.6; }
  .why-hand-nail { fill: #ffe9d9; stroke: #cc9474; stroke-width: .8; }
  .why-hand-crease { stroke: #b97e5d; stroke-width: 1.2; opacity: .65; }
  .why-swipe-hand { transform: translateX(0); }
  .why-swipe-trace { opacity: 0; stroke: url(#why-swipe-ink); stroke-width: 2.4; transform-origin: 52px 20px; }
  .why-swipe-trace-soft { stroke-width: 1.5; opacity: .55; }
  .visible .why-swipe-hint { animation: why-swipe-dismiss 700ms cubic-bezier(.4, 0, .2, 1) 4.8s forwards; }
  .visible .why-swipe-hand { animation: why-index-gesture 2.4s ease-in-out 2 both; }
  .visible .why-swipe-trace { animation: why-trace-gesture 2.4s ease-in-out 2 both; }
  @keyframes why-trace-gesture {
    0%, 15%, 100% { opacity: 0; transform: scaleX(.35); }
    50%, 65% { opacity: .7; transform: scaleX(1); }
    85% { opacity: 0; transform: scaleX(1.1); }
  }
  @keyframes why-index-gesture {
    0%, 15%, 100% { transform: translateX(0); }
    50%, 65% { transform: translateX(10px); }
  }
  @keyframes why-swipe-dismiss { from { opacity: 1; } to { opacity: 0; } }
  .why-slide { grid-template-columns: 1fr; gap: 12px; padding: 20px; align-content: start; }
  .why-visual { grid-row: 1; }
  .why-art { max-width: 176px; }
  .why-kicker { margin-bottom: 8px; font-size: .8125rem; gap: 10px; }
  .why-kicker > span, .why-note, .why-full-copy { display: none; }
  .why-compact-copy { display: inline; }
  .why-slide h3 { font-size: 1.3rem; margin-bottom: 10px; }
  .why-description { font-size: .9375rem; line-height: 2; }
  .why-tabs, .why-controls { display: none; }
  .is-enhanced .why-mobile-ui { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 16px; }
  .why-mobile-dots { display: flex; align-items: center; justify-content: center; gap: 7px; height: 8px; }
  .why-mobile-dots span { width: 5px; height: 5px; border-radius: 10px; background: var(--text-secondary); opacity: .4; transition: width 300ms ease, opacity 300ms ease; }
  .why-mobile-dots .is-current { width: 20px; opacity: 1; background: var(--soft-cyan); }
}
@media (prefers-reduced-motion: reduce) {
  .why-slider *, .why-slider *::before { animation: none !important; transition: none !important; }
  .is-enhanced .why-slide { transform: none; }
  .is-enhanced .why-swipe-hint { display: none; }
}
