/* ------------------------------------------------------------------
 * InviteMe — brand website styles (homepage, gallery, preview, sender)
 * ------------------------------------------------------------------ */
:root {
  --ink: #1d1220; --plum: #4b1c40; --plum-2: #6b2a5c; --gold: #c39a4e; --gold-2: #e8d1a0;
  --ivory: #fbf7f1; --cream: #f5ede2; --blush: #f3e2da; --muted: #6e6170; --line: #1d122017;
  --wa: #1fa855; --wa-dark: #128c4a;
  --f-display: "Fraunces", Georgia, serif; --f-body: "Manrope", system-ui, -apple-system, sans-serif; --f-deva: "Tiro Devanagari Hindi", serif;
  --r: 20px; --shadow: 0 24px 60px -30px rgb(29 18 32 / .45); --shadow-sm: 0 8px 24px -14px rgb(29 18 32 / .35);
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 16px/1.6 var(--f-body), var(--f-deva); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 13px 22px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: var(--plum); }
.btn-gold { background: linear-gradient(135deg, #e3c27f, #b8893c); color: var(--ink); box-shadow: 0 12px 28px -14px #b8893c; }
.btn-ghost { background: transparent; border-color: color-mix(in srgb, var(--ink) 22%, transparent); color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--ivory) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-display); font-size: 23px; font-weight: 600; text-decoration: none; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px 9px 9px 2px; background: linear-gradient(135deg, var(--plum), var(--ink)); color: var(--gold-2); display: grid; place-items: center; font-style: italic; font-size: 19px; }
.logo small { font: 600 12px var(--f-body); color: var(--gold); margin-left: -4px; }
.nav { display: none; gap: 26px; font-weight: 600; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.head-cta { display: none; }
.menu-btn { background: none; border: 0; width: 42px; height: 42px; display: grid; place-items: center; margin-right: -8px; }
.menu-btn span { width: 22px; height: 2px; background: var(--ink); box-shadow: 0 -7px var(--ink), 0 7px var(--ink); border-radius: 2px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 10px 16px 18px; }
.mobile-nav.open { display: grid; gap: 2px; }
.mobile-nav a { padding: 12px 4px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 12px; }
@media (min-width: 900px) { .nav, .head-cta { display: flex; } .menu-btn, .mobile-nav.open { display: none; } }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 6vw, 48px); }
.section-head p { color: var(--muted); margin: 14px 0 0; font-size: 17px; }
.section-dark { background: var(--ink); color: var(--ivory); }
.section-dark .section-head p, .section-dark .muted { color: #c9bccb; }
.section-cream { background: var(--cream); }
h2 em, h1 em { font-style: italic; color: var(--plum-2); font-weight: 400; }
.section-dark h2 em { color: var(--gold-2); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 64px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -30% auto auto; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, #f3dcc9 0%, transparent 65%); z-index: -1; }
.hero .wrap { display: grid; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(42px, 9vw, 76px); line-height: 1.02; letter-spacing: -.03em; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 520px; margin: 20px 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 0; list-style: none; }
.trust li::before { content: "✦"; color: var(--gold); margin-right: 7px; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.float-card { position: absolute; width: 150px; border-radius: 16px; box-shadow: var(--shadow); z-index: 2; }
.float-card.a { left: 0; top: 60px; transform: rotate(-8deg); }
.float-card.b { right: 0; bottom: 70px; transform: rotate(7deg); }
.chat-pop { position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translateX(-62%); background: #fff; border-radius: 16px 16px 16px 4px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; max-width: 260px; }
.chat-pop b { color: var(--wa-dark); }
@media (min-width: 900px) { .hero { padding: 64px 0 90px; } .hero .wrap { grid-template-columns: 1.05fr .95fr; } .float-card { width: 170px; } }
@media (max-width: 420px) { .float-card { width: 112px; } .float-card.a { left: -14px; } .float-card.b { right: -14px; } }

/* phone mockup */
.phone-frame { position: relative; width: 300px; height: 610px; border-radius: 46px; padding: 11px; background: #111; box-shadow: 0 40px 80px -30px rgb(29 18 32 / .65), inset 0 0 0 2px #333; flex: none; }
.phone-frame::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 20px; background: #111; z-index: 2; }
.phone-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #1d1220; display: block; }
.phone-frame .tap { position: absolute; inset: 0; border-radius: 46px; z-index: 3; }
.phone-lg { width: 340px; height: 690px; }
@media (max-width: 380px) { .phone-frame { width: 270px; height: 560px; } }

/* ---------- mini invite card (template thumbnail, pure CSS) ---------- */
.mini { position: relative; aspect-ratio: 3 / 4.2; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, var(--bg) 0%, var(--bg2) 100%); color: var(--fg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14% 10%; isolation: isolate; }
.mini::after { content: ""; position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--ac) 60%, transparent); border-radius: 10px; pointer-events: none; }
.mini .orn-wrap { color: var(--ac); width: 46%; margin-bottom: 6%; }
.mini .orn-wrap svg { width: 100%; height: auto; display: block; }
.mini[data-motif="stars"] .orn-wrap, .mini[data-motif="confetti"] .orn-wrap { position: absolute; inset: 0; width: auto; z-index: -1; opacity: .9; }
.mini[data-motif="stars"] .orn-wrap svg, .mini[data-motif="confetti"] .orn-wrap svg { height: 100%; }
.mini[data-motif="toran"] .orn-wrap { width: 82%; }
.mini-k:lang(hi), .mini-k.deva { letter-spacing: 0; }
.mini-k { font-size: clamp(8px, 2.4vw, 10.5px); letter-spacing: .18em; text-transform: uppercase; opacity: .85; font-family: var(--f-deva), sans-serif; }
.mini-n { font-family: var(--font); font-size: clamp(20px, 6vw, 30px); line-height: 1.05; margin: 6px 0 8px; }
.mini-d { font-size: clamp(8px, 2.4vw, 10.5px); letter-spacing: .16em; color: var(--ac); font-weight: 700; }
.mini[data-theme="neon-night"] .mini-n { text-shadow: 0 0 6px var(--ac), 0 0 18px var(--ac); font-size: clamp(16px, 4.6vw, 24px); }
.mini[data-theme="midnight-gold"] .mini-n { text-transform: uppercase; letter-spacing: .08em; font-size: clamp(15px, 4.4vw, 22px); }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; padding: 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cat .orn-wrap { position: absolute; right: -18px; top: -18px; width: 110px; color: var(--gold); opacity: .55; }
.cat[data-motif="stars"] .orn-wrap, .cat[data-motif="confetti"] .orn-wrap { width: 160px; right: -30px; }
.cat .orn-wrap svg { width: 100%; height: auto; }
.cat h3 { font-size: clamp(18px, 5vw, 22px); overflow-wrap: anywhere; }
.cat .local { font-family: var(--f-deva); font-size: 13px; color: var(--plum-2); }
.cat small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
@media (min-width: 700px) { .cats { grid-template-columns: repeat(4, 1fr); } .cat { min-height: 180px; } }

/* ---------- template cards ---------- */
.tgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
@media (min-width: 760px) { .tgrid { grid-template-columns: repeat(3, 1fr); gap: 28px 22px; } }
@media (min-width: 1100px) { .tgrid.four { grid-template-columns: repeat(4, 1fr); } }
.tcard { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.tcard-media { position: relative; border-radius: 16px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.tcard:hover .tcard-media { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow); }
.badge { position: absolute; z-index: 2; top: 10px; left: 10px; background: #fff; color: var(--ink); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.tcard h3 { font-size: 18px; font-weight: 600; }
.tcard-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tcard-meta b { color: var(--ink); white-space: nowrap; }
@media (min-width: 760px) { .tcard h3 { font-size: 21px; } .tcard-meta { font-size: 13.5px; } }

/* ---------- personal invite feature ---------- */
.personal { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .personal { grid-template-columns: 1fr 1fr; gap: 70px; } }
.personal h2 { font-size: clamp(32px, 6vw, 48px); }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; }
.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 24%, transparent); color: var(--gold-2); font-size: 13px; font-weight: 800; }
.demo-sender { background: #fff; color: var(--ink); border-radius: 26px; padding: 18px; box-shadow: var(--shadow); max-width: 420px; margin: 0 auto; width: 100%; }
.demo-sender .ds-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.demo-sender .ds-field { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-weight: 700; background: var(--ivory); }
.demo-sender .ds-field small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; }
.ds-chip { border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); }
.ds-chip.on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.wa-bubble { background: #dcf8c6; border-radius: 14px 14px 4px 14px; padding: 12px 14px; font-size: 14px; white-space: pre-line; line-height: 1.5; color: #111; font-family: var(--f-body), var(--f-deva); position: relative; }
.wa-bubble a { color: #0b6bcb; word-break: break-all; }
.wa-chat { background: #efe7dd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1.2' fill='%23d8cfc3'/%3E%3C/svg%3E"); border-radius: 18px; padding: 14px; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px; }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blush); color: var(--plum); margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font: 700 16px var(--f-body); letter-spacing: 0; }
.feature p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .feature { padding: 26px; } .feature h3 { font-size: 18px; } .feature p { font-size: 15px; } }

/* ---------- steps ---------- */
.steps { display: grid; gap: 14px; counter-reset: s; padding: 0; list-style: none; margin: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.steps li { counter-increment: s; position: relative; padding: 24px 20px 22px; border-radius: var(--r); background: #ffffff0d; border: 1px solid #ffffff1f; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-display); font-style: italic; font-size: 40px; color: var(--gold-2); line-height: 1; display: block; margin-bottom: 14px; }
.steps h3 { font: 700 18px var(--f-body); }
.steps p { margin: 6px 0 0; color: #c9bccb; font-size: 14.5px; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 28px 24px; }
.plan.popular { background: var(--ink); color: var(--ivory); border-color: var(--ink); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: linear-gradient(135deg, #e3c27f, #b8893c); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 28px; }
.plan .pt { color: var(--muted); margin: 4px 0 18px; font-size: 14.5px; }
.plan.popular .pt, .plan.popular .was { color: #c9bccb; }
.price { font-family: var(--f-display); font-size: 46px; line-height: 1; }
.was { text-decoration: line-through; color: var(--muted); font-size: 16px; margin-left: 8px; font-family: var(--f-body); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 14.5px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✦"; color: var(--gold); }
.plan-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 22px; }

/* ---------- testimonials ---------- */
.quotes { display: grid; gap: 14px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.quote { background: #fff; border-radius: var(--r); padding: 26px 24px; border: 1px solid var(--line); margin: 0; }
.quote .stars { color: var(--gold); letter-spacing: 3px; font-size: 14px; }
.quote blockquote { margin: 12px 0 18px; font-family: var(--f-display); font-size: 19px; line-height: 1.45; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.quote figcaption .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--blush); color: var(--plum); }
.quote figcaption small { display: block; color: var(--muted); }

/* ---------- instagram ---------- */
.ig-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 30px; }
.ig-handle { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: clamp(26px, 5vw, 36px); text-decoration: none; }
.ig-ring { width: 52px; height: 52px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34); }
.ig-ring span { width: 100%; height: 100%; border-radius: 50%; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; font-style: italic; font-size: 22px; border: 3px solid var(--ivory); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 900px) { .ig-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.ig-tile { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.ig-tile .mini { border-radius: 0; aspect-ratio: 1; padding: 10%; }
.ig-tile .mini::after { display: none; }
.ig-tile .mini-n { font-size: clamp(14px, 3.6vw, 20px); }
.ig-tile::after { content: "♥ View"; position: absolute; inset: 0; display: grid; place-items: center; background: rgb(29 18 32 / .55); color: #fff; font-weight: 800; opacity: 0; transition: opacity .2s; }
.ig-tile:hover::after { opacity: 1; }
.ig-embeds { display: grid; gap: 16px; justify-items: center; }
@media (min-width: 900px) { .ig-embeds { grid-template-columns: repeat(3, 1fr); } }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 30px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- cta band + footer ---------- */
.cta-band { background: linear-gradient(135deg, var(--plum) 0%, var(--ink) 100%); color: var(--ivory); border-radius: 30px; padding: 46px 24px; text-align: center; position: relative; overflow: hidden; }
.cta-band .orn-wrap { position: absolute; width: 260px; right: -70px; bottom: -80px; color: var(--gold); opacity: .25; }
.cta-band h2 { font-size: clamp(30px, 6vw, 46px); }
.cta-band p { color: #d8cbd6; margin: 12px auto 26px; max-width: 520px; }
.cta-band .hero-ctas { justify-content: center; }
.site-foot { padding: 56px 0 100px; border-top: 1px solid var(--line); margin-top: 72px; }
.foot-grid { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
.foot-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-grid > div:first-child { grid-column: auto; } }
.foot-grid h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--plum-2); }
.foot-legal { margin-top: 36px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgb(18 140 74 / .8); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- gallery page ---------- */
.page-head { padding: 40px 0 10px; text-align: center; }
.page-head h1 { font-size: clamp(38px, 8vw, 60px); }
.page-head p { color: var(--muted); max-width: 560px; margin: 14px auto 0; }
.filters { position: sticky; top: 64px; z-index: 30; background: color-mix(in srgb, var(--ivory) 92%, transparent); backdrop-filter: blur(10px); padding: 14px 0; margin-bottom: 18px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filter-row::-webkit-scrollbar { display: none; }
.fchip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.fchip span { opacity: .55; font-weight: 600; margin-left: 4px; }
.empty-state { text-align: center; padding: 60px 0; color: var(--muted); }

/* ---------- template preview page ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 22px 0 0; }
.crumbs a { text-decoration: none; }
.tp { display: grid; gap: 36px; padding: 26px 0 40px; }
@media (min-width: 960px) { .tp { grid-template-columns: auto 1fr; gap: 70px; align-items: start; } .tp-stage { position: sticky; top: 90px; } }
.tp-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tp-info h1 { font-size: clamp(38px, 7vw, 58px); }
.tp-info .lead { font-size: 18px; color: var(--muted); margin: 14px 0 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--blush); color: var(--plum); text-decoration: none; }
.tp-price { display: flex; align-items: baseline; gap: 8px; margin: 24px 0 4px; }
.tp-price .price { font-size: 40px; }
.tp-actions { display: grid; gap: 10px; margin: 22px 0 30px; }
.tp-actions .btn { white-space: normal; text-align: center; }
@media (min-width: 560px) { .tp-actions { grid-template-columns: 1fr 1fr; } .tp-actions .btn-gold, .tp-actions .btn-primary { grid-column: 1 / -1; } }
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); list-style: none; margin: 0; font-size: 14.5px; font-weight: 600; }
.incl li::before { content: "✓ "; color: var(--wa-dark); font-weight: 800; }
.tp-info h2 { font-size: 26px; margin: 34px 0 14px; }
.variants { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: end center; background: rgb(29 18 32 / .55); padding: 0; }
.modal[hidden] { display: none; }
.modal-card { width: min(520px, 100%); background: var(--ivory); border-radius: 26px 26px 0 0; padding: 26px 20px 28px; max-height: 92dvh; overflow: auto; animation: up .3s ease; }
@media (min-width: 600px) { .modal { place-items: center; padding: 20px; } .modal-card { border-radius: 26px; padding: 30px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.modal-card h2 { font-size: 30px; }
.modal-card .x { float: right; background: none; border: 0; font-size: 28px; line-height: 1; margin: -6px -4px 0 0; }
.form { display: grid; gap: 14px; margin-top: 18px; }
.form label, .field-label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); margin: 0; }
.input, .form input, .form select, .form textarea { font: 16px var(--f-body), var(--f-deva); padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: #fff; color: var(--ink); width: 100%; }
.input:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ink); color: var(--ivory); padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 90; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- guest sender ---------- */
.send-page { background: var(--cream); }
.send-top { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--ink); color: var(--ivory); }
.send-top .logo { font-size: 20px; }
.send-top .logo-mark { background: var(--gold-2); color: var(--ink); width: 26px; height: 26px; font-size: 16px; }
.send-open { font-size: 13.5px; font-weight: 700; text-decoration: none; color: var(--gold-2); }
.send-wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 120px; display: grid; gap: 12px; }
.send-head { padding: 10px 4px 4px; }
.send-head h1 { font-size: 34px; }
.send-head p { margin: 6px 0 0; font-size: 14px; }
.card { background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 1px 0 var(--line); display: grid; gap: 10px; }
.card h2 { font: 800 17px var(--f-body); }
.input-lg { font-size: 20px; padding: 14px 16px; font-weight: 700; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row .field-label, .card > .field-label { margin: 0; }
.phone { display: flex; align-items: center; gap: 0; }
.phone span { padding: 12px 10px 12px 14px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-right: 0; border-radius: 12px 0 0 12px; background: var(--ivory); font-weight: 700; }
.phone .input { border-radius: 0 12px 12px 0; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 42px; height: 24px; border-radius: 999px; background: #d8d0d6; position: relative; transition: .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px #0003; }
.switch input:checked + span { background: var(--wa); }
.switch input:checked + span::after { left: 21px; }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; text-align: center; gap: 0; padding: 12px 6px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; transition: .15s; }
.seg span b { font-family: var(--f-deva); font-size: 18px; font-weight: 400; }
.seg span small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.seg input:checked + span small { color: var(--gold-2); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.seg-sm { grid-template-columns: repeat(2, auto); gap: 4px; }
.seg-sm span { padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: grid; padding: 9px 14px 9px 34px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; position: relative; line-height: 1.25; }
.chip span::before { content: ""; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #c9bfc6; }
.chip span b { font-size: 14.5px; }
.chip span small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.chip input:checked + span { border-color: var(--ink); background: var(--ivory); }
.chip input:checked + span::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.mini-links { display: flex; gap: 4px; }
.mini-links button { background: none; border: 0; font-size: 13px; font-weight: 800; color: var(--plum-2); padding: 4px 6px; }
.wa-preview { background: #efe7dd; border-radius: 16px; padding: 12px; position: relative; }
.wa-preview textarea { width: 100%; resize: none; border: 0; background: #dcf8c6; border-radius: 14px 14px 4px 14px; padding: 12px 14px; font: 15px/1.55 var(--f-body), var(--f-deva); color: #111; min-height: 220px; overflow: hidden; }
.wa-preview textarea:focus { outline: 2px solid var(--wa); }
.wa-preview .reset { background: none; border: 0; font-size: 12.5px; font-weight: 800; color: var(--plum-2); margin-top: 6px; }
.send-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); justify-content: center; }
.send-bar .btn-wa { flex: 1; max-width: 340px; font-size: 16px; padding: 15px 18px; }
.send-bar .btn-ghost { padding: 15px 14px; background: #fff; }
.sent ul { list-style: none; padding: 0; margin: 0; display: grid; }
.sent li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.sent li small { display: block; color: var(--muted); font-size: 12.5px; }
.sent li span { display: flex; gap: 4px; flex: none; }
.sent li button { border: 1px solid var(--line); background: var(--ivory); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; }
.sent li.empty { color: var(--muted); justify-content: center; font-size: 14px; }
.lock { text-align: center; margin-top: 40px; }
.loader-dark { width: 36px; height: 36px; margin: 80px auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--plum); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* reveal */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- self-serve editor (/create.html) ---------- */
.btn-lg { padding: 16px 22px; font-size: 16.5px; }
.center { text-align: center; justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; font-weight: 800; color: var(--plum-2); text-decoration: underline; cursor: pointer; }
.cr-head { padding: 30px 0 18px; max-width: 760px; }
.cr-head h1 { font-size: clamp(32px, 6vw, 50px); }
.cr-head p { margin: 12px 0 0; }
.cr-head .link-btn { margin-top: 10px; }
.cr { display: grid; gap: 24px; padding-bottom: 120px; }
@media (min-width: 980px) { .cr { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; } }
.cr-form { display: grid; gap: 12px; min-width: 0; }
.cr-sec { gap: 14px; padding: 0; box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgb(29 18 32 / .4); }
.cr-sec > summary, .cr-sec > h2 { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 18px; font: 800 17px var(--f-body); margin: 0; }
.cr-sec > summary::-webkit-details-marker { display: none; }
.cr-sec > summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 400; color: var(--gold); }
.cr-sec[open] > summary::after { content: "–"; }
.cr-sec > summary em { font-style: normal; font-weight: 600; font-size: 13px; }
.cr-sec > summary span, .cr-sec > h2 span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-2); font-size: 13px; flex: none; }
.cr-sec > :not(summary):not(h2) { margin-left: 18px; margin-right: 18px; }
.cr-sec > :last-child { margin-bottom: 18px; }
.cr-pay > h2 { cursor: default; }
.fld { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); min-width: 0; }
.fld small { font-weight: 600; opacity: .8; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row.three { grid-template-columns: 1.1fr .8fr 1fr; } }
.field-row.three { grid-template-columns: 1fr 1fr; }
.field-row.three > :last-child { grid-column: 1 / -1; }
@media (min-width: 560px) { .field-row.three > :last-child { grid-column: auto; } }
textarea.input { resize: vertical; line-height: 1.5; }
.tpl-pick { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tpl-opt { flex: none; width: 96px; background: none; border: 0; padding: 0; display: grid; gap: 6px; scroll-snap-align: start; text-align: center; }
.tpl-opt .mini { border-radius: 12px; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s; padding: 12% 8%; }
.tpl-opt .mini-n { font-size: 15px; }
.tpl-opt .mini-k, .tpl-opt .mini-d { font-size: 7px; }
.tpl-opt b { font-size: 12px; }
.tpl-opt[aria-pressed="true"] .mini { outline-color: var(--ink); }
.tpl-opt[aria-pressed="true"] b { color: var(--plum-2); }
.ev-edits { display: grid; gap: 12px; }
.ev-edit { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--ivory); }
.ev-edit.over { border-color: #d64545; background: #fff5f5; }
.ev-edit-top { display: flex; gap: 8px; }
.ev-name { font-weight: 800; font-size: 17px; }
.x-btn { flex: none; width: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 15px; }
.chips-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips-add .fchip { padding: 7px 12px; font-size: 13px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--cream); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .6); color: #fff; font-size: 12px; }
.ph.add { display: grid; place-items: center; border: 1.5px dashed color-mix(in srgb, var(--ink) 25%, transparent); font-size: 13px; font-weight: 800; color: var(--muted); cursor: pointer; text-align: center; padding: 6px; }
.slug-in { display: flex; }
.slug-in span { padding: 12px 4px 12px 12px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-right: 0; border-radius: 12px 0 0 12px; background: var(--ivory); color: var(--muted); font-weight: 700; white-space: nowrap; font-size: 14px; display: grid; place-items: center; }
.slug-in .input { border-radius: 0 12px 12px 0; font-weight: 800; min-width: 0; }
.ok { color: var(--wa-dark); font-weight: 800; }
.plan-pick { display: grid; gap: 8px; }
.plan-opt { position: relative; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt > span { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; }
.plan-opt b { font-size: 16px; }
.plan-opt em { font-style: normal; font-family: var(--f-display); font-size: 22px; grid-row: span 2; align-self: center; }
.plan-opt small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.plan-opt input:checked + span { border-color: var(--ink); background: var(--ivory); box-shadow: inset 0 0 0 1px var(--ink); }
.plan-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }

.cr-preview { display: none; }
.cr-pv-bar { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 340px; }
.pv-close { display: none; background: none; border: 0; font-size: 34px; line-height: 1; color: var(--ivory); }
@media (min-width: 980px) {
  .cr-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; position: sticky; top: 84px; }
  .cr-preview .phone-frame { width: 340px; height: min(690px, calc(100dvh - 150px)); }
}
@media (max-width: 979px) {
  .cr-preview.show { display: flex; position: fixed; inset: 0; z-index: 80; background: var(--ink); flex-direction: column; align-items: center; gap: 10px; padding: 10px 10px 0; }
  .cr-preview.show .phone-frame { width: 100%; max-width: 480px; flex: 1; height: auto; border-radius: 22px 22px 0 0; padding: 0; box-shadow: none; }
  .cr-preview.show .phone-frame::before { display: none; }
  .cr-preview.show iframe { border-radius: 22px 22px 0 0; }
  .cr-preview.show .pv-close { display: block; }
  .cr-preview.show .seg-sm span { color: var(--ivory); border-color: #ffffff33; }
  .cr-preview.show .seg-sm input:checked + span { background: var(--ivory); color: var(--ink); }
}
.cr-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ivory) 90%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.cr-bar .btn { flex: 1; }
.cr-bar .btn-ghost { flex: .6; background: #fff; }
@media (min-width: 980px) { .cr-bar { display: none; } }
.page-create .wa-float { bottom: 84px; }
@media (min-width: 980px) { .page-create .wa-float { bottom: 16px; } }

.done { max-width: 600px; margin: 40px auto 80px; padding: 32px 22px; text-align: center; gap: 16px; }
.done h1 { font-size: clamp(34px, 7vw, 48px); }
.done-ico { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--wa); color: #fff; font-size: 32px; display: grid; place-items: center; font-weight: 800; }
.done-box { text-align: left; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 8px; background: var(--ivory); }
.done-box p { margin: 0; }
.link-box { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; text-align: left; }
.link-box span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 14px; }
.link-box .btn { padding: 9px 14px; font-size: 13.5px; }
/* keep wide content (scrollers, long links) from stretching grid cards */
.card, .cr-form { grid-template-columns: minmax(0, 1fr); }
.incl-wrap { margin-top: 28px; }
.incl-wrap h3 { font-size: 22px; margin-bottom: 12px; text-align: center; }
.badge-tier { left: auto; right: 10px; background: var(--ink); color: var(--gold-2); }
.badge-tier.tier-luxury { background: linear-gradient(135deg, #e3c27f, #b8893c); color: var(--ink); }
.fchip-sm { padding: 6px 13px; font-size: 13px; }

.seg.two { grid-template-columns: 1fr 1fr; }
.mode-tabs span { padding: 12px 10px; }
.mode-tabs span b { font-family: var(--f-body); font-size: 15.5px; font-weight: 800; }
.mode-tabs span small { font-weight: 600; line-height: 1.3; margin-top: 2px; }
[hidden] { display: none !important; }

/* editor v2: labels, music, price line, order screen */
.fld > .fl { display: block; }
.tpl-opt small { font-size: 11.5px; font-weight: 800; color: var(--muted); margin-top: -4px; }
.music-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mopt { position: relative; }
.mopt input { position: absolute; opacity: 0; }
.mopt span { display: grid; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; height: 100%; }
.mopt b { font-size: 14.5px; }
.mopt small { color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.35; }
.mopt input:checked + span { border-color: var(--ink); background: var(--ivory); box-shadow: inset 0 0 0 1px var(--ink); }
.mopt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
#musicDetail:not(:empty) { display: grid; gap: 12px; }
.song-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.song-pick { cursor: pointer; }
#songAudio { width: 100%; }
.song-start { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: end; }
@media (min-width: 560px) { .song-start { grid-template-columns: 1fr auto auto; } }
.song-start .btn { padding: 12px 16px; font-size: 14px; }
.price-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--ivory); border: 1px solid var(--line); font-size: 14.5px; }
.price-sm { font-family: var(--f-display); font-size: 26px; white-space: nowrap; }
.price-sm s { font-family: var(--f-body); font-size: 14px; color: var(--muted); }
.next-steps { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }
.admin .order h2 { font-family: var(--f-display); font-size: 22px; font-weight: 500; }
.admin .order p { margin: 0; }
.order-code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .06em; background: var(--ink); color: var(--gold-2); padding: 3px 9px; border-radius: 8px; font-size: 13px; }
.order-ev { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-actions .btn { padding: 10px 14px; font-size: 13.5px; }
.upi-ref { display: grid; gap: 6px; }
.upi-ref .input-sm { width: 100%; max-width: 260px; font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.pay { margin-top: 16px; }
.pay h1 { font-size: clamp(36px, 9vw, 52px); margin: 0; }
.warn { color: #b3261e; font-weight: 700; }

/* cinematic thumbnails: tiny animated scene */
.mini-cine { justify-content: flex-start; padding-top: 14%; }
.mini-cine .mini-k, .mini-cine .mini-n, .mini-cine .mini-d { position: relative; z-index: 2; text-shadow: 0 1px 8px rgb(0 0 0 / .25); }
.mini-cine .mini-d { background: rgb(255 255 255 / .78); color: #3a0d1c; padding: 2px 8px; border-radius: 999px; }
.mini-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.mini-scene .ms-far, .mini-scene .ms-near { position: absolute; left: 0; right: 0; bottom: 0; }
.mini-scene .ms-far { height: 58%; opacity: .55; }
.mini-scene .ms-near { height: 44%; }
.mini-scene svg { width: 100%; height: 100%; display: block; }
.mini-scene .ms-couple { position: absolute; left: 50%; bottom: 3%; width: 62%; transform: translateX(-50%); animation: msBob 3.5s ease-in-out infinite; }
.mini-scene .ms-couple svg { height: auto; }
@keyframes msBob { 50% { transform: translate(-50%, -4px); } }
.mini-cine::after { border-color: rgb(255 255 255 / .55); z-index: 3; }
.mini-cine::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 50% 46%, rgb(255 245 210 / .65), transparent 40%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .mini-scene .ms-couple { animation: none; } }

/* editor: couple image + extras */
.hero-img { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--ivory); border: 1px dashed color-mix(in srgb, var(--gold) 70%, transparent); }
.hi-thumb { flex: none; width: 84px; height: 104px; border-radius: 50px 50px 10px 10px; overflow: hidden; background: #fff; display: grid; place-items: center; color: var(--gold); font-size: 28px; border: 1px solid var(--line); }
.hi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hi-thumb.cutout img { object-fit: contain; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.hi-body { display: grid; gap: 6px; min-width: 0; }
.hi-body p { margin: 0; }
.small-btn { padding: 9px 14px; font-size: 13.5px; cursor: pointer; }
.input-sm { padding: 8px 10px; font-size: 14px; width: auto; }
.info-row { grid-template-columns: .8fr 1.6fr; }

/* brand logo image (assets/img/logo.png) */
.logo-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--line); }
.send-top .logo-img { width: 30px; height: 30px; }

/* brand wordmark */
.logo:has(.logo-word) { gap: 0; }
.logo-word { display: block; height: 40px; width: auto; }
.site-foot .logo-word { height: 72px; margin-bottom: 4px; }
.send-top .logo-word { height: 30px; }
@media (max-width: 420px) { .site-head .logo-word { height: 34px; } }
/* story-scene thumbnails */
.mini-scene .ms-full { position: absolute; inset: 0; }
.mini-scene .ms-full svg, .mini-scene .ms-toran svg, .mini-scene .ms-gw svg { width: 100%; height: 100%; display: block; }
.mini-scene .ms-toran { position: absolute; left: 0; right: 0; top: 0; height: 26%; }
.mini-scene .ms-gw { position: absolute; left: 0; right: 0; bottom: 34%; height: 46%; }
.mini-scene .ms-water { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(#1f2d63, #0b1534); }

.story-row { grid-template-columns: .5fr 1fr 1.6fr; }
@media (max-width: 559px) { .story-row { grid-template-columns: .6fr 1.4fr; } .story-row > :last-child { grid-column: 1 / -1; } }

/* gallery: quiet empty occasions, WhatsApp chip, friendly empty state */
.fchip-empty { color: var(--muted); background: transparent; border-style: dashed; }
.fchip-wa { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: var(--wa); color: #fff; border-color: var(--wa); }
.fchip-wa svg { width: 16px; height: 16px; }
.empty-card { grid-column: 1 / -1; max-width: 620px; margin: 10px auto 30px; padding: 34px 26px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-sm); }
.empty-card h3 { font-size: clamp(24px, 4.6vw, 30px); margin: 8px 0 10px; }
.empty-card p { color: var(--muted); margin: 0 auto 20px; max-width: 460px; }
.empty-ico { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--gold); font-size: 24px; }
@media (min-width: 900px) { .filter-row { flex-wrap: wrap; overflow: visible; } }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 10px 0 60px; }
.legal .toc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; margin: 0 0 34px; }
.legal .toc h2 { font: 700 13px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 28px; }
.legal .toc li { margin: 4px 0; break-inside: avoid; }
.legal .toc a { color: var(--plum); text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }
.legal section { scroll-margin-top: 90px; }
.legal h2 { font-family: var(--f-display); font-size: clamp(22px, 4.6vw, 28px); margin: 38px 0 10px; color: var(--ink); }
.legal h3 { font-size: 16px; margin: 20px 0 6px; }
.legal p, .legal li { color: #3d3140; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--plum-2); }
.legal .note { background: var(--cream); border-radius: 14px; padding: 14px 18px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.legal .contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; }
.legal .contact-card p { margin: 4px 0; }
@media (max-width: 560px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: 2px 0; } .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; } .legal td:first-child { font-weight: 700; } }

/* template page: preview language */
.lang-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 4px; }
.lang-pick button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 13px var(--f-body), var(--f-deva); color: var(--ink); cursor: pointer; }
.lang-pick button[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
/* heritage scene thumbnails (art-heritage.js) */
.mini-scene .ms-layer { position: absolute; left: 0; right: 0; }
.mini-scene .ms-layer svg { width: 100%; height: 100%; display: block; }
.mini-scene .ms-alpona { position: absolute; left: 50%; top: 40%; width: 86%; aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .9; }
.mini-scene .ms-alpona svg { width: 100%; height: 100%; }
/* envelope thumbnails (art-keepsake.js) */
.mini-scene .ms-flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.mini-scene .ms-seal { position: absolute; left: 50%; top: 58%; width: 34%; transform: translate(-50%, -50%); filter: drop-shadow(0 6px 8px rgb(60 10 20 / .4)); }
.mini-scene .ms-seal svg { width: 100%; height: auto; display: block; }

/* editor: English & हिंदी versions for the guest language switch */
.alt-lang { display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--line); border-radius: 14px; background: rgb(255 255 255 / .5); }
.alt-head { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.alt-head b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.field-row.pair { grid-template-columns: 1fr 1fr; gap: 10px; }
.alt-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--line); color: var(--ink); font-size: 11px; font-weight: 700; }
.alt-lang [lang="hi"] { font-family: "Tiro Devanagari Hindi", var(--f-body), serif; }
/* Chandni thumbnail: crescent moon, lake palace, stars (motif) */
.mini[data-theme="chandni"] { background: radial-gradient(circle at 50% 61%, #fbf3dc 0 8.6%, #fbf3dc4d 9.1%, #fbf3dc14 16%, transparent 26%), linear-gradient(180deg, #071426 0%, #10304f 62%, #1d4568 100%); justify-content: flex-start; padding-top: 24%; }
.mini[data-theme="chandni"]::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36%; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 130' preserveAspectRatio='xMidYMax slice'%3E%3Cg fill='%23071626'%3E%3Crect x='40' y='70' width='220' height='30'/%3E%3Crect x='120' y='52' width='60' height='48'/%3E%3Cpath d='M124 53C118 36 136 24 150 10 164 24 182 36 176 53z'/%3E%3Crect x='148' y='2' width='4' height='10'/%3E%3Crect x='70' y='58' width='26' height='42'/%3E%3Cpath d='M70 59c0-10 8-16 13-20 5 4 13 10 13 20z'/%3E%3Crect x='204' y='58' width='26' height='42'/%3E%3Cpath d='M204 59c0-10 8-16 13-20 5 4 13 10 13 20z'/%3E%3Crect x='30' y='40' width='6' height='60'/%3E%3Crect x='264' y='40' width='6' height='60'/%3E%3Crect x='0' y='96' width='300' height='6'/%3E%3C/g%3E%3Cg fill='%23ffd27e' opacity='.85'%3E%3Cpath d='M142 100V78a8 8 0 0 1 16 0v22z'/%3E%3Crect x='80' y='72' width='5' height='9' rx='2.5'/%3E%3Crect x='215' y='72' width='5' height='9' rx='2.5'/%3E%3Crect x='104' y='80' width='4' height='8' rx='2'/%3E%3Crect x='192' y='80' width='4' height='8' rx='2'/%3E%3C/g%3E%3Crect y='102' width='300' height='28' fill='%230c2640'/%3E%3Cg fill='%23fbf3dc' opacity='.5'%3E%3Crect x='130' y='108' width='40' height='1.5'/%3E%3Crect x='137' y='114' width='26' height='1.5'/%3E%3Crect x='133' y='120' width='34' height='1.5'/%3E%3C/g%3E%3C/svg%3E") center bottom / cover no-repeat; }
.mini[data-theme="chandni"]::after { border-color: #dcc08488; }
.mini[data-theme="chandni"] .orn-wrap { opacity: .55; }
.mini[data-theme="chandni"] .orn-wrap path[d^="M300 40a"] { display: none; }
details.alt-lang > summary { cursor: pointer; list-style: none; }
details.alt-lang > summary::-webkit-details-marker { display: none; }
details.alt-lang > summary b::after { content: " +"; color: var(--gold); }
details.alt-lang[open] > summary b::after { content: " –"; }
.mini-scene .ms-seal.pt { aspect-ratio: 1; background: center / 122% no-repeat; -webkit-mask: radial-gradient(circle closest-side, #000 86%, transparent 91%); mask: radial-gradient(circle closest-side, #000 86%, transparent 91%); display: grid; place-items: center; }
.mini-scene .ms-seal.pt span { font: 400 26px/1 "Tiro Devanagari Hindi", serif; background: linear-gradient(160deg, #fff6d6, #e9c77f 35%, #a8792a 62%, #f6dc95); -webkit-background-clip: text; background-clip: text; color: transparent; }
