/* ==========================================================================
   Smarty Wedding — Landing page (/) only. Shared chrome lives in styles.css.
   ========================================================================== */

:root {
  /* The app bar gradient, sampled from the app screenshots. */
  --app-pink: #dc6980;
  --app-plum: #a25c8d;
  --app-violet: #69519c;
  --app-gradient: linear-gradient(100deg, var(--app-pink) 0%, var(--app-plum) 50%, var(--app-violet) 100%);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* The fixed header once the page has scrolled. */
  --header-h: 4rem;
}

html {
  scroll-padding-top: 7.5rem;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* ==========================================================================
   Shared section pieces
   ========================================================================== */

.section-container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-ink);
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.section-subtitle {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cta-row--center {
  justify-content: center;
}

.btn--store {
  min-width: 11rem;
  padding: 0.65rem 1.4rem;
}

.btn__text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.btn__sub {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.88;
}

.btn__main {
  font-size: 1.02rem;
  font-weight: 700;
}

.btn .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-on-scroll.animate-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Device mock-ups
   ========================================================================== */

.device {
  --device-w: 18rem;
  position: relative;
  flex-shrink: 0;
  width: var(--device-w);
  padding: calc(var(--device-w) * 0.034);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: calc(var(--device-w) * 0.155);
  background: linear-gradient(145deg, #2b2427 0%, #151113 100%);
  box-shadow:
    0 25px 65px rgba(31, 22, 24, 0.28),
    0 10px 25px rgba(243, 81, 113, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Side buttons */
.device::before,
.device::after {
  content: "";
  position: absolute;
  width: 3px;
  background: #3a3134;
}

.device::before {
  top: 24%;
  right: -3px;
  height: 12%;
  border-radius: 0 2px 2px 0;
}

.device::after {
  top: 18%;
  left: -3px;
  height: 6%;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 calc(var(--device-w) * 0.13) 0 #3a3134;
}

.device__screen {
  position: relative;
  aspect-ratio: 720 / 1564;
  overflow: hidden;
  border-radius: calc(var(--device-w) * 0.125);
  background: #120e10;
  isolation: isolate;
}

/* Sits exactly over the island in the iOS home-screen capture. */
.device__island {
  position: absolute;
  z-index: 5;
  top: calc(var(--device-w) * 0.034 + var(--device-w) * 0.932 * 0.0315);
  left: 50%;
  width: calc(var(--device-w) * 0.932 * 0.285);
  height: calc(var(--device-w) * 0.932 * 0.082);
  border-radius: 999px;
  background: #0a0809;
  transform: translateX(-50%);
  pointer-events: none;
}

.device__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 8rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 50% at 80% 20%, rgba(243, 81, 113, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(224, 159, 146, 0.25), transparent 55%),
    linear-gradient(175deg, #fff8f6 0%, #fceee9 50%, #f7e6e1 100%);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  animation: glow-drift 22s ease-in-out infinite alternate;
}

.hero__glow--1 {
  top: 10%;
  right: -6%;
  width: min(52vw, 38rem);
  height: min(52vw, 38rem);
  background: radial-gradient(circle, rgba(243, 81, 113, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero__glow--2 {
  bottom: 6%;
  left: -6%;
  width: min(40vw, 28rem);
  height: min(40vw, 28rem);
  background: radial-gradient(circle, rgba(224, 159, 146, 0.26) 0%, rgba(255, 255, 255, 0) 70%);
  animation-duration: 26s;
  animation-delay: -8s;
}

.hero__glow--3 {
  top: 45%;
  left: 38%;
  width: min(30vw, 22rem);
  height: min(30vw, 22rem);
  background: radial-gradient(circle, rgba(105, 81, 156, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  animation-duration: 30s;
  animation-delay: -14s;
}

@keyframes glow-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-6%, 8%, 0) scale(1.15);
  }
}

/* Falling petals */
.petals {
  position: absolute;
  inset: 0;
}

.petal {
  --petal-size: 14px;
  --petal-drift: 60px;
  position: absolute;
  top: -6%;
  left: 10%;
  width: var(--petal-size);
  height: calc(var(--petal-size) * 0.8);
  border-radius: 150% 0 150% 0;
  background: linear-gradient(135deg, #ffd6df 0%, #f78aa0 70%, #f35171 100%);
  opacity: 0;
  animation: petal-fall 16s linear infinite;
}

.petal--1 { left: 6%; animation-duration: 17s; animation-delay: -2s; }
.petal--2 { left: 14%; --petal-size: 10px; animation-duration: 13s; animation-delay: -9s; }
.petal--3 { left: 23%; --petal-size: 16px; --petal-drift: -50px; animation-duration: 19s; animation-delay: -5s; }
.petal--4 { left: 31%; --petal-size: 9px; animation-duration: 15s; animation-delay: -12s; }
.petal--5 { left: 42%; --petal-size: 12px; --petal-drift: -70px; animation-duration: 18s; animation-delay: -1s; }
.petal--6 { left: 51%; --petal-size: 15px; animation-duration: 21s; animation-delay: -15s; }
.petal--7 { left: 59%; --petal-size: 10px; --petal-drift: -40px; animation-duration: 14s; animation-delay: -6s; }
.petal--8 { left: 67%; --petal-size: 13px; animation-duration: 20s; animation-delay: -11s; }
.petal--9 { left: 75%; --petal-size: 11px; --petal-drift: -60px; animation-duration: 16s; animation-delay: -3s; }
.petal--10 { left: 83%; --petal-size: 16px; animation-duration: 22s; animation-delay: -17s; }
.petal--11 { left: 90%; --petal-size: 9px; --petal-drift: -30px; animation-duration: 15s; animation-delay: -8s; }
.petal--12 { left: 96%; --petal-size: 12px; animation-duration: 19s; animation-delay: -13s; }

@keyframes petal-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  10% {
    opacity: 0.75;
  }
  50% {
    transform: translate3d(var(--petal-drift), 55vh, 0) rotate(200deg);
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--petal-drift) * -0.4), 112vh, 0) rotate(420deg);
  }
}

.hero__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 3.5rem;
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.hero__content {
  max-width: 36rem;
}

.hero__eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(243, 81, 113, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(243, 81, 113, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary), var(--app-plum), var(--primary-deep));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  /* Italic glyphs (f, e) overhang the box; background-clip only paints inside
     it. Pad the box (on every wrapped line) and cancel the extra spacing. */
  padding: 0.08em 0.14em;
  margin: 0 -0.14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: gradient-pan 8s ease-in-out infinite alternate;
}

@keyframes gradient-pan {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

.hero__lead {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero__trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 81, 113, 0.14);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.stars {
  color: #f5a623;
  letter-spacing: 1px;
}

.trust-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(82, 67, 70, 0.3);
}

.hero__tour-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero__tour-link:hover {
  color: var(--primary-deep);
}

.hero__tour-arrow {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(243, 81, 113, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  animation: nudge-down 2.2s ease-in-out infinite;
}

.hero__tour-arrow .icon {
  width: 1rem;
  height: 1rem;
}

@keyframes nudge-down {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(5px);
  }
}

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.hero__stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  perspective: 1200px;
}

.device--hero {
  --device-w: 18.5rem;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(3deg);
  transition: transform 0.6s var(--ease-out);
  animation: device-float 7s ease-in-out infinite;
}

@keyframes device-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

/* The new screen fades in over the old one, which hides once it is covered,
   so the dark screen never shows through mid-fade. */
.carousel__item {
  z-index: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0s linear 0.9s, transform 0s linear 0.9s;
}

.carousel__item.is-active {
  z-index: 1;
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 1.6s var(--ease-out);
}

/* One card per hero screen, shown while that screen is (home.client.js moves
   .is-active with the carousel). The old card leaves at once; the new one
   enters once its screen has started to fade in. */
.toast {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  max-width: 16rem;
  padding: 0.65rem 1rem 0.65rem 0.7rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(31, 22, 24, 0.14);
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  transition: opacity 0.3s ease, transform 0.4s ease;
  animation: toast-float 5s ease-in-out infinite;
  pointer-events: none;
}

.toast.is-active {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease 0.35s, transform 0.7s var(--ease-out) 0.35s;
}

.toast--left {
  left: -55%;
}

.toast--right {
  right: -50%;
}

/* Over parts of each screen the card does not need to show. */
.toast--countdown {
  bottom: 20%;
}

.toast--website {
  top: 12%;
}

.toast--widget {
  top: 58%;
}

.toast--guests {
  bottom: 10%;
}

.toast__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--peach-light);
  color: var(--primary);
}

