/* ============================================================
   POD — work-artifact collage
   Layered, organic cluster of 6 cropped panels showing the
   kinds of artifacts the pod actually ships.
   ============================================================ */

.pod-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  margin-top: 48px;
  align-items: start;
}
@media (max-width: 980px) {
  .pod-split { grid-template-columns: 1fr; gap: 56px; }
}

/* ----- Right column: tight role list ----- */
.pod-roles {
  display: flex;
  flex-direction: column;
}
.pod-role-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid hsl(var(--border));
}
.pod-role-row:first-child { border-top: none; padding-top: 0; }
.pod-role-row:last-child  { padding-bottom: 0; }

.pod-role-marker {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: hsl(var(--muted) / .8);
  color: hsl(var(--foreground));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-top: 2px;
}
.pod-role-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 6px;
  line-height: 1.2;
  color: hsl(var(--foreground));
}
.pod-role-desc {
  font-size: 17px;
  line-height: 1.6;
  color: hsl(var(--foreground) / .85);
  margin: 0;
}

/* ----- Left column: case-study cards ----- */
.pod-collage {
  position: relative;
  width: 100%;
  max-width: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 980px) {
  .pod-collage { margin: 0 auto; max-width: 520px; }
}
@media (max-width: 520px) {
  .pod-collage { grid-template-columns: 1fr; }
}

/* Each case-study card */
.pod-case {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid hsl(218 25% 90%);
  box-shadow:
    0 8px 20px -10px rgb(15 23 42 / .12),
    0 2px 6px -2px rgb(15 23 42 / .06);
  opacity: 0;
  transform: translateY(16px);
}
.pod-collage.is-visible .pod-case {
  animation: pod-case-in 600ms cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes pod-case-in {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0);    }
}

/* Header strip — brand + surface */
.pod-case-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid hsl(218 25% 94%);
  gap: 8px;
}
.pod-case-brand {
  font-size: 12px;
  font-weight: 600;
  color: hsl(218 70% 18%);
  letter-spacing: -.005em;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.pod-case-surface {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: hsl(218 25% 46%);
  padding: 2px 6px;
  background: hsl(218 25% 95%);
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Screenshot — cropped to a consistent aspect */
.pod-case-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: hsl(218 25% 96%);
}
.pod-case-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0;
  transform: scale(1.04);
}
.pod-collage.is-visible .pod-case-img {
  animation: pod-img-in 800ms cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: inherit;
}
@keyframes pod-img-in {
  0%   { opacity: 0; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1);    }
}
.pod-case:nth-child(1) .pod-case-img { animation-delay: 400ms; }
.pod-case:nth-child(2) .pod-case-img { animation-delay: 640ms; }
.pod-case:nth-child(3) .pod-case-img { animation-delay: 880ms; }
.pod-case:nth-child(4) .pod-case-img { animation-delay: 1120ms; }
.pod-case:nth-child(5) .pod-case-img { animation-delay: 1360ms; }
.pod-case:nth-child(6) .pod-case-img { animation-delay: 1600ms; }

