/* ==========================================================
   R3w Weddings page
   ========================================================== */

/* The cream paper used for every invitation on the page */
.envelope__card,
.rsvp-phone__screen,
.qr-card__paper {
  background: #FBF8F2;
  color: #2B2620;
}

/* The shared .split p rule styles body text; the mock invitations need their own type */
.rsvp-demo p,
.studio p,
.qr-card p { margin: 0; color: inherit; font-size: inherit; }
.rsvp-demo .rsvp-phone__names { font-size: 34px; }
.rsvp-demo .rsvp-phone__date { margin: 4px 0 24px; color: #8C8174; font-size: 12px; }
.rsvp-demo .rsvp-q { font-size: 15px; }
.rsvp-demo .rsvp-q--small { margin-top: 4px; font-size: 13.5px; }
.rsvp-demo .rsvp-thanks { font-size: 14.5px; }
.studio .studio__names { margin: 10px 0 6px; font-size: 48px; }
.studio .studio__date { font-size: 13px; }
.qr-card .qr-card__names { margin: 4px 0 0; color: #2B2620; font-size: 28px; }

/* ---------- Hero: the envelope ---------- */

.envelope {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding-top: 44%;
  perspective: 1200px;
}
.envelope__body {
  position: relative;
  aspect-ratio: 3 / 2;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
}
.is-on .envelope__body { animation: bob 6s ease-in-out 3s infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.envelope__back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(160deg, #021B4D, #010E2A);
}

.envelope__card {
  position: absolute;
  z-index: 2;
  left: 7%;
  right: 7%;
  top: 5%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7% 6% 0;
  border-radius: 10px;
  text-align: center;
}
.envelope__card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(43, 38, 32, .15);
  border-radius: 7px;
  pointer-events: none;
}
.envelope__card small,
.qr-card__paper small {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8C8174;
}
.envelope__names {
  margin: 6px 0 2px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.1;
}
.envelope__date { margin-bottom: 14px; font-size: 12.5px; letter-spacing: .06em; color: #8C8174; }

.countdown-w { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; max-width: 280px; }
.countdown-w div { padding: 7px 0; border-radius: 8px; background: #F1ECE3; }
.countdown-w b { display: block; font-family: var(--font-head); font-size: 18px; font-variant-numeric: tabular-nums; }
.countdown-w span { font-size: 10px; color: #8C8174; }

.envelope__front {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 14px;
  clip-path: polygon(0 32%, 50% 66%, 100% 32%, 100% 100%, 0 100%);
  background: linear-gradient(170deg, #0A4FC4 0%, var(--sapphire) 45%, #02286E 100%);
}
.envelope__flap {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 0;
  height: 64%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #0D5BDA, #03307F);
  transform-origin: top;
  backface-visibility: visible;
}
.envelope__seal {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 64%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #C9FFC7, var(--jade) 45%, #45C944);
  box-shadow: 0 0 22px rgba(131, 253, 128, .6), inset 0 -3px 6px rgba(0, 0, 0, .2);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
}

/* opening: the seal pops, the flap lifts, the card slides out */
.is-on .envelope__seal { animation: seal-off .4s ease .5s forwards; }
.is-on .envelope__flap { animation: flap-open 1s cubic-bezier(.5, 0, .3, 1) .8s forwards; }
.is-on .envelope__card { animation: card-up 1.1s cubic-bezier(.3, .7, .2, 1) 1.6s forwards; }
@keyframes seal-off { to { opacity: 0; transform: scale(.4); } }
@keyframes flap-open {
  0%   { transform: rotateX(0); z-index: 4; }
  49%  { z-index: 4; }
  50%  { z-index: 1; }
  100% { transform: rotateX(180deg); z-index: 1; }
}
@keyframes card-up { to { transform: translateY(-52%); } }

/* ---------- What's inside ---------- */

.wgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.wcard {
  padding: 18px 18px 22px;
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease;
}
.wcard:hover { transform: translateY(-4px); border-color: rgba(131, 253, 128, .5); }
.wcard h3 { font-size: 17px; margin-bottom: 6px; }
.wcard p { color: var(--muted); font-size: 14.5px; }

.wcard__vis {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--sk);
  overflow: hidden;
}

/* story: three moments on a line */
.wv-story { justify-content: space-between; padding: 0 22px; }
.wv-story::before,
.wv-story::after {
  content: '';
  position: absolute;
  left: 34px;
  right: 34px;
  top: 41px;
  height: 2px;
  border-radius: 2px;
  background: var(--border-strong);
}
.wv-story::after { background: var(--jade); transform: scaleX(0); transform-origin: left; }
.is-on .wv-story::after { animation: story-line 3.6s ease-in-out infinite; }
@keyframes story-line { 0% { transform: scaleX(0); } 70%, 100% { transform: none; } }
.wv-story span { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.wv-story i { width: 14px; height: 14px; border: 2px solid var(--border-strong); border-radius: 50%; background: var(--bg); }
.is-on .wv-story i { animation: story-dot 3.6s ease calc(var(--i) * 1.2s) infinite; }
@keyframes story-dot {
  0%, 60% { background: var(--jade); border-color: var(--jade); box-shadow: 0 0 10px rgba(131, 253, 128, .7); }
  75%, 100% { background: var(--bg); border-color: var(--border-strong); box-shadow: none; }
}

/* schedule: three rows */
.wv-schedule { flex-direction: column; align-items: stretch; gap: 6px; }
.wv-schedule span {
  display: flex;
  gap: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  opacity: 0;
}
.wv-schedule b { color: var(--label); font-family: var(--font-head); }
.wv-schedule em { font-style: normal; color: var(--text); }
.is-on .wv-schedule span { animation: rise .5s ease calc(.2s + var(--i) * .2s) both, row-lit 4.5s ease calc(1s + var(--i) * 1.5s) infinite; }
@keyframes row-lit { 0%, 30% { background: var(--label-bg); } 40%, 100% { background: transparent; } }

/* map: a route drawing itself to the pin */
.wv-map {
  padding: 0;
  background:
    linear-gradient(90deg, transparent 31%, rgba(255, 255, 255, .07) 31%, rgba(255, 255, 255, .07) 34%, transparent 34%),
    linear-gradient(90deg, transparent 68%, rgba(255, 255, 255, .07) 68%, rgba(255, 255, 255, .07) 71%, transparent 71%),
    linear-gradient(0deg, transparent 55%, rgba(255, 255, 255, .07) 55%, rgba(255, 255, 255, .07) 60%, transparent 60%),
    rgba(0, 211, 251, .1);
}
[data-theme="light"] .wv-map {
  background:
    linear-gradient(90deg, transparent 31%, #fff 31%, #fff 34%, transparent 34%),
    linear-gradient(90deg, transparent 68%, #fff 68%, #fff 71%, transparent 71%),
    linear-gradient(0deg, transparent 55%, #fff 55%, #fff 60%, transparent 60%),
    #DDE6F2;
}
.wv-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wv-route {
  fill: none;
  stroke: var(--jade);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
}
[data-theme="light"] .wv-route { stroke: var(--sapphire); }
.is-on .wv-route { animation: route 4s ease-in-out .3s infinite; }
@keyframes route { 0% { stroke-dashoffset: 260; } 55%, 100% { stroke-dashoffset: 0; } }
.wv-pin {
  position: absolute;
  left: 88%;
  top: 24%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--jade);
}
.is-on .wv-pin { animation: ping 1.6s ease-out infinite; }

/* RSVP: answer chips */
.wv-rsvp { flex-wrap: wrap; align-content: center; gap: 7px; }
.wv-chip {
  padding: 5px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0;
}
.wv-chip--on { background: var(--jade); border-color: var(--jade); color: var(--ink); }
.wv-chip--soft { color: var(--muted); }
.is-on .wv-chip { animation: pop .45s ease both; }
.is-on .wv-chip:nth-child(2) { animation-delay: .25s; }
.is-on .wv-chip:nth-child(3) { animation-delay: .5s; }

/* accommodation: two places */
.wv-stay { flex-direction: column; align-items: stretch; gap: 8px; }
.wv-stay span { display: flex; align-items: center; gap: 10px; font-size: 12.5px; opacity: 0; }
.wv-stay i {
  flex: none;
  width: 34px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(0, 211, 251, .45), rgba(0, 66, 172, .6));
}
.wv-stay span:nth-child(2) i { background: linear-gradient(135deg, rgba(131, 253, 128, .45), rgba(0, 66, 172, .55)); }
.wv-stay em { font-style: normal; }
.is-on .wv-stay span { animation: rise .5s ease calc(.2s + var(--i) * .25s) both; }

/* gallery: tiles with a shine passing over */
.wv-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; align-items: stretch; gap: 6px; padding: 10px; }
.wv-gallery i { border-radius: 6px; background: linear-gradient(135deg, rgba(234, 201, 207, .8), rgba(156, 79, 99, .55)); opacity: 0; }
.wv-gallery i:nth-child(even) { background: linear-gradient(135deg, rgba(201, 214, 234, .8), rgba(0, 66, 172, .5)); }
.wv-gallery i:nth-child(3n) { background: linear-gradient(135deg, rgba(185, 201, 179, .85), rgba(78, 107, 87, .6)); }
.is-on .wv-gallery i { animation: pop .45s ease calc(var(--i) * .1s) both; }
.wv-gallery::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-110%);
}
.is-on .wv-gallery::after { animation: shine 3.5s ease-in-out 1s infinite; }
@keyframes shine { 0% { transform: translateX(-110%); } 40%, 100% { transform: translateX(110%); } }

/* countdown: live numbers */
.wv-count { gap: 14px; }
.wv-count span { display: grid; justify-items: center; }
.wv-count b { font-family: var(--font-head); font-size: 22px; font-variant-numeric: tabular-nums; }
.wv-count span:last-child b { color: var(--label); }
.wv-count em { font-style: normal; font-size: 11px; color: var(--muted); }

/* dress code: colour swatches */
.wv-dress { flex-direction: column; gap: 10px; }
.wv-dress em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.wv-dress i {
  position: absolute;
  top: 18px;
  left: calc(50% - 64px + var(--i) * 30px);
  width: 38px;
  height: 38px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--c);
  opacity: 0;
}
.wv-dress em { margin-top: 48px; }
.is-on .wv-dress i { animation: pop .45s ease calc(var(--i) * .12s) both; }

/* ---------- Guest list dashboard ---------- */

.guests { max-width: 880px; margin: 56px auto 0; padding: 28px; border-radius: 24px; }
.guests__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.guests__head h3 { font-size: 20px; }
.guests__demo {
  padding: 4px 11px;
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}
.guests__progress > div:first-child { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.guests__progress b { font-family: var(--font-head); font-size: 28px; }
.guests__progress > div:first-child > span { color: var(--muted); font-size: 14px; }
.guests__bar { height: 10px; border-radius: 999px; background: var(--sk); overflow: hidden; }
.guests__bar i {
  display: block;
  width: 79%;
  height: 100%;
  border-radius: inherit;
  background: var(--jade);
  box-shadow: 0 0 12px rgba(131, 253, 128, .5);
  transform: scaleX(0);
  transform-origin: left;
}
.guests.is-on .guests__bar i { animation: bar-grow 1.4s cubic-bezier(.3, .7, .3, 1) .2s forwards; }
.guests__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.guests__tiles div { padding: 16px; border-radius: 14px; background: var(--sk); }
.guests__tiles b { display: block; font-family: var(--font-head); font-size: 28px; }
.guests__tiles div:first-child b { color: var(--label); }
.guests__tiles span { color: var(--muted); font-size: 13px; }
.guests__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guests__list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--sk);
  font-size: 14.5px;
  opacity: 0;
}
.guests.is-on .guests__list li { animation: rise .5s ease calc(1.2s + var(--i) * .5s) both; }
.guests__list span { color: var(--muted); font-size: 13.5px; }
.guests__list em { padding: 3px 10px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 600; }
.guests__list .is-yes { background: var(--label-bg); color: var(--label); }
.guests__list .is-no { border: 1px solid var(--border-strong); color: var(--muted); }

/* ---------- Try it: RSVP on a phone ---------- */

.demo-note { font-size: 14px !important; color: var(--muted); }

.rsvp-demo { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.rsvp-phone {
  width: 268px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 38px;
  background: #0A0F1C;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6);
}
.rsvp-phone__screen {
  display: flex;
  flex-direction: column;
  min-height: 450px;
  padding: 36px 20px 24px;
  border-radius: 29px;
  text-align: center;
}
.rsvp-phone__names {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 34px;
  line-height: 1.1;
}
.rsvp-phone__date { margin: 4px 0 24px; color: #8C8174; font-size: 12px; letter-spacing: .06em; }

.rsvp-card { flex: 1; display: grid; }
.rsvp-step { grid-area: 1 / 1; display: none; align-content: center; justify-items: center; gap: 12px; }
.rsvp-card[data-step="ask"] .rsvp-step--ask,
.rsvp-card[data-step="details"] .rsvp-step--details,
.rsvp-card[data-step="done"] .rsvp-step--done { display: grid; animation: rise .4s ease both; }
.rsvp-q { font-weight: 600; font-size: 15px; }
.rsvp-q--small { margin-top: 4px; font-size: 13.5px; }
.rsvp-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.rsvp-btn,
.rsvp-chip {
  padding: 10px 16px;
  border: 1px solid rgba(43, 38, 32, .3);
  border-radius: 999px;
  background: transparent;
  color: #2B2620;
  font: 600 13.5px/1 var(--font-body);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.rsvp-btn:active,
.rsvp-chip:active { transform: scale(.95); }
.rsvp-btn--yes { border-color: #2B2620; background: #2B2620; color: #FBF8F2; }
.rsvp-btn:hover { border-color: var(--jade); background: var(--jade); color: var(--ink); }
.rsvp-chip { padding: 8px 14px; font-weight: 500; }
.rsvp-chip.is-picked { border-color: var(--jade); background: var(--jade); color: var(--ink); }

.rsvp-stepper { display: flex; align-items: center; gap: 16px; }
.rsvp-stepper button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(43, 38, 32, .3);
  border-radius: 50%;
  background: transparent;
  color: #2B2620;
  cursor: pointer;
}
.rsvp-stepper svg,
.rsvp-done-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rsvp-count { min-width: 20px; font-family: var(--font-head); font-size: 20px; }
.rsvp-send { margin-top: 6px; }

.rsvp-done-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--jade);
  color: var(--ink);
  box-shadow: 0 0 22px rgba(131, 253, 128, .55);
}
.rsvp-done-icon svg { width: 26px; height: 26px; }
.rsvp-card[data-step="done"] .rsvp-done-icon { animation: pop .5s ease both; }
.rsvp-thanks { max-width: 200px; font-size: 14.5px; font-weight: 500; }
.rsvp-card:not([data-answer="no"]) .rsvp-thanks--no,
.rsvp-card[data-answer="no"] .rsvp-thanks--yes { display: none; }
.rsvp-change {
  border: 0;
  background: none;
  color: #8C8174;
  font: 500 13px var(--font-body);
  text-decoration: underline;
  cursor: pointer;
}

.rsvp-live { display: grid; gap: 10px; padding: 22px; border-radius: 20px; }
.rsvp-live__title { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.rsvp-live__title i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
  animation: live 2s ease-out infinite;
}
.rsvp-live__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--sk);
  font-size: 14px;
}
.rsvp-live__row b { font-family: var(--font-head); font-size: 19px; font-variant-numeric: tabular-nums; }
.rsvp-live__row b.bump { animation: bump .7s ease; }
@keyframes bump {
  30% { transform: scale(1.35); color: var(--jade); text-shadow: 0 0 12px rgba(131, 253, 128, .8); }
}

/* ---------- Paper or site ---------- */

.vs { padding: 8px 28px; border-radius: 24px; }
.vs__row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  opacity: 0;
}
.vs.is-on .vs__row { animation: rise .5s ease calc(.15s + var(--i) * .15s) both; }
.vs__row--head {
  border-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 1;
}
.vs__row--head span:last-child { color: var(--label); }
.vs__row b { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.vs__no,
.vs__yes { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.vs__no { color: var(--muted); }
.vs__no::before,
.vs__yes::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.vs__no::before {
  border: 1.5px solid var(--border-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A4C2' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.vs__yes::before {
  background: var(--jade) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304122B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: 0 0 10px rgba(131, 253, 128, .5);
}

/* both: a printed card with a QR code */
.combo { grid-template-columns: auto 1fr; margin-top: 56px; gap: 48px; }
.combo__title { margin-bottom: 10px; font-size: 22px; }
.combo p { color: var(--muted); font-size: 17px; max-width: 520px; }
.qr-card { padding: 10px 20px; }
.qr-card__paper {
  width: 220px;
  padding: 22px 20px 18px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55);
  transform: rotate(-3deg);
}
.qr-card__names {
  margin: 4px 0 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
}
.qr {
  position: relative;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  width: 118px;
  height: 118px;
  margin: 12px auto 10px;
  overflow: hidden;
}
.qr i.on { background: #2B2620; }
.qr::after {
  content: '';
  position: absolute;
  left: -6px;
  right: -6px;
  top: 0;
  height: 3px;
  background: var(--jade);
  box-shadow: 0 0 10px var(--jade);
  animation: qr-scan 2.6s ease-in-out infinite;
}
@keyframes qr-scan { 0%, 100% { top: 0; } 50% { top: calc(100% - 3px); } }
.qr-card__hint { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #8C8174; }

/* ---------- Personalisation studio ---------- */

.studio { display: grid; gap: 16px; }
.studio__preview {
  --pa: #1F2A44;
  --pb: #F6EFE6;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55);
}
.studio__preview[data-palette="sage"] { --pa: #3F5C48; --pb: #EEF2EA; }
.studio__preview[data-palette="blush"] { --pa: #8E4458; --pb: #F9ECEE; }
.studio__preview[data-palette="gold"] { --pa: #7A5C24; --pb: #F7F0E1; }

.studio__bar { display: flex; justify-content: center; padding: 10px; background: rgba(6, 14, 32, .88); }
.studio__url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: rgba(234, 240, 250, .75);
  font-size: 12px;
}
.studio__url svg { width: 12px; height: 12px; fill: none; stroke: var(--jade); stroke-width: 2.2; stroke-linecap: round; }

.studio__card {
  position: relative;
  padding: 46px 24px 42px;
  background: var(--pb);
  color: var(--pa);
  text-align: center;
  transition: background .45s ease, color .45s ease;
}
.studio__card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid currentColor;
  border-radius: 10px;
  opacity: .2;
  pointer-events: none;
}
.studio__invite { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.studio__names { margin: 10px 0 6px; font-size: 48px; line-height: 1.1; }
.studio__preview[data-font="serif"] .studio__names { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500; }
.studio__preview[data-font="modern"] .studio__names { font-family: var(--font-head); font-weight: 700; font-size: 40px; letter-spacing: -0.02em; }
.studio__date { font-size: 13px; opacity: .8; }
.studio__btn {
  display: inline-block;
  margin-top: 20px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--pa);
  color: var(--pb);
  font-size: 13px;
  font-weight: 600;
  transition: background .45s ease, color .45s ease;
}
.studio__card.is-swapping > * { animation: swap .45s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }

.studio__controls { display: flex; flex-wrap: wrap; gap: 16px 28px; padding: 18px 20px; border-radius: 18px; }
.studio__group { display: grid; gap: 8px; }
.studio__label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.studio__opts { display: flex; gap: 8px; }
.swatch {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%);
  box-shadow: 0 0 0 1px var(--border-strong);
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-picked { box-shadow: 0 0 0 2px var(--jade), 0 0 12px rgba(131, 253, 128, .5); }
.studio__font,
.studio__lang {
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: 600 13px var(--font-body);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.studio__font { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 19px; font-weight: 500; }
.studio__font--modern { font-family: var(--font-head); font-style: normal; font-size: 15px; font-weight: 700; }
.studio__font.is-picked,
.studio__lang.is-picked { border-color: var(--jade); background: var(--jade); color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .wgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .combo { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
  .combo p { margin: 0 auto; }
  .rsvp-demo { justify-items: center; }
}

@media (max-width: 640px) {
  .envelope { padding-top: 46%; }
  .guests { padding: 20px; }
  .guests__tiles { grid-template-columns: 1fr 1fr; }
  .guests__list li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .guests__list li span { grid-row: 2; }
  .guests__list li em { grid-row: 1 / 3; grid-column: 2; }
  .rsvp-demo { grid-template-columns: 1fr; }
  .rsvp-live { width: 100%; max-width: 320px; }
  .vs { padding: 4px 18px; }
  .vs__row { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .vs__row b { grid-column: 1 / -1; }
  .vs__row--head span:first-child { display: none; }
  .vs__no,
  .vs__yes { font-size: 14px; }
  .studio .studio__names { font-size: 40px; }
}

@media (max-width: 520px) {
  .wgrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-live__title i,
  .qr::after { animation: none; }
  .qr::after { display: none; }
  .studio__card.is-swapping > *,
  .rsvp-step,
  .rsvp-done-icon,
  .rsvp-live__row b.bump { animation: none !important; }
}
