* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light;
  --bg: #f6f6fb;
  --text: #121212;
  --muted: #5b5b6a;
  --primary: #5c2be3;
  --primary-dark: #4a22b8;
  --card: #ffffff;
  --border: #e6e6ef;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

a.link {
  color: var(--primary);
  text-decoration: none;
}

a.link:hover {
  text-decoration: underline;
}

.hero {
  background: radial-gradient(circle at top, #7b5df5, #3b197f);
  color: #ffffff;
  text-align: center;
  padding: 96px 20px 72px;
}

.logo-circle {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-image {
  width: 192px;
  height: 192px;
  margin: 0 auto 20px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.logo-link,
.share-logo-link {
  display: inline-flex;
  text-decoration: none;
}

.eyebrow {
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0.2rem;
  margin-bottom: 12px;
  opacity: 0.8;
}

.hero h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  margin-bottom: 16px;
}

.tagline {
  max-width: 700px;
  margin: 0 auto 24px;
  font-size: 1.1rem;
  opacity: 0.95;
}

.note {
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.75;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.section-cta {
  margin-top: 24px;
}

.section-cta .btn.primary {
  background: var(--primary);
  color: #ffffff;
}

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

.store-buttons .btn.primary {
  background: var(--primary);
  color: #ffffff;
}

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

.store-buttons .btn.secondary {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #ffffff;
}

.store-buttons .btn.secondary:hover {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.btn.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.open-in-app {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}

.open-in-app-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.open-in-app-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.open-in-app-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.open-in-app-actions .btn {
  white-space: nowrap;
}

.share-landing {
  padding: 64px 20px 80px;
  justify-content: center;
  background: var(--bg);
}

.share-landing:not([hidden]) {
  display: flex;
}

.share-card {
  width: min(560px, 100%);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.share-logo {
  width: 300px;
  height: 300px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.share-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.share-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f2efff;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0 auto 14px;
}

.share-card h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.share-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.share-bio {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  word-break: break-word;
}

.share-channels {
  width: 100%;
  margin-bottom: 20px;
}

.share-channels-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.share-channels-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-channel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f8f7fc;
  border: 1px solid var(--border);
  text-align: left;
}

.share-channel-photo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.share-channel-photo-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e8e4f5;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.share-channel-info {
  min-width: 0;
  flex: 1;
}

.share-channel-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-channel-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 2px 0 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-subtitle {
  color: var(--muted);
  margin-bottom: 22px;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 14px;
  width: 100%;
}

.share-actions .btn.primary {
  background: var(--primary);
  color: #ffffff;
}

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

.share-actions .btn.secondary {
  border: 1px solid var(--border);
  color: var(--primary-dark);
  background: #ffffff;
}

.share-actions .btn.secondary:hover {
  border-color: var(--primary-dark);
}

.share-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f2efff;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 16px;
}

.share-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
}

.share-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.share-footer-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.share-footer-actions .btn.secondary {
  border: 1px solid var(--border);
  color: var(--primary-dark);
  background: #ffffff;
}

.share-footer-actions .btn.secondary:hover {
  border-color: var(--primary-dark);
}

.primary {
  background: #ffffff;
  color: var(--primary);
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

main {
  padding-bottom: 40px;
}

.section {
  padding: 72px 20px;
  background: var(--card);
}

.section.alt {
  background: #f0f0f8;
}

.section-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.section h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  margin-bottom: 16px;
}

.section p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.steps {
  list-style: none;
  margin: 24px auto 0;
  max-width: 420px;
  display: grid;
  gap: 12px;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
}

footer {
  padding: 32px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

footer p {
  max-width: 900px;
  margin: 0 auto;
}

footer a.link {
  color: var(--primary);
}

footer a.link:hover {
  color: var(--primary-dark);
}

.page-hero {
  padding: 64px 20px 40px;
  background: radial-gradient(circle at top, #7b5df5, #3b197f);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.page-hero .section-inner {
  text-align: left;
}

.page-hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 12px;
  color: #ffffff;
}

.page-hero .tagline,
.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.page-content {
  padding: 40px 20px 72px;
}

.content {
  max-width: 980px;
  margin: 0 auto;
}

.content h2 {
  font-size: 1.5rem;
  margin: 32px 0 12px;
  scroll-margin-top: 120px;
}

.content h3 {
  font-size: 1.2rem;
  margin: 24px 0 10px;
}

.content p {
  color: var(--muted);
  margin-bottom: 16px;
}

.content ul,
.content ol {
  margin: 0 0 16px 20px;
  color: var(--muted);
}

.content li {
  margin-bottom: 8px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 24px;
}

.badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: #f2efff;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.badge-row a.badge {
  text-decoration: none;
}

.badge-row a.badge:hover {
  text-decoration: underline;
}

.help-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.help-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.help-card h3 {
  margin-top: 0;
}

.callout {
  background: #f9f6ff;
  border: 1px solid #e4dbff;
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
}

.top-nav {
  padding: 18px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.top-nav-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.top-nav-links {
  display: flex;
  gap: 16px;
  margin-left: auto;
  flex-wrap: wrap;
  align-items: center;
}

.top-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.top-nav .brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.top-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--primary-dark);
}

.top-nav a:hover {
  text-decoration: underline;
}

/* Collapsible sections */
.section-summary {
  color: var(--muted);
  margin-bottom: 8px;
}

.show-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px 0;
  margin-bottom: 8px;
}

.show-more-toggle:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.show-more-toggle::after {
  content: "›";
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.show-more-toggle.expanded::after {
  transform: rotate(90deg);
}

.collapsible-content {
  display: none;
  animation: fadeSlideIn 0.3s ease;
}

.collapsible-content.open {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Blog cards */
.blog-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(92, 43, 227, 0.1);
}

.blog-card .blog-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f2efff;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: var(--text);
}

.blog-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 12px;
}

.blog-card .read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Blog article detail */
.blog-article {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  margin-top: 24px;
  animation: fadeSlideIn 0.3s ease;
}

.blog-article.open {
  display: block;
}

.blog-article h3 {
  font-size: 1.4rem;
  margin: 0 0 8px;
  color: var(--text);
}

.blog-article .blog-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f2efff;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-bottom: 16px;
}

.blog-article h4 {
  font-size: 1.1rem;
  margin: 20px 0 8px;
  color: var(--text);
}

.blog-article p {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.65;
}

.blog-article ul,
.blog-article ol {
  margin: 0 0 16px 20px;
  color: var(--muted);
}

.blog-article li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.blog-article .close-article {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  background: none;
  padding: 8px 0 0;
}

.blog-article .close-article:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.step-box {
  background: #f9f6ff;
  border: 1px solid #e4dbff;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 12px 0;
}

.step-box strong {
  color: var(--primary-dark);
}

.tip-box {
  background: #eef7ee;
  border: 1px solid #c8e6c9;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 12px 0;
}

@media (max-width: 640px) {
  .hero {
    padding: 80px 18px 64px;
  }

  .buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .open-in-app-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .open-in-app-actions {
    width: 100%;
  }

  .share-card {
    padding: 28px 22px;
  }
}
