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

:root {
  --bg-dinner: #BCC4FF;
  --bg-travel: #ABE3FB;
  --bg-party:  #F7CAFF;

  --bg: var(--bg-dinner);
  --yellow: #FEF371;
  --ink: #2C2C3A;
  --ink-soft: rgba(0, 0, 0, 0.6);
  --ink-muted: rgba(0, 0, 0, 0.3);
  --white: #FFFFFF;
  --pink: #FF4D8D;
  --green: #10C9A0;
  --purple: #7E63EE;
  --avatar-purple: #B8A0E8;
  --avatar-blue: #A0C4E8;
  --avatar-pink: #E8609A;
  --avatar-border: #FFF0F5;

  --font-mono: 'Courier Prime', 'Courier New', monospace;
  --font-serif: 'Libre Baskerville', 'Times New Roman', serif;
  --font-times: 'Times New Roman', Times, serif;
}

html, body {
  height: 100%;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-times);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  transition: background 0.6s ease;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

body[data-slide="0"] { --bg: var(--bg-dinner); }
body[data-slide="1"] { --bg: var(--bg-travel); }
body[data-slide="2"] { --bg: var(--bg-party); }

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 8.5vw 0;
  height: 120px;
}

.logo {
  font-size: 2.625rem;
  line-height: 1;
  font-family: var(--font-times);
}

.logo-no {
  font-style: italic;
  font-weight: 700;
  color: #222121;
  margin-right: 0.25rem;
}

.logo-plans {
  font-weight: 400;
  color: #757575;
}

.badges {
  display: flex;
  gap: 0.75rem;
}

.badge {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  padding: 0.5rem 0.75rem 0.3rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.badge-beta {
  background: var(--pink);
  color: var(--white);
}

.badge-free {
  background: var(--green);
  color: var(--ink-soft);
}

/* Hero layout */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 2rem 8.5vw 2rem;
  align-items: start;
  max-width: 1512px;
  margin: 0 auto;
  height: calc(100dvh - 120px);
}

/* Left side */
.hero-left {
  display: flex;
  flex-direction: column;
}

.headline {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(3.5rem, 6.5vw, 5.375rem);
  line-height: 1.13;
  color: var(--ink);
  margin-top: 0;
}

.headline-line {
  display: block;
}

.headline mark {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 0.1em;
}

.tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--white);
  color: #000;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  padding: 1.1rem 2.75rem;
  border-radius: 100px;
  text-decoration: none;
  margin-top: 3.5rem;
  width: fit-content;
  transition: transform 0.15s ease;
}

.cta:hover {
  transform: translateY(-2px);
}

/* Right side / slides */
.hero-right {
  position: relative;
  min-height: 560px;
  touch-action: none;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
  z-index: 2;
}

/* Slide 0 — dinner */
.deco-cake {
  width: 146px;
  height: auto;
  top: -100px;
  left: -60px;
  transform: rotate(-8.84deg);
}

.deco-wine {
  width: 132px;
  height: auto;
  right: -50px;
  bottom: 50px;
  transform: rotate(18.59deg);
}

/* Slide 1 — travel */
.deco-plane {
  width: 105px;
  height: auto;
  top: -100px;
  left: -50px;
  transform: rotate(-6deg);
}

.deco-pastel {
  width: 170px;
  height: auto;
  right: -60px;
  bottom: 60px;
  transform: rotate(10deg);
}

/* Slide 2 — home party */
.deco-cups {
  width: 170px;
  height: auto;
  top: -110px;
  left: -50px;
  transform: rotate(-4deg);
}

.deco-disco {
  width: 150px;
  height: auto;
  right: -50px;
  bottom: 60px;
  transform: rotate(8deg);
}

/* Event card */
.event-card {
  background: var(--white);
  border: 4px solid var(--bg);
  border-radius: 32px;
  padding: 1.25rem 2.5rem 3rem;
  position: relative;
  z-index: 1;
  transition: border-color 0.6s ease;
}

.event-title {
  font-family: var(--font-times);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  color: var(--ink);
  line-height: 1.15;
}

.event-meta {
  font-family: var(--font-times);
  font-size: 1.375rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

.avatars {
  display: flex;
  margin-top: 1rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--avatar-border);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-times);
  font-weight: 700;
  font-size: 1.625rem;
  color: var(--ink);
}

.avatar + .avatar {
  margin-left: -10px;
}

.avatar-purple { background: var(--avatar-purple); }
.avatar-blue   { background: var(--avatar-blue); }
.avatar-pink {
  background: var(--avatar-pink);
  font-size: 1.375rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 0.25rem;
}

.stat {
  background: var(--white);
  border: 4px solid var(--bg);
  border-radius: 32px;
  padding: 1.25rem 2.5rem 1.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.6s ease;
}

.stat-number {
  font-family: var(--font-times);
  font-weight: 700;
  font-size: clamp(2.75rem, 4.5vw, 3.75rem);
  line-height: 1.15;
}

.stat-label {
  font-family: var(--font-times);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.15;
}