.toast__icon .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.toast__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--ink-muted);
}

.toast__text strong {
  font-weight: 700;
  color: var(--ink);
}

@keyframes toast-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

/* Screen picker under the hero phone; the active pill fills while its screen shows. */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid rgba(243, 81, 113, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 18px rgba(31, 22, 24, 0.06);
}

.carousel-dots__dot {
  position: relative;
  overflow: hidden;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.carousel-dots__dot:hover {
  color: var(--primary-deep);
}

.carousel-dots__dot.is-active {
  background: rgba(243, 81, 113, 0.1);
  color: var(--primary-deep);
}

.carousel-dots__dot::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
}

.carousel-dots__dot.is-active::after {
  animation: carousel-progress 4.5s linear forwards;
}

[data-hero].is-offscreen .carousel-dots__dot.is-active::after {
  animation-play-state: paused;
}

@keyframes carousel-progress {
  to {
    transform: scaleX(1);
  }
}

.carousel-dots__dot:focus-visible,
.motion-toggle:focus-visible,
.tour-nav__link:focus-visible,
.photo-option input:focus-visible + .photo-option__thumb {
  outline: 2px solid var(--primary-deep);
  outline-offset: 2px;
}

.motion-toggle {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid rgba(243, 81, 113, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-soft);
  cursor: pointer;
}

.motion-toggle:hover {
  color: var(--primary-deep);
}

.motion-toggle .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.motion-toggle__icon--play,
.motion-paused .motion-toggle__icon--pause {
  display: none;
}

.motion-paused .motion-toggle__icon--play {
  display: inline;
}

.motion-toggle__icon {
  line-height: 0;
}

/* ==========================================================================
   Feature ribbon
   ========================================================================== */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 0;
  border-block: 1px solid rgba(243, 81, 113, 0.1);
  background: var(--white);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 55s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__list {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0 0.75rem 0 0;
  list-style: none;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(243, 81, 113, 0.14);
  border-radius: 999px;
  background: var(--blush);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-soft);
}

.marquee__item .icon {
  color: var(--primary);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Interactive tour
   ========================================================================== */

.tour {
  position: relative;
  padding: 6rem 0 3rem;
  background: linear-gradient(180deg, var(--blush) 0%, var(--white) 18%, var(--white) 82%, var(--blush) 100%);
}

.tour-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.6rem 1rem;
  pointer-events: none;
}

.tour-nav__inner {
  position: relative;
  max-width: 100%;
  padding: 0.35rem;
  border: 1px solid rgba(243, 81, 113, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(31, 22, 24, 0.08);
  pointer-events: auto;
}

.tour-nav__list {
  display: flex;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.tour-nav__list::-webkit-scrollbar {
  display: none;
}

.tour-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.tour-nav__link .icon {
  width: 1rem;
  height: 1rem;
}

.tour-nav__link:hover {
  color: var(--primary-deep);
  background: rgba(243, 81, 113, 0.06);
}

.tour-nav__link.is-active {
  background: var(--app-gradient);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(105, 81, 156, 0.28);
}

.tour-nav__progress {
  position: absolute;
  right: 1.4rem;
  bottom: 0.12rem;
  left: 1.4rem;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(243, 81, 113, 0.1);
}

.tour-nav__bar {
  display: block;
  height: 100%;
  background: var(--app-gradient);
  transform: scaleX(0);
  transform-origin: left;
}

.tour__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 3rem;
}

.tour-step {
  display: flex;
  align-items: center;
  min-height: 82vh;
  scroll-margin-top: var(--header-h);
}

.tour-step--website,
.tour-step--widget,
.tour-step--guests {
  min-height: 92vh;
}

.tour-step__media {
  display: none;
}

.tour-step__body {
  max-width: 31rem;
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}

[data-tour].is-ready .tour-step:not(.is-active) .tour-step__body {
  opacity: 0.25;
  transform: translateY(14px);
}

.tour-step__count {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.tour-step__total {
  color: var(--ink-muted);
  font-weight: 600;
}

.tour-step__icon {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  background: var(--app-gradient);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(105, 81, 156, 0.25);
}

.tour-step__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.tour-step__desc {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.tour-step__points {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.tour-step__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--ink);
}

.tour-step__points .icon {
  width: 1.35rem;
  height: 1.35rem;
  padding: 0.2rem;
  border-radius: 50%;
  background: rgba(243, 81, 113, 0.12);
  color: var(--primary-deep);
  stroke-width: 2.6;
}

.tour-step__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(243, 81, 113, 0.3);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-deep);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.tour-step__cta:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.tour-step__cta .icon {
  width: 1rem;
  height: 1rem;
}

.tour__stage {
  position: sticky;
  top: calc(var(--header-h) + 4.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - var(--header-h) - 5.5rem);
  min-height: 30rem;
}

.tour__stage-inner {
  position: relative;
  display: grid;
  place-items: center;
}

.tour__halo {
  position: absolute;
  width: 130%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(243, 81, 113, 0.16) 0%, rgba(105, 81, 156, 0.08) 45%, transparent 70%);
  animation: halo-breathe 6s ease-in-out infinite;
}

