/* PartyPost — shared page styles (home, app, invitation page, legal pages). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font-ui); color: #1f1d2b; background: #fbf7f1; }
img, svg { max-width: 100%; }
a { color: #d6336c; }
h1, h2, h3 { line-height: 1.15; font-family: var(--font-title); }
[hidden] { display: none !important; }
.wrap { width: min(1160px, 92vw); margin: 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; border-radius: 999px; padding: .8em 1.5em; font: 700 16px/1.1 var(--font-fun);
  background: #e63946; color: #fff; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; box-shadow: 0 6px 16px -6px rgba(230, 57, 70, .6); }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.soft { background: #f1ece4; color: #1f1d2b; box-shadow: none; }
.btn.small { padding: .55em 1em; font-size: 14px; }
.btn.big { padding: 1em 2em; font-size: 18px; }
.muted { color: #6f6a7a; } .small { font-size: 13px; }
.err { color: #c92a2a; font-weight: 600; min-height: 1.2em; }
input, textarea, select { font: inherit; color: inherit; width: 100%; padding: .7em .85em; border: 1.5px solid #ddd5c9; border-radius: 12px; background: #fff; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #e63946; box-shadow: 0 0 0 3px rgba(230, 57, 70, .15); }
label { display: block; font-weight: 600; font-size: 14px; }
label > input, label > textarea, label > select { margin-top: 6px; font-weight: 400; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1f1d2b; color: #fff; padding: 12px 20px; border-radius: 12px; z-index: 100; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: 90vw; }

/* header / footer */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, #fbf7f1 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid #eee5d8; }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 21px/1 var(--font-fun); color: #1f1d2b; text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.top nav a:not(.btn) { color: #1f1d2b; text-decoration: none; font-weight: 600; }
.foot { padding: 40px 0 60px; color: #6f6a7a; font-size: 14px; border-top: 1px solid #eee5d8; margin-top: 60px; }
.foot a { color: inherit; }
.foot .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }

