@font-face { font-family: 'Luckiest Guy'; src: url(/fonts/LuckiestGuy-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Patrick Hand'; src: url(/fonts/PatrickHand-Regular.ttf) format('truetype'); font-display: swap; }

:root {
	--paper: #FFF7F2;
	--top-height: 58px;
	--surface: #FFFFFF;
	--ink: #2B1B2E;
	--muted: #7B5F73;
	--line: #F1DCE6;
	--accent: #E2366B;
	--accent-dark: #B8244F;
	--gold: #FFB547;
	--teal: #38B6C4;
	--radius: 18px;
	--title: 'Luckiest Guy', 'Arial Black', sans-serif;
	--hand: 'Patrick Hand', 'Comic Sans MS', sans-serif;
	--column: 480px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 17px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--accent-dark); }
h1, h2 { font-family: var(--title); font-weight: normal; letter-spacing: 0.01em; line-height: 1.1; }
h2 { font-size: 24px; margin-top: 0; margin-bottom: 10px; color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }


.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 46px;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 18px;
	padding-right: 18px;
	border: 2px solid var(--accent);
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	touch-action: manipulation;
	transition: transform 0.08s;
}
.button:active { transform: scale(0.97); }
.button:disabled { opacity: 0.6; cursor: default; }
.button-big { width: 100%; min-height: 58px; font-family: var(--title); font-weight: normal; font-size: 22px; letter-spacing: 0.02em; box-shadow: 0 6px 0 var(--accent-dark); margin-bottom: 6px; }
.button-big:active { box-shadow: 0 2px 0 var(--accent-dark); transform: translateY(4px); }
.button-ghost { background: transparent; color: var(--accent-dark); }
#edit-back { margin-top: 18px; }
.button-small { min-height: 36px; padding-left: 14px; padding-right: 14px; font-size: 15px; }
.button-link { background: none; border: none; color: var(--muted); text-decoration: underline; width: 100%; }
.button-on { background: #2EA36B; border-color: #2EA36B; box-shadow: 0 6px 0 #1E7A4E; }
.button-whatsapp { background: #25D366; border-color: #25D366; }
.button-ido { position: absolute; left: 16px; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); width: auto; font-size: 30px; min-height: 72px; animation: pulse 1s infinite alternate; }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.04); } }

.field { display: block; margin-top: 10px; margin-bottom: 10px; font-weight: 700; font-size: 15px; }
.field input, .field select, textarea, .card input {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 11px 12px;
	border: 2px solid var(--line);
	border-radius: 12px;
	background: #fff;
	font-weight: 400;
	font-size: 17px;
}
.field input:focus, .field select:focus, textarea:focus, .card input:focus { outline: none; border-color: var(--accent); }