@keyframes halo-breathe {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.device--stage {
  --device-w: clamp(15rem, calc((100vh - var(--header-h) - 8rem) / 2.25), 19.5rem);
}

.tour-screen {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transform: translateY(18px) scale(1.04);
  transition: opacity 0s linear 0.6s, transform 0s linear 0.6s;
}

.tour-screen.is-active {
  z-index: 1;
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.8s var(--ease-out);
}

/* Hotspots: pulsing dots with a caption, placed over the capture. */
.tour-spot {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 4px 12px rgba(243, 81, 113, 0.55);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
}

.tour-spot::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid rgba(243, 81, 113, 0.7);
  border-radius: 50%;
  animation: spot-pulse 1.8s ease-out infinite;
}

.tour-screen.is-active .tour-spot {
  opacity: 1;
  transform: none;
  transition-delay: 0.45s;
}

.tour-screen.is-active .tour-spot:nth-of-type(2) {
  transition-delay: 0.65s;
}

.tour-screen.is-active .tour-spot:nth-of-type(3) {
  transition-delay: 0.85s;
}

@keyframes spot-pulse {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(1.7);
    opacity: 0;
  }
}

.tour-spot__label {
  position: absolute;
  top: 50%;
  right: calc(100% + 9px);
  width: max-content;
  max-width: 8.5rem;
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  background: rgba(31, 22, 24, 0.88);
  box-shadow: 0 6px 16px rgba(31, 22, 24, 0.25);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  transform: translateY(-50%);
}

.tour-spot--label-right .tour-spot__label,
.tour-spot--widget-2 .tour-spot__label,
.tour-spot--guests-3 .tour-spot__label,
.tour-spot--seating-2 .tour-spot__label,
.tour-spot--tasks-1 .tour-spot__label,
.tour-spot--tasks-2 .tour-spot__label,
.tour-spot--schedule-1 .tour-spot__label,
.tour-spot--schedule-2 .tour-spot__label {
  right: auto;
  left: calc(100% + 9px);
}

.tour-spot--label-below .tour-spot__label,
.tour-spot--website-1 .tour-spot__label,
.tour-spot--website-2 .tour-spot__label,
.tour-spot--website-3 .tour-spot__label,
.tour-spot--seating-1 .tour-spot__label {
  top: calc(100% + 9px);
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.tour-spot--website-1 .tour-spot__label,
.tour-spot--website-3 .tour-spot__label {
  top: auto;
  bottom: calc(100% + 9px);
}

/* Above the seat-colors pill, so the pill it explains stays readable. */
.tour-spot--seating-3 .tour-spot__label {
  top: auto;
  right: auto;
  bottom: calc(100% + 9px);
  left: -7px;
  transform: none;
}

/* Positions in % of the iOS capture (same layout in every locale). */
.tour-spot--website-1 { left: 50%; top: 43.4%; }
.tour-spot--website-2 { left: 30%; top: 60.6%; }
.tour-spot--website-3 { left: 50%; top: 89.5%; }
.tour-spot--widget-1 { left: 88%; top: 12%; }
.tour-spot--widget-2 { left: 42%; top: 57.5%; }
.tour-spot--guests-1 { left: 88%; top: 23.4%; }
.tour-spot--guests-2 { left: 76%; top: 34.6%; }
.tour-spot--guests-3 { left: 30%; top: 74.3%; }
/* The progress chip's width varies by locale; 60% is inside it in all of them. */
.tour-spot--seating-1 { left: 60%; top: 17.4%; }
.tour-spot--seating-2 { left: 44.5%; top: 53.5%; }
.tour-spot--seating-3 { left: 8.1%; top: 80.5%; }
.tour-spot--budget-1 { left: 80%; top: 17.6%; }
.tour-spot--budget-2 { left: 74%; top: 30.6%; }
.tour-spot--tasks-1 { left: 9.5%; top: 16.6%; }
.tour-spot--tasks-2 { left: 29%; top: 36%; }
.tour-spot--schedule-1 { left: 31%; top: 17.6%; }
.tour-spot--schedule-2 { left: 28%; top: 36%; }
.tour-spot--vendors-1 { left: 78%; top: 17.3%; }

/* ==========================================================================
   Wedding website
   ========================================================================== */

.website {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 5.5rem;
  background:
    radial-gradient(ellipse 55% 45% at 85% 25%, rgba(105, 81, 156, 0.1), transparent 65%),
    radial-gradient(ellipse 50% 40% at 0% 90%, rgba(243, 81, 113, 0.12), transparent 60%),
    linear-gradient(180deg, var(--blush) 0%, #fdf1ee 100%);
}

.website__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 3.5rem;
}

.website__lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(243, 81, 113, 0.16);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  transform: translateY(-2px);
}

.chip .icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.chip-cloud.is-ready .chip {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 0.45s ease calc(var(--chip-i, 0) * 45ms),
    transform 0.55s var(--ease-out) calc(var(--chip-i, 0) * 45ms),
    border-color 0.25s ease,
    color 0.25s ease;
}

.chip-cloud.is-ready.is-visible .chip {
  opacity: 1;
  transform: none;
}

.website__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.website__visual {
  position: relative;
  padding: 0 2.5rem 3rem 0;
}

.browser {
  overflow: hidden;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 30px 70px rgba(31, 22, 24, 0.18), 0 0 0 1px rgba(31, 22, 24, 0.06);
  transform: perspective(1800px) rotateY(-7deg) rotateX(2deg);
  transform-origin: left center;
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(31, 22, 24, 0.06);
  background: #f6efed;
}

.browser__dots {
  display: flex;
  gap: 6px;
}

.browser__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.browser__dots span:nth-child(2) {
  background: #febc2e;
}

.browser__dots span:nth-child(3) {
  background: #28c840;
}

