:root {
  --pfuma-red: #e31b23;
  --pfuma-red-dark: #c1141c;
  --pfuma-ink: #0b0d12;
  --pfuma-muted: #5b6472;
  --header-h: 5.25rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--pfuma-ink);
  background: #000;
}

::selection {
  background: rgba(227, 27, 35, 0.18);
  color: var(--pfuma-ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: var(--pfuma-ink);
  font-weight: 700;
}

.skip-link:focus { top: 1rem; }

#site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

#site-header.is-scrolled,
#site-header.header-solid {
  background: #000;
}

.header-shell {
  position: relative;
  min-height: var(--header-h);
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible { color: #fff; }

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.btn-ghost {
  color: #fff;
  font-weight: 800;
  transition: opacity 0.3s ease;
}

.btn-ghost:hover { opacity: 0.8; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pfuma-red);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(227, 27, 35, 0.38);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--pfuma-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(227, 27, 35, 0.5), 0 0 28px rgba(227, 27, 35, 0.45);
}

#site-header .btn-header {
  background: var(--pfuma-red);
  color: #fff;
}

#site-header .btn-header:hover {
  background: var(--pfuma-red-dark);
  color: #fff;
}

.icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 90;
}

.burger-line {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#menu-toggle[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
#menu-toggle[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

#mobile-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 85;
  width: auto;
  height: auto;
  padding: 1rem max(1.25rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#mobile-nav.is-open {
  transform: translateX(0);
}

#mobile-nav nav a {
  display: block;
}

.menu-overlay {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  #mobile-nav,
  .menu-overlay {
    display: none !important;
  }
}

@keyframes drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.header-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: var(--header-h);
}

.header-logo {
  display: block;
  height: 4.5rem;
  width: auto;
  max-width: min(240px, 52vw);
  object-fit: contain;
  object-position: left center;
}

.hero-dd {
  position: relative;
  overflow: hidden;
  background: var(--pfuma-red);
  min-height: calc(100dvh - var(--header-h));
}

.hero-copy {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  min-height: calc(100dvh - var(--header-h));
  padding: 1rem 1rem 1.15rem;
  text-align: center;
}

.hero-shot {
  position: absolute;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  border-radius: 1.25rem;
}

.hero-shot-plate {
  left: -10%;
  top: 4%;
  width: 52%;
  max-width: 280px;
}

.hero-shot-phone {
  display: none;
}

.hero-phone-slot {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(72vw, 280px);
  min-height: 240px;
  margin: 0.5rem auto 0.1rem;
  overflow: visible;
  background: transparent;
}

.hero-phone-center {
  display: block;
  width: auto;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.45rem;
  border-radius: 999px;
  background: #fff;
  color: #0c0c0c;
  font-size: 0.95rem;
  font-weight: 800;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-cta-primary:hover,
.hero-cta-primary:focus-visible {
  background: #f4f4f5;
  transform: translateY(-1px);
}

.hero-cta-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-cta-links a {
  color: #fff;
  text-underline-offset: 0.2em;
  transition: opacity 0.3s ease;
}

.hero-cta-links a:hover,
.hero-cta-links a:focus-visible {
  opacity: 0.8;
  text-decoration: underline;
}

.hero-shot-staples {
  right: -10%;
  bottom: 8%;
  top: auto;
  width: 54%;
  max-width: 290px;
}

.hero-dd::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 46%, rgba(227, 27, 35, 0.72) 0%, rgba(227, 27, 35, 0.38) 42%, rgba(227, 27, 35, 0.12) 70%, transparent 100%);
}

@media (min-width: 640px) {
  .hero-copy { padding: 1.25rem 1.5rem 1.35rem; }
  .hero-phone-slot { width: min(42vw, 320px); }
}

@media (min-width: 768px) {
  .hero-shot-plate { left: -6%; top: 6%; width: 38%; max-width: 420px; }
  .hero-shot-staples { right: -6%; bottom: 6%; width: 38%; max-width: 440px; }
  .hero-phone-slot { width: min(34vw, 340px); }
}

