@font-face { font-family: Bricolage; font-weight: 700; font-display: swap; src: url(/fonts/bricolage-700.woff2) format("woff2"); }
@font-face { font-family: Bricolage; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-800.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-600.woff2) format("woff2"); }

/* The app's tokens: app/src/constants/theme.ts */
:root {
  --background: #120a0b;
  --surface: #1c1112;
  --surface-raised: #241517;
  --line: #33201f;
  --line-strong: #3a2428;
  --text: #f5ecea;
  --text-soft: #e8dad8;
  --text-secondary: #b8a3a1;
  --accent: #c9303f;
  --accent-text: #f07a86;
  --tag-bg: #2e1719;
  --busy: #f2a65a;
  --display: Bricolage, -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0;
  background: var(--background);
  color: var(--text-soft);
  font: 400 17px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-underline-offset: 3px; }
[hidden] { display: none !important; }

/* Text pages: invite, privacy, terms */
main { max-width: 680px; margin: 0 auto; padding: 40px 20px 64px; }
h1 { color: var(--text); font: 700 clamp(34px, 6vw, 44px)/1.08 var(--display); letter-spacing: -0.02em; margin: 0 0 14px; }
h2 { color: var(--text); font: 700 22px/1.2 var(--display); letter-spacing: -0.01em; margin: 36px 0 10px; }
li + li { margin-top: 6px; }
.brand { color: var(--text); display: inline-block; font: 800 28px/1 var(--display); letter-spacing: -0.02em; margin-bottom: 48px; text-decoration: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; margin-top: 28px; padding: 22px; }
.card ol { margin: 0; padding-left: 22px; }
.username { color: var(--accent-text); display: inline-block; font-weight: 600; overflow-wrap: anywhere; }
button, .button {
  background: var(--accent);
  border: 0;
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  display: block;
  font: 600 17px/1.2 Inter, sans-serif;
  margin-top: 18px;
  padding: 17px 16px;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms;
  width: 100%;
}
button:active, .button:active { transform: scale(0.97); }
button.quiet { background: var(--surface-raised); border: 1px solid var(--line-strong); color: var(--text); }
footer { border-top: 1px solid var(--line); color: var(--text-secondary); font-size: 14px; margin-top: 56px; padding-top: 18px; }

/* Home */
.home main { max-width: none; padding: 0; }
.hero { align-items: center; display: flex; isolation: isolate; min-height: min(760px, 88vh); overflow: hidden; position: relative; }
.intro { margin: 0 auto; max-width: 1180px; padding: 96px 32px; position: relative; width: 100%; z-index: 2; }
.intro-text { max-width: 500px; }
.eyebrow { color: var(--accent-text); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; margin: 0 0 14px; text-transform: uppercase; }
.wordmark { color: var(--text); font: 800 clamp(96px, 13vw, 148px)/0.95 var(--display); letter-spacing: -0.03em; margin: 0 0 22px; }
.tagline { color: var(--text-soft); font-size: clamp(19px, 2vw, 22px); line-height: 1.4; margin: 0 0 26px; }
.badge { align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-soft); display: inline-flex; font-size: 14px; font-weight: 600; gap: 9px; padding: 8px 15px; }
.badge i { background: var(--accent-text); border-radius: 50%; height: 8px; width: 8px; }

.map { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%), linear-gradient(to bottom, #000 74%, transparent); -webkit-mask-composite: source-in; bottom: 0; mask-composite: intersect; mask-image: linear-gradient(to right, transparent 0, #000 34%), linear-gradient(to bottom, #000 74%, transparent); margin: 0; position: absolute; right: 0; top: 0; width: 72%; z-index: 1; }
.map svg { display: block; height: 100%; width: 100%; }
.map text { fill: #6e5254; font: 700 15px var(--display); letter-spacing: 0.08em; }
.pin { left: var(--x); position: absolute; top: var(--y); transform: translate(-50%, -50%); }
.float { animation: float 5.5s ease-in-out infinite; animation-delay: var(--d, 0s); display: flex; flex-direction: column; align-items: center; }
.faces { display: flex; }
.face { align-items: center; border: 3px solid var(--background); border-radius: 50%; box-shadow: 0 6px 16px rgb(0 0 0 / 0.5); color: var(--background); display: flex; font: 600 16px Inter, sans-serif; height: 50px; justify-content: center; width: 50px; }
.face + .face { margin-left: -14px; }
.place { background: rgb(20 12 13 / 0.92); border: 1px solid #4a2c30; border-radius: 10px; color: var(--text); font-size: 13px; font-weight: 600; margin-top: 7px; padding: 4px 10px; white-space: nowrap; }
.spot { align-items: center; background: #140c0d; border: 2px solid var(--accent-text); border-radius: 10px; color: var(--accent-text); display: flex; height: 32px; justify-content: center; opacity: 0.8; rotate: 45deg; width: 32px; }
.spot svg { fill: none; height: 16px; rotate: -45deg; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; width: 16px; }
.spot.packed { border-color: var(--busy); box-shadow: 0 0 22px rgb(242 166 90 / 0.65); color: var(--busy); opacity: 1; }
.me { background: var(--text); border: 4px solid var(--accent); border-radius: 50%; display: block; height: 22px; position: relative; width: 22px; }
.me::after { animation: pulse 2.6s ease-out infinite; background: var(--accent-text); border-radius: 50%; content: ""; inset: -4px; opacity: 0.5; position: absolute; z-index: -1; }
@keyframes float { 50% { transform: translateY(-7px); } }
@keyframes pulse { to { opacity: 0; transform: scale(3.2); } }

.promises { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 0 auto; max-width: 1180px; padding: 16px 32px 0; }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.promise svg { background: var(--tag-bg); border-radius: 12px; box-sizing: content-box; color: var(--accent-text); fill: none; height: 22px; margin-bottom: 16px; padding: 10px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 22px; }
.promise h2 { font-size: 21px; margin: 0 0 6px; }
.promise p { color: var(--text-secondary); font-size: 16px; line-height: 1.5; margin: 0; }
.home footer { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin: 56px auto 0; max-width: 1116px; padding: 18px 0 40px; width: calc(100% - 40px); }
.home footer nav { display: flex; gap: 20px; }

@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .map { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); bottom: auto; height: 400px; left: 0; mask-image: linear-gradient(to bottom, #000 62%, transparent); right: auto; width: 100%; }
  .intro { padding: 396px 20px 28px; }
  .promises { grid-template-columns: 1fr; padding: 8px 20px 0; }
  .home footer { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .float, .me::after { animation: none; }
}
