/* ============================================================
   lice.cl · hero.css
   Estilos de la sección hero + flujo multi-escena del trámite.
   Cinco vistas que rotan automáticamente y muestran el ciclo
   completo: selección · documentos · revisión · agenda · ticket.
   ============================================================ */

.hero {
  padding: 24px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
[data-theme="dark"] .hero {
  background: var(--bg);
}
@media (min-width: 768px) { .hero { padding: 40px 0 112px; } }
@media (min-width: 1024px) { .hero { padding: 56px 0 140px; } }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
}
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
    align-items: center;
  }
}

/* Marginalia — oculta por defecto, solo en pantallas muy anchas */
.hero__marginalia {
  display: none;
}
@media (min-width: 1280px) {
  .hero__marginalia {
    position: absolute;
    top: 0; left: -32px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding-top: 8px;
    display: flex;
  }
}
.hero__folio {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-mono);
}
.hero__marginalia-line {
  width: 1px;
  flex: 1;
  background: var(--rule);
}

.hero__copy { position: relative; }

.hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  flex-wrap: wrap;
}
.hero__dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
  animation: pulse 2.5s var(--ease-in-out) infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
  50%      { box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 0%,  transparent); }
}

.hero__title {
  font-size: clamp(2.4rem, 2.4vw + 1.8rem, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 24px;
}
.hero__title em { color: var(--brand); font-style: italic; font-weight: 500; }

.hero__lead {
  font-size: 1.04rem;
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 32px;
  line-height: 1.6;
}
@media (min-width: 768px) { .hero__lead { font-size: 1.08rem; margin-bottom: 36px; } }

.hero__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  color: var(--brand);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .hero__actions { gap: 12px; margin-bottom: 48px; } }