/* Footer — lift bar + number */
.pod-case-foot {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid hsl(218 25% 94%);
}
.pod-case-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: hsl(218 25% 93%);
  border-radius: 999px;
  overflow: hidden;
}
.pod-case-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: linear-gradient(to right,
    hsl(0 75% 60%) 0%,
    hsl(35 90% 55%) 30%,
    hsl(55 85% 50%) 55%,
    hsl(142 65% 45%) 100%);
  border-radius: 999px;
}
.pod-collage.is-visible .pod-case-bar-fill {
  animation: pod-bar-fill 900ms cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes pod-bar-fill {
  0%   { width: 0; }
  100% { width: var(--target, 0%); }
}

.pod-case-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pod-case-lift {
  font-family: var(--font-display, var(--font-sans));
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.022em;
  color: hsl(142 55% 32%);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pod-case-metric {
  font-size: 11px;
  color: hsl(218 25% 50%);
  font-weight: 500;
  letter-spacing: -.005em;
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  .pod-case,
  .pod-case-img,
  .pod-case-bar-fill {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .pod-case-bar-fill { width: var(--target, 0%) !important; }
}

/* ----- Dark-mode ----- */
body.style-remix .pod-case,
body.style-contrast .pod-case {
  background: hsl(218 30% 12%);
  border-color: hsl(218 25% 22%);
  box-shadow:
    0 8px 20px -10px rgb(0 0 0 / .5),
    0 2px 6px -2px rgb(0 0 0 / .35);
}
body.style-remix .pod-case-head,
body.style-contrast .pod-case-head {
  border-bottom-color: hsl(218 25% 22%);
}
body.style-remix .pod-case-foot,
body.style-contrast .pod-case-foot {
  border-top-color: hsl(218 25% 22%);
}
body.style-remix .pod-case-brand,
body.style-contrast .pod-case-brand { color: #fff; }
body.style-remix .pod-case-surface,
body.style-contrast .pod-case-surface {
  background: hsl(218 30% 18%);
  color: hsl(218 25% 75%);
}
body.style-remix .pod-case-bar,
body.style-contrast .pod-case-bar { background: hsl(218 30% 18%); }
body.style-remix .pod-case-lift,
body.style-contrast .pod-case-lift { color: hsl(142 65% 65%); }
body.style-remix .pod-case-metric,
body.style-contrast .pod-case-metric { color: hsl(218 25% 70%); }

/* Inner mock shells */
.pwm {
  position: absolute;
  inset: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Wireframe panel ===== */
.pwm-wire {
  background:
    radial-gradient(circle at 1px 1px, hsl(218 15% 88%) 1px, transparent 1px) 0 0 / 8px 8px,
    #fff;
  gap: 5px;
}
.pwm-wire-header {
  height: 12%;
  border: 1.2px solid hsl(218 25% 65%);
  border-radius: 4px;
}
.pwm-wire-hero {
  height: 26%;
  border: 1.2px solid hsl(218 25% 65%);
  border-radius: 4px;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 6px,
      hsl(218 25% 85%) 6px 7px);
}
.pwm-wire-cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.pwm-wire-col {
  border: 1.2px solid hsl(218 25% 65%);
  border-radius: 4px;
}
.pwm-wire-footer {
  height: 10%;
  border: 1.2px solid hsl(218 25% 65%);
  border-radius: 4px;
}
.pwm-wire-num {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgb(0 0 0 / .2);
}

/* ===== Heatmap panel ===== */
.pwm-heat {
  background:
    linear-gradient(180deg, hsl(218 20% 96%), hsl(218 18% 92%));
  gap: 6px;
  padding: 8px;
}
.pwm-heat-bar {
  display: flex; gap: 6px;
  height: 10%;
  align-items: center;
  padding: 0 4px;
}
.pwm-heat-bar span {
  display: block; width: 12%; height: 4px;
  border-radius: 2px;
  background: hsl(218 18% 60%);
}
.pwm-heat-bar span:first-child {
  width: 22%; height: 6px;
  background: hsl(218 30% 35%);
}
.pwm-heat-hero {
  height: 34%;
  background: hsl(218 18% 88%);
  border-radius: 4px;
  padding: 8px 10px;
  display: flex; flex-direction: column;
  justify-content: center; gap: 4px;
}
.pwm-heat-hero-title {
  height: 6px; width: 70%;
  background: hsl(218 25% 55%);
  border-radius: 2px;
}
.pwm-heat-hero-title-short { width: 50%; height: 5px; }
.pwm-heat-hero-cta {
  margin-top: 6px;
  width: 28%; height: 10px;
  background: hsl(218 30% 60%);
  border-radius: 3px;
}
.pwm-heat-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.pwm-heat-cards > div {
  background: hsl(218 18% 84%);
  border-radius: 4px;
}

/* Heatmap blobs */
.pwm-heat-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
  opacity: 0;
}
.pod-collage.is-visible .pwm-heat-blob {
  animation: heat-pulse 4s ease-in-out infinite;
}
.pwm-heat-blob-1 {
  width: 40%; height: 30%;
  top: 30%; left: 28%;
  background: radial-gradient(circle,
    hsl(0 80% 55% / .85),
    hsl(35 90% 55% / .55) 40%,
    transparent 70%);
  animation-delay: 0ms !important;
}
.pwm-heat-blob-2 {
  width: 22%; height: 18%;
  top: 6%; left: 4%;
  background: radial-gradient(circle,
    hsl(120 60% 50% / .6),
    transparent 70%);
  animation-delay: 600ms !important;
}
.pwm-heat-blob-3 {
  width: 28%; height: 22%;
  bottom: 8%; left: 8%;
  background: radial-gradient(circle,
    hsl(35 90% 55% / .7),
    transparent 70%);
  animation-delay: 1200ms !important;
}
.pwm-heat-blob-4 {
  width: 24%; height: 20%;
  bottom: 10%; right: 6%;
  background: radial-gradient(circle,
    hsl(0 80% 55% / .75),
    hsl(35 90% 55% / .4) 50%,
    transparent 75%);
  animation-delay: 1800ms !important;
}
@keyframes heat-pulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.08); }
}

