/* =========================================================
   Kelkeleh — guest invitation & public pages
   Fonts are self-hosted (Google Fonts is unreliable in Iran)
   ========================================================= */
@font-face { font-family: Vazirmatn; src: url(/fonts/Vazirmatn-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(/fonts/Vazirmatn-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(/fonts/Vazirmatn-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Nastaliq; src: url(/fonts/Nastaliq-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Nastaliq; src: url(/fonts/Nastaliq-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: ArefRuqaa; src: url(/fonts/ArefRuqaa-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: ArefRuqaa; src: url(/fonts/ArefRuqaa-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
    --bg: #f7f2e9; --surface: #fffdf8; --primary: #b08947; --accent: #6b4f30; --text: #352a21; --muted: #8a7c6d;
    --envelope: #ebdfca; --seal: #7a1f24;
    --display: 'Nastaliq', 'ArefRuqaa', serif; --display-lh: 2.35;

    --line: color-mix(in srgb, var(--primary) 28%, transparent);
    --line-strong: color-mix(in srgb, var(--primary) 55%, transparent);
    --tint: color-mix(in srgb, var(--primary) 8%, var(--surface));
    --tint-2: color-mix(in srgb, var(--primary) 14%, var(--surface));
    --gold-dark: color-mix(in srgb, var(--primary) 62%, #000);
    --gold-light: color-mix(in srgb, var(--primary) 35%, #fff);
    --foil: linear-gradient(105deg, var(--gold-dark) 0%, var(--primary) 22%, var(--gold-light) 42%, var(--primary) 58%, var(--gold-dark) 80%, var(--primary) 100%);
    --shadow-sm: 0 1px 2px rgba(40, 28, 15, .06), 0 4px 14px -6px rgba(40, 28, 15, .12);
    --shadow-lg: 0 2px 6px rgba(40, 28, 15, .05), 0 30px 60px -28px rgba(40, 28, 15, .35);
    --radius: 18px;
    --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; min-height: 100vh; font-family: Vazirmatn, Tahoma, sans-serif; color: var(--text); background: var(--bg);
    line-height: 1.95; font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* paper grain */
body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .42 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.dark::before { mix-blend-mode: screen; opacity: .35; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.4; }
p { margin: 0; }
.muted { color: var(--muted); font-size: .9rem; }
.center { text-align: center; }
[hidden] { display: none !important; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- buttons & chips ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .5em 1.3em;
    border-radius: 999px; border: 1px solid var(--line-strong); color: var(--accent); background: transparent;
    font: inherit; font-size: .92rem; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .15s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn:hover { background: var(--tint); }
.btn:active { transform: scale(.97); }
.btn.primary {
    color: var(--surface); border-color: transparent;
    background: linear-gradient(135deg, var(--gold-light) -40%, var(--primary) 40%, var(--gold-dark) 140%);
    box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--primary) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn.primary:hover { box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--primary) 90%, transparent), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.chip {
    display: inline-flex; align-items: center; padding: .2em .9em; border-radius: 999px; font-size: .8rem; text-decoration: none;
    color: var(--muted); border: 1px solid var(--line); background: var(--surface); transition: color .2s, border-color .2s;
}
.chip:hover { color: var(--accent); border-color: var(--line-strong); }

/* ---------- preview banner ---------- */
.preview-banner {
    position: sticky; top: 0; z-index: 70; text-align: center; font-size: .82rem; padding: .45em 1em;
    background: color-mix(in srgb, var(--primary) 85%, #000); color: #fff; letter-spacing: .01em;
}

/* =========================================================
   Envelope
   ========================================================= */
.envelope-stage { display: none; }
.js .envelope-stage {
    position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
    padding: 16px; transition: opacity .9s var(--ease), visibility .9s;
    background:
        radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%),
        radial-gradient(90% 60% at 50% 100%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 60%),
        var(--bg);
}
.js body.invite-page:not(.opened) { overflow: hidden; }
.envelope-stage.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.env-wrap { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.envelope { position: relative; width: min(86vw, 380px); aspect-ratio: 1.42; perspective: 1600px; }
.env-back, .env-pocket { position: absolute; inset: 0; border-radius: 8px; }
.env-back {
    background: color-mix(in srgb, var(--envelope) 82%, #000);
    box-shadow: 0 40px 70px -30px rgba(30, 20, 10, .55), 0 10px 20px -12px rgba(30, 20, 10, .3);
}
.env-letter {
    position: absolute; inset: 7% 6% 4%; z-index: 1; border-radius: 4px; display: flex; flex-direction: column; align-items: center;
    padding-top: 9%; gap: 2px; background: var(--surface);
    box-shadow: 0 1px 4px rgba(0,0,0,.08); border: 1px solid var(--line);
    transition: transform 1.1s var(--ease) .55s;
}
.env-letter::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); border-radius: 2px; }
.env-letter-kicker { font-size: .7rem; letter-spacing: .3em; color: var(--muted); }
.env-letter-names { font-family: var(--display); line-height: var(--display-lh); color: var(--primary); font-size: clamp(1.15rem, 5.6vw, 1.6rem); }
.env-letter-names i { font-style: normal; font-size: .7em; color: var(--accent); margin: 0 .25em; }
.env-pocket {
    z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4.5%;
    background: linear-gradient(170deg, color-mix(in srgb, var(--envelope) 92%, #fff), var(--envelope) 60%, color-mix(in srgb, var(--envelope) 94%, #000));
    clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
}
.env-pocket::before, .env-pocket::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(0,0,0,.07) 50%, transparent calc(50% + 1px));
}
.env-pocket::after { transform: scaleX(-1); }
.env-address { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; font-weight: 500; color: var(--accent); font-size: .95rem; }
.env-address small { font-size: .68rem; letter-spacing: .25em; color: var(--muted); font-weight: 400; }
.env-flap { position: absolute; inset: 0; z-index: 3; transform-origin: top center; transform-style: preserve-3d;
    transition: transform .8s cubic-bezier(.45,.05,.3,1), z-index 0s linear .4s; filter: drop-shadow(0 5px 6px rgba(0,0,0,.14)); }
.env-flap-front, .env-flap-liner { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 54%); backface-visibility: hidden; border-radius: 8px 8px 0 0; }
.env-flap-front { background: linear-gradient(180deg, color-mix(in srgb, var(--envelope) 96%, #fff), color-mix(in srgb, var(--envelope) 90%, #000)); }
.env-flap-liner {
    transform: rotateX(180deg);
    background:
        radial-gradient(circle at 25% 25%, color-mix(in srgb, var(--primary) 45%, transparent) 2px, transparent 2.5px) 0 0 / 18px 18px,
        radial-gradient(circle at 75% 75%, color-mix(in srgb, var(--primary) 30%, transparent) 1.5px, transparent 2px) 0 0 / 18px 18px,
        color-mix(in srgb, var(--primary) 18%, var(--surface));
}
.env-seal {
    position: absolute; z-index: 4; left: 50%; top: 52%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border: 0; padding: 0;
    cursor: pointer; color: #fff; border-radius: 47% 53% 49% 51% / 52% 46% 54% 48%;
    background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--seal) 55%, #fff) 0, var(--seal) 45%, color-mix(in srgb, var(--seal) 60%, #000) 100%);
    box-shadow: 0 8px 16px rgba(0,0,0,.35), inset 0 -4px 8px rgba(0,0,0,.3), inset 0 3px 6px rgba(255,255,255,.25);
    transition: transform .5s var(--ease), opacity .4s;
    animation: sealPulse 2.6s ease-in-out infinite;
}
.seal-ring { position: absolute; inset: 9px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.35); box-shadow: inset 0 0 6px rgba(0,0,0,.25); }
.seal-text { position: relative; font-family: var(--display); line-height: 1; font-size: 1.15rem; text-shadow: 0 1px 1px rgba(0,0,0,.35); display: block; padding-top: 2px; }
.env-seal:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
@keyframes sealPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.env-hint { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: .6em; transition: opacity .3s; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 60%, transparent); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.envelope-stage.opening .env-wrap { animation: none; }
.envelope-stage.opening .env-seal { transform: scale(.3) rotate(-25deg); opacity: 0; animation: none; }
.envelope-stage.opening .env-flap { transform: rotateX(180deg); z-index: 0; }
.envelope-stage.opening .env-letter { transform: translateY(-62%); }
.envelope-stage.opening .env-hint { opacity: 0; }

/* =========================================================
   Card layout
   ========================================================= */
#petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.invite { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; padding: 0 18px 40px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 56px 0 72px; }
.hero-corner { position: absolute; top: 8px; width: min(42vw, 210px); color: var(--primary); opacity: .9; pointer-events: none; }
.hero-corner.tl { left: -10px; }
.hero-corner.tr { right: -10px; transform: scaleX(-1); }
.ornament-persian .hero-corner, .ornament-classic .hero-corner { opacity: .75; }
.verse { font-family: var(--display); line-height: var(--display-lh); color: var(--accent); font-size: 1.15rem; white-space: pre-line; max-width: 26em; }

.arch {
    position: relative; margin: 22px auto 10px; width: min(64vw, 250px); aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px;
    padding: 7px; background: var(--foil); box-shadow: var(--shadow-lg);
}
.arch::after { content: ""; position: absolute; inset: -9px; border-radius: 999px 999px 28px 28px; border: 1px solid var(--line-strong); pointer-events: none; }
.arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 16px 16px; }
.monogram {
    width: 100%; height: 100%; border-radius: 999px 999px 16px 16px; display: grid; place-items: center;
    background:
        radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%),
        var(--surface);
}
.monogram span {
    font-family: var(--display); line-height: var(--display-lh); font-size: clamp(2.6rem, 14vw, 3.6rem); font-weight: 700;
    background: var(--foil); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine 7s linear infinite;
}
.ornament-minimal .arch { border-radius: 26px; background: var(--line-strong); padding: 1px; }
.ornament-minimal .arch::after { border-radius: 32px; }
.ornament-minimal .arch img, .ornament-minimal .monogram { border-radius: 25px; }

.kicker { margin-top: 18px; font-size: .78rem; letter-spacing: .5em; color: var(--muted); padding-right: .5em; }
.names {
    font-family: var(--display); line-height: var(--display-lh); font-weight: 700; font-size: clamp(2.6rem, 13vw, 4.1rem);
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 .3em; margin: -6px 0 2px;
}
.foil {
    background: var(--foil); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine 7s linear infinite; padding: 0 .08em;
}
@keyframes shine { to { background-position: 220% center; } }
.names .amp { font-size: .5em; color: var(--accent); font-weight: 400; }
.hero-date { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9rem; }
.hero-date b { font-weight: 500; color: var(--text); font-size: 1.15rem; padding: 2px 16px; border-inline: 1px solid var(--line-strong); }
.scroll-cue {
    position: absolute; bottom: 18px; left: 50%; translate: -50% 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    color: var(--primary); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent);
    animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- generic blocks ---------- */
.block {
    position: relative; background: var(--surface); border-radius: var(--radius); padding: 34px 22px; margin: 18px 0;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line); text-align: center;
}
.block::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); border-radius: calc(var(--radius) - 6px); pointer-events: none; }
.ornament-minimal .block::before { display: none; }
.orn { color: var(--primary); display: flex; justify-content: center; }
.ornament { width: min(220px, 64%); height: auto; }
.section-title { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 0 0 18px; }
.section-title span { font-family: var(--display); line-height: var(--display-lh); font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.section-title::before, .section-title::after { content: ""; height: 1px; flex: 1; max-width: 90px; background: linear-gradient(to left, var(--line-strong), transparent); }
.section-title::after { background: linear-gradient(to right, var(--line-strong), transparent); }

/* ---------- greeting ---------- */
.greeting .orn { margin-bottom: 12px; }
.to { font-weight: 700; font-size: 1.22rem; color: var(--accent); margin-bottom: 10px; }
.message { max-width: 30em; margin: 0 auto; white-space: pre-line; color: color-mix(in srgb, var(--text) 88%, transparent); }
.parents { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.parents div { display: flex; flex-direction: column; align-items: center; }
.parents small { font-size: .72rem; letter-spacing: .2em; color: var(--muted); }
.parents span { font-weight: 500; }
.parents-sep { width: 6px; height: 6px; transform: rotate(45deg); background: var(--primary); }
.seats { display: inline-block; margin-top: 20px; padding: 6px 18px; border-radius: 999px; background: var(--tint-2); font-size: .9rem; }
.seats b { color: var(--accent); }

/* ---------- countdown ---------- */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0; }
.countdown div {
    aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative;
}
.countdown div::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed var(--line); }
.countdown b { font-size: clamp(1.3rem, 6vw, 1.75rem); font-weight: 700; line-height: 1.2; color: var(--primary); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .72rem; color: var(--muted); }

/* ---------- events ---------- */
.events { margin: 40px 0 10px; }
.event {
    display: grid; grid-template-columns: 82px 1fr; gap: 18px; padding: 22px 18px; margin-bottom: 16px; background: var(--surface);
    border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.cal {
    align-self: start; display: flex; flex-direction: column; align-items: center; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-sm);
}
.cal-w { width: 100%; text-align: center; font-size: .7rem; padding: 3px 0; color: var(--surface); background: linear-gradient(135deg, var(--primary), var(--gold-dark)); }
.cal-d { font-size: 2rem; font-weight: 700; line-height: 1.35; color: var(--accent); }
.cal-m { font-size: .78rem; color: var(--muted); padding-bottom: 6px; }
.ev-body h3 { font-family: var(--display); line-height: var(--display-lh); font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-top: -8px; }
.ev-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; font-size: .93rem; }
.ev-line .ico { color: var(--primary); margin-top: .35em; }
.ev-line b { font-weight: 700; }
.ev-note { margin-top: 10px; font-size: .85rem; padding: 6px 14px; background: var(--tint); border-radius: 10px; display: inline-block; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.map-apps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ev-qr { margin-top: 12px; }
.ev-qr summary { cursor: pointer; list-style: none; font-size: .82rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.ev-qr summary::-webkit-details-marker { display: none; }
.qr-card { margin-top: 10px; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--tint); }
.qr-card img { width: 112px; height: 112px; padding: 6px; background: #fff; border-radius: 10px; }
.qr-card span { font-size: .8rem; color: var(--muted); }

/* ---------- RSVP ---------- */
.rsvp form { margin-top: 18px; text-align: right; }
.rsvp-event { border: 0; margin: 0 0 18px; padding: 0; }
.rsvp-event legend { font-weight: 700; color: var(--accent); margin-bottom: 10px; padding: 0; }
.choices { display: grid; gap: 10px; }
.choices label { cursor: pointer; display: block; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
    background: var(--surface); transition: all .25s var(--ease); font-weight: 500;
}
.choices span i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tint-2); color: var(--accent); transition: all .25s var(--ease); flex: none; }
.choices label:hover span { border-color: var(--line-strong); }
.choices input:checked + span { border-color: var(--primary); background: var(--tint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.choices .yes input:checked + span i { background: #2f7d4b; color: #fff; }
.choices .no input:checked + span i { background: #b23a3a; color: #fff; }
.choices .maybe input:checked + span i { background: #c98a1b; color: #fff; }
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.count { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--tint); }
.stepper { display: flex; align-items: center; gap: 6px; background: var(--surface); border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.stepper .step { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--tint-2); color: var(--accent); font-size: 1.25rem; cursor: pointer; line-height: 1; }
.stepper .step:active { transform: scale(.92); }
.stepper output { min-width: 2.2em; text-align: center; font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.wish { display: block; margin: 6px 0 16px; }
.wish > span { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--accent); margin-bottom: 6px; }
.wish small { color: var(--muted); }
.wish textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; resize: vertical;
    background: var(--surface); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.wish textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.submit { width: 100%; min-height: 52px; font-size: 1rem; }
.form-msg { min-height: 1.6em; margin-top: 10px; text-align: center; font-size: .92rem; }
.form-msg.ok { color: #2f7d4b; }
.form-msg.err { color: #b23a3a; }

.entry-pass { margin-top: 24px; display: flex; justify-content: center; animation: popIn .6s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.pass {
    width: min(100%, 290px); border-radius: 20px; overflow: hidden; background: var(--surface); text-align: center;
    border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); position: relative;
}
.pass::before, .pass::after { content: ""; position: absolute; top: 74px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); }
.pass::before { left: -12px; } .pass::after { right: -12px; }
.pass-head { padding: 14px 16px 16px; background: linear-gradient(135deg, var(--primary), var(--gold-dark)); color: #fff; display: flex; flex-direction: column; }
.pass-head span { font-size: .72rem; letter-spacing: .3em; opacity: .85; }
.pass-head b { font-size: 1.05rem; }
.pass img { margin: 22px auto 6px; width: 176px; height: 176px; padding: 8px; background: #fff; border-radius: 12px; }
.pass p { font-size: .8rem; color: var(--muted); padding: 0 16px 18px; }

/* ---------- wishes ---------- */
.wishes { margin: 40px 0 10px; }
.wish-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.wish-track figure { margin: 0; scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); padding: 22px 18px 16px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.wish-track figure::before { content: "”"; position: absolute; top: -6px; right: 14px; font-size: 3.4rem; line-height: 1; color: var(--primary); opacity: .35; font-family: Georgia, serif; }
.wish-track blockquote { margin: 0; font-size: .95rem; }
.wish-track figcaption { margin-top: 10px; font-size: .8rem; color: var(--muted); }

/* ---------- footer ---------- */
.sign { text-align: center; padding: 30px 0 10px; }
.sign-pre { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.hosts { font-family: var(--display); line-height: var(--display-lh); font-size: 1.55rem; color: var(--accent); }
.brand { font-size: .75rem; margin-top: 22px; }
.brand a { color: var(--muted); text-decoration: none; opacity: .8; }

/* ---------- music ---------- */
.music-toggle {
    position: fixed; z-index: 40; bottom: calc(18px + env(safe-area-inset-bottom)); left: 18px; height: 50px; min-width: 50px; padding: 0 14px;
    border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 85%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--primary); cursor: pointer;
    display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-sm);
}
.eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--primary); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
.music-toggle[aria-pressed="true"] .eq { display: flex; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(3) { transition-delay: .1s; } .hero .reveal:nth-child(4) { transition-delay: .2s; }
.hero .reveal:nth-child(5) { transition-delay: .35s; } .hero .reveal:nth-child(6) { transition-delay: .5s; } .hero .reveal:nth-child(7) { transition-delay: .65s; }

/* =========================================================
   Simple pages (go / payment / not found)
   ========================================================= */
.simple-page { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.simple-card {
    position: relative; width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
    padding: 36px 24px; text-align: center; box-shadow: var(--shadow-lg);
}
.simple-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); border-radius: 18px; pointer-events: none; }
.simple-card h1 { font-family: var(--display); line-height: var(--display-lh); color: var(--primary); font-size: 1.8rem; margin: 4px 0; }
.simple-card h2 { font-size: 1.05rem; margin-top: 12px; }
.simple-card > svg { color: var(--primary); margin: 0 auto 6px; }
.simple-card .btn { margin-top: 14px; position: relative; }
.simple-card .date { color: var(--accent); }
.map-frame { position: relative; width: 100%; height: 240px; border: 0; border-radius: 16px; margin-top: 16px; background: var(--tint); box-shadow: var(--shadow-sm); }
.map-buttons { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin: 18px 0 6px; }
.map-buttons .btn { min-height: 46px; }
.map-buttons .map-custom { grid-column: 1 / -1; }
.status { width: 68px; height: 68px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #fff; box-shadow: var(--shadow-sm); }
.status.ok { background: linear-gradient(135deg, #46a46b, #2f7d4b); }
.status.fail { background: linear-gradient(135deg, #d05a5a, #a83232); }

/* =========================================================
   Landing
   ========================================================= */
.landing-main { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 32px 18px 60px; }
.landing-hero { position: relative; text-align: center; padding: 70px 0 30px; }
.landing-hero h1 {
    font-family: var(--display); line-height: var(--display-lh); font-size: clamp(3rem, 12vw, 5rem); font-weight: 700;
    background: var(--foil); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite;
}
.lead { font-size: 1.15rem; color: var(--accent); margin-top: 4px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 46px; }
.features article { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.features article:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.features h3 { color: var(--accent); font-size: 1.02rem; margin-bottom: 6px; }
.features p { color: var(--muted); font-size: .92rem; }

@media (min-width: 700px) {
    .invite { padding: 0 24px 60px; }
    .block { padding: 44px 40px; }
    .event { grid-template-columns: 96px 1fr; padding: 26px; }
    .countdown { gap: 16px; }
}
@media (max-width: 360px) {
    .event { grid-template-columns: 1fr; }
    .cal { flex-direction: row; gap: 8px; padding-left: 10px; }
    .cal-w { width: auto; padding: 6px 10px; }
    .cal-d { font-size: 1.3rem; }
    .cal-m { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    #petals { display: none; }
}