.browser__url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 75%;
  margin: 0 auto;
  padding: 0.28rem 0.9rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--white);
  font-size: 0.74rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-muted);
}

.browser__url .icon {
  width: 0.8rem;
  height: 0.8rem;
  color: #2f9e5b;
}

.browser__viewport {
  position: relative;
  aspect-ratio: 1280 / 820;
  overflow: hidden;
  background: #f7f2ee;
}

.scroll-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
}

.scroll-strip img {
  display: block;
  width: 100%;
  height: auto;
}

.device--website {
  --device-w: 12rem;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  transform: rotate(4deg);
}

/* RSVP flow: invitation → reply → guest list, one 10 s loop across three cards */
.rsvp-flow {
  margin-top: 5rem;
  --flow: 10s;
}

.rsvp-flow__title {
  margin: 0 0 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  text-align: center;
  color: var(--ink);
}

.rsvp-flow__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rsvp-flow__step {
  position: relative;
  text-align: center;
}

.rsvp-flow__number {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: var(--app-gradient);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
}

.rsvp-flow__step-title {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}

.rsvp-flow__step-desc {
  max-width: 19rem;
  margin: 0 auto;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.flow-card {
  position: relative;
  display: grid;
  place-items: center;
  height: 15.5rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(243, 81, 113, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--white) 0%, #fff4f1 100%);
  box-shadow: var(--shadow-md);
}

/* Connectors between the cards, with a dot that travels at hand-over time */
.rsvp-flow__step:not(:last-child) .flow-card::after {
  content: none;
}

.rsvp-flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 7.75rem;
  right: -1.75rem;
  z-index: 3;
  width: 1.75rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(243, 81, 113, 0.5) 0 4px, transparent 4px 8px);
}

.rsvp-flow__step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(7.75rem - 4px);
  right: -1.75rem;
  z-index: 4;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(243, 81, 113, 0.18);
  opacity: 0;
}

.rsvp-flow.is-playing .rsvp-flow__step:nth-child(1)::before {
  animation: flow-hop-1 var(--flow) linear infinite;
}

.rsvp-flow.is-playing .rsvp-flow__step:nth-child(2)::before {
  animation: flow-hop-2 var(--flow) linear infinite;
}

@keyframes flow-hop-1 {
  0%, 30% { opacity: 0; transform: translateX(-12px); }
  31% { opacity: 1; transform: translateX(-12px); }
  37% { opacity: 1; transform: translateX(26px); }
  38%, 100% { opacity: 0; transform: translateX(26px); }
}

@keyframes flow-hop-2 {
  0%, 64% { opacity: 0; transform: translateX(-12px); }
  65% { opacity: 1; transform: translateX(-12px); }
  71% { opacity: 1; transform: translateX(26px); }
  72%, 100% { opacity: 0; transform: translateX(26px); }
}

/* 1 · Envelope */
.envelope {
  position: relative;
  width: 11.5rem;
  height: 7.4rem;
  margin-top: 3.4rem;
  perspective: 600px;
}

/* SVG layers (back, front pocket, flap) share one 184×118 box. */
.envelope__back,
.envelope__front,
.envelope__flap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.envelope__back {
  fill: #f0aebd;
}

.envelope__letter {
  position: absolute;
  z-index: 1;
  right: 7%;
  bottom: 6%;
  left: 7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 92%;
  padding: 0.75rem 0.6rem;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(31, 22, 24, 0.12);
}

.envelope__couple {
  max-width: 100%;
  overflow: hidden;
  font-family: "Dancing Script", var(--font-display);
  font-size: 1.15rem;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--primary-deep);
}

.envelope__line {
  width: 78%;
  height: 4px;
  border-radius: 2px;
  background: #f3dfe2;
}

.envelope__line--short {
  width: 55%;
}

.envelope__button {
  margin-top: 0.2rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: #b4566c;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.envelope__front {
  z-index: 2;
}

.envelope__flap {
  z-index: 3;
  transform-origin: top;
}

.rsvp-flow.is-playing .envelope__flap {
  animation: flap-open var(--flow) var(--ease-out) infinite;
}

.rsvp-flow.is-playing .envelope__letter {
  animation: letter-rise var(--flow) var(--ease-out) infinite;
}

.rsvp-flow.is-playing .envelope__button {
  animation: tap-pulse var(--flow) ease infinite;
}

@keyframes flap-open {
  0%, 6% { transform: rotateX(0deg); z-index: 3; }
  14% { transform: rotateX(180deg); z-index: 0; }
  86% { transform: rotateX(180deg); z-index: 0; }
  94%, 100% { transform: rotateX(0deg); z-index: 3; }
}

@keyframes letter-rise {
  0%, 10% { transform: translateY(0); }
  20%, 82% { transform: translateY(-46%); }
  90%, 100% { transform: translateY(0); }
}

@keyframes tap-pulse {
  0%, 26% { transform: scale(1); box-shadow: 0 0 0 0 rgba(180, 86, 108, 0); }
  28% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(180, 86, 108, 0.45); }
  32% { transform: scale(1); box-shadow: 0 0 0 10px rgba(180, 86, 108, 0); }
  100% { transform: scale(1); }
}

/* 2 · Mini RSVP form, fixed row heights so the tap cursor can find each target */
.mini-rsvp {
  position: relative;
  display: grid;
  grid-template-rows: 1.6rem 2.2rem 2.2rem 2.4rem 2.3rem;
  row-gap: 0.4rem;
  width: min(15.5rem, 88%);
  padding: 0.9rem;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(31, 22, 24, 0.1);
  font-size: 0.74rem;
  text-align: left;
  color: var(--ink);
}

.mini-rsvp__question {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-rsvp__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(31, 22, 24, 0.12);
  border-radius: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.mini-rsvp__radio {
  flex-shrink: 0;
  width: 0.85rem;
  height: 0.85rem;
  border: 1.5px solid rgba(31, 22, 24, 0.35);
  border-radius: 50%;
}

.mini-rsvp__count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.mini-rsvp__count > span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-soft);
}

.stepper {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
}

.stepper__value {
  display: inline-flex;
  flex-direction: column;
  width: 1.7rem;
  height: 1.7rem;
  overflow: hidden;
  border: 1px solid rgba(31, 22, 24, 0.12);
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.7rem;
  text-align: center;
}

.stepper__value span {
  display: block;
  height: 1.7rem;
}

.stepper__plus {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  background: rgba(243, 81, 113, 0.12);
  font-weight: 800;
  color: var(--primary-deep);
}