/* ===== Session replay panel ===== */
.pwm-replay {
  background: hsl(218 18% 94%);
  padding: 8px;
  gap: 5px;
}
.pwm-replay-bar {
  height: 8%;
  background: hsl(218 18% 72%);
  border-radius: 3px;
}
.pwm-replay-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pwm-replay-block {
  height: 16%;
  background: hsl(218 18% 78%);
  border-radius: 3px;
}
.pwm-replay-block-short {
  width: 70%;
  height: 12%;
}
.pwm-replay-path {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.pod-collage.is-visible .pwm-replay-path-line {
  animation: replay-path-draw 2.4s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: 600ms;
}
@keyframes replay-path-draw {
  0%   { stroke-dashoffset: 220; }
  100% { stroke-dashoffset: 0;   }
}
.pwm-replay-dot {
  opacity: 0;
}
.pod-collage.is-visible .pwm-replay-dot {
  animation: replay-dot-in 280ms ease-out forwards;
}
@keyframes replay-dot-in {
  0%   { opacity: 0; transform: scale(.4); }
  100% { opacity: 1; transform: scale(1);  }
}

/* ===== A/B split panel ===== */
.pwm-ab {
  background: linear-gradient(180deg, hsl(218 20% 97%), hsl(218 18% 94%));
  padding: 10px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: stretch;
}
.pwm-ab-col {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid hsl(218 25% 86%);
  position: relative;
}
.pwm-ab-col-b {
  border-color: hsl(var(--primary) / .5);
  box-shadow: 0 0 0 2px hsl(var(--primary) / .12);
}
.pwm-ab-tag {
  position: absolute;
  top: -8px; left: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: hsl(218 18% 50%);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  display: flex; align-items: center; justify-content: center;
}
.pwm-ab-tag-b { background: hsl(var(--primary)); }
.pwm-ab-block {
  height: 8px;
  background: hsl(218 18% 82%);
  border-radius: 2px;
}
.pwm-ab-block-tall { height: 22px; }
.pwm-ab-block-short { width: 65%; }
.pwm-ab-cta {
  margin-top: auto;
  height: 14px;
  border-radius: 3px;
  background: hsl(218 18% 70%);
}
.pwm-ab-cta-b { background: hsl(var(--primary)); }
.pwm-ab-winner {
  position: absolute;
  top: 10px; right: 10px;
  background: hsl(142 50% 38%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  letter-spacing: .02em;
}

/* ===== Analytics chart panel ===== */
.pwm-chart {
  background: #fff;
  padding: 12px;
  gap: 8px;
}
.pwm-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.pwm-chart-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: hsl(218 20% 45%);
}
.pwm-chart-delta {
  font-size: 13px;
  font-weight: 700;
  color: hsl(142 50% 34%);
  font-variant-numeric: tabular-nums;
}
.pwm-chart-grid {
  position: absolute;
  inset: 36px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.pwm-chart-grid > div {
  height: 1px;
  background: hsl(218 18% 92%);
}
.pwm-chart-bars {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-top: 4px;
}
.pwm-chart-bar {
  flex: 1;
  background: hsl(218 18% 72%);
  border-radius: 2px 2px 0 0;
  height: 0;
}
.pwm-chart-bar.is-win {
  background: hsl(var(--primary));
}
.pod-collage.is-visible .pwm-chart-bar {
  animation: chart-bar-grow 700ms cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes chart-bar-grow {
  0%   { height: 0; }
  100% { height: var(--h, 40%); }
}

/* ===== Customer-interview note panel ===== */
.pwm-note {
  background: linear-gradient(180deg, hsl(50 95% 78%), hsl(48 90% 72%));
  padding: 18px 14px 10px;
  font-family: 'Segoe Print', 'Bradley Hand', 'Marker Felt', cursive;
}
.pwm-note-tape {
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 50%;
  height: 14px;
  background: hsl(0 0% 100% / .6);
  border: 1px solid hsl(0 0% 100% / .8);
}
.pwm-note-header {
  font-size: 11px;
  font-weight: 600;
  color: hsl(35 50% 25%);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.pwm-note-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: hsl(35 60% 20%);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pwm-note-list li {
  position: relative;
  padding-left: 14px;
}
.pwm-note-list li::before {
  content: '–';
  position: absolute;
  left: 0; top: 0;
  font-weight: 700;
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  .pod-panel,
  .pwm-heat-blob,
  .pwm-replay-path-line,
  .pwm-replay-dot,
  .pwm-chart-bar {
    animation: none !important;
    opacity: 1 !important;
  }
  .pod-panel { transform: rotate(var(--rot, 0deg)) !important; }
  .pwm-replay-path-line { stroke-dashoffset: 0 !important; }
  .pwm-chart-bar { height: var(--h, 40%) !important; }
}

/* ----- Dark-mode (style-remix / contrast) ----- */
body.style-remix .pod-panel,
body.style-contrast .pod-panel {
  box-shadow:
    0 24px 48px -20px rgb(0 0 0 / .55),
    0 6px 14px -6px rgb(0 0 0 / .35),
    0 0 0 1px hsl(218 20% 24%);
}
body.style-remix .pod-role-row,
body.style-contrast .pod-role-row {
  border-top-color: hsl(var(--border));
}
body.style-remix .pod-role-marker,
body.style-contrast .pod-role-marker {
  background: hsl(218 70% 60% / .14);
  color: hsl(218 80% 35%);
}
body.style-remix .pod-role-name,
body.style-contrast .pod-role-name { color: hsl(var(--foreground)); }
body.style-remix .pod-role-desc,
body.style-contrast .pod-role-desc { color: hsl(var(--foreground) / .72); }


/* ============================================================
   HOW WE HELP — orbital workflow diagram
   ============================================================ */

.help-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  margin-top: 48px;
  align-items: center;
}
@media (max-width: 980px) {
  .help-split { grid-template-columns: 1fr; gap: 48px; }
}

/* ----- Right column: text list ----- */
.help-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.help-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid hsl(var(--border));
}
.help-item:last-child { border-bottom: none; padding-bottom: 0; }

.help-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: hsl(var(--primary) / .10);
  color: hsl(var(--primary));
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  height: 22px;
  align-self: start;
  margin-top: 2px;
}
.help-item-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 0 0 4px;
  line-height: 1.25;
}
.help-item-text {
  font-size: 14px;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* ----- Left column: orbital diagram ----- */
.help-orbit {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.help-orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.help-orbit-path {
  fill: none;
  stroke: hsl(var(--primary) / .35);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
  stroke-dashoffset: 1500;
}
.help-orbit.is-visible .help-orbit-path {
  animation: orbit-draw 1400ms cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes orbit-draw {
  0%   { stroke-dashoffset: 1500; }
  100% { stroke-dashoffset: 0;    }
}

/* Center "Your site" card */
.help-orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow:
    0 12px 24px -10px rgb(15 23 42 / .25),
    0 0 0 1px hsl(218 25% 88%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.help-orbit.is-visible .help-orbit-center {
  animation: center-pulse 3.5s ease-in-out infinite;
}
@keyframes center-pulse {
  0%, 100% { box-shadow: 0 12px 24px -10px rgb(15 23 42 / .25), 0 0 0 1px hsl(218 25% 88%), 0 0 0 0 hsl(var(--primary) / .35); }
  50%      { box-shadow: 0 12px 24px -10px rgb(15 23 42 / .25), 0 0 0 1px hsl(218 25% 88%), 0 0 0 12px hsl(var(--primary) / 0); }
}

.help-orbit-favicon {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: hsl(218 25% 46%);
}
.help-orbit-favicon-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: hsl(var(--primary));
}
.help-orbit-center-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: hsl(218 70% 14%);
}

/* Orbiting nodes */
.help-orbit-node {
  position: absolute;
  top: calc(50% + var(--ty, 0%));
  left: calc(50% + var(--tx, 0%));
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 6px 14px -6px rgb(15 23 42 / .18),
    0 0 0 1px hsl(218 25% 88%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.7);
  z-index: 2;
}
.help-orbit.is-visible .help-orbit-node {
  animation: node-in 600ms cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes node-in {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1);  }
}

.help-orbit-node-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: hsl(var(--primary) / .12);
  color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.help-orbit-node-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  color: hsl(218 70% 14%);
}

