:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  background: #f4faff;
  color: #102a43;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -15%, rgb(100 199 255 / 29%), transparent 31rem),
    linear-gradient(180deg, #fafdff 0%, #eef7ff 100%);
}

.page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.app-card {
  overflow: hidden;
  width: min(100%, 27.5rem);
  border: 1px solid #dceaf7;
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: 0 24px 56px rgb(16 42 67 / 10%);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.98rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: none;
  place-items: center;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, #2d8cff, #64c7ff);
  box-shadow: 0 6px 14px rgb(45 140 255 / 20%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.app-badge {
  padding: 0.45rem 0.65rem;
  border: 1px solid #dceaf7;
  border-radius: 999px;
  background: #f4faff;
  color: #527089;
  font-size: 0.65rem;
  font-weight: 750;
  white-space: nowrap;
}

.hero-art {
  display: grid;
  height: 12.75rem;
  margin: 1rem 1.25rem 0;
  place-items: center;
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at 50% 45%, rgb(183 167 255 / 46%), transparent 56%),
    linear-gradient(145deg, #f1f6ff, #ebf9ff 72%, #e9fff7);
}

.hero-art img {
  display: block;
  width: min(100%, 24rem);
  height: 100%;
  object-fit: contain;
}

.app-content {
  padding: 1.25rem 1.75rem 1.5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #4c85bb;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}

h1 {
  margin: 0;
  color: #102a43;
  font-size: clamp(1.9rem, 6.2vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.intro {
  margin: 0.7rem 0 0.9rem;
  color: #4a5d72;
  font-size: 0.95rem;
  line-height: 1.55;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature-row span {
  padding: 0.42rem 0.58rem;
  border: 1px solid #dceaf7;
  border-radius: 0.6rem;
  background: #f4faff;
  color: #375775;
  font-size: 0.72rem;
  font-weight: 700;
}

.button {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #2d8cff, #237ee9);
  box-shadow: 0 12px 24px rgb(45 140 255 / 22%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    box-shadow 150ms ease,
    transform 150ms ease;
}

.button svg {
  width: 1.3rem;
  height: 1.3rem;
}

.button:hover {
  box-shadow: 0 15px 28px rgb(45 140 255 / 28%);
  transform: translateY(-1px);
}

.button:focus-visible,
.footer a:focus-visible {
  outline: 3px solid #2d8cff;
  outline-offset: 3px;
}

.button[aria-disabled='true'] {
  pointer-events: none;
  opacity: 0.55;
}

.channel-link {
  display: block;
  width: fit-content;
  margin: 0.9rem auto 0;
  color: #376b9a;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

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

.channel-link:focus-visible {
  outline: 3px solid #2d8cff;
  outline-offset: 3px;
}

.home-card .fine-print {
  margin-top: 1rem;
}

.handoff {
  display: flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.7rem;
  color: #60768a;
  font-size: 0.8rem;
  text-align: center;
}

.handoff-spinner {
  width: 0.9rem;
  height: 0.9rem;
  flex: none;
  border: 2px solid #c8e7ff;
  border-top-color: #2d8cff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.handoff[data-state='invalid'] .handoff-spinner {
  display: none;
}

.fine-print {
  margin: 0.7rem 0 0;
  color: #8495a5;
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

.footer {
  display: flex;
  width: min(100%, 27.5rem);
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.9rem;
  color: #74899e;
  font-size: 0.72rem;
}

.footer a {
  color: #376b9a;
  text-decoration: none;
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .page-shell {
    justify-content: flex-start;
    padding: 0;
    background: #fff;
  }

  .app-card {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-content {
    padding-inline: 1.5rem;
  }

  .footer {
    padding: 0 1rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .handoff-spinner {
    animation: none;
  }
}
