/* =========================================================
   Puppy Merge — Official Landing
   Style: claymorphism + sunburst arena (lime / sky / purple)
   Layout: brand-first hero · merge equation · asymmetric board · phone fan
   ========================================================= */

:root {
  --lime: #7bc94a;
  --lime-deep: #4e9a2e;
  --lime-soft: #e8f9d4;
  --sky: #4ba3e7;
  --sky-soft: #d6efff;
  --yellow: #fdc228;
  --yellow-deep: #e5a800;
  --purple: #6b3fa0;
  --purple-deep: #4a2870;
  --purple-soft: #f0e6ff;
  --cream: #f4fff0;
  --white: #ffffff;
  --text: #1e3a28;
  --text-muted: #3d5c48;
  --shadow-clay: 6px 8px 0 rgba(30, 58, 40, 0.12), inset -2px -3px 0 rgba(0, 0, 0, 0.06), inset 2px 3px 0 rgba(255, 255, 255, 0.55);
  --shadow-soft: 0 18px 40px rgba(30, 58, 40, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: Quicksand, system-ui, sans-serif;
  --header-h: 76px;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

.pm-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}

.pm-skip:focus {
  left: 0;
}

/* ---------- Ambient ---------- */
.pm-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pm-sunburst {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 140vmax;
  height: 140vmax;
  transform: translateX(-50%);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(123, 201, 74, 0.14) 0deg 12deg,
    rgba(168, 224, 99, 0.06) 12deg 24deg
  );
  opacity: 0.55;
  animation: pm-spin 80s linear infinite;
}

.pm-float {
  position: absolute;
  opacity: 0.35;
  animation: pm-drift 9s ease-in-out infinite;
}

.pm-float--bone {
  width: 36px;
  height: 16px;
  background: rgba(123, 201, 74, 0.45);
  border-radius: 8px;
  box-shadow: 10px 0 0 rgba(123, 201, 74, 0.45), -10px 0 0 rgba(123, 201, 74, 0.45);
}

.pm-float--coin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe28a, var(--yellow) 55%, var(--yellow-deep));
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.12);
}

.pm-float--star {
  width: 14px;
  height: 14px;
  background: #fff;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.7;
}

.b1 { top: 18%; left: 8%; animation-delay: 0s; }
.b2 { top: 62%; right: 10%; animation-delay: -3s; }
.c1 { top: 28%; right: 14%; animation-delay: -1.5s; }
.c2 { bottom: 22%; left: 12%; animation-delay: -4s; }
.s1 { top: 40%; left: 22%; animation-delay: -2s; }
.s2 { top: 70%; right: 24%; animation-delay: -5s; }

@keyframes pm-spin {
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes pm-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Header / collar nav ---------- */
.pm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px;
  transition: padding 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.pm-header.is-scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
}

.pm-collar {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 10px 14px 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #fff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-clay), 0 8px 28px rgba(75, 163, 231, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pm-header.is-scrolled .pm-collar {
  box-shadow: 0 10px 32px rgba(30, 58, 40, 0.16);
}

.pm-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  cursor: pointer;
}

.pm-brand img {
  border-radius: 12px;
  box-shadow: 2px 3px 0 rgba(30, 58, 40, 0.12);
}

.pm-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.pm-brand__puppy { color: var(--yellow-deep); }
.pm-brand__merge { color: var(--sky); }

.pm-collar__links {
  display: none;
  gap: 0.25rem;
  margin-left: auto;
}

.pm-collar__links a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.pm-collar__links a:hover,
.pm-collar__links a:focus-visible {
  background: var(--lime-soft);
  color: var(--lime-deep);
  outline: none;
}

.pm-collar__cta {
  display: none;
  margin-left: auto;
}

.pm-collar__bell {
  position: absolute;
  right: 18px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe28a, var(--yellow));
  border: 2px solid var(--purple);
  box-shadow: 0 2px 0 var(--purple-deep);
  pointer-events: none;
  display: none;
}

.pm-burger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--lime-soft);
  border: 2px solid var(--lime);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-bounce);
}

.pm-burger:active {
  transform: scale(0.94);
}

