/* Meta Static Ads: Kenneth feedback for the 3-step flow (#static-lab) and the
   time calculator (#static-capacity). Loaded last on meta-static-ads.html only. */

/* ============ 1. Three-step flow ============ */
.fx-flow {
  --fx-step-ms: 2800ms;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: 40px;
}
.fx-flow-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 15%, var(--omg-tint-yellow) 0, transparent 45%),
    radial-gradient(circle at 85% 90%, var(--omg-tint-cyan) 0, transparent 45%),
    var(--omg-tint-pink);
}
.fx-flow .static-ad {
  max-width: 440px;
  border: 0;
  border-radius: 24px;
  box-shadow: var(--omg-shadow-lift);
}
.fx-flow .static-ad-header {
  font-size: 14px;
  color: var(--omg-ink);
}
.fx-flow .static-ad-header small {
  font-size: 13px;
  font-weight: 600;
  color: var(--omg-muted);
}
.fx-flow .static-ad-visual {
  background: #f3edf1;
}
.fx-flow .static-ad-caption p {
  font-size: 14px;
  font-weight: 500;
  color: var(--omg-text);
  min-height: 3.2em;
}
.fx-flow .static-ad-caption > span {
  font-size: 14px;
  font-weight: 700;
  background: var(--omg-tint-pink);
  color: var(--omg-pink-ink);
}
.fx-flow[data-step='2'] .static-ad-caption > span {
  background: var(--omg-pink);
  color: #141018;
}
.fx-flow .static-ad[data-angle='2'] .static-ad-overlay > span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.fx-flow .static-ad[data-angle='2'] .static-ad-overlay h3 {
  color: var(--omg-ink);
}
.fx-flow-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  display: none;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--omg-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* Copy column: the active step is big; the three steps are small tabs below. */
.fx-flow-copy {
  min-width: 0;
}
.fx-flow-count {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--omg-pink-ink);
}
.fx-flow-toggle {
  margin-left: auto;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--omg-shadow);
  font: 700 13px/1 var(--body);
  color: var(--omg-text);
  cursor: pointer;
}
.fx-flow-toggle:hover {
  color: var(--omg-pink-ink);
}
.fx-flow-title {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(34px, 3.7vw, 54px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--omg-ink);
  min-height: 2.12em;
  text-wrap: balance;
}
.fx-flow-text {
  margin: 16px 0 0;
  max-width: 460px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--omg-muted);
  min-height: 3.1em;
}
.fx-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}
.fx-flow-steps > button {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
  padding: 14px 14px 16px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--omg-shadow);
  font: inherit;
  text-align: left;
  color: var(--omg-muted);
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    background 0.2s;
}
.fx-flow-steps > button:hover {
  transform: translateY(-2px);
  box-shadow: var(--omg-shadow-lift);
}
.fx-flow-steps > button:focus-visible {
  outline: 3px solid var(--omg-pink);
  outline-offset: 3px;
}
.fx-step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1ecf3;
  font: 800 14px/1 var(--display);
  color: var(--omg-muted);
}
.fx-step-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.fx-step-bar {
  grid-column: 1 / -1;
  display: block;
  height: 5px;
  border-radius: 5px;
  background: #ece6ee;
  overflow: hidden;
}
.fx-step-bar b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--omg-pink);
}
/* Active step: ink card, pink number, filling bar. */
.fx-flow-steps > button[aria-pressed='true'] {
  background: var(--omg-ink);
  color: #fff;
  box-shadow: var(--omg-shadow-lift);
}
.fx-flow-steps > button[aria-pressed='true'] .fx-step-num {
  background: var(--omg-pink);
  color: #141018;
}
.fx-flow-steps > button[aria-pressed='true'] .fx-step-bar {
  background: rgba(255, 255, 255, 0.2);
}
.fx-flow-steps > button[aria-pressed='true'] .fx-step-bar b {
  width: 100%;
}
.fx-flow-steps > button.is-done .fx-step-num {
  background: var(--omg-tint-pink);
  color: var(--omg-pink-ink);
}
.fx-flow-steps > button.is-done .fx-step-bar b {
  width: 100%;
}
.fx-flow.is-auto .fx-flow-steps > button[aria-pressed='true'] .fx-step-bar b {
  width: 100%;
  transform-origin: left;
  animation: fx-step-fill var(--fx-step-ms) linear both;
  animation-play-state: paused;
}
.fx-flow.is-auto.is-running .fx-flow-steps > button[aria-pressed='true'] .fx-step-bar b {
  animation-play-state: running;
}
@keyframes fx-step-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.fx-flow-note {
  margin: 22px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--omg-muted);
}