.mini-rsvp__submit {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #b4566c;
  font-weight: 700;
  white-space: nowrap;
  color: var(--white);
}

.mini-rsvp__done {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
}

.mini-rsvp__done .icon {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.55rem;
  border-radius: 50%;
  background: #e6f6ec;
  color: #2f9e5b;
  stroke-width: 2.5;
}

/* Finger-tap cursor: 0.9rem padding + fixed rows locate the targets. */
.tap-cursor {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 1.6rem;
  height: 1.6rem;
  margin: -0.8rem 0 0 -0.8rem;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(105, 81, 156, 0.45);
  box-shadow: 0 4px 12px rgba(31, 22, 24, 0.25);
  opacity: 0;
  pointer-events: none;
}

.rsvp-flow.is-playing .tap-cursor {
  animation: tap-cursor var(--flow) var(--ease-out) infinite;
}

.rsvp-flow.is-playing .mini-rsvp__option--yes {
  animation: option-pick var(--flow) ease infinite;
}

.rsvp-flow.is-playing .mini-rsvp__option--yes .mini-rsvp__radio {
  animation: radio-pick var(--flow) ease infinite;
}

.rsvp-flow.is-playing .stepper__value span {
  animation: stepper-up var(--flow) var(--ease-out) infinite;
}

.rsvp-flow.is-playing .mini-rsvp__submit {
  animation: submit-press var(--flow) ease infinite;
}

.rsvp-flow.is-playing .mini-rsvp__done {
  animation: done-show var(--flow) ease infinite;
}

/* Rows start at 0.9rem; centers: yes 3.6rem, plus (right) 8.4rem, submit 11.05rem. */
@keyframes tap-cursor {
  0%, 34% { opacity: 0; top: 7rem; left: 50%; transform: scale(1); }
  37% { opacity: 1; top: 3.6rem; left: 1.75rem; transform: scale(1); }
  40% { transform: scale(0.75); }
  42% { top: 3.6rem; left: 1.75rem; transform: scale(1); }
  46% { top: 8.4rem; left: calc(100% - 1.75rem); }
  49% { transform: scale(0.75); }
  51% { top: 8.4rem; left: calc(100% - 1.75rem); transform: scale(1); }
  55% { opacity: 1; top: 11.05rem; left: 50%; }
  58% { transform: scale(0.75); }
  60% { opacity: 1; transform: scale(1); }
  63%, 100% { opacity: 0; top: 11.05rem; left: 50%; }
}

@keyframes option-pick {
  0%, 39% { border-color: rgba(31, 22, 24, 0.12); background-color: transparent; }
  41%, 92% { border-color: var(--primary); background-color: rgba(243, 81, 113, 0.07); }
  96%, 100% { border-color: rgba(31, 22, 24, 0.12); background-color: transparent; }
}

@keyframes radio-pick {
  0%, 39% { border-color: rgba(31, 22, 24, 0.35); box-shadow: inset 0 0 0 0 var(--primary); }
  41%, 92% { border-color: var(--primary); box-shadow: inset 0 0 0 3px var(--primary); }
  96%, 100% { border-color: rgba(31, 22, 24, 0.35); box-shadow: inset 0 0 0 0 var(--primary); }
}

@keyframes stepper-up {
  0%, 48% { transform: translateY(0); }
  51%, 92% { transform: translateY(-100%); }
  96%, 100% { transform: translateY(0); }
}

@keyframes submit-press {
  0%, 57% { transform: scale(1); filter: none; }
  58% { transform: scale(0.95); filter: brightness(1.1); }
  61%, 100% { transform: scale(1); filter: none; }
}

@keyframes done-show {
  0%, 60% { opacity: 0; visibility: hidden; transform: scale(0.96); }
  63%, 90% { opacity: 1; visibility: visible; transform: none; }
  95%, 100% { opacity: 0; visibility: hidden; }
}

/* 3 · Guest list */
.mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(15.5rem, 88%);
}

.mini-list__stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(100deg, #e37a90 0%, #d86a82 100%);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
}

.ticker {
  display: inline-flex;
  flex-direction: column;
  height: 1.2rem;
  overflow: hidden;
  font-weight: 800;
  line-height: 1.2rem;
}

.ticker span {
  display: block;
  height: 1.2rem;
}

.mini-list__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(31, 22, 24, 0.07);
  font-size: 0.78rem;
  text-align: left;
}

.mini-list__avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #efe6e8;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--white);
}

.mini-list__row--new .mini-list__avatar {
  background: var(--app-gradient);
}

.mini-list__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink);
}

.mini-list__badge {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(105, 81, 156, 0.12);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--app-violet);
}

.mini-list__check .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: #2f9e5b;
  stroke-width: 2.6;
}

.mini-list__bar {
  flex: 1;
  height: 0.5rem;
  border-radius: 4px;
  background: #f1e7e9;
}

.mini-list__bar--short {
  flex: 0 0 55%;
}

.rsvp-flow.is-playing .ticker span {
  animation: ticker-up var(--flow) var(--ease-out) infinite;
}

.rsvp-flow.is-playing .mini-list__row--new {
  animation: row-in var(--flow) var(--ease-out) infinite;
}

.rsvp-flow.is-playing .mini-list__check {
  animation: check-pop var(--flow) var(--ease-out) infinite;
}

@keyframes ticker-up {
  0%, 70% { transform: translateY(0); }
  73%, 92% { transform: translateY(-100%); }
  96%, 100% { transform: translateY(0); }
}

@keyframes row-in {
  0%, 71% { opacity: 0; transform: translateY(-12px) scale(0.96); box-shadow: 0 6px 16px rgba(31, 22, 24, 0.07); }
  75% { opacity: 1; transform: none; box-shadow: 0 0 0 3px rgba(243, 81, 113, 0.25), 0 10px 22px rgba(243, 81, 113, 0.18); }
  88% { opacity: 1; transform: none; box-shadow: 0 6px 16px rgba(31, 22, 24, 0.07); }
  95%, 100% { opacity: 0; transform: translateY(-12px) scale(0.96); }
}

@keyframes check-pop {
  0%, 75% { opacity: 0; transform: scale(0.3); }
  79%, 90% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: scale(0.3); }
}

/* Live example in a dialog */
.preview-dialog {
  width: min(28rem, 100% - 2rem);
  max-height: calc(100vh - 2rem);
  padding: 1rem 1.25rem 1.5rem;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--blush);
  box-shadow: 0 30px 80px rgba(31, 22, 24, 0.35);
  color: var(--ink);
}

