@import url(https://gain-vi.ca/threepointmotors/font/mb-corpo/fonts.css);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #000;
  --primary-text: #fff;
  --secondary-text: rgba(245, 245, 243, 0.62);
  --body-font: 'Corporate S', Arial, Helvetica, sans-serif;
  --heading-font: 'Corporate AS Condensed', 'Times New Roman', Times, serif;
  --bg-black: #0a0a0c;
  --bg-panel: #111114;
  --line: rgba(255, 255, 255, 0.55);
  --line-dim: rgba(255, 255, 255, 0.18);
  --h-spacing: 1rem;
  --v-spacing: 1.5rem;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #878787;
  font-family: var(--body-font);
  color: var(--primary-text);
}

svg.main {
  display: none;
}

.page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  max-width: 36.25rem;
  padding: var(--v-spacing) var(--h-spacing);
  display: flex;
  flex-direction: column;
  background: url(./tpm-bg.webp), linear-gradient(#000);
  background-size: cover;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.card.cla-electric {
  background: url(./cla-electric-bg.webp);
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-mark {
  width: 3.25rem;
  height: 3.25rem;
  margin: 1rem;
  flex-shrink: 0;
}

.brand-mark svg {
  fill: var(--primary-text);
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  font-family: var(--heading-font);
  font-size: clamp(1.5rem, 6.2vw, 2rem);
  font-weight: 400;
  text-align: center;
  line-height: 1.25;
}

.section-label {
  margin-bottom: 2rem;
}

.links-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 var(--h-spacing);
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--primary-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.social-link:active {
  transform: scale(0.99);
}

.social-link:focus-visible {
  outline: 2px solid #6fb8ff;
  outline-offset: 2px;
}

.footer {
  padding-top: 2rem;
}

.footer-label {
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.footer-url {
  color: var(--primary-text);
  font-weight: 500;
  text-decoration: none;
}

.footer-url:hover {
  text-decoration: underline;
}

.qrcode {
  display: none;
  position: absolute;
  bottom: 0;
  right: -12rem;
  width: 10rem;
  padding: 1rem;
}

.qrcode p {
  text-align: center;
  font-family: 0.875rem;
  margin-bottom: 1rem;
}

.qrcode .qr-wrapper {
  padding: 1rem;
  background-color: #fff;
  border-radius: 0.5rem;
}

.qrcode img {
  display: block;
  width: 100%;
  height: auto;
}

@media (23.75rem < width) {
  :root {
    --v-spacing: 3rem;
  }

  .brand-mark {
    margin: 2rem;
  }
}

@media (36.25rem < width) {
  :root {
    --h-spacing: 2rem;
  }
  .page {
    min-height: calc(100dvh - var(--v-spacing));
    padding-top: var(--v-spacing);
  }
  .card {
    border-radius: 1rem 1rem 0 0;
    min-height: calc(100dvh - var(--v-spacing));
  }

  .links-container {
    justify-content: start;
    padding-top: var(--v-spacing);
  }
}
@media (63.75rem < width) {
  .qrcode {
    display: block;
  }
}
