/* =====================================================
   Fairy Tale Picnic — Girls Club × Ques
   Strawberry Matcha aesthetic.
   ===================================================== */

:root{
  --matcha:      #6F7C45;
  --sage:        #A7B28A;
  --strawberry:  #D9828C;
  --soft-pink:   #E7A6AD;
  --cream:       #F5F0E6;
  --warm-white:  #FFFDF8;
  --dark-olive:  #4F5B32;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --caps:  "Cinzel", var(--serif);
  --script:"Mrs Saint Delafield", cursive;

  --door-duration: 2.4s;
  --door-ease: cubic-bezier(.63,.06,.15,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ color-scheme: dark; scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--cream);
  color: var(--dark-olive);
  font-family: var(--serif);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg{ display:block; max-width:100%; }
img{ width: 100%; height: 100%; object-fit: cover; }
button{ font-family: inherit; }
section{ scroll-margin-top: 0; }

/* =====================================================
   HERO — full-screen gate
   ===================================================== */

.hero{
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--warm-white);
}

.hero__world{ position: absolute; inset: 0; z-index: 0; }

.hero__photo{
  position: absolute;
  inset: -2%;
  background-image: url("../assets/img/gate-bg.jpg");
  background-size: cover;
  background-position: center 38%;
  filter: saturate(.82) brightness(.56) contrast(1.04);
  transform: scale(1.06);
  transition: filter 2.6s ease, transform 6s ease;
}
.hero.is-open .hero__photo{
  filter: saturate(.92) brightness(.74) contrast(1.02);
  transform: scale(1.0);
}

.hero__grade{
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(79,91,50,.5) 0%, rgba(79,91,50,0) 40%),
    linear-gradient(-20deg, rgba(217,130,140,.24) 0%, rgba(217,130,140,0) 45%),
    linear-gradient(0deg, rgba(20,23,13,.85) 0%, rgba(20,23,13,.4) 32%, rgba(20,23,13,.4) 62%, rgba(20,23,13,.88) 100%),
    radial-gradient(ellipse 60% 42% at 50% 48%, rgba(12,14,8,.5) 0%, rgba(12,14,8,0) 72%);
}
.hero__vignette{
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 42%, rgba(20,23,13,0) 0%, rgba(20,23,13,0) 30%, rgba(15,17,10,.7) 88%, rgba(10,12,7,.9) 100%);
}
.hero__glow{
  position: absolute;
  left: 50%; top: 38%;
  width: 80vmin; height: 80vmin;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(247,224,196,.28) 0%, rgba(231,166,173,.14) 35%, rgba(231,166,173,0) 70%);
  opacity: 0;
  transition: opacity 3s ease 1.4s;
  pointer-events: none;
}
.hero.is-open .hero__glow{ opacity: 1; }

