/* eachinvite.com front page — look L1 "Rajwadi Raat": night maroon, gold foil, an ivory kankotri.
   One deliberate dark world (no light/dark switch). Shown only to visitors who are not signed in
   (html:not(.app-mode)); the desk lives in #app. Motion: pinned scroll stories, a 3D card, gold dust.
   Slow phones get html.fp-lite (no dust, no shine); reduced motion stops every animation. */
.fp {
  --f-bg: #12060a;
  --f-bg2: #2c0810;
  --f-wine: #3b0a14;
  --f-ink: #f6e7c8;
  --f-mute: #c4a487;
  --f-gold: #e3b65a;
  --f-gold2: #f7d98b;
  --f-card: #fbf3e2;
  --f-cink: #7a1420;
  --f-line: rgba(227, 182, 90, .26);
  --f-glow: rgba(227, 182, 90, .28);
  --f-glass: rgba(255, 240, 220, .05);
  --f-ok: #4fd18b;
  --f-warn: #f3b54a;
  --f-no: #ff7a6b;
  --f-tick: #53bdeb;
  --f-disp: 'Rasa', 'Noto Serif Gujarati', Georgia, serif;
  --f-gu: 'Noto Sans Gujarati', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --f-pad: max(16px, env(safe-area-inset-left, 0px));
  --f-pad-r: max(16px, env(safe-area-inset-right, 0px));
  font-family: var(--f-gu);
  color: var(--f-ink);
  background: var(--f-bg);
  overflow-x: clip;
}
/* which part of the site shows */
html:not(.app-mode) #app, html:not(.app-mode) #modal { display: none !important; }
html.app-mode #front { display: none !important; }
html:not(.app-mode), html:not(.app-mode) body { background: #12060a; }
html:not(.app-mode) { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html:not(.app-mode) { scroll-behavior: auto; } }

.fp *, .fp *::before, .fp *::after { box-sizing: border-box; }
.fp h1, .fp h2, .fp h3, .fp p { margin: 0; }
.fp a { color: inherit; }
.fp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--f-pad); padding-right: var(--f-pad-r); }
.fp-eyebrow { font: 600 11.5px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--f-gold); }
.fp h2 { font: 700 clamp(30px, 4.4vw, 52px)/1.08 var(--f-disp); color: var(--f-ink); text-wrap: balance; letter-spacing: -.005em; }
.fp h3 { font: 700 21px/1.2 var(--f-disp); color: var(--f-ink); }
.fp p { color: var(--f-mute); line-height: 1.7; }
.fp :focus-visible { outline: 3px solid var(--f-gold2); outline-offset: 3px; border-radius: 8px; }

