@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --plum: #4F2649;
  --lime: #BFEA4A;
  --ink: #181818;
  --ivory: #FAF7F0;
  --blue: #3E63FF;
  --blush: #F2D5D8;
  --light-lime: #DDF59A;
  --white: #FFFFFF;
  --line: rgba(79, 38, 73, 0.16);
  --shadow: 0 18px 40px rgba(24, 24, 24, 0.08);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --page: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.page-width { width: var(--page); margin: 0 auto; }
.section { padding: 72px 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.announcement {
  background: var(--plum);
  color: var(--ivory);
  text-align: center;
  padding: 10px 14px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--ivory) 92%, white 8%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 22px 0;
}
.brand-logo { width: 210px; height: auto; }
.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 0.98rem;
}
.desktop-nav a, .mobile-nav a {
  position: relative;
  padding-bottom: 3px;
}
.desktop-nav a::after, .mobile-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--plum);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.desktop-nav a:hover::after, .mobile-nav a:hover::after { transform: scaleX(1); }
.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  margin-left: auto;
  gap: 12px;
}
.locale-control select,
.toolbar-control select,
.search-control input {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0 14px;
}
.locale-control select { min-width: 74px; }
.menu-toggle {
  display: none;
  min-height: 48px;
  min-width: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 1.2rem;
}
.mobile-nav {
  display: none;
  width: var(--page);
  margin: 0 auto 18px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.mobile-nav a { display: block; padding: 10px 4px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(191, 234, 74, 0.22);
}
.button-primary:hover { box-shadow: 0 12px 24px rgba(191, 234, 74, 0.28); }
.button-secondary {
  background: transparent;
  border-color: var(--plum);
  color: var(--plum);
}
.button-secondary:hover { background: rgba(79, 38, 73, 0.05); }
.button-small { min-height: 48px; padding-inline: 18px; }
.button[disabled], .button.disabled {
  background: var(--light-lime);
  color: rgba(24, 24, 24, 0.56);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 46px;
  padding: 64px 0 56px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--plum);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}
.hero h1,
.section-heading h2,
.cta-panel h2 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero h1 {
  font-size: clamp(3.8rem, 8vw, 6.4rem);
  max-width: 8ch;
  color: var(--ink);
}
.hero-description {
  max-width: 590px;
  margin: 26px 0 0;
  font-size: 1.15rem;
  color: rgba(24, 24, 24, 0.78);
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 12px;
  font-size: 0.99rem;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-points li::before {
  content: '•';
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--light-lime);
  color: var(--plum);
  font-size: 1.1rem;
  flex: 0 0 auto;
}
.hero-art {
  position: relative;
  min-height: 540px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(242, 213, 216, 0.28), rgba(255,255,255,0));
  overflow: hidden;
}
.art-bubble {
  position: absolute;
  border-radius: 999px;
  opacity: 0.45;
}
.bubble-plum { width: 180px; height: 180px; right: 40px; top: 64px; background: rgba(79, 38, 73, 0.08); }
.bubble-lime { width: 240px; height: 240px; left: 40px; bottom: 22px; background: rgba(191, 234, 74, 0.26); }
.bubble-blush { width: 300px; height: 300px; right: 130px; bottom: 40px; background: rgba(242, 213, 216, 0.52); }
.hero-tag {
  position: absolute;
  top: 34px;
  left: 22px;
  z-index: 3;
  width: 106px;
  height: 106px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: var(--shadow);
}
.hero-stack {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.invite-mockup {
  position: absolute;
  width: min(310px, 70%);
  background: var(--white);
  padding: 14px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.invite-mockup img {
  border-radius: 10px;
  width: 100%;
}
.invite-back { left: 62px; top: 120px; transform: rotate(-9deg); }
.invite-middle { left: 140px; top: 148px; transform: rotate(-2deg); }
.invite-front { right: 40px; top: 106px; transform: rotate(8deg); }

.brand-strip {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brand-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 18px 0;
}
.brand-chip {
  padding: 10px 16px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
}

.split-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}
.section-heading h2,
.cta-panel h2 { font-size: clamp(2.3rem, 4vw, 4rem); color: var(--plum); }
.section-description {
  max-width: 680px;
  margin-top: 16px;
  color: rgba(24, 24, 24, 0.76);
}
.count-pill {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--plum);
  font-weight: 700;
}
.filter-panel {
  margin-top: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(24,24,24,0.04);
}
.filter-group + .toolbar { margin-top: 20px; }
.filter-label {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--plum);
}
.occasion-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-chip {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--ink);
  padding: 0 14px;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.filter-chip:hover { transform: translateY(-1px); }
