:root {
  --page: #fbf8f5;
  --surface: #ffffff;
  --surface-soft: #eef6f4;
  --ink: #1e1d1b;
  --muted: #6b6862;
  --green: #173f3a;
  --green-soft: #dfeee9;
  --plum: #7d3147;
  --gold: #b9824b;
  --rose: #c8797e;
  --mist: #e7f0ef;
  --line: rgba(24, 24, 24, 0.12);
  --shadow: 0 24px 60px rgba(30, 29, 27, 0.12);
  --radius: 8px;
  --font-body: "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  --font-display: "Amiri", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--page), var(--mist) 48%, #fffaf3);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

code {
  direction: ltr;
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--surface-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 245, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--green), var(--plum));
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.main-nav {
  display: none;
}

.main-nav.open {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
  padding-top: 10px;
}

.main-nav a {
  padding: 10px 0;
  color: var(--muted);
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--green);
}

.nav-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 24px rgba(18, 60, 53, 0.18);
}

.btn-secondary {
  border-color: rgba(111, 38, 61, 0.28);
  background: var(--surface);
  color: var(--green);
}

.btn-small {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 0.9rem;
}

.hero-section,
.section,
.page-hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  gap: 30px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(34px, 7vw, 76px) 0;
}

.hero-copy p,
.page-hero p,
.section-copy,
.section-heading p,
.panel p,
.feature-grid p,
.option-grid p,
.payment-share-section p,
.template-card p,
.summary-list span {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
}

h1,
h2 {
  font-family: var(--font-display);
  line-height: 1.08;
}

h1 {
  max-width: 830px;
  font-size: clamp(2.7rem, 8vw, 6.5rem);
}

h2 {
  font-size: clamp(1.9rem, 5.2vw, 4rem);
}

h3 {
  font-size: 1.22rem;
}

.hero-copy > p:not(.eyebrow),
.page-hero > p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 1.04rem;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 6.8vw, 5.2rem);
}

.hero-actions,
.form-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.invitation-card {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 42px 24px;
  border: 1px solid rgba(179, 138, 59, 0.36);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 14%, rgba(200, 121, 126, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(231, 240, 239, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(18, 60, 53, 0.04) 22px 23px);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.invitation-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(179, 138, 59, 0.32);
  pointer-events: none;
}

.invitation-card p {
  margin: 0;
  color: var(--plum);
  font-weight: 800;
}

.invitation-card h2 {
  color: var(--green);
  font-size: clamp(3.4rem, 12vw, 6.4rem);
}

.invitation-card time {
  color: var(--muted);
  font-weight: 700;
}

.demo-label,
.badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(111, 38, 61, 0.1);
  color: var(--plum);
  font-size: 0.75rem;
  font-weight: 800;
}

.invitation-card .demo-label {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
}

.invite-mini-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.invite-mini-actions span {
  padding: 7px 10px;
  border: 1px solid rgba(18, 60, 53, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
}

.section {
  padding: clamp(44px, 8vw, 84px) 0;
}

.compact-section {
  padding-top: 28px;
}

.page-hero {
  padding: clamp(42px, 8vw, 82px) 0 24px;
}

.page-hero {
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 20px 0 auto auto;
  width: min(230px, 45vw);
  aspect-ratio: 1;
  background: url("../assets/images/wedding-floral-frame.png") center / cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.feature-grid,
.option-grid,
.template-grid,
.form-grid,
.invite-details,
.payment-share-section,
.payment-layout,
.create-layout,
.split-section {
  display: grid;
  gap: 16px;
}

.feature-grid article,
.option-grid article,
.template-card,
.panel,
.order-form,
.invite-details article,
.payment-share-section article,
.legal-card,
.share-card,
.share-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px rgba(18, 60, 53, 0.08);
}

.feature-grid article,
.option-grid article,
.template-card,
.panel,
.payment-share-section article,
.share-card,
.share-summary {
  padding: 20px;
}

.feature-grid span {
  color: var(--gold);
  font-weight: 800;
}

.feature-grid a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green);
  font-weight: 800;
}

.template-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.filter-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.filter-btn.active {
  background: var(--green);
  color: #fff;
}

.template-art {
  position: relative;
  display: grid;
  min-height: 250px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--template-accent), transparent 50%);
  border-radius: var(--radius);
  background: var(--template-bg);
  color: var(--template-ink);
  overflow: hidden;
  text-align: center;
}

.template-art::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid color-mix(in srgb, var(--template-accent), transparent 58%);
}

.template-art::after {
  content: "";
  position: absolute;
  inset: auto 24px 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--template-accent), transparent);
  opacity: 0.7;
}

.template-ornament {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 22px;
  border-block: 1px solid var(--template-accent);
}

.template-ornament::before,
.template-ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid var(--template-accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.template-ornament::before {
  right: -13px;
}

.template-ornament::after {
  left: -13px;
}

[data-template-pattern="floral"] .template-art {
  background:
    radial-gradient(circle at 24% 18%, color-mix(in srgb, var(--template-accent), transparent 76%) 0 18%, transparent 19%),
    radial-gradient(circle at 76% 82%, color-mix(in srgb, var(--template-accent), transparent 80%) 0 16%, transparent 17%),
    var(--template-bg);
}

[data-template-pattern="arch"] .template-art::before {
  border-radius: 120px 120px 8px 8px;
}

[data-template-pattern="rings"] .template-art::after {
  top: 30px;
  right: 28px;
  bottom: auto;
  left: auto;
  width: 54px;
  height: 34px;
  border: 1px solid var(--template-accent);
  border-radius: 999px;
  background: transparent;
}

[data-template-pattern="stars"] .template-art {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.58) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.58) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
    var(--template-bg);
}

[data-template-pattern="leaf"] .template-art::after,
[data-template-pattern="confetti"] .template-art::after {
  height: 38px;
  background:
    linear-gradient(135deg, transparent 45%, var(--template-accent) 46% 54%, transparent 55%),
    linear-gradient(45deg, transparent 45%, var(--template-accent) 46% 54%, transparent 55%);
  opacity: 0.42;
}

[data-template-pattern="envelope"] .template-art::after {
  inset: auto 50% 28px auto;
  width: 120px;
  height: 76px;
  border: 1px solid var(--template-accent);
  border-radius: 7px;
  background:
    linear-gradient(28deg, rgba(255, 255, 255, 0.9) 0 50%, transparent 51%),
    linear-gradient(-28deg, rgba(255, 241, 235, 0.92) 0 50%, transparent 51%);
  transform: translateX(50%);
  opacity: 0.82;
}

[data-template-pattern="traditional"] .template-art {
  background:
    linear-gradient(45deg, rgba(166, 111, 62, 0.1) 25%, transparent 25% 75%, rgba(166, 111, 62, 0.1) 75%),
    linear-gradient(-45deg, rgba(166, 111, 62, 0.1) 25%, transparent 25% 75%, rgba(166, 111, 62, 0.1) 75%),
    var(--template-bg);
  background-size: 36px 36px;
}

[data-template-pattern="traditional"] .template-art::before {
  border: 8px double color-mix(in srgb, var(--template-accent), transparent 35%);
}

[data-template-pattern="henna"] .template-art {
  background:
    radial-gradient(circle at 18% 14%, rgba(208, 138, 61, 0.34), transparent 14%),
    radial-gradient(circle at 82% 18%, rgba(255, 218, 150, 0.24), transparent 16%),
    repeating-radial-gradient(circle at 50% 50%, rgba(208, 138, 61, 0.16) 0 2px, transparent 2px 14px),
    linear-gradient(145deg, #211410, #3a1d17 48%, #1c1110);
  color: #fff0dc;
}

[data-template-pattern="henna"] .template-art::before {
  inset: 18px 34px;
  border: 1px solid rgba(255, 218, 150, 0.36);
  border-radius: 92px 92px 8px 8px;
}

[data-template-pattern="henna"] .template-art::after {
  inset: 28px auto auto 32px;
  width: 54px;
  height: 78px;
  border: 1px solid rgba(255, 218, 150, 0.48);
  border-radius: 28px 28px 8px 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 205, 116, 0.7) 0 10px, transparent 11px),
    linear-gradient(rgba(208, 138, 61, 0.18), rgba(208, 138, 61, 0.02));
  box-shadow: 98px 16px 0 -6px rgba(208, 138, 61, 0.22);
}

[data-template-pattern="majlis"] .template-art {
  justify-items: stretch;
  background:
    linear-gradient(90deg, rgba(24, 51, 46, 0.12) 0 18%, transparent 18% 82%, rgba(24, 51, 46, 0.12) 82%),
    repeating-linear-gradient(0deg, rgba(154, 112, 72, 0.13) 0 1px, transparent 1px 18px),
    linear-gradient(145deg, #f2eadc, #fff8ea);
}

[data-template-pattern="majlis"] .template-art::before {
  border: 2px solid rgba(154, 112, 72, 0.36);
  border-inline-width: 12px;
}

[data-template-pattern="majlis"] .template-art::after {
  inset: auto 24px 28px;
  height: 44px;
  border-block: 1px solid rgba(154, 112, 72, 0.38);
  background:
    linear-gradient(90deg, transparent, rgba(24, 51, 46, 0.2), transparent),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(154, 112, 72, 0.22) 18px 19px);
}

[data-template-pattern="ladies"] .template-art {
  background:
    radial-gradient(circle at 14% 22%, rgba(199, 101, 147, 0.22) 0 18%, transparent 19%),
    radial-gradient(circle at 88% 76%, rgba(199, 101, 147, 0.18) 0 20%, transparent 21%),
    linear-gradient(145deg, #fff1f7, #fff9fb);
}

[data-template-pattern="ladies"] .template-art::before {
  inset: 22px;
  border-radius: 150px 8px 150px 8px;
}

[data-template-pattern="ladies"] .template-art::after {
  inset: auto auto 22px 22px;
  width: 108px;
  height: 108px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 42%, rgba(199, 101, 147, 0.44) 0 13px, transparent 14px),
    radial-gradient(circle at 62% 38%, rgba(245, 176, 196, 0.62) 0 20px, transparent 21px),
    radial-gradient(circle at 48% 62%, rgba(145, 62, 99, 0.28) 0 18px, transparent 19px);
}

[data-template-theme="pearl"] .template-art,
[data-template-theme="champagne"] .template-art {
  border-radius: 160px 160px 8px 8px;
}

[data-template-theme="pearl"] .template-art strong,
[data-template-theme="champagne"] .template-art strong {
  color: #6b4a1f;
}

[data-template-theme="midnight"] .template-art,
[data-template-theme="burgundy"] .template-art {
  background-image:
    radial-gradient(circle at 50% 18%, rgba(210, 172, 104, 0.22), transparent 30%),
    linear-gradient(145deg, rgba(22, 37, 35, 0.96), rgba(74, 23, 37, 0.92)),
    url("../assets/images/wedding-floral-frame.png");
  color: #fff6e8;
}

[data-template-theme="midnight"] .template-art small,
[data-template-theme="midnight"] .template-art time,
[data-template-theme="midnight"] .template-art em,
[data-template-theme="burgundy"] .template-art small,
[data-template-theme="burgundy"] .template-art time,
[data-template-theme="burgundy"] .template-art em {
  color: rgba(255, 246, 232, 0.78);
}

[data-template-theme="garden"] .template-art,
[data-template-theme="sage"] .template-art {
  background:
    linear-gradient(135deg, rgba(243, 248, 241, 0.86), rgba(224, 239, 226, 0.94)),
    radial-gradient(circle at 78% 20%, rgba(157, 122, 88, 0.2), transparent 24%);
}

[data-template-theme="garden"] .template-art::before,
[data-template-theme="sage"] .template-art::before {
  border-radius: 8px 110px 8px 110px;
}

[data-template-theme="ivory-lux"] .template-art {
  background:
    linear-gradient(90deg, transparent 0 48%, color-mix(in srgb, var(--template-accent), transparent 62%) 48% 52%, transparent 52%),
    linear-gradient(#fffdf8, #fff8ef);
}

[data-template-theme="ivory-lux"] .template-flower {
  display: none;
}

[data-template-theme="lavender"] .template-art {
  background:
    radial-gradient(circle at 20% 22%, rgba(155, 122, 184, 0.18), transparent 24%),
    radial-gradient(circle at 82% 76%, rgba(210, 138, 156, 0.18), transparent 22%),
    linear-gradient(145deg, #fbf7ff, #f3e9ff);
}

[data-template-theme="ivory"] .template-art {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.88), rgba(255, 239, 229, 0.84)),
    url("../assets/images/wedding-gallery-backdrop.png") center / cover no-repeat;
}

[data-template-theme="envelope"] .template-art {
  background:
    linear-gradient(180deg, rgba(255, 248, 244, 0.82), rgba(255, 241, 235, 0.94)),
    url("../assets/images/wedding-floral-hero.png") center / cover no-repeat;
}

.template-art strong {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
}

[data-template-theme="midnight"] .template-art strong,
[data-template-theme="burgundy"] .template-art strong {
  margin-top: 18px;
  font-size: 3.7rem;
}

[data-template-theme="ivory-lux"] .template-art strong {
  font-size: 2.8rem;
}

[data-template-theme="envelope"] .template-art strong {
  transform: translateY(-22px);
}

[data-template-theme="traditional"] .template-art strong {
  padding: 12px 24px;
  border-block: 1px solid color-mix(in srgb, var(--template-accent), transparent 40%);
}

[data-template-theme="henna"] .template-art strong {
  color: #ffe7b8;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

[data-template-theme="henna"] .template-art small,
[data-template-theme="henna"] .template-art time,
[data-template-theme="henna"] .template-art em {
  color: rgba(255, 240, 220, 0.78);
}

[data-template-theme="majlis"] .template-art strong {
  justify-self: center;
  max-width: 82%;
  padding: 12px 18px;
  border: 1px solid rgba(154, 112, 72, 0.3);
  background: rgba(255, 250, 238, 0.76);
  font-size: 2.55rem;
}

[data-template-theme="ladies"] .template-art strong {
  color: #7a2d53;
  font-size: 3.45rem;
}

.template-art small,
.template-art time,
.template-art em {
  position: relative;
  z-index: 1;
  display: block;
  color: color-mix(in srgb, var(--template-ink), transparent 28%);
  font-weight: 800;
}

.template-art em {
  font-family: Georgia, serif;
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0;
  opacity: 0.72;
}

.template-meta,
.pricing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--green);
  font-weight: 800;
}

.template-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.music-section {
  border-block: 1px solid var(--line);
}

.music-picker {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.music-picker h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.music-options {
  display: grid;
  gap: 10px;
}

.music-option {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
}

.music-option.active {
  border-color: rgba(23, 63, 58, 0.48);
  background: var(--surface-soft);
}

.music-option strong,
.music-option span {
  display: block;
}

.music-option span {
  color: var(--plum);
  font-size: 0.8rem;
  font-weight: 800;
}

.music-option p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.music-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-btn {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(23, 63, 58, 0.22);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--green);
  cursor: pointer;
  font-weight: 800;
}

.payment-share-section {
  grid-template-columns: 1fr;
}

.share-layout {
  display: grid;
  gap: 16px;
}

.invite-hero {
  position: relative;
  display: grid;
  min-height: 82vh;
  place-items: center;
  padding: clamp(58px, 10vw, 110px) 18px;
  background:
    linear-gradient(145deg, rgba(23, 63, 58, 0.92), rgba(125, 49, 71, 0.82)),
    linear-gradient(90deg, #173f3a, #7d3147);
  color: #fff;
  text-align: center;
}

.invite-hero h1,
.invite-hero p,
.invite-hero .eyebrow {
  color: #fff;
}

.invite-hero h1 {
  font-size: clamp(3.4rem, 13vw, 8rem);
}

.invite-hero .demo-label {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  gap: 10px;
  width: min(520px, 100%);
  margin-top: 24px;
}

.countdown span {
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.countdown strong,
.countdown small {
  display: block;
}

.invite-details article {
  padding: 18px;
}

.invite-details span,
label span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.invite-details strong {
  display: block;
  color: var(--green);
}

.order-form {
  padding: 20px;
}

.stacked-form,
.order-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  grid-template-columns: 1fr;
}

.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  text-align: start;
}

input[type="url"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
[data-share-url] {
  direction: ltr;
  text-align: left;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(18, 60, 53, 0.55);
  box-shadow: 0 0 0 3px rgba(18, 60, 53, 0.1);
}

.form-message {
  margin: 0;
  align-self: center;
  color: var(--muted);
  font-weight: 800;
}

.form-message.error {
  color: #9b1c31;
}

.share-section {
  display: grid;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.mini-checklist,
.summary-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mini-checklist span {
  position: relative;
  padding-inline-start: 22px;
  color: var(--green);
  font-weight: 800;
}

.mini-checklist span::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.summary-list {
  grid-template-columns: auto 1fr;
  align-items: baseline;
}

.summary-list strong {
  color: var(--green);
}

.qr-preview {
  display: grid;
  grid-template-columns: repeat(5, 18px);
  gap: 5px;
  width: max-content;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.qr-preview span {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: var(--green-soft);
}

.qr-preview span:nth-child(1),
.qr-preview span:nth-child(2),
.qr-preview span:nth-child(5),
.qr-preview span:nth-child(7),
.qr-preview span:nth-child(9),
.qr-preview span:nth-child(11),
.qr-preview span:nth-child(13),
.qr-preview span:nth-child(17),
.qr-preview span:nth-child(19),
.qr-preview span:nth-child(21),
.qr-preview span:nth-child(24),
.qr-preview span:nth-child(25) {
  background: var(--green);
}

.legal-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.legal-card {
  padding: clamp(24px, 5vw, 46px);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(16px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Premium wedding invitation experience */
.hero-section {
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 18px auto auto 0;
  width: min(420px, 42vw);
  aspect-ratio: 1;
  background: url("../assets/images/wedding-floral-frame.png") center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  transform: rotate(-8deg);
}

.invitation-card,
.template-art {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.68)),
    url("../assets/images/wedding-floral-frame.png");
  background-size: cover;
  background-position: center;
}

.invitation-card-featured {
  min-height: 520px;
  border-color: rgba(185, 111, 93, 0.32);
}

.template-card {
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(30, 29, 27, 0.15);
}

.template-art {
  min-height: 340px;
  isolation: isolate;
}

.template-art::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1));
}

.template-flower {
  position: absolute;
  z-index: 0;
  width: 145px;
  aspect-ratio: 1;
  background: url("../assets/images/wedding-floral-frame.png") center / cover no-repeat;
  opacity: 0.8;
  pointer-events: none;
}

.template-flower.top {
  top: -44px;
  left: -34px;
  transform: rotate(-18deg);
}

.template-flower.bottom {
  right: -46px;
  bottom: -52px;
  transform: rotate(152deg);
}