/* Step change: quick fade/slide so the switch is obvious but light. */
.fx-flow.is-switching .fx-flow-title,
.fx-flow.is-switching .fx-flow-text,
.fx-flow.is-switching .static-ad-visual > img,
.fx-flow.is-switching .static-ad-overlay {
  animation: fx-step-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.fx-flow.is-switching .fx-flow-text {
  animation-delay: 0.05s;
}
@keyframes fx-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fx-flow.is-switching .static-ad-visual > img {
  animation-name: fx-img-in;
}
@keyframes fx-img-in {
  from {
    opacity: 0.2;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .fx-flow {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 28px;
  }
  .fx-flow-chip {
    display: block;
  }
  .fx-flow-stage {
    padding: 20px;
    border-radius: 26px;
  }
  .fx-flow-title {
    min-height: 0;
  }
  .fx-flow-text {
    min-height: 0;
    font-size: 16px;
  }
  .fx-flow-steps {
    margin-top: 22px;
  }
}
@media (max-width: 550px) {
  .fx-flow-stage {
    padding: 14px;
    margin: 0 -4px;
  }
  .fx-flow .static-ad {
    padding: 10px;
  }
  .fx-flow-title {
    font-size: 32px;
  }
  .fx-flow-steps {
    gap: 8px;
  }
  .fx-flow-steps > button {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 12px 10px 12px;
    gap: 8px;
  }
  .fx-step-label {
    font-size: 13px;
  }
  .fx-step-bar {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fx-flow.is-switching * {
    animation: none !important;
  }
}

/* ============ 2. Time calculator ============ */
.fx-calc {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  border: 0;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--omg-shadow-lift);
  margin-top: 40px;
}
.fx-calc-inputs {
  padding: clamp(28px, 4vw, 48px);
}
.fx-calc-choice {
  margin: 0 0 12px;
}
.fx-calc-choice legend {
  font-size: 17px;
  font-weight: 800;
  color: var(--omg-ink);
  margin-bottom: 12px;
}
.fx-calc-choice label {
  position: relative;
  padding: 0;
  margin: 0 8px 8px 0;
  border: 0;
  background: none;
  font-size: 15px;
}
.fx-calc-choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.fx-calc-choice label > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #f4f0f5;
  font-weight: 700;
  color: var(--omg-text);
  transition: background 0.2s;
}
.fx-calc-choice label > span::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #b9aebd;
  background: #fff;
}
.fx-calc-choice input:checked + span {
  background: var(--omg-ink);
  color: #fff;
}
.fx-calc-choice input:checked + span::before {
  box-shadow: inset 0 0 0 5px var(--omg-pink);
}
.fx-calc-choice input:focus-visible + span {
  outline: 3px solid var(--omg-pink);
  outline-offset: 2px;
}

/* Sliders: icon + bold label + live value chip, then a thick track with a big
   pink grab thumb (native range underneath, so keyboard and screen readers work). */
.fx-drag-cue {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--omg-pink-ink);
}
.fx-hand {
  fill: none;
}
.fx-drag-cue .fx-hand {
  width: 20px;
  height: 20px;
  flex: none;
}
.fx-icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.fx-slider {
  --thumb: 36px;
  --track: 12px;
  --hit: 48px;
  position: relative;
  margin-top: 26px;
}
.fx-calc-inputs .fx-drag-cue + .fx-slider {
  margin-top: 18px;
}
.fx-slider label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--omg-ink);
  cursor: pointer;
}
.static-capacity .fx-slider label > .fx-slider-name {
  flex: 1;
  min-width: 0;
  max-width: none;
}
.fx-slider-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--omg-tint-pink);
  color: var(--omg-pink-ink);
}
.fx-slider[data-fx-slider='manual'] .fx-slider-icon {
  background: #f1ecf3;
  color: var(--omg-muted);
}
.fx-slider[data-fx-slider='assisted'] .fx-slider-icon {
  background: var(--omg-pink);
  color: #141018;
}
.fx-slider-icon svg {
  width: 22px;
  height: 22px;
}
.fx-slider output {
  flex: none;
  min-width: 4.2em;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--omg-ink);
  color: #fff;
  font: 700 20px/1 var(--display);
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition:
    transform 0.15s,
    background 0.15s;
}
.fx-slider.is-active output {
  background: var(--omg-pink);
  transform: scale(1.06);
}
.fx-slider > .fx-range {
  display: block;
  position: relative;
  margin-top: 8px;
}
.fx-slider input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: var(--hit);
  margin: 0;
  background: transparent;
  cursor: grab;
  touch-action: pan-y;
}
.fx-slider input[type='range']:active {
  cursor: grabbing;
}
.fx-slider input[type='range']::-webkit-slider-runnable-track {
  height: var(--track);
  border-radius: var(--track);
  background: linear-gradient(
    90deg,
    var(--omg-pink) 0 var(--fill, 0%),
    #ebe4ee var(--fill, 0%) 100%
  );
}
.fx-slider input[type='range']::-moz-range-track {
  height: var(--track);
  border-radius: var(--track);
  background: #ebe4ee;
}
.fx-slider input[type='range']::-moz-range-progress {
  height: var(--track);
  border-radius: var(--track);
  background: var(--omg-pink);
}
.fx-slider input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  margin-top: calc((var(--track) - var(--thumb)) / 2);
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--omg-pink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cpath d='M6 1.5 1.5 6 6 10.5M14 1.5 18.5 6 14 10.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  box-shadow:
    0 0 0 1px rgba(200, 30, 91, 0.25),
    0 4px 14px rgba(200, 30, 91, 0.38);
  cursor: grab;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.fx-slider input[type='range']::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  box-sizing: border-box;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--omg-pink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cpath d='M6 1.5 1.5 6 6 10.5M14 1.5 18.5 6 14 10.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  box-shadow:
    0 0 0 1px rgba(200, 30, 91, 0.25),
    0 4px 14px rgba(200, 30, 91, 0.38);
  cursor: grab;
  transition: transform 0.15s;
}
.fx-slider input[type='range']:hover::-webkit-slider-thumb,
.fx-slider.is-hinting input[type='range']::-webkit-slider-thumb {
  transform: scale(1.12);
  box-shadow:
    0 0 0 8px rgba(255, 77, 141, 0.16),
    0 6px 18px rgba(200, 30, 91, 0.42);
}
.fx-slider input[type='range']:hover::-moz-range-thumb,
.fx-slider.is-hinting input[type='range']::-moz-range-thumb {
  transform: scale(1.12);
}
.fx-slider input[type='range']:active::-webkit-slider-thumb {
  transform: scale(1.2);
  cursor: grabbing;
  box-shadow:
    0 0 0 12px rgba(255, 77, 141, 0.2),
    0 8px 22px rgba(200, 30, 91, 0.45);
}
.fx-slider input[type='range']:active::-moz-range-thumb {
  transform: scale(1.2);
  cursor: grabbing;
}
.fx-slider input[type='range']:focus-visible {
  outline: none;
}
.fx-slider input[type='range']:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px var(--omg-ink);
}
.fx-slider input[type='range']:focus-visible::-moz-range-thumb {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px var(--omg-ink);
}
.fx-slider > .fx-slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: -4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--omg-muted);
}