/* fog */
.hero__fog{ position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fog__layer{
  position: absolute;
  bottom: -10%;
  width: 160%; height: 40%;
  left: -30%;
  background: radial-gradient(ellipse at center, rgba(245,240,230,.22) 0%, rgba(245,240,230,0) 70%);
  filter: blur(6px);
  animation: drift 34s linear infinite;
}
.fog__layer--1{ bottom: -6%; opacity: .5; animation-duration: 40s; }
.fog__layer--2{ bottom: 4%; opacity: .35; animation-duration: 55s; animation-direction: reverse; }
.fog__layer--3{ bottom: 16%; opacity: .22; animation-duration: 70s; }
@keyframes drift{ 0%{ transform: translateX(0); } 100%{ transform: translateX(18%); } }

/* particles */
.hero__particles{ position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.spark{
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, var(--warm-white) 0%, var(--soft-pink) 45%, rgba(231,166,173,0) 75%);
  opacity: 0;
  animation: twinkle var(--dur,4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle{
  0%, 100%{ opacity: 0; transform: scale(.4); }
  50%{ opacity: var(--peak, .85); transform: scale(1); }
}
.firefly{
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, #fff2d6 0%, #f2c66d 40%, rgba(242,198,109,0) 75%);
  opacity: 0;
  animation: rise var(--dur, 12s) ease-in infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes rise{
  0%{ opacity: 0; transform: translate(0,0); }
  10%{ opacity: .9; }
  50%{ transform: translate(var(--dx, 20px), calc(var(--rise, 220px) * -0.5)); }
  85%{ opacity: .7; }
  100%{ opacity: 0; transform: translate(calc(var(--dx, 20px) * 2), calc(var(--rise, 220px) * -1)); }
}

/* butterflies */
.butterfly{
  position: absolute; z-index: 3; width: 34px;
  opacity: 0; pointer-events: none;
  transition: opacity 2s ease 3s;
}
.hero.is-open .butterfly{ opacity: .85; }
.butterfly--1{ top: 30%; left: 14%; animation: fly1 17s ease-in-out infinite; }
.butterfly--2{ top: 62%; right: 14%; left: auto; animation: fly2 21s ease-in-out infinite; }
.butterfly__wing{ fill: var(--strawberry); opacity: .9; }
.butterfly__wing--r{ fill: var(--soft-pink); }
.butterfly__body{ stroke: var(--dark-olive); stroke-width: 2; }
.butterfly__wings{ transform-origin: 30px 20px; animation: flap .42s ease-in-out infinite alternate; }
@keyframes flap{ from{ transform: scaleX(1); } to{ transform: scaleX(.55); } }
@keyframes fly1{
  0%,100%{ transform: translate(0,0) rotate(0deg); }
  25%{ transform: translate(60px,-40px) rotate(8deg); }
  50%{ transform: translate(20px,-90px) rotate(-4deg); }
  75%{ transform: translate(-50px,-30px) rotate(-10deg); }
}
@keyframes fly2{
  0%,100%{ transform: translate(0,0) rotate(0deg); }
  30%{ transform: translate(-70px,-30px) rotate(-10deg); }
  60%{ transform: translate(-30px,-80px) rotate(6deg); }
  80%{ transform: translate(30px,-20px) rotate(10deg); }
}

/* ----- the doors: full-screen ----- */

.hero__doors{
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
}

.hdoor{
  position: relative;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform var(--door-duration) var(--door-ease);
  will-change: transform;
}
.hdoor--left{ transform-origin: left center; transform: translateX(0) rotateY(0); }
.hdoor--right{ transform-origin: right center; transform: translateX(0) rotateY(0); }

.hdoor__texture{
  position: absolute;
  inset: -3%;
  background-image: url("../assets/img/door-texture.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(.42) saturate(.7);
}
.hdoor--right .hdoor__texture{ transform: scaleX(-1); }

.hdoor__tint{
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(167,178,138,.35) 0%, rgba(79,91,50,.55) 55%, rgba(35,42,20,.75) 100%);
  mix-blend-mode: multiply;
}
.hdoor--left .hdoor__tint{ background: linear-gradient(200deg, rgba(167,178,138,.35) 0%, rgba(79,91,50,.55) 55%, rgba(35,42,20,.75) 100%); }

.hdoor__art{ position: absolute; inset: 0; width: 100%; height: 100%; }
.hdoor__lattice{ fill: none; stroke: rgba(245,240,230,.28); stroke-width: 1.6; }
.hdoor__lattice--thin{ stroke: rgba(231,166,173,.32); stroke-width: 1; }
.hdoor__stud{ fill: var(--soft-pink); opacity: .75; }

.hero__seam{
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 3px;
  margin-left: -1.5px;
  z-index: 6;
  background: linear-gradient(to bottom, rgba(231,166,173,0), rgba(231,166,173,.85) 12%, rgba(231,166,173,.85) 88%, rgba(231,166,173,0));
  box-shadow: 0 0 26px 3px rgba(231,166,173,.6);
  transition: opacity 1s ease .3s;
}

.hero.is-open .hdoor--left{ transform: translateX(-100%) rotateY(-3deg); }
.hero.is-open .hdoor--right{ transform: translateX(100%) rotateY(3deg); }
.hero.is-open .hero__seam{ opacity: 0; }

/* crest ornament spanning the top */
.hero__crest{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(60vw, 420px);
  z-index: 7;
  overflow: visible;
  pointer-events: none;
}
.hero__crest path{ fill: none; stroke: var(--soft-pink); stroke-width: 2.4; stroke-linecap: round; opacity: .85; }
.hero__crest circle{ fill: var(--strawberry); }

/* hero text content */
.hero__content{
  position: relative;
  z-index: 8;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 6vw;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.4s ease, transform 1.4s ease;
  transition-delay: .1s;
  pointer-events: none;
}
.hero.is-open .hero__content{
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.5s;
}

.hero__eyebrow{
  margin: 0 0 .7em;
  font-family: var(--caps);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: clamp(.68rem, 1.6vw, .85rem);
  color: var(--soft-pink);
  text-shadow: 0 1px 12px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.8);
}
.hero__title{
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.8rem, 10vw, 6rem);
  line-height: 1.05;
  color: var(--warm-white);
  text-shadow: 0 0 30px rgba(231,166,173,.5), 0 2px 20px rgba(0,0,0,.45);
}
.hero__brands{
  margin: .35em 0 0;
  font-family: var(--caps);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: clamp(.72rem, 1.7vw, .9rem);
  color: var(--sage);
  text-shadow: 0 1px 12px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.8);
}
.x{ color: var(--strawberry); margin: 0 .3em; }

.hero__scroll{
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 36px);
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35em;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  opacity: 0;
  transition: opacity 1.4s ease;
  transition-delay: 2.4s;
  font-family: var(--caps);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero.is-open .hero__scroll{ opacity: .8; }
.hero__scroll:hover{ opacity: 1; }
.hero__scroll svg{
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(5px); } }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .hdoor, .hero__seam, .hero__photo, .hero__glow, .butterfly, .hero__content{ transition-duration: .01ms !important; }
  .fog__layer, .butterfly, .butterfly__wings, .spark, .firefly, .hero__scroll svg{ animation: none !important; }
}