@media (min-width: 1024px) {
  .hero-shot-plate { left: -2%; top: 8%; width: 34%; max-width: 520px; border-radius: 1.5rem; }
  .hero-shot-staples { right: -2%; bottom: 8%; width: 34%; max-width: 540px; border-radius: 1.5rem; }
  .hero-phone-slot { width: min(26vw, 380px); }
  .hero-dd::after {
    background: radial-gradient(ellipse at 50% 42%, rgba(227, 27, 35, 0.48) 0%, rgba(227, 27, 35, 0.16) 50%, transparent 74%);
  }
}

.link-arrow {
  color: var(--pfuma-red);
  font-weight: 800;
  transition: gap 0.3s ease, color 0.3s ease;
}

.link-arrow:hover { color: #ff4d4f; }

.float-icon {
  width: 220px;
  height: 168px;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease;
}

.float-icon:hover {
  transform: translateY(-6px);
}

.float-icon img {
  width: 220px;
  height: 168px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
}

.split-photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 0;
}

.shop-dd {
  background: #fff;
  color: #0c0c0c;
  padding: 3.5rem 0 4.25rem;
  text-align: center;
}

.shop-dd h2 {
  max-width: 20ch;
  margin: 0 auto;
  padding: 0 1.25rem;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.shop-dd-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 12vw;
  padding: 2rem 12vw 0.5rem;
  margin-top: 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shop-dd-scroller::-webkit-scrollbar { display: none; }

.shop-dd-slide {
  flex: 0 0 min(76vw, 640px);
  scroll-snap-align: center;
  cursor: pointer;
}

.shop-dd-slide img {
  display: block;
  width: 100%;
  height: min(52vw, 360px);
  object-fit: cover;
  border-radius: 0.35rem;
}

.shop-dd h3 {
  max-width: 22ch;
  margin: 1.75rem auto 0;
  padding: 0 1.25rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.shop-dd p#shop-dd-copy {
  max-width: 36rem;
  margin: 0.85rem auto 0;
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #3f3f46;
}

.shop-dd-cta {
  margin: 1.5rem auto 0;
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .shop-dd { padding: 4.5rem 0 5rem; }
  .shop-dd-scroller {
    gap: 1.25rem;
    scroll-padding-inline: calc(50vw - 320px);
    padding-inline: calc(50vw - 320px);
  }
  .shop-dd-slide { flex-basis: 640px; }
  .shop-dd-slide img { height: 380px; }
}

.auth-input {
  width: 100%;
  border: 0;
  background: #f3f4f6;
  border-radius: 0.75rem;
  padding: 0.95rem 1rem;
  font-weight: 600;
  color: var(--pfuma-ink);
  outline: none;
}

.auth-input:focus {
  background: #fff;
  box-shadow: 0 0 0 2px var(--pfuma-red);
}

.auth-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 0.25rem;
}

.auth-toggle button {
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 800;
  color: #6b7280;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.auth-toggle button.is-active {
  background: #fff;
  color: var(--pfuma-ink);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  background: #fff;
  color: #000;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.rise-in {
  animation: rise 0.65s ease both;
}

.rise-in-2 { animation-delay: 0.08s; }
.rise-in-3 { animation-delay: 0.16s; }
.rise-in-4 { animation-delay: 0.24s; }

.hero-shot-plate { animation: float-y 7s ease-in-out infinite; }
.hero-shot-staples { animation: float-y 8s ease-in-out 0.6s infinite; }
.hero-shot-phone { animation: float-y 6.5s ease-in-out 0.3s infinite; }
.hero-phone-center { animation: rise 0.7s ease 0.15s both; }

.auth-panel {
  animation: rise 0.6s ease both;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal.is-in {
    animation: rise 0.55s ease both;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}
