/* Buddy's landing — conversion-focused */

:root {
  --bg: #0c0a08;
  --bg-elev: #16120e;
  --gold: #d4af37;
  --gold-soft: #e8c57a;
  --cream: #ffffff;
  --muted: #b0b0b0;
  --text-muted: #6b7280;
  --line: rgba(212, 175, 55, 0.22);
  --font: "Inter", system-ui, sans-serif;
  --badge-w: 160px;
  --badge-h: 54px;
  --dock-h: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  color: var(--cream);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
  overflow-x: hidden;
  max-width: 100vw;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body:has(.dock.is-visible) {
  padding-bottom: calc(var(--dock-h) + 1rem);
}

img {
  max-width: 100%;
  display: block;
}

img.badge__img {
  max-width: none;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-soft);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ——— Reveals ——— */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: auto;
  padding: 3.75rem clamp(1rem, 4vw, 4rem) 4.5rem;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background:
    radial-gradient(ellipse 60% 80% at 92% 35%, rgba(212, 168, 83, 0.2), transparent 58%),
    radial-gradient(ellipse 45% 50% at 8% 85%, rgba(140, 45, 18, 0.32), transparent 55%),
    linear-gradient(118deg, #1c130c 0%, #110e0a 48%, #090807 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero__orb--a {
  width: 28rem;
  height: 28rem;
  top: -12%;
  right: 8%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.22), transparent 68%);
  animation: orbFloat 9s ease-in-out infinite;
}

.hero__orb--b {
  width: 22rem;
  height: 22rem;
  bottom: -8%;
  left: -4%;
  background: radial-gradient(circle, rgba(180, 60, 25, 0.2), transparent 70%);
  animation: orbFloat 11s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(2%, 3%) scale(1.08);
    opacity: 1;
  }
}

.hero__banner {
  position: relative;
  z-index: 1;
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3.5vw, 3rem);
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: min(78rem, 100%);
  min-width: 0;
  box-sizing: border-box;
}

.hero__copy {
  text-align: center;
  max-width: min(36rem, 100%);
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.hero__brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.hero__logo {
  margin: 0;
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 1.5rem;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.5));
  animation: logoPop 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes logoPop {
  from {
    transform: scale(0.86) rotate(-6deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.perk {
  margin: 0;
  max-width: min(28rem, 100%);
  width: 100%;
  min-width: 0;
  padding-left: 0.95rem;
  border-left: 3px solid var(--gold);
  text-align: left;
  box-sizing: border-box;
}

.perk__headline {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--cream);
}

.perk__headline em {
  font-style: normal;
  color: var(--gold);
}

.hero__sub {
  margin: 1.15rem 0 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

.cta {
  margin-top: 1.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cta__label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
}

/* ——— Store badges (identical box size) ——— */
.store-badges {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 2vw, 0.75rem);
  width: 100%;
  max-width: min(calc(var(--badge-w) * 2 + 0.75rem), 100%);
  min-width: 0;
  box-sizing: border-box;
}

.store-badges--center {
  justify-content: center;
}

.badge {
  position: relative;
  display: block;
  flex: 0 0 var(--badge-w);
  width: var(--badge-w);
  height: var(--badge-h);
  min-width: var(--badge-w);
  min-height: var(--badge-h);
  max-width: var(--badge-w);
  max-height: var(--badge-h);
  line-height: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  transition: transform 0.25s ease, filter 0.25s ease;
  box-shadow: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
  box-sizing: border-box;
}

.badge:hover,
.badge:focus-visible {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
  outline: none;
}

.badge__img {
  display: block;
  width: var(--badge-w) !important;
  height: var(--badge-h) !important;
  max-width: none;
  max-height: none;
  object-fit: fill;
  object-position: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: stretch;
  min-height: clamp(20rem, 62vh, 36rem);
  margin-right: calc(-1 * clamp(1.25rem, 4vw, 4rem));
}

.hero__food {
  display: block;
  height: auto;
  object-fit: contain;
  object-position: right center;
  will-change: transform;
}

.hero__food--ghost {
  position: absolute;
  right: 24%;
  top: 100%;
  width: 128%;
  max-height: clamp(28rem, 88vh, 50rem);
  transform: translateY(-50%) rotate(8deg) scale(1.08);
  opacity: 0.15 ;
  filter: blur(1.5px) saturate(1.15) brightness(1.05);
  z-index: 0;
  pointer-events: none;
  animation: foodGhostFloat 8s ease-in-out infinite;
}

.hero__food--main {
  position: relative;
  z-index: 1;
  width: 108%;
  max-width: none;
  max-height: clamp(24rem, 78vh, 42rem);
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.55));
  animation: foodFloat 6.5s ease-in-out infinite;
  transition: transform 0.35s ease-out;
}