@media (max-width: 560px){
  .hero__crest{ width: 78vw; top: -4px; }
  .hero__title{ font-size: clamp(2.4rem, 12vw, 3.6rem); }
}

/* =====================================================
   SHARED SECTION LAYOUT
   ===================================================== */

.section{
  position: relative;
  width: 100%;
  padding: clamp(56px, 9vh, 100px) 6vw;
}

.section__eyebrow{
  margin: 0 0 .4em;
  font-family: var(--caps);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .74rem;
  color: var(--strawberry);
}
.section__title{
  margin: 0 0 .5em;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--dark-olive);
  line-height: 1.1;
}
.section__intro{
  margin: 0 auto;
  max-width: 46em;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--dark-olive);
  opacity: .85;
}

/* scroll reveal */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal--left{ transform: translateX(-34px); }
.reveal--right{ transform: translateX(34px); }
.reveal.is-visible{ opacity: 1; transform: translate(0,0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* =====================================================
   INVITATION
   ===================================================== */

.invite-section{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.invite-section__photo{
  margin: 0;
  border-radius: 4px 90px 4px 90px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 24px 50px rgba(79,91,50,.22);
  border: 8px solid var(--warm-white);
  outline: 1px solid rgba(79,91,50,.15);
}

.invite-section__text{ text-align: left; }
.invite-section__greeting{
  margin: 0 0 .5em;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--dark-olive);
}
.invite-section__lede{
  margin: 0 0 .7em;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  opacity: .85;
}
.invite-section__divider{
  color: var(--strawberry);
  margin: .5em 0;
  font-size: 1.1rem;
}
.invite-section__note{
  margin: 0;
  font-size: clamp(.92rem, 1.4vw, 1.02rem);
  font-style: italic;
  opacity: .7;
}

@media (max-width: 780px){
  .invite-section{ grid-template-columns: 1fr; text-align: center; }
  .invite-section__text{ text-align: center; }
  .invite-section__photo{ max-width: 360px; margin: 0 auto; aspect-ratio: 4/4.6; }
}

/* =====================================================
   DRESS CODE
   ===================================================== */

.dresscode-section{
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.section__head{ max-width: 640px; margin: 0 auto 2.5em; }

.palette-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  margin-bottom: clamp(28px, 5vh, 56px);
}
.palette-group__title{
  margin: 0 0 .8em;
  font-family: var(--caps);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--matcha);
}
.palette{
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.swatch{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5em;
  font-family: var(--caps);
  font-size: .58rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--dark-olive);
  opacity: .75;
}
.swatch span{
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 4px 10px rgba(79,91,50,.25), 0 0 0 1px rgba(79,91,50,.1) inset;
}

.photo-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.6vw, 18px);
}
.photo-grid figure{
  margin: 0;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(79,91,50,.18);
}
.photo-grid figure:nth-child(odd){ transform: translateY(-14px); }