/* Pulse traveling around the orbit */
.help-orbit-pulse {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: hsl(var(--primary));
  box-shadow: 0 0 20px hsl(var(--primary) / .6);
  offset-path: ellipse(40% 36% at 50% 50%);
  offset-distance: 0%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}
.help-orbit.is-visible .help-orbit-pulse {
  animation: pulse-orbit 12s linear infinite;
  animation-delay: 1600ms;
}
@keyframes pulse-orbit {
  0%   { offset-distance: 0%;   opacity: 1; }
  100% { offset-distance: 100%; opacity: 1; }
}

/* ----- Reduced motion for help section ----- */
@media (prefers-reduced-motion: reduce) {
  .help-orbit-path,
  .help-orbit-node,
  .help-orbit-center,
  .help-orbit-pulse {
    animation: none !important;
    opacity: 1 !important;
  }
  .help-orbit-path { stroke-dashoffset: 0 !important; }
  .help-orbit-node {
    transform: translate(-50%, -50%) scale(1) !important;
  }
}

/* ----- Dark-mode ----- */
body.style-remix .help-item,
body.style-contrast .help-item {
  border-bottom-color: hsl(218 18% 22%);
}
body.style-remix .help-item-title,
body.style-contrast .help-item-title { color: #fff; }
body.style-remix .help-item-text,
body.style-contrast .help-item-text { color: hsl(218 18% 70%); }
body.style-remix .help-orbit-center,
body.style-contrast .help-orbit-center {
  background: hsl(218 30% 12%);
  box-shadow:
    0 12px 24px -10px rgb(0 0 0 / .55),
    0 0 0 1px hsl(218 25% 24%);
}
body.style-remix .help-orbit-center-label,
body.style-contrast .help-orbit-center-label { color: #fff; }
body.style-remix .help-orbit-node,
body.style-contrast .help-orbit-node {
  background: hsl(218 30% 12%);
  box-shadow:
    0 6px 14px -6px rgb(0 0 0 / .4),
    0 0 0 1px hsl(218 25% 24%);
}
body.style-remix .help-orbit-node-label,
body.style-contrast .help-orbit-node-label { color: #fff; }
body.style-remix .help-orbit-favicon,
body.style-contrast .help-orbit-favicon { color: hsl(218 18% 70%); }


/* ============================================================
   POD FEATURED CASE
   Full-width single case-study spotlight: before/after panels
   side-by-side, big lift readout, thumbnail rail to swap cases.
   ============================================================ */

.pod-stack {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.pod-featured {
  position: relative;
  width: 100%;
  padding: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(.22,.61,.36,1),
              transform 700ms cubic-bezier(.22,.61,.36,1);
}
.pod-featured.is-visible {
  opacity: 1;
  transform: none;
}

/* Header strip: brand + surface on the left, lift on the right */
.pod-featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid hsl(var(--border));
}
.pod-featured-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.pod-featured-brand {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: hsl(var(--foreground));
  line-height: 1.1;
}
.pod-featured-surface {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / .6);
  padding: 4px 8px;
  border-radius: 4px;
}
.pod-featured-lift {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.pod-featured-lift-num {
  font-family: var(--font-display, var(--font-sans));
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  color: hsl(142 65% 32%);
  font-feature-settings: 'tnum' 1;
  font-variant-numeric: tabular-nums;
}
.pod-featured-lift-metric {
  font-size: 12px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Before / After stage — single drag-to-reveal slider */
.pod-featured-compare {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pod-featured-stage {
  --reveal: 50%;
  --aspect: 1.5;
  --stage-h: 580px;
  --stage-max-w: 760px;
  position: relative;
  /* Width derived from desired height x aspect, then capped — so the stage
     hugs the image instead of leaving stripe-letterboxing on the sides. */
  width: min(calc(var(--stage-h) * var(--aspect)), var(--stage-max-w), 100%);
  aspect-ratio: var(--aspect);
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: hsl(218 25% 96%);
  border: 1px solid hsl(var(--border));
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}
.pod-featured-stage.is-dragging { cursor: grabbing; }

.pod-featured-pane {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pod-featured-pane img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  -webkit-user-drag: none;
  image-rendering: -webkit-optimize-contrast;
}
.pod-featured-pane-after {
  clip-path: inset(0 0 0 var(--reveal));
}

/* Floating labels */
.pod-featured-tag {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: hsl(var(--foreground) / .75);
  padding: 5px 9px;
  border-radius: 4px;
  background: rgb(255 255 255 / .92);
  border: 1px solid hsl(var(--border));
  box-shadow: 0 2px 6px rgb(15 23 42 / .12);
  z-index: 2;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.pod-featured-tag-left  { left: 12px; }
.pod-featured-tag-right { right: 12px; }
.pod-featured-tag-win {
  color: hsl(142 65% 24%);
  background: rgb(220 252 231 / .95);
  border-color: hsl(142 45% 75%);
}

/* The vertical drag handle */
.pod-featured-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--reveal);
  width: 2px;
  background: rgb(255 255 255 / .95);
  box-shadow:
    0 0 0 1px rgb(15 23 42 / .18),
    0 4px 14px rgb(15 23 42 / .28);
  transform: translateX(-1px);
  z-index: 3;
  pointer-events: none;
}
.pod-featured-handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(255 255 255 / .98);
  box-shadow:
    0 0 0 1px rgb(15 23 42 / .12),
    0 8px 20px rgb(15 23 42 / .28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: hsl(218 30% 30%);
}
.pod-featured-stage.is-dragging .pod-featured-handle-grip {
  transform: translate(-50%, -50%) scale(1.06);
  transition: transform 120ms ease;
}

/* "drag to compare" hint — fades on first interaction */
.pod-featured-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(15 23 42 / .82);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 4;
  animation: pod-hint-pulse 2.2s ease-in-out infinite;
  transition: opacity 360ms ease, transform 360ms ease;
}
.pod-featured-stage.has-interacted .pod-featured-hint {
  opacity: 0;
  transform: translate(-50%, 8px);
  animation: none;
}
@keyframes pod-hint-pulse {
  0%, 100% { transform: translate(-50%, 0); opacity: .88; }
  50%      { transform: translate(-50%, -4px); opacity: 1; }
}

/* What we changed — a short note below the stage */
.pod-featured-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: hsl(var(--muted) / .5);
  border-left: 3px solid hsl(var(--primary));
  font-size: 14px;
  line-height: 1.55;
  color: hsl(var(--foreground) / .8);
}

/* Lift bar across the bottom */
.pod-featured-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: hsl(var(--muted) / .8);
  border-radius: 999px;
  margin-top: 28px;
  overflow: hidden;
}
.pod-featured-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: linear-gradient(
    90deg,
    hsl(142 65% 38%),
    hsl(142 65% 48%)
  );
  border-radius: 999px;
  transition: width 900ms cubic-bezier(.22,.61,.36,1);
}

