/* ============================================================================
   Barmaso — welcome screen
   ----------------------------------------------------------------------------
   The banner artwork already carries the "Mobile Accessories / BARMASO"
   wording, so the page heading sits below it rather than on top; overlaying
   would print two headlines over one another.

   On a phone the banner is nearly square (1600x1211) and would eat the whole
   screen, so it is cropped to a wider aspect ratio there and shown in full on
   larger screens.
   ============================================================================ */

.welcome {
  display: grid;
  gap: 28px;
  padding: 8px 0 40px;
}

/* --- Banner ---------------------------------------------------------------- */
.welcome-banner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.welcome-banner-img {
  width: 100%;
  height: auto;
}

/* --- Heading --------------------------------------------------------------- */
.welcome-copy {
  display: grid;
  gap: 8px;
  text-align: center;
}

.welcome-heading {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
}

.welcome-sub {
  font-size: clamp(15px, 2.4vw, 19px);
  font-weight: 600;
  color: var(--ink-soft);
}

/* --- Entry cards ----------------------------------------------------------- */
.welcome-entries {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.entry-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.entry-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.entry-card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
}

.entry-card-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.entry-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.entry-card-desc {
  font-size: 13px;
  color: var(--ink-soft);
}

.entry-card-note {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.entry-card-arrow {
  margin-left: auto;
  flex: none;
  color: var(--ink-faint);
  transition: transform 0.18s ease, color 0.18s ease;
}

.entry-card:hover .entry-card-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* --- Phone ----------------------------------------------------------------- */
@media (max-width: 640px) {
  .welcome {
    gap: 22px;
    padding-bottom: 28px;
  }

  .welcome-banner { border-radius: var(--radius-lg); }

  /* Crop the tall banner to a landscape band so the heading and the two entry
     cards are reachable without scrolling past a full screen of artwork.
     Skipped when a phone-specific image is configured — that one is already
     composed for this shape and cropping it again would cut the artwork. */
  .welcome-banner[data-has-mobile="false"] .welcome-banner-img {
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    object-position: center;
  }

  .entry-card { padding: 18px; }
  .entry-card-icon { width: 46px; height: 46px; }
}

@media (max-width: 380px) {
  .welcome-banner[data-has-mobile="false"] .welcome-banner-img { aspect-ratio: 3 / 2; }
  .entry-card-arrow { display: none; }
}

/* The sign-in reached from the header's Login button, in place of the cards,
   with the way back beneath it. */
.welcome-login {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 32px 16px;
}

.welcome-login-back { min-width: 160px; }