.preview-dialog::backdrop {
  background: rgba(31, 22, 24, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.preview-dialog[open] {
  animation: dialog-in 0.4s var(--ease-out);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

.preview-dialog__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.preview-dialog__title {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.preview-dialog__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.preview-dialog__link .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.preview-dialog__close {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid rgba(31, 22, 24, 0.12);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.preview-dialog__close:hover {
  color: var(--primary-deep);
}

.device--preview {
  --device-w: min(20rem, calc((100vh - 9rem) / 2.2));
  margin: 0 auto;
}

.device--preview .device__screen {
  background: #2d2926;
}

/* The site is laid out at phone width (390 px) and scaled into the frame. */
.device--preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: calc(390px * 1564 / 720);
  border: 0;
  background: var(--white);
  transform-origin: top left;
}

/* ==========================================================================
   Countdown widget playground
   ========================================================================== */

.widget-lab {
  padding: 6rem 0;
  background: linear-gradient(180deg, #fdf1ee 0%, var(--white) 40%, var(--peach-light) 100%);
}

.widget-lab__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
}

.widget-lab__lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.widget-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  max-width: 26rem;
  margin: 2rem 0 1.5rem;
}

.widget-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.widget-form .field__input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 3.1rem;
  -webkit-appearance: none;
  appearance: none;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(197, 134, 122, 0.4);
  border-radius: var(--radius-md);
  background: var(--white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.widget-form .field__input::-webkit-date-and-time-value {
  text-align: left;
}

.widget-form .field__input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(243, 81, 113, 0.18);
}

/* A legend is laid out outside the fieldset's flex flow, so the field gap does
   not apply; the padding also clears the selected thumbnail's lift and ring. */
.photo-options {
  display: flex;
  gap: 0.7rem;
  padding-top: 0.7rem;
}

.photo-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.photo-option input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-option__thumb {
  display: block;
  width: 3.6rem;
  height: 3.6rem;
  border: 3px solid var(--white);
  border-radius: 14px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 0 0 1px rgba(31, 22, 24, 0.12), var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-option:hover .photo-option__thumb {
  transform: translateY(-2px);
}

.photo-option input:checked + .photo-option__thumb {
  box-shadow: 0 0 0 2px var(--primary), 0 8px 18px rgba(243, 81, 113, 0.3);
  transform: translateY(-2px);
}

.photo-option__thumb--rose,
.widget-photo--rose .hs-widget {
  background-image: url("/static/landing/widget-rose.webp");
}

.photo-option__thumb--hands,
.widget-photo--hands .hs-widget {
  background-image: url("/static/landing/widget-hands.webp");
}

.photo-option__thumb--flowers,
.widget-photo--flowers .hs-widget {
  background-image: url("/static/landing/widget-flowers.webp");
}

.widget-lab__note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(40, 167, 69, 0.1);
  font-size: 0.9rem;
  font-weight: 700;
  color: #237a3b;
}

.widget-lab__visual {
  display: flex;
  justify-content: center;
}

.device--home {
  --device-w: min(19rem, 80vw);
  transform: rotate(-2deg);
}

/* iOS home screen at iPhone Pro Max proportions, measured from the store
   captures (home_widget.png in store/screenshots/raw/ios): positions are % of the
   screen; type and spacing use the widget's point sizes (CountdownWidget.swift)
   on a 440 pt wide screen, so --pt scales with the mock-up. */
.home-screen {
  --pt: calc(100cqw / 440);
  container-type: inline-size;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(85% 42% at -8% 58%, #a6ecdc 0%, #8fe0cf 38%, transparent 64%),
    radial-gradient(70% 34% at 30% 96%, #6cd2d6 0%, transparent 70%),
    radial-gradient(60% 46% at 108% 30%, #1f3fb8 0%, transparent 68%),
    radial-gradient(55% 40% at 62% 46%, rgba(255, 255, 255, 0.85) 0%, rgba(214, 236, 246, 0.6) 32%, transparent 62%),
    linear-gradient(170deg, #cfe6ee 0%, #7fb6e6 34%, #2f63d4 62%, #4aa8e0 100%);
}

.home-screen__status {
  position: absolute;
  top: calc(18 * var(--pt));
  right: calc(30 * var(--pt));
  left: calc(48 * var(--pt));
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(28 * var(--pt));
  color: var(--white);
}

.home-screen__time {
  width: calc(72 * var(--pt));
  font-size: calc(17 * var(--pt));
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.01em;
}

.home-screen__indicators {
  display: inline-flex;
  align-items: center;
  gap: calc(7 * var(--pt));
}

.home-screen__signal {
  display: inline-flex;
  align-items: flex-end;
  gap: calc(2 * var(--pt));
  height: calc(12 * var(--pt));
}

.home-screen__signal span {
  width: calc(3.2 * var(--pt));
  border-radius: 1px;
  background: var(--white);
}

.home-screen__signal span:nth-child(1) { height: 35%; }
.home-screen__signal span:nth-child(2) { height: 55%; }
.home-screen__signal span:nth-child(3) { height: 78%; }
.home-screen__signal span:nth-child(4) { height: 100%; }

.home-screen__battery {
  position: relative;
  width: calc(25 * var(--pt));
  height: calc(12 * var(--pt));
  border: calc(1.2 * var(--pt)) solid rgba(255, 255, 255, 0.55);
  border-radius: calc(4 * var(--pt));
}

.home-screen__battery::before {
  content: "";
  position: absolute;
  inset: calc(1.5 * var(--pt));
  border-radius: calc(2 * var(--pt));
  background: var(--white);
}

.home-screen__widgets {
  position: absolute;
  inset: 0;
}

.hs-slot {
  position: absolute;
  left: 7.12%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hs-slot--medium {
  top: 9.83%;
  width: 85.76%;
}

.hs-slot--small {
  top: 32.57%;
  width: 40%;
}

/* VStack(spacing: 4) with padding 12, over the photo and a 55% white scrim. */
.hs-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(4 * var(--pt));
  width: 100%;
  padding: calc(12 * var(--pt));
  overflow: hidden;
  border-radius: calc(22 * var(--pt));
  background-color: #fff5f7;
  background-position: center;
  background-size: cover;
  box-shadow: 0 calc(6 * var(--pt)) calc(18 * var(--pt)) rgba(0, 0, 0, 0.16);
  line-height: 1.19;
  text-align: center;
  color: #6b5a5e;
}

.hs-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
}

.hs-widget > * {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hs-widget--medium {
  aspect-ratio: 1132 / 528;
}

.hs-widget--small {
  aspect-ratio: 1;
}

.hs-widget__names {
  font-size: calc(14 * var(--pt));
  font-weight: 500;
}

.hs-widget__names[hidden] {
  display: none;
}

/* .minimumScaleFactor(0.6): home.client.js lowers --fit until the text fits. */
.hs-widget__headline {
  --fit: 1;
  font-size: calc(40 * var(--pt) * var(--fit));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  text-overflow: clip;
}

.hs-widget--small .hs-widget__headline {
  font-size: calc(34 * var(--pt) * var(--fit));
}

.hs-widget__headline.is-bumped {
  animation: number-bump 0.5s var(--ease-out);
}

@keyframes number-bump {
  40% {
    transform: scale(1.12);
  }
}

.hs-widget__caption {
  font-size: calc(13 * var(--pt));
}

.hs-widget__brand {
  margin-top: calc(2 * var(--pt));
  font-size: calc(11 * var(--pt));
  color: #b89a9f;
}

/* The app name under each widget, as on the home screen. */
.hs-label {
  margin-top: calc(5 * var(--pt));
  font-size: calc(12 * var(--pt));
  font-weight: 500;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  color: var(--white);
}

.home-screen__search {
  position: absolute;
  top: 80.6%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 17.4%;
  height: calc(26 * var(--pt));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--white);
  transform: translateX(-50%);
}

.home-screen__search .icon {
  width: calc(13 * var(--pt));
  height: calc(13 * var(--pt));
  stroke-width: 2.4;
}

.home-screen__dock {
  position: absolute;
  top: 86%;
  right: 3.8%;
  bottom: 2.6%;
  left: 3.8%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6.7%;
  border-radius: calc(36 * var(--pt));
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dock-icon {
  display: block;
  position: relative;
  width: 16.3%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 23%;
  box-shadow: 0 calc(3 * var(--pt)) calc(8 * var(--pt)) rgba(0, 0, 0, 0.15);
}

.dock-icon--safari {
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 9%, transparent 10%),
    radial-gradient(circle at 50% 50%, #34aadc 0 58%, #ffffff 59%);
}

.dock-icon--safari::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12%;
  height: 52%;
  background: linear-gradient(180deg, #ff3b30 0 50%, #ffffff 50% 100%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: translate(-50%, -50%) rotate(45deg);
}

.dock-icon--messages {
  background: linear-gradient(180deg, #67f07c 0%, #2bc84a 100%);
}

.dock-icon--messages::before {
  content: "";
  position: absolute;
  top: 24%;
  left: 18%;
  width: 64%;
  height: 46%;
  border-radius: 50%;
  background: var(--white);
}

/* ==========================================================================
   More features
   ========================================================================== */

.more {
  padding: 5.5rem 0 4rem;
  background: var(--peach-light);
}

.more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.more-card {
  min-width: 0;
  padding: 1.75rem;
  border: 1px solid rgba(243, 81, 113, 0.12);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s var(--ease-out);
}

.more-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.more-card__icon {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--app-gradient);
  box-shadow: 0 8px 18px rgba(105, 81, 156, 0.25);
  color: var(--white);
}

.more-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
}

.more-card__desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.more-card--languages {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  column-gap: 1.25rem;
}

.more-card--languages .more-card__icon {
  grid-row: span 2;
  margin: 0;
}

.more-card--languages .lang-ticker {
  grid-row: 1 / span 2;
  grid-column: 3;
}

/* One line tall; the outline is a shadow so a border does not shave the line. */
.lang-ticker {
  --line: 3.4rem;
  height: var(--line);
  overflow: hidden;
  border-radius: 14px;
  background: var(--blush);
  box-shadow: inset 0 0 0 1px rgba(243, 81, 113, 0.12);
}

.lang-ticker__list {
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(calc(var(--i, 0) * var(--line) * -1));
}

.lang-ticker__list.is-moving {
  transition: transform 0.75s var(--ease-out);
}

.lang-ticker__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--line);
  padding: 0 1.1rem;
  overflow: hidden;
  font-family: "Dancing Script", "Playfair Display", "Noto Sans Devanagari", cursive;
  font-size: 1.35rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--primary-deep);
}

.lang-ticker__flag {
  font-family: var(--font-body);
  font-size: 1.2rem;
}

/* ==========================================================================
   Download CTA
   ========================================================================== */

.download-banner {
  padding: 4rem 0 6rem;
  background: linear-gradient(180deg, var(--peach-light) 0%, var(--blush) 100%);
}

.download-banner__inner {
  position: relative;
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
  padding: 3.8rem 2rem;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #f78aa0, #f35171, #d9385b, #a25c8d, #f35171, #f78aa0);
  background-size: 300% 300%;
  box-shadow: 0 20px 50px rgba(243, 81, 113, 0.32);
  text-align: center;
  color: var(--white);
  animation: gradient-shift 16s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.download-banner__hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-heart {
  --heart: 20px;
  position: absolute;
  bottom: -2rem;
  left: 10%;
  width: var(--heart);
  height: var(--heart);
  fill: rgba(255, 255, 255, 0.32);
  animation: heart-rise 11s linear infinite;
}

.float-heart--1 { left: 6%; animation-delay: -1s; }
.float-heart--2 { left: 17%; --heart: 14px; animation-duration: 9s; animation-delay: -6s; }
.float-heart--3 { left: 29%; --heart: 26px; animation-duration: 13s; animation-delay: -3s; }
.float-heart--4 { left: 44%; --heart: 16px; animation-delay: -8s; }
.float-heart--5 { left: 58%; --heart: 24px; animation-duration: 12s; animation-delay: -2s; }
.float-heart--6 { left: 71%; --heart: 15px; animation-duration: 10s; animation-delay: -9s; }
.float-heart--7 { left: 83%; --heart: 28px; animation-duration: 14s; animation-delay: -5s; }
.float-heart--8 { left: 94%; --heart: 17px; animation-duration: 9.5s; animation-delay: -4s; }

@keyframes heart-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-10deg) scale(0.8);
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translate3d(12px, -14rem, 0) rotate(8deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-16px, -28rem, 0) rotate(-6deg) scale(1.1);
  }
}

.download-banner__icon {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 22.5%;
  box-shadow: 0 12px 28px rgba(31, 22, 24, 0.25);
  animation: device-float 6s ease-in-out infinite;
}

.download-banner__title {
  position: relative;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 600;
}

.download-banner__desc {
  position: relative;
  max-width: 32rem;
  margin: 0 auto 2.2rem;
  font-size: 1.1rem;
  opacity: 0.92;
}

.download-banner .cta-row {
  position: relative;
}

.download-banner .btn--primary {
  background: var(--ink);
  box-shadow: 0 10px 28px rgba(31, 22, 24, 0.3);
}

.download-banner .btn--primary:hover {
  background: #000000;
  box-shadow: 0 14px 32px rgba(31, 22, 24, 0.4);
}

/* ==========================================================================
   Pause / reduced motion
   ========================================================================== */

.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}