@media (max-width: 700px){
  .photo-grid{ grid-template-columns: repeat(2, 1fr); }
  .photo-grid figure:nth-child(odd){ transform: none; }
  .palette-row{ gap: 40px; }
}

/* =====================================================
   TIME & PLACE
   ===================================================== */

.when-section{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.when-section__photo{
  margin: 0;
  border-radius: 90px 4px 90px 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 24px 50px rgba(79,91,50,.22);
  border: 8px solid var(--warm-white);
  outline: 1px solid rgba(79,91,50,.15);
  order: 2;
}
.when-card{
  order: 1;
  text-align: center;
  background: var(--warm-white);
  border-radius: 12px;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 36px);
  box-shadow: 0 20px 46px rgba(79,91,50,.14);
}
.when-card__seal{
  width: 66px; height: 66px;
  margin: 0 auto 1em;
}
.when-card__seal circle{ fill: none; stroke: var(--matcha); }
.when-card__seal circle:first-of-type{ stroke-width: 1.4; opacity: .5; }
.when-card__seal circle:nth-of-type(2){ stroke-width: 1; opacity: .8; }
.when-card__seal text{
  font-family: var(--caps);
  font-size: 20px;
  fill: var(--matcha);
  font-weight: 600;
}
.when-card__date{
  margin: 0;
  font-family: var(--script);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  color: var(--dark-olive);
}
.when-card__time{
  margin: .1em 0 0;
  font-family: var(--caps);
  letter-spacing: .08em;
  font-size: .82rem;
  color: var(--strawberry);
  text-transform: uppercase;
}
.when-card__divider{ margin: .8em 0; color: var(--sage); }
.when-card__venue{
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}
.when-card__address{
  margin: .2em 0 1em;
  opacity: .7;
}
.when-card__map{
  display: inline-block;
  color: var(--strawberry);
  text-decoration: none;
  border-bottom: 1px dotted var(--strawberry);
  font-style: italic;
}
.when-card__map:hover{ color: var(--dark-olive); border-color: var(--dark-olive); }

@media (max-width: 780px){
  .when-section{ grid-template-columns: 1fr; }
  .when-section__photo{ order: 1; max-width: 360px; margin: 0 auto; }
  .when-card{ order: 2; }
}

/* =====================================================
   COUNTDOWN
   ===================================================== */

.countdown-section{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.countdown-section__photo{
  margin: 0;
  border-radius: 4px 90px 4px 90px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 24px 50px rgba(79,91,50,.22);
  border: 8px solid var(--warm-white);
  outline: 1px solid rgba(79,91,50,.15);
}
.countdown-section__content{ text-align: center; }

.countdown{
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
  margin-top: 1em;
}
.countdown__box{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3em;
  background: var(--warm-white);
  border-radius: 10px;
  padding: .9em 1em;
  min-width: 72px;
  box-shadow: 0 14px 30px rgba(79,91,50,.16);
}
.countdown__box span{
  font-family: var(--caps);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--strawberry);
  line-height: 1;
}
.countdown__box small{
  font-family: var(--caps);
  font-size: .58rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--matcha);
}

@media (max-width: 780px){
  .countdown-section{ grid-template-columns: 1fr; text-align: center; }
  .countdown-section__photo{ order: -1; max-width: 320px; margin: 0 auto; }
}

/* =====================================================
   RSVP
   ===================================================== */

