:root {
  --color-black: #252424;
  --color-brand: #00aced;
  --color-white: #ffffff;
  --color-text: #565656;
  --color-gray-2: #747b8d;
  --color-border: rgba(92, 162, 234, 0.25);
  --font: "Open Sans", Arial, Helvetica, sans-serif;
  --space-xs: 16px;
  --space-brand: 37px;
  --space-sections: 80px;
  --space-howto: 24px;
  --space-account: 56px;
  --space-stores: 48px;
  --pad-x: 70px;
  --pad-y: 64px;
  --pad-inner-t: 36px;
  --pad-inner-b: 77px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  border: 0;
}

a {
  color: inherit;
}

a:focus-visible,
.store-btn:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background: var(--color-white);
}

.hero {
  position: relative;
  flex: 0 0 auto;
  align-self: stretch;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #214233;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: var(--pad-y) var(--pad-x);
}

.panel__inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 556px;
  min-height: 0;
  padding: var(--pad-inner-t) 0 var(--pad-inner-b);
}

.panel__main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sections);
  width: 100%;
  min-height: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-brand);
  width: 100%;
  flex-shrink: 0;
}

.logo {
  display: block;
  width: 193px;
  height: auto;
  flex-shrink: 0;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-account);
  width: 100%;
}

.howto-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-howto);
  width: 100%;
}

.heading {
  margin: 0;
  width: 100%;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
  color: var(--color-black);
}

.howto {
  margin: 0;
  width: 100%;
  text-align: center;
}

.howto__title,
.howto__sub {
  display: block;
  font-size: 16px;
  line-height: 30px;
}

.howto__title {
  font-weight: 600;
  color: var(--color-black);
}

.howto__sub {
  font-weight: 400;
  color: var(--color-text);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: center;
  gap: var(--space-stores);
  align-items: flex-start;
}

.store-btn {
  position: relative;
  display: block;
  width: 120px;
  height: 40px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid #000;
  border-radius: 6px;
  text-decoration: none;
  color: #000;
}

.store-btn__play-icon {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 21px;
  height: 24px;
}

.store-btn__play-copy {
  position: absolute;
  top: 50%;
  left: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  transform: translateY(-50%);
}

.store-btn__play-eyebrow {
  font-family: "Product Sans", "Google Sans", Roboto, Arial, sans-serif;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000;
}

.store-btn__play-name {
  font-family: "Product Sans", "Google Sans", Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #000;
}

.store-btn__apple-icon {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 20px;
  height: 24px;
}

.store-btn__apple-copy {
  position: absolute;
  top: 50%;
  left: 32px;
  width: 82px;
  transform: translateY(-50%);
  color: #000;
}

.store-btn__apple-eyebrow {
  display: block;
  font-family: "SF Compact Text", "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.1;
}

.store-btn__apple-name {
  display: block;
  font-family: "SF Compact Display", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.47px;
  line-height: 1.1;
  white-space: nowrap;
}

.account {
  margin: 0;
  width: 100%;
  max-width: 408px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  color: var(--color-text);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer p {
  margin: 0;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: var(--color-gray-2);
}

.footer__lead {
  font-weight: 600;
  color: var(--color-black);
}

.footer a {
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
}

@media (min-width: 960px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .page {
    height: 100dvh;
    overflow: hidden;
  }

  .hero {
    width: min(51.67vw, calc(100dvh * 744 / 1024));
    height: 100dvh;
  }

  .panel {
    height: 100%;
    border-left: 1px solid var(--color-border);
  }

  .panel__inner {
    height: 100%;
  }
}

@media (min-width: 960px) and (max-height: 860px) {
  :root {
    --space-brand: 24px;
    --space-sections: 40px;
    --space-account: 32px;
    --pad-y: 32px;
    --pad-inner-t: 16px;
    --pad-inner-b: 24px;
  }
}

@media (max-width: 959px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .page {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .hero {
    width: 100%;
    height: auto;
    aspect-ratio: 1638 / 2040;
  }

  .hero img {
    object-position: center center;
  }

  .panel,
  .panel__inner,
  .panel__main {
    display: flex;
    flex: none;
    height: auto;
    min-height: 0;
  }

  .panel {
    flex: 1 1 auto;
    justify-content: flex-start;
    padding: 2rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-border);
  }

  .panel__inner {
    flex: 1 1 auto;
    justify-content: flex-start;
    max-width: 556px;
    margin: 0 auto;
    padding: 0;
    gap: 2rem;
  }

  .panel__main {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 2rem;
  }

  .logo {
    display: block;
    width: clamp(156px, 42vw, 193px);
    margin: 0 auto;
  }

  .brand,
  .content,
  .howto-block {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .brand {
    gap: 1.25rem;
  }

  .content {
    gap: 1.5rem;
  }

  .howto-block {
    gap: 1.25rem;
  }

  .heading {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    line-height: 1.35;
    padding-inline: 0.25rem;
  }

  .account {
    max-width: 22rem;
  }

  .footer {
    margin-top: auto;
    padding-top: 1rem;
  }
}

@media (max-width: 600px) {
  .panel {
    padding: 1.5rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom));
  }

  .panel__inner,
  .panel__main {
    gap: 1.5rem;
  }

  .logo {
    width: 156px;
  }

  .howto__title,
  .howto__sub,
  .account {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .stores {
    gap: 1.25rem;
  }
}

@media (max-width: 380px) {
  .heading {
    font-size: 1.125rem;
  }

  .stores {
    gap: 0.75rem;
  }
}