/* Thumbnail rail — click to swap featured case */
.pod-featured-railwrap {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid hsl(var(--border));
}
.pod-featured-railbtn {
  flex: 0 0 auto;
  align-self: center;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary));
  background: hsl(var(--primary));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px -4px hsl(var(--primary) / .5);
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.pod-featured-railbtn:hover:not(:disabled) {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: #fff;
  filter: brightness(1.12);
  transform: scale(1.08);
  box-shadow: 0 8px 20px -4px hsl(var(--primary) / .6);
}
.pod-featured-railbtn:disabled {
  opacity: .35;
  cursor: default;
  box-shadow: none;
}
.pod-featured-rail {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.pod-featured-rail::-webkit-scrollbar { display: none; }
.pod-featured-thumb {
  appearance: none;
  flex: 0 0 230px;
  scroll-snap-align: start;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font: inherit;
  box-shadow: 0 1px 3px hsl(220 25% 20% / .08), 0 6px 16px -10px hsl(220 25% 20% / .25);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.pod-featured-thumb:hover {
  border-color: hsl(var(--primary) / .5);
  transform: translateY(-3px);
  box-shadow: 0 2px 6px hsl(220 25% 20% / .1), 0 12px 24px -10px hsl(220 25% 20% / .35);
}
.pod-featured-thumb.is-active {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / .25), 0 10px 22px -8px hsl(var(--primary) / .4);
}
.pod-featured-thumb img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: .92;
  transition: opacity 160ms ease;
}
.pod-featured-thumb:hover img,
.pod-featured-thumb.is-active img {
  opacity: 1;
}
.pod-featured-thumb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
}
.pod-featured-thumb-brand {
  font-size: 13px;
  font-weight: 600;
  color: hsl(var(--foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pod-featured-thumb-lift {
  flex: 0 0 auto;
  font-family: var(--font-display, var(--font-sans));
  font-size: 14px;
  font-weight: 700;
  color: hsl(142 65% 30%);
  text-align: right;
  font-feature-settings: 'tnum' 1;
  font-variant-numeric: tabular-nums;
}

/* Roles in a 2-column grid below the featured case */
.pod-roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 0;
}
.pod-roles-grid .pod-role-row {
  border-top: 1px solid hsl(var(--border));
  padding: 20px 0;
}
/* Re-establish "first row" treatment for the first row of each column */
.pod-roles-grid .pod-role-row:first-child,
.pod-roles-grid .pod-role-row:nth-child(2) {
  border-top: none;
  padding-top: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .pod-stack { gap: 56px; }
  .pod-featured { padding: 0; }
  .pod-featured-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pod-featured-lift { align-items: flex-start; }
  .pod-featured-lift-num { font-size: 36px; }
  .pod-featured-thumb { flex-basis: 190px; }
  .pod-roles-grid { grid-template-columns: 1fr; }
  .pod-roles-grid .pod-role-row:nth-child(2) {
    border-top: 1px solid hsl(var(--border));
    padding-top: 20px;
  }
}
@media (max-width: 620px) {
  .pod-featured-stage { --stage-h: 460px; --stage-max-w: 100%; }
  .pod-featured-thumb { flex-basis: 168px; }
  .pod-featured-railbtn { width: 38px; height: 38px; }
  .pod-featured-hint { font-size: 9px; padding: 6px 10px; }
}

/* Dark-mode treatment */
body.style-remix .pod-featured,
body.style-contrast .pod-featured {
  background: transparent;
  border: none;
  box-shadow: none;
}
body.style-remix .pod-featured-head,
body.style-contrast .pod-featured-head { border-bottom-color: hsl(218 25% 22%); }
body.style-remix .pod-featured-brand,
body.style-contrast .pod-featured-brand { color: #fff; }
body.style-remix .pod-featured-surface,
body.style-contrast .pod-featured-surface {
  background: hsl(218 30% 18%);
  color: hsl(218 25% 75%);
}
body.style-remix .pod-featured-tag,
body.style-contrast .pod-featured-tag {
  background: hsl(218 30% 18%);
  color: hsl(218 25% 75%);
  border-color: hsl(218 25% 24%);
}
body.style-remix .pod-featured-tag-win,
body.style-contrast .pod-featured-tag-win {
  background: hsl(142 40% 18%);
  color: hsl(142 65% 78%);
  border-color: hsl(142 40% 30%);
}
body.style-remix .pod-featured-placeholder,
body.style-contrast .pod-featured-placeholder {
  border-color: hsl(218 25% 26%);
  background:
    repeating-linear-gradient(
      135deg,
      hsl(218 25% 17%) 0 12px,
      hsl(218 25% 14%) 12px 24px
    );
}
body.style-remix .pod-featured-placeholder-label,
body.style-contrast .pod-featured-placeholder-label { color: hsl(218 25% 70%); }
body.style-remix .pod-featured-placeholder-sub,
body.style-contrast .pod-featured-placeholder-sub { color: hsl(218 25% 50%); }
body.style-remix .pod-featured-lift-num,
body.style-contrast .pod-featured-lift-num { color: hsl(142 65% 65%); }
body.style-remix .pod-featured-lift-metric,
body.style-contrast .pod-featured-lift-metric { color: hsl(218 25% 70%); }
body.style-remix .pod-featured-bar,
body.style-contrast .pod-featured-bar { background: hsl(218 25% 18%); }
body.style-remix .pod-featured-note,
body.style-contrast .pod-featured-note {
  background: hsl(218 30% 16%);
  color: hsl(218 20% 80%);
}
body.style-remix .pod-featured-railwrap,
body.style-contrast .pod-featured-railwrap { border-top-color: hsl(218 25% 22%); }
body.style-remix .pod-featured-railbtn,
body.style-contrast .pod-featured-railbtn {
  background: hsl(218 30% 14%);
  border-color: hsl(218 25% 22%);
  color: hsl(218 20% 80%);
}
body.style-remix .pod-featured-thumb,
body.style-contrast .pod-featured-thumb {
  background: hsl(218 30% 14%);
  border-color: hsl(218 25% 22%);
}
body.style-remix .pod-featured-thumb-meta,
body.style-contrast .pod-featured-thumb-meta {
  background: hsl(218 30% 14%);
  border-top-color: hsl(218 25% 22%);
}
body.style-remix .pod-featured-thumb-brand,
body.style-contrast .pod-featured-thumb-brand { color: hsl(218 20% 88%); }
body.style-remix .pod-featured-thumb-lift,
body.style-contrast .pod-featured-thumb-lift {
  color: hsl(142 65% 65%);
}
body.style-remix .pod-roles-grid .pod-role-row,
body.style-contrast .pod-roles-grid .pod-role-row {
  border-top-color: hsl(var(--border));
}
