:root {
  --bg: #fff8f4;
  --bg-deep: #ffe8f2;
  --ink: #1a1a2e;
  --muted: #7b6e8a;
  --surface: #ffffff;
  --pink: #ff3cac;
  --yellow: #ffd93d;
  --cyan: #4cc9f0;
  --green: #6bcb77;
  --lavender: #a78bfa;
  --border: color-mix(in srgb, var(--pink) 18%, transparent);
  --shadow: 0 24px 60px color-mix(in srgb, var(--pink) 16%, transparent);
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --z-header: 20;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--pink) 22%, transparent), transparent 28rem),
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--cyan) 28%, transparent), transparent 26rem),
    radial-gradient(circle at 70% 78%, color-mix(in srgb, var(--yellow) 24%, transparent), transparent 24rem),
    linear-gradient(180deg, var(--bg) 0%, #fff 45%, var(--bg-deep) 100%);
  min-height: 100vh;
  line-height: 1.6;
}

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

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

h1,
h2,
h3,
.brand__name,
.brand-signal,
.button,
.journey__num,
.postcard__stamp {
  font-family: var(--font-display);
  text-wrap: balance;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 900;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 900;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.lead,
.section-lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  text-wrap: pretty;
}

.section-lead {
  margin-bottom: 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  backdrop-filter: blur(16px);
  transition: box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header--scrolled {
  box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 6%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  font-size: 1.25rem;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--pink) 28%, transparent);
}

.brand__name {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
}

.nav a {
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a:focus-visible,
.footer a:hover,
.footer a:focus-visible,
.contact-alt a:hover,
.contact-alt a:focus-visible,
.legal a:hover,
.legal a:focus-visible {
  color: var(--pink);
  outline: none;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 100px) 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: calc(100vh - 76px);
  padding-top: 48px;
}

.brand-signal {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
    background 180ms ease;
}

.button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cyan) 70%, white);
  outline-offset: 2px;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #ff6bcb);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--pink) 35%, transparent);
}

.button--primary:hover {
  transform: translateY(-1px);
}

.button--ghost {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-color: color-mix(in srgb, var(--ink) 10%, transparent);
}

.button--block {
  width: 100%;
}

.button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.hero__scene {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.postcard {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 4 / 3;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, #fff, color-mix(in srgb, var(--yellow) 28%, white));
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.postcard__stamp {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px dashed color-mix(in srgb, var(--pink) 55%, white);
  border-radius: 10px;
  color: var(--pink);
  font-weight: 900;
  font-size: 0.85rem;
  background: color-mix(in srgb, var(--pink) 8%, white);
}

.postcard__text {
  margin: 48px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ink);
}

.postcard__seal {
  position: absolute;
  left: 22px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--pink) 35%, transparent);
}

.courier-float {
  position: absolute;
  font-size: 3rem;
  filter: drop-shadow(0 12px 18px color-mix(in srgb, var(--ink) 18%, transparent));
  animation: float-y 4.2s ease-in-out infinite;
}

.courier-float--dog {
  right: 8%;
  top: 12%;
  animation-delay: -1.2s;
}

.courier-float--snail {
  left: 4%;
  bottom: 14%;
  font-size: 2.4rem;
  animation-duration: 5.2s;
}

.trail {
  position: absolute;
  inset: 18% 12% 22%;
  border: 2px dashed color-mix(in srgb, var(--cyan) 55%, transparent);
  border-radius: 48% 52% 40% 60%;
  opacity: 0.55;
  pointer-events: none;
}

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

.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.journey__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 8px 0 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.journey__step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.journey__step p {
  margin: 0;
  color: var(--muted);
  max-width: 54ch;
}

.journey__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--lavender));
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
}

.courier-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.courier {
  scroll-snap-align: start;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.courier[data-speed="1"] {
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--green) 14%, white));
}

.courier[data-speed="3"] {
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--lavender) 16%, white));
}

.courier[data-speed="4"] {
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--cyan) 16%, white));
}

.courier--lead {
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--pink) 16%, white));
  border-color: color-mix(in srgb, var(--pink) 28%, transparent);
  transform: translateY(-6px);
}

.courier__emoji {
  font-size: 2.6rem;
  line-height: 1;
}

.courier__meta p {
  margin: 0 0 10px;
  color: var(--muted);
}

.courier__speed {
  margin-top: auto !important;
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 0.92rem;
}

.play {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding-block: clamp(48px, 7vw, 80px);
}

.play__copy p {
  color: var(--muted);
  max-width: 50ch;
  margin: 0;
}

.play__bits {
  list-style: none;
  margin: 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, color-mix(in srgb, var(--yellow) 35%, white), color-mix(in srgb, var(--pink) 12%, white));
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  display: grid;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 800;
}

.play__bits li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.play__bits span {
  font-size: 1.35rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.shot-slot {
  margin: 0;
}

.shot-slot__frame {
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  background: color-mix(in srgb, var(--ink) 4%, white);
  box-shadow:
    0 18px 40px color-mix(in srgb, var(--ink) 10%, transparent),
    0 2px 0 color-mix(in srgb, var(--ink) 4%, transparent);
  position: relative;
  overflow: hidden;
}

.shot-slot__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.shot-slot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 4vw, 56px);
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--muted);
}

.footer strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
}

.footer p {
  margin: 6px 0 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-weight: 600;
}

.support-page {
  max-width: 640px;
}

.support-page__intro {
  text-align: center;
  margin-bottom: 28px;
}

.support-page__intro .lead {
  margin-inline: auto;
}

.support-panel {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow: var(--shadow);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.form-group label span {
  color: var(--pink);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 12%, transparent);
  background: #fffaf8;
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237b6e8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pink) 18%, transparent);
}

.form-message {
  display: none;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
}

.form-message.success {
  display: block;
  background: color-mix(in srgb, var(--green) 18%, white);
  color: color-mix(in srgb, var(--green) 55%, #1a1a2e);
}

.form-message.error {
  display: block;
  background: color-mix(in srgb, #ff5a5a 14%, white);
  color: #a11f2c;
}

.contact-alt {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
}

.contact-alt a {
  color: var(--pink);
  font-weight: 700;
}

.legal {
  max-width: 720px;
}

.legal h2 {
  margin-top: 28px;
  font-size: 1.35rem;
}

.legal h3 {
  margin-top: 20px;
  font-size: 1.1rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  margin: 12px 0 16px;
  padding-left: 1.25rem;
}

.legal ul ul {
  margin: 8px 0;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--pink);
  font-weight: 700;
}

.legal__note {
  margin-top: 32px;
  font-size: 0.92rem;
}

.reveal.is-visible {
  animation: rise-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise-in {
  from {
    opacity: 0.35;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav,
  .footer__links {
    justify-content: flex-start;
  }

  .hero,
  .play,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__scene {
    min-height: 300px;
    order: -1;
  }

  .courier--lead {
    transform: none;
  }

  .shot-slot__frame {
    aspect-ratio: 3 / 4;
  }
}

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

  .courier-float,
  .button,
  .site-header,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

  .reveal.is-visible {
    animation: none !important;
  }
}