.pm-burger span {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--lime-deep);
  transition: transform 0.25s, opacity 0.25s;
}

.pm-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.pm-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.pm-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.pm-drawer {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  left: 16px;
  right: 16px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  background: #fff;
  border: 3px solid var(--lime);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.pm-drawer[hidden] {
  display: none;
}

.pm-drawer a {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  transition: background 0.2s;
}

.pm-drawer a:hover {
  background: var(--lime-soft);
}

/* ---------- Buttons ---------- */
.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s, filter 0.2s;
}

.pm-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.pm-btn:active {
  transform: scale(0.96) translateY(1px);
}

.pm-btn:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.pm-btn--lime {
  background: linear-gradient(180deg, #9be05e 0%, var(--lime) 55%, var(--lime-deep) 100%);
  color: #fff;
  border-color: var(--lime-deep);
  box-shadow: 0 5px 0 var(--lime-deep), 0 10px 20px rgba(78, 154, 46, 0.3);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.pm-btn--lime:active {
  box-shadow: 0 2px 0 var(--lime-deep);
}

.pm-btn--block {
  width: 100%;
  margin-top: 0.5rem;
}

.pm-btn--store {
  background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
  color: #fff;
  border-color: #000;
  box-shadow: 0 5px 0 #000, 0 12px 24px rgba(0, 0, 0, 0.2);
  padding: 0.65rem 1.15rem;
  text-align: left;
  gap: 0.65rem;
}

.pm-btn--store small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.85;
  line-height: 1.1;
}

.pm-btn--store span {
  display: block;
  line-height: 1.15;
  font-size: 1.05rem;
}

.pm-btn--store-alt {
  background: linear-gradient(180deg, #5ec8f0 0%, var(--sky) 60%, #2f7fc0 100%);
  border-color: #2f7fc0;
  box-shadow: 0 5px 0 #2f7fc0, 0 12px 24px rgba(75, 163, 231, 0.35);
}

.pm-btn--store-alt:active {
  box-shadow: 0 2px 0 #2f7fc0;
}

.pm-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.pm-hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 12px) 0 0;
  isolation: isolate;
}

.pm-hero__stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.pm-hero__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.pm-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(244, 255, 240, 0.35) 0%, rgba(244, 255, 240, 0.15) 28%, rgba(30, 58, 40, 0.45) 70%, rgba(30, 58, 40, 0.82) 100%),
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(253, 194, 40, 0.25), transparent 60%);
}

.pm-hero__content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
  text-align: center;
  color: #fff;
}

.pm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 70, 90, 0.95);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.pm-hero__badge svg {
  width: 16px;
  height: 16px;
}

.pm-hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.pm-hero__word {
  display: block;
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
}

.pm-hero__word--puppy {
  color: var(--yellow);
}

.pm-hero__word--merge {
  color: #7dd3ff;
}

.pm-hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.pm-hero__lead {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.95;
  max-width: 34rem;
  margin: 0 auto 1.25rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.pm-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pm-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(123, 201, 74, 0.35));
}

.pm-equation__chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.55rem 0.35rem;
  background: #fff;
  border-radius: 18px;
  border: 3px solid var(--sky);
  box-shadow: var(--shadow-clay);
}

.pm-equation__chip img {
  border-radius: 12px;
}

.pm-equation__chip span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sky);
  background: var(--sky-soft);
  padding: 0.1rem 0.45rem;
  border-radius: 8px;
}

.pm-equation__chip--up {
  border-color: var(--purple);
  transform: scale(1.08);
}

.pm-equation__chip--up span {
  color: #fff;
  background: var(--purple);
}

.pm-equation__plus,
.pm-equation__eq {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

/* ---------- Sections ---------- */
.pm-section-head {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
  padding: 0 1.25rem;
}

.pm-section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.pm-section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.pm-section-head--light h2,
.pm-section-head--light p {
  color: #fff;
}

.pm-section-head--light p {
  opacity: 0.9;
}

/* ---------- Features board ---------- */
.pm-features {
  position: relative;
  z-index: 1;
  padding: 4.5rem 1.25rem 3.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(253, 194, 40, 0.18), transparent 55%),
    var(--cream);
}

