/* Five onboarding — CSS scenes, mint mission tone */

#s-onboarding {
  background: #0a0a0a;
  color: #fff;
  overflow: hidden;
}

#s-onboarding.scr {
  display: flex;
  flex-direction: column;
}

#s-splash.welcome-scr.scr.on {
  z-index: 10;
}

#s-onboarding.scr.on {
  z-index: 3;
}

body.dark #s-onboarding {
  background: #0a0a0a;
  color: #fff;
}

.ob-skip {
  position: absolute;
  top: max(10px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 40;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.18s ease;
}

.ob-skip:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.22);
}

.ob-carousel-wrap {
  position: absolute;
  inset: 0;
}

.ob-carousel {
  display: flex;
  height: 100%;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ob-carousel::-webkit-scrollbar {
  display: none;
}

.ob-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
}

.ob-photo-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #1a1a2e;
}

/* CSS scene backgrounds — fallback when photos are missing */
.ob-scene--creators {
  background: linear-gradient(145deg, #0f2a24 0%, #1a3d35 40%, #5dd6a8 120%);
}

.ob-scene--heroes {
  background: linear-gradient(155deg, #1a1f2e 0%, #2a3548 45%, #3fc491 130%);
}

.ob-scene--impact {
  background: linear-gradient(160deg, #142028 0%, #1e3a32 50%, #5dd6a8 140%);
}

.ob-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
  transform-origin: center center;
}

.ob-photo-stage.has-photo .ob-gradient {
  background: linear-gradient(
    180deg,
    rgba(8, 12, 16, 0.12) 0%,
    rgba(8, 12, 16, 0.02) 38%,
    rgba(8, 12, 16, 0.52) 68%,
    rgba(6, 14, 11, 0.94) 100%
  );
}

.ob-photo-stage.photo-missing .ob-photo {
  display: none;
}

.ob-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 16, 0.28) 0%,
    rgba(8, 12, 16, 0.08) 32%,
    rgba(8, 12, 16, 0.45) 62%,
    rgba(8, 12, 16, 0.88) 100%
  );
}

.ob-gradient::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(
    to top,
    rgba(93, 214, 168, 0.12) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.ob-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(228px + env(safe-area-inset-bottom, 0px));
  padding: 0 max(24px, env(safe-area-inset-left, 0px)) 20px max(24px, env(safe-area-inset-right, 0px));
  z-index: 10;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ob-slide.is-active .ob-copy {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ob-copy,
  .ob-slide.is-active .ob-copy {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ob-photo {
    transform: scale(1.04);
  }
}

.ob-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--mint);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(93, 214, 168, 0.45);
}

.ob-headline {
  font-size: clamp(28px, 7.5vw, 34px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.7px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  margin: 0 0 24px;
  max-width: 20ch;
}

.ob-body {
  font-size: clamp(15px, 4vw, 17px);
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  max-width: 34ch;
}

.ob-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 8px max(24px, env(safe-area-inset-right, 0px))
    max(20px, env(safe-area-inset-bottom, 0px))
    max(24px, env(safe-area-inset-left, 0px));
}

.ob-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.ob-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.32s ease, background 0.32s ease;
}

.ob-dot.on {
  width: 24px;
  background: var(--mint);
}

.ob-btn {
  width: 100%;
  padding: 17px 24px;
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  background: var(--mint);
  color: #fff;
  box-shadow: 0 10px 32px rgba(93, 214, 168, 0.42);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ob-btn:active {
  transform: scale(0.98);
  background: var(--mint-dark);
}

.ob-btn:focus-visible,
.ob-skip:focus-visible,
.ob-dot:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* Welcome screen — mockup layout */
#s-splash.welcome-scr {
  background: #0a1210;
  color: #fff;
  overflow: hidden;
}

#s-splash.welcome-scr.scr {
  display: flex;
  flex-direction: column;
}

.welcome-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #142820;
}

.welcome-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.12);
  transform-origin: center 28%;
}

.welcome-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 14, 12, 0.42) 0%,
    rgba(8, 14, 12, 0.08) 22%,
    rgba(8, 14, 12, 0.02) 38%,
    rgba(8, 18, 14, 0.55) 58%,
    rgba(6, 14, 11, 0.92) 78%,
    rgba(5, 12, 9, 0.98) 100%
  );
  z-index: 2;
}

.welcome-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 11;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: max(14px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 0
    max(20px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}

.welcome-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px))
    max(18px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
}

.welcome-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.welcome-brand--corner {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  pointer-events: auto;
}

.welcome-brand--corner .welcome-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 24px;
  box-shadow: 0 8px 22px rgba(93, 214, 168, 0.38);
}

.welcome-brand--corner .welcome-logo-text {
  font-size: clamp(22px, 5.5vw, 26px);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.welcome-logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #6de0b3 0%, var(--mint) 55%, #3fc491 100%);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(93, 214, 168, 0.42);
}

.welcome-logo-text {
  font-size: clamp(28px, 7vw, 34px);
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1;
  color: #fff;
}

.welcome-headline {
  font-size: clamp(26px, 6.8vw, 32px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.4px;
  color: #fff;
  margin: 0 0 10px;
  max-width: 18ch;
}

.welcome-accent {
  color: var(--mint);
}

.welcome-sub {
  font-size: clamp(15px, 4vw, 17px);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 22px;
  max-width: 26ch;
}

.welcome-cta {
  width: 100%;
  max-width: 100%;
  padding: 17px 24px;
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  background: var(--mint);
  color: #1a1a2e;
  box-shadow: 0 10px 32px rgba(93, 214, 168, 0.38);
  transition: transform 0.18s ease, background 0.18s ease;
  margin-bottom: 26px;
}

.welcome-cta:active {
  transform: scale(0.98);
  background: var(--mint-dark);
}

.welcome-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.welcome-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
}

.welcome-pillar-icon {
  color: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.welcome-pillar-title {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
}

.welcome-pillar-sub {
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .welcome-hero {
    transform: scale(1.12);
  }
}

.five-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-bottom: 14px;
}

.five-trust span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.five-trust--compact span {
  color: var(--sub);
  background: var(--surface);
  border-color: var(--border);
}

.ob-trust-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ob-trust-row .stripe-badge--compact {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.ob-trust-row .stripe-badge-powered {
  color: rgba(255, 255, 255, 0.72);
}

.welcome-pillar-sub .stripe-badge {
  justify-content: center;
}

.ob-trust {
  margin-bottom: 12px;
}

.ob-trust span {
  font-size: 10px;
  padding: 3px 8px;
}