/* One-time "drag me" hint: a hand riding under the thumb plus a small ink tooltip
   that stays inside the column. */
.fx-drag-hint {
  position: absolute;
  inset: calc(50% + 10px) 0 auto;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.25s,
    transform 0.25s;
  z-index: 2;
}
.fx-drag-hint .fx-hand {
  position: absolute;
  top: 0;
  left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--pos, 0) / 100 - 8px);
  width: 30px;
  height: 30px;
  color: var(--omg-ink);
  fill: #fff;
  filter: drop-shadow(0 2px 3px rgba(20, 16, 24, 0.25));
}
.fx-drag-hint > span {
  position: absolute;
  top: 22px;
  left: clamp(
    0px,
    calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--pos, 0) / 100 + 24px),
    calc(100% - 184px)
  );
  width: 184px;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--omg-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--omg-shadow);
}
.fx-slider.is-hinting .fx-drag-hint {
  opacity: 1;
  transform: none;
}

.fx-calc .story-assumption-note {
  margin-top: 28px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--omg-muted);
}

/* Output panel: dark ink contrast block. */
.fx-calc-results {
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 77, 141, 0.28), transparent 50%), var(--omg-ink);
  color: #fff;
}
.fx-calc-heading {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}
.fx-calc-heading #static-volume-summary {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: 800;
  color: var(--omg-yellow);
}
.fx-calc-bars {
  gap: 26px;
  margin: 28px 0;
}
.fx-calc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 16px;
}
.fx-calc-label {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}
.static-capacity-bars .fx-calc-label {
  font-size: 17px;
  color: #fff;
}
.fx-calc-label small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.fx-calc .fx-calc-row strong {
  margin: 0;
  font: 700 clamp(30px, 3vw, 40px) / 1 var(--display);
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
}
.fx-calc-track {
  grid-column: 1 / -1;
  display: block;
  height: 14px;
  margin-top: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.fx-calc .fx-calc-track i {
  height: 100%;
  border-radius: 14px;
  transition: width 0.3s;
}
.fx-calc .fx-calc-before i {
  background: rgba(255, 255, 255, 0.55);
}
.fx-calc .fx-calc-after i {
  background: var(--omg-pink);
}
.fx-calc-after strong {
  color: var(--omg-pink);
}
.fx-calc-save {
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--omg-yellow);
  color: var(--omg-ink);
}
.fx-calc-save > span {
  display: block;
  font-size: 15px;
  font-weight: 800;
}
.fx-calc-save strong {
  display: block;
  margin-top: 4px;
  font: 700 clamp(36px, 4vw, 52px) / 1.05 var(--display);
  letter-spacing: -0.03em;
}
.fx-calc #static-capacity-result {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--omg-ink);
}
.fx-calc[data-outcome='more'] .fx-calc-save,
.fx-calc[data-outcome='same'] .fx-calc-save {
  background: #fff;
}
.fx-calc-results > small {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 900px) {
  .fx-calc {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 550px) {
  .fx-calc {
    border-radius: 24px;
  }
  .fx-calc-inputs,
  .fx-calc-results {
    padding: 24px 20px;
  }
  .fx-slider label {
    gap: 10px;
    font-size: 15px;
  }
  .fx-slider-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .fx-slider-icon svg {
    width: 20px;
    height: 20px;
  }
  .fx-slider output {
    min-width: 0;
    padding: 7px 12px;
    font-size: 17px;
  }
  .fx-calc-choice label > span {
    padding: 10px 14px;
  }
}
