/* Party Pal — coming-soon landing page */

:root {
  --blue: #1e93e0;
  --coral: #f0653f;
  --teal: #13a888;
  --pink: #ec5f96;
  --indigo: #4b4fc4;
  --navy: #123a5c;
  --ink: #16324a;
  --cream: #fbf9f4;
  --paper: #ffffff;
  --line: #e7e2d6;

  --shadow-sm: 0 2px 8px rgba(18, 58, 92, 0.06);
  --shadow-md: 0 12px 32px rgba(18, 58, 92, 0.12);
  --shadow-lg: 0 24px 60px rgba(18, 58, 92, 0.16);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-head: "Fredoka", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 244, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(84px, 11vw, 104px);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  height: clamp(48px, 6vw, 64px);
  width: auto;
  border-radius: 14px;
}

.app-caption-logo {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(45% 55% at 20% 20%, rgba(30, 147, 224, 0.22), transparent 70%),
    radial-gradient(40% 50% at 85% 10%, rgba(236, 95, 150, 0.18), transparent 70%),
    radial-gradient(35% 45% at 60% 60%, rgba(19, 168, 136, 0.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--navy);
}

.text-gradient {
  background: linear-gradient(100deg, var(--blue), var(--indigo) 45%, var(--pink) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: #3f5b71;
  max-width: 46ch;
  margin: 0 0 34px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* Google Play + App Store badges (official assets) — no live listing yet,
   so a small label does the "coming soon" signalling instead of a link */
.store-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-badges-label {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--coral);
}

.final-cta-copy .store-badges-label {
  color: rgba(255, 255, 255, 0.88);
}

.store-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.store-badge-img {
  height: 53px;
  width: 160px;
  object-fit: fill;
  border-radius: 8px;
  filter: drop-shadow(var(--shadow-md));
}

.btn-ghost {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
  transition: opacity 0.15s ease;
}

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

/* Hero art */
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.hero-art-blob {
  position: absolute;
  width: 340px;
  height: 340px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  opacity: 0.18;
  animation: blobMove 10s ease-in-out infinite alternate;
}

@keyframes blobMove {
  0% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(0deg) scale(1); }
  100% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; transform: rotate(8deg) scale(1.05); }
}

.floaty {
  position: absolute;
  width: 88px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  background: var(--paper);
  padding: 8px;
  z-index: 1;
}

.float-1 {
  top: 2%;
  left: 0%;
  animation: floatY 6s ease-in-out infinite;
}

.float-3 {
  bottom: -36px;
  right: -34px;
  z-index: 3;
  animation: floatY 7s ease-in-out infinite 0.8s;
}

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

/* Phone mockups — real device-photo frames (images/mockupframes/mockup.png),
   at different sizes/angles. The frame's screen cutout is a slightly-skewed
   quad (measured in image-space), so app content is rendered into a flat
   108x285 box and warped into place with a matrix() transform, then the
   frame image is layered on top so its bezel/camera occlude the edges. */
.phone-stack {
  position: relative;
  width: 340px;
  height: 340px;
  z-index: 2;
}

.phone-stack::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 260px;
  height: 56px;
  background: radial-gradient(closest-side, rgba(18, 58, 92, 0.32), transparent 75%);
  filter: blur(4px);
  transform: translateX(-50%);
  z-index: 0;
}

.phone-mock {
  position: absolute;
  width: 500px;
  height: 375px;
}

.phone-mock-screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 108px;
  height: 285px;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: 0 0;
  /* maps the flat content box onto the frame's measured screen quad */
  transform: matrix(0.9602, -0.0517, 0.3563, 0.8931, 143.8, 61.7);
  z-index: 1;
}

.phone-mock-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 22px 30px rgba(18, 58, 92, 0.35));
}

.phone-mock--back {
  top: -8px;
  left: -78px;
  transform: scale(0.58) rotate(-9deg);
  z-index: 1;
}

.phone-mock--front {
  top: 26px;
  left: 30px;
  transform: scale(0.7) rotate(6deg);
  z-index: 2;
  animation: floatY 6.5s ease-in-out infinite 0.3s;
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 6px 9px 0;
  font-size: 6px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
}

.phone-app-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px 3px;
}

.phone-app-header img {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.phone-app-header span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 7px;
  color: var(--navy);
}

.phone-theme-card {
  position: relative;
  flex: 1;
  margin: 3px 8px 8px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.phone-theme-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-theme-tag {
  position: absolute;
  left: 5px;
  bottom: 5px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 6px;
  padding: 2px 5px;
  border-radius: 999px;
}

.phone-progress {
  margin: 6px 8px 0;
}

.phone-progress-bar {
  height: 4px;
  background: #e7e2d6;
  border-radius: 999px;
  overflow: hidden;
}

.phone-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: 999px;
}

.phone-progress p {
  margin: 3px 0 0;
  font-size: 6px;
  font-weight: 600;
  color: var(--navy);
}

.phone-guest-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.phone-guest-list li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 6.5px;
  font-weight: 500;
  color: var(--navy);
}

