/* Forked website: shared styles. Colors match the app (Forked/Views/Theme.swift). */
:root {
  color-scheme: light;
  --navy: #1a2136;
  --navy-deep: #0b0f1c;
  --cream: #fdf9f2;
  --sand: #f5eee5;
  --blue: #5cbdff;
  --orange: #ff994a;
  --orange-ink: #e2701c;
  --lavender: #b3a3eb;
  --red: #ff6b6b;
  --muted: #5d6475;
  --line: rgba(26, 33, 54, 0.08);
  --card: rgba(255, 255, 255, 0.78);
  --shadow-sm: 0 2px 8px rgba(26, 33, 54, 0.06);
  --shadow: 0 14px 40px rgba(26, 33, 54, 0.12);
  --shadow-lg: 0 30px 80px rgba(26, 33, 54, 0.22);
  --brand: linear-gradient(120deg, var(--blue), var(--lavender) 50%, var(--orange));
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft blue/orange glow behind the top of every page, like the app. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  z-index: -1;
  background:
    radial-gradient(520px 420px at 8% 0%, rgba(92, 189, 255, 0.30), transparent 70%),
    radial-gradient(560px 460px at 95% 8%, rgba(255, 153, 74, 0.28), transparent 70%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: rgba(253, 249, 242, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(253, 249, 242, 0.88); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 21px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 700; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--navy); }
@media (max-width: 760px) { .nav-links a:not(.pill) { display: none; } }

/* ---------- Buttons & pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.pill.small { padding: 8px 14px; font-size: 14px; background: var(--navy); color: white !important; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--orange); color: white; box-shadow: 0 10px 24px rgba(255, 153, 74, 0.38); }
.btn.primary:hover { box-shadow: 0 14px 30px rgba(255, 153, 74, 0.48); }
.btn.dark { background: var(--navy); color: white; box-shadow: 0 10px 24px rgba(26, 33, 54, 0.25); }
.btn.ghost { background: white; color: var(--navy); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.btn svg { width: 20px; height: 20px; flex: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: white;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 153, 74, 0.2); }

.gradient-text {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); font-weight: 900; margin: 22px 0 18px; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 31em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 38px; }
.stat strong { display: block; font-size: 30px; font-weight: 900; line-height: 1; }
.stat span { font-size: 14px; font-weight: 700; color: var(--muted); }

@media (max-width: 560px) {
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat strong { font-size: 26px; }
  .stat span { display: block; font-size: 12.5px; line-height: 1.3; margin-top: 4px; }
}
@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero .lede { margin: 0 auto; }
  .hero .actions, .stats { justify-content: center; }
}

/* ---------- Phone mockup ---------- */
.stage { position: relative; display: flex; justify-content: center; padding: 10px 0 30px; }
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 620;
  border-radius: 48px;
  padding: 11px;
  background: linear-gradient(145deg, #2a3350, var(--navy-deep));
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background:
    radial-gradient(180px 160px at 0% 0%, rgba(92, 189, 255, 0.28), transparent 70%),
    radial-gradient(200px 180px at 100% 6%, rgba(255, 153, 74, 0.26), transparent 70%),
    linear-gradient(var(--cream), var(--sand));
  display: flex;
  flex-direction: column;
}
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.status { display: flex; justify-content: space-between; padding: 14px 26px 0; font-size: 12px; font-weight: 800; }
.app-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 8px; }
.app-bar .title { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 18px; }
.app-bar .title img { width: 22px; height: 22px; }
.app-bar .count { font-size: 11px; font-weight: 800; color: var(--muted); background: white; padding: 4px 9px; border-radius: 999px; }
.avatars { display: flex; }
.avatars i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--cream); margin-left: -7px; font-style: normal; font-size: 10px; font-weight: 900; color: white; display: grid; place-items: center; }