/* buttons */
.fp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 14px; font: 800 16px var(--f-gu); text-decoration: none; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.fp-btn.sm { min-height: 40px; padding: 8px 16px; font-size: 14.5px; border-radius: 12px; }
.fp-btn.wide { width: 100%; }
.fp-btn.gold { background: linear-gradient(135deg, var(--f-gold2), var(--f-gold) 55%, #c38a2a); color: #2a0c06; box-shadow: 0 10px 30px -8px var(--f-glow), inset 0 1px 0 rgba(255, 255, 255, .5); }
.fp-btn.gold::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.fp-btn.gold:hover::after { transform: translateX(120%); }
.fp-btn.gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(227, 182, 90, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }
.fp-btn.ghost { border: 1.5px solid var(--f-line); color: var(--f-ink); background: rgba(255, 240, 220, .03); }
.fp-btn.ghost:hover { border-color: var(--f-gold); background: rgba(227, 182, 90, .08); }

/* nav */
.fp-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, box-shadow .3s; }
.fp-nav.solid { background: rgba(18, 6, 10, .78); box-shadow: 0 1px 0 var(--f-line); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.fp-navin { display: flex; align-items: center; gap: 12px; height: 66px; }
.fp-brand { display: inline-flex; align-items: center; gap: 9px; font: 700 25px var(--f-disp); color: var(--f-gold); text-decoration: none; letter-spacing: .01em; }
.fp-brand.sm { font-size: 21px; }
.fp-brand-m { width: 30px; height: 30px; color: var(--f-gold); flex: none; }
.fp-links { display: flex; gap: 4px; margin-left: auto; }
.fp-links a { text-decoration: none; color: var(--f-mute); font-weight: 600; font-size: 14.5px; padding: 8px 11px; border-radius: 10px; transition: color .2s, background .2s; }
.fp-links a:hover { color: var(--f-ink); background: rgba(255, 240, 220, .06); }

/* 1 · hero */
.fp-hero { position: relative; padding: calc(96px + env(safe-area-inset-top, 0px)) 0 70px; background: radial-gradient(900px 600px at 82% 18%, rgba(122, 20, 32, .75), transparent 65%), radial-gradient(700px 520px at 0% 100%, rgba(227, 182, 90, .09), transparent 60%), var(--f-bg); overflow: hidden; }
.fp-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fp-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.fp-hero-copy { display: grid; gap: 22px; align-content: center; }
.fp-hero h1 { font: 700 clamp(42px, 6.4vw, 82px)/1.02 var(--f-disp); color: var(--f-ink); letter-spacing: -.01em; text-wrap: balance; }
.fp-hero h1 em, .fp h2 em { font-style: normal; background: linear-gradient(100deg, var(--f-gold2), var(--f-gold) 45%, #d9893a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fp-lead { font-size: clamp(16px, 1.5vw, 18.5px); max-width: 52ch; }
.fp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.fp-center { justify-content: center; }
.fp-facts { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px 22px; flex-wrap: wrap; color: var(--f-mute); font-size: 14.5px; }
.fp-facts li { display: flex; align-items: center; gap: 6px; }
.fp-facts li::before { content: '✦'; color: var(--f-gold); font-size: 11px; }
.fp-facts b { color: var(--f-ink); }
.fp-hero-scene { position: relative; height: 540px; perspective: 1200px; }
.fp-scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 26px; height: 40px; border: 1.5px solid var(--f-line); border-radius: 14px; }
.fp-scroll i { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--f-gold); animation: fp-wheel 1.6s infinite; }
@keyframes fp-wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* the kankotri (shared) */
.fp-card { position: absolute; width: 270px; aspect-ratio: 5 / 7; border-radius: 16px; background: radial-gradient(120% 80% at 50% 0%, #fffaf0, var(--f-card) 60%, #f3e3c3); color: var(--f-cink);
  display: grid; grid-template-rows: auto auto 1fr auto auto auto; justify-items: center; text-align: center; padding: 20px 16px 18px; gap: 4px; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(227, 182, 90, .5), 0 0 60px var(--f-glow); transform-style: preserve-3d; will-change: transform; }
.fp-card::before { content: ''; position: absolute; inset: 8px; border: 1.5px solid var(--f-gold); border-radius: 11px; pointer-events: none; }
.fp-card::after { content: ''; position: absolute; inset: 14px; border: .8px solid rgba(195, 138, 42, .55); border-radius: 8px; pointer-events: none; }
.fp-card .om { font: 600 10.5px var(--f-gu); color: #b8862e; margin-top: 8px; }
.fp-card .t { font: 700 27px/1.1 var(--f-disp); }
.fp-card .mand { width: 58%; aspect-ratio: 1; align-self: center; color: #c9993f; }
.fp-card .to { font: 600 11px var(--f-gu); opacity: .75; }
.fp-card .nm { font: 700 20px/1.3 var(--f-disp); min-height: 1.35em; white-space: nowrap; position: relative; }
.fp-card .fam { font: 600 10px var(--f-gu); opacity: .7; margin-bottom: 6px; }
.fp-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .55) 48%, transparent 60%); mix-blend-mode: soft-light; transform: translateX(-130%); animation: fp-shine 6s ease-in-out infinite; }
@keyframes fp-shine { 0%, 55% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
.fp-caret { display: inline-block; width: 2px; height: .95em; background: currentColor; margin-left: 2px; vertical-align: -2px; animation: fp-blink 1s steps(1) infinite; }
@keyframes fp-blink { 50% { opacity: 0; } }

.fp-hero-card { left: 4%; top: 50%; --ry: -16deg; --rx: 4deg; transform: translateY(-50%) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity .5s, filter .5s; }
.fp-hero-card.fly { transform: translate(250px, -38%) rotateY(0) scale(.18); opacity: 0; transition: transform .85s cubic-bezier(.6, 0, .3, 1), opacity .5s .35s; }
.fp-hero-card.back { transition: none; opacity: 0; }

/* phone (shared) */
.fp-phone { position: absolute; width: 230px; aspect-ratio: 9 / 18.6; border-radius: 34px; background: #0c0809; border: 6px solid #2a2326; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(227, 182, 90, .2); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.fp-phone::before { content: ''; position: absolute; top: 6px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 12px; background: #000; z-index: 2; }
.fp-phone-bar { background: #0b4d45; color: #fff; padding: 30px 12px 10px; font: 700 13px var(--f-gu); display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; align-items: center; }
.fp-phone-bar i { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--f-gold), var(--f-cink)); }
.fp-phone-bar small { font-weight: 500; font-size: 10.5px; opacity: .8; }
.fp-chat { background: #14100f radial-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 14px 14px; padding: 10px 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; overflow: hidden; }
.fp-msg { align-self: flex-end; width: 86%; background: #144d38; color: #eafff4; border-radius: 12px 12px 3px 12px; padding: 6px; display: grid; gap: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.fp-msg .pdf { display: flex; gap: 7px; align-items: center; background: rgba(0, 0, 0, .22); border-radius: 8px; padding: 7px; font: 700 10.5px var(--f-gu); min-width: 0; }
.fp-msg .pdf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fp-msg .pdf i { width: 20px; height: 25px; border-radius: 3px; background: #e2463a; flex: none; position: relative; }
.fp-msg .pdf i::after { content: 'PDF'; position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font: 700 6px var(--f-mono); color: #fff; }
.fp-msg .tk { font: 700 10px var(--f-mono); text-align: right; color: rgba(234, 255, 244, .6); transition: color .4s; }
.fp-msg .tk.read { color: var(--f-tick); }
.fp-hero-phone { right: 2%; top: 50%; transform: translateY(-50%) rotate(4deg); }
.fp-hero-chat .fp-msg { animation: fp-pop .5s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes fp-pop { from { opacity: 0; transform: translateY(14px) scale(.9); } }

/* pinned stories */
.fp-pin { position: relative; height: calc(var(--steps, 3) * 90vh + 100vh); background: linear-gradient(180deg, var(--f-bg), var(--f-bg2) 40%, var(--f-bg2) 60%, var(--f-bg)); }
.fp-pin[data-steps="5"] { --steps: 5; }
.fp-pin[data-steps="3"] { --steps: 3; }
.fp-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: center; }
.fp-stage-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding-top: 66px; }
.fp-stage-copy { display: grid; gap: 16px; align-content: center; }
.fp-steps { list-style: none; margin: 8px 0 0; padding: 0 0 0 18px; display: grid; gap: 6px; position: relative; border-left: 2px solid var(--f-line); }
.fp-steps li { display: grid; gap: 4px; padding: 10px 14px; border-radius: 14px; opacity: .38; transition: opacity .4s, background .4s, transform .4s; position: relative; }
.fp-steps li::before { content: ''; position: absolute; left: -26px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--f-bg); border: 2px solid var(--f-line); transition: .4s; }
.fp-steps li b { font: 700 20px/1.25 var(--f-disp); color: var(--f-ink); }
.fp-steps li span { color: var(--f-mute); font-size: 14.5px; line-height: 1.6; max-height: 0; overflow: hidden; transition: max-height .5s; }
.fp-steps li.on { opacity: 1; background: var(--f-glass); transform: translateX(4px); }
.fp-steps li.on span { max-height: 8em; }
.fp-steps li.on::before, .fp-steps li.done::before { background: var(--f-gold); border-color: var(--f-gold); box-shadow: 0 0 14px var(--f-glow); }
.fp-steps li.done { opacity: .6; }
.fp-progress { position: absolute; left: 0; right: 0; top: calc(66px + env(safe-area-inset-top, 0px)); height: 3px; background: rgba(227, 182, 90, .1); }
.fp-progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--f-gold), var(--f-gold2)); box-shadow: 0 0 12px var(--f-glow); }
.fp-scene { position: relative; height: min(560px, 72vh); perspective: 1200px; }

/* 2 · how: five steps */
.fp-how .fp-main { left: 50%; top: 50%; transform: translate(-50%, -50%) rotateY(-12deg) rotateX(3deg); transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .6s, filter .6s; z-index: 3; }
.fp-how .nm-full { display: inline-block; overflow: hidden; vertical-align: bottom; clip-path: inset(0 100% 0 0); transition: clip-path .1s linear; }
.fp-how .nm-blank { position: absolute; left: 50%; top: 0; transform: translateX(-50%); color: rgba(122, 20, 32, .35); letter-spacing: .05em; transition: opacity .3s; }
.fp-how .nm { display: inline-block; min-width: 76%; }
.fp-nbox { position: absolute; left: -6%; right: -6%; top: -3px; bottom: -3px; border: 2px dashed #c0392b; border-radius: 6px; background: rgba(192, 57, 43, .06); transform-origin: left; transform: scaleX(0); opacity: 0; transition: transform .2s linear, opacity .3s; }
.fp-finger { position: absolute; left: -6%; bottom: -16px; width: 26px; height: 26px; border-radius: 50%; background: rgba(192, 57, 43, .25); border: 2px solid #c0392b; opacity: 0; transition: opacity .3s; }
.fp-pdf { position: absolute; left: 4%; top: 10%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 240, 220, .07); border: 1px solid var(--f-line); color: var(--f-ink); font-weight: 700; font-size: 14px; opacity: 0; transform: translateY(-20px); transition: .6s; z-index: 4; backdrop-filter: blur(6px); }
.fp-pdf span { font: 700 10px var(--f-mono); background: #e2463a; color: #fff; border-radius: 5px; padding: 8px 6px; }
.fp-chip { position: absolute; left: 2%; top: 14%; z-index: 5; display: grid; gap: 3px; padding: 12px 16px; border-radius: 14px; background: #241015; border: 1px solid var(--f-line); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(16px) scale(.96); transition: .5s; font-size: 15px; }
.fp-chip small { font: 600 10px var(--f-mono); color: var(--f-mute); letter-spacing: .1em; }
.fp-chip s { opacity: .55; }
.fp-chip b { color: var(--f-gold2); font-size: 17px; }
.fp-count { position: absolute; right: 2%; top: 4%; z-index: 6; text-align: right; opacity: 0; transition: opacity .4s; }
.fp-count b { display: block; font: 700 clamp(48px, 6vw, 72px)/1 var(--f-disp); color: var(--f-gold); text-shadow: 0 0 40px var(--f-glow); font-variant-numeric: tabular-nums; }
.fp-count small { font: 600 11px var(--f-mono); letter-spacing: .12em; color: var(--f-mute); }
.fp-clone { left: 50%; top: 50%; width: 230px; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s; z-index: 2; }
.fp-clone .nm { font-size: 16px; }
.fp-how-phone { right: 0; top: 50%; transform: translate(40%, -50%) rotate(8deg); opacity: 0; transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .5s; z-index: 7; }
.fp-how-phone .fp-msg { opacity: 0; transform: translateY(14px) scale(.95); transition: .45s calc(var(--d) * .12s); }

.fp-pin[data-step="0"] .fp-how .fp-pdf { opacity: 1; transform: none; }
.fp-pin[data-step="0"] .fp-how .fp-main { transform: translate(-50%, -50%) rotateY(-18deg) rotateX(6deg) scale(.94); }
.fp-pin[data-step="1"] .fp-how .fp-main { transform: translate(-50%, -50%) rotateY(0) rotateX(0) scale(1.06); }
.fp-pin[data-step="1"] .fp-nbox { opacity: 1; transform: scaleX(var(--sp, 0)); }
.fp-pin[data-step="1"] .fp-finger { opacity: 1; left: calc(-6% + var(--sp, 0) * 100%); }
.fp-pin[data-step="2"] .fp-how .fp-main { transform: translate(-50%, -50%) rotateY(6deg) scale(1.02); }
.fp-pin[data-step="2"] .fp-chip { opacity: 1; transform: none; }
.fp-pin[data-step="2"] .nm-full { clip-path: inset(0 calc(100% - var(--sp, 0) * 100%) 0 0); }
.fp-pin[data-step="2"] .nm-blank { opacity: calc(1 - var(--sp, 0) * 3); }
.fp-pin[data-step="3"] .nm-full, .fp-pin[data-step="4"] .nm-full { clip-path: inset(0 0 0 0); }
.fp-pin[data-step="3"] .nm-blank, .fp-pin[data-step="4"] .nm-blank { opacity: 0; }
.fp-pin[data-step="3"] .fp-how .fp-main { transform: translate(-50%, -50%) rotateY(0) translateZ(40px); }
.fp-pin[data-step="3"] .fp-clone { opacity: 1; transform: translate(calc(-50% + (var(--i) - 1.5) * 58px * var(--fan, 1)), calc(-50% + 10px)) rotate(calc((var(--i) - 1.5) * 9deg * var(--fan, 1))) scale(.92); }
.fp-pin[data-step="3"] .fp-count { opacity: 1; }
.fp-pin[data-step="4"] .fp-how .fp-main { transform: translate(-82%, -50%) rotateY(22deg) scale(.86); filter: brightness(.7); }
.fp-pin[data-step="4"] .fp-how-phone { opacity: 1; transform: translate(-6%, -50%) rotate(0); }
.fp-pin[data-step="4"] .fp-how-phone .fp-msg { opacity: 1; transform: none; }

/* 3 · calls and the count */
.fp-calls { display: grid; align-content: center; gap: 16px; height: auto; min-height: 0; }
.fp-panel { background: linear-gradient(180deg, rgba(255, 240, 220, .07), rgba(255, 240, 220, .03)); border: 1px solid var(--f-line); border-radius: 22px; padding: 16px; display: grid; gap: 8px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.fp-panel-h { display: flex; justify-content: space-between; font: 700 15px var(--f-gu); color: var(--f-ink); padding: 0 4px 4px; }
.fp-panel-h small { color: var(--f-mute); font-weight: 500; }
.fp-call { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; background: rgba(0, 0, 0, .2); border: 1px solid rgba(227, 182, 90, .12); border-radius: 14px; padding: 9px 10px; opacity: 0; transform: translateX(30px); transition: .5s calc(var(--d) * .1s); }
.fp-call .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--f-gu); color: #fff; }
.fp .a1 { background: #8a1c25; } .fp .a2 { background: #0b5c63; } .fp .a3 { background: #b07a1e; }
.fp-call b { font: 700 15px var(--f-gu); color: var(--f-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-call b small { display: block; font-weight: 500; font-size: 11.5px; color: var(--f-mute); }
.fp .res, .fp .est { font: 700 12px var(--f-gu); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.fp .res.ok { background: rgba(79, 209, 139, .14); color: var(--f-ok); }
.fp .res.warn { background: rgba(243, 181, 74, .14); color: var(--f-warn); }
.fp .res.no { background: rgba(255, 122, 107, .14); color: var(--f-no); }
.fp .est { background: rgba(227, 182, 90, .14); color: var(--f-gold2); opacity: 0; transform: scale(.6); transition: .4s calc(var(--d) * .1s) cubic-bezier(.2, .9, .3, 1.4); }
.fp-total { background: radial-gradient(120% 120% at 100% 0%, rgba(227, 182, 90, .18), transparent 60%), rgba(255, 240, 220, .05); border: 1px solid var(--f-line); border-radius: 22px; padding: 18px 20px; display: grid; gap: 8px; opacity: 0; transform: translateY(24px); transition: .6s; }
.fp-total small { font: 600 11px var(--f-mono); letter-spacing: .12em; color: var(--f-mute); }
.fp-total > b { font: 700 clamp(40px, 5vw, 60px)/1 var(--f-disp); color: var(--f-gold); font-variant-numeric: tabular-nums; text-shadow: 0 0 36px var(--f-glow); }
.fp-bars { display: flex; gap: 4px; height: 10px; }
.fp-bars i { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.fp-bars .ok, .fp-legend .ok { background: var(--f-ok); } .fp-bars .warn, .fp-legend .warn { background: var(--f-warn); } .fp-bars .no, .fp-legend .no { background: var(--f-no); }
.fp-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--f-mute); }
.fp-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.fp-pin[data-step] .fp-call { opacity: 1; transform: none; }
.fp-pin[data-step="1"] .fp-call .est, .fp-pin[data-step="2"] .fp-call .est { opacity: 1; transform: none; }
.fp-pin[data-step="2"] .fp-total { opacity: 1; transform: none; }
.fp-pin[data-step="2"] .fp-bars i { width: var(--w); }

/* 4 · on the day */
.fp-sec { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.fp-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 44px; }
.fp-head p { font-size: 17px; }
.fp-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.fp-tile { background: linear-gradient(180deg, rgba(255, 240, 220, .06), rgba(255, 240, 220, .02)); border: 1px solid var(--f-line); border-radius: 24px; padding: 26px; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; }
.fp-tile::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(400px 200px at var(--mx, 80%) var(--my, 0%), rgba(227, 182, 90, .14), transparent 60%); pointer-events: none; }
.fp-att, .fp-ledger { display: grid; gap: 8px; margin-top: 8px; }
.fp-att div, .fp-ledger div { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 13px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(227, 182, 90, .1); }
.fp-att b, .fp-ledger span { color: var(--f-ink); font-weight: 600; font-size: 15px; min-width: 0; }
.fp-att .ok { color: var(--f-ok); font-weight: 700; font-size: 14px; white-space: nowrap; }
.fp-att .no { color: var(--f-no); font-weight: 700; font-size: 14px; white-space: nowrap; }
.fp-ledger div { border-style: dashed; border-width: 0 0 1px; border-radius: 0; background: none; padding: 11px 4px; }
.fp-ledger b { font: 700 17px var(--f-disp); color: var(--f-gold2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fp-ledger .sum { border: 0; background: rgba(227, 182, 90, .1); border-radius: 13px; padding: 13px 14px; margin-top: 4px; }
.fp-ledger .sum b { font-size: 22px; color: var(--f-gold); }

/* 5 · family sync */
.fp-sync { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; height: auto; }
.fp-sync .fp-phone { position: relative; width: 100%; max-width: 230px; justify-self: center; aspect-ratio: 9 / 14; }
.fp-sync-a { transform: rotate(-4deg); }
.fp-sync-b { transform: rotate(4deg); }
.fp-list { background: #14100f; padding: 10px 8px; display: grid; gap: 7px; align-content: start; }
.fp-list div { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 9px 9px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 12.5px; transition: background .5s, box-shadow .5s; }
.fp-list b { color: #f1e6d4; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-list span { font: 700 10.5px var(--f-gu); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.fp-list .ok { background: rgba(79, 209, 139, .15); color: var(--f-ok); }
.fp-list .warn { background: rgba(243, 181, 74, .15); color: var(--f-warn); }
.fp-list .pend { background: rgba(255, 255, 255, .08); color: #aaa; }
.fp-list .hot .ok { display: none; }
.fp-wire { z-index: 3; position: relative; width: clamp(50px, 8vw, 110px); height: 2px; background: repeating-linear-gradient(90deg, var(--f-line) 0 6px, transparent 6px 12px); }
.fp-wire i { position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--f-gold2); box-shadow: 0 0 18px var(--f-gold); opacity: 0; }
.fp-wire span { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font: 700 10.5px var(--f-mono); letter-spacing: .1em; color: var(--f-ok); background: rgba(79, 209, 139, .12); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.fp-wire span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--f-ok); margin-right: 6px; vertical-align: 1px; animation: fp-live 1.4s infinite; }
@keyframes fp-live { 50% { opacity: .2; } }
.fp-rights { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; opacity: 0; transform: translateY(14px); transition: .6s; }
.fp-rights span { border: 1px solid var(--f-line); border-radius: 99px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; background: var(--f-glass); }
.fp-pin[data-step="1"] .fp-sync-a .hot, .fp-pin[data-step="2"] .fp-sync-a .hot, .fp-pin[data-step="2"] .fp-sync-b .hot { background: rgba(79, 209, 139, .12); box-shadow: inset 0 0 0 1px rgba(79, 209, 139, .4); }
.fp-pin[data-step="1"] .fp-sync-a .hot .pend, .fp-pin[data-step="2"] .fp-sync .hot .pend { display: none; }
.fp-pin[data-step="1"] .fp-sync-a .hot .ok, .fp-pin[data-step="2"] .fp-sync .hot .ok { display: inline; }
.fp-pin[data-step="1"] .fp-wire i { opacity: 1; left: calc(var(--sp, 0) * 100% - 6px); }
.fp-pin[data-step="2"] .fp-sync-b { animation: fp-flash .9s; }
.fp-pin[data-step="2"] .fp-rights { opacity: 1; transform: none; }
@keyframes fp-flash { 30% { box-shadow: 0 0 0 4px var(--f-ok), 0 0 60px rgba(79, 209, 139, .5); } }

/* 6 · price */
.fp-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.fp-price-l { display: grid; gap: 18px; }
.fp .fp-big { font: 700 clamp(72px, 10vw, 128px)/.9 var(--f-disp); color: var(--f-gold); text-shadow: 0 0 60px var(--f-glow); font-variant-numeric: tabular-nums; }
.fp .fp-big small { font: 600 18px var(--f-gu); color: var(--f-mute); margin-left: 10px; text-shadow: none; }
.fp-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fp-ticks li { display: flex; gap: 10px; color: var(--f-ink); font-size: 16px; }
.fp-ticks li::before { content: '✦'; color: var(--f-gold); }
.fp-calc { background: radial-gradient(120% 100% at 100% 0%, rgba(227, 182, 90, .14), transparent 55%), rgba(255, 240, 220, .05); border: 1px solid var(--f-line); border-radius: 26px; padding: 28px; display: grid; gap: 14px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.fp-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-picks button { font: 800 15px var(--f-gu); color: var(--f-ink); background: rgba(0, 0, 0, .2); border: 1.5px solid var(--f-line); border-radius: 12px; padding: 9px 14px; cursor: pointer; min-height: 44px; transition: .2s; font-variant-numeric: tabular-nums; }
.fp-picks button:hover { border-color: var(--f-gold); }
.fp-picks button[aria-pressed='true'] { background: linear-gradient(135deg, var(--f-gold2), var(--f-gold)); color: #2a0c06; border-color: transparent; box-shadow: 0 8px 20px -8px var(--f-glow); }
.fp-row { display: flex; justify-content: space-between; gap: 12px; color: var(--f-mute); font-variant-numeric: tabular-nums; }
.fp-row b { color: var(--f-ink); white-space: nowrap; }
.fp-row.tot { border-top: 1px dashed var(--f-line); padding-top: 12px; align-items: baseline; }
.fp-row.tot b { font: 700 30px var(--f-disp); color: var(--f-gold); }
.fp-note { color: var(--f-mute); font-size: 12.5px; text-align: center; }

/* 7 · trust */
.fp-trust { background: linear-gradient(180deg, var(--f-bg), #1d0a0e 50%, var(--f-bg)); }
.fp-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fp-four > div { border: 1px solid var(--f-line); border-radius: 20px; padding: 22px; display: grid; gap: 8px; align-content: start; background: var(--f-glass); }
.fp-four b { font: 700 18px var(--f-disp); color: var(--f-ink); }
.fp-four p { font-size: 14.5px; }

/* 8 · questions, last call, footer */
.fp-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.fp-faq .fp-head { margin: 0; position: sticky; top: 100px; }
.fp-qs { display: grid; gap: 10px; }
.fp-qs details { border: 1px solid var(--f-line); border-radius: 16px; background: var(--f-glass); transition: background .3s, border-color .3s; }
.fp-qs details[open] { background: rgba(227, 182, 90, .07); border-color: rgba(227, 182, 90, .5); }
.fp-qs summary { cursor: pointer; list-style: none; padding: 17px 52px 17px 20px; font: 700 16.5px var(--f-gu); color: var(--f-ink); position: relative; min-height: 44px; }
.fp-qs summary::-webkit-details-marker { display: none; }
.fp-qs summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--f-line); color: var(--f-gold); font: 600 18px var(--f-mono); transition: transform .3s; }
.fp-qs details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.fp-qs details p { padding: 0 20px 18px; font-size: 15px; }
.fp-final { position: relative; padding: clamp(90px, 12vw, 150px) 0; background: radial-gradient(700px 400px at 50% 100%, rgba(122, 20, 32, .8), transparent 70%), var(--f-bg); overflow: hidden; text-align: center; }
.fp-final-in { position: relative; display: grid; gap: 18px; justify-items: center; }
.fp-final-m { width: 90px; height: 90px; color: var(--f-gold); animation: fp-spin 40s linear infinite; }
@keyframes fp-spin { to { transform: rotate(360deg); } }
.fp-final p { max-width: 52ch; font-size: 17px; }
.fp-foot { border-top: 1px solid var(--f-line); padding: 26px 0 calc(26px + env(safe-area-inset-bottom, 0px)); }
.fp-foot-in { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.fp-foot-who { color: var(--f-mute); font-size: 13.5px; flex: 1; min-width: 200px; }
.fp-foot nav { display: flex; gap: 16px; }
.fp-foot nav a { color: var(--f-mute); text-decoration: none; font-size: 14px; }
.fp-foot nav a:hover { color: var(--f-gold); }

/* reveal on scroll (only with JS; without it everything simply shows) */
html.fp-js .fp .rv { transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--rvd, 0) * 90ms); }
html.fp-js .fp .rv:not(.in) { opacity: 0; transform: translateY(28px); }
.fp-att div, .fp-ledger div { transition: opacity .6s calc(var(--d, 0) * .15s + .2s), transform .6s calc(var(--d, 0) * .15s + .2s); }
html.fp-js .fp .rv:not(.in) .fp-att div, html.fp-js .fp .rv:not(.in) .fp-ledger div { opacity: 0; transform: translateX(-16px); }

/* tablets and phones */
@media (max-width: 980px) {
  .fp-links { display: none; }
  .fp-navin { justify-content: space-between; }
  .fp-hero-in, .fp-price, .fp-faq { grid-template-columns: 1fr; }
  .fp-hero-scene { height: 460px; }
  .fp-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-faq .fp-head { position: static; }
}
@media (max-width: 760px) {
  .fp-hide-ph { display: none; }
  .fp-navin { height: 58px; }
  .fp-hero { padding-top: calc(78px + env(safe-area-inset-top, 0px)); padding-bottom: 60px; }
  .fp-hero-copy { gap: 16px; }
  .fp-hero-scene { height: 400px; }
  .fp-hero .fp-card { width: 196px; }
  .fp-hero-card { left: 0; }
  .fp-hero-card.fly { transform: translate(150px, -38%) scale(.18); }
  .fp-hero-phone { width: 170px; right: 0; }
  .fp-btn { min-height: 50px; }
  .fp-cta .fp-btn { flex: 1 1 auto; }
  .fp-pin { height: calc(var(--steps, 3) * 85vh + 100vh); }
  .fp-stage-in { grid-template-columns: 1fr; gap: 10px; padding-top: 64px; align-content: start; }
  .fp-stage-copy { gap: 8px; }
  .fp h2 { font-size: clamp(27px, 7.4vw, 34px); }
  .fp-steps { border: 0; padding: 0; margin: 0; min-height: 106px; }
  .fp-steps li { display: none; padding: 0; background: none !important; transform: none !important; }
  .fp-steps li.on { display: grid; }
  .fp-steps li::before { display: none; }
  .fp-steps li b { font-size: 19px; }
  .fp-steps li span { font-size: 14px; }
  .fp-scene { height: calc(100svh - 330px); min-height: 300px; }
  .fp-card { width: 200px; }
  .fp-clone { width: 160px; }
  .fp-clone .nm { font-size: 13px; }
  .fp-pin[data-step="3"] .fp-clone { --fan: .6; }
  .fp-phone { width: 168px; }
  .fp-pin[data-step="4"] .fp-how .fp-main { transform: translate(-90%, -50%) rotateY(22deg) scale(.7); }
  .fp-pin[data-step="4"] .fp-how-phone { transform: translate(0, -50%); }
  .fp-chip { top: 2%; font-size: 13px; padding: 9px 12px; }
  .fp-pdf { top: 2%; }
  .fp-count b { font-size: 46px; }
  .fp-calls { align-content: start; gap: 10px; height: auto; }
  .fp-call { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 7px 8px; gap: 8px; }
  .fp-call .av { width: 34px; height: 34px; font-size: 12px; }
  .fp-call b { font-size: 13.5px; }
  .fp-call .est { grid-column: 3; grid-row: 1; justify-self: end; }
  .fp-pin[data-step="1"] .fp-call .res, .fp-pin[data-step="2"] .fp-call .res { display: none; }
  .fp-panel { padding: 10px; gap: 6px; }
  .fp-total { padding: 12px 14px; gap: 6px; }
  .fp-total > b { font-size: 40px; }
  .fp-sync { grid-template-columns: 1fr 28px 1fr; }
  .fp-sync .fp-phone { width: 100%; max-width: 160px; border-width: 4px; border-radius: 24px; }
  .fp-sync .fp-phone-bar { padding: 22px 8px 8px; font-size: 11px; grid-template-columns: 20px 1fr; }
  .fp-sync .fp-phone-bar i { width: 20px; height: 20px; }
  .fp-list div { flex-direction: column; align-items: flex-start; font-size: 11.5px; padding: 7px; }
  .fp-wire span { font-size: 0; padding: 5px; top: -22px; }
  .fp-wire span::before { margin: 0; }
  .fp-sync .fp-phone::before { width: 44px; height: 11px; margin-left: -22px; top: 5px; }
  .fp-progress { top: calc(58px + env(safe-area-inset-top, 0px)); }
  .fp-rights { margin-top: 14px; }
  .fp-rights span { font-size: 12px; padding: 5px 10px; }
  .fp-duo, .fp-four { grid-template-columns: 1fr; }
  .fp-tile, .fp-calc { padding: 20px; }
  .fp-head { margin-bottom: 28px; }
  .fp-foot-in { justify-content: center; text-align: center; }
}
@media (max-width: 380px) { .fp-hero .fp-card { width: 172px; } .fp-hero-phone { width: 150px; } }

/* slow phones and reduced motion */
html.fp-lite .fp-dust, html.fp-lite .fp-shine { display: none; }
html.fp-lite .fp-nav.solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(18, 6, 10, .96); }
@media (prefers-reduced-motion: reduce) {
  .fp *, .fp *::before, .fp *::after { animation: none !important; transition: none !important; }
  .fp-dust { display: none; }
}

/* without JS (or before it runs) every step reads in full */
html:not(.fp-js) .fp-steps li { display: grid !important; opacity: 1; }
html:not(.fp-js) .fp-steps li span { max-height: none; }

/* legal pages (terms, privacy, refund) */
.fp-legalpage { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.fp-legal { max-width: 820px; padding-top: calc(110px + env(safe-area-inset-top, 0px)); padding-bottom: 80px; display: grid; gap: 14px; align-content: start; }
.fp-legal h1 { font: 700 clamp(32px, 5vw, 48px)/1.1 var(--f-disp); color: var(--f-gold); }
.fp-legal h2 { font-size: 24px; margin-top: 18px; }
.fp-legal p, .fp-legal li { color: var(--f-ink); opacity: .88; line-height: 1.8; font-size: 16px; }
.fp-legal ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.fp-legal b { color: var(--f-gold2); }
.fp-legal .upd { color: var(--f-mute); font: 600 12.5px var(--f-mono); }

/* the privacy promise on the front page */
.fp-privacy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 22px; padding: 26px 28px; border-radius: 24px; background: linear-gradient(135deg, rgba(11, 92, 99, .55), rgba(13, 74, 80, .35)); border: 1px solid rgba(95, 242, 255, .28); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); }
.fp-privacy-ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: rgba(255, 255, 255, .1); box-shadow: 0 0 30px rgba(95, 242, 255, .25); }
.fp-privacy h3 { font-size: 24px; color: #eafcff; margin-bottom: 10px; }
.fp-privacy ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; color: #d6f4f6; font-size: 15.5px; line-height: 1.65; }
.fp-privacy b { color: #fff; }
@media (max-width: 760px) { .fp-privacy { grid-template-columns: 1fr; padding: 20px; } .fp-privacy h3 { font-size: 20px; } }

/* EachInvite wordmark + tagline */
.ei-word { font-family: 'Cormorant Garamond', 'Rasa', Georgia, serif; font-weight: 700; letter-spacing: .005em; line-height: 1; }
.ei-word i { font-style: italic; font-weight: 600; color: var(--f-gold); margin-left: .02em; }
.fp-brand .ei-word { font-size: 1.18em; color: #f6e7c8; }
.ei-tag { display: inline-block; font: italic 600 clamp(15px, 1.6vw, 19px)/1.3 'Cormorant Garamond', Georgia, serif; letter-spacing: .14em; color: var(--f-gold); opacity: .95; }
.ei-tag.sm { font-size: 14px; letter-spacing: .12em; opacity: .8; }
.fp-hero-copy .ei-tag { margin-bottom: 4px; }
.fp-foot-brand { display: inline-grid; gap: 4px; }
