/* =====================================================================
   InvitationMate website — landing page + inner pages (templates, pricing)
   ===================================================================== */

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 9vw, 110px); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__bg::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(ellipse 60% 50% at 85% 20%, rgba(232,199,122,.28), transparent 70%),
  radial-gradient(ellipse 50% 60% at 10% 90%, rgba(143,43,79,.12), transparent 70%); }
.hero__mandala { position: absolute; width: 760px; height: 760px; right: -220px; top: -160px; color: var(--gold); opacity: .14; animation: spin 140s linear infinite; }
.hero__mandala--2 { width: 420px; height: 420px; left: -200px; right: auto; top: auto; bottom: -180px; opacity: .1; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr 1fr; } }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__copy .h1 em { display: inline-block; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .9rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .ic { color: var(--gold); }

.phones { position: relative; height: clamp(440px, 62vw, 600px); display: grid; place-items: center; }
.phones .device { position: absolute; width: clamp(170px, 26vw, 250px); box-shadow: var(--shadow-lg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.phones .device:nth-child(1) { transform: translateX(-62%) rotate(-9deg) scale(.86); z-index: 1; }
.phones .device:nth-child(2) { z-index: 3; animation: float 6s ease-in-out infinite; }
.phones .device:nth-child(3) { transform: translateX(62%) rotate(9deg) scale(.86); z-index: 2; }
.phones:hover .device:nth-child(1) { transform: translateX(-70%) rotate(-12deg) scale(.88); }
.phones:hover .device:nth-child(3) { transform: translateX(70%) rotate(12deg) scale(.88); }
@keyframes float { 50% { transform: translateY(-12px); } }
.phones__petal { position: absolute; width: 46px; height: 46px; z-index: 4; animation: float 5s ease-in-out infinite; }
.phones__petal--1 { top: 6%; left: 8%; }
.phones__petal--2 { bottom: 10%; right: 4%; width: 60px; height: 60px; animation-delay: -2s; }
.phones__chip { position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); font-size: .82rem; animation: float 7s ease-in-out infinite; }
.phones__chip b { display: block; font-size: .92rem; }
.phones__chip .ic { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--blush); color: var(--brand); }
.phones__chip--rsvp { left: 0; bottom: 18%; }
.phones__chip--wa { right: 0; top: 14%; animation-delay: -3s; }
.phones__chip--wa .ic { background: #fff0cf; color: #9a6a12; }
@media (max-width: 600px) { .phones__chip { font-size: .74rem; padding: 8px 10px; } .phones__chip--rsvp { left: -4px; } .phones__chip--wa { right: -4px; } }

/* device frame (phone) */
.device { position: relative; aspect-ratio: 9 / 18; border-radius: 30px; padding: 7px; background: #1b1014; box-shadow: var(--shadow); overflow: hidden; }
.device::before { content: ''; position: absolute; top: 12px; left: 50%; width: 64px; height: 6px; border-radius: 6px; background: #000; transform: translateX(-50%); z-index: 2; opacity: .7; }
.device img, .device__poster { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }
.device__poster { display: grid; place-items: center; align-content: center; gap: 12px; color: var(--tpr, var(--gold)); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tpr, var(--gold)) 25%, transparent), transparent 70%), var(--tbg, var(--brand)); }
.device__poster svg { width: 55%; aspect-ratio: 1; height: auto; }
.device__poster span { font: 500 1.6rem var(--font-display); }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--paper); padding: 22px 18px; text-align: center; }
.stat b { display: block; font: 600 2.2rem/1 var(--font-display); color: var(--brand); }
.stat span { font-size: .86rem; color: var(--muted); }

/* ---------- template cards ---------- */
.tgrid { display: grid; gap: clamp(16px, 2.4vw, 26px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tcard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .35s, box-shadow .35s; }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tcard__media { position: relative; padding: 26px 26px 0; background:
  radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--tpr) 30%, transparent), transparent 65%),
  linear-gradient(160deg, color-mix(in srgb, var(--tbg) 92%, white), var(--tbg)); overflow: hidden; height: 330px; }
