@import url("base.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Match the car-bonus.de marketing site roughly  */

:root {
  --surface-color: #0f0f0f;
  --border-color: #525252;
  --border-color-subtle: color-mix(in srgb, var(--font-color) 12%, transparent);
  --text-color-muted: #d1d5db;
  --text-color-subtle: #a3a3a3;
  --accent-color: #eba32f;
  --inverse-background-color: #ffffff;
  --inverse-font-color: #010203;
}

.dark-mode {
  --background-color: #010203;
  --font-color: #ffffff;
}

body {
  margin: 0;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.gateway-logo {
  width: 200px;
  height: auto;
  flex: none;
}

.gateway-card {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
  padding: 2.5rem 2rem;
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  color: var(--font-color);
}

.gateway-card h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.gateway-card p {
  margin: 0.5rem 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-color-muted);
}

/* Both badges share a single height so Google's "same size or larger when
   shown next to other store badges" rule is satisfied regardless of which
   pair ends up rendered together. Other brand-guideline constraints:
   - Apple: minimum onscreen height 40px, clear space ≥ 1/4 of badge height.
   - Google: text must remain legible, clear space ≥ 1/4 of badge height.
   - Both: artwork must not be modified — no color, scale, or effects. */
.gateway-badge {
  display: inline-block;
  height: 48px;
  line-height: 0;
  border-radius: var(--border-radius-sm);
}

.gateway-badge img {
  display: block;
  height: 100%;
  width: auto;
}

.gateway-badge:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
}

.gateway-actions {
  display: flex;
  gap: 1rem;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.gateway-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 2.5rem 0;
  color: var(--text-color-subtle);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.gateway-divider::before,
.gateway-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color-subtle);
}

.gateway-qr-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gateway-qr {
  display: inline-block;
  padding: 0.75rem;
  background: var(--inverse-background-color);
  border-radius: var(--border-radius-md);
  color: var(--inverse-font-color);
  line-height: 0;
}

.gateway-qr svg {
  width: 180px;
  height: 180px;
  display: block;
}

.gateway-qr-label {
  margin: 0 0 0.875rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-color-subtle);
}

.gateway-hide {
  display: none !important;
}
