:root {
  --trc-black: #000000;
  --trc-burgundy: #41121c;
  --trc-red: #ad003a;
  --trc-red-light: #ED0B4B;
  --trc-white: #ffffff;
}

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

body {
  margin: 0;
  background-color: var(--trc-black);
  color: var(--trc-white);
  font-size: 16px;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.text-nowrap {
  white-space: nowrap;
}

.site-container {
  width: 100%;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-container--wide {
  max-width: 1504px;
  width: 100%;
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--trc-black);
  height: 92px;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1504px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-logo,
.lang-switch,
.download__badge {
  text-decoration: none;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo img {
  display: block;
  height: 52px;
  width: auto;
}

.lang-switch {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--trc-white);
  padding: 16px;
  font-size: 14px;
  line-height: 1;
  font-family: sans-serif;
  font-weight: 600;
}

/* Banner */
.banner {
  position: relative;
  background-color: var(--trc-burgundy);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.banner__vector {
  position: absolute;
  right: 0;
  bottom: 0;
  left: auto;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.5;
}

.banner__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  padding-top: 24px;
  padding-bottom: 0;
}

.banner__content {
  flex: 1;
  align-self: center;
}

.banner__layout {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-direction: row;
  gap: 8px;
  height: 100%;
  width: 100%;
}

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

.banner__content .banner__content-tablet,
.banner__content .banner__content-desktop {
  display: none;
}

.banner__content .banner__content-mobile {
  width: 85%;
  margin: 0 auto;
}

.banner__images .banner__images-mobile {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.banner__images {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 0;
  text-align: center;
}

.banner__images img {
  display: inline-block;
  max-width: none;
}

.banner__images .banner__images-desktop {
  display: none;
}

/* Introduction */
.intro {
  background-color: var(--trc-black);
  padding-top: 48px;
  padding-bottom: 24px;
}

.intro__title {
  margin-bottom: 16px;
  color: var(--trc-red-light);
}

.intro__body {
  color: var(--trc-white);
}

/* Download Now */
.download {
  background-color: var(--trc-black);
  padding-top: 24px;
  padding-bottom: 24px;
}

.download__card {
  background-color: var(--trc-burgundy);
  padding: 16px;
}

.download__title {
  margin-bottom: 8px;
  color: var(--trc-white);
}

.download__subtitle {
  margin: 0 0 24px;
  color: var(--trc-white);
}

.download__badge {
  display: inline-flex;
  line-height: 0;
}

.download__badge img {
  display: block;
  height: 40px;
  width: auto;
}

.download__badge--android {
  grid-column: 1 / -1;
}

.download__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

@media (min-width: 520px) {
  .banner {
    aspect-ratio: 16 / 9;
  }

  .banner__content {
    padding: 20px 35px;
  }

  .banner__content .banner__content-mobile,
  .banner__content .banner__content-desktop {
    display: none;
  }

  .banner__content .banner__content-tablet {
    max-width: 344px;
    display: block;
    margin: 0 0 0 auto;
  }
}

/* Tablet: 768px - 992px */
@media (min-width: 768px) {
  .site-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header {
    height: 104px;
    background: linear-gradient(0deg, #070707 0%, #212121 100%);
  }

  .site-header__inner {
    height: 100%;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-logo img {
    height: 60px;
  }

  .lang-switch {
    position: absolute;
    top: 0;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  
  .lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #444444;
    color: var(--trc-white);
    border-radius: 0 0 5px 5px;
    padding: 7px 16px;
  }

  .banner__layout {
    gap: 24px;
  }

  .banner__images {
    min-width: 0;
  }

  .banner__images .banner__images-mobile {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom center;
  }

  .banner__vector {
    width: 100%;
    right: -140px;
  }

  .intro {
    padding-top: 56px;
    padding-bottom: 36px;
  }

  .download__copy {
    flex: 1;
    min-width: 0;
  }

  .download__badge--android {
    grid-column: auto;
  }

  .download__badge img {
    height: 44px;
  }
}

/* Large tablet: 992px - 1200px */
@media (min-width: 992px) {
  .banner {
    aspect-ratio: auto;
  }

  .banner__inner {
    height: auto;
    display: block;
    max-width: 100%;
    margin: 0 auto;
  }

  .banner__layout {
    height: auto;
    width: auto;
    align-items: center;
  }

  .banner__content {
    align-self: auto;
    flex: 0.8;
    min-width: 0;
    max-width: none;
  }

  .banner__images {
    display: block;
    flex: 1.2;
    min-width: 0;
    max-width: none;
    margin-top: 0;
    text-align: right;
  }

  .banner__images img {
    max-width: 100%;
  }

  .banner__content .banner__content-mobile,
  .banner__content .banner__content-tablet {
    display: none;
  }

  .banner__content .banner__content-desktop {
    display: block;
  }

  .banner__images .banner__images-mobile {
    display: none;
  }

  .banner__images .banner__images-desktop {
    display: inline-block;
  }

  .download__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .download__badges {
    gap: 24px;
  }

  .download__title {
    margin-bottom: 16px;
  }

  .download__subtitle {
    margin-bottom: 0;
  }
}

/* Desktop: >=1200px */
@media (min-width: 1200px) {
  .site-container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .site-header {
    height: 110px;
  }

  .site-header__inner {
    height: 100%;
  }

  .site-logo img {
    height: 68px;
  }

  .banner__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 24px;
  }

  .banner__vector {
    height: 90%;
    width: 80%;
    right: 30px;
  }

  .intro {
    padding-top: 80px;
    padding-bottom: 40px;
  }
  
  .download {
    padding-bottom: 40px;
    padding-top: 40px;
  }

  .download__card {
    padding: 40px;
  }

  .download__badge img {
    height: 48px;
  }
}

/* Explore What’s New */
.explore {
  background-color: var(--trc-black);
  padding-top: 24px;
  padding-bottom: 48px;
}

.explore-container {
  width: 100%;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  --explore-gutter: 16px;
}

.explore__title {
  margin: 0 0 24px;
  padding-left: var(--explore-gutter);
  color: var(--trc-white);
}

.explore-carousel {
  --explore-gap: 16px;
  -webkit-user-select: none;
  user-select: none;
}

.embla__viewport {
  overflow: hidden;
}

.embla__container {
  display: flex;
  align-items: stretch;
  gap: var(--explore-gap);
  backface-visibility: hidden;
  touch-action: pan-y pinch-zoom;
}

.embla__slide {
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  min-width: 0;
  flex: 0 0 calc(100% / 1.2);
}

.explore-carousel--draggable .embla__container {
  padding-left: var(--explore-gutter);
}

.explore-carousel--draggable .embla__slide:last-child {
  margin-right: 20px;
}

.explore-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
  overflow: hidden;
}

.explore-card__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.explore-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px;
  background-color: #252525;
}

.explore-card__title {
  color: var(--trc-red-light);
}

.explore-card__intro {
  color: var(--trc-white);
}

.explore-card__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.explore-card__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--trc-white);
}