.filter-chip.active {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--ivory);
}
.toolbar {
  display: grid;
  grid-template-columns: 200px minmax(220px, 1fr) 180px;
  gap: 14px;
}
.toolbar-control {
  display: grid;
  gap: 8px;
}
.toolbar-control label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--plum);
}
.search-control input { width: 100%; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(24,24,24,0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(24,24,24,0.08);
}
/* Consistent screenshot window: each source keeps its natural image proportions,
   while object-fit: cover crops only the small excess on either edge. */
.card-art {
  position: relative;
  aspect-ratio: 8 / 5;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--ivory);
}
.card-art img {
  display: block;
  width: 100%;
  height: 100%;
}
.card-art.is-screenshot img {
  object-fit: cover;
  object-position: center center;
}
.card-art.is-placeholder {
  padding: 16px;
  background:
    radial-gradient(circle at top left, rgba(242,213,216,0.75), transparent 42%),
    radial-gradient(circle at bottom right, rgba(221,245,154,0.65), transparent 40%),
    linear-gradient(180deg, rgba(250,247,240,1), rgba(255,255,255,1));
}
.card-art.is-placeholder img {
  object-fit: contain;
  object-position: center center;
  border-radius: 12px;
}
.card-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  background: rgba(79, 38, 73, 0.94);
  color: var(--ivory);
  border-radius: 999px;
  font-size: 0.71rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  max-width: calc(100% - 28px);
}
.card-info {
  padding: 20px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-kicker {
  color: var(--plum);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.card-title {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 0.95;
}
.card-price {
  white-space: nowrap;
  font-weight: 700;
  color: var(--plum);
}
.card-description {
  margin: 14px 0 0;
  color: rgba(24,24,24,0.74);
}
.card-meta {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.95rem;
  color: var(--plum);
  font-weight: 700;
}
.card-buttons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.card-buttons .button { flex: 1 1 0; min-width: 140px; }
.empty-state {
  margin-top: 24px;
  text-align: center;
  padding: 34px 22px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 24px;
}
.empty-state h3 { margin: 0 0 10px; color: var(--plum); }
.empty-state p { margin: 0 0 18px; }

.how-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(242,213,216,0.16));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.centered-heading { text-align: center; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--light-lime);
  color: var(--plum);
  font-weight: 700;
}
.step-card h3 {
  margin: 18px 0 12px;
  font-size: 1.32rem;
  color: var(--plum);
}
.step-card p { margin: 0; color: rgba(24,24,24,0.75); }

.narrow { max-width: 420px; }
.faq-list {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 18px 18px 20px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--plum);
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  float: right;
  font-size: 1.2rem;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list p {
  margin: 12px 0 0;
  color: rgba(24,24,24,0.76);
}

.cta-panel { padding-bottom: 72px; }
.cta-panel-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(79,38,73,0.98), rgba(79,38,73,0.9));
  color: var(--ivory);
}
.cta-panel h2 { color: var(--ivory); line-height: 1; }
.cta-panel .eyebrow { color: var(--light-lime); }
.cta-panel p:not(.eyebrow) { max-width: 540px; color: rgba(250,247,240,0.88); }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-actions .button-secondary {
  border-color: rgba(250,247,240,0.38);
  color: var(--ivory);
}
.cta-actions .button-secondary:hover { background: rgba(250,247,240,0.08); }

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 18px;
}
.footer-logo { width: 200px; }
.footer-brand p {
  max-width: 440px;
  color: rgba(24,24,24,0.74);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 18px 24px;
  font-weight: 700;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  color: rgba(24,24,24,0.62);
  font-size: 0.95rem;
}

@media (max-width: 1120px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-control { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .header-inner .brand { flex: 0 1 auto; min-width: 0; }
  .header-actions { flex: 0 0 auto; margin-left: auto; justify-content: flex-end; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-nav { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-art { min-height: 480px; }
  .split-heading,
  .footer-inner,
  .footer-bottom,
  .cta-panel-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  :root { --page: min(100% - 28px, 1000px); }
  .brand-logo { width: 168px; }
  .header-inner { padding-left: 0; padding-right: 0; }
  .locale-control select { min-width: 70px; }
  .header-actions .button-small { display: none; }
  .toolbar,
  .cards-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.3rem); }
  .hero-art { min-height: 430px; }
  .invite-mockup { width: min(250px, 70%); }
  .invite-back { left: 12px; top: 118px; }
  .invite-middle { left: 84px; top: 158px; }
  .invite-front { right: 10px; top: 96px; }
  .card-buttons .button { min-width: 100%; }
  .hero-tag { width: 92px; height: 92px; font-size: 0.95rem; }
}

/* V4.1: Respect the hidden attribute even inside responsive navigation. */
[hidden] { display: none !important; }
.footer-tagline {
  margin: 12px 0 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
}

/* V4.2: Equal card CTA baselines, accurate screenshot previews, balanced mobile header */
@media (max-width: 390px) {
  .brand-logo { width: 145px; }
  .header-actions { gap: 8px; }
  .locale-control select { min-width: 64px; padding: 0 8px; }
  .menu-toggle { min-width: 46px; }
}

/* V4.6: Real preview links + ready-looking checkout CTA */
.card-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card-buttons .button { width: 100%; min-width: 0; padding-inline: 8px; min-height: 52px; white-space: nowrap; }
.card-buttons .button-secondary { background: var(--white); }
.card-buttons .button-primary { background: var(--lime); color: var(--ink); }
.checkout-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 26px 70px rgba(24,24,24,.22); color: var(--ink); background: var(--ivory); max-height: calc(100dvh - 40px); }
.checkout-dialog::backdrop { background: rgba(24,24,24,.48); backdrop-filter: blur(3px); }
.checkout-dialog-content { position: relative; padding: clamp(24px, 5vw, 38px); }
.checkout-dialog-close { position: absolute; top: 14px; right: 16px; display: grid; place-items: center; height: 38px; width: 38px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); cursor: pointer; font-size: 23px; line-height: 1; }
.checkout-dialog h2 { margin: 12px 32px 14px 0; color: var(--plum); font: 400 clamp(2rem, 5vw, 2.65rem)/1.08 'DM Serif Display', serif; }
.checkout-product { margin: 0 0 14px; color: var(--plum); font-size: 1.06rem; font-weight: 700; }
.checkout-message { margin: 0; color: rgba(24,24,24,.77); line-height: 1.65; }
.checkout-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.checkout-dialog-actions .button { flex: 1 1 185px; }
@media (max-width: 720px) {
  .card-buttons { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .card-buttons .button { min-width: 0; font-size: .94rem; }
}
@media (max-width: 380px) {
  .card-buttons { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card, .button { transition: none; }
  .product-card:hover, .button:hover { transform: none; }
}