.hero__datos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin: 0;
}
@media (min-width: 720px) { .hero__datos { grid-template-columns: repeat(4, 1fr); } }
.hero__datos > div {
  position: relative;
  padding-left: 14px;
}
.hero__datos > div::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 2px;
  background: var(--rule-strong);
  border-radius: 1px;
}
.hero__datos dt {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.hero__datos dd {
  margin: 0;
  font-size: clamp(1.3rem, 1.6vw, 1.55rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  font-weight: 500;
}

/* ============================================================
   Hero · flujo multi-escena
   ============================================================ */

.hero__flow {
  margin: 0;
  position: relative;
  perspective: 1400px;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  z-index: 10;
}

.flow {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  contain: layout paint;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
}

@media (min-width: 1024px) {
  .hero__flow:hover .flow {
    transform: rotateX(2deg) rotateY(-4deg) translateY(-4px);
  }
}

/* ───── Chrome (URL bar) ───── */
.flow__chrome {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 36px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  z-index: 4;
}
.flow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rule-strong);
  flex-shrink: 0;
}
.flow__dot:nth-child(1) { background: #F87171; }
.flow__dot:nth-child(2) { background: #FBBF24; }
.flow__dot:nth-child(3) { background: #34D399; }
.flow__url {
  margin-left: 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-3);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

/* ───── Stages · contenedor y transiciones ───── */
.flow__stage {
  position: absolute;
  inset: 36px 0 0 0;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  contain: layout paint;
  transition: opacity .4s var(--ease-out);
}
.flow__stage.is-active {
  opacity: 1;
  pointer-events: auto;
}

.flow__viewport {
  height: 100%;
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ───── Wizard step (Stage 1) ───── */
.flow__viewport--wizard { gap: 8px; }

.wiz__step {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.wiz__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.wiz__options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.wiz__option {
  display: grid;
  grid-template-columns: 30px 1fr 18px;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--bg);
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.wiz__option.is-selected {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 4%, var(--bg));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}
.wiz__opt-ico {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
}
.wiz__opt-ico--blue   { background: #DBEAFE; color: #1D4ED8; }
.wiz__opt-ico--green  { background: #D1FAE5; color: #047857; }
.wiz__opt-ico--amber  { background: #FEF3C7; color: #B45309; }
[data-theme="dark"] .wiz__opt-ico--blue   { background: color-mix(in srgb, #3B82F6 18%, transparent); color: #93C5FD; }
[data-theme="dark"] .wiz__opt-ico--green  { background: color-mix(in srgb, #10B981 18%, transparent); color: #6EE7B7; }
[data-theme="dark"] .wiz__opt-ico--amber  { background: color-mix(in srgb, #F59E0B 18%, transparent); color: #FCD34D; }
.wiz__option strong { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.wiz__option small  { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }

.wiz__check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand);
  position: relative;
  flex-shrink: 0;
}
.wiz__check::after {
  content: "";
  position: absolute;
  inset: 4px 5px 4px 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
  width: 6px; height: 9px;
}
.wiz__option:not(.is-selected) .wiz__check {
  background: transparent;
  border: 1.5px solid var(--rule-strong);
}
.wiz__option:not(.is-selected) .wiz__check::after { display: none; }

.wiz__bar {
  margin-top: auto;
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.wiz__bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-lo));
  border-radius: 2px;
  width: var(--p, 0%);
  transition: width .6s var(--ease-out);
}

/* ───── Stage 2 · Upload ───── */
.flow__viewport--upload { gap: 8px; }

.up {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.up__drop {
  border: 1.5px dashed var(--rule-strong);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.up__drop-ico {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--brand) 12%, var(--bg));
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.up__drop-ico svg { width: 14px; height: 14px; }
.up__drop p   { margin: 0; font-size: 11.5px; font-weight: 600; color: var(--ink); }
.up__drop small { font-size: 9.5px; color: var(--ink-3); }

.up__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.up__file {
  display: grid;
  grid-template-columns: 30px 1fr 60px 16px;
  gap: 8px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  font-size: 11px;
}
.up__file-ico {
  width: 30px; height: 22px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.up__file-ico--pdf { background: #DC2626; }
.up__file-ico--img { background: #2563EB; }
.up__file-name {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.up__bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.up__bar-fill {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: var(--success);
  border-radius: 2px;
}
.up__bar-fill--loading {
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-lo) 50%, var(--brand) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.up__ok {
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  text-align: center;
}
.up__pct {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--brand);
  text-align: right;
}

/* ───── Stage 3 · Admin ───── */
.flow__viewport--admin {
  flex-direction: row;
  gap: 0;
  padding: 0;
}

.adm__side {
  width: 80px;
  background: var(--bg-2);
  border-right: 1px solid var(--rule);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.adm__brand {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.04em;
  padding-left: 4px;
}
.adm__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.adm__menu li {
  padding: 5px 6px;
  border-radius: 5px;
  color: var(--ink-3);
}
.adm__menu li.is-active {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  font-weight: 600;
}

.adm__main {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.adm__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.adm__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}
.adm__badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 99px;
  text-transform: uppercase;
}
.adm__badge--blue {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
}

.adm__profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.adm__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-lo));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.adm__profile strong { display: block; font-size: 12px; font-weight: 600; color: var(--ink); }
.adm__profile small  { display: block; font-size: 10px; color: var(--ink-3); }

.adm__docs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.adm__docs li {
  display: grid;
  grid-template-columns: 30px 1fr 16px;
  gap: 8px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--bg);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
}
.adm__doc-ico {
  width: 30px; height: 20px;
  border-radius: 3px;
  font-size: 8.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.adm__doc-ico--pdf { background: #DC2626; }
.adm__doc-ico--img { background: #2563EB; }
.adm__pill {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.adm__pill--green {
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
}

.adm__actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}
.adm__btn {
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--success);
  box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--success) 40%, transparent);
}

/* ───── Stage 4 · Calendar ───── */
.flow__viewport--agenda { gap: 10px; }

.cal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.cal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.cal__nav { color: var(--ink-3); font-size: 14px; }

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal__grid--week {
  margin-bottom: 1px;
}
.cal__grid--week span {
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.cal__d {
  text-align: center;
  padding: 6px 2px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-4);
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
}
.cal__d--avail {
  color: var(--ink);
  background: color-mix(in srgb, var(--success) 12%, transparent);
}
.cal__d--selected {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 3px 8px -2px color-mix(in srgb, var(--brand) 40%, transparent);
}

.cal__slots {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.cal__slots-h {
  margin: 4px 0 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.cal__slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
}
.cal__slot small {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.cal__slot.is-active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, var(--bg));
  color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 14%, transparent);
}
.cal__slot.is-active small { color: var(--brand); }
.cal__slot.is-full {
  opacity: 0.45;
  text-decoration: line-through;
}

/* ───── Stage 5 · Ticket ───── */
.flow__viewport--ticket {
  align-items: center;
  text-align: center;
  gap: 10px;
}

.tkt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 8px 12px 12px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  position: relative;
}
.tkt::before, .tkt::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.tkt::before { left: -9px; }
.tkt::after  { right: -9px; }

.tkt__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.tkt__check {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
  animation: pop .5s var(--ease-out) .2s both;
}
.tkt__check svg { width: 20px; height: 20px; }
@keyframes pop {
  0%   { transform: scale(0.4); opacity: 0; }
  70%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
.tkt__h {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tkt__head small {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--ink-3);
}

.tkt__qr {
  width: 96px;
  height: 96px;
  padding: 6px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--rule);
  color: var(--ink);
}
.tkt__qr svg { width: 100%; height: 100%; display: block; }

.tkt__data {
  width: 100%;
  display: grid;
  gap: 4px;
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
}
.tkt__data > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  text-align: left;
  align-items: baseline;
}
.tkt__data dt {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.tkt__data dd {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ───── Floating contextual tags ───── */
.flow__float {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 99px;
  padding: 7px 14px 7px 10px;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  box-shadow:
    0 14px 32px -8px color-mix(in srgb, var(--ink) 14%, transparent),
    0 4px 10px -2px color-mix(in srgb, var(--ink) 5%, transparent);
  z-index: 5;
  white-space: nowrap;
  transform: translateZ(40px);
  animation: floatY 5s var(--ease-in-out) infinite;
}
.flow__stage.is-active ~ .flow__float[data-float] { display: none; }
.flow__float[data-float].is-on { display: inline-flex; }

.flow__float-ico {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 14%, var(--bg));
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.flow__float-ico--check {
  background: color-mix(in srgb, var(--success) 18%, var(--bg));
  color: var(--success);
}
.flow__float-ico--check svg { width: 11px; height: 11px; }

.flow__float--1 { top: 14%; right: -22%; animation-delay: 0s; }
.flow__float--2 { bottom: 22%; left: -28%; animation-delay: -1.5s; }
.flow__float--3 { top: 38%; right: -22%; animation-delay: -2.5s; }
.flow__float--4 { top: 14%; left: -28%; animation-delay: -0.8s; }
.flow__float--5 { bottom: 18%; right: -16%; animation-delay: -3s; }

@keyframes floatY {
  0%, 100% { transform: translateZ(40px) translateY(0); }
  50%      { transform: translateZ(40px) translateY(-6px); }
}

@media (max-width: 720px) {
  .flow__float { display: none !important; }
}

/* ───── Progress dots ───── */
.flow__progress {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 99px;
  z-index: 6;
  box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--ink) 10%, transparent);
}
.flow__dot-btn {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--rule-strong);
  cursor: pointer;
  transition:
    width .4s var(--ease-out),
    background .4s var(--ease-out),
    transform .4s var(--ease-out);
}
.flow__dot-btn:hover {
  background: var(--ink-4);
}
.flow__dot-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent);
}
.flow__dot-btn.is-active {
  width: 24px;
  border-radius: 99px;
  background: var(--brand);
}

/* ───── Caption ───── */
.flow__caption {
  position: absolute;
  left: 50%;
  bottom: -68px;
  transform: translateX(-50%);
  margin: 0;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: -0.005em;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flow__caption-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: color-mix(in srgb, var(--brand) 12%, var(--bg));
  color: var(--brand);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: background .4s var(--ease-out), color .4s var(--ease-out);
}

@media (max-width: 480px) {
  .flow__caption { font-size: 10.5px; bottom: -60px; }
  .flow__progress { bottom: -30px; }
}

/* ───── Reduced motion ───── */
@media (prefers-reduced-motion: reduce) {
  .flow,
  .flow__stage,
  .flow__float,
  .wiz__bar-fill,
  .tkt__check,
  .up__bar-fill--loading {
    animation: none !important;
    transition: opacity .2s linear !important;
  }
  .flow__stage {
    transform: none !important;
  }
  .flow__float {
    transform: none !important;
  }
  .hero__dot { animation: none; }
}