:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --card: rgba(255, 255, 255, 0.86);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: rgba(210, 210, 215, 0.78);
  --accent: #2c7afe;
  --accent-dark: #1a55ba;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(44, 122, 254, 0.18), transparent 32%),
    radial-gradient(circle at 80% 12%, rgba(0, 184, 217, 0.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 38%, #eef4ff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.share-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 0;
}

.share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 18px;
}

.share-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.share-brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.share-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.share-brand-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.share-brand-tagline {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.share-header-actions {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.share-primary-button,
.share-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.share-primary-button:hover,
.share-secondary-button:hover {
  transform: translateY(-1px);
}

.cs-landing-app-store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 24px;
  border: 1px solid #2c7afe;
  border-radius: 54px;
  background: #2c7afe;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cs-landing-app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(44, 122, 254, 0.26);
}

.cs-landing-app-store-icon,
.cs-landing-app-store-text {
  position: relative;
  z-index: 1;
}

.cs-landing-app-store-icon {
  display: inline-flex;
  opacity: 0;
  transform: translateX(-10px);
  animation: cs-landing-badge-slide-in 0.45s ease forwards 0.08s;
}

.cs-landing-app-store-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.cs-landing-app-store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: "Inter", "Inter Placeholder", sans-serif;
}

.cs-landing-app-store-kicker,
.cs-landing-app-store-title {
  opacity: 0;
  transform: translateY(5px);
  animation: cs-landing-badge-rise-in 0.45s ease forwards;
}

.cs-landing-app-store-kicker {
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  animation-delay: 0.14s;
}

.cs-landing-app-store-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  animation-delay: 0.2s;
}

.cs-landing-app-store-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-120%);
  animation: cs-landing-badge-shine 2.8s ease-in-out infinite 0.9s;
}

@keyframes cs-landing-badge-slide-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cs-landing-badge-rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cs-landing-badge-shine {
  0%,
  15% {
    opacity: 0;
    transform: translateX(-120%);
  }

  35%,
  55% {
    opacity: 1;
  }

  70%,
  100% {
    opacity: 0;
    transform: translateX(220%);
  }
}

.share-main {
  min-height: calc(100vh - 280px);
  display: grid;
  place-items: center;
  padding: 54px 0 48px;
}

.share-card {
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  text-align: center;
}

.share-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #00b8d9);
  box-shadow: 0 18px 36px rgba(44, 122, 254, 0.24);
}

.share-icon svg {
  width: 34px;
  height: 34px;
}

.share-eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-copy {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.55;
}

.share-code-panel {
  display: none;
  width: min(440px, 100%);
  margin: 28px auto 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.share-code-panel[data-visible="true"] {
  display: grid;
  gap: 8px;
}

.share-code-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-code {
  font-size: clamp(32px, 9vw, 46px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.share-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.share-primary-button {
  min-width: 220px;
  padding: 0 24px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 16px 30px rgba(44, 122, 254, 0.26);
}

.share-secondary-button {
  min-width: 160px;
  padding: 0 22px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
}

.share-note {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .share-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .share-header {
    gap: 12px;
    padding: 18px 0 8px;
  }

  .share-brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .share-brand-tagline {
    display: none;
  }

  .cs-landing-app-store-badge {
    min-height: 52px;
    padding: 10px 20px;
  }

  .cs-landing-app-store-icon svg {
    width: 20px;
    height: 20px;
  }

  .cs-landing-app-store-kicker {
    font-size: 9.6px;
  }

  .cs-landing-app-store-title {
    font-size: 14.4px;
  }

  .share-main {
    padding: 34px 0 34px;
  }

  .share-card {
    padding: 26px 18px;
    border-radius: 26px;
  }

  .share-actions {
    flex-direction: column;
  }

  .share-primary-button,
  .share-secondary-button {
    width: 100%;
  }
}
