/*
 * Shared styles for the Nzika Wallet credential landing pages.
 * Palette and type scale copied from the wallet app's own theme
 * (cps-undpma-digitalid-mobile: src/presentation/theme/Colors.ts, GlobalStyles.tsx)
 * so this page reads as part of the same product, not a separate site.
 */

/*
 * Self-hosted DM Sans, copied from cps-undpma-digitalid-mobile's own asset
 * bundle -- deliberately not loaded from fonts.googleapis.com. This is a
 * .gov identity domain; every page view against an external font CDN leaks
 * the visitor's IP to Google with no consent notice.
 */
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #4bcc6f;
  --color-malawi-green: #339e35;
  --color-black: #202020;
  --color-dark-grey: #565656;
  --color-grey-background: #ecefec;
  --color-white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-grey-background);
  color: var(--color-black);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 24px;
  text-align: center;
}

.card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(32, 32, 32, 0.08);
}

.logo {
  width: 64px;
  height: 65px;
  margin-bottom: 24px;
}

.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}

.lang-toggle button {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--color-grey-background);
  background: var(--color-white);
  color: var(--color-dark-grey);
  cursor: pointer;
}

.lang-toggle button[aria-pressed='true'] {
  background: var(--color-grey-background);
  color: var(--color-black);
}

h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 12px;
}

p {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark-grey);
  margin: 0 0 28px;
}

.button {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}

.button-primary {
  background: var(--color-malawi-green);
  color: var(--color-white);
  margin-bottom: 12px;
}

.button-primary:active {
  background: var(--color-primary);
}

.divider {
  font-size: 13px;
  color: var(--color-dark-grey);
  margin: 20px 0 16px;
}

/*
 * Store badges: official artwork from Apple (developer.apple.com) and
 * Google (play.google.com), used as-is per their brand guidelines --
 * https://developer.apple.com/app-store/marketing/guidelines/
 * https://partnermarketinghub.withgoogle.com/brands/google-play/google-play/lockups-icons-badges/
 *
 * Both require: official artwork only, no recoloring/distortion, a
 * minimum clear space of one-quarter the badge height, and a minimum
 * digital height of 28px (Google's stated floor). 48px gives real margin
 * above that floor. Badges are the same height so neither reads as more
 * prominent than the other.
 *
 * The disabled state below only dims opacity and blocks clicks -- it
 * does not alter the artwork itself (no recolor, no crop, no distortion),
 * which keeps it inside "don't modify the badge."
 */
.store-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge-link {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.store-badge {
  display: block;
  height: 48px;
  width: auto;
}

.store-badge-link[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
}

.badge-caption {
  display: block;
  font-size: 12px;
  color: var(--color-dark-grey);
  margin-top: 4px;
  text-align: center;
}

footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--color-dark-grey);
}

.pending-notice {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 12px;
  color: var(--color-dark-grey);
  font-style: italic;
}