.small { font-size: 14px; color: var(--muted); }
.fine { font-size: 12.5px; }
.center { text-align: center; }
.error { color: #C0182F; font-weight: 700; font-size: 15px; }
.status { font-weight: 700; text-align: center; }


body.game { overflow: hidden; background: #2B1B2E; }
#app {
	position: relative;
	max-width: var(--column);
	height: 100vh;
	height: 100dvh;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
	background: #FFD3B8;
}
#stage-wrap { position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
#stage { display: block; width: 100%; height: 100%; touch-action: manipulation; }

.screen { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; }
.screen > * { pointer-events: auto; }
.screen-bare > * { pointer-events: auto; }

.sheet {
	max-height: 62%;
	overflow-y: auto;
	padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
	background: rgba(255, 247, 242, 0.97);
	border-radius: 26px 26px 0 0;
	box-shadow: 0 -8px 30px rgba(43, 27, 46, 0.18);
	text-align: center;
}
.sheet-tall { max-height: 70%; text-align: left; }
.sheet-tall h2, .sheet-tall .button-big { text-align: center; }
#lobby-screen .sheet { max-height: 46%; }

.hero-copy { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 16px; right: 16px; text-align: center; pointer-events: none; }
.title { margin: 0; font-size: 46px; color: #fff; text-shadow: 0 3px 0 var(--accent), 0 6px 16px rgba(43, 27, 46, 0.35); }
.title span { color: var(--gold); }
.lede { color: var(--ink); font-weight: 600; margin-top: 10px; margin-bottom: 0; }
.hero-copy .lede { padding: 8px 12px; border-radius: 14px; background: rgba(255, 247, 242, 0.85); font-size: 16px; }

.invite-note { margin-top: 0; padding: 10px; border-radius: 12px; background: var(--accent); color: #fff; font-family: var(--title); font-size: 20px; text-align: center; }

.picker { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; margin-bottom: 10px; }
.picker-label { width: 100%; font-weight: 700; font-size: 15px; }
.chip { min-height: 38px; padding-left: 13px; padding-right: 13px; border: 2px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 15px; touch-action: manipulation; }
.chip.on { border-color: var(--accent); background: #FFE1EA; font-weight: 700; }
.chip.swatch { width: 38px; padding: 0; }
.chip.swatch.on { box-shadow: 0 0 0 3px #fff inset; border-width: 3px; }

.link-row { display: flex; gap: 8px; margin-top: 10px; margin-bottom: 10px; }
.link-row input { flex: 1; min-width: 0; padding: 9px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; }
.share-row { display: flex; gap: 8px; margin-bottom: 8px; }
.share-row .button { flex: 1; }

.floating { position: absolute; left: 16px; right: 16px; bottom: calc(110px + env(safe-area-inset-bottom)); padding: 10px 14px; border-radius: 14px; background: rgba(43, 27, 46, 0.82); color: #fff; }

.icon-button { position: absolute; z-index: 5; top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.85); font-size: 20px; cursor: pointer; }

.congrats { font-size: 30px; text-align: center; }
.tiers { display: grid; gap: 10px; margin-top: 12px; margin-bottom: 12px; text-align: left; }
.tier { position: relative; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; }
.tier-best { border-color: var(--accent); box-shadow: 0 4px 16px rgba(226, 54, 107, 0.18); }
.tier-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.price { font-family: var(--title); color: var(--accent); }
.badge { position: absolute; top: -11px; right: 14px; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; }
.tier ul { margin-top: 6px; margin-bottom: 10px; padding-left: 20px; font-size: 14.5px; }
.tier .button { width: 100%; }

.recording { position: fixed; z-index: 6; left: 50%; transform: translateX(-50%); width: calc(min(100vw, var(--column)) - 32px); box-sizing: border-box; top: calc(16px + env(safe-area-inset-top)); padding: 12px 14px; border-radius: 16px; background: rgba(43, 27, 46, 0.88); color: #fff; text-align: center; }
.recording p { margin-top: 0; margin-bottom: 8px; font-weight: 700; }
.bar { height: 8px; margin-bottom: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
#recording-bar { width: 0; height: 100%; background: var(--gold); }
.recording .button-ghost { color: #fff; border-color: #fff; }

.toast { position: fixed; z-index: 7; left: 50%; transform: translateX(-50%); width: calc(min(100vw, var(--column)) - 32px); box-sizing: border-box; top: 45%; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; text-align: center; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.noscript { position: absolute; top: 40%; left: 16px; right: 16px; padding: 16px; background: #fff; border-radius: 12px; text-align: center; }

body.game .top, body.game .footer { display: none; }
body.game.with-site { overflow-y: auto; }
body.game.with-site .top { display: flex; height: var(--top-height); box-sizing: border-box; }
body.game.with-site.with-footer .footer { display: block; max-width: none; background: var(--paper); }
body.game.with-site #app { height: calc(100vh - var(--top-height)); height: calc(100dvh - var(--top-height)); }

body.game.mode-page #app { height: auto; overflow: visible; }
body.mode-page #stage-wrap { position: relative; height: 58vh; height: 58dvh; }
body.mode-page .screen-page { position: static; display: block; pointer-events: auto; }
.page-body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); background: var(--paper); }
.page-head { text-align: center; }
.couple { margin: 0; font-size: 34px; color: var(--accent); }
.anniversary { padding: 10px; border-radius: 12px; background: var(--gold); font-weight: 700; }
.actions { display: grid; gap: 8px; margin-top: 14px; margin-bottom: 14px; }
.card { margin-top: 14px; margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card-keep { border: 2px solid var(--accent); background: #FFF0F4; box-shadow: 0 6px 18px rgba(226, 54, 107, 0.15); }
.card-keep h2 { margin-top: 8px; }
.expiry { display: inline-block; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; }
.downloads { display: grid; gap: 8px; }
.certificate-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.certificate-choice { display: grid; gap: 4px; padding: 4px; border: 2px solid var(--line); border-radius: 10px; background: none; font: inherit; color: inherit; cursor: pointer; }
.certificate-choice img { display: block; width: 100%; height: auto; border-radius: 6px; }
.certificate-choice span { font-size: 14px; }
.certificate-choice.on { border-color: var(--accent); }
.certificate-choice.on span { color: var(--accent); font-weight: 700; }
.marketing-certificate { position: absolute; left: 50%; top: 54%; width: 78%; transform: translate(-50%, -50%) rotate(-2deg); border-radius: 6px; box-shadow: 0 18px 40px rgba(43, 27, 46, 0.35); }
.marketing-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.marketing-shot { display: flex; align-items: center; justify-content: center; aspect-ratio: 9 / 16; border-radius: 10px; background: var(--line); color: var(--muted); text-decoration: none; overflow: hidden; }
.marketing-shots img { display: block; width: 100%; height: auto; border-radius: 10px; }
.marketing-frame { position: fixed; left: -10000px; top: 0; width: 540px; height: 960px; border: 0; }
body.marketing, body.marketing * { scrollbar-width: none; }
.marketing-tap { position: absolute; z-index: 8; width: 54px; height: 54px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 255, 255, 0.55); border: 3px solid #fff; box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.3); pointer-events: none; }
.marketing-play { position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(43, 27, 46, 0.55); border: 5px solid #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.marketing-play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 30px 0 30px 50px; border-color: transparent transparent transparent #fff; }
.marketing-video-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 24px 34px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 700; font-size: 20px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.marketing-video-progress { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) 18%, rgba(255, 255, 255, 0.6) 18%); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
body.marketing.capturing, body.marketing.capturing #app { background: transparent; }
.paywall-certificate { display: block; width: 130px; height: auto; margin: 6px auto 10px; border-radius: 6px; box-shadow: 0 4px 14px rgba(43, 27, 46, 0.2); }
.certificate-image { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 16px rgba(43, 27, 46, 0.15); }
#guestbook-form { display: grid; gap: 8px; }
.guestbook { margin: 12px 0 0; padding: 0; list-style: none; }
.guestbook li { position: relative; padding-top: 10px; padding-bottom: 10px; padding-right: 28px; border-top: 1px solid var(--line); font-family: var(--hand); font-size: 19px; }
.guestbook li b { display: block; color: var(--accent); font-family: system-ui, sans-serif; font-size: 14px; }
.guestbook .empty { color: var(--muted); }
.guestbook-remove { position: absolute; top: 8px; right: 0; border: none; background: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.call-to-action { text-align: center; background: #FFE1EA; border-color: #FFC7D7; }


body.content { background: var(--paper); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: linear-gradient(90deg, #E2366B, #F0657F); }
.wordmark { color: #fff; text-decoration: none; font-family: var(--title); font-size: 18px; letter-spacing: 0.01em; }
.wordmark b { font-weight: normal; color: var(--gold); }
.top .button { flex-shrink: 0; white-space: nowrap; background: #fff; color: var(--accent); border-color: #fff; }
@media (max-width: 420px) { .wordmark { font-size: 15px; } }
main.narrow, main.landing { max-width: 760px; margin-left: auto; margin-right: auto; padding: 20px 16px 30px; }
.prose h1 { color: var(--accent); }
.landing h1 { font-size: 38px; color: var(--accent); margin-top: 6px; }
.landing h2 { margin-top: 28px; }
.kicker { margin: 0; color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; }
.landing-hero { display: grid; gap: 20px; align-items: center; }
.landing-hero .button-big { max-width: 380px; }
.demo-frame { justify-self: center; width: 270px; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; border: 6px solid var(--ink); box-shadow: 0 12px 30px rgba(43, 27, 46, 0.25); }
#demo { display: block; width: 100%; height: 100%; }
@media (min-width: 720px) { .landing-hero { grid-template-columns: 1fr 270px; } }
.vow-tool { text-align: center; }
.vow-output { font-family: var(--hand); font-size: 26px; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
.vow-tool .button-big { max-width: 320px; }
.faq { padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; cursor: pointer; }
.more-links { display: flex; flex-wrap: wrap; gap: 8px; }
.more-links a { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.footer { max-width: 760px; margin-left: auto; margin-right: auto; padding: 20px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }

.upsell { margin-top: 12px; margin-bottom: 8px; padding: 12px; border: 2px dashed var(--gold); border-radius: var(--radius); background: #FFF8EA; text-align: left; }
.upsell-title { margin: 0 0 4px; font-weight: 700; }
.upsell-title span { color: var(--accent); }
.upsell .small { margin: 0 0 10px; }
.upsell-row { display: flex; gap: 8px; }
.upsell-row .button { flex: 1; }

.checkout { position: fixed; z-index: 50; left: 0; right: 0; top: 0; bottom: 0; overflow-y: auto; background: #fff; }
.checkout-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 520px; margin: 0 auto; padding: 12px 16px 4px; }
.checkout-bar .button { width: auto; margin: 0; }
.checkout-secure { color: var(--muted); font-size: 13px; }
#checkout-mount { max-width: 520px; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom); }
