:root {
  color: #161a22;
  font-family: "Open Sans", Arial, sans-serif;
  font-synthesis: none;
  --mint-bg: #effcf6;
  --green: #4da77d;
  --green-dark: #317e5c;
  --green-soft: #78c69f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
}

body {
  background: var(--mint-bg);
}

button,
a {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.landscape {
  position: fixed;
  z-index: -1;
  left: 50%;
  bottom: -67vh;
  width: 132vw;
  height: 108vh;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(118deg, #439d74 8%, #55b488 52%, #76c99f 100%);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1184px, calc(100% - 48px));
  height: 64px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.brand svg {
  width: 34px;
  fill: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 34px;
}

.language-picker {
  position: relative;
}

.language-button,
.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}

.language-button {
  gap: 9px;
  padding: 10px 2px;
  border: 0;
}

.globe-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.chevron {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 160ms ease;
}

.language-picker.is-open .chevron {
  transform: rotate(180deg);
}

.login-button {
  min-width: 115px;
  min-height: 46px;
  gap: 9px;
  border: 2px solid var(--green);
  border-radius: 10px;
}

.login-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.language-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: -20px;
  display: none;
  width: 242px;
  padding: 10px 0;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 69, 52, 0.1);
}

.language-picker.is-open .language-menu {
  display: block;
  animation: menu-in 140ms ease-out;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
}

.language-option {
  display: grid;
  grid-template-columns: 28px 1fr 24px;
  align-items: center;
  width: 100%;
  min-height: 41px;
  padding: 0 14px;
  border: 0;
  color: #252525;
  background: #fff;
  text-align: left;
  font-size: 17px;
  cursor: pointer;
}

.language-option:hover,
.language-option:focus-visible {
  background: #f2fbf7;
  outline: none;
}

.flag {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.check {
  visibility: hidden;
  color: var(--green-dark);
  text-align: right;
  font-weight: 700;
}

.language-option.is-selected .check {
  visibility: visible;
}

.quiz-card {
  width: min(600px, calc(100% - 32px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  border-radius: 32px 32px 0 0;
  background: #fff;
}

.quiz-content {
  width: min(440px, calc(100% - 44px));
  margin: 0 auto;
  padding: 29px 0 34px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 25px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(23px, 2vw, 25px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-weight: 800;
}

h1 .accent {
  color: var(--green-soft);
}

.subtitle {
  max-width: 420px;
  margin: 9px auto 0;
  font-size: 17px;
  line-height: 1.42;
}

.subtitle strong {
  font-weight: 700;
}

.spacer {
  height: clamp(96px, 19vh, 162px);
}

.continue-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 2px 0 rgba(34, 112, 77, 0.05);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

.continue-button:hover {
  background: #449971;
}

.continue-button:active {
  transform: translateY(1px);
}

.language-button:focus-visible,
.login-button:focus-visible,
.continue-button:focus-visible,
.legal a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(77, 167, 125, 0.3);
  outline-offset: 3px;
}

.legal {
  max-width: 415px;
  margin: 19px auto 0;
  color: #8b9091;
  font-size: 12px;
  line-height: 1.55;
}

.legal a {
  color: #6f7774;
  text-underline-offset: 2px;
}

@media (max-width: 680px) {
  .landscape {
    bottom: -38vh;
    width: 210vw;
    height: 72vh;
  }

  .site-header {
    width: calc(100% - 30px);
    height: 58px;
  }

  .brand,
  .brand svg {
    width: 31px;
  }

  .header-actions {
    gap: 14px;
  }

  .language-button {
    gap: 6px;
    font-size: 14px;
  }

  .globe-icon {
    width: 19px;
  }

  .login-button {
    min-width: 88px;
    min-height: 40px;
    border-radius: 9px;
    font-size: 14px;
  }

  .login-button svg {
    width: 19px;
  }

  .language-menu {
    right: -103px;
    width: 220px;
  }

  .quiz-card {
    width: calc(100% - 20px);
    min-height: calc(100vh - 58px);
    border-radius: 26px 26px 0 0;
  }

  .quiz-content {
    width: calc(100% - 34px);
    padding-top: 27px;
  }

  .eyebrow {
    margin-bottom: 21px;
    font-size: 14px;
  }

  h1 {
    font-size: 22px;
  }

  .subtitle {
    max-width: 340px;
    font-size: 16px;
  }

  .spacer {
    height: clamp(84px, 18vh, 132px);
  }
}

@media (max-width: 430px) {
  .language-button #current-language {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .quiz-content {
    padding-bottom: 24px;
  }

  h1 {
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
