/*
 * Mirrors the web app's look without its build: brand colours from tailwind.config.ts, Tailwind 3's
 * default gray scale, and the sizes, radii and patterns of its components (StandardLayout,
 * PageContainer, Footer, Badge, Button). The class each value comes from is noted beside it.
 */
:root {
  --brand-pink: #fe2d5d;
  --brand-purple: #470e69;
  --gray-50: #f9fafb;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --yellow-100: #fef3c7; /* tailwind.config.ts maps yellow to amber */
  --yellow-800: #92400e;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: #fff; /* bg-white */
  color: var(--gray-900);
  /* src/assets/css/index.css */
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* StandardLayout: py-10 px-4 sm:px-6; PageContainer form layout: max-w-screen-md */
.page {
  width: 100%;
  max-width: 768px;
  margin: 0 auto auto;
  padding: 40px 16px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
}

.logo {
  display: block;
  height: 36px;
  width: auto;
}

/* Badge color="yellow": px-2.5 py-0.5 rounded-full text-xs font-medium */
.environment {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  background: var(--yellow-100);
  color: var(--yellow-800);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

/* PageContainer title: text-3xl font-bold leading-tight text-brand-purple */
h1 {
  margin: 0 0 8px;
  color: var(--brand-purple);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}

/* text-lg font-medium text-gray-900 */
h2 {
  margin: 0 0 4px;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

p {
  margin: 0;
}

/* text-lg text-gray-500 */
.lead {
  color: var(--gray-500);
  font-size: 18px;
  line-height: 28px;
}

/* PageHeader: border-b border-gray-200 pb-8 mb-8 */
.steps {
  margin: 32px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--gray-200);
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  padding: 0 0 32px 48px;
  counter-increment: step;
}

/* rounded-full bg-brand-pink text-white text-sm font-medium, the app's accent */
.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--brand-pink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
}

/* text-base text-gray-500 */
.steps p {
  color: var(--gray-500);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}

.store {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* border border-gray-200 rounded-md */
.qr {
  display: block;
  width: 160px;
  height: 160px;
  padding: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: #fff;
}

.badge-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  border-radius: 6px;
}

/* focus:ring-2 focus:ring-offset-2 focus:ring-brand-pink */
.badge-link:focus-visible {
  outline: 2px solid var(--brand-pink);
  outline-offset: 2px;
}

.badge {
  display: block;
}

.badge-app-store {
  height: 40px;
  width: auto;
}

/* Google's badge artwork carries its own transparent margin; this sizes the visible badge to
   match Apple's 40px and pulls the margin in. */
.badge-google-play {
  height: 52px;
  width: auto;
  margin: -6px -7px;
}

/* text-sm text-gray-500 */
.caption {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 20px;
}

/* rounded-md bg-gray-50 p-4 text-sm text-gray-500 */
.note {
  padding: 16px;
  border-radius: 6px;
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 14px;
  line-height: 20px;
}

/* Footer: max-w-7xl mx-auto py-12 px-4 md:flex md:items-center md:justify-between */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px;
  background: #fff;
}

/* flex justify-center space-x-6 */
.languages {
  display: flex;
  justify-content: center;
  gap: 24px;
}

/* border-b-2 pt-0.5 uppercase text-gray-400 hover:text-gray-700; active: border-brand-pink */
.languages button {
  padding: 2px 0 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--gray-400);
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.languages button:hover {
  color: var(--gray-700);
}

.languages button[aria-pressed="true"] {
  border-bottom-color: var(--brand-pink);
}

/* text-center md:text-left text-base text-gray-400 */
.copyright {
  color: var(--gray-400);
  text-align: center;
}

@media (min-width: 640px) {
  .page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 768px) {
  .footer {
    flex-direction: row-reverse;
    justify-content: space-between;
  }

  .copyright {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .footer {
    padding-left: 32px;
    padding-right: 32px;
  }
}

[hidden] {
  display: none !important;
}

/* Platform variants. The page is marked up for desktop; the script switches data-platform. */
[data-platform="desktop"] .only-mobile,
[data-platform="ios"] .only-desktop,
[data-platform="android"] .only-desktop,
[data-platform="ios"] .store-android,
[data-platform="android"] .store-ios {
  display: none;
}

[data-platform="ios"] .badge-link,
[data-platform="android"] .badge-link {
  height: 52px;
}

[data-platform="ios"] .badge-app-store {
  height: 52px;
}

[data-platform="android"] .badge-google-play {
  height: 68px;
  margin: -8px -9px;
}

@media (max-width: 480px) {
  h1 {
    font-size: 24px;
  }

  .steps > li {
    padding-left: 44px;
  }
}