@keyframes foodFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes foodGhostFloat {
  0%,
  100% {
    translate: 0 -50%;
  }
  50% {
    translate: 0 calc(-50% - 14px);
  }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2.35rem;
  border: 1.5px solid rgba(212, 168, 83, 0.45);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 0.4rem;
  z-index: 2;
  opacity: 0.75;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.scroll-hint span {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--gold);
  animation: scrollDot 1.6s ease-in-out infinite;
}

.scroll-hint:hover {
  opacity: 1;
  border-color: var(--gold);
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(0.85rem);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 1.5rem 1.25rem 2rem;
    overflow-x: clip;
  }

  .hero__banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero__brand-row {
    margin-bottom: 1rem;
  }

  .hero__copy {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    padding-inline: 0;
    box-sizing: border-box;
  }

  .scroll-hint {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.25rem 1rem 1.75rem;
  }

  .hero__logo {
    width: 5.75rem;
    height: 5.75rem;
    border-radius: 1.2rem;
  }

  :root {
    --badge-w: 148px;
    --badge-h: 50px;
  }

  /* Stack store badges so both stay fully visible */
  .hero .store-badges {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    max-width: var(--badge-w);
  }

  .hero .badge {
    flex: 0 0 var(--badge-w);
    width: var(--badge-w);
    height: var(--badge-h);
    min-width: var(--badge-w);
    min-height: var(--badge-h);
    max-width: var(--badge-w);
    max-height: var(--badge-h);
  }

  .perk {
    max-width: 100%;
    width: auto;
    align-self: center;
  }

  .perk__headline {
    font-size: clamp(1.1rem, 5.2vw, 1.35rem);
  }
}

@media (max-width: 380px) {
  .hero {
    padding: 1rem 0.85rem 1.5rem;
  }

  :root {
    --badge-w: 136px;
    --badge-h: 46px;
  }
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 1.5rem;
}

.section__inner {
  max-width: 78rem;
  margin: 0 auto;
}

.section__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.section__lead {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
  max-width: 28rem;
}

/* ——— Phones / App section ——— */
.screens.section {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.5rem 3rem;
  background:
    radial-gradient(ellipse 55% 70% at 78% 55%, rgba(212, 175, 55, 0.12), transparent 58%),
    radial-gradient(ellipse 40% 50% at 12% 20%, rgba(140, 45, 18, 0.18), transparent 55%),
    linear-gradient(180deg, #100d0a 0%, #0c0a08 55%, #090807 100%);
}

.screens__glow {
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: 8%;
  top: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 68%);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 10s ease-in-out infinite;
}

.screens .section__inner,
.screens__layout {
  position: relative;
  z-index: 1;
}

.screens__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  justify-items: center;
}

.screens__intro {
  margin-bottom: 0;
  max-width: 36rem;
  text-align: center;
}

.screens__intro .section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.screens__intro .section__lead {
  margin: 0.65rem auto 0;
  font-size: 1rem;
  max-width: 28rem;
  color: var(--muted);
}

