/*
 * Styles for the /join/:code invite landing page (Android App Link
 * fallback + install funnel — see phase-3-window-roles-links.md). Plain
 * CSS, no build step — Propshaft bundles this alongside application.css
 * automatically (stylesheet_link_tag :app bundles every *.css under
 * app/assets). Brand colors/radii/shadows come from theme.css.
 */

body.join-landing {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-wash);
  font-family: var(--font);
  color: var(--ink);
  padding: 1.5rem;
  box-sizing: border-box;
}

.join-card {
  max-width: 26rem;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-3);
  text-align: center;
}

/* Small brand row above the invite so the page is unmistakably Albomara's. */
.join-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
  color: var(--teal);
}

.join-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--grad-sunset);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.join-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.join-card h1 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.join-meta {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.join-copy {
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.join-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  transition: background 0.15s ease;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow-1);
}

.btn-primary:hover {
  background: var(--coral-dark);
}

.btn-secondary {
  background: var(--teal-container);
  color: var(--on-teal-container);
}

.btn-secondary:hover {
  background: #bcdde9;
}

.join-hint {
  font-size: 0.85rem;
  color: var(--ink-faint);
  line-height: 1.4;
  margin: 0;
}

.join-legal {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.join-legal a {
  color: var(--ink-faint);
}

/* Printable QR poster (plan2.md F-3) — a QR version of the join page. */
.print-poster .qr-wrap {
  margin: 1rem auto;
  display: inline-block;
}

.print-poster .qr-wrap svg {
  width: 100%;
  max-width: 18rem;
  height: auto;
}

.print-only-hint {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.print-only-hint .btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media print {
  .no-print {
    display: none !important;
  }

  body.join-landing {
    background: #fff;
    min-height: 0;
    padding: 0;
  }

  .join-card {
    box-shadow: none;
    max-width: none;
  }
}