.stat-active .stat-number { color: var(--pink); }
.stat-active .stat-label  { color: var(--ink); }

.stat-muted .stat-number { color: var(--ink-muted); }
.stat-muted .stat-label  { color: var(--ink-muted); }

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 0.25rem;
}

.tag {
  background: var(--white);
  border-radius: 100px;
  padding: 0.55rem 1.35rem 0.3rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.1;
}

.tag-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.tag-pink   { border: 2px solid var(--pink); }
.tag-green  { border: 2px solid var(--green); }
.tag-purple { border: 2px solid var(--purple); }

/* Follow page */
.logo-link {
  text-decoration: none;
  color: inherit;
}

.follow {
  max-width: 1512px;
  margin: 0 auto;
  padding: 2rem 8.5vw 6rem;
  height: calc(100dvh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
  position: relative;
}

.follow-back {
  position: absolute;
  top: 1rem;
  left: 8.5vw;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

.follow-back:hover {
  color: var(--ink);
}

.follow-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.2;
  color: var(--ink);
  max-width: 18ch;
}

.follow-link {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: #000;
  background: var(--white);
  padding: 1.1rem 2.75rem;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.follow-link:hover {
  transform: translateY(-2px);
}

.follow-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  padding: 1.25rem;
  border-radius: 24px;
  border: 4px solid var(--bg);
  transition: border-color 0.6s ease;
}

.follow-qr img {
  width: 200px;
  height: 200px;
  display: block;
}

.follow-qr-caption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.45);
}

/* Footer */
.footer {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.45);
  z-index: 10;
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--ink);
}

/* Static legal pages */
.legal {
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
}

.legal .footer {
  position: static;
  transform: none;
  left: auto;
  bottom: auto;
  justify-content: center;
  margin: 1rem auto 2.5rem;
}

.legal .legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 3rem;
  font-family: var(--font-times);
  color: var(--ink);
}

.legal .back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.55);
  text-decoration: none;
  margin-bottom: 2rem;
}

.legal .back:hover {
  color: var(--ink);
}

.legal h1 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 2rem;
}

.legal h2 {
  font-family: var(--font-times);
  font-style: italic;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 1.75rem 0 0.5rem;
}

.legal p, .legal li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.7);
}

.legal ul {
  padding-left: 1.25rem;
  margin: 0.25rem 0 0.75rem;
}

.legal a {
  color: var(--ink);
}

/* ========= Responsive ========= */
@media (max-width: 900px) {
  /* unlock the page so stacked content can scroll */
  html {
    overflow: auto;
  }

  body {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .header {
    padding: 2rem 6vw 0;
    height: auto;
  }

  .logo {
    font-size: 2rem;
  }

  .badge {
    font-size: 1rem;
    padding: 0.4rem 0.6rem 0.25rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 3rem 6vw 6rem;
    height: auto;
    align-items: start;
  }

  .hero-right {
    min-height: 640px;
  }

  .footer {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    justify-content: center;
    margin: 1.5rem auto 2rem;
  }

  .follow {
    height: auto;
    min-height: calc(100dvh - 120px);
    padding: 3rem 6vw 3rem;
    gap: 1.75rem;
  }

  .follow-back {
    top: 1rem;
    left: 6vw;
  }

  .follow-qr img {
    width: 180px;
    height: 180px;
  }

  .hero-left {
    text-align: left;
  }

  .cta {
    align-self: flex-start;
  }

  .deco-cake, .deco-cups {
    width: 110px;
    top: -60px;
    left: -20px;
  }

  .deco-plane {
    width: 77px;
    top: -60px;
    left: -20px;
  }

  .deco-wine, .deco-pastel, .deco-disco {
    width: 100px;
    right: -30px;
    bottom: 30px;
  }
}

@media (max-width: 560px) {
  .header {
    padding: 1.5rem 5vw 0;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .logo {
    font-size: 1.75rem;
  }

  .hero {
    padding: 2rem 5vw 4rem;
    gap: 3rem;
  }

  .headline {
    font-size: clamp(3rem, 14vw, 4rem);
  }

  .tagline {
    font-size: 1.375rem;
  }

  .cta {
    font-size: 1.5rem;
    padding: 0.9rem 2rem;
    width: 100%;
    justify-content: center;
  }

  .event-card {
    padding: 1rem 1.5rem 2rem;
    border-radius: 24px;
  }

  .event-title {
    font-size: 1.625rem;
  }

  .event-meta {
    font-size: 1.125rem;
  }

  .stat {
    padding: 1rem 1rem 1.4rem;
    border-radius: 24px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 1.375rem;
  }

  .tag {
    font-size: 1rem;
    padding: 0.5rem 1rem 0.3rem;
  }

  .deco-cake, .deco-cups {
    width: 90px;
    top: -50px;
    left: -10px;
  }

  .deco-plane {
    width: 63px;
    top: -50px;
    left: -10px;
  }

  .deco-wine, .deco-pastel, .deco-disco {
    width: 80px;
    right: -15px;
    bottom: 20px;
  }
}