.explore-card__item:last-child {
  margin-bottom: 0;
}

.explore-card__item img {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.explore-card__link {
  display: inline-block;
  padding-top: 12px;
  color: var(--trc-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 520px) {
  .embla__slide {
    flex: 0 0 calc(100% / 1.5);
  }
}

@media (min-width: 768px) {
  .explore-container {
    --explore-gutter: 24px;
  }

  .explore-carousel {
    --explore-gap: 20px;
  }

  .embla__slide {
    flex: 0 0 calc(100% / 2.5);
  }
}

@media (min-width: 1200px) {
  .explore {
    padding-top: 40px;
    padding-bottom: 80px;
  }

  .explore-container {
    --explore-gutter: 40px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .explore-carousel {
    --explore-gap: 24px;
  }

  .explore-carousel:not(.explore-carousel--draggable) {
    padding-left: 0;
    padding-right: 0;
  }

  .embla__container {
    width: 100%;
  }

  .embla__slide {
    flex: 0 0 calc((100% - (3 * var(--explore-gap))) / 4);
  }

  .explore__title {
    margin-bottom: 48px;
    padding-left: 0;
  }

  .explore-card__body {
    padding: 20px;
    gap: 12px;
    flex-grow: 1;
  }

  .explore-card__list {
    gap: 16px;
  }
}

@media (min-width: 1504px) {
  .explore-carousel {
    --explore-gap: 24px;
  }
}

/* Getting Started */
.started {
  position: relative;
  background-color: var(--trc-burgundy);
  padding-top: 20px;
  padding-bottom: 46px;
  overflow: hidden;
}

.started__vector {
  position: absolute;
  top: auto;
  right: 0;
  bottom: -50px;
  left: 0;
  z-index: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.3;
}

.started .site-container--wide {
  position: relative;
  z-index: 1;
}

.started__title {
  margin-bottom: 24px;
  color: var(--trc-white);
}

.started__layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.started__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.started-step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "label ."
    "num   title"
    "rail  body";
  column-gap: 16px;
  row-gap: 8px;
  margin-bottom: 20px;
}

.started-step__label {
  grid-area: label;
  margin: 0 auto;
  color: var(--trc-red-light);
}

.started-step__num-container {
  grid-area: num;
  min-width: 22px;
}

.started-step__num {
  margin: 0 auto;
  color: var(--trc-red-light);
  width: fit-content;
}

.started-step__heading {
  grid-area: title;
  margin: 0 0 6px;
  color: var(--trc-red-light);
  align-self: end;
  align-self: flex-start;
}

.started-step__rail {
  grid-area: rail;
  justify-self: center;
  align-self: stretch;
  width: 8px;
  min-height: 100%;
  background-color: #c27272;
  opacity: 0.3;
  border-radius: 10px;
}

.started-step__body {
  grid-area: body;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.started-step:not(:last-child) .started-step__body {
  padding-bottom: 12px;
}

.started-step:nth-child(2),
.started-step:nth-child(3) {
  grid-template-areas:
    "label ."
    "num   title"
    "rail  body"
    "rail  graphic";
}

.started-step__text,
.started-step__copy {
  color: var(--trc-white);
}

.started-step__text--desktop,
.started-step__store--qr {
  display: none;
}

.started-step__text--mobile{
  display: block;
}

.started-step__store--badges {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.started-step__store--badges .started-step__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (min-width: 375px) and (max-width: 565px) {
  .started-step__store--badges .started-step__badges {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    justify-items: start;
    gap: 12px;
  }

  .started-step__badge--android {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .started-step__badge {
    width: 146px;
  }
}

.started-step__badge {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.started-step__store--badges .started-step__badge {
  min-width: 0;
  max-width: 100%;
}

.started-step__badge img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 156px;
}

.started-step__store--badges .started-step__badge img {
  width: 100%;
  height: auto;
  max-width: 156px;
}

.started-step__link {
  color: var(--trc-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.started-step__graphic-container {
  grid-area: graphic;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.started-step__graphic {
  max-width: 160px;
  line-height: 0;
}

.started-step__graphic img {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
}

.started__phones {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  align-self: center;
  min-width: 0;
}

.started__phone {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.started__phone--front {
  order: 1;
  max-width: 200px;
}

.started__phone--back {
  order: 2;
  margin-top: 56px;
  max-width: 200px;
}

@media (min-width: 768px) {
  .started__steps {
    min-width: 0;
  }

  .started-step__body {
    gap: 20px;
  }

  .started-step:nth-child(2),
  .started-step:nth-child(3) {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-items: start;
    row-gap: 8;
    grid-template-areas:
      "label .      ."
      "num   title  graphic"
      "rail  body   graphic";
  }

  .started-step__store--badges .started-step__badges {
    gap: 12px;
  }

  .started-step__graphic-container {
    width: auto;
    align-self: stretch;
    min-height: 0;
    justify-content: flex-end;
  }

  .started-step:nth-child(2) .started-step__heading,
  .started-step:nth-child(3) .started-step__heading {
    margin-bottom: 6px;
  }

  .started-step__graphic img {
    max-width: 220px;
  }

  .started-step__store--badges {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .started__phones {
    min-width: 0;
    margin: 0 auto;
    gap: 40px;
    align-items: flex-start;
  }

  .started__phone--front {
    max-width: 250px;
  }

  .started__phone--back {
    margin-top: 80px;
    max-width: 250px;
  }
}

@media (min-width: 1200px) {
  .started {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .started__title {
    margin-bottom: 48px;
  }

  .started__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
  }

  .started-step {
    column-gap: 24px;
  }

  .started-step:nth-child(2),
  .started-step:nth-child(3) {
    grid-template-columns: auto 1fr;
    grid-template-rows: none;
    align-items: stretch;
    row-gap: 8px;
    grid-template-areas:
      "label ."
      "num   title"
      "rail  body"
      "rail  graphic";
  }

  .started-step__text--desktop,
  .started-step__store--qr {
    display: block;
  }

  .started-step__text--mobile,
  .started-step__store--badges {
    display: none;
  }

  .started-step__badge img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
  }

  .started-step__graphic-container {
    width: auto;
    align-self: center;
    justify-content: center;
  }

  .started-step__store--qr {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px 24px;
    padding: 44px 60px;
    background-color: #2D171C;
  }

  .started-step__num-container {
    min-width: 38px;
  }

  .started-step__store-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    gap: 20px;
  }

  .started-step__qr {
    display: block;
    width: 112px;
    height: auto;
  }

  .started__phones { 
    max-width: none;
  }

  .started-step__graphic img {
    max-width: 260px;
  }

  .started__phone--front {
    max-width: none;
  }

  .started__phone--back {
    margin-top: 324px;
    max-width: none;
  }

  .started__vector {
    bottom: -600px;
    right: -700px;
  }
}

/* Site Footer */
.site-footer {
  background-color: var(--trc-black);
  border-top: 1px solid var(--trc-burgundy);
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.site-footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__nav-link {
  text-decoration: none;
  color: var(--trc-white);
  display: inline-flex;
  align-items: center;
}

.site-footer__nav > .site-footer__nav-link:not(:last-child)::after {
  content: '|';
  margin-left: 10px;
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__nav-icon img {
  display: block;
  width: 16px;
  height: 16px;
}

.site-footer__copy {
  margin: 0;
  color: var(--trc-white);
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__nav > .site-footer__nav-link:not(:last-child)::after {
    margin-left: 14px;
    margin-right: 14px;
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .site-footer__nav {
    justify-content: flex-start;
  }

  .site-footer__copy {
    text-align: right;
  }
}
