:root {
  color-scheme: light;
  --bg: #fffaf3;
  --panel: #ffffff;
  --teal: #0c978e;
  --teal-dark: #086b64;
  --ink: #2b2621;
  --muted: #786f66;

  --mint: #d7f5ef;
  --peach: #ffe4d1;
  --lavender: #e6defc;
  --sky: #d9ecff;
  --rose: #ffdce4;
  --butter: #fff3c4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 24px;
  overflow: hidden;
}

.wash {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 15% 10%, rgba(215, 245, 239, 0.9), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(255, 228, 209, 0.7), transparent 38%),
    radial-gradient(circle at 20% 90%, rgba(230, 222, 252, 0.7), transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(217, 236, 255, 0.7), transparent 40%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  animation: float-y ease-in-out infinite;
}

.shape-dot {
  border-radius: 50%;
}

.shape-ring {
  border-radius: 50%;
  background: transparent !important;
  border-width: 5px;
  border-style: solid;
}

.shape-diamond {
  border-radius: 8px;
  transform: rotate(45deg);
}

.s1 { top: 8%; left: 6%; width: 46px; height: 46px; border-color: var(--peach); animation-duration: 7s; }
.s2 { top: 14%; right: 10%; width: 20px; height: 20px; background: var(--rose); animation-duration: 5.5s; animation-delay: 0.4s; }
.s3 { top: 46%; left: 4%; width: 26px; height: 26px; background: var(--butter); animation-duration: 6.5s; animation-delay: 0.8s; }
.s4 { bottom: 22%; right: 6%; width: 30px; height: 30px; background: var(--lavender); animation-duration: 6s; animation-delay: 0.2s; }
.s5 { bottom: 10%; left: 10%; width: 38px; height: 38px; border-color: var(--sky); animation-duration: 8s; animation-delay: 0.6s; }
.s6 { top: 60%; right: 16%; width: 18px; height: 18px; background: var(--mint); animation-duration: 5s; animation-delay: 1s; }
.s7 { top: 4%; left: 42%; width: 16px; height: 16px; background: var(--sky); animation-duration: 5.8s; animation-delay: 0.3s; }

@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}

.shape-diamond.s3,
.shape-diamond.s6 {
  animation-name: float-diamond;
}

@keyframes float-diamond {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(55deg) translateY(-14px); }
}

.site-header {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeInDown 0.7s ease forwards;
}

.logo {
  height: 44px;
  width: auto;
  animation: breathe 4s ease-in-out infinite;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  text-align: center;
  padding: 12px 12px 40px;
}

.shop-scene {
  width: min(320px, 80%);
  height: auto;
  margin: 0 auto 8px;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.1s forwards;
}

.ground-shadow {
  fill: rgba(43, 38, 33, 0.08);
}

.shop-body {
  fill: #ffffff;
  stroke: var(--teal);
  stroke-width: 3;
}

.shop-roof {
  stroke: var(--teal);
  stroke-width: 3;
  stroke-linejoin: round;
}

.roof-peach { fill: var(--peach); }
.roof-mint { fill: var(--mint); }
.roof-lavender { fill: var(--lavender); }

.shop-door {
  fill: var(--teal);
}

.shop-knob {
  fill: #ffffff;
}

.shop-window {
  fill: var(--butter);
  stroke: var(--teal);
  stroke-width: 2;
}