.rsvp-section{
  background: linear-gradient(180deg, var(--cream) 0%, #efe8d8 100%);
  padding-bottom: clamp(80px, 12vh, 140px);
}
.rsvp-card{
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.rsvp-card__divider{ color: var(--strawberry); font-size: 1.2rem; margin-bottom: .3em; }
.rsvp-card__title{
  margin: 0;
  font-family: var(--script);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  color: var(--dark-olive);
}
.rsvp-card__brands{
  margin: .2em 0 .6em;
  font-family: var(--caps);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--matcha);
}
.rsvp-card__price{
  margin: 0 0 1.4em;
  font-family: var(--caps);
  font-size: 1rem;
  letter-spacing: .06em;
  color: var(--strawberry);
}
.rsvp-card__footer{
  margin-top: 1.6em;
  font-size: .85rem;
  font-style: italic;
  opacity: .6;
}

/* checkbox */
.agree{
  display: inline-flex;
  align-items: flex-start;
  gap: .55em;
  cursor: pointer;
  user-select: none;
  max-width: 420px;
  text-align: left;
  margin-bottom: 1.4em;
}
.agree__input{ position: absolute; opacity: 0; width: 1px; height: 1px; }
.agree__box{
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: .18em;
  border: 1.5px solid var(--sage);
  border-radius: 5px;
  background: rgba(79,91,50,.04);
  position: relative;
  transition: background .25s ease, border-color .25s ease;
}
.agree__box::after{
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: solid var(--warm-white);
  border-width: 0 2.4px 2.4px 0;
  transform: rotate(40deg) scale(0);
  transition: transform .2s ease;
}
.agree__input:checked ~ .agree__box{ background: var(--matcha); border-color: var(--matcha); }
.agree__input:checked ~ .agree__box::after{ transform: rotate(40deg) scale(1); }
.agree__input:focus-visible ~ .agree__box{ outline: 2px solid var(--strawberry); outline-offset: 2px; }
.agree__label{ font-size: clamp(.85rem, 1.9vw, .98rem); line-height: 1.5; color: var(--dark-olive); }
.agree__link{
  background: none; border: none; padding: 0; margin: 0;
  color: var(--strawberry);
  font: inherit; font-style: italic;
  text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px;
  cursor: pointer;
}
.agree__link:hover{ color: var(--dark-olive); }

/* buy button */
.buy-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(320px, 80vw);
  padding: .95em 2.4em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--strawberry), var(--soft-pink));
  color: var(--warm-white);
  font-family: var(--caps);
  font-size: clamp(.85rem, 2vw, 1rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(217,130,140,.38), 0 0 0 1px rgba(255,253,248,.18) inset;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease, opacity .25s ease;
}
.buy-button:hover{ transform: translateY(-2px); box-shadow: 0 18px 40px rgba(217,130,140,.5), 0 0 0 1px rgba(255,253,248,.22) inset; }
.buy-button[aria-disabled="true"]{
  pointer-events: none;
  opacity: .45;
  filter: grayscale(.4) saturate(.7);
  box-shadow: none;
  background: linear-gradient(135deg, var(--sage), #8a9573);
}

@media (max-width: 560px){
  .buy-button{ width: 100%; min-width: 0; }
  .agree{ max-width: 320px; }
}

/* =====================================================
   MODAL
   ===================================================== */

.modal{
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 6vh 5vw;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.modal.is-visible{ opacity: 1; pointer-events: auto; }
.modal__overlay{ position: absolute; inset: 0; background: rgba(20,23,13,.72); backdrop-filter: blur(3px); }
.modal__panel{
  position: relative;
  max-width: 560px; width: 100%; max-height: 82vh; overflow-y: auto;
  background: var(--cream);
  color: var(--dark-olive);
  border-radius: 18px;
  padding: 2.4em 2.2em 2.2em;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  transform: translateY(10px) scale(.98);
  transition: transform .3s ease;
}
.modal.is-visible .modal__panel{ transform: translateY(0) scale(1); }
.modal__flourish{ width: 120px; margin: 0 auto 1em; }
.modal__flourish path{ fill: none; stroke: var(--strawberry); stroke-width: 2; }
.modal__close{
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(79,91,50,.08); color: var(--dark-olive);
  font-size: 1rem; cursor: pointer; transition: background .2s ease;
}
.modal__close:hover{ background: rgba(79,91,50,.18); }
.modal__title{
  margin: 0 0 .6em; text-align: center;
  font-family: var(--caps); font-size: 1.3rem; letter-spacing: .06em;
  color: var(--dark-olive);
}
.modal__body{ font-size: 1.02rem; line-height: 1.65; }
.modal__body p{ margin: 0 0 .8em; }
.modal__body ul{ margin: 0 0 1em; padding-left: 1.2em; }
.modal__body li{ margin-bottom: .5em; }

/* =====================================================
   FAQ
   ===================================================== */

.faq-section{ max-width: 780px; margin: 0 auto; }
.faq-list{ display: flex; flex-direction: column; gap: 12px; }

.faq-item{
  background: var(--warm-white);
  border-radius: 10px;
  padding: 1.1em 1.4em;
  box-shadow: 0 10px 24px rgba(79,91,50,.1);
}
.faq-item__q{
  cursor: pointer;
  list-style: none;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 600;
  color: var(--dark-olive);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}
.faq-item__q::-webkit-details-marker{ display: none; }
.faq-item__q::after{
  content: "+";
  flex: 0 0 auto;
  font-family: var(--caps);
  font-size: 1.3rem;
  color: var(--strawberry);
  transition: transform .25s ease;
}
.faq-item[open] .faq-item__q::after{ transform: rotate(45deg); }
.faq-item__a{
  margin-top: .7em;
  font-size: 1rem;
  line-height: 1.6;
  opacity: .82;
}

/* =====================================================
   CHECKOUT / PAYMENT PAGES (buy, success, fail, gateway, verify)
   ===================================================== */

.checkout-page{ background: var(--cream); }

.checkout{
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 5vw;
}

.checkout__card{
  width: 100%;
  max-width: 480px;
  text-align: center;
  background: var(--warm-white);
  border-radius: 16px;
  padding: clamp(28px, 5vw, 48px) clamp(22px, 4vw, 40px);
  box-shadow: 0 24px 54px rgba(79,91,50,.16);
}

.checkout__badge{
  display: inline-block;
  margin: 0 0 1em;
  padding: .3em 1em;
  border-radius: 999px;
  background: rgba(217,130,140,.14);
  color: var(--strawberry);
  font-family: var(--caps);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.checkout__divider{ color: var(--strawberry); font-size: 1.1rem; margin-bottom: .2em; }
.checkout__title{
  margin: 0 0 .3em;
  font-family: var(--script);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: var(--dark-olive);
}
.checkout__subtitle{
  margin: 0 0 1.4em;
  font-family: var(--caps);
  letter-spacing: .06em;
  font-size: .85rem;
  color: var(--matcha);
}
.checkout__note{
  font-size: .92rem;
  line-height: 1.55;
  opacity: .75;
  margin: 1em 0 0;
}
.checkout__error{
  color: var(--strawberry);
  font-size: .9rem;
  margin: 0 0 1em;
}
.checkout__back{
  display: inline-block;
  margin-top: 1.6em;
  color: var(--matcha);
  text-decoration: none;
  font-size: .9rem;
  border-bottom: 1px dotted var(--matcha);
}
.checkout__back:hover{ color: var(--dark-olive); border-color: var(--dark-olive); }
.checkout__back--button{
  background: none;
  border: none;
  border-bottom: 1px dotted var(--matcha);
  font: inherit;
  cursor: pointer;
  width: auto;
  padding: 0;
}

.checkout-form{ text-align: left; }
.checkout-form__field{ margin-bottom: 1.1em; }
.checkout-form__field label{
  display: block;
  margin-bottom: .35em;
  font-family: var(--caps);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--matcha);
}
.checkout-form__field input{
  width: 100%;
  padding: .7em .9em;
  border-radius: 8px;
  border: 1.5px solid rgba(111,124,69,.3);
  background: var(--cream);
  color: var(--dark-olive);
  font-family: var(--serif);
  font-size: 1rem;
}
.checkout-form__field input:focus{
  outline: none;
  border-color: var(--strawberry);
}
.checkout-form__error{
  margin: .35em 0 0;
  color: var(--strawberry);
  font-size: .82rem;
}
.checkout-form__agree{ margin: 1.4em 0 .3em; }
.checkout-form__submit{ width: 100%; margin-top: 1.2em; }

.ticket-qr{
  display: flex;
  justify-content: center;
  margin: 1.2em 0;
}
.ticket-qr img{
  width: 220px;
  height: 220px;
  border: 8px solid var(--warm-white);
  outline: 1px solid rgba(79,91,50,.15);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(79,91,50,.18);
}