/* home */
.hero { padding: 56px 0 30px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 0 0 18px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #e63946, #fb6f92 50%, #ffb703); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: #4a4558; max-width: 34em; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-stage { position: relative; border-radius: 28px; padding: 40px 20px 34px; background: radial-gradient(circle at 50% 25%, var(--bg2), var(--bg)); box-shadow: 0 30px 70px -30px rgba(16, 33, 58, .6); }
.hero-stage .env { width: min(440px, 80vw); }
.hero-stage .pc { max-width: 520px; margin: 0 auto; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; padding: 0; list-style: none; color: #4a4558; font-weight: 600; font-size: 15px; }
.ticks li::before { content: '✓'; color: #2b9348; font-weight: 900; margin-right: 7px; }
.section { padding: 64px 0 10px; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 10px; text-align: center; }
.section .sub { text-align: center; color: #6f6a7a; max-width: 40em; margin: 0 auto 34px; font-size: 18px; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.theme-card { background: #fff; border-radius: 22px; padding: 14px 14px 18px; box-shadow: 0 16px 40px -24px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 12px; }
.theme-card .pc-face { box-shadow: none; }
.theme-card h3 { margin: 6px 6px 0; font-size: 20px; }
.theme-card p { margin: 0 6px; color: #6f6a7a; font-size: 14.5px; }
.theme-card .row { display: flex; gap: 10px; margin: 4px 6px 0; flex-wrap: wrap; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: s; }
.step { background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 16px 40px -28px rgba(0, 0, 0, .35); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #ffe3ec; color: #d6336c; font: 800 18px/1 var(--font-fun); margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: #6f6a7a; }
.track-demo { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 16px 40px -28px rgba(0, 0, 0, .35); overflow-x: auto; }

/* invitation page */
.inv { min-height: 100svh; background: radial-gradient(circle at 50% 18%, var(--bg2), var(--bg) 70%); color: var(--hint-ink, #fff); padding: 6vh 0 40px; overflow-x: hidden; }
.inv-hello { text-align: center; font: 700 clamp(18px, 2.4vw, 24px)/1.3 var(--font-fun); margin: 0 auto 4vh; width: min(640px, 90vw); }
.inv-hello small { display: block; font-size: .7em; opacity: .8; font-weight: 600; margin-top: 4px; }
.inv-stage { display: grid; place-items: center; min-height: 52vh; }
.inv-card { width: min(980px, 94vw); margin: 0 auto; opacity: 0; transform: scale(.55) translateY(-8%); transition: transform 1s cubic-bezier(.2, .9, .25, 1.15), opacity .6s; }
.inv-card.show { opacity: 1; transform: none; }
.inv-tools { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px auto 0; }
.inv-tools .btn { background: color-mix(in srgb, var(--paper) 94%, transparent); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.inv-tools .btn.primary { background: var(--accent); color: #fff; }
.rsvp { width: min(640px, 94vw); margin: 34px auto 0; background: var(--paper); color: var(--ink); border-radius: 24px; padding: 28px clamp(18px, 4vw, 36px); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); }
.rsvp h2 { margin: 0 0 4px; font-size: 28px; text-align: center; }
.rsvp .q { text-align: center; color: color-mix(in srgb, var(--ink) 65%, transparent); margin: 0 0 18px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice button { border: 2px solid color-mix(in srgb, var(--ink) 15%, transparent); background: #fff; border-radius: 18px; padding: 16px 10px; font: 800 17px/1.2 var(--font-fun); color: var(--ink); cursor: pointer; transition: all .15s; }
.choice button span { display: block; font-size: 30px; margin-bottom: 6px; }
.choice button[aria-pressed='true'] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.counter { background: #fff; border-radius: 16px; padding: 12px 14px; border: 1.5px solid color-mix(in srgb, var(--ink) 10%, transparent); text-align: center; }
.counter b { display: block; font: 700 14px/1.2 var(--font-ui); color: color-mix(in srgb, var(--ink) 70%, transparent); margin-bottom: 8px; }
.counter div { display: flex; align-items: center; justify-content: center; gap: 14px; }
.counter button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font: 800 22px/1 var(--font-ui); cursor: pointer; }
.counter button:disabled { opacity: .3; }
.counter output { font: 800 30px/1 var(--font-fun); min-width: 1.6em; }
.rsvp label { margin-top: 16px; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.rsvp .send { width: 100%; margin-top: 20px; background: var(--accent); }
.rsvp .done { text-align: center; }
.rsvp .done .big { font-size: 54px; line-height: 1; margin-bottom: 8px; }
.rsvp .done h2 { margin-bottom: 8px; }
.inv-foot { text-align: center; font-size: 13px; opacity: .75; margin-top: 40px; }
.inv-foot a { color: inherit; }
.notice { width: min(640px, 92vw); margin: 0 auto 20px; background: rgba(255, 255, 255, .92); color: #1f1d2b; border-radius: 16px; padding: 14px 18px; text-align: center; font-weight: 600; }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 50; width: 100vw; height: 100vh; }
.zoomer { position: fixed; z-index: 49; pointer-events: none; }
.zoomer.car { left: -260px; bottom: 14vh; width: 240px; animation: zoom-across 1.6s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes zoom-across { to { transform: translateX(calc(100vw + 520px)); } }
.zoomer.rocket { left: 12vw; bottom: -200px; width: 90px; animation: rocket-up 2s cubic-bezier(.5, 0, .4, 1) forwards; }
@keyframes rocket-up { to { transform: translate(30vw, calc(-100vh - 300px)) rotate(18deg); } }
.zoomer.balloon { bottom: -160px; width: 70px; animation: float-up 4.2s ease-in forwards; }
@keyframes float-up { to { transform: translateY(calc(-100vh - 260px)) translateX(30px); } }
.shake { animation: shake .5s 3; }
@keyframes shake { 0%, 100% { transform: translate(0); } 25% { transform: translate(-6px, 3px); } 50% { transform: translate(5px, -4px); } 75% { transform: translate(-3px, 4px); } }
.roar { position: fixed; left: 50%; top: 30%; z-index: 51; transform: translate(-50%, -50%) scale(.2); font: 900 clamp(60px, 14vw, 160px)/1 var(--font-title); color: #f77f00; -webkit-text-stroke: 4px #fff; animation: roar 1.4s cubic-bezier(.2, 1.4, .4, 1) forwards; pointer-events: none; }
@keyframes roar { 60% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; } }

/* account in the top menu */
.acct { display: inline-flex; align-items: center; gap: 8px; color: #1f1d2b; text-decoration: none; font-weight: 600; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #ff8fab, #e63946); color: #fff; font: 800 15px/1 var(--font-fun); box-shadow: 0 3px 8px -3px rgba(230, 57, 70, .6); }
@media (max-width: 560px) { .top .hide-sm { display: none; } .top nav { gap: 10px; } }
/* sign-in code box */
.code-input { font: 800 30px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .55em; text-align: center; padding: .55em .2em .55em .75em; margin: 6px 0 12px; }
.code-input::placeholder { color: #d9cfc2; }

/* maps (OpenStreetMap tiles around the pin) */
.place-map, .where-map { position: relative; overflow: hidden; border-radius: 16px; height: 220px; background: #e8e4dc; isolation: isolate; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.map-tiles { position: absolute; left: 50%; top: 50%; }
.map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; -webkit-user-drag: none; }
.map-pin { position: absolute; left: 50%; top: 50%; width: 34px; transform: translate(-50%, -100%); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35)); z-index: 2; animation: pin-drop .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.map-pin svg { display: block; width: 100%; height: auto; } .map-pin .pin-body { fill: var(--accent, #e63946); }
@keyframes pin-drop { from { transform: translate(-50%, -260%); opacity: 0; } to { transform: translate(-50%, -100%); opacity: 1; } }
.map-pulse { position: absolute; left: 50%; top: 50%; width: 46px; height: 18px; margin: -9px 0 0 -23px; border-radius: 50%; background: color-mix(in srgb, var(--accent, #e63946) 45%, transparent); z-index: 1; animation: pin-pulse 2s ease-out infinite; }
@keyframes pin-pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.map-credit { position: absolute; right: 6px; bottom: 6px; z-index: 3; font: 600 11px/1 var(--font-ui); color: #333; background: rgba(255, 255, 255, .85); padding: 3px 6px; border-radius: 6px; text-decoration: none; }
.where { width: min(640px, 94vw); margin: 26px auto 0; background: var(--paper); color: var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); }
.where-map { border-radius: 0; height: 240px; }
.where-text { padding: 18px clamp(18px, 4vw, 30px) 22px; text-align: center; }
.where-text h2 { margin: 0 0 4px; font-size: 22px; } .where-text p { margin: 0; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.where-go { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.where-go .btn:not(.soft) { background: var(--accent); color: #fff; }
/* editor: place search */
.place-wrap { position: relative; }
.place-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06); max-height: 320px; overflow: auto; }
.place-list li { padding: 9px 12px; border-radius: 10px; cursor: pointer; display: grid; gap: 2px; }
.place-list li b { font-weight: 700; } .place-list li small { color: #7a7487; font-size: 12.5px; }
.place-list li:hover, .place-list li[aria-selected='true'] { background: #fff1e6; }
.place-list li.note { cursor: default; color: #7a7487; font-size: 13px; background: none; }
.place-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.place-pinbar { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: #5f596b; margin-top: -4px; }
.linkish { border: 0; background: none; color: #d6336c; font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }

/* legal pages */
.doc { width: min(780px, 92vw); margin: 40px auto; background: #fff; padding: clamp(22px, 5vw, 48px); border-radius: 22px; box-shadow: 0 16px 40px -28px rgba(0, 0, 0, .35); }
.doc h1 { margin-top: 0; } .doc h2 { margin-top: 1.6em; font-size: 21px; }

@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 30px; } .top nav a.hide-sm { display: none; } }
@media (max-width: 520px) { .themes { grid-template-columns: 1fr; } .choice button { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .zoomer, .roar { display: none; } .inv-card { transition-duration: .01s; } }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #8a8496; padding: 10px 12px; border-bottom: 2px solid #f0e9df; white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid #f3ede4; vertical-align: middle; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill.yes { background: #d3f9d8; color: #2b8a3e; } .pill.no { background: #ffe3e3; color: #c92a2a; } .pill.wait { background: #fff3bf; color: #9c6500; } .pill.none { background: #f1f3f5; color: #6f6a7a; } .pill.sent { background: #e7f5ff; color: #1971c2; } .pill.err { background: #ffe3e3; color: #c92a2a; }
