:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #526071;
  --blue: #0868f6;
  --blue-dark: #0055d8;
  --line: #d8e7ff;
  --surface: rgba(255, 255, 255, 0.88);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #f9fbff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(28px, env(safe-area-inset-top)) 18px max(34px, env(safe-area-inset-bottom));
}

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .55;
  pointer-events: none;
}

.ambient-left { left: -220px; top: 6%; background: radial-gradient(circle, #bfe2ff 0, transparent 68%); }
.ambient-right { right: -230px; top: 20%; background: radial-gradient(circle, #e9ccff 0, transparent 68%); }

.invite-card {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  padding: 34px 32px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(35, 74, 125, .14);
  backdrop-filter: blur(18px);
}

.brand-logo { display: block; margin: 0 auto 24px; max-width: 54%; height: auto; }

.photo-stack { position: relative; width: 120px; height: 92px; margin: 0 auto 20px; }
.photo-card { position: absolute; width: 72px; height: 82px; overflow: hidden; border: 4px solid #fff; border-radius: 13px; box-shadow: 0 6px 14px rgba(28, 56, 92, .18); }
.photo-blue { left: 9px; top: 0; transform: rotate(-10deg); background: linear-gradient(#4ca7ff 0 56%, #1265df 57%); }
.photo-purple { right: 7px; top: 8px; transform: rotate(10deg); background: linear-gradient(#c494f3 0 56%, #9751d8 57%); }
.sun { position: absolute; top: 12px; right: 10px; width: 13px; height: 13px; border-radius: 50%; background: white; }
.mountain { position: absolute; bottom: -5px; width: 48px; height: 48px; border-radius: 8px; transform: rotate(45deg); }
.mountain-back { left: 28px; background: rgba(40, 55, 195, .85); }
.mountain-front { left: 1px; bottom: -13px; background: rgba(4, 81, 204, .95); }
.photo-purple .mountain-back { background: rgba(131, 62, 196, .8); }
.photo-purple .mountain-front { background: rgba(108, 42, 180, .94); }
.pin { position: absolute; z-index: 3; left: 50%; bottom: -1px; width: 31px; height: 38px; transform: translateX(-50%) rotate(45deg); border: 3px solid white; border-radius: 50% 50% 50% 8px; background: #ff6e64; box-shadow: 0 3px 7px rgba(20, 45, 70, .25); }
.pin span { position: absolute; left: 7px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: white; }

.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 7vw, 2.65rem); line-height: 1.08; letter-spacing: -.045em; }
.subtitle { max-width: 370px; margin: 16px auto 26px; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }

.store-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.store-button { min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 10px 14px; color: var(--blue); text-decoration: none; border: 2px solid var(--blue); border-radius: 16px; font-size: 1rem; font-weight: 750; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.store-button-primary, .store-button.is-preferred { color: white; border-color: var(--blue); background: linear-gradient(135deg, var(--blue-dark), var(--blue)); box-shadow: 0 8px 18px rgba(8, 104, 246, .2); }
.store-button:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(8, 104, 246, .18); }
.store-button:focus-visible, .text-link:focus-visible { outline: 3px solid #9dc8ff; outline-offset: 3px; }
.store-button svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.store-button span { display: flex; flex-direction: column; line-height: 1.1; }
.store-button small { margin-bottom: 3px; font-size: .64rem; font-weight: 650; opacity: .78; }

.instruction { display: grid; grid-template-columns: 52px 1fr; gap: 15px; margin-top: 22px; padding: 19px; text-align: left; background: linear-gradient(135deg, #eef7ff, #f6f2ff); border: 1px solid var(--line); border-radius: 19px; }
.instruction-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--blue); background: #dcecff; border-radius: 50%; }
.instruction-icon svg { width: 29px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.instruction h2 { margin: 1px 0 5px; font-size: 1.08rem; }
.instruction p { margin: 0; color: #344256; font-size: .94rem; line-height: 1.45; }
.privacy-note { margin: 19px 0 0; color: #8993a3; font-size: .78rem; }

.simple-page { min-height: 100vh; display: grid; place-content: center; justify-items: center; padding: 32px; text-align: center; background: radial-gradient(circle at 20% 20%, #dbeeff 0, transparent 35%), radial-gradient(circle at 80% 60%, #f1ddff 0, transparent 35%); }
.simple-page .brand-logo { max-width: 190px; }
.simple-page p { max-width: 520px; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.text-link { color: var(--blue); font-weight: 750; }

body[data-environment="staging"]::after { content: "STAGING"; position: fixed; right: 12px; bottom: 10px; z-index: 4; padding: 5px 8px; color: #503200; background: #ffd66b; border-radius: 7px; font-size: 10px; font-weight: 900; letter-spacing: .08em; }

@media (max-width: 540px) {
  .page-shell { padding-left: 12px; padding-right: 12px; }
  .invite-card { padding: 28px 20px 23px; border-radius: 26px; }
  .brand-logo { margin-bottom: 19px; }
  .store-actions { grid-template-columns: 1fr; }
  .store-button { min-height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
