/* bubbles.larga.me, from the Claude Design handoff (#8). Tokens are the app's (lib/core/theme). */
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #0f1729;
  --body: #4a5366;
  --muted: #5e677a;
  --border: #e3e7ee;
  --divider: #eef0f4;
  --surface: #f3f5f9;
  --accent: #1289e7;
  --link: #0062bf;
  --gutter: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  font-family: Figtree, system-ui, -apple-system, sans-serif;
  font-weight: 500;
}

a { color: var(--link); }

[hidden] { display: none !important; }

/* Shell: header and footer around every page but the invite. */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; }

.site-footer { border-top: 1px solid var(--border); margin-top: auto; }
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.site-footer .brand { font-size: 17px; }
.site-footer .brand img { width: 22px; height: 22px; }

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 15px; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Reading pages: privacy, terms, support. */
.page { flex: 1; padding: 48px 0 72px; }
.page article { max-width: 680px; margin: 0 auto; }

h1 {
  margin: 0;
  font-size: clamp(32px, 4vw + 16px, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

h2 { margin: 48px 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }

.page p, .page li { color: var(--body); font-size: 16px; line-height: 1.6; }
.page p { margin: 0 0 12px; }
.page ul { margin: 0; padding-left: 22px; }
.page li { margin-bottom: 6px; }
.page strong { color: var(--ink); font-weight: 700; }

.updated { margin: 12px 0 0 !important; color: var(--muted) !important; font-size: 13px !important; }
.lead { margin-top: 28px !important; color: var(--ink) !important; font-size: 18px !important; }

/* Support */
.page .intro { margin-top: 16px; font-size: 18px; }

.contact {
  margin: 28px 0 0;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--surface);
}
.contact .label { margin: 0; color: var(--muted); font-size: 13px; }
.contact .email { margin: 0 0 4px; color: var(--ink); font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.contact .hint { margin: 0; font-size: 14px; }

.button {
  display: inline-block;
  margin-top: 20px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.faq h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.faq > div { padding: 24px 0; border-bottom: 1px solid var(--divider); }
.faq > div:last-child { border-bottom: 0; }
.faq p { margin: 0; }

/* Home holding page */
.home { flex: 1; display: grid; place-items: center; padding: 72px 0; text-align: center; }
.home img { width: 72px; height: 72px; }
.home h1 { margin-top: 16px; }
.home p { margin: 12px 0 0; color: var(--body); font-size: 18px; line-height: 1.5; }

/* Invite: accent hero, decision 5B. */
body.invite { background: var(--accent); color: #fff; text-align: center; }

.invite main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 48px var(--gutter) 24px;
}

.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.app-tile {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 32px -12px rgba(15, 23, 41, 0.45);
}
.app-tile img { width: 72px; height: 72px; }

.invite h1 { margin-top: 32px; color: #fff; }
.invite .sub { margin: 12px 0 0; font-size: 20px; line-height: 1.45; }

.actions { padding-top: 40px; }

.open {
  display: block;
  padding: 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 32px -12px rgba(15, 23, 41, 0.45);
}

.get { margin: 24px 0 12px; font-size: 16px; }
.badge img { height: 48px; }

.card {
  padding: 24px 20px;
  border-radius: 24px;
  background: #fff;
  color: var(--body);
  text-align: left;
}
.card h2 { margin: 0 0 4px; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: 0; }
.card p { margin: 0; font-size: 16px; line-height: 1.5; }

.qr {
  display: inline-block;
  margin: 0 auto;
  padding: 20px 20px 16px;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.qr svg { display: block; width: 188px; height: 188px; margin: 0 auto 12px; }
.desktop-title { margin: 24px 0 0; font-size: 20px; font-weight: 800; }
.desktop-body { margin: 12px auto 0; max-width: 360px; font-size: 16px; line-height: 1.5; }

.invite-links { display: flex; justify-content: center; gap: 32px; padding: 32px 0 8px; }
.invite-links a { color: #fff; font-size: 15px; text-decoration: none; }

@media (min-width: 768px) {
  .invite main { justify-content: center; }
  .hero { flex: 0; }
  .actions { padding-top: 32px; }
}
