@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Shared by index.html (any app link) and invite.html (invitations).
   Layout: wide screens pair the scan steps with a QR station in one card;
   phones drop the card and keep a single primary action near the thumb. */
:root {
  --ground: #f3f7fa;
  --ground-narrow: #ffffff;
  --surface: #ffffff;
  --station: #f7fafc;
  --ink: #0c0c0c;
  --on-ink: #ffffff;
  --ink-hover: #2b2f36;
  --muted: #566170;
  --line: #d5dce6;
  --line-strong: #aab6c5;
  --accent: #265bd7;
  --accent-soft: #eaf1f6;
  --shadow: 0 1px 2px rgb(12 12 12 / 0.05), 0 16px 40px -16px rgb(12 12 12 / 0.14);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --page-max: 1040px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0c0c0c;
    --ground-narrow: #0c0c0c;
    --surface: #141619;
    --station: #191c20;
    --ink: #f4f6f8;
    --on-ink: #0c0c0c;
    --ink-hover: #d5dbe3;
    --muted: #9aa4b1;
    --line: #2a2f36;
    --line-strong: #4a535e;
    --accent: #8aa8f5;
    --accent-soft: #18213a;
    --shadow: 0 16px 40px -16px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Each block names the platforms it belongs to; the rest stay hidden. */
:root[data-platform="desktop"] [data-show]:not([data-show~="desktop"]),
:root[data-platform="android"] [data-show]:not([data-show~="android"]),
:root[data-platform="ios"] [data-show]:not([data-show~="ios"]),
:root:not([data-platform]) [data-show]:not([data-show~="generic"]) { display: none !important; }

.top, .shell, .foot { width: 100%; max-width: var(--page-max); margin-inline: auto; }
.top { padding-block: 28px 0; }
.wordmark { display: block; width: auto; height: 26px; color: var(--ink); }

.shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding-block: 40px;
}

.card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.intro {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  padding: 56px 48px;
}
.heading { display: flex; flex-direction: column; gap: 12px; }
h1 {
  margin: 0;
  font-size: clamp(2rem, 1.35rem + 1.5vw, 2.625rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.destination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}
/* The dot from the wordmark's "y" */
.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Invitation code, set like a coupon to cut out */
.ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 16px;
  padding: 16px 16px 16px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--station);
}
.ticket-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticket-code {
  grid-column: 1;
  overflow-wrap: anywhere;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.ticket .button-quiet { grid-column: 2; grid-row: 1 / span 2; }

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.steps span { padding-top: 4px; }

.station {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  padding: 48px 40px;
  background: var(--station);
  border-left: 1px solid var(--line);
}
.qr {
  width: min(100%, 248px);
  aspect-ratio: 1;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.qr svg { display: block; width: 100%; height: 100%; }
.url {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font: 500 0.8125rem/1.4 var(--mono);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font: 700 1.0625rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.button:hover { background: var(--ink-hover); }
.button:active { transform: scale(0.98); }
.button svg { flex: none; width: 20px; height: 20px; }
.button-quiet {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}
.button-quiet:hover { background: transparent; border-color: var(--ink); }
.button-quiet svg { width: 18px; height: 18px; }
.button-block { width: 100%; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-flex; border-radius: 8px; }
.badge img { display: block; width: auto; height: 40px; }

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-inline: 8px;
}
.stores p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.handoff {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: auto;
  padding-top: 40px;
}
.app {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.app-icon {
  flex: none;
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line);
}
.app-text { display: flex; flex-direction: column; min-width: 0; margin: 0; line-height: 1.35; }
.app-text strong { font-size: 1rem; font-weight: 800; }
.app-text span { color: var(--muted); font-size: 0.875rem; }
.actions { display: flex; flex-direction: column; gap: 16px; }
.note { margin: 0; color: var(--muted); font-size: 0.875rem; }
.fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 8px 28px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Phones: no card, the page itself is the surface. */
:root:not([data-platform="desktop"]) { --page-max: 560px; }
:root:not([data-platform="desktop"]) body { background: var(--ground-narrow); }
:root:not([data-platform="desktop"]) .shell { justify-content: flex-start; padding-block: 0 24px; }
:root:not([data-platform="desktop"]) .card {
  display: block;
  margin-top: clamp(32px, 11vh, 112px);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
:root:not([data-platform="desktop"]) .intro { gap: 24px; padding: 0; }
:root:not([data-platform="desktop"]) h1 { font-size: clamp(1.875rem, 1.45rem + 2vw, 2.25rem); }

/* Narrow desktop windows stack the QR station under the steps. */
@media (max-width: 760px) {
  .card { grid-template-columns: minmax(0, 1fr); }
  .intro { padding: 40px 28px; }
  .station { padding: 36px 28px; border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:active { transform: none; }
}
