:root {
  --blue: #006fcf;
  --blue-label: #1c8cdf;
  --text: #333;
  --muted: #67696c;
  --border: #cecfcd;
  --field-muted-bg: #f8f9fa;
  --tile-bg: #ecedee;
  --white: #fff;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: none;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 43px;
  min-width: 120px;
  padding: 10px 24px;
  border: 0;
  border-radius: 3px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.14px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: #005bb0;
}

.btn:focus-visible,
.field input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 110px;
  background: var(--white);
}

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

.site-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.14px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  text-decoration: underline;
}

.icon-btn {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.site-header__mobile {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 74px 16px 152px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 478px;
  background: #4b5257 url("assets/hero.jpg") no-repeat;
  background-size: max(122.14%, 1588px) auto;
  background-position: left 0 top -164px;
}

.hero--intro {
  height: 478px;
}

.hero--overlap {
  padding-bottom: 96px;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 692px;
  max-width: 100%;
  margin: 0 auto;
}

.hero__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.hero__product {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  width: 259px;
}

.hero__card-img {
  width: 133px;
  height: 84px;
  object-fit: cover;
}

.hero__product-name {
  width: 100%;
  margin: 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.16px;
  text-align: center;
}

.hero__title {
  align-self: stretch;
  margin: 0;
  color: var(--white);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.36px;
}

/* ---------- Intro form (page 1) ---------- */

.intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intro-form {
  padding: 9px 16px 14px;
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 4px 50px rgba(0, 0, 0, 0.25);
}

.intro-form__row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}

.field-group__label {
  display: none;
  margin: 0;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.14px;
}

.field-group__inputs {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 43px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
}

.field input {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.14px;
}

.field input::placeholder,
.field__value {
  color: var(--muted);
  opacity: 1;
}

.field__value {
  flex: 1 1 0;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.14px;
}

.field--prefix {
  width: 141px;
  margin-top: 7px;
  background: var(--field-muted-bg);
}

.field--prefix .field__floating-label {
  position: absolute;
  top: -9px;
  left: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 17px;
  background: var(--white);
  color: var(--blue-label);
  font-size: 14px;
  line-height: 24px;
  letter-spacing: -0.14px;
}

.field--phone {
  width: 141px;
}

.field--email {
  width: 205px;
}

.legal {
  margin: 0;
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.12px;
}

.legal p {
  margin: 0;
}

.legal a {
  font-weight: 700;
  text-decoration: underline;
}

.legal strong {
  font-weight: 700;
}

/* ---------- Verification (page 2) ---------- */

.verify-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px 32px 0;
  overflow: hidden;
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 4px 45.5px rgba(0, 0, 0, 0.25);
}

.verify-card__intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.verify-card__title {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.24px;
}

.verify-card__desc {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: normal;
  letter-spacing: -0.14px;
}

.methods {
  margin: 0 -32px;
  padding: 32px 24px;
  background-color: var(--tile-bg);
  background-image: url("assets/pattern.png"), url("assets/pattern.png");
  background-size: 268px 255px;
  background-repeat: repeat-x;
  background-position: -15px -5px, -15px 250px;
}

.methods__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 24px;
  border: 1px solid var(--tile-bg);
  border-radius: 3px;
  background: var(--white);
  color: #000;
  text-align: center;
  letter-spacing: -0.16px;
}

.method__icon {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.method__icon--bankid img {
  position: absolute;
  top: 7.5px;
  left: 7.5px;
}

.method__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 76px;
  font-size: 16px;
  line-height: 24px;
}

.method__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.method__desc {
  margin: 0;
}

.method .btn {
  margin-top: auto;
}

.mobile-only {
  display: none;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer__img {
  width: 100%;
  height: auto;
  aspect-ratio: 3456 / 1374;
}

.site-footer__mask {
  position: absolute;
  left: 72.15%;
  top: 46.8%;
  width: 20.77%;
  height: 5.42%;
  background: var(--white);
}

.site-footer__country {
  position: absolute;
  right: 2.69%;
  top: 50.48%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.14px;
  white-space: nowrap;
}

.site-footer__country-name {
  color: var(--muted);
}

.site-footer__country a {
  display: flex;
  align-items: center;
  color: var(--blue);
  text-decoration: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .site-header {
    padding: 0 32px;
  }

  .site-header__nav {
    gap: 24px;
  }
}

@media (max-width: 1023px) {
  .site-header {
    height: 69px;
    padding: 0 24px;
  }

  .site-header__nav,
  .site-header__right {
    display: none;
  }

  .site-header__mobile {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
  }

  .site-header__brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .site-header__mobile-actions {
    display: flex;
    align-items: center;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .hero,
  .hero--intro,
  .hero--overlap {
    height: auto;
    padding: 30px 16px 40px;
    background: var(--white) url("assets/hero.jpg") no-repeat;
    background-size: 1494px 997px;
    /* image left edge sits 875px left of the viewport centre, as in the 390px frame */
    background-position: calc(50% - 128px) -204px;
  }

  /* Fill the viewport below the header and stretch the photo so no white shows on tall phones */
  .hero--intro {
    min-height: calc(100dvh - 69px);
    background-color: #3c4246;
    background-size: auto max(997px, calc(100% + 204px));
  }

  .hero::before {
    content: none;
  }

  .hero__inner {
    gap: 16px;
    width: 100%;
  }

  .hero__heading {
    gap: 16px;
  }

  .hero__product {
    width: 100%;
  }

  .hero__product-name {
    text-align: right;
  }

  .hero__title {
    font-size: 24px;
    line-height: normal;
    letter-spacing: -0.24px;
  }

  .hero__heading--row {
    flex-direction: row-reverse;
    align-items: flex-end;
    justify-content: space-between;
  }

  .hero__heading--row .hero__product {
    width: auto;
  }

  .hero__heading--row .hero__product-name {
    display: none;
  }

  .hero__heading--row .hero__title {
    align-self: auto;
    width: 159px;
  }

  /* Page 1 */
  .intro-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px 24px;
    border-radius: 8px;
    box-shadow: none;
    filter: drop-shadow(0 4px 25px rgba(0, 0, 0, 0.25));
  }

  .intro-form__row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .field-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .field-group__label {
    display: block;
  }

  .field-group__label--email {
    color: var(--text);
  }

  .field-group__inputs {
    gap: 8px;
  }

  .field {
    height: 50px;
  }

  .field--prefix {
    flex-shrink: 0;
    width: 111px;
    margin-top: 0;
  }

  .field--prefix .field__floating-label {
    display: none;
  }

  .field--phone {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .field--email {
    width: 100%;
  }

  .intro-form .btn {
    width: 100%;
    height: 50px;
  }

  .legal {
    font-size: 14px;
    letter-spacing: -0.14px;
  }

  /* Page 2 */
  .verify-card {
    gap: 30px;
    padding: 40px 24px 0;
    border-radius: 8px;
    box-shadow: none;
    filter: drop-shadow(0 4px 25px rgba(0, 0, 0, 0.25));
  }

  .verify-card__intro {
    gap: 30px;
  }

  .verify-card__desc {
    color: #000;
    line-height: 24px;
  }

  .methods {
    margin: 0 -24px;
    background-image: url("assets/pattern.png"), url("assets/pattern.png"),
      url("assets/pattern.png");
    background-position: -15px -5px, -15px 250px, -15px 505px;
  }

  .methods__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline;
  }

  .site-footer {
    display: none;
  }
}
