/* Cycle 17 Lane C: hero banner rebuilt as a confident NAVY band.
   Before (C15): flat white surface, navy headlines, legacy-blue CTAs, phone mockup.
   After (C17):  full-width NAVY band (#1D3A5E → #152C49 gradient), white headline,
                 light-navy-tint sub-text, electric-blue (#0557E7) primary CTA,
                 white/ghost secondary CTA. 3 feature cards on white canvas below.
   The C15 flat-white treatment was the central brand mistake — corrected here per
   Docs/design/brand_identity_v2.md §4.
   var(--wasla-*) tokens are used with inline fallbacks so this file stays
   independently styled when Lane A's token files haven't merged yet.
   RTL: logical properties (margin-inline, inset-inline) keep this direction-safe. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ------------------------------------------------------------------
 * Hero — NAVY band. Full-bleed background, white headline, blue CTA.
 * ------------------------------------------------------------------ */
.wasla-hero {
  position: relative;
}

/* Navy band: breaks out of the centred .container gutter to span full width. */
.wasla-hero__band {
  position: relative;
  overflow: hidden;
  margin-inline: calc(50% - 50vw);
  padding: clamp(2.75rem, 6vw, 5rem) 1.5rem clamp(2.75rem, 6vw, 4.5rem);
  background: var(--wasla-navy, #1D3A5E);
  background: linear-gradient(
    160deg,
    var(--wasla-navy, #1D3A5E) 0%,
    var(--wasla-navy-deep, #152C49) 100%
  );
  color: #fff;
}

.wasla-hero__inner {
  max-width: 720px;
}

.wasla-hero__inner--auth {
  max-width: 820px;
}

.wasla-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.wasla-hero__eyebrow span[aria-hidden="true"] {
  color: var(--wasla-gold, #D4AF36);
}

/* Authenticated greeting eyebrow — same navy-band DNA. */
.wasla-hero__eyebrow--auth {
  background: rgba(255, 255, 255, 0.1);
}

/* Gold sub-headline kicker — the signature navy + gold lockup (v2 §3). */
.wasla-hero__kicker {
  margin: 0 0 0.5rem;
  color: var(--wasla-gold, #D4AF36);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wasla-hero__title {
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
}

/* Authenticated greeting headline — smaller scale. */
.wasla-hero__title--auth {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.wasla-hero__subtitle {
  color: var(--wasla-navy-tint, #C8D2E2);
  line-height: 1.7;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 400;
  margin: 0;
  max-width: 36em;
}

.wasla-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Buttons — scoped overrides so the navy band always reads correctly even
   before Lane B's button system merges. */
.wasla-hero__btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
}

.wasla-hero__btn--primary,
.wasla-hero__btn--primary:link,
.wasla-hero__btn--primary:visited {
  background: var(--wasla-blue, #0557E7);
  border: 1.5px solid var(--wasla-blue, #0557E7);
  color: #fff;
}

.wasla-hero__btn--primary:hover,
.wasla-hero__btn--primary:focus {
  background: var(--wasla-blue-hover, #0246C4);
  border-color: var(--wasla-blue-hover, #0246C4);
  color: #fff;
}

/* Ghost-on-navy: transparent fill, white text, white outline. */
.wasla-hero__btn--ghost,
.wasla-hero__btn--ghost:link,
.wasla-hero__btn--ghost:visited {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}

.wasla-hero__btn--ghost:hover,
.wasla-hero__btn--ghost:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.wasla-hero__link {
  color: var(--wasla-navy-tint, #C8D2E2);
  text-decoration: none;
  font-weight: 600;
  padding-inline: 0.5rem;
}

.wasla-hero__link:hover,
.wasla-hero__link:focus {
  color: #fff;
  text-decoration: underline;
}

.wasla-hero__trust {
  margin: 1.25rem 0 0;
  color: var(--wasla-navy-tint, #C8D2E2);
  font-size: 0.9rem;
  opacity: 0.85;
}

/* LAN-001: hero text + mascot side by side on desktop. The text column keeps
   its 720px cap; the mascot fills the remaining inline space. */
.wasla-hero__layout {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

/* Mascot illustration slot — decorative robot beside the headline (>=992px). */
.wasla-mascot-slot {
  flex: 0 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wasla-mascot-slot img {
  width: 100%;
  max-width: 320px;
  height: auto;
}

/* Hidden on tablet and below — the hero reads as a single text column there. */
@media (max-width: 991.98px) {
  .wasla-mascot-slot {
    display: none;
  }
}

/* ------------------------------------------------------------------
 * Feature-card row — on white canvas, overlapping up into the navy band.
 * ------------------------------------------------------------------ */
.wasla-hero__cards {
  position: relative;
  margin-top: -2.5rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* `.wasla-feature-card` is Lane B's component family; these rules are a
   self-sufficient fallback so the row reads correctly pre-merge. */
.wasla-hero__feature {
  background: var(--wasla-surface, #fff);
  border: 1px solid var(--wasla-line, #E4E7EC);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(20, 40, 70, 0.06);
}

.wasla-feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wasla-ai-tint, #E5ECFC);
  color: var(--wasla-blue, #0557E7);
  margin-bottom: 0.85rem;
}

.wasla-feature-card__title,
.wasla-hero__feature-title {
  font-weight: 600;
  margin: 0;
  font-size: 1.05rem;
  color: var(--wasla-ink, #1D3A5E);
}

.wasla-feature-card__desc,
.wasla-hero__feature-desc {
  margin: 0.35rem 0 0;
  color: var(--wasla-body, #56606F);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------------
 * Section bands — white / navy rhythm for the marketing surface.
 * ------------------------------------------------------------------ */
.wasla-band-white {
  background: var(--wasla-surface, #fff);
}

.wasla-band-navy {
  background: var(--wasla-navy, #1D3A5E);
  background: linear-gradient(
    180deg,
    var(--wasla-navy, #1D3A5E) 0%,
    var(--wasla-navy-deep, #152C49) 100%
  );
  color: #fff;
}

/* ------------------------------------------------------------------
 * "How it works" — white band, navy headline.
 * ------------------------------------------------------------------ */
.wasla-how {
  margin-top: 0;
}

.wasla-how__title {
  font-weight: 800;
  color: var(--wasla-ink, #1D3A5E);
}

.wasla-how__card {
  border: 1px solid var(--wasla-line, #E4E7EC);
  border-radius: 12px;
  padding: 1.25rem;
  background: var(--wasla-surface, #fff);
  box-shadow: 0 1px 2px rgba(20, 40, 70, 0.06);
  height: 100%;
}

.wasla-how__step {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wasla-ai-tint, #E5ECFC);
  color: var(--wasla-blue, #0557E7);
  font-weight: 800;
}

/* ------------------------------------------------------------------
 * Marketing — navy band, white text, gold accent.
 * ------------------------------------------------------------------ */
.wasla-marketing {
  margin-top: 0;
}

.wasla-marketing__header {
  max-width: 680px;
  margin: 0 auto;
}

.wasla-marketing__eyebrow {
  color: var(--wasla-gold, #D4AF36);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.wasla-marketing__title,
.wasla-marketing__subtitle {
  font-weight: 800;
  color: #fff;
}

.wasla-marketing__lead {
  color: var(--wasla-navy-tint, #C8D2E2);
}

/* Cards sit as white surfaces on the navy band for contrast. */
.wasla-marketing__card,
.wasla-marketing__panel,
.wasla-marketing__step {
  background: var(--wasla-surface, #fff);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(8, 18, 35, 0.35);
  height: 100%;
  color: var(--wasla-body, #56606F);
}

.wasla-marketing__card h3,
.wasla-marketing__panel-title,
.wasla-marketing__cta-title {
  color: var(--wasla-ink, #1D3A5E);
}

.wasla-marketing__step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.wasla-marketing__step .fw-bold {
  color: var(--wasla-ink, #1D3A5E);
}

.wasla-marketing__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wasla-ai-tint, #E5ECFC);
  color: var(--wasla-blue, #0557E7);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.wasla-marketing__step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wasla-blue, #0557E7);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.wasla-marketing__cta {
  background: var(--wasla-surface, #fff);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(8, 18, 35, 0.35);
}

.wasla-marketing__cta-title {
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.wasla-marketing__cta-lead {
  color: var(--wasla-body, #56606F);
}

/* C17 fixup: the CTA card is a WHITE surface inside the .wasla-band-navy
   section. Its title/lead are single-class selectors (0,1,0) that lost the
   cascade to .wasla-band-navy's light inherited text (0,1,1) — rendering
   navy-tint text on white (failing contrast). Scope the dark text to the
   card so it wins (0,2,0). */
.wasla-marketing__cta .wasla-marketing__cta-title {
  color: var(--wasla-ink, #1D3A5E);
}
.wasla-marketing__cta .wasla-marketing__cta-lead {
  color: var(--wasla-body, #56606F);
}

.wasla-marketing__panel-title {
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.wasla-marketing__list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--wasla-body, #56606F);
}

.wasla-marketing__list li {
  position: relative;
  padding-inline-end: 1.5rem;
  margin-bottom: 0.5rem;
}

.wasla-marketing__list li::before {
  content: "✓";
  position: absolute;
  inset-inline-end: 0;
  color: var(--wasla-blue, #0557E7);
  font-weight: 700;
}

.wasla-marketing__categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.wasla-marketing__category {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  text-align: center;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* ------------------------------------------------------------------
 * Responsive breakpoints.
 * ------------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .wasla-hero__cards {
    grid-template-columns: 1fr;
    margin-top: -1.5rem;
  }

  .wasla-marketing__categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .wasla-hero__band {
    padding-inline: 1rem;
  }

  .wasla-hero__cta {
    gap: 0.5rem;
  }

  .wasla-marketing__step {
    flex-direction: column;
    text-align: center;
  }

  .wasla-marketing__categories {
    grid-template-columns: 1fr;
  }
}

/* Cycle 24 Lane A: dark-mode lifts for the navy hero band marketing cards. */
[data-bs-theme="dark"] .wasla-marketing__card,
[data-bs-theme="dark"] .wasla-marketing__panel,
[data-bs-theme="dark"] .wasla-marketing__step,
[data-bs-theme="dark"] .wasla-marketing__cta {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--wasla-line);
}
