/* Brand effects stay separate from the catalog and purchase flow. */
:root {
  --brand-banner-clearance: 122px;
  scroll-padding-bottom: calc(var(--brand-banner-clearance) + env(safe-area-inset-bottom, 0px));
}

footer {
  padding-bottom: calc(40px + var(--brand-banner-clearance) + env(safe-area-inset-bottom, 0px));
}

.toast {
  bottom: calc(var(--brand-banner-clearance) + env(safe-area-inset-bottom, 0px));
}

.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 45%, #0e7cff26, transparent 45%),
    radial-gradient(ellipse at 80% 65%, #ff1d2921, transparent 45%),
    #05070d;
  /* CSS dismisses the opening even if JavaScript is unavailable. */
  animation: brand-intro-out .45s ease 3s forwards;
}

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

.brand-intro-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 32px;
  text-align: center;
  animation: brand-intro-reveal .7s cubic-bezier(.2, .7, .2, 1) both;
}

.brand-intro-mark {
  position: relative;
  padding: 13px;
}

.brand-intro-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: #43baff;
  border-bottom-color: #ff3846;
  border-radius: 50%;
  box-shadow: 0 -8px 32px #0e7cff29, 0 8px 32px #ff1d2929;
  animation: brand-intro-orbit 3s ease-out both;
}

.brand-intro-mark img {
  position: relative;
  display: block;
  width: clamp(150px, 28vw, 220px);
  height: auto;
  border-radius: 50%;
}

.brand-intro-welcome {
  margin: 28px 0 10px;
  color: #fff;
  font: clamp(1.1rem, 4vw, 1.5rem)/1.2 "Archivo Black", sans-serif;
  letter-spacing: -.025em;
}

.brand-intro-caption {
  color: #aabbd3;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.brand-intro-trail {
  width: 88px;
  height: 3px;
  margin-top: 24px;
  border-radius: 3px;
  background: linear-gradient(90deg, #0e7cff, #64caff 35%, #ff1d29);
  animation: brand-intro-trail 2.7s ease .15s both;
}

.brand-banner {
  position: fixed;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  width: min(540px, calc(100% - 44px));
  padding: 2px;
  border-radius: 22px;
  background: linear-gradient(110deg, #0e7cff, #66d5ff 22%, #0e7cff 38%, #ff1d29 68%, #ff8790 82%, #0e7cff);
  background-size: 240% 100%;
  box-shadow: -8px 6px 30px #0e7cff1f, 8px 6px 30px #ff1d291a, 0 12px 32px #0009;
  transform: translateY(var(--banner-shift, 0px));
  transition: transform .32s ease, width .25s ease;
  animation: brand-banner-light 6s ease-in-out infinite alternate;
}

.brand-banner-surface {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px 12px;
  border-radius: 20px;
  background: linear-gradient(115deg, #071426, #080b13 55%, #1c0b13);
}

.brand-banner-logo {
  display: block;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-banner-details {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-banner-details[hidden] {
  display: none;
}

.brand-banner-copy {
  flex: 1;
  min-width: 0;
}

.brand-banner-copy strong {
  display: block;
  color: #fff;
  font: 1.08rem/1.25 "Archivo Black", sans-serif;
  letter-spacing: -.04em;
}

.brand-banner-copy strong span {
  color: #7bc8ff;
}

.brand-banner-tagline {
  display: block;
  margin-top: 5px;
  color: #bdc9dd;
  font-size: .75rem;
  line-height: 1.4;
}

.brand-banner-contact {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 13px;
  color: #06120a;
  background: #25d366;
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-banner-contact:hover {
  background: #53e78a;
}

.brand-banner-contact svg {
  width: 21px;
  height: 21px;
}

.brand-banner-toggle {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 44px;
  padding: 5px;
  border: 0;
  border-radius: 10px;
  color: #c7d5e8;
  background: transparent;
  cursor: pointer;
}

.brand-banner-toggle:hover {
  color: #fff;
  background: #ffffff12;
}

.brand-banner-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform .2s ease;
}

.brand-banner a:focus-visible,
.brand-banner button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.brand-banner:hover,
.brand-banner:focus-within,
.brand-banner.is-paused {
  animation-play-state: paused;
}

.brand-banner.is-collapsed {
  width: 104px;
  animation: none;
  transform: none;
}

.brand-banner.is-collapsed .brand-banner-surface {
  min-height: 62px;
  padding: 8px 10px;
  gap: 6px;
}

.brand-banner.is-collapsed .brand-banner-logo {
  width: 42px;
  height: 42px;
}

.brand-banner.is-collapsed .brand-banner-toggle svg {
  transform: rotate(180deg);
}

@keyframes brand-intro-reveal {
  from { opacity: 0; transform: translateY(16px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes brand-intro-orbit {
  from { transform: rotate(-105deg); opacity: 0; }
  35% { opacity: 1; }
  to { transform: rotate(50deg); opacity: 1; }
}

@keyframes brand-intro-trail {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes brand-intro-out {
  to { opacity: 0; visibility: hidden; }
}

@keyframes brand-banner-light {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (max-width: 580px) {
  .brand-banner {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 24px);
  }

  .brand-banner-surface {
    min-height: 70px;
    padding: 10px;
    gap: 8px;
  }

  .brand-banner-logo {
    width: 44px;
    height: 44px;
  }

  .brand-banner-details {
    gap: 8px;
  }

  .brand-banner-copy strong {
    font-size: .95rem;
  }

  .brand-banner-tagline {
    font-size: .75rem;
  }

  .brand-banner-contact {
    width: 44px;
    padding: 10px;
  }

  .brand-banner-contact-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-intro { display: none; }
  .brand-banner,
  .brand-banner *,
  .brand-intro * {
    animation: none !important;
    transition: none !important;
  }
  .brand-banner { transform: none; }
}