.phones__hint {
  display: none;
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  padding: 0.75rem 0 0.5rem;
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.phone {
  margin: 0;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  user-select: none;
  flex: 0 0 auto;
  position: relative;
}

.phone:focus,
.phone:focus-visible {
  outline: none;
}

/* One cohesive fan of all 6 — equal size, single arc */
.phone__frame {
  width: min(9.25rem, 13vw);
  height: auto;
  border-radius: 1.45rem;
  padding: 0.4rem;
  background: linear-gradient(160deg, #2a241c, #0a0908);
  border: 1px solid rgba(212, 168, 83, 0.35);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  z-index: 1;
}

.phone:nth-child(1) .phone__frame {
  transform: rotate(-11deg) translateY(1.55rem);
  z-index: 1;
}

.phone:nth-child(2) .phone__frame {
  transform: rotate(-6.5deg) translateY(0.75rem);
  z-index: 2;
}

.phone:nth-child(3) .phone__frame {
  transform: rotate(-2deg) translateY(0.15rem);
  z-index: 3;
}

.phone:nth-child(4) .phone__frame {
  transform: rotate(2deg) translateY(0.15rem);
  z-index: 3;
}

.phone:nth-child(5) .phone__frame {
  transform: rotate(6.5deg) translateY(0.75rem);
  z-index: 2;
}

.phone:nth-child(6) .phone__frame {
  transform: rotate(11deg) translateY(1.55rem);
  z-index: 1;
}

.phone:hover .phone__frame {
  transform: rotate(0) translateY(-0.55rem) scale(1.08) !important;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 168, 83, 0.45);
  z-index: 8;
}

.phone__shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.1rem;
  object-fit: cover;
  aspect-ratio: 9 / 19.5;
  background: #000;
}

/* ——— Download CTA ——— */
.download {
  position: relative;
  padding: 5rem 1.5rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(212, 168, 83, 0.18), transparent 55%),
    linear-gradient(180deg, #120e0a, #1a130c 60%, #0c0a08);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.download__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
}

.download__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
}

.download__title {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.download__sub {
  margin: 0.75rem auto 1.75rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  max-width: 28rem;
}

/* ——— Visit ——— */
.visit {
  border-top: none;
  padding-bottom: 2rem;
}

.visit__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.address {
  margin: 1rem 0 0.75rem;
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.45;
}

.address__link {
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s ease;
}

.address__link:hover {
  color: var(--gold-soft);
}

.contact-phone {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.contact-phone a {
  color: var(--gold-soft);
}

.visit__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.visit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 168, 83, 0.08);
  color: var(--cream);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.visit-link:hover {
  background: rgba(212, 168, 83, 0.18);
  border-color: var(--gold);
  color: var(--cream);
  transform: translateY(-2px);
}

.visit__label {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.45rem;
}

.hours li span:first-child {
  color: var(--muted);
}

.hours__note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.payments {
  list-style: none;
  margin: 0;
  padding: 0 5px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.payments li {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cream);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.payments li:hover {
  border-color: rgba(212, 168, 83, 0.45);
  background: rgba(212, 168, 83, 0.1);
}

@media (max-width: 860px) {
  .visit {
    padding-bottom: 1.25rem;
  }

  .visit__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  /* Tablet + mobile: stack layout */
  .screens.section {
    background:
      radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 175, 55, 0.1), transparent 55%),
      #0c0a08;
    padding: 1.75rem 1.5rem 2rem;
  }

  .screens__glow {
    display: none;
  }

  .screens__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Hide "The app" intro box on tablet/mobile */
  .screens__intro {
    display: none;
  }

  .phones__hint {
    display: none;
  }

  .phones {
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end;
    gap: 0.3rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.75rem 0.5rem 1rem;
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
  }

  .phone {
    flex: 0 0 auto;
  }

  .phone__frame {
    width: min(7.5rem, 14vw);
  }

  .phone:nth-child(1) .phone__frame {
    transform: rotate(-9deg) translateY(1.1rem);
  }

  .phone:nth-child(2) .phone__frame {
    transform: rotate(-5deg) translateY(0.55rem);
  }

  .phone:nth-child(3) .phone__frame {
    transform: rotate(-1.5deg) translateY(0.1rem);
  }

  .phone:nth-child(4) .phone__frame {
    transform: rotate(1.5deg) translateY(0.1rem);
  }

  .phone:nth-child(5) .phone__frame {
    transform: rotate(5deg) translateY(0.55rem);
  }

  .phone:nth-child(6) .phone__frame {
    transform: rotate(9deg) translateY(1.1rem);
  }
}

