: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;
  min-height: 100dvh;
  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;
  min-height: 100dvh;
  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; max-width: 70%; height: auto; }

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: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }

.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; }

.simple-page { min-height: 100vh; min-height: 100dvh; 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%, #f1ffdd 0, transparent 35%); }
.simple-page .brand-logo { max-width: 190px; max-height: 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; text-decoration: none;}

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-top: 20px; }
}

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