/* StreakPass layout — shells, containers, grids, safe areas. */

/* Phone-focused flow shell (survey, onboarding, signup): single column, capped width. */
.sp-shell {
  max-width: var(--sp-page-max);
  margin: 0 auto;
  padding: var(--sp-page-pad);
  padding-top: calc(var(--sp-page-pad) + env(safe-area-inset-top));
  padding-bottom: calc(var(--sp-page-pad) + env(safe-area-inset-bottom));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-5);
}

/* Wide shell for marketing/dashboard on desktop. */
.sp-shell--wide { max-width: var(--sp-page-max-wide); }

/* Content area that grows, pushing CTA bar to the bottom of the viewport. */
.sp-shell__grow { flex: 1; }

/* Bottom-anchored CTA row (Skip | Next pattern from onboarding comps). */
.sp-cta-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-space-4);
  padding-top: var(--sp-space-4);
}
.sp-cta-bar > .sp-button { flex: 1; }
.sp-cta-bar > .sp-button--text { flex: 0 0 auto; }

/* Stack + cluster helpers */
.sp-stack > * + * { margin-top: var(--sp-space-4); }
.sp-stack--tight > * + * { margin-top: var(--sp-space-2); }
.sp-stack--loose > * + * { margin-top: var(--sp-space-6); }

.sp-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-space-3);
  align-items: center;
}
.sp-cluster--between { justify-content: space-between; }

/* Simple responsive grid (offers on desktop, stat cards) */
.sp-grid {
  display: grid;
  gap: var(--sp-space-4);
  grid-template-columns: 1fr;
}
.sp-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Divider */
.sp-divider {
  border: none;
  border-top: 1px solid var(--sp-border-soft);
  margin: var(--sp-space-4) 0;
}

/* Ambient hero glow behind headline sections (subtle radial ember). */
.sp-glow-bg { position: relative; }
.sp-glow-bg::before {
  content: "";
  position: absolute;
  inset: -40px 0 auto 0;
  height: 240px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 122, 0, 0.12), transparent 70%);
  pointer-events: none;
}