.tcard__media .device { width: 74%; margin: 0 auto; border-radius: 26px 26px 0 0; padding-bottom: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
.tcard__media .device img, .tcard__media .device__poster { border-radius: 20px 20px 0 0; }
.tcard:hover .tcard__media .device { transform: translateY(-10px); }
.tcard__flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.pv__info .tcard__flags { position: static; }
.tcard__quick { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 12px); opacity: 0; transition: all .3s; z-index: 3; }
.tcard:hover .tcard__quick, .tcard__quick:focus-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .tcard__quick { display: none; } }
.tcard__body { display: grid; gap: 8px; padding: 18px 20px 20px; flex: 1; align-content: start; }
.tcard__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tcard__tag { color: var(--muted); }
.tcard .tag { display: flex; gap: 6px; align-items: center; }
.tcard .tag .ic { color: var(--gold); }
.tcard__actions { display: flex; gap: 8px; margin-top: 8px; }
.tcard__actions .btn { flex: 1; }
.swatches { display: flex; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -5px; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: 0 0 0 1px var(--line); }

/* filters bar */
.filters { display: grid; gap: 14px; margin-bottom: 30px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 42px; border-radius: 999px; }
.filters__sel { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters__sel .select { width: auto; border-radius: 999px; min-height: 40px; padding: 6px 14px; }
.filters .chips { justify-content: flex-start; }
.count { color: var(--muted); font-size: .9rem; }
.empty { text-align: center; padding: 60px 20px; display: grid; gap: 12px; justify-items: center; color: var(--muted); }
.empty[hidden] { display: none; }

/* ---------- features ---------- */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.feature { padding: 26px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blush), #fbefd9); color: var(--brand); margin-bottom: 16px; }
.feature__ic .ic { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ---------- how it works ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.step { position: relative; padding: 30px 24px 26px; border-radius: var(--r-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(232,199,122,.22); }
.step::before { counter-increment: step; content: '0' counter(step); display: block; font: 500 3rem/1 var(--font-display); color: var(--gold-2); margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { color: #d9c2b5; font-size: .95rem; }
.step .ic { position: absolute; top: 28px; right: 24px; width: 28px; height: 28px; color: var(--gold-2); opacity: .8; }

/* ---------- studio teaser ---------- */
.studio-teaser { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .studio-teaser { grid-template-columns: 1fr 1.15fr; } }
.ticks { display: grid; gap: 12px; margin: 10px 0 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { color: var(--ok); margin-top: 3px; }
.mock { position: relative; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fdfaf5; font-size: .8rem; color: var(--muted); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e5d6cc; }
.mock__bar span { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: #fff0cf; color: var(--ok); font-weight: 500; }
.mock__body { display: grid; grid-template-columns: 1fr; gap: 0; min-height: 360px; }
@media (min-width: 560px) { .mock__body { grid-template-columns: 210px 1fr; } }
.mock__panel { padding: 16px; border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; background: #fffdf9; }
.mock__tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.mock__tabs b { padding: 4px 9px; border-radius: 999px; font-size: .7rem; font-weight: 500; background: var(--blush); color: var(--brand); }
.mock__tabs b:first-child { background: var(--brand); color: #fff; }
.mock__f { display: grid; gap: 4px; font-size: .72rem; color: var(--muted); }
.mock__f div { height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 6px 8px; font-size: .78rem; color: var(--ink); overflow: hidden; white-space: nowrap; }
.mock__f .typing::after { content: '|'; animation: blink 1s steps(2) infinite; color: var(--brand); }
@keyframes blink { 50% { opacity: 0; } }
.mock__sw { display: flex; gap: 6px; }
.mock__sw i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--line); }
.mock__stage { display: grid; place-items: center; padding: 20px; background: repeating-linear-gradient(45deg, #faf3ea 0 10px, #f7eee3 10px 20px); }
.mock__stage .device { width: 170px; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 26px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.plan--featured { background: linear-gradient(170deg, #4a1530, #2a0c18); color: #f8ebdd; border-color: transparent; box-shadow: var(--shadow-lg); }
@media (min-width: 980px) { .plan--featured { transform: scale(1.04); } }
.plan__ribbon { position: absolute; top: 18px; right: 18px; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: #2b1606; font: 600 .7rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.plan__label { font: 600 .74rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.plan__name { font: 500 2.2rem/1 var(--font-display); }
.plan--featured .plan__name { color: #fff3e0; }
.plan__price b { font: 600 2.6rem/1 var(--font-display); }
.plan__price span { color: var(--muted); font-size: .9rem; }
.plan--featured .plan__price span, .plan--featured .plan__blurb { color: #d8bfb0; }
.plan__blurb { color: var(--muted); }
.plan__list { display: grid; gap: 9px; margin: 6px 0 14px; flex: 1; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.plan__list .ic { margin-top: 3px; color: var(--ok); }
.plan--featured .plan__list .ic { color: var(--gold-2); }
.plan__list .is-off { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.plan__list .is-off .ic { color: var(--muted); }
.plan--featured .btn--gold { box-shadow: 0 10px 30px -10px rgba(200,150,62,.7); }
.price-note { text-align: center; margin-top: 26px; }
.price-note .demo-note { display: inline-flex; text-align: left; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .95rem; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th { font: 600 1.25rem var(--font-display); color: var(--brand-ink); background: #fdf8f2; }
.compare thead th small { display: block; font: 500 .7rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.compare tbody th { text-align: left; font-weight: 500; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr:hover { background: #fffaf3; }
.compare .yes .ic { margin: 0 auto; color: var(--ok); }
.compare .no { color: #c9b9b1; }
.compare td:nth-child(3) { background: color-mix(in srgb, var(--gold) 6%, transparent); }

/* ---------- testimonials ---------- */
.tm-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.tm-nav { display: flex; gap: 8px; }
.tm-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 20px; scrollbar-width: thin; }
.tm { scroll-snap-align: start; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.tm__stars { display: flex; gap: 2px; color: var(--gold); }
.tm__stars .off { color: #e6d8cc; }
.tm blockquote { font: 500 1.28rem/1.45 var(--font-display); color: var(--brand-ink); flex: 1; }
.tm figcaption { display: flex; gap: 12px; align-items: center; }
.tm figcaption small { display: block; color: var(--muted); font-size: .82rem; }
.tm__av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--gold)); color: #fff; font: 600 1.1rem var(--font-display); }
.tm-note { font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* ---------- FAQ ---------- */
.faqs { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); transition: box-shadow .3s, border-color .3s; }
.faq[open] { border-color: color-mix(in srgb, var(--gold) 55%, transparent); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font: 600 1.18rem/1.3 var(--font-display); color: var(--brand-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .3s; color: var(--gold); }
.faq[open] summary .ic { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; color: var(--muted); animation: fade .35s ease; }

/* ---------- contact ---------- */
.contact { display: grid; gap: 30px; }
@media (min-width: 900px) { .contact { grid-template-columns: .9fr 1.1fr; } }
.contact__info { display: grid; gap: 14px; align-content: start; }
.contact__item { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.contact__item .feature__ic { margin: 0; width: 44px; height: 44px; }
.contact__item small { display: block; color: var(--muted); }
.contact-form { display: grid; gap: 14px; padding: clamp(20px, 4vw, 32px); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(40px, 7vw, 72px) clamp(22px, 5vw, 60px); text-align: center; color: #fbeee0;
  background: radial-gradient(ellipse at 50% 120%, rgba(232,199,122,.35), transparent 60%), linear-gradient(135deg, #5a1832, #2a0c18); }
.cta-band .h2 { color: #fff4e6; }
.cta-band .h2 em { color: var(--gold-2); }
.cta-band p { color: #e3c9b9; margin: 14px auto 26px; max-width: 52ch; }
.cta-band__m { position: absolute; width: 380px; height: 380px; color: var(--gold-2); opacity: .12; animation: spin 120s linear infinite; }
.cta-band__m--l { left: -140px; top: -120px; }
.cta-band__m--r { right: -140px; bottom: -150px; }
.cta-band > *:not(svg) { position: relative; }

/* ---------- page hero ---------- */
.page-hero { padding: clamp(40px, 6vw, 70px) 0 clamp(26px, 4vw, 40px); text-align: center; position: relative; overflow: hidden; }
.page-hero .section-head { margin-bottom: 0; }
.page-hero__m { position: absolute; width: 520px; height: 520px; left: 50%; top: -260px; transform: translateX(-50%); color: var(--gold); opacity: .12; }

/* ---------- live preview modal ---------- */
.preview-modal .modal__box { padding: 0; width: min(100%, 1180px); height: min(100dvh - 32px, 860px); overflow: hidden; }
.preview-modal .modal__close { z-index: 5; background: var(--paper); }
.pv { display: grid; height: 100%; grid-template-rows: 1fr auto; }
@media (min-width: 900px) { .pv { grid-template-columns: 1fr 360px; grid-template-rows: 1fr; } }
.pv__stage { display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 16px; background: repeating-linear-gradient(45deg, #faf3ea 0 12px, #f6ece0 12px 24px); min-height: 0; }
.pv__toolbar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pv__toolbar .chip { padding: 6px 12px; font-size: .82rem; }
.pv__frame { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.pv__scale { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: #1b1014; }
.pv__frame.is-desktop .pv__scale { border-radius: 10px; }
.pv__scale iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }
.pv__info { padding: 26px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); max-height: 40dvh; }
@media (min-width: 900px) { .pv__info { border-top: 0; border-left: 1px solid var(--line); max-height: none; padding-top: 56px; } }
.pv__tag { color: var(--gold); font-weight: 500; }
.pv__info .lead { font-size: .98rem; }
.pv__list { display: grid; gap: 8px; font-size: .94rem; }
.pv__list li { display: flex; gap: 8px; align-items: center; }
.pv__list .ic { color: var(--ok); }
.pv__pal { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .82rem; color: var(--muted); }
.pv__pal span { display: inline-flex; gap: 6px; align-items: center; }
.pv__pal i { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.pv__cta { display: grid; gap: 10px; margin-top: auto; }
@media (max-width: 899px) { .modal.preview-modal { padding: 0; } .preview-modal .modal__box { height: 100dvh; max-height: 100dvh; border-radius: 0; } .pv__info .lead, .pv__list, .pv__pal { display: none; } }

/* ---------- occasions ---------- */
.occgrid2 { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .occgrid2 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .occgrid2 { grid-template-columns: repeat(4, 1fr); } }
.occcard { position: relative; overflow: hidden; display: grid; gap: 6px; align-content: start; padding: 22px 20px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .3s, box-shadow .3s, border-color .3s; }
.occcard::after { content: ''; position: absolute; right: -34px; bottom: -34px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 24%, transparent), transparent 70%); pointer-events: none; }
.occcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.occcard b { font: 600 1.4rem/1.15 var(--font-display); color: var(--brand-ink); }
.occcard small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.occcard__n { display: inline-flex; gap: 4px; align-items: center; margin-top: 8px; font-size: .8rem; font-weight: 500; color: var(--brand); }
.occcard__n .ic { width: 14px; height: 14px; }
.occtabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.occtab { flex: none; display: inline-flex; gap: 7px; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .92rem; color: var(--ink); scroll-snap-align: start; transition: all .2s; }
.occtab:hover { border-color: var(--gold); }
.occtab[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.occtab .chip__n { opacity: .7; }
.chips[hidden] { display: none; }
.pv__occ { display: flex; flex-wrap: wrap; gap: 6px; }
.pv__occ .chip { padding: 4px 10px; font-size: .8rem; }