.shop {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.shop-1 { animation: shop-sway 4s ease-in-out infinite; }
.shop-2 { animation: shop-sway 5s ease-in-out infinite 0.3s; }
.shop-3 { animation: shop-sway 4.5s ease-in-out infinite reverse; }

@keyframes shop-sway {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.map-pin {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: pin-bounce 2.2s ease-in-out infinite;
}

.pin-body { fill: var(--teal); }
.pin-hole { fill: #ffffff; }

@keyframes pin-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.twinkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 1.8s ease-in-out infinite;
}

.twinkle-a path { fill: #ffb703; }
.twinkle-b path { fill: #ff8fa3; }
.twinkle-c path { fill: #7c6bff; }
.twinkle-b { animation-delay: 0.4s; }
.twinkle-c { animation-delay: 0.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.hero > .eyebrow { animation-delay: 0.3s; }
.hero > h1 { animation-delay: 0.4s; }
.hero > .subtitle { animation-delay: 0.5s; }
.hero > .countdown { animation-delay: 0.6s; }
.hero > .signup-form { animation-delay: 0.7s; }
.hero > .note { animation-delay: 0.8s; }
.hero > .categories { animation-delay: 0.9s; }
.hero > .partner-card { animation-delay: 1s; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--mint);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(12, 151, 142, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(12, 151, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(12, 151, 142, 0); }
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.2;
  font-weight: 600;
}

.highlight {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: #ffb703;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.subtitle {
  margin: 0 auto 30px;
  max-width: 560px;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--muted);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.countdown-box {
  padding: 16px 8px;
  border-radius: 20px;
  border: 2px solid rgba(43, 38, 33, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.countdown-box:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  box-shadow: 0 12px 20px rgba(12, 151, 142, 0.16);
}

.box-mint { background: var(--mint); transform: rotate(-2deg); }
.box-peach { background: var(--peach); transform: rotate(1.5deg); }
.box-lavender { background: var(--lavender); transform: rotate(-1.5deg); }
.box-sky { background: var(--sky); transform: rotate(2deg); }

.countdown-box span {
  display: block;
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
  font-weight: 600;
  color: var(--ink);
}

.countdown-box label {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.countdown-box span.tick {
  animation: tick-pop 0.35s ease;
}

@keyframes tick-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); color: var(--teal); }
  100% { transform: scale(1); }
}

.signup-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

input {
  width: min(300px, 100%);
  padding: 13px 20px;
  border-radius: 999px;
  border: 2px solid #ece3d7;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(12, 151, 142, 0.14);
}

input::placeholder {
  color: #b3a89a;
  font-weight: 500;
}

button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  color: #ffffff;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(12, 151, 142, 0.32);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

button:hover {
  filter: brightness(1.05);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 26px rgba(12, 151, 142, 0.4);
}

button:hover svg {
  transform: translateX(3px);
}

button:active {
  transform: translateY(0) scale(0.98);
}

.note {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  border-radius: 18px;
  background: #ffffff;
  border: 2px solid rgba(43, 38, 33, 0.06);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(12, 151, 142, 0.16);
}

.category-chip:hover .chip-bubble {
  animation: wiggle 0.5s ease;
}

.chip-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--teal-dark);
}

.chip-bubble svg {
  width: 20px;
  height: 20px;
}

.chip-peach .chip-bubble { background: var(--peach); }
.chip-sky .chip-bubble { background: var(--sky); }
.chip-mint .chip-bubble { background: var(--mint); }
.chip-rose .chip-bubble { background: var(--rose); }
.chip-lavender .chip-bubble { background: var(--lavender); }
.chip-butter .chip-bubble { background: var(--butter); }

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.partner-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px dashed #e0d5c4;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.partner-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.partner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
  flex-shrink: 0;
}

.partner-icon svg {
  width: 16px;
  height: 16px;
}

.partner-card a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.partner-card a:hover {
  text-decoration: underline;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(43, 38, 33, 0.06);
  color: var(--teal-dark);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, color 0.25s ease;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.1) rotate(-6deg);
  background: var(--teal);
  color: #ffffff;
}

.social-links svg {
  width: 17px;
  height: 17px;
}

.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;
}

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

  .site-header,
  .hero > *,
  .shop-scene {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signup-form {
    flex-direction: column;
    align-items: center;
  }

  input,
  button {
    width: 100%;
    justify-content: center;
  }

  .partner-card {
    padding: 14px 18px;
    text-align: left;
  }
}