[data-template-pattern="stars"] .template-art {
  background-image:
    linear-gradient(rgba(22, 37, 35, 0.34), rgba(22, 37, 35, 0.55)),
    url("../assets/images/wedding-floral-frame.png");
}

.pricing-band .option-grid article {
  position: relative;
  overflow: hidden;
}

.pricing-band .option-grid article::after {
  content: "";
  position: absolute;
  inset: auto -38px -58px auto;
  width: 150px;
  aspect-ratio: 1;
  background: url("../assets/images/wedding-floral-frame.png") center / cover no-repeat;
  opacity: 0.18;
}

.luxury-invite {
  --invite-bg: var(--template-bg, #fff7f4);
  --invite-ink: var(--template-ink, #3f2430);
  --invite-accent: var(--template-accent, #c08a6a);
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.96), rgba(238, 246, 244, 0.74)),
    var(--invite-bg);
}

body[data-template-theme="midnight"] .luxury-invite {
  --invite-ink: #3f2430;
  --invite-accent: #9f7042;
}

body[data-template-theme="midnight"] .luxury-invite .invite-hero,
body[data-template-theme="burgundy"] .luxury-invite .invite-hero {
  background:
    linear-gradient(145deg, rgba(22, 37, 35, 0.88), rgba(74, 23, 37, 0.78)),
    url("../assets/images/wedding-floral-frame.png") center / cover no-repeat;
}

body[data-template-theme="midnight"] .invite-hero-content,
body[data-template-theme="burgundy"] .invite-hero-content {
  background: rgba(255, 248, 239, 0.88);
  box-shadow: 0 34px 100px rgba(22, 37, 35, 0.34);
}

body[data-template-theme="garden"] .luxury-invite .invite-hero,
body[data-template-theme="sage"] .luxury-invite .invite-hero {
  background:
    linear-gradient(rgba(245, 251, 246, 0.6), rgba(245, 251, 246, 0.82)),
    url("../assets/images/wedding-gallery-backdrop.png") center / cover no-repeat;
}

body[data-template-theme="garden"] .invite-hero-content,
body[data-template-theme="sage"] .invite-hero-content {
  border-radius: 8px 180px 8px 180px;
}

body[data-template-theme="ivory-lux"] .luxury-invite .invite-hero {
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.94), rgba(255, 248, 239, 0.86)),
    url("../assets/images/wedding-gallery-backdrop.png") center / cover no-repeat;
}

body[data-template-theme="ivory-lux"] .invite-hero-content {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

body[data-template-theme="traditional"] .luxury-invite .invite-hero {
  background:
    linear-gradient(rgba(251, 241, 223, 0.86), rgba(251, 241, 223, 0.92)),
    repeating-linear-gradient(45deg, rgba(166, 111, 62, 0.12) 0 2px, transparent 2px 22px);
}

body[data-template-theme="traditional"] .invite-hero-content {
  border: 8px double rgba(166, 111, 62, 0.36);
  border-radius: 8px;
}

body[data-template-theme="lavender"] .luxury-invite .invite-hero {
  background:
    linear-gradient(rgba(248, 242, 255, 0.82), rgba(255, 241, 245, 0.86)),
    radial-gradient(circle at 24% 20%, rgba(155, 122, 184, 0.22), transparent 26%),
    radial-gradient(circle at 78% 70%, rgba(210, 138, 156, 0.2), transparent 24%);
}

body[data-template-theme="henna"] .luxury-invite {
  --invite-bg: #211410;
  --invite-ink: #3a1d17;
  --invite-accent: #d08a3d;
  background:
    radial-gradient(circle at 50% 0, rgba(208, 138, 61, 0.26), transparent 34%),
    linear-gradient(180deg, #211410, #fbf0de 54%, #fff8ed);
}

body[data-template-theme="henna"] .luxury-invite .invite-hero {
  background:
    linear-gradient(rgba(33, 20, 16, 0.38), rgba(33, 20, 16, 0.72)),
    repeating-radial-gradient(circle at 50% 48%, rgba(255, 218, 150, 0.18) 0 2px, transparent 2px 18px),
    linear-gradient(145deg, #3a1d17, #1c1110);
}

body[data-template-theme="henna"] .invite-hero-content {
  border-radius: 130px 130px 8px 8px;
  background: rgba(255, 240, 220, 0.9);
  box-shadow: 0 34px 100px rgba(33, 20, 16, 0.46);
}

body[data-template-theme="majlis"] .luxury-invite .invite-hero {
  background:
    linear-gradient(90deg, rgba(24, 51, 46, 0.18) 0 17%, rgba(242, 234, 220, 0.9) 17% 83%, rgba(24, 51, 46, 0.18) 83%),
    repeating-linear-gradient(0deg, rgba(154, 112, 72, 0.12) 0 1px, transparent 1px 22px),
    linear-gradient(145deg, #f2eadc, #fff8ea);
}

body[data-template-theme="majlis"] .invite-hero-content {
  border: 1px solid rgba(154, 112, 72, 0.42);
  border-inline-width: 14px;
  border-radius: 8px;
  background: rgba(255, 250, 238, 0.9);
}

body[data-template-theme="ladies"] .luxury-invite .invite-hero {
  background:
    linear-gradient(rgba(255, 241, 247, 0.76), rgba(255, 249, 251, 0.9)),
    radial-gradient(circle at 14% 20%, rgba(199, 101, 147, 0.28), transparent 26%),
    radial-gradient(circle at 86% 74%, rgba(245, 176, 196, 0.34), transparent 24%),
    url("../assets/images/wedding-floral-hero.png") center / cover no-repeat;
}

body[data-template-theme="ladies"] .invite-hero-content {
  border-radius: 180px 8px 180px 8px;
  background: rgba(255, 255, 255, 0.84);
}

.invite-intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(rgba(255, 244, 239, 0.66), rgba(255, 248, 244, 0.94)),
    url("../assets/images/watercolor-rose-luxury.png") center / cover no-repeat;
  cursor: pointer;
  transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s ease;
}

.invite-intro.hide {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
}

.intro-envelope {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(520px, 100%);
  min-height: 430px;
  align-content: center;
  padding: 38px 26px 34px;
  border: 1px solid rgba(185, 111, 93, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 240, 235, 0.84)),
    url("../assets/images/premium-envelope-stationery.png") center / cover no-repeat;
  box-shadow: 0 34px 110px rgba(63, 36, 48, 0.2);
  overflow: visible;
}

.envelope-scene {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(360px, 82vw);
  height: 260px;
  margin-bottom: 20px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.envelope-back,
.envelope-front,
.envelope-flap,
.envelope-card,
.envelope-seal,
.envelope-shadow {
  position: absolute;
  inset-inline: 0;
  margin-inline: auto;
}

.envelope-back {
  bottom: 22px;
  width: 100%;
  height: 176px;
  border: 1px solid rgba(183, 107, 138, 0.32);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 229, 222, 0.92)),
    radial-gradient(circle at 18% 24%, rgba(199, 101, 147, 0.16), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(185, 131, 91, 0.14), transparent 24%);
  box-shadow: 0 28px 46px rgba(74, 31, 45, 0.22);
  transform: translateZ(-12px);
}

.envelope-front {
  bottom: 22px;
  width: 100%;
  height: 176px;
  background:
    linear-gradient(32deg, rgba(255, 247, 244, 0.98) 0 49%, transparent 50%),
    linear-gradient(-32deg, rgba(255, 238, 231, 0.98) 0 49%, transparent 50%),
    linear-gradient(180deg, rgba(255, 250, 246, 0.72), rgba(246, 218, 211, 0.98));
  border: 1px solid rgba(183, 107, 138, 0.3);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  z-index: 4;
}

.envelope-flap {
  top: 62px;
  width: 100%;
  height: 142px;
  background:
    linear-gradient(145deg, rgba(255, 251, 247, 0.98), rgba(245, 213, 205, 0.98)),
    url("../assets/images/watercolor-rose-luxury.png") center 28% / 150% auto no-repeat;
  border: 1px solid rgba(183, 107, 138, 0.3);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 1.05s cubic-bezier(0.2, 0.8, 0.2, 1), filter 1.05s ease;
  z-index: 6;
  filter: drop-shadow(0 16px 18px rgba(74, 31, 45, 0.13));
  backface-visibility: visible;
}

.envelope-card {
  bottom: 42px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 74%;
  height: 164px;
  padding: 20px;
  border: 1px solid rgba(183, 107, 138, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 250, 247, 0.94)),
    url("../assets/images/watercolor-rose-luxury.png") center / cover no-repeat;
  color: var(--plum);
  box-shadow: 0 18px 44px rgba(74, 31, 45, 0.18);
  opacity: 0.96;
  transform: translateY(48px) scale(0.94);
  transition: transform 1.18s cubic-bezier(0.16, 0.9, 0.18, 1) 0.34s, opacity 0.8s ease 0.34s;
}

.envelope-card b {
  font-family: Georgia, serif;
  letter-spacing: 0.08em;
}

.envelope-card i {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: normal;
  text-align: center;
}

.envelope-seal {
  bottom: 106px;
  z-index: 7;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(135, 45, 72, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 204, 211, 0.72), transparent 18%),
    linear-gradient(145deg, #b94765, #7e2945);
  box-shadow: 0 12px 24px rgba(74, 31, 45, 0.22);
  transition: transform 0.72s ease, opacity 0.54s ease;
  cursor: pointer;
}

.envelope-seal > span {
  color: rgba(255, 246, 239, 0.9);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.envelope-shadow {
  bottom: 0;
  width: 82%;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(74, 31, 45, 0.2), transparent 68%);
  z-index: 0;
  transition: transform 1s ease, opacity 1s ease;
}

.invite-intro.opening .envelope-flap {
  filter: drop-shadow(0 -10px 20px rgba(74, 31, 45, 0.1));
  transform: rotateX(178deg) translateY(-4px);
}

.invite-intro.opening .envelope-card {
  opacity: 1;
  transform: translateY(-116px) scale(1);
}

.invite-intro.opening .envelope-seal {
  opacity: 0;
  transform: translateY(-26px) scale(0.74);
}

.invite-intro.opening .envelope-shadow {
  opacity: 0.62;
  transform: scaleX(1.16);
}

body[data-template-theme="envelope"] .intro-envelope {
  min-height: 460px;
}

body[data-template-theme="envelope"] .intro-envelope strong {
  margin-top: 16px;
}

.intro-envelope::before,
.intro-envelope::after {
  content: "";
  position: absolute;
  width: 168px;
  aspect-ratio: 1;
  border: 0;
  background: url("../assets/images/wedding-floral-frame.png") center / cover no-repeat;
  opacity: 0.58;
  pointer-events: none;
}

.intro-envelope::before {
  top: -54px;
  right: -62px;
  transform: rotate(18deg);
}

.intro-envelope::after {
  bottom: -64px;
  left: -64px;
  transform: rotate(198deg);
}

.intro-envelope strong {
  position: relative;
  z-index: 1;
  color: var(--plum);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 4rem);
}

.intro-envelope small {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.intro-flower {
  position: absolute;
  inset: -58px -68px auto auto;
  width: 210px;
  aspect-ratio: 1;
  background: url("../assets/images/watercolor-rose-luxury.png") center / cover no-repeat;
  transform: rotate(16deg);
}

.intro-flower-soft {
  inset: auto auto -64px -74px;
  width: 220px;
  opacity: 0.78;
  transform: rotate(196deg);
}

.luxury-invite .invite-hero {
  min-height: calc(100vh - 74px);
  padding: clamp(70px, 9vw, 130px) 18px;
  background:
    linear-gradient(rgba(255, 248, 244, 0.48), rgba(255, 248, 244, 0.74)),
    url("../assets/images/wedding-floral-hero.png") center / cover no-repeat;
  color: var(--invite-ink);
  overflow: hidden;
}

.luxury-invite .invite-hero::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid color-mix(in srgb, var(--invite-accent), transparent 44%);
  pointer-events: none;
}

.invite-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(720px, 100%);
  padding: clamp(34px, 6vw, 72px) clamp(20px, 6vw, 58px);
  border-radius: 999px 999px 10px 10px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 30px 90px rgba(63, 36, 48, 0.13);
  backdrop-filter: blur(8px);
}

.luxury-invite .invite-hero h1,
.luxury-invite .invite-hero p,
.luxury-invite .invite-hero .eyebrow {
  color: var(--invite-ink);
}

.luxury-invite .invite-hero h1 {
  margin-top: 10px;
  color: var(--invite-ink);
  font-size: clamp(4rem, 15vw, 9.5rem);
  text-shadow: 0 8px 24px rgba(255, 255, 255, 0.6);
}

.invite-bismillah {
  margin: 0;
  color: var(--invite-accent);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2.7rem);
}

.hero-date {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  color: var(--invite-ink);
  font-weight: 800;
}

.hero-date i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--invite-accent);
}

.floating-flower {
  position: absolute;
  z-index: 1;
  width: min(260px, 42vw);
  aspect-ratio: 1;
  background: url("../assets/images/wedding-floral-frame.png") center / cover no-repeat;
  filter: drop-shadow(0 24px 35px rgba(63, 36, 48, 0.15));
  pointer-events: none;
  animation: floatFlower 8s ease-in-out infinite;
}

.flower-one {
  top: 38px;
  right: -60px;
}

.flower-two {
  left: -76px;
  bottom: 20px;
  transform: rotate(180deg);
  animation-delay: -3s;
}

.invite-section {
  position: relative;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) 0;
}

.invite-message {
  text-align: center;
}

.invite-message h2,
.countdown-section h2,
.invite-details-section h2,
.gallery-section h2,
.music-player-section h2,
.rsvp-section h2,
.share-section h2 {
  color: var(--invite-ink);
}

.invite-message p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.countdown-section {
  width: 100%;
  max-width: none;
  padding-inline: 16px;
  background:
    linear-gradient(rgba(63, 36, 48, 0.62), rgba(23, 63, 58, 0.58)),
    url("../assets/images/wedding-gallery-backdrop.png") center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.countdown-section .eyebrow,
.countdown-section h2 {
  color: #fff;
}

.countdown-section .countdown {
  margin-inline: auto;
}

.countdown-section .countdown span {
  min-height: 116px;
  align-content: center;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.countdown-section .countdown strong {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1;
}

.invite-details-section .invite-details article {
  display: grid;
  min-height: 150px;
  align-content: center;
  text-align: center;
  border-color: color-mix(in srgb, var(--invite-accent), transparent 58%);
}

.invite-details-section .invite-details strong {
  color: var(--invite-ink);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.2;
}

.location-note {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 22px auto 0;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--invite-accent), transparent 64%);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.location-note span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--invite-accent);
  color: #fff;
}

.location-note p {
  margin: 0;
  color: var(--muted);
}

.location-note strong {
  display: block;
  color: var(--invite-ink);
}

.gallery-section {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100vw - 1080px) / 2));
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 250, 246, 0.86)),
    url("../assets/images/wedding-gallery-backdrop.png") center / cover no-repeat;
}

.gallery-grid {
  display: grid;
  gap: 16px;
}

.gallery-item {
  position: relative;
  display: grid;
  min-height: 340px;
  align-content: end;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  box-shadow: 0 22px 55px rgba(30, 29, 27, 0.16);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(63, 36, 48, 0.66)),
    url("../assets/images/wedding-floral-frame.png") center / cover no-repeat;
  transform: scale(1.04);
}

.gallery-item-2::before {
  background:
    linear-gradient(180deg, transparent, rgba(23, 63, 58, 0.68)),
    url("../assets/images/wedding-gallery-backdrop.png") center / cover no-repeat;
}

.gallery-item-3::before {
  background:
    linear-gradient(180deg, transparent, rgba(63, 36, 48, 0.64)),
    url("../assets/images/wedding-floral-hero.png") center / cover no-repeat;
}

.gallery-item span,
.gallery-item figcaption {
  position: relative;
  z-index: 1;
}

.gallery-item span {
  font-weight: 800;
}

.gallery-item figcaption {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
}

.music-player-section,
.rsvp-section,
.share-section {
  display: grid;
  gap: 22px;
  align-items: center;
}

.preview-music-options {
  display: grid;
  gap: 10px;
}

.music-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--invite-accent), transparent 60%);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--invite-ink);
  cursor: pointer;
  text-align: start;
}

.music-chip.active {
  background: var(--invite-ink);
  color: #fff;
}

.music-chip span,
.music-chip small {
  display: block;
}

.music-chip small {
  color: inherit;
  opacity: 0.72;
}

.rsvp-section {
  padding-inline: clamp(18px, 5vw, 54px);
  border: 1px solid color-mix(in srgb, var(--invite-accent), transparent 58%);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.92)),
    url("../assets/images/wedding-floral-frame.png") left bottom / 330px auto no-repeat;
  box-shadow: var(--shadow);
}

.rsvp-form {
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.reveal-on-load {
  animation: revealUp 0.8s ease both;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatFlower {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 14px;
  }
}

/* Invitation template families */

body.invite-locked {
  overflow: hidden;
}

.template-family-label {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 3;
  color: color-mix(in srgb, var(--template-ink), transparent 24%);
  font-size: 0.68rem;
  font-weight: 800;
}

.template-card[data-template-family="romantic"] .template-art {
  min-height: 310px;
  background:
    linear-gradient(rgba(255, 250, 246, 0.42), rgba(255, 247, 243, 0.72)),
    url("../assets/images/wedding-floral-hero.png") center / cover no-repeat;
}

.template-card[data-template-family="romantic"] .template-art::before {
  inset: 24px;
  border-radius: 150px 150px 8px 8px;
}

.template-card[data-template-family="romantic"] .template-art strong {
  max-width: 82%;
  font-size: clamp(3rem, 7vw, 4.2rem);
}

.template-card[data-template-family="modern"] {
  border-color: #cbc5b9;
  border-radius: 0;
  background: #f4f0e7;
  box-shadow: 12px 12px 0 #22221f;
}

.template-card[data-template-family="modern"] .template-art {
  min-height: 310px;
  align-content: end;
  justify-items: start;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 0 72%, var(--template-accent) 72% 73%, transparent 73%),
    linear-gradient(145deg, #f8f4eb, #ded8ca);
  text-align: start;
}

.template-card[data-template-family="modern"] .template-art::before {
  inset: 18px;
  border: solid #22221f;
  border-width: 1px 0;
}

.template-card[data-template-family="modern"] .template-art::after,
.template-card[data-template-family="modern"] .template-flower {
  display: none;
}

.template-card[data-template-family="modern"] .template-ornament {
  width: 1px;
  height: 72px;
  border: 0;
  background: var(--template-accent);
}

.template-card[data-template-family="modern"] .template-ornament::before,
.template-card[data-template-family="modern"] .template-ornament::after {
  display: none;
}

.template-card[data-template-family="modern"] .template-art strong {
  max-width: 92%;
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 6vw, 3.65rem);
  font-weight: 500;
  line-height: 1.12;
}