.phone-guest-list em {
  margin-left: auto;
  font-style: normal;
  font-size: 6px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 999px;
}

.phone-guest-list .yes {
  color: var(--teal);
  background: rgba(19, 168, 136, 0.14);
}

.phone-guest-list .maybe {
  color: #b8862f;
  background: rgba(184, 134, 47, 0.14);
}

.avatar {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 6px;
  flex-shrink: 0;
}

.avatar-blue { background: var(--blue); }
.avatar-coral { background: var(--coral); }
.avatar-teal { background: var(--teal); }
.avatar-pink { background: var(--pink); }

/* ---------- Section shared ---------- */
.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.01em;
  color: var(--navy);
  text-align: center;
  margin: 0 0 12px;
}

.section-sub {
  text-align: center;
  color: #3f5b71;
  max-width: 52ch;
  margin: 0 auto 44px;
  font-size: 1.05rem;
}

/* ---------- Features ---------- */
.features {
  padding: clamp(56px, 8vw, 100px) 0 clamp(24px, 6vw, 60px);
}

.features .section-title {
  margin-bottom: 44px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  position: relative;
  background: var(--card-accent, var(--blue));
  /* uneven, hand-cut corners to echo the blob tiles in the Party Pal logotype */
  border-radius: 48px 20px 44px 26px;
  padding: 32px 24px 28px;
  box-shadow: 0 6px 0 rgba(18, 58, 92, 0.22), var(--shadow-sm);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:nth-child(1) { --card-accent: #f2654a; --tilt: -1.6deg; border-radius: 22px 50px 24px 46px; }
.feature-card:nth-child(2) { --card-accent: #00aa91; --tilt: 1.2deg; border-radius: 46px 24px 50px 20px; }
.feature-card:nth-child(3) { --card-accent: #f278ba; --tilt: -1.1deg; border-radius: 26px 44px 20px 52px; }
.feature-card:nth-child(4) { --card-accent: #3547b4; --tilt: 1.6deg; border-radius: 50px 22px 46px 24px; }

.feature-card:hover {
  transform: translateY(-4px) rotate(var(--tilt, 0deg));
  box-shadow: 0 10px 0 rgba(18, 58, 92, 0.22), var(--shadow-md);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  margin: 0 0 8px;
  color: #fff;
}

.feature-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Theme showcase ---------- */
.themes {
  padding: clamp(40px, 7vw, 80px) 0;
}

.theme-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.theme-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 14px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: var(--shadow-md);
}

.theme-card img {
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.theme-card figcaption {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--navy);
  font-size: 0.95rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  margin: clamp(40px, 7vw, 80px) 24px 0;
  border-radius: 32px;
  background: linear-gradient(120deg, var(--indigo), var(--blue) 55%, var(--teal));
  color: #fff;
}

/* Background patterns live on their own clipped layer so the logo art
   can pop out past the card's rounded corners without leaking the bg too */
.final-cta-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 0;
}

.final-cta-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 60% at 90% 6%, rgba(255, 255, 255, 0.2), transparent 70%),
    radial-gradient(32% 50% at 4% 96%, rgba(255, 255, 255, 0.14), transparent 70%);
  pointer-events: none;
}

.final-cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(55% 65% at 82% 25%, black, transparent 72%);
  mask-image: radial-gradient(55% 65% at 82% 25%, black, transparent 72%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.final-cta-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.final-cta h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
  max-width: 18ch;
}

.final-cta p {
  margin: 0 0 30px;
  opacity: 0.92;
  max-width: 42ch;
  line-height: 1.6;
}

.final-cta-art {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.final-cta-art::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 72%);
  filter: blur(2px);
}

.cta-favicon {
  position: relative;
  width: clamp(260px, 34vw, 460px);
  opacity: 0.85;
  filter: drop-shadow(0 24px 40px rgba(10, 26, 41, 0.3));
  animation: faviconFloat 8s ease-in-out infinite;
}

@keyframes faviconFloat {
  0%, 100% { transform: rotate(-9deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-18px); }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  color: #557087;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
}

.footer-brand img {
  border-radius: 7px;
}

.footer-tagline {
  margin: 0;
  font-size: 0.92rem;
}

.footer-email {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-email:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #8497a6;
}

.footer-maker {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #8497a6;
}

.footer-maker strong {
  color: #557087;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 380px;
    order: -1;
  }
  .phone-stack {
    transform: scale(0.85);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .theme-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .final-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .final-cta h2,
  .final-cta p {
    max-width: none;
    margin-inline: auto;
  }
  .final-cta-art {
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 72px;
  }
  .brand-mark {
    height: 40px;
  }
  .app-caption-logo {
    height: 34px;
    width: 34px;
  }
  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .theme-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .final-cta {
    margin-inline: 12px;
  }
  .hero-art {
    min-height: 320px;
  }
  .phone-stack {
    transform: scale(0.72);
  }
  .final-cta-art {
    transform: scale(0.8);
    margin-top: -20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-front, .floaty, .hero-art-blob, .cta-favicon {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