/* A paused entrance animation would leave the dialog invisible. */
.motion-paused .preview-dialog[open] {
  animation: none;
}

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

  .petals,
  .download-banner__hearts,
  .carousel-dots__dot::after,
  .motion-toggle {
    display: none;
  }

  .hero__glow,
  .text-gradient,
  .hero__tour-arrow,
  .device--hero,
  .tour__halo,
  .tour-spot::before,
  .download-banner__inner,
  .download-banner__icon {
    animation: none;
  }

  .toast,
  .toast.is-active {
    animation: none;
    transition: none;
  }

  .preview-dialog[open] {
    animation: none;
  }

  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    animation: none;
  }

  .marquee__list[aria-hidden="true"] {
    display: none;
  }

  .marquee__list {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .tour-screen,
  .carousel__item,
  .tour-step__body {
    transition: none;
  }

  /* The RSVP flow shows its end state: letter out, reply sent, list updated. */
  .rsvp-flow .envelope__flap {
    transform: rotateX(180deg);
    z-index: 0;
  }

  .rsvp-flow .envelope__letter {
    transform: translateY(-46%);
  }

  .rsvp-flow .mini-rsvp__done {
    opacity: 1;
    visibility: visible;
  }

  .rsvp-flow .ticker span {
    transform: translateY(-100%);
  }

  .rsvp-flow.is-playing *,
  .rsvp-flow.is-playing *::before,
  .rsvp-flow .rsvp-flow__step::before {
    animation: none !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .toast--left {
    left: -40%;
  }

  .toast--right {
    right: -32%;
  }
}

@media (max-width: 960px) {
  .hero__container {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    text-align: center;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  .cta-row,
  .hero__trust-strip {
    justify-content: center;
  }

  .toast--left {
    left: -46%;
  }

  .toast--right {
    right: -46%;
  }

  /* The tour stacks: every step brings its own phone. */
  .tour__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .tour__stage {
    display: none;
  }

  .tour-step,
  .tour-step--website,
  .tour-step--widget,
  .tour-step--guests {
    flex-direction: column;
    gap: 2rem;
    min-height: 0;
    padding: 3rem 0;
    text-align: center;
  }

  .tour-step + .tour-step {
    border-top: 1px solid rgba(243, 81, 113, 0.1);
  }

  .tour-step__media {
    display: block;
  }

  .device--step {
    --device-w: min(15.5rem, 64vw);
    transform: rotate(-2deg);
  }

  [data-tour].is-ready .tour-step .tour-step__media .device {
    opacity: 0;
    transform: translateY(40px) rotate(-6deg);
    transition: opacity 0.6s ease, transform 0.9s var(--ease-out);
  }

  [data-tour].is-ready .tour-step.is-seen .tour-step__media .device {
    opacity: 1;
    transform: rotate(-2deg);
  }

  [data-tour].is-ready .tour-step:not(.is-active) .tour-step__body {
    opacity: 1;
    transform: none;
  }

  .tour-step__body {
    margin: 0 auto;
  }

  .tour-step__points {
    display: inline-flex;
    text-align: left;
  }

  .website__grid,
  .widget-lab__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .website__copy,
  .widget-lab__copy {
    text-align: center;
  }

  .chip-cloud,
  .website__actions {
    justify-content: center;
  }

  .website__visual {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
  }

  .widget-form {
    margin-inline: auto;
    text-align: left;
  }

  .rsvp-flow__steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 24rem;
    margin: 0 auto;
    gap: 2.5rem;
  }

  .rsvp-flow__step:not(:last-child)::after,
  .rsvp-flow__step:not(:last-child)::before {
    display: none;
  }

  .more__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .more-card--languages {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .more-card--languages .lang-ticker {
    grid-row: auto;
    grid-column: 1 / -1;
    margin-top: 1.25rem;
  }
}

/* Tablets: the section links move into the menu button, as on phones. */
@media (min-width: 681px) and (max-width: 960px) {
  .page-home .brand__name {
    white-space: nowrap;
  }

  .page-home .nav__toggle {
    display: flex;
  }

  .page-home .nav__menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    z-index: 110;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    min-width: 12rem;
    padding: 0.65rem;
    border: 1px solid rgba(243, 81, 113, 0.12);
    border-radius: var(--radius-md);
    background: rgba(255, 248, 246, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(31, 22, 24, 0.12);
  }

  .page-home .nav--open .nav__menu {
    display: flex;
  }

  .page-home .nav__menu a {
    padding: 0.65rem 0.85rem;
  }
}

@media (max-width: 680px) {
  .tour-nav {
    padding: 0.5rem 0.75rem;
  }

  .tour-nav__inner {
    width: 100%;
  }

  .tour-nav__link {
    padding: 0.45rem 0.75rem;
  }

  .carousel-dots__dot {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }

  .toast {
    max-width: 13rem;
    padding: 0.5rem 0.75rem 0.5rem 0.55rem;
  }

  .toast--left {
    left: -30%;
  }

  .toast--right {
    right: -28%;
  }

  .website__visual {
    padding: 0;
  }

  /* Phones get the phone layout only (the desktop captures are not loaded). */
  .browser {
    display: none;
  }

  .device--website {
    --device-w: min(15.5rem, 66vw);
    position: relative;
    margin: 0 auto;
    transform: rotate(-2deg);
  }

  .more__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .more-card--languages {
    display: block;
  }

  .more-card--languages .more-card__icon {
    margin-bottom: 1rem;
  }

  .more-card--languages .lang-ticker {
    margin-top: 1.25rem;
  }

  /* Long headlines wrap to a second line instead of being cut off. */
  .lang-ticker {
    --line: 4.4rem;
  }

  .lang-ticker__item {
    font-size: 1.15rem;
    line-height: 1.15;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 7.5rem;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .btn--store {
    width: 100%;
  }

  .device--hero {
    --device-w: min(16rem, 70vw);
  }

  .toast {
    display: none;
  }

  .tour-nav__link span {
    display: none;
  }

  .tour-nav__link.is-active span {
    display: inline;
  }
}