.pm-board {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.pm-tile {
  position: relative;
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-clay);
  overflow: hidden;
}

.pm-tile h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0.5rem 0 0.35rem;
  line-height: 1.2;
}

.pm-tile p {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.pm-tile__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.06);
}

.pm-tile__icon svg {
  width: 24px;
  height: 24px;
  color: var(--text);
}

.pm-tile--lime {
  background: linear-gradient(160deg, #c8f08a 0%, var(--lime) 100%);
}

.pm-tile--sky {
  background: linear-gradient(160deg, #b8e4ff 0%, var(--sky) 100%);
}

.pm-tile--sky h3,
.pm-tile--sky p,
.pm-tile--purple h3,
.pm-tile--purple p {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.pm-tile--yellow {
  background: linear-gradient(160deg, #ffe28a 0%, var(--yellow) 100%);
}

.pm-tile--purple {
  background: linear-gradient(135deg, #9b6fd4 0%, var(--purple) 55%, var(--purple-deep) 100%);
}

.pm-tile__shot {
  margin-top: 1rem;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 12px 28px rgba(30, 58, 40, 0.2);
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 576 / 1024;
  background: #1e3a28;
}

.pm-tile__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pm-tile__shot--side {
  max-width: 180px;
  margin: 1rem auto 0;
}

.pm-tile__copy {
  position: relative;
  z-index: 1;
}

/* ---------- Gallery / phone fan ---------- */
.pm-gallery {
  position: relative;
  z-index: 1;
  padding: 4rem 1rem 3rem;
  background:
    radial-gradient(ellipse at center, #9be05e 0%, var(--lime-deep) 70%),
    var(--lime-deep);
  overflow: hidden;
}

.pm-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(255, 255, 255, 0.07) 0deg 10deg,
    transparent 10deg 20deg
  );
  opacity: 0.5;
  pointer-events: none;
}

.pm-fan {
  display: none;
  position: relative;
  height: 420px;
  max-width: 900px;
  margin: 0 auto;
  justify-content: center;
  align-items: flex-end;
}

.pm-fan__phone {
  position: absolute;
  width: min(200px, 22vw);
  aspect-ratio: 576 / 1024;
  border-radius: 28px;
  overflow: hidden;
  border: 4px solid #1a1a1a;
  box-shadow:
    0 0 0 3px #fff,
    0 20px 40px rgba(0, 0, 0, 0.35);
  background: #111;
  transition: transform 0.35s var(--ease-bounce);
  cursor: pointer;
}

.pm-fan__phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pm-fan__phone:hover {
  z-index: 5 !important;
  transform: translateY(-18px) scale(1.05) !important;
}

.pm-fan__phone--1 {
  left: 8%;
  bottom: 20px;
  transform: rotate(-14deg);
  z-index: 1;
}

.pm-fan__phone--2 {
  left: 28%;
  bottom: 40px;
  transform: rotate(-5deg);
  z-index: 2;
}

.pm-fan__phone--3 {
  right: 28%;
  bottom: 40px;
  transform: rotate(5deg);
  z-index: 3;
}

.pm-fan__phone--4 {
  right: 8%;
  bottom: 20px;
  transform: rotate(14deg);
  z-index: 2;
}

.pm-snap {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 1rem 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pm-snap::-webkit-scrollbar {
  display: none;
}

.pm-snap__item {
  flex: 0 0 min(220px, 68vw);
  scroll-snap-align: center;
  aspect-ratio: 576 / 1024;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid #1a1a1a;
  box-shadow: 0 0 0 3px #fff, 0 14px 28px rgba(0, 0, 0, 0.3);
  background: #111;
}

.pm-snap__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ---------- Download ---------- */
.pm-download {
  position: relative;
  z-index: 1;
  padding: 0 1.25rem 4.5rem;
  background: var(--cream);
  margin-top: -1px;
}

.pm-download__wave {
  height: 64px;
  margin: 0 -1.25rem 2rem;
  background: var(--lime-deep);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.pm-download__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(160deg, #9b6fd4 0%, var(--purple) 50%, var(--purple-deep) 100%);
  border-radius: 40px;
  border: 4px solid #fff;
  box-shadow: var(--shadow-clay), 0 24px 48px rgba(107, 63, 160, 0.35);
  color: #fff;
}

.pm-download__mascot {
  width: 100px;
  height: 100px;
  margin: -4rem auto 1rem;
  border-radius: 28px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  background: var(--sky-soft);
}

.pm-download__mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-download__inner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.pm-download__inner > p {
  opacity: 0.92;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.pm-download__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- Footer ---------- */
.pm-footer {
  position: relative;
  z-index: 1;
  background: #1e3a28;
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 1.25rem 2rem;
}

.pm-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.pm-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  cursor: pointer;
}

.pm-footer__brand img {
  border-radius: 10px;
}

.pm-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.pm-footer__links a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}

.pm-footer__links a:hover {
  color: var(--yellow);
}

.pm-footer__copy {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- Modal ---------- */
.pm-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.pm-modal[hidden] {
  display: none;
}

.pm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 40, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.pm-modal__panel {
  position: relative;
  width: min(400px, 100%);
  padding: 2rem 1.5rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 4px solid var(--lime);
  box-shadow: var(--shadow-clay), 0 24px 48px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: pm-pop 0.4s var(--ease-bounce);
}

@keyframes pm-pop {
  from { transform: scale(0.86); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.pm-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ff4d5e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 3px 0 #c62828;
  cursor: pointer;
  transition: transform 0.2s var(--ease-bounce);
}

.pm-modal__close:hover {
  transform: scale(1.08);
}

.pm-modal__close svg {
  width: 18px;
  height: 18px;
}

.pm-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 18px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: var(--shadow-clay);
}

.pm-modal__icon svg {
  width: 28px;
  height: 28px;
  color: var(--text);
}

.pm-modal__panel h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.pm-modal__panel p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

body.pm-modal-open {
  overflow: hidden;
}

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .pm-collar__links {
    display: flex;
  }

  .pm-collar__cta {
    display: inline-flex;
    margin-left: 0;
  }

  .pm-collar__bell {
    display: block;
  }

  .pm-burger {
    display: none;
  }

  .pm-drawer {
    display: none !important;
  }

  .pm-hero__content {
    padding-bottom: 0.5rem;
  }

  .pm-board {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 1.15rem;
  }

  .pm-tile--tall {
    grid-column: span 5;
    grid-row: span 2;
  }

  .pm-tile--sky {
    grid-column: span 7;
  }

  .pm-tile--yellow {
    grid-column: span 7;
  }

  .pm-tile--wide {
    grid-column: span 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
  }

  .pm-tile--wide .pm-tile__copy {
    flex: 1;
    max-width: 520px;
  }

  .pm-tile--wide .pm-tile__shot--side {
    margin: 0;
    max-width: 200px;
    flex-shrink: 0;
  }

  .pm-fan {
    display: flex;
  }

  .pm-snap {
    display: none;
  }

  .pm-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }

  .pm-footer__copy {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .pm-hero {
    justify-content: center;
    padding-top: calc(var(--header-h) + 40px);
  }

  .pm-hero__content {
    margin-left: 8%;
    margin-right: auto;
    text-align: left;
    max-width: 520px;
    padding-left: 2rem;
  }

  .pm-hero__cta {
    justify-content: flex-start;
  }

  .pm-hero__veil {
    background:
      linear-gradient(90deg, rgba(30, 58, 40, 0.99) 0%, rgba(30, 58, 40, 0.48) 42%, rgba(30, 58, 40, 0.06) 68%, transparent 100%),
      linear-gradient(180deg, transparent 50%, rgba(30, 58, 40, 0.4) 100%);
  }

  .pm-equation {
    position: absolute;
    right: 6%;
    bottom: 12%;
    background: transparent;
    padding: 0;
  }

  .pm-tile--tall .pm-tile__shot {
    max-width: 240px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pm-sunburst,
  .pm-float,
  .pm-modal__panel {
    animation: none !important;
  }

  .pm-btn,
  .pm-fan__phone,
  .pm-burger span {
    transition: none !important;
  }
}