/* Phone-sized only: swipe carousel */
@media (max-width: 640px) {
  .phones__hint {
    display: block;
  }

  .phones {
    --phone-w: min(11.25rem, 58vw);
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: calc((100% - var(--phone-w)) / 2);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 0.5rem max(1rem, calc((100% - var(--phone-w)) / 2)) 1rem;
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
  }

  .phones::-webkit-scrollbar {
    display: none;
  }

  .phone {
    flex: 0 0 var(--phone-w);
    width: var(--phone-w);
    aspect-ratio: 390 / 900;
    height: auto;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
  }

  .phone.is-active {
    z-index: 5;
  }

  .phone + .phone {
    margin-left: -1.25rem;
  }

  .phone__frame {
    width: 100%;
    height: 100%;
    padding: 0.45rem;
    box-sizing: border-box;
    opacity: 1;
    background: #0a0908;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    transform: none !important;
    transform-origin: center center;
    transition:
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.45s ease,
      filter 0.35s ease;
  }

  .phone:nth-child(n) .phone__frame {
    transform: none !important;
  }

  .phone__shot {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    opacity: 1;
  }

  .phone:not(.is-active) .phone__frame {
    filter: brightness(0.72);
    transform: scale(0.92) !important;
  }

  .phone.is-active .phone__frame {
    filter: none;
    transform: scale(1.05) !important;
    box-shadow:
      0 22px 52px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(212, 175, 55, 0.4);
  }

  .phone.is-active:hover .phone__frame,
  .phone.is-active:active .phone__frame {
    width: 100%;
    transform: scale(1.05) !important;
  }

  .phone:hover .phone__frame {
    transform: scale(0.92) !important;
  }

  .phone.is-active:hover .phone__frame {
    transform: scale(1.05) !important;
  }
}

/* ——— Footer ——— */
.footer {
  padding: 1.25rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer img {
  margin: 0 auto 0.75rem;
  border-radius: 0.65rem;
}

.footer p {
  margin: 0.25rem 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.footer__links a {
  color: var(--gold);
}

/* ——— Legal pages (privacy / terms) ——— */
.legal-page {
  padding-bottom: 2rem;
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 10, 8, 0.92);
  backdrop-filter: blur(10px);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cream);
  font-weight: 600;
}

.legal-brand img {
  border-radius: 0.65rem;
}

.legal-back {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-wrap {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 2.5rem;
}

.legal-wrap h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.9rem;
}

.legal-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

/* ——— Open-in-app prompt (Chrome / in-browser) ——— */
.app-open {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.app-open.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.app-open[hidden] {
  display: none !important;
}

.app-open__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.app-open__sheet {
  position: relative;
  width: min(19.5rem, 100%);
  padding: 1.25rem 1.1rem 1rem;
  border-radius: 1rem;
  background: #2c2c2e;
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.app-open__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 0.85rem;
}

.app-open__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.app-open__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.app-open__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.app-open__btn--primary {
  background: #0a84ff;
  color: #fff;
}

@media (min-width: 900px) {
  .app-open {
    display: none !important;
  }
}

/* ——— Sticky dock ——— */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(12, 10, 8, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(212, 168, 83, 0.35);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.dock.is-visible {
  transform: translateY(0);
}

.dock__inner {
  max-width: 78rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dock__copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
}

.dock__copy img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  flex-shrink: 0;
}

.dock__copy strong {
  display: block;
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock__copy span {
  display: block;
  font-size: 0.75rem;
  color: var(--gold-soft);
}

.store-badges--dock {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  min-width: 0;
  width: auto;
  max-width: min(17.5rem, 62%);
  padding-right: 5px;
  box-sizing: border-box;
  --badge-w: 130px;
  --badge-h: 44px;
}

.store-badges--dock .badge {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: auto;
  min-height: 0;
  max-width: none;
  max-height: none;
  aspect-ratio: 160 / 54;
  overflow: visible;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.store-badges--dock .badge__img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: fill;
}

@media (max-width: 640px) {
  .dock {
    padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  }

  .dock__inner {
    gap: 0.45rem;
  }

  .dock__copy span {
    display: none;
  }

  .dock__copy strong {
    font-size: 0.8rem;
  }

  .dock__copy img {
    width: 1.85rem;
    height: 1.85rem;
  }

  .store-badges--dock {
    max-width: min(14.5rem, 68%);
    gap: 0.3rem;
    padding-right: 5px;
  }
}

@media (max-width: 380px) {
  .dock__copy strong {
    display: none;
  }

  .store-badges--dock {
    max-width: 100%;
    flex: 1 1 auto;
    padding-right: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
