/* ============================================================================
   SberPass landing — single-screen role picker (/, mobile-first)
   Uses design-tokens.css; only layout-specific overrides live here.
   ============================================================================ */

body {
  min-height: 100vh;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
    radial-gradient(60% 40% at 100% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
    var(--canvas);
}

.landing {
  max-width: 1080px;
  min-height: 100vh;
  margin: 0 auto;
  padding: var(--space-3) var(--space-5) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ───── Header ─────────────────────────────────────────────────────────── */

.landing__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-1);
}

.landing__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  text-decoration: none;
}

.landing__brand:hover { text-decoration: none; }

.landing__mark {
  width: 36px;
  height: 36px;
  border-radius: var(--rounded-md);
  background: var(--brand-gradient);
  color: var(--on-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

/* ───── Hero ───────────────────────────────────────────────────────────── */

.landing__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
}

.landing__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

.landing__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--ink-subtle);
  padding: 6px 12px;
  background: var(--surface-2);
  border-radius: var(--rounded-pill);
}

.landing__title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 720px;
}

.landing__lede {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 580px;
}

/* ───── Role cards ─────────────────────────────────────────────────────── */

.landing__roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.role-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.role-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--rounded-xl);
  padding: 1.5px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
  pointer-events: none;
}

.role-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  border-color: transparent;
}

.role-card:hover::before { opacity: 1; }

.role-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-brand);
}

.role-card__icon {
  font-size: 28px;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: var(--rounded-lg);
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.role-card--migrant .role-card__icon {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14) 0%, rgba(103, 232, 249, 0.10) 100%);
}

.role-card--employer .role-card__icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(110, 231, 183, 0.10) 100%);
}

.role-card__role {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.role-card__lede {
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-muted);
  /* Reserve two lines so single- and two-line ledes keep the CTA, bullets and
     demo buttons aligned across the side-by-side cards. */
  min-height: 2.8em;
}

/* The Sber/partner row is horizontal and has no lede — opt it out. */
.role-card--sber .role-card__lede { min-height: 0; }

.role-card__cta {
  align-self: flex-start;
  margin-top: var(--space-1);
  pointer-events: none; /* whole card is the link */
}

.role-card__bullets {
  list-style: none;
  padding: 0;
  margin: var(--space-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.role-card__bullets li {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-muted);
  padding-left: 20px;
  position: relative;
}

.role-card__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-gradient);
  opacity: 0.85;
}

/* ───── Footer ─────────────────────────────────────────────────────────── */

.landing__footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.landing__footer-lede {
  font-size: 12px;
  color: var(--ink-subtle);
  line-height: 1.45;
}

.landing__footer-links {
  font-size: 13px;
  color: var(--ink-subtle);
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.landing__footer-links a { color: var(--ink-muted); }
.landing__footer-links a:hover { color: var(--brand-cyan-deep); }

.landing__sep { color: var(--ink-tertiary); }

/* ───── Hindi typography tweaks ────────────────────────────────────────── */

[lang="hi"] .landing__title,
[lang="hi"] .landing__lede,
[lang="hi"] .role-card__role { letter-spacing: 0; }

/* ───── Mobile ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .landing {
    padding: var(--space-3) var(--space-4) var(--space-4);
    gap: var(--space-4);
  }

  .landing__main { gap: var(--space-5); }

  .landing__hero {
    padding-top: var(--space-2);
    gap: var(--space-3);
  }

  .landing__title {
    font-size: 28px;
    letter-spacing: -0.6px;
  }

  .landing__lede { font-size: 15px; }

  .landing__roles {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .role-card {
    padding: var(--space-4);
    gap: var(--space-2);
  }
  .role-card__icon { width: 44px; height: 44px; font-size: 24px; }
  .role-card__role { font-size: 19px; }
  .role-card__lede { font-size: 14px; line-height: 1.35; }
  .role-card__cta { margin-top: var(--space-1); }

  /* Hide bullets on phone — the role + lede + CTA already convey the offer. */
  .role-card__bullets { display: none; }

  .landing__footer {
    padding-top: var(--space-3);
    gap: var(--space-1);
  }
  .landing__footer-lede { font-size: 12px; line-height: 1.4; }
  .landing__footer-links { font-size: 12px; }
}

@media (max-width: 400px) {
  .landing__brand { font-size: 17px; }
  .landing__title { font-size: 24px; }
  .landing__lede { font-size: 14px; }
}