.template-card[data-template-family="arabic"] .template-art {
  min-height: 310px;
  background:
    linear-gradient(rgba(251, 241, 223, 0.88), rgba(242, 229, 202, 0.94)),
    repeating-conic-gradient(from 45deg, rgba(166, 111, 62, 0.14) 0 12.5%, transparent 0 25%);
  background-size: auto, 38px 38px;
}

.template-card[data-template-family="arabic"] .template-art::before {
  inset: 20px 30px;
  border: 5px double color-mix(in srgb, var(--template-accent), transparent 24%);
  border-radius: 130px 130px 4px 4px;
}

.template-card[data-template-family="arabic"] .template-art::after {
  right: 25%;
  left: 25%;
  height: 10px;
  border-block: 1px solid var(--template-accent);
  background: repeating-linear-gradient(90deg, transparent 0 10px, var(--template-accent) 10px 11px);
}

.invite-intro {
  padding: clamp(18px, 4vw, 54px);
  background: #f2eadf;
  cursor: default;
  isolation: isolate;
}

.invite-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.38;
  pointer-events: none;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(390px, 1fr);
  width: min(1160px, 100%);
  min-height: min(720px, calc(100svh - 72px));
  overflow: hidden;
  box-shadow: 0 36px 120px rgba(28, 24, 20, 0.22);
  transition: opacity 0.7s ease, transform 1.1s cubic-bezier(0.16, 0.8, 0.2, 1);
}

.intro-visual,
.intro-card {
  position: relative;
  min-width: 0;
}

.intro-visual {
  display: grid;
  align-content: space-between;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
}

.intro-visual-code {
  font-family: Georgia, serif;
  font-size: clamp(3.8rem, 10vw, 8rem);
  line-height: 0.8;
}

.intro-monogram {
  align-self: center;
  justify-self: center;
  font-family: Georgia, serif;
  font-size: clamp(4rem, 11vw, 9rem);
  letter-spacing: -0.08em;
}

.intro-visual-caption {
  direction: ltr;
  font-family: Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-align: left;
  text-transform: uppercase;
}

.intro-card {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(38px, 7vw, 92px);
  background: #fffaf3;
  text-align: center;
}

