/* Homepage hero (mobile-first): copy with a rotating occasion word, a deck of real design posters (Swiper "cards" on phones,
 * 3D coverflow from 1024px, js/hero.js), a drifting brand aura and an occasion marquee. Design collection below: PODIE Feature
 * Carousel port, see third_party/podie/. Colours come from the momentsiz tokens in finish.css. */

/* ---------- Hero ---------- */
.mz-hero { position: relative; isolation: isolate; overflow: hidden; padding: 28px 0 0; background: var(--brand-cloud); }
.mz-aura { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* Static on purpose: drifting full-screen colour layers cost a steady share of CPU on phones for little visible gain. */
.mz-aura i { position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%; }
.mz-aura i:nth-child(1) { top: -45vmax; left: -35vmax; background: radial-gradient(closest-side, rgba(245, 45, 145, .28), transparent); }
.mz-aura i:nth-child(2) { top: -25vmax; right: -45vmax; background: radial-gradient(closest-side, rgba(112, 22, 216, .26), transparent); }
.mz-aura i:nth-child(3) { bottom: -55vmax; left: 10%; background: radial-gradient(closest-side, rgba(255, 146, 56, .22), transparent); }

.mz-hero-inner { display: grid; gap: 32px; width: min(100% - 40px, 1200px); margin: 0 auto; }
.mz-hero-copy { min-width: 0; }
.mz-hero-copy > * { animation: mz-rise .8s cubic-bezier(.22, 1, .36, 1) both; }
.mz-hero-copy > .mz-title { animation: none; }  /* the headline paints at once */
.mz-hero-copy > :nth-child(3) { animation-delay: .1s; }
.mz-hero-copy > :nth-child(4) { animation-delay: .18s; }
.mz-proof { animation: mz-rise .8s .3s cubic-bezier(.22, 1, .36, 1) both; }
.mz-stage { min-width: 0; animation: mz-rise 1s .15s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes mz-rise { from { opacity: 0; transform: translateY(18px); } }

[data-page=home] .mz-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px -14px rgba(var(--brand-rgb), .45); font-size: 13px; font-weight: 700; color: var(--brand-ink); }
.mz-spark { position: relative; width: 18px; height: 18px; }
.mz-spark i { position: absolute; left: 7px; bottom: 1px; width: 4px; height: 8px; border-radius: 4px; transform-origin: 50% 190%; background: #F52D91; animation: mz-spark 2.8s cubic-bezier(.22, 1, .36, 1) infinite; }
.mz-spark i:nth-child(1) { rotate: -42deg; }
.mz-spark i:nth-child(2) { background: #FF9238; animation-delay: .08s; }
.mz-spark i:nth-child(3) { rotate: 42deg; background: #7016D8; animation-delay: .16s; }
@keyframes mz-spark { 0%, 100% { scale: 1; opacity: 1; } 8% { scale: .3; opacity: .4; } 22% { scale: 1.15; opacity: 1; } 34% { scale: 1; } }

[data-page=home] .mz-title { max-width: 14ch; margin: 0; font-size: clamp(2.25rem, 9vw, 4.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; color: var(--brand-ink); text-wrap: balance; }
.mz-word-line { display: block; height: 1.16em; overflow: hidden; white-space: nowrap; }
.mz-word { display: inline-block; padding-bottom: .1em; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mz-word.is-in { animation: mz-word .6s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes mz-word { from { opacity: 0; transform: translateY(55%); filter: blur(6px); } }
.mz-dot { color: var(--brand-orange); -webkit-text-fill-color: var(--brand-orange); }

[data-page=home] .mz-lead { max-width: 34rem; margin: 18px 0 0; font-size: 16px; line-height: 1.6; color: var(--brand-muted); }
.mz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mz-actions .studio-button { flex: 1 1 100%; justify-content: center; min-height: 52px; }
.mz-actions .studio-button.light { background: #fff; color: var(--brand-ink); border-color: rgba(var(--brand-rgb), .16); }
.mz-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin: 0; padding: 20px 0 0; border-top: 1px solid rgba(var(--brand-rgb), .14); list-style: none; }
.mz-proof li { display: grid; gap: 2px; }
.mz-proof strong { font-size: 15px; font-weight: 800; color: var(--brand-ink); }
.mz-proof span { font-size: 12px; font-weight: 500; color: var(--brand-muted); }

/* Deck: phone-shaped cards with a soft white bezel. Swiper sets the slide transforms; nothing here animates a slide's transform. */
.mz-deck { width: min(74vw, 300px); margin: 0 auto; padding: 8px 0 24px; overflow: visible; }
/* Reserve the deck's final size (2:3 cards plus padding) so the page does not jump when js/hero.js builds it. */
.mz-deck { min-height: calc(min(74vw, 300px) * 1.5 + 32px); }
.mz-deck-controls { min-height: 44px; }
.mz-deck .mz-slide { position: relative; display: block; height: auto; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 28px; background: #fff; box-shadow: 0 0 0 6px #fff, 0 36px 60px -30px rgba(25, 21, 39, .6); text-decoration: none; }
.mz-slide::before { content: ""; position: absolute; top: 12px; left: 50%; z-index: 1; width: 56px; height: 6px; margin-left: -28px; border-radius: 6px; background: rgba(25, 21, 39, .35); }
.mz-slide img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.mz-slide:hover img { transform: scale(1.04); }
.mz-slide-meta { position: absolute; inset: auto 10px 10px; display: grid; gap: 2px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--brand-ink); }
.mz-slide-meta b { font-size: 15px; font-weight: 800; }
.mz-slide-meta em { font-size: 12px; font-style: normal; font-weight: 700; color: var(--brand); }
.mz-slide:focus-visible { outline: 3px solid var(--brand); outline-offset: 6px; }

.mz-deck-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.mz-deck-controls .carousel-arrow { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(var(--brand-rgb), .16); background: #fff; color: var(--brand-ink); font-size: 15px; cursor: pointer; box-shadow: 0 8px 20px -12px rgba(25, 21, 39, .4); }
.mz-deck-controls .carousel-arrow:hover { color: var(--brand); border-color: var(--brand); }
.mz-deck-controls .mz-toggle { font-size: 11px; letter-spacing: -.1em; }
.mz-deck-controls .carousel-pagination { position: static; display: flex; width: auto; gap: 6px; }
.mz-deck-controls .carousel-dot { width: 8px; height: 8px; margin: 0 !important; padding: 0; border: 0; border-radius: 99px; background: rgba(var(--brand-rgb), .25); cursor: pointer; transition: width .3s, background .3s; }
.mz-deck-controls .carousel-dot::after { content: ""; position: absolute; inset: -14px -4px; }
.mz-deck-controls .carousel-dot.is-active { width: 24px; background: var(--brand-fill); }

/* Marquee: the list is doubled in the markup, so sliding by half loops seamlessly. */
.mz-marquee { margin-top: 40px; padding: 16px 0; overflow: hidden; border-top: 1px solid rgba(var(--brand-rgb), .12); background: rgba(255, 255, 255, .7); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mz-marquee-track { display: flex; width: max-content; animation: mz-marquee 45s linear infinite; }
.mz-marquee-track span { display: inline-flex; align-items: center; gap: 24px; padding-right: 24px; font-size: 15px; font-weight: 700; white-space: nowrap; color: var(--brand-ink); }
.mz-marquee-track span::after { content: "\2726"; font-size: 13px; color: var(--brand-orange); }
@keyframes mz-marquee { to { transform: translateX(-50%); } }

:is(.mz-hero.is-paused, .mz-hero.is-offscreen) :is(.mz-spark i, .mz-marquee-track) { animation-play-state: paused; }

@media (min-width: 480px) { .mz-actions .studio-button { flex: 0 0 auto; } }
@media (min-width: 1024px) {
  .mz-hero { padding-top: 64px; }
  .mz-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "copy stage" "proof stage"; column-gap: 56px; row-gap: 36px; }
  .mz-hero-copy { grid-area: copy; align-self: end; }
  .mz-stage { grid-area: stage; align-self: center; }
  .mz-proof { grid-area: proof; align-self: start; }
  .mz-proof strong { font-size: 17px; }
  .mz-proof span { font-size: 13px; }
  [data-page=home] .mz-lead { font-size: 18px; }
  .mz-deck { width: 100%; padding: 24px 0 40px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .mz-deck .mz-slide { width: 270px; }
  .mz-deck { min-height: 469px; }
  .mz-marquee { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .mz-spark i, .mz-hero-copy > *, .mz-stage, .mz-proof, .mz-word.is-in, .mz-marquee-track { animation: none !important; }
  .mz-marquee-track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 8px; }
  .mz-marquee-track span:nth-child(n+12) { display: none; }
  .mz-slide img { transition: none; }
}

/* ---------- Design collection: Feature Carousel ---------- */
.design-carousel { margin-top: 32px; }
.fc { container-type: inline-size; width: 100%; max-width: 80rem; margin: 0 auto; }
.fc-frame { position: relative; display: flex; flex-direction: column; min-height: 560px; overflow: hidden; border: 1px solid rgba(24, 24, 27, .1); }
.fc-rail { position: relative; z-index: 30; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; flex-shrink: 0; width: 100%; height: 280px; padding: 0 32px; overflow: hidden; background: var(--brand-strong); }
.fc-fade { position: absolute; left: 0; right: 0; z-index: 40; height: 48px; pointer-events: none; }
.fc-fade-top { top: 0; background: linear-gradient(to bottom, var(--brand-strong), rgba(var(--brand-rgb), .8), transparent); }
.fc-fade-bottom { bottom: 0; background: linear-gradient(to top, var(--brand-strong), rgba(var(--brand-rgb), .8), transparent); }
.fc-chips { position: relative; z-index: 20; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.fc-chip-wrap { position: absolute; display: flex; align-items: center; justify-content: flex-start; width: fit-content; }
.fc .fc-chip { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 24px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: rgba(255, 255, 255, .6); text-align: left; font: inherit; cursor: pointer; transition: color .15s ease-out, background-color .15s ease-out, border-color .15s ease-out, transform .15s ease-out; }
.fc .fc-chip:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.fc .fc-chip:active { transform: scale(.96); }
.fc .fc-chip:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.fc .fc-chip.is-active { z-index: 10; border-color: #fff; background: #fff; color: var(--brand-strong); }
.fc-chip-icon { display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .4); }
.fc-chip.is-active .fc-chip-icon { color: var(--brand-strong); }
.fc-chip-label { white-space: nowrap; font-size: 14px; font-weight: 400; letter-spacing: -.01em; text-transform: uppercase; }
.fc-stage { position: relative; display: flex; flex: 1; align-items: center; justify-content: center; min-height: 420px; padding: 48px 24px; overflow: hidden; border-top: 1px solid rgba(24, 24, 27, .06); background: #f1ebe1; }
.fc-deck { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 420px; aspect-ratio: 4 / 5; }
.fc-card { position: absolute; inset: 0; display: block; overflow: hidden; transform-origin: center; border: 4px solid #fff; background: #fff; color: inherit; }
.fc-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: filter .15s ease-out; }
.fc-card img.is-dim { filter: grayscale(1) blur(2px) brightness(.75); }
.fc-card:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 4px; }
.fc-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 128px 40px 40px; background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .4), transparent); pointer-events: none; }
.fc-pill { width: fit-content; margin-bottom: 12px; padding: 6px 16px; border: 1px solid rgba(24, 24, 27, .15); background: #fff; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #18181b; }
.fc .fc-description { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fc .fc-toggle { position: absolute; right: 16px; bottom: 16px; z-index: 30; min-height: 44px; padding: 0 16px; border: 1px solid rgba(24, 24, 27, .15); background: rgba(255, 255, 255, .8); color: #18181b; font: inherit; font-size: 13px; cursor: pointer; }
.fc .fc-toggle:hover { background: #fff; }
@media (min-width: 768px) {
  .design-carousel { padding: 0 32px; }
  .fc .fc-chip { padding: 20px 40px; }
  .fc-chip-label { font-size: 15px; }
  .fc-card { border-width: 8px; }
  .fc .fc-description { font-size: 24px; }
}
@container (min-width: 720px) {
  .fc-frame { flex-direction: row; min-height: 0; aspect-ratio: 16 / 9; }
  .fc-rail { width: 40%; height: auto; padding: 0 64px; }
  .fc-fade { height: 64px; }
  .fc-chips { justify-content: flex-start; }
  .fc .fc-chip { padding: 16px 32px; }
  .fc-stage { min-height: 0; padding: 64px 40px; border-top: 0; border-left: 1px solid rgba(24, 24, 27, .06); }
}

/* ---------- AI invitation builder highlight ---------- */
.mz-ai-feature { display: grid; gap: 36px; padding-block: 64px; }
.mz-ai-feature h2 { margin: 0; font-size: clamp(1.75rem, 6vw, 2.75rem); line-height: 1.12; }
[data-page=home] .mz-ai-lead { max-width: 36rem; margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--brand-muted); }
.mz-ai-points { display: grid; gap: 14px; margin: 24px 0 28px; padding: 0; list-style: none; }
.mz-ai-points li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.55; color: var(--brand-muted); }
.mz-ai-points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-fill); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .55); }
.mz-ai-points strong { color: var(--brand-ink); }
.mz-ai-demo { overflow: hidden; border: 1px solid rgba(var(--brand-rgb), .14); border-radius: 24px; background: #fff; box-shadow: 0 40px 80px -40px rgba(var(--brand-rgb), .45); }
.mz-ai-demo-head { padding: 16px 20px; background: var(--brand-fill); color: #fff; }
.mz-ai-demo-head strong { display: block; font-size: 16px; font-weight: 800; }
.mz-ai-demo-head span { font-size: 12px; opacity: .9; }
.mz-ai-demo-log { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 22px; background: var(--brand-cloud); }
.mz-ai-bubble { max-width: 85%; margin: 0; padding: 10px 14px; border-radius: 18px; font-size: 14px; font-weight: 500; line-height: 1.45; }
.mz-ai-bubble.is-bot { align-self: flex-start; border-bottom-left-radius: 6px; background: #fff; color: var(--brand-ink); }
.mz-ai-bubble.is-user { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--brand); color: #fff; }
.mz-ai-bubble.is-done { padding: 2px 6px; color: #1F7A4D; font-weight: 700; }
.mz-ai-demo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mz-ai-demo-chips span { padding: 8px 12px; border: 1px solid rgba(var(--brand-rgb), .25); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--brand-ink); }
.mz-ai-demo .mz-ai-bubble, .mz-ai-demo-chips { animation: mz-rise .6s cubic-bezier(.22, 1, .36, 1) both; }
.mz-ai-demo .mz-ai-bubble:nth-child(2) { animation-delay: .15s; }
.mz-ai-demo .mz-ai-bubble:nth-child(3) { animation-delay: .3s; }
.mz-ai-demo .mz-ai-bubble:nth-child(4) { animation-delay: .45s; }
.mz-ai-demo-chips { animation-delay: .6s; }

/* ---------- Quote ---------- */
.mz-quote { padding-block: 56px; }
.mz-quote figure { position: relative; max-width: 56rem; margin: 0 auto; padding: 48px 24px 40px; border-radius: 24px; background: var(--brand-cloud); text-align: center; }
.mz-quote figure::before { content: "\201C"; position: absolute; top: -10px; left: 50%; translate: -50% 0; font-size: 120px; font-weight: 800; line-height: 1; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mz-quote blockquote { margin: 0; }
.mz-quote blockquote p { margin: 0; font-size: clamp(1.4rem, 5vw, 2.25rem); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: var(--brand-ink); text-wrap: balance; }
.mz-quote figcaption { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--brand); }

@media (min-width: 1024px) {
  .mz-ai-feature { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: 64px; padding-block: 96px; }
  .mz-quote { padding-block: 80px; }
  .mz-quote figure { padding: 64px 48px 52px; }
}
@media (prefers-reduced-motion: reduce) { .mz-ai-demo .mz-ai-bubble, .mz-ai-demo-chips { animation: none; } }
