.ob-brand-swipe {
  --bs-navy: #000248;
  --bs-ink: #0f172a;
  --bs-muted: #4c5b70;
  --bs-orange: #ff5e14;
  --bs-line: #e6ebf2;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(255, 94, 20, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 40%, #f4f7fb 100%);
  overflow: hidden;
}

.ob-brand-swipe__head {
  max-width: 38rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.ob-brand-swipe__eyebrow {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 94, 20, 0.1);
  color: #e85d1a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ob-brand-swipe__head h2 {
  margin: 0 0 0.6rem;
  color: var(--bs-navy);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ob-brand-swipe__head p {
  margin: 0;
  color: var(--bs-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.ob-brand-swipe__layout {
  max-width: 440px;
  margin: 0 auto;
}

.ob-brand-swipe__stage {
  position: relative;
  min-height: 640px;
}

.ob-brand-swipe__deck {
  position: relative;
  height: 560px;
  touch-action: none;
  user-select: none;
}

.ob-brand-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bs-line);
  box-shadow: 0 22px 50px rgba(0, 2, 72, 0.12);
  transform: translateY(calc(var(--stack, 0) * 14px)) scale(calc(1 - var(--stack, 0) * 0.04));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.ob-brand-card.is-top {
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
  cursor: grab;
  transform: none;
}

.ob-brand-card.is-top.is-dragging {
  transition: none;
  cursor: grabbing;
}

.ob-brand-card.is-next {
  opacity: 1;
  z-index: 4;
  transform: translateY(16px) scale(0.96);
}

.ob-brand-card.is-back {
  opacity: 1;
  z-index: 3;
  transform: translateY(30px) scale(0.92);
}

.ob-brand-card.is-leaving-left {
  transform: translateX(-120%) rotate(-14deg) !important;
  opacity: 0;
  transition: transform 0.62s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.62s ease;
}

.ob-brand-card.is-leaving-right {
  transform: translateX(120%) rotate(14deg) !important;
  opacity: 0;
  transition: transform 0.62s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.62s ease;
}

.ob-brand-card__progress {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, #f2981c, #fa4921);
}

.ob-brand-card.is-top .ob-brand-card__progress {
  animation: ob-brand-fill 3.6s linear forwards;
}

.ob-brand-swipe.is-paused .ob-brand-card__progress {
  animation-play-state: paused;
}

@keyframes ob-brand-fill {
  to { width: 100%; }
}

.ob-brand-card__media {
  position: relative;
  height: 46%;
  min-height: 210px;
  background: #0b1220;
}

.ob-brand-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ob-brand-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0, 2, 72, 0.45));
}

.ob-brand-card__stamp {
  position: absolute;
  top: 16px;
  z-index: 2;
  padding: 0.25rem 0.7rem;
  border: 3px solid;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
  opacity: 0;
  transform: rotate(-12deg);
}

.ob-brand-card__stamp--like {
  left: 16px;
  color: #16a34a;
  border-color: #16a34a;
}

.ob-brand-card__stamp--skip {
  right: 16px;
  color: #e11d48;
  border-color: #e11d48;
  transform: rotate(12deg);
}

.ob-brand-card.is-dragging.is-intent-right .ob-brand-card__stamp--like,
.ob-brand-card.is-dragging.is-intent-left .ob-brand-card__stamp--skip {
  opacity: 1;
}

.ob-brand-card__panel {
  flex: 1;
  padding: 1rem 1.15rem 1.1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ob-brand-card__logo {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0.45rem;
}

.ob-brand-card__kicker {
  margin: 0 0 0.15rem;
  color: #e85d1a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ob-brand-card h3 {
  margin: 0 0 0.35rem;
  color: var(--bs-navy);
  font-size: 1.35rem;
  font-weight: 800;
}

.ob-brand-card__line {
  margin: 0 0 0.55rem;
  color: var(--bs-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ob-brand-card ul {
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
}

.ob-brand-card li {
  position: relative;
  padding-left: 0.9rem;
  margin: 0.15rem 0;
  color: var(--bs-ink);
  font-size: 0.88rem;
  line-height: 1.4;
}

.ob-brand-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #20aaa6;
}

.ob-brand-card__link {
  margin-top: auto;
  color: var(--bs-navy);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

.ob-brand-card__link:hover {
  color: var(--bs-orange);
}

.ob-brand-swipe__actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.ob-brand-swipe__btn {
  min-width: 7.5rem;
  min-height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--bs-line);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.ob-brand-swipe__btn--skip {
  color: #be123c;
}

.ob-brand-swipe__btn--like {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, #f2981c, #fa4921);
}

.ob-brand-swipe__hint {
  margin: 0.7rem 0 0;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
}

.ob-brand-swipe__done {
  position: absolute;
  inset: 0 0 auto;
  height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--bs-line);
  box-shadow: 0 22px 50px rgba(0, 2, 72, 0.1);
}

.ob-brand-swipe__done[hidden] {
  display: none;
}

.ob-brand-swipe__done h3 {
  margin: 0 0 0.5rem;
  color: var(--bs-navy);
  font-weight: 800;
}

.ob-brand-swipe__done p {
  margin: 0 0 1.2rem;
  color: var(--bs-muted);
  max-width: 22rem;
}

.ob-brand-swipe__restart {
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #f2981c, #fa4921);
}

.ob-brand-swipe__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.ob-brand-swipe__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
}

.ob-brand-swipe__dots button[aria-current="true"] {
  width: 22px;
  background: #ff5e14;
}

.ob-brand-swipe.is-done .ob-brand-swipe__deck,
.ob-brand-swipe.is-done .ob-brand-swipe__actions {
  visibility: hidden;
}

@media (max-width: 860px) {
  .ob-brand-swipe__stage {
    min-height: 620px;
  }
}

@media (max-width: 575.98px) {
  .ob-brand-swipe {
    padding: 3rem 0 3.5rem;
  }

  .ob-brand-swipe__deck,
  .ob-brand-swipe__done {
    height: 540px;
  }

  .ob-brand-swipe__stage {
    min-height: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ob-brand-card,
  .ob-brand-card.is-leaving-left,
  .ob-brand-card.is-leaving-right {
    transition: none;
  }
}
