/* =============================================================
   NextUp — Welcome / App Entry Screen (dark, app-native feel)
   NO marketing hero. Matches the in-app dark design language.
   ============================================================= */

.nx-welcome {
  position: relative;
  height: 100%;
  background: #000000;
  color: #fafaf9;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top, 0) 24px env(safe-area-inset-bottom, 0);
  max-width: 480px;
  margin: 0 auto;
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* === Hero photo grid (6 service category shots behind the hero copy) ===
   Photos sit at full brightness; a subtle bottom-weighted gradient keeps
   the role cards + copy legible without muting the imagery. */
.nx-welcome__grid {
  position: absolute;
  inset: 0 0 40% 0;               /* photos cover the top 60% of the screen */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  z-index: 0;
  pointer-events: none;
  opacity: 1;                       /* full brightness */
}
.nx-welcome__tile {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.02);
}
/* Soft gradient — almost clear over the photos, heavy black at the bottom
   where the role cards live, so buttons always sit on pure black. */
.nx-welcome__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.15) 0%,
      rgba(0,0,0,0.25) 35%,
      rgba(0,0,0,0.55) 55%,
      rgba(0,0,0,0.92) 72%,
      #000 85%,
      #000 100%);
}

/* Keep all interactive content above the photo grid */
.nx-welcome__top,
.nx-welcome__center,
.nx-welcome__footer {
  position: relative;
  z-index: 2;
}

.nx-welcome__top {
  padding: 28px 0 0;
  /* Small min-height so the logo sits on the photo area at the top */
  min-height: 40vh;
  display: flex;
  align-items: flex-start;
}

.nx-welcome__logo {
  font-family: 'Zodiak', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fafaf9;
}

.nx-welcome__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;        /* hero copy + role cards sit low, photos breathe above */
  padding: 20px 0 10px;
}

.nx-welcome__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #78716c;
  margin: 0 0 20px;
}

.nx-welcome__headline {
  font-family: 'Zodiak', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 9vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fafaf9;
  margin: 0 0 16px;
}

.nx-welcome__sub {
  font-size: 15px;
  color: #a8a29e;
  letter-spacing: 0.01em;
  margin: 0 0 48px;
}

.nx-welcome__bullets {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 2px;
}

.nx-welcome__bullet {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 15px;
  color: #d6d3d1;
}

.nx-welcome__bullet-num {
  font-family: 'Zodiak', Georgia, serif;
  font-size: 14px;
  color: #57534e;
  letter-spacing: 0.02em;
  width: 22px;
  flex-shrink: 0;
}

.nx-role-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

.nx-role-card {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 20px 22px;
  text-align: left;
  color: #fafaf9;
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.nx-role-card:hover {
  background: #1a1a1a;
  border-color: #3a3a3a;
}

.nx-role-card:active { transform: scale(0.99); }

.nx-role-card__title {
  font-family: 'Zodiak', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fafaf9;
  margin-bottom: 6px;
}

.nx-role-card__sub {
  font-size: 13px;
  color: #a8a29e;
  line-height: 1.45;
  padding-right: 28px;
}

.nx-role-card__arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #a8a29e;
  font-family: 'Satoshi', -apple-system, sans-serif;
}

.nx-welcome__footer {
  padding: 20px 0 32px;
}

.nx-welcome__signin {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: #a8a29e;
}

.nx-welcome__link {
  color: #fafaf9;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-weight: 500;
}
