/* The Phone Bazaar landing — Pop Soft + Electric (scrollable marketing page) */

html:has(.tpb) {
  background: var(--tpb-bg, #eef0f3);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

html:has(.tpb) body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--tpb-bg, #eef0f3);
  min-width: 0 !important;
}

.tpb {
  --pri: #2f6bff;
  --tpb-bg: #eef0f3;
  --pop-raised: #fff;
  --pop-well: #eef0f3;
  --pop-text: #1d1d1f;
  --pop-muted: #6e6e73;
  --pop-body: #515154;
  --pop-rim: rgba(15, 20, 40, 0.08);
  --pop-rim-strong: rgba(15, 20, 40, 0.11);
  --pop-shine: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --pop-lift:
    0 1px 2px rgba(15, 20, 40, 0.05),
    0 12px 28px -12px rgba(15, 20, 40, 0.2);
  --pop-lift-sm:
    0 1px 2px rgba(15, 20, 40, 0.05),
    0 8px 18px -10px rgba(15, 20, 40, 0.16);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --ease: 0.18s ease;

  box-sizing: border-box;
  color: var(--pop-text);
  background: var(--tpb-bg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding:
    env(safe-area-inset-top, 0px)
    0
    calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

.tpb *,
.tpb *::before,
.tpb *::after {
  box-sizing: border-box;
}

.tpb a {
  color: inherit;
  text-decoration: none;
}

.tpb-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

.tpb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.tpb-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.tpb-brand__mark {
  width: auto;
  height: 2.35rem;
  max-width: min(14rem, 72vw);
  border: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
  display: block;
  shape-rendering: geometricPrecision;
  image-rendering: auto;
}

.tpb-links {
  display: none;
  gap: 1.75rem;
  color: var(--pop-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.tpb-links a:hover {
  color: var(--pop-text);
}

.tpb .card {
  background: var(--pop-raised);
  border: 1px solid var(--pop-rim);
  border-radius: var(--radius-xl);
  box-shadow: var(--pop-lift), var(--pop-shine);
}

.tpb-cta.btn {
  height: auto;
  min-height: 3.15rem;
  padding: 0.85rem 1.55rem;
  font-size: 1rem;
  font-weight: 600;
  gap: 0.45rem;
}

/* Shared promo cards — media on top, short copy + circular CTA below. */
.tpb-promo {
  --tpb-promo-slide-ms: 720ms;
  display: flex;
  flex-direction: column;
  margin-top: 0.85rem;
  padding: 0;
  overflow: hidden;
  min-height: 0;
}

.tpb .tpb-promo.card {
  background: #fff;
  border-color: var(--pop-rim);
}

.tpb-promo__media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(11.5rem, 46vw, 16.5rem);
  margin: 1rem 1rem 0;
  background: #fff;
  pointer-events: none;
  user-select: none;
}

.tpb-promo__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
}

.tpb-promo__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  background: #fff;
  opacity: 0;
  transform: translateX(100%);
  transition:
    transform var(--tpb-promo-slide-ms) cubic-bezier(0.33, 0.1, 0.2, 1),
    opacity var(--tpb-promo-slide-ms) ease;
  will-change: transform, opacity;
}

.tpb-promo__slide.is-active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.tpb-promo__slide.is-enter {
  opacity: 1;
  transform: translateX(100%);
  z-index: 2;
}

.tpb-promo__slide.is-enter.is-active {
  transform: translateX(0);
}

.tpb-promo__slide.is-leave {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.tpb-promo__slide.is-leave.is-exit {
  transform: translateX(-20%);
  opacity: 0;
}

.tpb-promo__shot {
  display: block;
  width: min(58%, 11.5rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.tpb-promo__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 1.25rem;
}

.tpb-promo__copy {
  min-width: 0;
  flex: 1;
}

.tpb-promo__title {
  margin: 0;
  font-size: clamp(1.55rem, 5.5vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--pop-text);
}

.tpb-promo__title small {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--pop-muted);
}

.tpb-promo__lead {
  margin: 0.55rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--pop-text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

.tpb-promo__lead .icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  color: var(--pop-text);
}

.tpb-promo__go {
  flex: none;
  align-self: flex-end;
}

.tpb-promo__go.tpb-cta {
  padding-right: 1.15rem;
}

.tpb-promo__arrow {
  /* Fixed slot so shaft growth never recenters "Open". */
  --tpb-shaft-rest: 0.72rem;
  --tpb-shaft-grow: 1.18rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: calc(var(--tpb-shaft-grow) + 0.42rem);
  flex: none;
  color: var(--pop-muted);
  overflow: visible;
}

.tpb-promo__arrow-shaft {
  display: block;
  width: var(--tpb-shaft-rest);
  height: 1.35px;
  border-radius: 1px;
  background: currentColor;
  flex: none;
  will-change: width;
  animation: tpb-promo-shaft-stretch 2.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.tpb-promo__arrow-head {
  display: block;
  width: 0.5rem;
  height: 1rem;
  /* Overlap shaft into the chevron so stroke joins cleanly. */
  margin-left: -0.14rem;
  flex: none;
  overflow: visible;
}

.tpb-promo__arrow-head path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tpb-promo__go:hover .tpb-promo__arrow-shaft {
  animation-play-state: paused;
  width: 0.95rem;
}

@keyframes tpb-promo-shaft-stretch {
  0%,
  12% {
    width: var(--tpb-shaft-rest);
  }
  42% {
    width: var(--tpb-shaft-grow);
  }
  68%,
  100% {
    width: var(--tpb-shaft-rest);
  }
}

.tpb .tpb-about.card {
  --tpb-step-badge: 2.35rem;
  --tpb-step-rail: #c9d4e8;
  --tpb-step-fill: #e8eef8;

  margin-top: 2.5rem;
  padding: 2rem 1.35rem 2.15rem;
  display: grid;
  gap: 1.5rem;
}

.tpb-about h2 {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.tpb-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.tpb-step {
  display: grid;
  grid-template-columns: var(--tpb-step-badge) minmax(0, 1fr);
  gap: 0.95rem 1.05rem;
  align-items: start;
  position: relative;
  padding-bottom: 1.55rem;
}

.tpb-step:last-child {
  padding-bottom: 0;
}

.tpb-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(var(--tpb-step-badge) / 2);
  top: calc(var(--tpb-step-badge) + 0.2rem);
  bottom: 0.2rem;
  width: 0;
  border-left: 1.5px dashed var(--tpb-step-rail);
  transform: translateX(-50%);
}

.tpb-step__badge {
  width: var(--tpb-step-badge);
  height: var(--tpb-step-badge);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tpb-step-fill);
  border: 1.5px solid var(--tpb-step-rail);
  color: var(--pop-text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.tpb-step__body {
  padding-top: 0.2rem;
  min-width: 0;
}

.tpb-step__body h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.tpb-step__body p {
  margin: 0;
  color: var(--pop-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.tpb-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 1.35rem 0 0.5rem;
  color: var(--pop-muted);
  font-size: 0.875rem;
}

.tpb-footer a:hover {
  color: var(--pri);
}

@media (min-width: 860px) {
  .tpb-wrap {
    padding: 0 28px;
  }

  .tpb-links {
    display: flex;
  }

  .tpb-promo__media {
    height: clamp(14rem, 28vw, 18rem);
    margin: 1.25rem 1.5rem 0;
  }

  .tpb-promo__shot {
    width: min(48%, 13rem);
  }

  .tpb-promo__foot {
    padding: 1.35rem 1.75rem 1.6rem;
  }

  .tpb-cta.btn {
    min-height: 3.35rem;
    padding: 0.95rem 1.75rem;
    font-size: 1.05rem;
  }

  .tpb .tpb-about.card {
    padding: 2.75rem 2.5rem 2.85rem;
    gap: 1.75rem;
  }

  .tpb-step {
    gap: 1rem 1.15rem;
    padding-bottom: 1.75rem;
  }

  .tpb-step__body h3 {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tpb .btn {
    transition: none;
  }

  .tpb .btn:hover {
    transform: none;
  }

  .tpb-promo__go,
  .tpb-promo__go:hover {
    transition: none;
    transform: none;
  }

  .tpb-promo__arrow-shaft,
  .tpb-promo__go:hover .tpb-promo__arrow-shaft {
    animation: none;
    width: var(--tpb-shaft-rest, 0.72rem);
  }

  .tpb-promo__slide {
    transition: none;
  }
}
