@font-face {
  font-family: 'SofiaPro';
  src: url('./assets/fonts/sofia-pro-regular-webfont.woff') format('woff');
  font-weight: 400;
}

@font-face {
  font-family: 'SofiaPro';
  src: url('./assets/fonts/sofia-pro-medium-webfont.woff2') format('woff2');
  font-weight: 500;
}

@font-face {
  font-family: 'SofiaPro';
  src: url('./assets/fonts/sofia-pro-semibold-webfont.woff2') format('woff2');
  font-weight: 800;
}

@font-face {
  font-family: 'SofiaProCondensed';
  src: url('./assets/fonts/sofia-pro-condensed-black-webfont.woff') format('woff');
  font-weight: 800;
}


:root {
  --header-bg: #0439D1;
  --page-bg: #FFFFFF;
  --card-bg: #F2F3F5;
  --text-title: #1D1E3C;
  --text-body: #57595F;
  --text-strong: #1D1E3C;
  --button-bg-start: #0439D1;
  --button-bg-end: #0038A6;
  --button-text: #FFFFFF;
  --divider: #0202021A;
}

html {
  overscroll-behavior-x: none;
  width: 100%;
}

body {
  position: relative;
  font-family: 'SofiaPro', Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: var(--page-bg);
}

* {
  box-sizing: border-box;
}

p,
h1 {
  margin: 0;
}

.page-wrapper {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: linear-gradient(var(--header-bg) 50%, var(--page-bg) 50%);
}

.top-header {
  min-height: 72px;
  background: var(--header-bg);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  overflow: visible;
}

.top-header p {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}

.content-wrapper {
  display: flex;
  height: 100%;
  flex-grow: 1;
  padding: 0;
  margin: 0;
}

.content-card {
  background: var(--page-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding: 20px 16px 16px 16px;
  margin: 0;
  width: 100%;
  overflow: hidden;
}

header + main > .content-card {
  border-radius: 36px 36px 0 0;
}

/**
* Mock-up Visual Column Styles
*/

.visual-column {
  flex-grow: 1;
  min-height: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 400px;
}

.phone-mockup-picture {
  display: flex;
  flex-grow: 1;
  width: 100%;
  height: auto;
  min-height: 350px;
  max-height: 550px;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  margin-top: -10%;
}

.phone-mockup {
  display: flex;
  max-width: 130dvw;
  max-height: 145%;
  object-fit: cover;
  object-position: 50% -10%;
  overflow: visible;
}

.mobile-hero-title {
  color: var(--text-strong);
  font-size: 1.25rem;
  text-align: center;
  line-height: 1.35;
  font-weight: 800;
  max-width: min(400px, 95dvw);
  margin-bottom: 16px;
}

/**
* Info Column Styles
*/

.info-column {
  width: 100%;  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.desktop-only,
.desktop-divider {
  display: none;
}

.hero-title {
  font-family: 'SofiaProCondensed', Arial, sans-serif;
  letter-spacing: -2%;
  color: var(--text-title);
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 4px;
}

.hero-description {
  color: var(--text-body);
  font-size: 1.25rem;
  line-height: 1.35;
}

.button-deeplink {
  width: 100%;
  max-width: 400px;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: 'SofiaPro', Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--button-text);
  background: linear-gradient(135deg, var(--button-bg-start), var(--button-bg-end));
}

.button-deeplink:active {
  background: linear-gradient(135deg, var(--button-bg-end), var(--button-bg-end));
}

.appstores {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.appstore-title {
  color: var(--text-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.35;
  max-width: 400px;
}

.appstore-description {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.4;
}

.store-buttons {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.store-button img {
  display: block;
  width: min(100%, 173px);
  height: auto;
}

@media (min-width: 768px) {
  .content-wrapper {
    width: 100%;
  }

  .content-card {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0px;
    padding: 0;
  }

  .mobile-hero-title {
    display: none;
  }

  .appstore-title {
    color: var(--text-strong);
    font-weight: 800;
  }

  .visual-column {
    display: flex;
    flex: 0 0 40%;
    justify-content: center;
    height: 100%;
    align-items: flex-end;
    max-width: revert;
  }

  .phone-mockup-picture {
    all: revert;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
  }

  .phone-mockup {
    all: revert;
    display: flex;
    object-position: 20px 0px;
    object-fit: contain;
    width: 100%;
    max-height: 950px;
    margin-bottom: -55%;
    margin-top: -10%;
  }

  .info-column {
    display: flex;
    flex: 0 0 60%;
    width: auto;
    background: var(--card-bg);
    height: 100%;
    align-items: start;
    padding: 32px;
    padding-left: 80px;
    gap: 32px;
    text-align: left;
  }

  .button-deeplink {
    width: auto;
    line-height: 1.35;
    padding: 12px 30px;
    flex-shrink: 0;
  }

  .info-column * {
    max-width: 500px;
  }

  .desktop-only,
  .desktop-divider {
    display: block;
  }

  .appstores {
    align-items: start;
    gap: 8px;
  }

  .appstore-description {
    margin-bottom: 16px;
  }

  .desktop-divider {
    border-color: var(--divider);
    margin-left: 0;
    width: 100%;
  }

  header > p {
    width: 100%;
    text-align: left;
  }
}

@media (max-height: 600px) {
  .brand-icon {
    display: none;
  }
}


@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #020202;
    --card-bg: #0D0D10;
    --text-title: #E3E6EE;
    --text-body: #84878F;
    --text-strong: #E3E6EE;
    --divider: #FFFFFF1A;
  }

  .button-deeplink {
    box-shadow: 0 2px 14px rgba(4, 57, 209, 0.22);
  }
}