.intro-family,
.hero-family-line {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--invite-accent, #b9824b);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.intro-family i,
.hero-family-line i {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.intro-bismillah {
  margin: 0 0 18px;
  color: var(--invite-accent, #b9824b);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.9rem);
}

.intro-card h1 {
  width: 100%;
  max-width: 720px;
  margin: 0;
  color: var(--invite-ink, #3f2430);
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 9vw, 7.5rem);
  font-weight: 700;
  line-height: 0.96;
}

.intro-copy {
  width: 100%;
  max-width: 540px;
  margin: 26px auto 0;
  color: color-mix(in srgb, var(--invite-ink, #3f2430), transparent 28%);
}

.intro-date {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  color: var(--invite-ink, #3f2430);
  font-weight: 800;
}

.intro-date i {
  width: 5px;
  height: 5px;
  background: var(--invite-accent, #b9824b);
  transform: rotate(45deg);
}

.intro-open-button {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
  min-width: min(280px, 100%);
  min-height: 58px;
  margin-top: 34px;
  padding: 0 24px;
  border: 1px solid var(--invite-ink, #3f2430);
  border-radius: 0;
  background: var(--invite-ink, #3f2430);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.intro-open-button:hover {
  background: transparent;
  color: var(--invite-ink, #3f2430);
  transform: translateY(-2px);
}

.intro-open-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--invite-accent, #b9824b), white 35%);
  outline-offset: 4px;
}

.intro-audio-note {
  width: 100%;
  max-width: 420px;
  margin-top: 15px;
  color: color-mix(in srgb, var(--invite-ink, #3f2430), transparent 46%);
  font-size: 0.68rem;
  font-weight: 600;
}

.invite-intro.opening .intro-layout {
  animation: introEnvelopeExit 2s cubic-bezier(0.16, 0.8, 0.2, 1) both;
}

.invite-intro.hide {
  transform: none;
}

body[data-template-family="romantic"] .invite-intro {
  background:
    linear-gradient(rgba(255, 247, 243, 0.7), rgba(249, 238, 228, 0.82)),
    url("../assets/images/wedding-floral-hero.png") center / cover no-repeat;
}

body[data-template-family="romantic"] .intro-layout {
  border: 1px solid rgba(126, 80, 70, 0.2);
}

body[data-template-family="romantic"] .intro-visual {
  background:
    linear-gradient(rgba(82, 44, 55, 0.14), rgba(82, 44, 55, 0.34)),
    url("../assets/images/premium-envelope-stationery.png") center / cover no-repeat;
  color: #fffaf3;
}

body[data-template-family="romantic"] .intro-card::before,
body[data-template-family="romantic"] .intro-card::after {
  content: "";
  position: absolute;
  width: 190px;
  aspect-ratio: 1;
  background: url("../assets/images/wedding-floral-frame.png") center / cover no-repeat;
  opacity: 0.26;
  pointer-events: none;
}

body[data-template-family="romantic"] .intro-card::before {
  top: -64px;
  right: -64px;
}

body[data-template-family="romantic"] .intro-card::after {
  bottom: -68px;
  left: -68px;
  transform: rotate(180deg);
}

body[data-template-family="modern"] .invite-intro {
  background: #1c1c1a;
}

body[data-template-family="modern"] .intro-layout {
  grid-template-columns: minmax(320px, 1.1fr) minmax(360px, 0.9fr);
  box-shadow: 0 38px 130px rgba(0, 0, 0, 0.46);
}

body[data-template-family="modern"] .intro-visual {
  order: 2;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(255, 255, 255, 0.18) 49.8% 50%, transparent 50%),
    linear-gradient(145deg, #292925, #0e0e0d);
  color: #e2d2b7;
}

body[data-template-family="modern"] .envelope-back {
  border-color: rgba(225, 210, 183, 0.3);
  background: linear-gradient(145deg, #33332f, #171716);
  box-shadow: 0 30px 54px rgba(0, 0, 0, 0.42);
}

body[data-template-family="modern"] .envelope-front {
  border-color: rgba(225, 210, 183, 0.3);
  background:
    linear-gradient(32deg, #222220 0 49%, transparent 50%),
    linear-gradient(-32deg, #2d2d29 0 49%, transparent 50%),
    #191918;
}

body[data-template-family="modern"] .envelope-flap {
  border-color: rgba(225, 210, 183, 0.32);
  background:
    linear-gradient(90deg, transparent 0 49.7%, rgba(226, 210, 183, 0.35) 49.7% 50.3%, transparent 50.3%),
    linear-gradient(145deg, #34342f, #161615);
}

body[data-template-family="modern"] .envelope-card {
  border: 0;
  border-radius: 0;
  background: #f1ede4;
  color: #242420;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
}

body[data-template-family="modern"] .envelope-seal {
  border-radius: 2px;
  background: #d5bd92;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transform: rotate(45deg);
}

body[data-template-family="modern"] .envelope-seal > span {
  color: #252521;
  transform: rotate(-45deg);
}

body[data-template-family="modern"] .invite-intro.opening .envelope-seal {
  transform: translateY(-26px) rotate(45deg) scale(0.74);
}

body[data-template-family="modern"] .intro-card {
  order: 1;
  justify-items: start;
  background: #f0ece3;
  text-align: start;
}

body[data-template-family="modern"] .intro-card h1 {
  font-family: var(--font-body);
  font-size: clamp(3.4rem, 7vw, 6.7rem);
  font-weight: 500;
  line-height: 1.12;
}

body[data-template-family="modern"] .intro-copy {
  margin-inline: 0;
}

body[data-template-family="modern"] .intro-date {
  justify-content: flex-start;
  width: 100%;
  padding-block: 16px;
  border-block: 1px solid rgba(33, 33, 30, 0.24);
}

body[data-template-family="modern"] .intro-open-button {
  align-self: start;
}

body[data-template-family="arabic"] .invite-intro {
  background:
    linear-gradient(rgba(14, 46, 40, 0.94), rgba(18, 54, 46, 0.96)),
    repeating-conic-gradient(from 45deg, rgba(220, 177, 101, 0.16) 0 12.5%, transparent 0 25%),
    #123c33;
  background-size: auto, 52px 52px;
}

body[data-template-family="arabic"] .intro-layout {
  border: 9px double #b78a46;
  background: #eee0c4;
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.38);
}

body[data-template-family="arabic"] .intro-visual {
  background:
    linear-gradient(rgba(20, 67, 57, 0.9), rgba(15, 49, 43, 0.96)),
    repeating-conic-gradient(from 45deg, rgba(219, 177, 101, 0.22) 0 12.5%, transparent 0 25%);
  background-size: auto, 42px 42px;
  color: #e7c98e;
}

body[data-template-family="arabic"] .envelope-back {
  border-color: rgba(231, 201, 142, 0.5);
  background:
    repeating-conic-gradient(from 45deg, rgba(231, 201, 142, 0.14) 0 12.5%, transparent 0 25%) 0 0 / 36px 36px,
    #174d42;
}

body[data-template-family="arabic"] .envelope-front {
  border-color: rgba(231, 201, 142, 0.48);
  background:
    linear-gradient(32deg, #1d5a4d 0 49%, transparent 50%),
    linear-gradient(-32deg, #164b40 0 49%, transparent 50%),
    #123f36;
}

body[data-template-family="arabic"] .envelope-flap {
  border-color: rgba(231, 201, 142, 0.52);
  background:
    repeating-conic-gradient(from 45deg, rgba(231, 201, 142, 0.2) 0 12.5%, transparent 0 25%) 0 0 / 30px 30px,
    #1b574a;
}

body[data-template-family="arabic"] .envelope-card {
  border: 4px double #b78a46;
  border-radius: 18px 18px 3px 3px;
  background: #f5ead4;
  color: #17483e;
}

body[data-template-family="arabic"] .envelope-seal {
  border: 2px solid #f0d49b;
  background: linear-gradient(145deg, #d6ad68, #9b6c2f);
}

body[data-template-family="arabic"] .envelope-seal > span {
  color: #173e36;
}

body[data-template-family="arabic"] .intro-monogram {
  display: grid;
  width: min(240px, 70%);
  aspect-ratio: 1;
  place-items: center;
  border: 6px double #c69a55;
  border-radius: 50% 50% 8px 8px;
}

body[data-template-family="arabic"] .intro-card {
  background:
    linear-gradient(rgba(250, 242, 225, 0.94), rgba(250, 242, 225, 0.94)),
    repeating-linear-gradient(45deg, #a66f3e 0 1px, transparent 1px 18px);
}

body[data-template-family="arabic"] .intro-card h1 {
  padding: 14px 30px;
  border-block: 1px solid rgba(166, 111, 62, 0.46);
}

@keyframes introEnvelopeExit {
  0%,
  72% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  100% {
    opacity: 0;
    transform: scale(1.018) translateY(-12px);
  }
}

.invite-music-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid color-mix(in srgb, var(--invite-accent, #b9824b), transparent 20%);
  border-radius: 0;
  background: color-mix(in srgb, var(--invite-ink, #3f2430), transparent 4%);
  color: #fffaf3;
  box-shadow: 0 14px 34px rgba(20, 17, 15, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
}

body.invite-open .invite-music-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.invite-music-toggle:hover {
  background: var(--invite-accent, #b9824b);
}

.invite-music-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--invite-accent, #b9824b), white 42%);
  outline-offset: 3px;
}

.invite-music-toggle b {
  font-size: 0.72rem;
}

.music-toggle-icon {
  display: inline-flex;
  gap: 3px;
  align-items: end;
  width: 18px;
  height: 18px;
}

.music-toggle-icon::before,
.music-toggle-icon::after {
  content: "";
  width: 3px;
  height: 8px;
  background: currentColor;
  box-shadow: 6px -4px 0 currentColor, 12px -1px 0 currentColor;
}

.invite-music-toggle.playing .music-toggle-icon::before {
  animation: musicMeter 0.85s ease-in-out infinite alternate;
}

.invite-music-toggle.playing .music-toggle-icon::after {
  animation: musicMeter 0.72s 0.18s ease-in-out infinite alternate-reverse;
}

@keyframes musicMeter {
  to { transform: scaleY(1.55); }
}

.luxury-invite {
  overflow: hidden;
}

.hero-family-line {
  justify-content: center;
  margin-bottom: 10px;
}

.hero-art-panel {
  position: relative;
  z-index: 2;
  display: none;
  min-height: 520px;
  padding: 42px;
}

.hero-art-index,
.hero-art-monogram,
.hero-art-caption {
  display: block;
}

.hero-art-index {
  font-family: Georgia, serif;
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 0.8;
}

.hero-art-monogram {
  align-self: center;
  font-family: Georgia, serif;
  font-size: clamp(5rem, 13vw, 11rem);
  letter-spacing: -0.1em;
}

.hero-art-caption {
  align-self: end;
  direction: ltr;
  font-family: Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.music-license-note {
  display: block;
  margin-top: 12px;
  color: color-mix(in srgb, var(--invite-ink), transparent 42%);
  font-size: 0.72rem;
  font-weight: 700;
}

.music-chip:disabled,
.icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

body[data-template-family="modern"] .luxury-invite {
  background: #efebe2;
}

body[data-template-family="modern"] .luxury-invite .invite-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: stretch;
  min-height: calc(100svh - 74px);
  padding: clamp(50px, 7vw, 96px) max(24px, calc((100vw - 1240px) / 2));
  background: #efebe2;
}

body[data-template-family="modern"] .luxury-invite .invite-hero::before,
body[data-template-family="modern"] .floating-flower {
  display: none;
}

body[data-template-family="modern"] .invite-hero-content {
  align-content: center;
  justify-items: start;
  width: 100%;
  padding: 42px 0;
  border-block: 1px solid rgba(32, 32, 29, 0.3);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: start;
}

body[data-template-family="modern"] .hero-family-line {
  justify-content: flex-start;
}

body[data-template-family="modern"] .invite-bismillah {
  font-family: var(--font-body);
  font-size: 0.9rem;
}

body[data-template-family="modern"] .luxury-invite .invite-hero h1 {
  max-width: 760px;
  margin-block: 22px;
  font-family: var(--font-body);
  font-size: clamp(4.6rem, 9vw, 8.6rem);
  font-weight: 500;
  line-height: 1.03;
  text-shadow: none;
}

body[data-template-family="modern"] .hero-date {
  justify-content: flex-start;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(32, 32, 29, 0.22);
}

body[data-template-family="modern"] .hero-art-panel {
  display: grid;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, 0.2) 49.8% 50%, transparent 50%),
    #20201d;
  color: #d9bd8b;
}

body[data-template-family="modern"] .invite-section {
  width: min(1180px, calc(100% - 48px));
}

body[data-template-family="modern"] .invite-message {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: 60px;
  align-items: end;
  text-align: start;
}

body[data-template-family="modern"] .invite-message .eyebrow {
  align-self: start;
  border-top: 2px solid var(--invite-ink);
  padding-top: 12px;
}

body[data-template-family="modern"] .invite-message h2 {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 500;
  line-height: 1.15;
}

body[data-template-family="modern"] .invite-message p:not(.eyebrow) {
  grid-column: 2;
  margin: 0;
}

body[data-template-family="modern"] .countdown-section {
  width: 100%;
  background: #20201d;
  text-align: start;
}

body[data-template-family="modern"] .countdown-section > * {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

body[data-template-family="modern"] .countdown-section .countdown {
  gap: 0;
}

body[data-template-family="modern"] .countdown-section .countdown span {
  min-height: 170px;
  padding-inline: 28px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

body[data-template-family="modern"] .invite-details-section .invite-details article {
  min-height: 118px;
  padding-inline: 0;
  border: 0;
  border-bottom: 1px solid rgba(32, 32, 29, 0.26);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: start;
}

body[data-template-family="modern"] .location-note,
body[data-template-family="modern"] .rsvp-section,
body[data-template-family="modern"] .rsvp-form,
body[data-template-family="modern"] .gallery-item,
body[data-template-family="modern"] .music-chip {
  border-radius: 0;
}

body[data-template-family="modern"] .gallery-section {
  background: #ddd7ca;
}

body[data-template-family="modern"] .gallery-section .section-heading {
  margin-inline: 0;
  text-align: start;
}

body[data-template-family="modern"] .gallery-grid {
  grid-template-columns: 1.45fr 0.72fr 0.72fr;
}

body[data-template-family="modern"] .gallery-item-1 {
  min-height: 520px;
}

body[data-template-family="modern"] .music-player-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  background: #20201d;
  color: #fff;
}

body[data-template-family="modern"] .music-player-section h2,
body[data-template-family="modern"] .music-player-section .eyebrow,
body[data-template-family="modern"] .music-player-section .music-license-note {
  color: #fff;
}

body[data-template-family="modern"] .rsvp-section {
  border-width: 1px 0 0;
  background: transparent;
  box-shadow: none;
}

body[data-template-family="arabic"] .luxury-invite {
  background:
    linear-gradient(rgba(251, 243, 226, 0.95), rgba(247, 238, 218, 0.96)),
    repeating-conic-gradient(from 45deg, rgba(166, 111, 62, 0.09) 0 12.5%, transparent 0 25%);
  background-size: auto, 64px 64px;
}

body[data-template-family="arabic"] .luxury-invite .invite-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 26px;
  min-height: calc(100svh - 74px);
  padding-inline: max(24px, calc((100vw - 1080px) / 2));
  background:
    linear-gradient(rgba(246, 234, 210, 0.9), rgba(250, 242, 226, 0.94)),
    repeating-conic-gradient(from 45deg, rgba(166, 111, 62, 0.18) 0 12.5%, transparent 0 25%);
  background-size: auto, 54px 54px;
}

body[data-template-family="arabic"] .luxury-invite .invite-hero::before {
  inset: 34px;
  border: 8px double rgba(166, 111, 62, 0.52);
}

body[data-template-family="arabic"] .floating-flower {
  display: none;
}

body[data-template-family="arabic"] .invite-hero-content {
  align-self: center;
  width: min(760px, 100%);
  padding: clamp(48px, 7vw, 84px);
  border: 7px double rgba(166, 111, 62, 0.5);
  border-radius: 260px 260px 8px 8px;
  background: rgba(255, 249, 236, 0.9);
  box-shadow: 0 26px 70px rgba(61, 36, 20, 0.14);
  backdrop-filter: none;
}

body[data-template-family="arabic"] .hero-art-panel {
  display: grid;
  align-self: center;
  min-height: 520px;
  border: 2px solid rgba(166, 111, 62, 0.52);
  border-radius: 120px 120px 4px 4px;
  background:
    linear-gradient(rgba(20, 67, 57, 0.94), rgba(15, 49, 43, 0.96)),
    repeating-conic-gradient(from 45deg, rgba(219, 177, 101, 0.22) 0 12.5%, transparent 0 25%);
  background-size: auto, 34px 34px;
  color: #e4c486;
  text-align: center;
}

body[data-template-family="arabic"] .hero-art-monogram {
  font-family: var(--font-display);
  letter-spacing: 0;
}

body[data-template-family="arabic"] .invite-section:not(.countdown-section, .gallery-section, .music-player-section)::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  width: 14px;
  height: 14px;
  border: 1px solid var(--invite-accent);
  transform: translateX(50%) rotate(45deg);
}

body[data-template-family="arabic"] .countdown-section {
  background:
    linear-gradient(rgba(18, 59, 50, 0.94), rgba(13, 45, 39, 0.96)),
    repeating-conic-gradient(from 45deg, rgba(220, 177, 101, 0.16) 0 12.5%, transparent 0 25%);
  background-size: auto, 42px 42px;
}

body[data-template-family="arabic"] .countdown-section .countdown span {
  border: 1px solid rgba(228, 196, 134, 0.54);
  border-radius: 80px 80px 4px 4px;
  background: rgba(255, 248, 230, 0.08);
  backdrop-filter: none;
}

body[data-template-family="arabic"] .invite-details-section .invite-details article {
  border: 5px double rgba(166, 111, 62, 0.38);
  border-radius: 70px 70px 4px 4px;
  background: rgba(255, 249, 236, 0.74);
  box-shadow: none;
}

body[data-template-family="arabic"] .location-note {
  border: 1px solid rgba(166, 111, 62, 0.48);
  border-radius: 0;
  background: rgba(255, 249, 236, 0.82);
}

body[data-template-family="arabic"] .gallery-section {
  background: #173f3a;
  color: #fff5df;
}

body[data-template-family="arabic"] .gallery-section h2,
body[data-template-family="arabic"] .gallery-section .eyebrow {
  color: #fff5df;
}

body[data-template-family="arabic"] .gallery-item {
  border-color: rgba(228, 196, 134, 0.56);
  border-radius: 140px 140px 4px 4px;
  box-shadow: none;
}

body[data-template-family="arabic"] .music-player-section {
  padding-inline: clamp(24px, 6vw, 72px);
  border: 7px double rgba(166, 111, 62, 0.42);
  background: rgba(255, 249, 236, 0.76);
}

body[data-template-family="arabic"] .music-chip {
  border-radius: 0;
  background: rgba(255, 249, 236, 0.86);
}

body[data-template-family="arabic"] .music-chip.active {
  border-color: #173f3a;
  background: #173f3a;
  color: #fff5df;
}

body[data-template-family="arabic"] .rsvp-section {
  border: 8px double rgba(166, 111, 62, 0.4);
  border-radius: 120px 120px 4px 4px;
  background:
    linear-gradient(rgba(255, 250, 239, 0.92), rgba(255, 250, 239, 0.92)),
    repeating-conic-gradient(from 45deg, rgba(166, 111, 62, 0.14) 0 12.5%, transparent 0 25%);
  box-shadow: none;
}

body.invite-open .invite-hero-content,
body.invite-open .hero-art-panel {
  animation: invitationReveal 0.95s cubic-bezier(0.16, 0.8, 0.2, 1) both;
}

body.invite-open .hero-art-panel {
  animation-delay: 0.12s;
}

@keyframes invitationReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Final guest system: real media, editorial type, no drawn geometry. */
body.guest-invitation .signature-invite .invite-hero::before,
body.guest-invitation .signature-invite .invite-hero-content::before,
body.guest-invitation .signature-invite .invite-hero-content::after,
body.guest-invitation .invite-section::before,
body.guest-invitation .invite-section::after {
  content: none !important;
  display: none !important;
}

body.guest-invitation .signature-invite .invite-hero-content {
  width: min(760px, 100%) !important;
  margin: 0 !important;
  padding: clamp(26px, 5vw, 72px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.guest-invitation .signature-invite .invite-hero-content h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 8vw, 7.2rem) !important;
  line-height: .94;
}

body.guest-invitation .invite-hero-overlay {
  background: linear-gradient(90deg, rgba(14, 11, 10, .76), rgba(14, 11, 10, .18) 68%, rgba(14, 11, 10, .34)) !important;
}

body.guest-invitation .hero-date i {
  width: clamp(22px, 4vw, 48px) !important;
  height: 1px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: currentColor !important;
  opacity: .58;
}

body.guest-invitation .countdown {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  max-width: 980px;
  margin-inline: auto;
  border-block: 1px solid color-mix(in srgb, var(--template-accent) 44%, transparent) !important;
}

body.guest-invitation .countdown span,
body.guest-invitation[data-template-theme] .countdown span {
  min-width: 0 !important;
  aspect-ratio: auto !important;
  padding: clamp(20px, 4vw, 40px) 12px !important;
  border: 0 !important;
  border-inline-start: 1px solid color-mix(in srgb, var(--template-accent) 34%, transparent) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body.guest-invitation .countdown span:first-child {
  border-inline-start: 0 !important;
}

body.guest-invitation .countdown span::before,
body.guest-invitation .countdown span::after {
  content: none !important;
  display: none !important;
}

body.guest-invitation .invite-details article,
body.guest-invitation .invitation-wording,
body.guest-invitation .rsvp-section,
body.guest-invitation .attendance-form,
body.guest-invitation .dress-code,
body.guest-invitation .venue-card,
body.guest-invitation[data-template-theme] .invite-details article,
body.guest-invitation[data-template-theme] .invitation-wording,
body.guest-invitation[data-template-theme] .rsvp-section {
  border-radius: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  transform: none !important;
}

body.guest-invitation .invite-details article,
body.guest-invitation[data-template-theme] .invite-details article {
  border: 0 !important;
  border-block-start: 1px solid color-mix(in srgb, var(--template-accent) 42%, transparent) !important;
  padding: 24px 0 !important;
}

body.guest-invitation .rsvp-section,
body.guest-invitation[data-template-theme] .rsvp-section {
  border: 0 !important;
  border-block: 1px solid color-mix(in srgb, var(--template-accent) 42%, transparent) !important;
  padding-inline: 0 !important;
}

.creator-live-card > strong {
  font-family: var(--invite-display-font, var(--font-display));
}

@media (max-width: 1100px) {
  .creator-template-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .creator-template-options {
    grid-template-columns: 1fr;
  }

  body.guest-invitation .signature-invite .invite-hero-content {
    align-self: end;
    padding: 30px 20px 44px !important;
  }

  body.guest-invitation .invite-hero-overlay {
    background: linear-gradient(180deg, rgba(14, 11, 10, .1), rgba(14, 11, 10, .8)) !important;
  }

  body.guest-invitation .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.guest-invitation .countdown span:nth-child(3) {
    border-inline-start: 0 !important;
    border-block-start: 1px solid color-mix(in srgb, var(--template-accent) 34%, transparent) !important;
  }

  body.guest-invitation .countdown span:nth-child(4) {
    border-block-start: 1px solid color-mix(in srgb, var(--template-accent) 34%, transparent) !important;
  }
}

/* Full-bleed invitation media: text sits directly on the image/video. */
body.guest-invitation .signature-invite .invite-hero .invite-hero-content {
  width: min(760px, 100%);
  padding: clamp(24px, 5vw, 58px) 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.guest-invitation .signature-invite .invite-hero::before {
  z-index: 2;
  border-color: rgba(255, 255, 255, .28);
  pointer-events: none;
}

body.guest-invitation .signature-invite .invite-hero h1 {
  max-width: 740px;
  font-size: clamp(3.8rem, 9vw, 7.8rem);
  text-wrap: balance;
}

body.guest-invitation[data-custom-layout="editorial"] .invite-hero-content {
  align-self: end;
  justify-items: start;
  text-align: start;
}

body.guest-invitation[data-custom-layout="minimal"] .invite-hero-content {
  width: min(640px, 100%);
}

body.guest-invitation[data-custom-layout="minimal"] .invite-hero-overlay {
  background: linear-gradient(90deg, rgba(15, 12, 10, .66), rgba(15, 12, 10, .12) 72%);
}

.custom-design-panel {
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 248, .48);
}

.custom-design-panel summary {
  display: grid;
  gap: 3px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}

.custom-design-panel summary::-webkit-details-marker {
  display: none;
}

.custom-design-panel summary span {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.custom-design-panel summary small {
  color: var(--muted);
}

.custom-design-fields {
  display: grid;
  grid-template-columns: minmax(160px, .35fr) 1fr;
  gap: 16px;
  padding: 4px 0 24px;
}

.custom-design-fields input[type="color"] {
  min-height: 54px;
  padding: 4px;
  cursor: pointer;
}

.asset-input-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.music-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.music-option {
  min-width: 0;
  grid-template-columns: 1fr;
  align-content: space-between;
  padding: 16px 10px;
}

.music-option p {
  min-height: 3.4em;
  font-size: .82rem;
}

.music-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .asset-input-grid,
  .music-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.guest-invitation .signature-invite .invite-hero .invite-hero-content {
    align-self: end;
    width: 100%;
    padding: 28px 12px 42px;
  }

  body.guest-invitation .signature-invite .invite-hero h1 {
    font-size: clamp(3.1rem, 16vw, 5.4rem);
  }

  .custom-design-fields {
    grid-template-columns: 1fr;
  }
}

/* Typography choices */
.font-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.font-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
}

.font-picker label {
  position: relative;
  display: grid;
  min-height: 112px;
  align-content: space-between;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .5);
  cursor: pointer;
}

.font-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.font-picker label:has(input:checked) {
  border-color: var(--plum);
  box-shadow: inset 0 -3px var(--plum);
}

.font-picker label:has(input:focus-visible) {
  outline: 3px solid rgba(125, 49, 71, .26);
  outline-offset: 2px;
}

.font-picker span {
  color: var(--muted);
  font-size: .7rem;
}

.font-picker b {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 500;
}

.font-picker [data-font-preview="amiri"] b { font-family: "Amiri", serif; }
.font-picker [data-font-preview="ruqaa"] b { font-family: "Aref Ruqaa", "Amiri", serif; }
.font-picker [data-font-preview="plex"] b { font-family: "IBM Plex Sans Arabic", sans-serif; }
.font-picker [data-font-preview="kufi"] b { font-family: "Noto Kufi Arabic", sans-serif; font-size: 1.08rem; }
.font-picker [data-font-preview="garamond"] b { font-family: "EB Garamond", serif; }
.font-picker [data-font-preview="playfair"] b { font-family: "Playfair Display", serif; }
.font-picker [data-font-preview="fraktur"] b { font-family: "UnifrakturCook", "EB Garamond", serif; }

.creator-live-card strong {
  font-family: var(--invite-display-font, var(--font-display));
}

/* Editorial countdown and details: no drawn circles, arches, or ornamental cards. */
body.guest-invitation .countdown-section {
  background: var(--invite-ink);
  color: var(--invite-bg);
}

body.guest-invitation .countdown-section .countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid color-mix(in srgb, var(--invite-bg), transparent 68%);
}

body.guest-invitation .countdown-section .countdown span {
  display: grid;
  min-height: 150px;
  place-content: center;
  padding: 24px 12px;
  border: 0 !important;
  border-inline-start: 1px solid color-mix(in srgb, var(--invite-bg), transparent 68%) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  backdrop-filter: none !important;
  text-align: center !important;
}

body.guest-invitation .countdown-section .countdown span:first-child {
  border-inline-start: 0 !important;
}

body.guest-invitation .countdown-section .countdown strong {
  color: inherit;
  font-family: var(--font-latin-display);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 500;
  line-height: .9;
}

body.guest-invitation .countdown-section .countdown small {
  margin-top: 12px;
  color: color-mix(in srgb, currentColor, transparent 22%);
  font-size: .72rem;
  font-weight: 500;
}

body.guest-invitation .invite-details article,
body.guest-invitation .rsvp-section,
body.guest-invitation .attendance-choice label,
body.guest-invitation .dress-code {
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.guest-invitation .invite-details article {
  border: 0 !important;
  border-block-start: 1px solid color-mix(in srgb, var(--invite-ink), transparent 70%) !important;
  background: transparent !important;
}

body.guest-invitation .rsvp-section {
  border: 0 !important;
  border-block: 1px solid color-mix(in srgb, var(--invite-accent), transparent 42%) !important;
  background: transparent !important;
}

body.guest-invitation .invite-section::before {
  display: none !important;
}

body.guest-invitation .hero-date i {
  width: 32px;
  height: 1px;
  border-radius: 0;
}

.reference-feature-item {
  border-radius: 0;
  text-align: start;
}

.reference-feature-icon {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 18px;
  border: 0;
  border-radius: 0;
  color: var(--reference-gold);
  font-size: .8rem;
  letter-spacing: .12em;
}

@media (max-width: 900px) {
  .font-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.guest-invitation .countdown-section .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.guest-invitation .countdown-section .countdown span {
    min-height: 120px;
    border-block-start: 1px solid color-mix(in srgb, var(--invite-bg), transparent 68%) !important;
  }

  body.guest-invitation .countdown-section .countdown span:nth-child(odd) {
    border-inline-start: 0 !important;
  }
}

/* Invitelux editorial product experience */
:root {
  --page: #f4efe6;
  --surface: #fffdf8;
  --surface-soft: #ebe5da;
  --ink: #211f1c;
  --muted: #6f6961;
  --green: #213b35;
  --plum: #70434b;
  --gold: #a77c47;
  --line: rgba(33, 31, 28, 0.16);
  --radius: 2px;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-display: "Amiri", "Traditional Arabic", Georgia, serif;
  --font-latin-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

body {
  background: var(--page);
  line-height: 1.7;
}

.brand-mark {
  display: none !important;
}

.brand-wordmark,
.brand strong,
.brand-wordmark strong {
  font-family: var(--font-latin-display);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1;
}

.announcement-bar {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 5px 20px;
  background: #22231f;
  color: #f3ede2;
  font-size: 0.75rem;
}

.announcement-bar a {
  border-bottom: 1px solid rgba(243, 237, 226, 0.52);
}

.sales-header {
  grid-template-columns: auto 1fr auto;
  min-height: 76px;
  padding-inline: clamp(18px, 4vw, 64px);
  background: rgba(244, 239, 230, 0.96);
  backdrop-filter: blur(12px);
}

.sales-header .main-nav {
  justify-self: center;
}

.sales-header .main-nav a {
  font-size: 0.86rem;
  font-weight: 600;
}

.btn {
  min-height: 48px;
  padding-inline: 22px;
  border-radius: 1px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn-primary {
  background: #263d37;
  box-shadow: none;
}

.btn-primary:hover {
  background: #172b26;
}

.btn-secondary {
  border-color: rgba(33, 31, 28, 0.38);
  background: transparent;
  color: var(--ink);
}

.btn:focus-visible,
.text-link:focus-visible,
.main-nav a:focus-visible,
.filter-btn:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold), white 30%);
  outline-offset: 4px;
}

.sales-hero,
.collection-section,
.process-section,
.experience-section,
.pricing-section,
.faq-section,
.final-cta,
.collection-hero,
.collection-catalog,
.collection-note,
.creator-hero,
.creator-step-nav,
.creator-layout {
  width: min(1260px, calc(100% - 40px));
  margin-inline: auto;
}

.sales-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: clamp(48px, 8vw, 118px);
  align-items: center;
  min-height: calc(100svh - 110px);
  padding-block: clamp(72px, 10vw, 132px);
}

.sales-hero-copy h1,
.collection-hero h1,
.creator-hero h1 {
  max-width: 920px;
  font-size: clamp(3.5rem, 7.4vw, 7.7rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.sales-hero-copy h1 em,
.collection-hero h1 em,
.creator-hero h1 em {
  color: var(--plum);
  font-style: normal;
}

.hero-lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 30px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-proof li::before {
  content: "—";
  margin-inline-end: 8px;
  color: var(--gold);
}

.hero-journey-demo {
  position: relative;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid rgba(33, 31, 28, 0.2);
  background: #ded3c1;
  box-shadow: 26px 30px 0 #2a302c;
}

.demo-caption {
  display: block;
  margin-bottom: 34px;
  font-family: var(--font-latin-display);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.hero-journey-demo ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-journey-demo li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 16px;
  padding-block: 22px;
  border-top: 1px solid rgba(33, 31, 28, 0.22);
}

.hero-journey-demo li span {
  grid-row: 1 / span 2;
  color: var(--plum);
  font-family: var(--font-latin-display);
  font-size: 1.25rem;
}

.hero-journey-demo li b {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.hero-journey-demo li small {
  color: var(--muted);
  line-height: 1.7;
}

.collection-section,
.process-section,
.experience-section,
.pricing-section,
.faq-section,
.final-cta,
.collection-catalog,
.collection-note {
  padding-block: clamp(76px, 10vw, 140px);
}

.collection-section {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1260px) / 2));
  background: #22231f;
  color: #f3ede2;
}

.collection-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.collection-heading h2,
.collection-heading .eyebrow {
  color: #f3ede2;
}

.collection-heading h2,
.process-intro h2,
.experience-quote h2,
.pricing-heading h2,
.faq-section h2,
.final-cta h2,
.collection-note h2 {
  font-size: clamp(2.8rem, 5.6vw, 5.9rem);
  font-weight: 400;
}

.collection-heading > p {
  margin: 0;
  color: rgba(243, 237, 226, 0.66);
}

.collection-footer {
  margin-top: 42px;
  text-align: left;
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

.process-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1fr);
  gap: clamp(48px, 9vw, 140px);
}

.process-intro {
  align-self: start;
  position: sticky;
  top: 120px;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding-block: 36px;
  border-top: 1px solid var(--line);
}

.process-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.process-list > li > span {
  color: var(--gold);
  font-family: var(--font-latin-display);
  font-size: 1.5rem;
}

.process-list h3 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.process-list p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.experience-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 9vw, 130px);
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1260px) / 2));
  background: #dcd2c2;
}

.experience-quote > p:last-child,
.pricing-heading > p:last-child {
  max-width: 620px;
  color: var(--muted);
}

.feature-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.feature-ledger article {
  min-height: 230px;
  padding: 26px;
  border-top: 1px solid rgba(33, 31, 28, 0.24);
}

.feature-ledger article:nth-child(odd) {
  border-inline-end: 1px solid rgba(33, 31, 28, 0.24);
}

.feature-ledger span {
  color: var(--plum);
  font-family: var(--font-latin-display);
}

.feature-ledger h3 {
  margin-top: 42px;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.feature-ledger p {
  margin-bottom: 0;
  color: var(--muted);
}

.pricing-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.66fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 110px);
}

.pricing-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.pricing-table article {
  display: flex;
  min-height: 510px;
  flex-direction: column;
  padding: 30px;
  border-inline-start: 1px solid var(--line);
  background: transparent;
}

.pricing-table article:last-child {
  border-inline-start: 0;
}

.pricing-table .pricing-featured {
  background: #263d37;
  color: #f7f0e5;
  transform: translateY(-18px);
}

.pricing-table .pricing-featured h3,
.pricing-table .pricing-featured strong {
  color: #f7f0e5;
}

.pricing-table article > p {
  direction: ltr;
  margin: 0;
  font-family: var(--font-latin-display);
  font-size: 1.1rem;
  text-align: left;
}

.pricing-table article > strong {
  margin-block: 28px 8px;
  color: var(--ink);
  font-family: var(--font-latin-display);
  font-size: 4rem;
  font-weight: 500;
}

.pricing-table h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.pricing-table ul {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.pricing-table li::before {
  content: "—";
  margin-inline-end: 8px;
}

.pricing-table a {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid currentColor;
  font-weight: 700;
}

.one-time-note {
  grid-column: 2;
  margin: -70px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: clamp(48px, 9vw, 140px);
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 24px 40px 24px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.45rem;
  list-style: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  font-family: var(--font-body);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 700px;
  margin: 0 0 26px;
  color: var(--muted);
}

.final-cta {
  width: min(1180px, calc(100% - 40px));
  border-block: 1px solid var(--line);
  text-align: center;
}

.final-cta .hero-actions {
  justify-content: center;
}

.sales-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: end;
  padding: 52px max(20px, calc((100vw - 1260px) / 2));
  background: #22231f;
  color: #f3ede2;
}

.sales-footer p {
  max-width: 460px;
  margin: 0;
  color: rgba(243, 237, 226, 0.62);
}

.sales-footer nav {
  justify-content: flex-end;
}

/* Template catalog */
.collection-hero,
.creator-hero {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 34px;
  padding-block: clamp(72px, 10vw, 136px) 54px;
  border-bottom: 1px solid var(--line);
}

.collection-hero > .eyebrow,
.creator-hero .eyebrow {
  direction: ltr;
  padding-top: 18px;
  font-family: var(--font-latin-display);
  letter-spacing: 0.08em;
}

.collection-hero > div > p,
.creator-hero > p {
  max-width: 740px;
  margin: 24px 0 0;
  color: var(--muted);
}

.collection-catalog {
  padding-top: 40px;
}

.template-filters {
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.filter-btn {
  min-height: 46px;
  padding-inline: 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}

.filter-btn.active {
  border-bottom-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.catalog-grid,
.sales-template-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 18px;
}

.template-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.template-art {
  min-height: 430px;
  margin-bottom: 20px;
  padding: 28px;
  border: 0;
  border-radius: 0;
  background: var(--template-bg);
  transition: transform 500ms cubic-bezier(.2,.72,.2,1);
}

.template-art:hover {
  transform: translateY(-8px);
}

.template-art::before,
.template-art::after {
  pointer-events: none;
}

.template-art strong {
  position: relative;
  z-index: 2;
  color: var(--template-ink);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
}

.template-index {
  position: absolute;
  top: 20px;
  inset-inline-start: 22px;
  z-index: 2;
  color: var(--template-ink);
  font-family: var(--font-latin-display);
  font-size: 1.1rem;
}

.template-category {
  letter-spacing: 0.08em;
}

.template-motion-line {
  position: absolute;
  inset: auto 24px 24px;
  z-index: 1;
  height: 1px;
  background: var(--template-accent);
  transform-origin: right;
  transition: transform 650ms ease;
}

.template-art:hover .template-motion-line {
  transform: scaleX(0.35);
}

.template-meta {
  align-items: baseline;
}

.template-card .badge {
  padding: 0;
  background: transparent;
}

.template-card h3 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
}

.template-card > p {
  min-height: 76px;
  font-size: 0.86rem;
}

.template-actions .btn {
  min-height: 42px;
  padding-inline: 10px;
  font-size: 0.82rem;
}

/* Each catalog cover has its own composition. */
.template-card[data-template-theme="rose"] .template-art { align-content: end; justify-items: start; text-align: start; background: radial-gradient(circle at 76% 22%, rgba(192,138,106,.24), transparent 30%), #f8e6e2; }
.template-card[data-template-theme="rose"] .template-art::before { inset: 26px; border: 1px solid rgba(63,36,48,.35); }
.template-card[data-template-theme="pearl"] .template-art { align-content: center; border-inline: 18px solid #d9cbb3; background: linear-gradient(90deg, #eee8dc 49.8%, #c5b38f 50%, #eee8dc 50.2%); }
.template-card[data-template-theme="pearl"] .template-art strong { max-width: 70%; }
.template-card[data-template-theme="blush"] .template-art { border-radius: 48% 48% 4px 4px; background: radial-gradient(circle, #fff7f8 0 38%, #e8b8c4 39% 40%, #f8dfe5 41%); }
.template-card[data-template-theme="midnight"] .template-art { align-content: end; background: radial-gradient(circle at 50% 20%, rgba(210,172,104,.28), transparent 3%, transparent 24%), linear-gradient(#0d1a1a, #162523); color: #f9efe3; }
.template-card[data-template-theme="midnight"] .template-art strong { color: #f9efe3; }
.template-card[data-template-theme="garden"] .template-art { align-content: center; border-block: 28px solid #d5e1d2; background: repeating-linear-gradient(90deg, rgba(35,61,52,.08) 0 1px, transparent 1px 42px), #edf3e8; }
.template-card[data-template-theme="ivory"] .template-art { align-content: start; justify-items: start; text-align: start; background: linear-gradient(125deg, #fffaf0 0 67%, #b96f5d 67%); }
.template-card[data-template-theme="orchid"] .template-art { align-content: center; box-shadow: inset 0 0 0 12px #6d2d4f, inset 0 0 0 14px #c692a9; background: #f6dfe9; }
.template-card[data-template-theme="sage"] .template-art { align-content: end; justify-items: end; text-align: end; background: linear-gradient(160deg, #dce8dc 0 52%, #f5fbf6 52%); }
.template-card[data-template-theme="burgundy"] .template-art { align-content: center; background: linear-gradient(#5c1c30 0 31%, #f5e6df 31% 69%, #5c1c30 69%); }
.template-card[data-template-theme="champagne"] .template-art { border-radius: 160px 160px 0 0; background: linear-gradient(135deg, rgba(198,154,92,.28), transparent 46%), #fff3dc; }
.template-card[data-template-theme="henna"] .template-art { align-content: end; background: linear-gradient(90deg, transparent 49.5%, rgba(208,138,61,.34) 50%, transparent 50.5%), radial-gradient(circle at 50% 22%, #d08a3d 0 2%, transparent 3% 13%, rgba(208,138,61,.3) 14% 15%, transparent 16%), #211410; }
.template-card[data-template-theme="henna"] .template-art strong,
.template-card[data-template-theme="henna"] .template-art small,
.template-card[data-template-theme="henna"] .template-index { color: #fff0dc; }
.template-card[data-template-theme="majlis"] .template-art { align-content: center; border-inline-start: 34px solid #18332e; background: repeating-linear-gradient(0deg, transparent 0 51px, rgba(24,51,46,.12) 52px), #efe4d1; }
.template-card[data-template-theme="ladies"] .template-art { align-content: start; justify-items: end; text-align: end; background: linear-gradient(152deg, #fff1f7 0 62%, #c76593 62%); }
.template-card[data-template-theme="traditional"] .template-art { align-content: center; box-shadow: inset 0 0 0 1px #a66f3e, inset 0 0 0 12px #fbf1df, inset 0 0 0 13px #a66f3e; background: repeating-linear-gradient(45deg, rgba(166,111,62,.08) 0 1px, transparent 1px 18px), #fbf1df; }
.template-card[data-template-theme="lavender"] .template-art { align-content: end; background: linear-gradient(112deg, rgba(155,122,184,.34), transparent 42%), #f3eafd; }
.template-card[data-template-theme="ivory-lux"] .template-art { align-content: center; background: #fffdf8; }
.template-card[data-template-theme="ivory-lux"] .template-art::before { inset: 50% 20px auto; border: 0; border-top: 1px solid #b8835b; }
.template-card[data-template-theme="envelope"] .template-art { align-content: center; background: linear-gradient(34deg, #e2c8bb 0 49%, transparent 50%), linear-gradient(-34deg, #f1ddd4 0 49%, transparent 50%), #fff5f1; }

.collection-note {
  border-top: 1px solid var(--line);
}

.collection-note > p {
  color: var(--plum);
}

.collection-note h2 {
  max-width: 1050px;
  margin-bottom: 38px;
}

/* Creator */
.creator-hero {
  align-items: end;
}

.creator-hero > p {
  align-self: end;
  margin: 0 0 18px;
}

.creator-step-nav {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 230, 0.96);
  backdrop-filter: blur(12px);
}

.creator-step-nav a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding-inline: 18px;
  border-inline-start: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
}

.creator-step-nav a:first-child {
  border-inline-start: 0;
}

.creator-step-nav span {
  color: var(--gold);
  font-family: var(--font-latin-display);
}

.creator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: start;
  padding-block: 54px 120px;
}

.creator-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.creator-step {
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 52px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.creator-step:first-child {
  padding-top: 0;
  border-top: 0;
}

.creator-step legend {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 2px 12px;
  width: 100%;
  margin-bottom: 22px;
}

.creator-step legend > span {
  grid-row: 1 / span 2;
  color: var(--gold);
  font-family: var(--font-latin-display);
  font-size: 1.35rem;
}

.creator-step legend b {
  font-family: var(--font-display);
  font-size: 2rem;
}

.creator-step legend small {
  color: var(--muted);
}

.creator-template-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.creator-template-choice {
  display: grid;
  min-height: 116px;
  justify-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: start;
}

.creator-template-choice.active {
  border-color: var(--ink);
  background: #fffdf8;
  box-shadow: inset 0 -3px var(--template-accent, var(--gold));
}

.creator-template-choice span {
  color: var(--gold);
  font-family: var(--font-latin-display);
}

.creator-template-choice b {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.creator-template-choice small {
  color: var(--muted);
}

.creator-form .form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 20px 14px;
}

.creator-form label > span,
.attendance-choice legend {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.creator-form input,
.creator-form select,
.creator-form textarea,
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  border: 0;
  border-bottom: 1px solid rgba(33, 31, 28, 0.34);
  border-radius: 0;
  background: rgba(255, 253, 248, 0.56);
}

.creator-form input:focus,
.creator-form select:focus,
.creator-form textarea:focus,
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-bottom-color: var(--gold);
  box-shadow: 0 2px 0 var(--gold);
}

.asset-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.asset-drop {
  display: grid;
  min-height: 190px;
  align-content: center;
  justify-items: center;
  padding: 24px;
  border: 1px dashed rgba(33, 31, 28, 0.4);
  background: rgba(255, 253, 248, 0.42);
  cursor: pointer;
  text-align: center;
}

.asset-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.asset-drop b {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.asset-drop small {
  color: var(--muted);
}

.owned-photo-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.owned-photo-preview figure {
  margin: 0;
}

.owned-photo-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.owned-photo-preview figcaption {
  padding-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-picker {
  grid-template-columns: minmax(220px, 0.55fr) 1fr;
  gap: 30px;
  padding-top: 30px;
}

.music-picker > div > p:last-child {
  color: var(--muted);
}

.music-option {
  grid-template-columns: 1fr auto;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.music-option.active {
  border-bottom-color: var(--ink);
  background: rgba(255, 253, 248, 0.76);
}

.creator-final-actions {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.creator-live-panel {
  position: sticky;
  top: 164px;
  padding: 26px;
  border: 1px solid var(--line);
  background: #e2d8c8;
}

.creator-live-card {
  position: relative;
  display: grid;
  min-height: 410px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 26px;
  background: var(--template-bg, #fff7f4);
  color: var(--template-ink, #3f2430);
  overflow: hidden;
  text-align: center;
}

.creator-live-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid var(--template-accent, #c08a6a);
  opacity: 0.5;
}

.creator-live-card > * {
  position: relative;
  z-index: 1;
}

.creator-live-card strong {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
}

.creator-live-card i {
  width: 54px;
  height: 1px;
  background: var(--template-accent, #c08a6a);
}

.creator-summary {
  margin: 20px 0 0;
}

.creator-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 12px;
  border-top: 1px solid rgba(33, 31, 28, 0.2);
  font-size: 0.8rem;
}

.creator-summary dt {
  color: var(--muted);
}

.creator-summary dd {
  margin: 0;
  font-weight: 700;
}

.creator-panel-note {
  color: var(--muted);
  font-size: 0.74rem;
}

/* Guest invitation. The existing envelope rules above remain untouched. */
.guest-invitation {
  --invite-bg: var(--template-bg, #fff7f4);
  --invite-ink: var(--template-ink, #3f2430);
  --invite-accent: var(--template-accent, #c08a6a);
  background: var(--invite-bg);
  color: var(--invite-ink);
}

.guest-invitation .signature-invite {
  background: var(--invite-bg);
}

.guest-invitation .invite-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.22fr);
  min-height: 100svh;
  padding: clamp(54px, 8vw, 110px) max(24px, calc((100vw - 1180px) / 2));
  background: var(--invite-bg);
  color: var(--invite-ink);
  overflow: hidden;
  text-align: start;
}

.guest-invitation .invite-hero::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid color-mix(in srgb, var(--invite-accent), transparent 48%);
}

.guest-invitation .invite-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: start;
  width: min(880px, 100%);
  padding: clamp(28px, 6vw, 76px);
  background: transparent;
  box-shadow: none;
  text-align: start;
}

.guest-invitation .invite-hero h1,
.guest-invitation .invite-hero p,
.guest-invitation .invite-hero .eyebrow {
  color: var(--invite-ink);
}

.guest-invitation .invite-hero h1 {
  max-width: 880px;
  margin-block: 20px;
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9.4rem);
  font-weight: 400;
  line-height: 0.96;
  text-shadow: none;
}

.invite-bismillah,
.event-kicker {
  margin: 0;
}

.invite-bismillah {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.event-kicker {
  color: var(--invite-accent) !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-intro {
  max-width: 600px;
  font-size: 1.05rem;
}

.guest-invitation .hero-date {
  justify-content: flex-start;
  color: var(--invite-ink);
}

.hero-signature {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 34px;
  border-inline-start: 1px solid color-mix(in srgb, var(--invite-accent), transparent 40%);
  writing-mode: vertical-rl;
}

.hero-signature span {
  color: var(--invite-accent);
  font-family: var(--font-latin-display);
  font-size: 2.2rem;
}

.hero-signature small {
  letter-spacing: 0.12em;
}

.hero-ambient,
.hero-ambient i {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-ambient i {
  opacity: 0.16;
  will-change: transform, opacity;
}

.hero-ambient i:nth-child(1) { background: radial-gradient(circle at 20% 20%, var(--invite-accent), transparent 34%); }
.hero-ambient i:nth-child(2) { background: radial-gradient(circle at 80% 72%, var(--invite-accent), transparent 26%); }
.hero-ambient i:nth-child(3) { background: linear-gradient(115deg, transparent 40%, color-mix(in srgb, var(--invite-accent), transparent 78%) 50%, transparent 60%); }

.guest-invitation .invite-section {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  padding-block: clamp(72px, 10vw, 132px);
}

.section-number {
  direction: ltr;
  margin: 0;
  color: var(--invite-accent);
  font-family: var(--font-latin-display);
  font-size: 1.3rem;
}

.invitation-wording,
.story-section {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(30px, 7vw, 96px);
}

.invitation-wording h2,
.story-section h2,
.venue-copy h2,
.rsvp-intro h2,
.wishes-section h2,
.invite-share-section h2 {
  max-width: 820px;
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  font-weight: 400;
}

.invitation-wording > div > p:last-child,
.story-section > div > p:last-child {
  max-width: 720px;
  color: color-mix(in srgb, var(--invite-ink), transparent 34%);
}

.family-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.family-line i {
  width: 34px;
  height: 1px;
  background: var(--invite-accent);
}

.guest-invitation .countdown-section {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1120px) / 2));
  background: var(--invite-ink);
  color: var(--invite-bg);
}

.guest-invitation .countdown-section h2,
.guest-invitation .countdown-section .eyebrow {
  color: var(--invite-bg);
}

.guest-invitation .countdown-section .section-heading {
  margin-inline: 0;
  text-align: start;
}

.guest-invitation .countdown {
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  gap: 0;
}

.guest-invitation .countdown span {
  min-height: 154px;
  padding: 28px;
  border: 0;
  border-inline-start: 1px solid color-mix(in srgb, var(--invite-bg), transparent 70%);
  border-radius: 0;
  background: transparent;
}

.guest-invitation .countdown strong {
  color: var(--invite-bg);
  font-family: var(--font-latin-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 500;
}

.schedule-section .section-heading {
  margin-inline: 0;
  text-align: start;
}

.schedule-timeline {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.schedule-timeline li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding-block: 18px;
  border-top: 1px solid color-mix(in srgb, var(--invite-ink), transparent 78%);
}

.schedule-timeline span {
  color: var(--invite-accent);
  font-family: var(--font-latin-display);
}

.schedule-timeline p {
  margin: 0;
}

.invite-details-section {
  display: grid;
  grid-template-columns: minmax(220px, .45fr) 1fr;
  gap: clamp(34px, 8vw, 100px);
}

.details-title h2 {
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.guest-invitation .invite-details {
  gap: 0;
}

.guest-invitation .invite-details article {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--invite-ink), transparent 72%);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.guest-invitation .invite-details strong {
  color: var(--invite-ink);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
}

.dress-code {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid color-mix(in srgb, var(--invite-ink), transparent 72%);
}

.dress-code span {
  color: color-mix(in srgb, var(--invite-ink), transparent 46%);
}

.venue-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  background: color-mix(in srgb, var(--invite-accent), var(--invite-bg) 78%);
}

.venue-photo {
  margin: 0;
  min-height: 560px;
}

.venue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(46px, 9vw, 120px);
}

.venue-copy > p:not(.eyebrow) {
  max-width: 560px;
}

.invite-action,
.invite-action-secondary {
  border: 1px solid var(--invite-ink);
  border-radius: 0;
  background: var(--invite-ink);
  color: var(--invite-bg);
}

.invite-action-secondary {
  background: transparent;
  color: var(--invite-ink);
}

.guest-invitation .rsvp-section {
  display: grid;
  grid-template-columns: minmax(240px, .55fr) 1fr;
  gap: clamp(42px, 9vw, 120px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.guest-invitation .rsvp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.attendance-choice {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.attendance-choice legend {
  margin-bottom: 8px;
}

.attendance-choice label {
  position: relative;
}

.attendance-choice input {
  position: absolute;
  opacity: 0;
}

.attendance-choice span {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--invite-ink), transparent 65%);
  color: var(--invite-ink);
  cursor: pointer;
}

.attendance-choice input:checked + span {
  background: var(--invite-ink);
  color: var(--invite-bg);
}

.wishes-section,
.invite-share-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(42px, 8vw, 100px);
  border-top: 1px solid color-mix(in srgb, var(--invite-ink), transparent 76%);
}

.wishes-wall {
  align-self: end;
  padding: 28px 0;
  border-block: 1px solid color-mix(in srgb, var(--invite-ink), transparent 72%);
  color: color-mix(in srgb, var(--invite-ink), transparent 46%);
}

.wishes-wall blockquote {
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid color-mix(in srgb, var(--invite-ink), transparent 76%);
}

.wishes-wall blockquote:first-child {
  border-top: 0;
}

.wishes-wall blockquote p {
  margin: 0;
  color: var(--invite-ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.wishes-wall cite {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-style: normal;
}

.invite-share-section .share-actions {
  align-self: end;
  justify-content: flex-end;
}

.invitation-footer {
  display: grid;
  min-height: 360px;
  place-content: center;
  padding: 44px 20px;
  background: var(--invite-ink);
  color: var(--invite-bg);
  text-align: center;
}

.invitation-footer strong {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 400;
}

.invitation-footer p {
  color: color-mix(in srgb, var(--invite-bg), transparent 28%);
}

/* Seventeen invitation directions */
.guest-invitation[data-template-theme="rose"] .invite-hero { background: radial-gradient(circle at 78% 20%, rgba(192,138,106,.28), transparent 31%), #fff7f4; }
.guest-invitation[data-template-theme="pearl"] .invite-hero { grid-template-columns: 1fr 1fr; background: linear-gradient(90deg, #f8f3ea 0 54%, #d7cab4 54%); }
.guest-invitation[data-template-theme="pearl"] .hero-signature { border: 0; background: #2f2a22; color: #f8f3ea; writing-mode: horizontal-tb; padding: 40px; }
.guest-invitation[data-template-theme="blush"] .invite-hero-content { justify-items: center; margin: auto; border: 1px solid #d28a9c; border-radius: 50% 50% 4px 4px; text-align: center; }
.guest-invitation[data-template-theme="blush"] .hero-date { justify-content: center; }
.guest-invitation[data-template-theme="midnight"] .invite-hero { align-items: end; background: radial-gradient(circle at 50% 18%, rgba(210,172,104,.26), transparent 3%, transparent 22%), #162523; }
.guest-invitation[data-template-theme="midnight"] .invite-hero h1,
.guest-invitation[data-template-theme="midnight"] .invite-hero p,
.guest-invitation[data-template-theme="midnight"] .hero-date { color: #f9efe3; }
.guest-invitation[data-template-theme="garden"] .invite-hero { border-inline: clamp(18px, 6vw, 80px) solid #d6e0d1; background: repeating-linear-gradient(90deg, rgba(35,61,52,.05) 0 1px, transparent 1px 54px), #f3f8f1; }
.guest-invitation[data-template-theme="garden"] .invite-hero-content { justify-items: center; margin: auto; text-align: center; }
.guest-invitation[data-template-theme="garden"] .hero-date { justify-content: center; }
.guest-invitation[data-template-theme="ivory"] .invite-hero { grid-template-columns: 1.25fr .75fr; background: linear-gradient(118deg, #fffaf0 0 66%, #b96f5d 66%); }
.guest-invitation[data-template-theme="orchid"] .invite-hero { box-shadow: inset 0 0 0 18px #6e294d, inset 0 0 0 20px #d8a8bb; background: #fff6fb; }
.guest-invitation[data-template-theme="orchid"] .invite-hero-content { border-inline-start: 6px double #b76b8a; }
.guest-invitation[data-template-theme="sage"] .invite-hero { grid-template-columns: .45fr 1fr; background: linear-gradient(160deg, #dce8dc 0 46%, #f5fbf6 46%); }
.guest-invitation[data-template-theme="sage"] .invite-hero-content { grid-column: 2; }
.guest-invitation[data-template-theme="sage"] .hero-signature { grid-column: 1; grid-row: 1; border: 0; border-inline-end: 1px solid #9d7a58; }
.guest-invitation[data-template-theme="burgundy"] .invite-hero { place-items: center; background: linear-gradient(#4a1725 0 27%, #fff4ef 27% 73%, #4a1725 73%); }
.guest-invitation[data-template-theme="burgundy"] .invite-hero-content { justify-items: center; text-align: center; }
.guest-invitation[data-template-theme="burgundy"] .hero-date { justify-content: center; }
.guest-invitation[data-template-theme="champagne"] .invite-hero-content { border: 1px solid #c69a5c; border-radius: 280px 280px 0 0; }
.guest-invitation[data-template-theme="henna"] .invite-hero { background: radial-gradient(circle at 50% 18%, #d08a3d 0 2%, transparent 3% 14%, rgba(208,138,61,.24) 15% 16%, transparent 17%), #211410; }
.guest-invitation[data-template-theme="henna"] .invite-hero h1,
.guest-invitation[data-template-theme="henna"] .invite-hero p,
.guest-invitation[data-template-theme="henna"] .hero-date { color: #fff0dc; }
.guest-invitation[data-template-theme="majlis"] .invite-hero { grid-template-columns: 1fr 250px; border-inline-start: 52px solid #18332e; background: repeating-linear-gradient(0deg, transparent 0 71px, rgba(24,51,46,.08) 72px), #f2eadc; }
.guest-invitation[data-template-theme="majlis"] .invite-hero-content { padding-inline-start: 0; }
.guest-invitation[data-template-theme="ladies"] .invite-hero { background: linear-gradient(150deg, #fff1f7 0 64%, #c76593 64%); }
.guest-invitation[data-template-theme="ladies"] .invite-hero-content { align-content: start; padding-top: 16vh; }
.guest-invitation[data-template-theme="traditional"] .invite-hero { box-shadow: inset 0 0 0 10px #fbf1df, inset 0 0 0 11px #a66f3e, inset 0 0 0 24px #fbf1df, inset 0 0 0 25px #a66f3e; background: repeating-linear-gradient(45deg, rgba(166,111,62,.07) 0 1px, transparent 1px 20px), #fbf1df; }
.guest-invitation[data-template-theme="traditional"] .invite-hero-content { justify-items: center; margin: auto; text-align: center; }
.guest-invitation[data-template-theme="traditional"] .hero-date { justify-content: center; }
.guest-invitation[data-template-theme="lavender"] .invite-hero { align-items: end; background: linear-gradient(112deg, rgba(155,122,184,.36), transparent 45%), #f8f2ff; }
.guest-invitation[data-template-theme="ivory-lux"] .invite-hero { grid-template-columns: 1fr; background: #fffdf8; }
.guest-invitation[data-template-theme="ivory-lux"] .invite-hero::before { inset: 50% 8vw auto; border: 0; border-top: 1px solid #b8835b; }
.guest-invitation[data-template-theme="ivory-lux"] .invite-hero-content { justify-items: center; margin: auto; text-align: center; }
.guest-invitation[data-template-theme="ivory-lux"] .hero-date { justify-content: center; }
.guest-invitation[data-template-theme="ivory-lux"] .hero-signature { display: none; }
.guest-invitation[data-template-theme="envelope"] .invite-hero { background: linear-gradient(34deg, rgba(199,131,114,.2) 0 49%, transparent 50%), linear-gradient(-34deg, rgba(199,131,114,.12) 0 49%, transparent 50%), #fff5f1; }

.guest-invitation[data-template-theme="rose"] .invitation-wording { align-items: end; }
.guest-invitation[data-template-theme="rose"] .countdown span { border-bottom: 3px solid #c08a6a; }
.guest-invitation[data-template-theme="rose"] .rsvp-section { border-top: 1px solid #c08a6a; }

.guest-invitation[data-template-theme="pearl"] .countdown-section { background: #2f2a22; }
.guest-invitation[data-template-theme="pearl"] .invite-details article { grid-template-columns: 1fr; min-height: 150px; align-content: center; }
.guest-invitation[data-template-theme="pearl"] .rsvp-section { width: 100%; max-width: none; padding-inline: max(20px, calc((100vw - 1120px) / 2)); background: #ded4c3; }

.guest-invitation[data-template-theme="blush"] .invitation-wording { justify-items: center; text-align: center; }
.guest-invitation[data-template-theme="blush"] .countdown span { border: 1px solid #d28a9c; border-radius: 50%; }
.guest-invitation[data-template-theme="blush"] .invite-details article { justify-items: center; border-bottom: 1px solid #d28a9c; text-align: center; }
.guest-invitation[data-template-theme="blush"] .rsvp-section { border: 1px solid #d28a9c; border-radius: 120px 120px 4px 4px; padding-inline: clamp(24px, 7vw, 80px); }

.guest-invitation[data-template-theme="midnight"] .signature-invite { background: #162523; color: #f9efe3; }
.guest-invitation[data-template-theme="midnight"] .invite-section:not(.countdown-section) { color: #f9efe3; }
.guest-invitation[data-template-theme="midnight"] .invite-section h2,
.guest-invitation[data-template-theme="midnight"] .invite-details strong { color: #f9efe3; }
.guest-invitation[data-template-theme="midnight"] .countdown span { border-inline-start-color: rgba(210,172,104,.5); }
.guest-invitation[data-template-theme="midnight"] .rsvp-section { border-block: 1px solid #d2ac68; }

.guest-invitation[data-template-theme="garden"] .invitation-wording { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.guest-invitation[data-template-theme="garden"] .countdown span { border-radius: 120px 120px 4px 4px; background: rgba(243,248,241,.06); }
.guest-invitation[data-template-theme="garden"] .invite-details article { padding-inline: 22px; border-inline-start: 5px solid #b78760; }
.guest-invitation[data-template-theme="garden"] .rsvp-section { box-shadow: inset 0 0 0 1px #b78760, inset 0 0 0 10px #f3f8f1, inset 0 0 0 11px #b78760; padding-inline: clamp(28px, 7vw, 82px); }

.guest-invitation[data-template-theme="ivory"] .invitation-wording { grid-template-columns: .7fr 1.3fr; }
.guest-invitation[data-template-theme="ivory"] .countdown-section { padding-block: 56px; }
.guest-invitation[data-template-theme="ivory"] .countdown span { min-height: 110px; }
.guest-invitation[data-template-theme="ivory"] .invite-details { grid-template-columns: 1fr; }
.guest-invitation[data-template-theme="ivory"] .rsvp-section { border-inline-end: 14px solid #b96f5d; }

.guest-invitation[data-template-theme="orchid"] .invitation-wording { border-inline-start: 6px double #b76b8a; padding-inline-start: clamp(30px, 7vw, 90px); }
.guest-invitation[data-template-theme="orchid"] .countdown span { border: 1px solid rgba(183,107,138,.58); }
.guest-invitation[data-template-theme="orchid"] .invite-details article { box-shadow: inset 0 -2px #b76b8a; }
.guest-invitation[data-template-theme="orchid"] .rsvp-section { box-shadow: inset 0 0 0 12px #fff6fb, inset 0 0 0 13px #b76b8a; padding-inline: clamp(30px, 7vw, 84px); }

.guest-invitation[data-template-theme="sage"] .invitation-wording { grid-template-columns: 1fr .65fr; }
.guest-invitation[data-template-theme="sage"] .invitation-wording .section-number { order: 2; text-align: left; }
.guest-invitation[data-template-theme="sage"] .countdown span:nth-child(even) { transform: translateY(18px); }
.guest-invitation[data-template-theme="sage"] .invite-details article { grid-template-columns: 1fr 130px; }
.guest-invitation[data-template-theme="sage"] .rsvp-section { border-top: 8px solid #9d7a58; }

.guest-invitation[data-template-theme="burgundy"] .invitation-wording { border-block: 1px solid #bd8f55; }
.guest-invitation[data-template-theme="burgundy"] .countdown-section { background: #4a1725; }
.guest-invitation[data-template-theme="burgundy"] .countdown span { border-inline-start: 0; border-bottom: 1px solid #bd8f55; }
.guest-invitation[data-template-theme="burgundy"] .invite-details article { border-top: 4px double #bd8f55; }
.guest-invitation[data-template-theme="burgundy"] .rsvp-section { width: 100%; max-width: none; padding-inline: max(20px, calc((100vw - 1120px) / 2)); background: #4a1725; color: #fff4ef; }
.guest-invitation[data-template-theme="burgundy"] .rsvp-section h2 { color: #fff4ef; }

.guest-invitation[data-template-theme="champagne"] .invitation-wording { justify-items: center; text-align: center; }
.guest-invitation[data-template-theme="champagne"] .countdown span { border: 1px solid #c69a5c; border-radius: 90px 90px 0 0; }
.guest-invitation[data-template-theme="champagne"] .invite-details article { border: 1px solid rgba(198,154,92,.5); border-radius: 90px 90px 0 0; padding: 28px; }
.guest-invitation[data-template-theme="champagne"] .rsvp-section { border: 1px solid #c69a5c; border-radius: 180px 180px 0 0; padding-inline: clamp(30px, 8vw, 100px); }

.guest-invitation[data-template-theme="henna"] .signature-invite { background: #211410; color: #fff0dc; }
.guest-invitation[data-template-theme="henna"] .invite-section:not(.countdown-section) { color: #fff0dc; }
.guest-invitation[data-template-theme="henna"] .invite-section h2,
.guest-invitation[data-template-theme="henna"] .invite-details strong { color: #fff0dc; }
.guest-invitation[data-template-theme="henna"] .countdown span { border: 1px solid #d08a3d; border-radius: 50% 50% 4px 4px; }
.guest-invitation[data-template-theme="henna"] .rsvp-section { border: 1px solid #d08a3d; padding-inline: clamp(24px, 7vw, 80px); }

.guest-invitation[data-template-theme="majlis"] .invitation-wording { grid-template-columns: 220px 1fr; border-top: 8px solid #18332e; }
.guest-invitation[data-template-theme="majlis"] .countdown span { min-height: 120px; text-align: start; }
.guest-invitation[data-template-theme="majlis"] .invite-details article { grid-template-columns: 190px 1fr; border-bottom: 3px solid #18332e; }
.guest-invitation[data-template-theme="majlis"] .rsvp-section { border-inline-start: 34px solid #18332e; }

.guest-invitation[data-template-theme="ladies"] .invitation-wording { grid-template-columns: .35fr 1fr; transform: translateX(-3vw); }
.guest-invitation[data-template-theme="ladies"] .countdown span:nth-child(odd) { transform: translateY(-12px); }
.guest-invitation[data-template-theme="ladies"] .invite-details article { border-top: 0; border-bottom: 1px solid #c76593; }
.guest-invitation[data-template-theme="ladies"] .rsvp-section { border-inline-end: 9px solid #c76593; background: rgba(255,241,247,.58); padding-inline: clamp(24px, 6vw, 72px); }

.guest-invitation[data-template-theme="traditional"] .invitation-wording { box-shadow: inset 0 0 0 1px #a66f3e, inset 0 0 0 9px #fbf1df, inset 0 0 0 10px #a66f3e; padding-inline: clamp(28px, 7vw, 84px); }
.guest-invitation[data-template-theme="traditional"] .countdown span { border: 5px double rgba(228,196,134,.55); }
.guest-invitation[data-template-theme="traditional"] .invite-details article { border: 5px double rgba(166,111,62,.42); padding: 26px; }
.guest-invitation[data-template-theme="traditional"] .rsvp-section { border: 8px double rgba(166,111,62,.48); padding-inline: clamp(28px, 7vw, 84px); }

.guest-invitation[data-template-theme="lavender"] .invitation-wording { grid-template-columns: 1fr; margin-inline-start: auto; width: min(850px, calc(100% - 40px)); }
.guest-invitation[data-template-theme="lavender"] .countdown span { border: 1px dashed #9b7ab8; }
.guest-invitation[data-template-theme="lavender"] .invite-details article { border-top-style: dashed; }
.guest-invitation[data-template-theme="lavender"] .rsvp-section { border-top: 1px dashed #9b7ab8; border-bottom: 1px dashed #9b7ab8; }

.guest-invitation[data-template-theme="ivory-lux"] .invitation-wording { grid-template-columns: 1fr; max-width: 820px; text-align: center; }
.guest-invitation[data-template-theme="ivory-lux"] .countdown span { min-height: 100px; border: 0; border-top: 1px solid #2f2923; }
.guest-invitation[data-template-theme="ivory-lux"] .invite-details article { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.guest-invitation[data-template-theme="ivory-lux"] .rsvp-section { border-top: 1px solid #2f2923; }

.guest-invitation[data-template-theme="envelope"] .invitation-wording { background: #fffaf6; box-shadow: 14px 18px 0 rgba(199,131,114,.15); padding-inline: clamp(28px, 7vw, 84px); }
.guest-invitation[data-template-theme="envelope"] .countdown span { border: 1px solid #c78372; background: rgba(255,245,241,.08); }
.guest-invitation[data-template-theme="envelope"] .invite-details article { background: rgba(255,250,246,.72); padding: 24px; box-shadow: 8px 10px 0 rgba(199,131,114,.1); }
.guest-invitation[data-template-theme="envelope"] .rsvp-section { background: #fffaf6; box-shadow: 18px 22px 0 rgba(199,131,114,.14); padding-inline: clamp(28px, 7vw, 84px); }

.guest-invitation[data-template-composition="editorial-split"] .invitation-wording,
.guest-invitation[data-template-composition="modern-ledger"] .invitation-wording,
.guest-invitation[data-template-composition="majlis-ledger"] .invitation-wording { grid-template-columns: .42fr 1fr; border-top: 1px solid currentColor; }
.guest-invitation[data-template-composition="landscape"] .invite-details-section,
.guest-invitation[data-template-composition="royal-banner"] .invite-details-section { grid-template-columns: 1fr; }
.guest-invitation[data-template-composition="landscape"] .dress-code,
.guest-invitation[data-template-composition="royal-banner"] .dress-code { grid-column: 1; }
.guest-invitation[data-template-composition="arabesque"] .invite-details article { border: 1px solid color-mix(in srgb, var(--invite-accent), transparent 45%); padding: 24px; }
.guest-invitation[data-template-composition="minimal-type"] .countdown-section { background: var(--invite-bg); color: var(--invite-ink); border-block: 1px solid var(--invite-ink); }
.guest-invitation[data-template-composition="minimal-type"] .countdown-section h2,
.guest-invitation[data-template-composition="minimal-type"] .countdown-section .eyebrow,
.guest-invitation[data-template-composition="minimal-type"] .countdown strong { color: var(--invite-ink); }

/* Motion language: distinct directions and timing, transform/opacity only. */
.guest-invitation[data-template-motion="drift-up"] .hero-ambient i { animation: ambientUp 14s ease-in-out infinite alternate; }
.guest-invitation[data-template-motion="pan-left"] .hero-ambient i { animation: ambientLeft 18s linear infinite alternate; }
.guest-invitation[data-template-motion="soft-pulse"] .hero-ambient i { animation: ambientPulse 11s ease-in-out infinite; }
.guest-invitation[data-template-motion="night-shift"] .hero-ambient i { animation: ambientNight 22s linear infinite; }
.guest-invitation[data-template-motion="pan-down"] .hero-ambient i { animation: ambientDown 17s ease-in-out infinite alternate; }
.guest-invitation[data-template-motion="slide-across"] .hero-ambient i { animation: ambientAcross 13s cubic-bezier(.4,0,.2,1) infinite alternate; }
.guest-invitation[data-template-motion="deep-breathe"] .hero-ambient i { animation: ambientBreathe 16s ease-in-out infinite; }
.guest-invitation[data-template-motion="pan-right"] .hero-ambient i { animation: ambientRight 19s linear infinite alternate; }
.guest-invitation[data-template-motion="curtain-rise"] .hero-ambient i { animation: ambientCurtain 15s ease-in-out infinite alternate; }
.guest-invitation[data-template-motion="light-sweep"] .hero-ambient i { animation: ambientSweep 12s linear infinite; }
.guest-invitation[data-template-motion="lantern-sway"] .hero-ambient i { animation: ambientSway 8s ease-in-out infinite alternate; transform-origin: 50% 0; }
.guest-invitation[data-template-motion="shadow-shift"] .hero-ambient i { animation: ambientShadow 20s ease-in-out infinite alternate; }
.guest-invitation[data-template-motion="silk-drift"] .hero-ambient i { animation: ambientSilk 17s ease-in-out infinite alternate; }
.guest-invitation[data-template-motion="pattern-glide"] .hero-ambient i { animation: ambientPattern 24s linear infinite; }
.guest-invitation[data-template-motion="veil-shift"] .hero-ambient i { animation: ambientVeil 15s ease-in-out infinite alternate; }
.guest-invitation[data-template-motion="type-rise"] .invite-hero-content { animation: typeRise 1.2s cubic-bezier(.16,.8,.2,1) both; }
.guest-invitation[data-template-motion="letter-forward"] .invite-hero-content { animation: letterForward 1.4s cubic-bezier(.16,.8,.2,1) both; }

@keyframes ambientUp { to { transform: translate3d(0,-5%,0) scale(1.06); opacity: .22; } }
@keyframes ambientLeft { to { transform: translate3d(-8%,0,0) scale(1.05); opacity: .24; } }
@keyframes ambientPulse { 50% { transform: scale(1.1); opacity: .25; } }
@keyframes ambientNight { 50% { transform: translate3d(2%,-3%,0); opacity: .3; } }
@keyframes ambientDown { to { transform: translate3d(0,6%,0); opacity: .22; } }
@keyframes ambientAcross { to { transform: translate3d(10%,0,0) scaleX(1.08); opacity: .2; } }
@keyframes ambientBreathe { 50% { transform: scale(1.13); opacity: .24; } }
@keyframes ambientRight { to { transform: translate3d(8%,0,0) scale(1.04); opacity: .2; } }
@keyframes ambientCurtain { to { transform: translate3d(0,-8%,0) scaleY(1.08); opacity: .22; } }
@keyframes ambientSweep { to { transform: translate3d(18%,0,0); opacity: .2; } }
@keyframes ambientSway { to { transform: rotate(1.8deg) translate3d(1%,1%,0); opacity: .28; } }
@keyframes ambientShadow { to { transform: translate3d(-4%,3%,0) scale(1.08); opacity: .2; } }
@keyframes ambientSilk { to { transform: skewX(-2deg) translate3d(4%,-2%,0); opacity: .23; } }
@keyframes ambientPattern { to { transform: translate3d(6%,6%,0); opacity: .21; } }
@keyframes ambientVeil { to { transform: translate3d(-3%,-5%,0) scale(1.08); opacity: .18; } }
@keyframes typeRise { from { opacity: 0; transform: translateY(24px); } }
@keyframes letterForward { from { opacity: 0; transform: translateY(50px) scale(.94); } }

/* Prevent the generated decorative image set from appearing in the rebuilt product pages. */
.sales-page .page-hero::after,
.collection-page .page-hero::after,
.creator-page .page-hero::after,
.sales-page .template-flower,
.collection-page .template-flower,
.creator-page .template-flower {
  background-image: none !important;
}

/* Reference landing page rebuilt with the Invitelux palette and live product data. */
.reference-home {
  --reference-page: #fbf8f5;
  --reference-surface: #ffffff;
  --reference-soft: #f1ebe3;
  --reference-ink: #211f1c;
  --reference-muted: #6d665f;
  --reference-primary: #7d3147;
  --reference-primary-dark: #5f2135;
  --reference-gold: #b9824b;
  --reference-line: #e4d9ce;
  min-width: 320px;
  overflow-x: clip;
  background: var(--reference-page);
  color: var(--reference-ink);
  font-family: var(--font-body);
  line-height: 1.7;
}

.reference-home main {
  overflow: clip;
}

.reference-container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.reference-header {
  position: sticky;
  z-index: 100;
  top: 0;
  padding-block: 20px;
  border-bottom: 1px solid var(--reference-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(241, 235, 227, 0.97));
  backdrop-filter: blur(12px);
}

.reference-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.reference-logo {
  display: inline-block;
  flex: 0 0 auto;
  color: var(--reference-primary);
  font-family: var(--font-latin-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.reference-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
}

.reference-nav a {
  position: relative;
  color: #514a43;
  font-size: 0.92rem;
  font-weight: 600;
}

.reference-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -7px;
  height: 1px;
  background: var(--reference-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.reference-nav a:hover,
.reference-nav a:focus-visible {
  color: var(--reference-primary);
}

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

.reference-header-actions,
.reference-final-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.reference-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.reference-btn-primary {
  border-color: var(--reference-primary);
  background: var(--reference-primary);
  color: #fff;
}

.reference-btn-primary:hover {
  border-color: var(--reference-primary-dark);
  background: var(--reference-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.reference-btn-secondary {
  border-color: var(--reference-primary);
  background: transparent;
  color: var(--reference-primary);
}

.reference-btn-secondary:hover {
  background: var(--reference-primary);
  color: #fff;
  transform: translateY(-2px);
}

.reference-btn:focus-visible,
.reference-text-link:focus-visible,
.reference-nav a:focus-visible,
.home-envelope-trigger:focus-visible,
.reference-faq-list summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--reference-gold), white 30%);
  outline-offset: 4px;
}

.reference-hero {
  padding-block: clamp(72px, 9vw, 112px) clamp(64px, 8vw, 96px);
  background: linear-gradient(180deg, var(--reference-page), var(--reference-soft));
  text-align: center;
}

.reference-eyebrow {
  margin: 0 0 14px;
  color: var(--reference-primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.reference-hero h1 {
  margin: 0;
  color: #31271f;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.reference-hero h1 strong {
  color: var(--reference-primary);
  font-weight: 700;
}

.reference-hero-lead {
  max-width: 760px;
  margin: 20px auto 36px;
  color: var(--reference-muted);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
}

.reference-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.reference-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(125, 49, 71, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 18px rgba(46, 37, 30, 0.05);
  color: #514a43;
  font-size: 0.82rem;
}

.reference-badges span {
  color: var(--reference-primary);
  font-weight: 700;
}

.reference-price-block {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.reference-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--reference-primary);
}

.reference-price b {
  direction: ltr;
  font-family: var(--font-latin-display);
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
}

.reference-price small,
.reference-assurance {
  color: #80766d;
  font-size: 0.82rem;
}

.reference-hero-cta {
  min-height: 54px;
  padding-inline: 46px;
  font-size: 1.05rem;
}

.reference-assurance {
  margin: -5px 0 0;
}

.reference-templates,
.reference-features,
.reference-envelope-demo,
.reference-faq,
.reference-final-cta {
  scroll-margin-top: 96px;
  padding-block: clamp(64px, 8vw, 96px);
}

.reference-templates h2,
.reference-features h2,
.reference-envelope-demo h2,
.reference-faq h2,
.reference-final-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.reference-templates h2 span,
.reference-features h2 span,
.reference-envelope-demo h2 span,
.reference-faq h2 span {
  color: var(--reference-gold);
  font-family: var(--font-body);
  font-size: 0.78em;
}

.reference-subtitle,
.reference-envelope-intro {
  margin: 10px auto 40px;
  color: #81776e;
  text-align: center;
}

.reference-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.reference-home .reference-template-grid .template-card {
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--reference-surface);
  box-shadow: 0 6px 24px rgba(47, 37, 29, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.reference-home .reference-template-grid .template-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 38px rgba(125, 49, 71, 0.12);
}

.reference-home .template-card-reference .template-card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.reference-home .template-card-reference .template-art {
  display: flex;
  width: 100%;
  min-height: 200px;
  height: 200px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  box-shadow: none;
}

.reference-home .template-card-reference .template-art strong {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.reference-home .template-card-reference .template-index {
  inset: 14px auto auto 14px;
}

.template-reference-info {
  padding: 20px;
}

.reference-home .template-reference-info .template-meta {
  margin: 0 0 8px;
}

.reference-home .template-reference-info h3 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.reference-home .template-reference-info p {
  min-height: 0;
  margin: 0;
  color: #81776e;
  font-size: 0.84rem;
  line-height: 1.7;
}

.reference-home .template-reference-info .badge {
  border-radius: 999px;
  background: color-mix(in srgb, var(--template-accent), white 76%);
  color: var(--template-ink);
}

.reference-home .template-reference-info .price {
  color: var(--reference-primary);
  font-size: 0.78rem;
}

.reference-section-action {
  margin-top: 42px;
  text-align: center;
}

.reference-features {
  background: var(--reference-surface);
}

.reference-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.reference-feature-item {
  padding: 30px 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--reference-page);
  text-align: center;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.reference-feature-item:hover {
  border-color: var(--reference-line);
  background: var(--reference-soft);
  transform: translateY(-3px);
}

.reference-feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 0 auto 14px;
  border: 1px solid color-mix(in srgb, var(--reference-gold), transparent 45%);
  border-radius: 50%;
  color: var(--reference-primary);
  font-family: var(--font-latin-display);
  font-size: 1.8rem;
}

.reference-feature-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.reference-feature-item p {
  margin: 0;
  color: #81776e;
  font-size: 0.86rem;
}

.reference-envelope-demo {
  background: linear-gradient(180deg, var(--reference-page), var(--reference-soft));
  text-align: center;
}

.home-envelope-trigger {
  display: block;
  width: 380px;
  max-width: 100%;
  margin: 20px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  user-select: none;
}

.home-envelope-scene {
  position: relative;
  display: block;
  width: 100%;
  height: 370px;
  perspective: 1300px;
}

.home-envelope-shell {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 270px;
  border-radius: 18px 18px 8px 8px;
  filter: drop-shadow(0 16px 22px rgba(46, 34, 26, 0.14));
  transform-style: preserve-3d;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-envelope-trigger:hover .home-envelope-shell {
  transform: scale(1.015);
}

.home-envelope-trigger.is-open .home-envelope-shell {
  transform: scale(1.035);
}

.home-envelope-back {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(83, 54, 38, 0.14);
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(150deg, #eadfd5, #d1c0b1);
}

.home-envelope-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(35deg, transparent 49.4%, rgba(125, 49, 71, 0.08) 50%, transparent 50.6%),
    linear-gradient(-35deg, transparent 49.4%, rgba(125, 49, 71, 0.08) 50%, transparent 50.6%);
  opacity: 0.72;
}

.home-envelope-flap {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 58%;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(160deg, #f3e9df, #d9c9bb);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: rotateX(0deg);
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 820ms cubic-bezier(0.65, 0, 0.35, 1) 360ms, filter 820ms ease 360ms;
}

.home-envelope-trigger.is-open .home-envelope-flap {
  z-index: 1;
  filter: brightness(0.94);
  transform: rotateX(178deg);
  transition-delay: 0ms;
}

.home-invitation-card {
  position: absolute;
  z-index: 3;
  top: 18%;
  left: 7%;
  display: flex;
  width: 86%;
  height: 74%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  border: 1px solid #dbcab9;
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 252, 247, 0.94), rgba(247, 238, 230, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(125, 49, 71, 0.025) 9px 10px);
  box-shadow: 0 14px 34px rgba(50, 35, 26, 0.16);
  color: #3b2b23;
  opacity: 0;
  transform: translateY(22%) scale(0.94);
  transition: transform 920ms cubic-bezier(0.16, 1, 0.3, 1), opacity 360ms ease;
}

.home-envelope-trigger.is-open .home-invitation-card {
  opacity: 1;
  transform: translateY(-56%) scale(1);
  transition-delay: 420ms, 390ms;
}

.home-invitation-card::before,
.home-invitation-card::after {
  content: "";
  display: none;
  position: absolute;
  color: var(--reference-gold);
  font-size: 0.75rem;
}

.home-invitation-card::before {
  top: 14px;
  right: 16px;
}

.home-invitation-card::after {
  bottom: 14px;
  left: 16px;
}

.home-invitation-card small {
  color: var(--reference-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.home-invitation-card strong {
  margin-block: 6px 3px;
  color: #37251d;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.home-invitation-card time {
  color: #76675d;
  font-size: 0.78rem;
}

.home-invitation-card i {
  margin-top: 12px;
  color: var(--reference-gold);
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: normal;
}

.home-envelope-side,
.home-envelope-pocket {
  position: absolute;
  z-index: 4;
  bottom: 0;
  display: block;
  pointer-events: none;
}

.home-envelope-side {
  top: 0;
  width: 52%;
}

.home-envelope-side-left {
  left: 0;
  background: linear-gradient(140deg, rgba(246, 237, 228, 0.96), #d6c4b5);
  clip-path: polygon(0 0, 100% 58%, 100% 100%, 0 100%);
}

.home-envelope-side-right {
  right: 0;
  background: linear-gradient(220deg, rgba(241, 231, 222, 0.96), #cfbdad);
  clip-path: polygon(100% 0, 0 58%, 0 100%, 100% 100%);
}

.home-envelope-pocket {
  right: 0;
  left: 0;
  height: 58%;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(155deg, #e8dbcf, #cbb8a8);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35);
}

.home-envelope-outer-copy {
  position: absolute;
  z-index: 5;
  right: 50%;
  bottom: 82px;
  display: grid;
  color: #5b3a2a;
  font-family: var(--font-display);
  font-size: 0.74rem;
  line-height: 1.45;
  opacity: 1;
  transform: translateX(50%);
  transition: opacity 220ms ease, transform 420ms ease;
}

.home-envelope-outer-copy b {
  margin-top: 3px;
  color: #372319;
  font-size: 1.05rem;
}

.home-envelope-trigger.is-open .home-envelope-outer-copy {
  opacity: 0;
  transform: translateX(50%) translateY(8px);
}

.home-envelope-seal {
  position: absolute;
  z-index: 7;
  bottom: 28px;
  left: 50%;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 4px solid #73472e;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #e4c08b, var(--reference-gold) 58%, #73472e);
  box-shadow: 0 7px 18px rgba(67, 42, 27, 0.32), inset 0 -3px 8px rgba(66, 36, 20, 0.2);
  color: #fff5e8;
  transform: translateX(-50%);
  transition: transform 620ms cubic-bezier(0.34, 1.35, 0.64, 1) 760ms, opacity 360ms ease 760ms;
}

.home-envelope-seal::after {
  content: "";
}

.home-envelope-trigger.is-open .home-envelope-seal {
  opacity: 0;
  transform: translateX(-50%) scale(0) rotate(210deg);
  transition-delay: 0ms;
}

.reference-envelope-label {
  margin: 16px 0 4px;
  color: #6f665e;
  font-size: 0.86rem;
}

.reference-text-link {
  display: inline-block;
  margin-top: 12px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--reference-primary);
  font-weight: 700;
}

.reference-faq {
  background: var(--reference-surface);
}

.reference-faq-list {
  max-width: 820px;
  margin: 40px auto 0;
}

.reference-faq-list details {
  border-bottom: 1px solid var(--reference-line);
}

.reference-faq-list details:first-child {
  border-top: 1px solid var(--reference-line);
}

.reference-faq-list summary {
  position: relative;
  padding: 22px 0 22px 44px;
  color: var(--reference-ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  list-style: none;
}

.reference-faq-list summary::after {
  content: "+";
  position: absolute;
  inset: 50% auto auto 0;
  color: var(--reference-primary);
  font-family: var(--font-body);
  transform: translateY(-50%);
}

.reference-faq-list details[open] summary::after {
  content: "−";
}

.reference-faq-list details p {
  margin: -4px 0 22px;
  color: var(--reference-muted);
}

.reference-final-cta {
  border-top: 1px solid var(--reference-line);
  background: var(--reference-page);
  text-align: center;
}

.reference-final-cta h2 {
  max-width: 760px;
  margin-inline: auto;
}

.reference-final-actions {
  margin-top: 30px;
}

.reference-footer {
  padding-block: 46px;
  background: #24211f;
  color: #d6cbc0;
  text-align: center;
}

.reference-footer .reference-container {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.reference-footer .reference-logo {
  color: #d7ab73;
  font-size: 1.65rem;
}

.reference-footer p {
  margin: 0;
  color: #aaa099;
}

.reference-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

.reference-footer a {
  color: #d7ab73;
}

.reference-footer small {
  color: #7e756f;
}

.home-reveal-stage {
  position: absolute;
  inset: auto 0 0;
  display: block;
  width: 100%;
  height: 370px;
  overflow: hidden;
}

.home-reveal-card {
  position: absolute;
  z-index: 2;
  top: 102px;
  left: 7%;
  display: flex;
  width: 86%;
  height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  border: 1px solid rgba(185, 130, 75, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(246, 239, 231, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(125, 49, 71, 0.02) 12px 13px);
  box-shadow: 0 18px 42px rgba(39, 28, 22, 0.16);
  color: #33261f;
  opacity: 0;
  transform: translateY(78px) scale(0.94);
  transition: transform 1050ms cubic-bezier(0.16, 1, 0.3, 1), opacity 320ms ease;
}

.home-envelope-trigger.is-open .home-reveal-card {
  opacity: 1;
  transform: translateY(-82px) scale(1);
  transition-delay: 260ms, 230ms;
}

.home-reveal-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(125, 49, 71, 0.16);
  pointer-events: none;
}

.home-reveal-card small {
  color: var(--reference-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-reveal-card strong {
  margin-block: 6px 2px;
  color: #34231c;
  font-family: var(--font-display);
  font-size: 2.15rem;
}

.home-reveal-card time {
  color: #776a61;
  font-size: 0.76rem;
}

.home-reveal-card i {
  margin-top: 12px;
  color: var(--reference-gold);
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: normal;
}

.home-reveal-sleeve {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  display: grid;
  width: 100%;
  height: 286px;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  padding: 34px 28px 26px;
  border: 1px solid rgba(185, 130, 75, 0.48);
  background:
    linear-gradient(145deg, rgba(125, 49, 71, 0.98), rgba(69, 28, 43, 0.99)),
    #7d3147;
  box-shadow: 0 18px 46px rgba(54, 24, 35, 0.25);
  color: #fff8ef;
  transform: translateY(0) scale(1);
  transition: transform 950ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms ease, box-shadow 700ms ease;
}

.home-reveal-sleeve::before,
.home-reveal-sleeve::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-reveal-sleeve::before {
  inset: 14px;
  border: 1px solid rgba(255, 238, 210, 0.22);
}

.home-reveal-sleeve::after {
  top: 0;
  left: 50%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d7ad75, transparent);
  transform: translateX(-50%);
}

.home-envelope-trigger.is-open .home-reveal-sleeve {
  filter: saturate(0.88) brightness(0.82);
  box-shadow: 0 10px 24px rgba(54, 24, 35, 0.2);
  transform: translateY(42px) scale(0.975);
}

.home-reveal-brand {
  position: absolute;
  top: 24px;
  left: 28px;
  color: #d9b47f;
  font-family: var(--font-latin-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.home-reveal-kicker {
  margin-bottom: 12px;
  color: #d9b47f;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-reveal-names {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.15;
}

.home-reveal-names i {
  margin-inline: 8px;
  color: #d9b47f;
  font-size: 0.7em;
  font-style: normal;
}

.home-reveal-date {
  margin-top: 10px;
  color: rgba(255, 248, 239, 0.68);
  font-family: var(--font-latin-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.home-reveal-action {
  position: absolute;
  right: 50%;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 248, 239, 0.72);
  font-size: 0.68rem;
  transform: translateX(50%);
}

.home-reveal-action b {
  color: #d9b47f;
  font-size: 1rem;
  animation: homeRevealCue 1.8s ease-in-out infinite;
}

.home-envelope-trigger.is-open .home-reveal-action {
  opacity: 0;
}

@keyframes homeRevealCue {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Full invitation opening using the locally hosted real-media sequence. */
.guest-invitation .invite-intro {
  overflow: hidden;
  padding: 0;
  background: #eee9dd;
  cursor: pointer;
  isolation: isolate;
  touch-action: manipulation;
  transition: opacity 800ms ease, visibility 800ms ease;
}

body.guest-invitation[data-template-family] .invite-intro {
  background: #eee9dd;
}

.guest-invitation .invite-intro::before,
.guest-invitation .invite-intro::after {
  content: none;
}

.invite-intro-poster,
.invite-intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.invite-intro-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.envelope-tone-media {
  --envelope-tone: #f4ede1;
  --envelope-tone-strength: 0.08;
  isolation: isolate;
}

.envelope-tone-media::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background: var(--envelope-tone);
  mix-blend-mode: multiply;
  opacity: var(--envelope-tone-strength);
  pointer-events: none;
}

.invite-intro-poster {
  z-index: 1;
}

.invite-intro-video {
  z-index: 2;
  opacity: 0;
  transition: opacity 260ms ease;
}

.invite-intro.playing .invite-intro-video {
  opacity: 1;
}

.invite-intro.video-error .invite-intro-video {
  display: none;
}

.invite-intro-hint {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: max(42px, calc(env(safe-area-inset-bottom) + 28px));
  left: 0;
  display: grid;
  gap: 4px;
  justify-items: center;
  color: #5d5549;
  text-align: center;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.84);
  animation: inviteIntroHint 1.6s ease-in-out infinite;
  transition: opacity 220ms ease, transform 350ms ease;
}

.invite-intro-hint strong {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 700;
}

.invite-intro-hint span {
  direction: ltr;
  font-family: var(--font-latin-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.invite-intro.playing .invite-intro-hint {
  opacity: 0;
  transform: translateY(8px);
  animation: none;
}

.guest-invitation .invite-intro:focus-visible {
  outline: 3px solid #9b713c;
  outline-offset: -6px;
}

.guest-invitation .invite-intro.hide {
  visibility: hidden;
  opacity: 0;
  transform: none;
  pointer-events: none;
}

@keyframes inviteIntroHint {
  0%,
  100% { transform: translateY(0); opacity: 0.72; }
  50% { transform: translateY(-8px); opacity: 1; }
}

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

  .invite-intro-hint {
    animation: none;
  }
}

/* Real envelope demo and shared paper-tone selector. */
.reference-envelope-demo .reference-container {
  display: grid;
  justify-items: center;
}

.home-envelope-trigger {
  width: min(520px, 100%);
  margin-top: 24px;
}

.home-envelope-scene {
  aspect-ratio: 3 / 2;
  height: auto;
  overflow: hidden;
  border: 1px solid rgba(88, 72, 54, 0.18);
  border-radius: 4px;
  background: #eee8dc;
  box-shadow: 0 28px 66px rgba(48, 38, 27, 0.18);
}

.home-ms-envelope-media,
.home-ms-envelope-media img,
.home-ms-envelope-media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.home-ms-envelope-media {
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  opacity: 1;
  transition: opacity 700ms ease;
}

.home-ms-envelope-media img,
.home-ms-envelope-media video {
  object-fit: cover;
  object-position: center 54%;
}

.home-ms-envelope-media video {
  z-index: 2;
  opacity: 0;
  transition: opacity 240ms ease;
}

.home-envelope-trigger.is-open .home-ms-envelope-media video {
  opacity: 1;
}

.home-envelope-trigger.video-error .home-ms-envelope-media video {
  display: none;
}

.home-ms-invitation {
  position: absolute;
  z-index: 1;
  inset: 7% 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3.2vw, 28px) 24px;
  border: 1px solid rgba(164, 121, 69, 0.44);
  background:
    linear-gradient(rgba(255, 252, 246, 0.96), rgba(244, 235, 223, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(91, 67, 45, 0.025) 12px 13px);
  color: #44362b;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
  box-shadow: 0 18px 38px rgba(54, 40, 27, 0.16);
  transition: opacity 650ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-ms-invitation::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(164, 121, 69, 0.42);
}

.home-ms-invitation small,
.home-ms-invitation time,
.home-ms-invitation i,
.home-ms-invitation strong {
  position: relative;
  z-index: 1;
}

.home-ms-invitation small {
  color: #7d3147;
  font-weight: 700;
}

.home-ms-invitation strong {
  margin-block: 8px 4px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
}

.home-ms-invitation time {
  color: #77695f;
  font-size: 0.82rem;
}

.home-ms-invitation i {
  margin-top: 14px;
  color: #a77945;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: normal;
}

.home-envelope-trigger.is-revealed .home-ms-envelope-media {
  opacity: 0;
}

.home-envelope-trigger.is-revealed .home-ms-invitation {
  z-index: 4;
  opacity: 1;
  transform: scale(1);
}

.home-ms-action {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 30px;
  left: 0;
  color: #5d5549;
  font-size: 0.76rem;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.86);
  transition: opacity 220ms ease, transform 350ms ease;
}

.home-envelope-trigger.is-open .home-ms-action {
  opacity: 0;
  transform: translateY(8px);
}

.envelope-tone-picker {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 22px;
}

.envelope-tone-picker > strong {
  color: #4c433b;
  font-size: 0.84rem;
}

.envelope-tone-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.envelope-tone-option {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(69, 58, 47, 0.18);
  border-radius: 2px;
  background: #fffdf8;
  color: #4b423a;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.envelope-tone-option:hover {
  border-color: rgba(125, 49, 71, 0.48);
  transform: translateY(-1px);
}

.envelope-tone-option.active {
  border-color: #7d3147;
  background: #f7eee9;
}

.envelope-tone-option:focus-visible {
  outline: 3px solid rgba(125, 49, 71, 0.22);
  outline-offset: 2px;
}

.envelope-tone-option > span {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid rgba(60, 50, 40, 0.18);
  border-radius: 50%;
  background: var(--tone-swatch);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.envelope-tone-option b {
  font-size: 0.72rem;
  font-weight: 700;
}

.creator-envelope-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-block: 1px solid var(--line);
  background: #f6f0e7;
}

.creator-envelope-copy h2 {
  margin-block: 4px 6px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.creator-envelope-copy > p:last-of-type {
  margin: 0 0 18px;
  color: var(--muted);
}

.creator-envelope-copy .envelope-tone-options {
  justify-content: flex-start;
}

.creator-envelope-preview {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(72, 58, 43, 0.16);
  border-radius: 2px;
  background: #eee8dc;
  box-shadow: 0 18px 38px rgba(48, 38, 27, 0.16);
}

.creator-envelope-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

@media (max-width: 720px) {
  .home-envelope-trigger {
    width: min(360px, 100%);
  }

  .envelope-tone-options {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-envelope-tone-picker {
    width: min(360px, 100%);
  }

  .creator-envelope-picker {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .creator-envelope-preview {
    width: min(320px, 100%);
    justify-self: center;
  }

  .creator-envelope-copy .envelope-tone-options {
    justify-content: stretch;
  }
}

/* Real licensed media collection */
.template-media {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 20px;
  background: #241f1b;
  color: #fff;
  isolation: isolate;
}

.template-media > img,
.template-media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 380ms ease, transform 900ms cubic-bezier(.2,.72,.2,1);
}

.template-media > video {
  z-index: 1;
  opacity: 0;
}

.template-card.is-video-playing .template-media > video {
  opacity: 1;
}

.template-card:hover .template-media > img,
.template-card:hover .template-media > video {
  transform: scale(1.035);
}

.template-media-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 13, 11, .08) 30%, rgba(16, 13, 11, .82) 100%);
}

.template-media-copy {
  position: absolute;
  z-index: 3;
  inset: auto 22px 22px;
  display: grid;
  gap: 4px;
  color: #fff;
}

.template-media-copy small {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.template-media-copy strong {
  max-width: 90%;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
}

.template-media-copy time {
  color: rgba(255, 255, 255, .82);
  font-size: .76rem;
}

.template-media .template-index {
  z-index: 4;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

.catalog-grid .template-card:nth-child(1),
.catalog-grid .template-card:nth-child(8) {
  grid-column: span 2;
}

.catalog-grid .template-card:nth-child(1) .template-media,
.catalog-grid .template-card:nth-child(8) .template-media {
  aspect-ratio: 8 / 5;
}

.template-card[data-template-theme="midnight"] .template-media-copy,
.template-card[data-template-theme="majlis"] .template-media-copy {
  inset-inline: 28px auto;
  text-align: left;
}

.template-card[data-template-theme="ivory-lux"] .template-media-copy {
  inset-block: 22px auto;
}

.reference-home .template-card-reference .template-media {
  width: 100%;
  height: 220px;
  margin: 0;
  aspect-ratio: auto;
}

.reference-home .template-card-reference .template-media-copy strong {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.reference-home .reference-template-grid .template-card {
  border-radius: 2px;
}

.creator-template-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.creator-template-choice {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  overflow: hidden;
  min-height: 178px;
  align-content: end;
  padding: 14px;
  border: 1px solid transparent;
  background: #1d1916;
  color: #fff;
  text-align: start;
  isolation: isolate;
}

.creator-template-choice::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 26%, rgba(13, 11, 10, .86));
}

.creator-template-choice img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.creator-template-choice:hover img {
  transform: scale(1.04);
}

.creator-template-choice > span {
  grid-row: span 2;
  align-self: end;
  color: rgba(255, 255, 255, .75);
  font-family: var(--font-latin-display);
}

.creator-template-choice b,
.creator-template-choice small {
  position: relative;
  z-index: 1;
}

.creator-template-choice.active {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(125, 49, 71, .2);
}

.creator-template-choice:focus-visible {
  outline: 3px solid rgba(125, 49, 71, .35);
  outline-offset: 3px;
}

.creator-live-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.creator-live-card > img,
.creator-live-card > i {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.creator-live-card > img {
  object-fit: cover;
}

.creator-live-card > i {
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 11, 10, .12), rgba(13, 11, 10, .78));
}

.creator-live-card > span,
.creator-live-card > strong,
.creator-live-card > time,
.creator-live-card > small {
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .46);
}

.invite-hero-media,
.invite-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.invite-hero-media {
  z-index: 0;
  overflow: hidden;
  background: var(--invite-ink);
}

.invite-hero-media img,
.invite-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.invite-hero-media video {
  z-index: 1;
}

.invite-hero-overlay {
  z-index: 1;
  background: linear-gradient(90deg, rgba(15, 12, 10, .78), rgba(15, 12, 10, .35) 56%, rgba(15, 12, 10, .54));
}

.invite-hero-content,
.hero-signature {
  position: relative;
  z-index: 2;
  color: #fff;
}

.guest-invitation .invite-hero .invite-bismillah,
.guest-invitation .invite-hero .event-kicker,
.guest-invitation .invite-hero h1,
.guest-invitation .invite-hero .hero-intro,
.guest-invitation .invite-hero .hero-date,
.guest-invitation .invite-hero .hero-signature span,
.guest-invitation .invite-hero .hero-signature small {
  color: #fff !important;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .42);
}

.guest-invitation .invite-hero .hero-signature {
  border-inline-start-color: rgba(255, 255, 255, .45);
}

.guest-invitation[data-template-theme="pearl"] .invite-hero-media img,
.guest-invitation[data-template-theme="pearl"] .invite-hero-media video,
.guest-invitation[data-template-theme="ivory-lux"] .invite-hero-media img,
.guest-invitation[data-template-theme="ivory-lux"] .invite-hero-media video {
  object-position: center 58%;
}

.guest-invitation[data-template-theme="henna"] .invite-hero-media img,
.guest-invitation[data-template-theme="henna"] .invite-hero-media video,
.guest-invitation[data-template-theme="traditional"] .invite-hero-media img,
.guest-invitation[data-template-theme="traditional"] .invite-hero-media video {
  object-position: center 42%;
}

@media (max-width: 1100px) {
  .catalog-grid,
  .sales-template-grid,
  .creator-template-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .catalog-grid,
  .sales-template-grid,
  .creator-template-options {
    grid-template-columns: 1fr;
  }

  .catalog-grid .template-card:nth-child(1),
  .catalog-grid .template-card:nth-child(8) {
    grid-column: auto;
  }

  .catalog-grid .template-card:nth-child(1) .template-media,
  .catalog-grid .template-card:nth-child(8) .template-media,
  .template-media {
    aspect-ratio: 4 / 5;
  }

  .creator-template-choice {
    min-height: 210px;
  }

  .invite-hero-overlay {
    background: linear-gradient(180deg, rgba(15, 12, 10, .48), rgba(15, 12, 10, .78));
  }
}

@media (prefers-reduced-motion: reduce) {
  .template-media > video,
  .invite-hero-media video {
    display: none;
  }

  .template-media > img,
  .creator-template-choice img {
    transition: none;
  }
}

/* Authoritative final guest overrides. Keep this block last. */
.media-credit {
  display: block;
  max-width: 64ch;
  margin: 16px auto 0;
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: .72rem;
  line-height: 1.6;
}

.media-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.creator-template-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .creator-template-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .creator-template-options {
    grid-template-columns: 1fr;
  }
}

body.guest-invitation .signature-invite .invite-hero::before,
body.guest-invitation .signature-invite .invite-hero-content::before,
body.guest-invitation .signature-invite .invite-hero-content::after,
body.guest-invitation .invite-section::before,
body.guest-invitation .invite-section::after {
  content: none !important;
  display: none !important;
}

body.guest-invitation .signature-invite .invite-hero-content {
  width: min(760px, 100%) !important;
  margin: 0 !important;
  padding: clamp(26px, 5vw, 72px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.guest-invitation .signature-invite .invite-hero-content h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 8vw, 7.2rem) !important;
  line-height: .94;
}

body.guest-invitation .invite-hero-overlay {
  background: linear-gradient(90deg, rgba(14, 11, 10, .76), rgba(14, 11, 10, .18) 68%, rgba(14, 11, 10, .34)) !important;
}

body.guest-invitation .hero-date i {
  width: clamp(22px, 4vw, 48px) !important;
  height: 1px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: currentColor !important;
  opacity: .58;
}

body.guest-invitation .countdown {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  max-width: 980px;
  margin-inline: auto;
  border-block: 1px solid color-mix(in srgb, var(--template-accent) 44%, transparent) !important;
}

body.guest-invitation .countdown span,
body.guest-invitation[data-template-theme] .countdown span {
  min-width: 0 !important;
  aspect-ratio: auto !important;
  padding: clamp(20px, 4vw, 40px) 12px !important;
  border: 0 !important;
  border-inline-start: 1px solid color-mix(in srgb, var(--template-accent) 34%, transparent) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body.guest-invitation .countdown span:first-child {
  border-inline-start: 0 !important;
}

body.guest-invitation .countdown span::before,
body.guest-invitation .countdown span::after {
  content: none !important;
  display: none !important;
}

body.guest-invitation .invite-details article,
body.guest-invitation .invitation-wording,
body.guest-invitation .rsvp-section,
body.guest-invitation .attendance-form,
body.guest-invitation .dress-code,
body.guest-invitation .venue-card,
body.guest-invitation[data-template-theme] .invite-details article,
body.guest-invitation[data-template-theme] .invitation-wording,
body.guest-invitation[data-template-theme] .rsvp-section {
  border-radius: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  transform: none !important;
}

body.guest-invitation .invite-details article,
body.guest-invitation[data-template-theme] .invite-details article {
  border: 0 !important;
  border-block-start: 1px solid color-mix(in srgb, var(--template-accent) 42%, transparent) !important;
  padding: 24px 0 !important;
}

body.guest-invitation .rsvp-section,
body.guest-invitation[data-template-theme] .rsvp-section {
  border: 0 !important;
  border-block: 1px solid color-mix(in srgb, var(--template-accent) 42%, transparent) !important;
  padding-inline: 0 !important;
}

.creator-live-card > strong {
  font-family: var(--invite-display-font, var(--font-display));
}

@media (max-width: 720px) {
  body.guest-invitation .signature-invite .invite-hero-content {
    align-self: end;
    padding: 30px 20px 44px !important;
  }

  body.guest-invitation .invite-hero-overlay {
    background: linear-gradient(180deg, rgba(14, 11, 10, .1), rgba(14, 11, 10, .8)) !important;
  }

  body.guest-invitation .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.guest-invitation .countdown span:nth-child(3),
  body.guest-invitation .countdown span:nth-child(4) {
    border-block-start: 1px solid color-mix(in srgb, var(--template-accent) 34%, transparent) !important;
  }

  body.guest-invitation .countdown span:nth-child(3) {
    border-inline-start: 0 !important;
  }
}
