:root {
  --navy: #0f172a;
  --blue: #2563eb;
  --sky: #60a5fa;
  --ivory: #f8f6f2;
  --blush: #ead7d1;
  --charcoal: #1f2937;
  --white: #ffffff;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

h1,
h2,
h3 {
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(2.85rem, 4.8vw, 4.45rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 9vw, 132px) 0;
}

.section-white {
  background: var(--white);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 242, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.brand-logo {
  width: clamp(168px, 18vw, 224px);
  height: auto;
  border-radius: 8px;
  mix-blend-mode: multiply;
}

.brand-logo-dark {
  width: clamp(190px, 20vw, 250px);
  mix-blend-mode: normal;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-menu a:not(.button) {
  position: relative;
}

.nav-menu a:not(.button)::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--blue);
  content: "";
  transition: transform 180ms ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--navy);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 800;
  padding: 0 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: #1d4ed8;
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.26);
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.86rem;
}

.button-ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--blue);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(37, 99, 235, 0.08);
  box-shadow: none;
}

.play-dot {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--blue) 0 0) 11px 8px / 8px 12px no-repeat,
    var(--white);
  clip-path: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(42px, 5.5vw, 74px);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 12%, rgba(234, 215, 209, 0.72), transparent 34%),
    linear-gradient(180deg, var(--ivory), var(--white));
  content: "";
}

.hero-grid,
.split-grid,
.moments-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(42px, 7vw, 84px);
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-subtitle,
.section-heading p {
  color: #334155;
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.loved-by {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.avatar-stack {
  display: flex;
}

.avatar-stack span,
.mini-avatars i {
  width: 32px;
  height: 32px;
  margin-left: -8px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: linear-gradient(145deg, var(--blush), var(--sky));
}

.avatar-stack span:first-child,
.mini-avatars i:first-child {
  margin-left: 0;
}

.stars {
  color: #f59e0b;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
}

.hero-photo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.92fr 0.72fr;
  grid-auto-rows: 144px;
  gap: 14px;
  transform: rotate(-2deg);
}

.hero-photo-grid img,
.photo-mosaic img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  object-fit: cover;
}

.tile-large {
  grid-row: span 2;
}

.tile-wide {
  grid-column: span 2;
}

.floating-card {
  position: absolute;
  right: 8%;
  top: 42%;
  width: min(250px, 58vw);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(18px);
}

.floating-card span {
  display: block;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.floating-card strong {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.mini-avatars {
  display: flex;
  margin-top: 14px;
}

.trust-bar {
  background: linear-gradient(90deg, rgba(234, 215, 209, 0.42), rgba(248, 246, 242, 0.95));
  border-block: 1px solid rgba(15, 23, 42, 0.08);
  padding: 34px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
}

.stat-block + .stat-block {
  border-left: 1px solid var(--line);
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(234, 215, 209, 0.55);
  color: var(--navy);
  font-weight: 900;
}

.icon-badge svg {
  width: 39px;
  height: 39px;
  stroke: currentColor;
  stroke-width: 2.15;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge .accent {
  stroke: var(--blue);
}

.icon-badge .fill-accent {
  fill: var(--blush);
  stroke: var(--blush);
}

.stat-block strong {
  display: block;
  color: var(--navy);
  font-size: 1.42rem;
}

.stat-block span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.section-heading {
  display: grid;
  gap: 18px;
}

.centered {
  justify-items: center;
  margin-bottom: 44px;
  text-align: center;
}

.card-grid,
.feature-grid,
.pricing-grid,
.privacy-grid,
.comparison-grid {
  display: grid;
  gap: 22px;
}

.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-card,
.pricing-card,
.comparison-card,
.feature-card,
.faq-item {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.info-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 34px 26px;
  text-align: center;
}

.info-card p {
  color: var(--muted);
}

.section-support {
  max-width: 720px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.magic-section {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248, 246, 242, 0.98) 0 48%, rgba(15, 23, 42, 0.08) 48% 100%),
    url("assets/wedding-black-garden.jpg") right center / auto 100% no-repeat;
}

.device-frame {
  justify-self: center;
  width: min(390px, 100%);
  border: 11px solid #101827;
  border-radius: 38px;
  background: #101827;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.26);
  color: var(--white);
  padding: 18px;
}

.device-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
}

.device-top strong {
  color: var(--sky);
}

.device-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.device-gallery img {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.device-frame .button {
  width: 100%;
  margin-top: 18px;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 136px;
  gap: 12px;
}

.photo-mosaic .signature {
  grid-column: span 2;
  grid-row: span 2;
  border: 4px solid var(--white);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.22);
  transform: translateY(-14px);
}

.comparison-section {
  background: linear-gradient(180deg, var(--ivory), var(--white));
}

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

.comparison-card {
  overflow: hidden;
  padding: 30px;
}

.comparison-card.featured {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.12);
}