.deck { position: relative; flex: 1; margin: 6px 16px 0; }
.card {
  position: absolute;
  inset: 0 0 10px;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 30px rgba(26, 33, 54, 0.16);
  display: flex;
  flex-direction: column;
  transform-origin: 50% 110%;
}
.card .photo { position: relative; flex: 1; min-height: 0; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
/* Illustrated card art, same as the app's: a dish-colored gradient,
   faint scattered emoji for texture, and one big emoji. */
.card .art { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.art i, .art b { position: absolute; font-style: normal; line-height: 1; }
.art i { font-size: 30px; opacity: 0.16; }
.art i:nth-child(1) { left: 6%;  top: 6%;  transform: rotate(-30deg); }
.art i:nth-child(2) { left: 44%; top: 2%;  transform: rotate(7deg); }
.art i:nth-child(3) { left: 80%; top: 10%; transform: rotate(-16deg); }
.art i:nth-child(4) { left: 18%; top: 30%; transform: rotate(21deg); }
.art i:nth-child(5) { left: 68%; top: 34%; transform: rotate(-9deg); }
.art i:nth-child(6) { left: 4%;  top: 62%; transform: rotate(12deg); }
.art i:nth-child(7) { left: 78%; top: 66%; transform: rotate(-24deg); }
.art b { left: 50%; top: 48%; transform: translate(-50%, -50%); font-size: 92px; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.25)); }
.art.sushi   { background: linear-gradient(135deg, hsl(191, 95%, 61%), hsl(216, 74%, 45%)); }
.art.tacos   { background: linear-gradient(135deg, hsl(40, 95%, 61%), hsl(58, 74%, 45%)); }
.art.dessert { background: linear-gradient(135deg, hsl(317, 95%, 61%), hsl(342, 74%, 45%)); }
.card .info { padding: 12px 14px 14px; }
.card h3 { font-size: 17px; font-weight: 900; letter-spacing: -0.01em; }
.card .meta { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chip { font-size: 10.5px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: var(--sand); }
.chip.open { background: rgba(52, 199, 89, 0.14); color: #1f8a3c; }
.card.back2 { transform: translateY(16px) scale(0.9); opacity: 0.6; }
.card.back1 { transform: translateY(8px) scale(0.95); }

.stamp {
  position: absolute;
  top: 18px;
  padding: 3px 10px;
  border: 3px solid currentColor;
  border-radius: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.85);
  opacity: 0;
}
.stamp.yum { left: 14px; color: var(--orange); transform: rotate(-14deg); }

.swipe-buttons { display: flex; justify-content: center; gap: 22px; padding: 10px 0 22px; }
.round {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: white;
  box-shadow: 0 6px 16px rgba(26, 33, 54, 0.12);
}
.round svg { width: 24px; height: 24px; }
.round.nah { color: var(--blue); }
.round.yum { color: var(--orange); }

/* The front card swipes right on a loop, then the stack resets. */
.card.front { animation: swipe 6.5s cubic-bezier(0.5, 0, 0.3, 1) infinite 1.2s; }
.card.front .stamp.yum { animation: stamp 6.5s ease infinite 1.2s; }
.round.yum { animation: press 6.5s ease infinite 1.2s; }
@keyframes swipe {
  0%, 38% { transform: none; opacity: 1; }
  52% { transform: translateX(28px) rotate(4deg); opacity: 1; }
  66% { transform: translateX(150%) rotate(18deg); opacity: 0; }
  67%, 86% { transform: translateY(8px) scale(0.95); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes stamp {
  0%, 40% { opacity: 0; }
  50%, 64% { opacity: 1; }
  66%, 100% { opacity: 0; }
}
@keyframes press {
  0%, 44% { transform: none; }
  50% { transform: scale(0.88); }
  58%, 100% { transform: none; }
}

.match-toast {
  position: absolute;
  right: calc(50% - 250px);
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 800;
  animation: toast 6.5s ease infinite 1.2s;
}
.match-toast .heart { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: white; font-size: 17px; }
.match-toast small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.code-toast {
  position: absolute;
  left: calc(50% - 236px);
  top: 120px;
  padding: 12px 14px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}
.code-toast .tiles { display: flex; gap: 5px; margin-top: 6px; }
.code-toast .tiles b { width: 26px; height: 32px; border-radius: 8px; background: var(--sand); color: var(--navy); display: grid; place-items: center; font-size: 17px; font-weight: 900; }
.match-toast, .code-toast { z-index: 5; }
@keyframes toast {
  0%, 62% { opacity: 0; transform: translateY(10px) scale(0.96); }
  70%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(10px) scale(0.96); }
}
@media (max-width: 560px) {
  .phone { width: 270px; }
  .match-toast { right: 4px; bottom: 0; }
  .code-toast { left: 0; top: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .card.front, .card.front .stamp.yum, .round.yum { animation: none; }
  .match-toast { animation: none; opacity: 1; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker { font-size: 14px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-ink); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 900; margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; }
@media (max-width: 700px) { section { padding: 64px 0; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.step .num {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 19px; color: white;
  margin-bottom: 18px;
}
.step:nth-child(1) .num { background: var(--blue); }
.step:nth-child(2) .num { background: var(--lavender); }
.step:nth-child(3) .num { background: var(--orange); }
.step h3 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.step p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 26px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.feature .icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 23px;
  background: var(--sand);
  margin-bottom: 16px;
}
.feature h3 { font-size: 19px; font-weight: 900; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Towns band */
.towns-band {
  border-radius: 36px;
  padding: 56px 32px;
  text-align: center;
  background:
    radial-gradient(400px 260px at 0% 0%, rgba(92, 189, 255, 0.35), transparent 70%),
    radial-gradient(400px 260px at 100% 100%, rgba(255, 153, 74, 0.35), transparent 70%),
    var(--navy);
  color: white;
  overflow: hidden;
}
.towns-band h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; }
.towns-band p { color: rgba(255, 255, 255, 0.72); font-size: 18px; margin: 12px auto 30px; max-width: 34em; }
.town-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 0 auto; padding: 0; list-style: none; }
.town-list li {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  font-weight: 800;
  font-size: 15px;
}
.town-list li.more { background: transparent; box-shadow: none; color: rgba(255, 255, 255, 0.7); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  padding: 0 22px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 900;
  font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand);
  font-size: 20px;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; }

/* Closing call to action */
.cta {
  text-align: center;
  padding: 64px 24px;
  border-radius: 36px;
  background: white;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.cta img { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 22px; box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(34px, 5vw, 54px); font-weight: 900; }
.cta p { color: var(--muted); font-size: 18px; margin: 12px 0 28px; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 14px; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
footer nav { display: flex; gap: 20px; font-weight: 700; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--navy); }
footer .credits { font-size: 12.5px; line-height: 1.6; opacity: 0.85; }
footer .credits a { text-decoration: underline; text-decoration-color: rgba(93, 100, 117, 0.4); }

/* Scroll reveal (only when JS is on; content is visible without it). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Single-card pages (invite, not found) ---------- */
.solo { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 24px 16px 56px; }
.panel {
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 36px 26px 30px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.panel .app-icon { width: 92px; height: 92px; border-radius: 22px; margin: 0 auto; box-shadow: var(--shadow); }
.panel h1 { font-size: 34px; font-weight: 900; margin: 22px 0 8px; }
.panel .sub { color: var(--muted); font-size: 17px; }
.code-tiles { display: flex; justify-content: center; gap: 10px; margin: 26px 0 8px; }
.code-tiles span {
  width: 62px; height: 76px;
  display: grid; place-items: center;
  font-size: 36px; font-weight: 900;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line), 0 4px 12px rgba(26, 33, 54, 0.06);
}
.code-label { font-size: 12px; font-weight: 900; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.panel .buttons { display: grid; gap: 10px; margin-top: 26px; }
.panel .buttons .btn { width: 100%; }
.how-join {
  margin: 26px 0 0;
  padding: 18px 18px 4px;
  border-radius: 22px;
  background: var(--cream);
  text-align: left;
}
.how-join ol { list-style: none; margin: 0; padding: 0; counter-reset: j; }
.how-join .title { font-weight: 900; margin-bottom: 10px; }
.how-join li { counter-increment: j; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.how-join li::before {
  content: counter(j);
  flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}
.how-join strong { color: var(--navy); }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }

/* ---------- Text pages (privacy) ---------- */
.prose { max-width: 720px; margin: 0 auto; padding: 48px 0 24px; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 900; margin-bottom: 10px; }
.prose .updated { color: var(--muted); font-weight: 700; margin-bottom: 32px; }
.prose h2 { font-size: 24px; font-weight: 900; margin: 36px 0 10px; }
.prose p, .prose li { color: #3a4155; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0 0; }
.prose li { margin-bottom: 8px; }
.prose .callout {
  padding: 20px 22px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  font-weight: 700;
  color: var(--navy);
}

/* Small phones (iPhone SE and narrower) */
footer nav { flex-wrap: wrap; row-gap: 8px; }
footer nav a { white-space: nowrap; }
@media (max-width: 400px) {
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .pill.small { padding: 7px 12px; font-size: 13px; }
  .btn { padding: 14px 20px; font-size: 16px; }
  .cta { padding: 48px 14px; }
}
