:root {
  --color-primary: #663eb4;
  --color-primary-hover: #5b38b5;
  --color-text: #212832;
  --font-body: 'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
  font-family: var(--font-body);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 36px 36px 81px;
  width: 100%;
  max-width: 1224px;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  padding: 27px 0;
}

.site-header__logo-link {
  display: inline-block;
}

.site-header__logo {
  display: block;
  max-width: min(var(--site-logo-max-width, 120px), 100%);
  height: auto;
}

.site-header--with-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header__language-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-header__language-menu {
  position: relative;
}

.site-header__language-menu[open] .site-header__language-trigger {
  border-color: rgba(102, 62, 180, 0.45);
  box-shadow: 0 0 0 2px rgba(102, 62, 180, 0.12);
}

.site-header__language-trigger {
  min-width: 190px;
  padding: 8px 12px;
  border: 1px solid rgba(33, 40, 50, 0.2);
  border-radius: 6px;
  background-color: #ffffff;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  cursor: pointer;
}

.site-header__language-trigger::-webkit-details-marker {
  display: none;
}

.site-header__language-trigger::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
}

.site-header__language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  padding: 6px;
  border: 1px solid rgba(33, 40, 50, 0.12);
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 14px 32px rgba(33, 40, 50, 0.12);
  display: grid;
  gap: 4px;
  z-index: 10;
}

.site-header__language-option {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.site-header__language-option:hover,
.site-header__language-option:focus-visible,
.site-header__language-option.is-active {
  background-color: rgba(102, 62, 180, 0.08);
  outline: none;
}

.site-header__language-flag {
  width: 18px;
  height: 12px;
  border: 1px solid rgba(33, 40, 50, 0.15);
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
  overflow: hidden;
}

.site-header__language-flag--en {
  background:
    linear-gradient(#3c3b6e, #3c3b6e),
    linear-gradient(180deg,
      #b22234 0 14.29%,
      #ffffff 14.29% 28.58%,
      #b22234 28.58% 42.87%,
      #ffffff 42.87% 57.16%,
      #b22234 57.16% 71.45%,
      #ffffff 71.45% 85.74%,
      #b22234 85.74% 100%);
  background-size: 42% 57%, 100% 100%;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat, no-repeat;
}

.site-header__language-flag--fr {
  background: linear-gradient(90deg, #0055a4 0 33.33%, #ffffff 33.33% 66.66%, #ef4135 66.66% 100%);
}

.site-header__language-flag--pt-BR {
  background:
    radial-gradient(circle at 50% 50%, #002776 0 28%, transparent 29%),
    linear-gradient(45deg, transparent 33%, #ffdf00 33% 67%, transparent 67%),
    linear-gradient(-45deg, transparent 33%, #ffdf00 33% 67%, transparent 67%),
    #009c3b;
}

.site-header__language-label {
  font-size: 14px;
  line-height: 1.5;
}

.site-header__language-trigger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.site-header__nav-link {
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.site-header__nav-link:hover,
.site-header__nav-link:focus-visible,
.site-header__nav-link.is-active {
  color: var(--color-primary);
  text-decoration: underline;
}

p {
  margin: 10px 0;
}

h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-primary);
}

h2 {
  margin: 10px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
}

ul {
  margin: 10px 0;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
}

a:visited,
a:hover,
a:focus-visible {
  color: var(--color-primary-hover);
}

.contact-button {
  display: inline-block;
  margin-top: 8px;
  padding: 18px;
  border-radius: 4px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.contact-button:visited {
  color: #ffffff;
}


.contact-button:hover,
.contact-button:focus-visible {
  background-color: var(--color-primary-hover);
  color: #ffffff;
}

.home-page {
  max-width: none;
  padding: 0;
}

.home-page .site-shell {
  max-width: 1224px;
  margin: 0 auto;
  padding: 0 36px;
}

.home-page .site-header {
  padding-top: 27px;
  padding-bottom: 27px;
}

.home-section {
  padding: 81px 0;
}

.home-page .home-section:nth-of-type(odd) {
  background-color: var(--color-primary);
}

.home-section--hero {
  padding-top: 108px;
  padding-bottom: 108px;
}

.home-section--subscribe {
  text-align: center;
  padding-bottom: 108px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: center;
}

.home-grid--reverse {
  direction: rtl;
}

.home-grid--reverse>* {
  direction: ltr;
}

.home-section h1 {
  margin-bottom: 16px;
}

.home-section p {
  max-width: 66ch;
}

.home-page .home-section:nth-of-type(odd) h1,
.home-page .home-section:nth-of-type(odd) h2,
.home-page .home-section:nth-of-type(odd) p,
.home-page .home-section:nth-of-type(odd) li,
.home-page .home-section:nth-of-type(odd) a {
  color: #ffffff;
}

.home-page .home-section:nth-of-type(odd) .contact-button {
  background-color: #ffffff;
  color: var(--color-primary);
}

.home-page .home-section:nth-of-type(odd) .contact-button:hover,
.home-page .home-section:nth-of-type(odd) .contact-button:focus-visible,
.home-page .home-section:nth-of-type(odd) .contact-button:visited {
  background-color: #f1eaff;
  color: var(--color-primary);
}

.home-image {
  width: 100%;
  max-width: 540px;
  border-radius: 6px;
  display: block;
}

.home-cta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-cta-row--center {
  justify-content: center;
}

.button-primary {
  display: inline-block;
  padding: 18px;
  border-radius: 7px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.47);
}

.button-primary:hover,
.button-primary:focus-visible,
.button-primary:visited {
  color: #ffffff;
  background-color: var(--color-primary-hover);
}

.site-footer {
  background-color: var(--color-primary);
  padding: 63px 0 10px;
  margin-top: 54px;
  width: 100%;
}

.site-footer .site-shell {
  width: 100%;
  max-width: 1224px;
  margin: 0 auto;
  padding: 0 36px;
}

.site-footer__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.site-footer__content--with-play-button {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.site-footer__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  align-self: flex-end;
}

.site-footer__content--with-play-button .site-footer__links {
  align-self: center;
}

.site-footer__links a,
.site-footer__links a:visited {
  color: #ffffff;
}

.site-footer__copyright-row {
  margin-top: 8px;
}

.site-footer__copyright {
  display: block;
  text-align: center;
  color: #ffffff;
  opacity: 0.85;
  font-size: 13px;
}

@media (max-width: 480px) {
  body {
    padding: 18px;
  }

  .site-header {
    padding: 18px 0;
  }

  h1 {
    font-size: 30px;
    line-height: 1.25;
  }

  h2 {
    font-size: 16px;
    line-height: 1.5;
  }

  .site-header--with-nav {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }

  .site-header__actions {
    width: auto;
    margin-left: 0;
    align-self: flex-start;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
  }

  .site-header__language-picker {
    width: auto;
    flex-direction: row;
    align-items: flex-start;
  }

  .site-header__language-menu,
  .site-header__language-trigger {
    width: auto;
    min-width: 190px;
    max-width: min(100%, 220px);
  }

  .home-page .site-shell {
    padding: 0 18px;
  }

  .home-section {
    padding: 54px 0;
  }

  .home-section--hero {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer__content {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__content--with-play-button {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__content--with-play-button google-play-button {
    align-self: center;
  }

  .site-footer__links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-footer__copyright {
    text-align: center;
  }
}