.comparison-card img {
  width: 100%;
  height: 180px;
  margin-bottom: 22px;
  border-radius: 18px;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334155;
  font-weight: 700;
}

.check-list .mark {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.18);
  color: var(--muted);
  font-size: 0.82rem;
}

.comparison-card.featured .mark,
.pricing-card .mark {
  background: var(--blue);
  color: var(--white);
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
}

.feature-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 188px;
  padding: 26px 14px;
  text-align: center;
}

.feature-card h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.pricing-section {
  background:
    linear-gradient(rgba(248, 246, 242, 0.9), rgba(248, 246, 242, 0.95)),
    url("assets/wedding-diverse-beach.jpg") center / cover no-repeat;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px;
}

.pricing-card.popular {
  border-color: var(--blue);
  box-shadow: 0 22px 60px rgba(37, 99, 235, 0.16);
}

.badge {
  position: absolute;
  inset: 24px 24px auto auto;
  display: grid;
  min-height: 30px;
  padding: 0 12px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
}

.pricing-card .subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.price {
  margin: 24px 0 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 2.45rem;
}

.pricing-note {
  margin: 18px 0 22px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.pricing-card .button {
  width: 100%;
  margin-top: auto;
}

.privacy-section {
  background: var(--white);
}

.privacy-grid {
  grid-template-columns: repeat(3, 1fr);
}

.privacy-grid .info-card {
  text-align: left;
  justify-items: start;
}

.privacy-note {
  max-width: 720px;
  margin: 34px auto 0;
  color: #475569;
  font-size: 1.08rem;
  text-align: center;
}

.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/wedding-east-asian-winter.jpg") center / cover no-repeat;
  filter: saturate(1.04);
  transform: scale(1.04);
}

.final-cta::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.62));
  content: "";
}

.final-cta h2 {
  color: var(--white);
}

.final-cta-content {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.final-cta p,
.site-footer p {
  color: rgba(255, 255, 255, 0.78);
}

.faq-section {
  padding-top: 86px;
}

.faq-list {
  display: grid;
  gap: 16px;
  max-width: 830px;
  margin-inline: auto;
}

.faq-item {
  padding: 24px;
}

.faq-item h3 {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 800;
}

.faq-item p {
  color: var(--muted);
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 46px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-footer {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.legal-main {
  padding: clamp(56px, 9vw, 112px) 0;
}

.legal-content {
  max-width: 820px;
  margin-inline: auto;
}

.legal-header-block {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.legal-header-block h1 {
  max-width: none;
  font-size: clamp(2.55rem, 5vw, 4rem);
}

.legal-header-block time {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 700;
}

.legal-intro {
  margin-top: 22px;
  color: #334155;
  font-size: 1.1rem;
}

.legal-download {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 22px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content section {
  padding-top: 38px;
}

.legal-content h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.legal-content p,
.legal-content li {
  color: #334155;
}

.legal-content p + p {
  margin-top: 18px;
}

.legal-content ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.legal-content address {
  margin-top: 18px;
  color: #334155;
  font-style: normal;
}

.legal-content address a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.82);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .moments-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
  }

  .stats-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-block + .stat-block {
    border-left: 0;
  }

  .steps-grid,
  .pricing-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .magic-section {
    background: linear-gradient(180deg, var(--ivory), rgba(234, 215, 209, 0.25));
  }

  .device-frame {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 640px);
  }

  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 68px 12px auto;
    display: grid;
    gap: 8px;
    transform: translateY(-12px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 18px;
    opacity: 0;
    pointer-events: none;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 10px 8px;
  }

  .nav-menu .button {
    margin-top: 8px;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 3.65rem);
  }

  .hero-photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 118px;
    gap: 10px;
  }

  .tile-wide {
    grid-column: span 1;
  }

  .floating-card {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 16px;
    transform: none;
  }

  .hero-actions,
  .footer-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .stats-grid,
  .comparison-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .stat-block {
    padding-inline: 0;
  }

  .photo-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 104px;
  }

  .comparison-card,
  .pricing-card {
    padding: 24px;
  }

  .comparison-card img {
    height: 150px;
  }
}

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