:root {
  color-scheme: light;
  --tribe-bg: #f6f7fb;
  --tribe-surface: #ffffff;
  --tribe-text: #111827;
  --tribe-muted: #6b7280;
  --tribe-border: #e5e7eb;
  --tribe-primary: #2f66ff;
  --tribe-primary-dark: #214ed1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--tribe-bg);
  color: var(--tribe-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

#share-fallback-root:empty {
  display: none;
}

.share-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.share-shell {
  width: min(100%, 520px);
  background: var(--tribe-surface);
  border: 1px solid var(--tribe-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
}

.share-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.share-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-media .share-logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: contain;
}

.share-content {
  padding: 24px;
}

.share-eyebrow {
  margin: 0 0 8px;
  color: var(--tribe-primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.share-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 900;
}

.share-description {
  margin: 12px 0 0;
  color: var(--tribe-muted);
  font-size: 15px;
  line-height: 1.5;
}

.share-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.share-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 0 16px;
  background: var(--tribe-primary);
  color: white;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.share-button:hover {
  background: var(--tribe-primary-dark);
}

.share-button.secondary {
  background: white;
  color: var(--tribe-text);
  border-color: var(--tribe-border);
}

.share-button.secondary:hover {
  background: #f9fafb;
}

.install-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--tribe-border);
}

.install-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 900;
}

.install-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.install-note,
.share-footnote {
  margin: 12px 0 0;
  color: var(--tribe-muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .share-page {
    padding: 0;
    align-items: stretch;
  }

  .share-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .share-title {
    font-size: 25px;
  }

  .install-links {
    grid-template-columns: 1fr;
  }
}
