@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/Figtree-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/Figtree-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/Figtree-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Chewy";
  src: url("assets/fonts/Chewy-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --background: #fcfcfc;
  --surface: #ffffff;
  --text: #111111;
  --muted-text: rgba(0, 0, 0, 0.66);
  --primary: #124158;
  --primary-pressed: #0e3446;
  --selected: #d6e6ed;
  --border: #d2d2d2;
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
  --hero-inset: 24px;
  --hero-radius: 40px;
  --nav-height: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: "Figtree", Arial, sans-serif;
  margin: 0;
  min-width: 320px;
}

.intro-overlay {
  align-items: center;
  animation: introOverlay 3300ms cubic-bezier(0.22, 1, 0.36, 1) 0ms both;
  background: var(--primary);
  display: flex;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: fixed;
  z-index: 100;
}

.intro-brand {
  align-items: center;
  animation: introBrand 2500ms cubic-bezier(0.22, 1, 0.36, 1) 0ms both;
  color: #ffffff;
  display: flex;
  gap: 18px;
}

.intro-brand__logo {
  filter: brightness(0) invert(1);
  height: 64px;
  width: 64px;
}

.intro-brand__name {
  font-family: "Chewy", "Figtree", Arial, sans-serif;
  font-size: 56px;
  line-height: 1;
  white-space: nowrap;
}

body,
button,
a {
  letter-spacing: 0;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  align-items: flex-start;
  background: transparent;
  border-bottom: 1px solid transparent;
  color: #ffffff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 88px;
  padding: 48px 72px 0;
  position: fixed;
  right: 0;
  top: 0;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    min-height 220ms ease,
    padding 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
  z-index: 20;
}

.site-nav.is-scrolled {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--border);
  min-height: var(--nav-height);
  padding: 24px 72px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.home-page .site-nav {
  animation: revealHeroCopy 420ms cubic-bezier(0.22, 1, 0.36, 1) 5150ms both;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  filter: brightness(0) invert(1);
  height: 40px;
  transition: filter 220ms ease;
  width: 40px;
}

.site-nav.is-scrolled .brand__logo {
  filter: brightness(0);
}

.brand__name {
  font-family: "Chewy", "Figtree", Arial, sans-serif;
  font-size: 34px;
  line-height: 1;
  white-space: nowrap;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  min-width: 0;
}

.nav-link {
  border-radius: 8px;
  font-size: 20px;
  line-height: 24px;
  padding: 8px;
  transition: background-color 160ms ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-nav.is-scrolled .nav-link:hover {
  background: rgba(0, 0, 0, 0.06);
}

.nav-downloads,
.hero-downloads {
  align-items: center;
  display: flex;
  gap: 10px;
}

.download-choices {
  align-items: center;
  display: none;
  gap: 10px;
}

.button {
  align-items: center;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-weight: 500;
  gap: 8px;
  justify-content: center;
  line-height: 24px;
  min-height: 48px;
  padding: 12px 20px;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
  white-space: nowrap;
}

.button:focus-visible {
  outline: 3px solid rgba(18, 65, 88, 0.34);
  outline-offset: 3px;
}

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

.button__icon {
  fill: currentColor;
  flex: 0 0 auto;
  height: 22px;
  width: 22px;
}

.button--nav {
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-size: 17px;
  padding-left: 18px;
  padding-right: 18px;
}

.site-nav.is-scrolled .button--nav {
  background: var(--primary);
  color: #ffffff;
}

.button--nav:hover {
  background: rgba(255, 255, 255, 0.96);
}

.site-nav.is-scrolled .button--nav:hover {
  background: var(--primary-pressed);
}

.button--hero {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  color: var(--text);
  font-size: 20px;
}

.button--hero:hover {
  background: #ffffff;
}

body.device-known .download-choices,
body.device-unknown .hero-generic-download {
  display: none;
}

body.device-unknown .download-choices,
body.device-known .button--generic {
  display: flex;
}

body.device-unknown .download-choices--nav {
  display: none;
}

body.device-unknown .nav-generic-download {
  display: inline-flex;
}

.hero {
  align-items: flex-end;
  background: var(--background);
  display: flex;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 152px 72px 72px;
  position: relative;
  width: 100%;
}

.hero::before {
  animation: heroImageSettle 2400ms cubic-bezier(0.22, 1, 0.36, 1) 2550ms both;
  background-image: url("assets/images/header-image.png");
  background-position: center bottom;
  background-size: cover;
  border-radius: var(--hero-radius);
  box-shadow: var(--shadow-soft);
  content: "";
  inset: var(--hero-inset);
  position: absolute;
  z-index: -3;
}

.hero::after {
  animation: heroOverlaySettle 2400ms cubic-bezier(0.22, 1, 0.36, 1) 2550ms both;
  background:
    linear-gradient(236deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 42%);
  border-radius: var(--hero-radius);
  content: "";
  inset: var(--hero-inset);
  position: absolute;
  z-index: -2;
}

.hero__content {
  animation: revealHeroCopy 460ms cubic-bezier(0.22, 1, 0.36, 1) 5280ms both;
  color: #ffffff;
  max-width: 680px;
  padding-bottom: 24px;
}

@keyframes introOverlay {
  0%,
  46% {
    opacity: 1;
    visibility: visible;
  }

  72% {
    opacity: 0;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes introBrand {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }

  18%,
  52% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  78%,
  100% {
    opacity: 0;
    transform: scale(1.04) translateY(-4px);
  }
}

@keyframes heroImageSettle {
  0% {
    border-radius: 0;
    box-shadow: none;
    inset: 0;
  }

  100% {
    border-radius: var(--hero-radius);
    box-shadow: var(--shadow-soft);
    inset: var(--hero-inset);
  }
}

@keyframes heroOverlaySettle {
  0% {
    border-radius: 0;
    inset: 0;
  }

  100% {
    border-radius: var(--hero-radius);
    inset: var(--hero-inset);
  }
}

@keyframes revealHeroCopy {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 470px;
}

.hero p {
  font-size: 24px;
  line-height: 32px;
  margin: 0 0 24px;
  max-width: 650px;
}

.features {
  margin: 0 auto;
  max-width: 1280px;
  padding: 120px 128px;
  width: 100%;
}

.features h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 40px;
  margin: 0 auto 120px;
  max-width: 680px;
  text-align: center;
}

.feature-row {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 120px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row--reverse .feature-copy {
  grid-column: 2;
  grid-row: 1;
}

.feature-row--reverse .feature-visual {
  grid-column: 1;
  grid-row: 1;
}

.feature-copy {
  max-width: 504px;
}

.feature-copy h3 {
  font-size: 30px;
  font-weight: 600;
  line-height: 40px;
  margin: 0 0 16px;
}

.feature-copy p {
  color: var(--muted-text);
  font-size: 24px;
  line-height: 32px;
  margin: 0;
}

.feature-visual {
  align-items: center;
  background: var(--selected);
  border-radius: 32px;
  display: flex;
  height: 335px;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.feature-visual img {
  height: auto;
  max-height: 112%;
  max-width: 86%;
  object-fit: contain;
}

.feature-visual--right img {
  margin-top: 22px;
  max-width: 80%;
}

.feature-visual--left img {
  margin-top: 18px;
  max-width: 92%;
}

.site-footer {
  align-items: center;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  min-height: 120px;
  padding: 48px 24px;
  text-align: center;
}

.site-footer p {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  margin: 0;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
}

.footer-links a {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 24px;
  padding: 2px 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: #ffffff;
}

.legal-page {
  background: var(--background);
}

.legal-hero {
  background: var(--primary);
  color: #ffffff;
  min-height: 318px;
  padding: 160px 128px 88px;
  position: relative;
}

.legal-nav {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  left: 50%;
  max-width: 1024px;
  position: absolute;
  top: 24px;
  transform: translateX(-50%);
  width: calc(100% - 256px);
}

.legal-downloads {
  align-items: center;
  display: flex;
  gap: 10px;
}

.legal-nav .button--nav {
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.legal-nav .button--nav:hover {
  background: #ffffff;
}

.legal-hero__inner {
  margin: 0 auto;
  max-width: 1024px;
}

.legal-hero h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 56px;
  margin: 0;
  max-width: 720px;
}

.legal-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 28px;
  margin: 8px 0 0;
}

.legal-content {
  padding: 96px 128px 120px;
}

.legal-article {
  color: var(--text);
  margin: 0 auto;
  max-width: 816px;
}

.legal-article h2 {
  font-size: 30px;
  font-weight: 600;
  line-height: 40px;
  margin: 42px 0 14px;
}

.legal-article p {
  font-size: 21px;
  line-height: 31px;
  margin: 0 0 18px;
}

.legal-article a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-article strong {
  font-weight: 600;
}

@media (max-width: 1040px) {
  :root {
    --hero-radius: 36px;
    --nav-height: 88px;
  }

  .site-nav {
    padding: 44px 56px 0;
  }

  .site-nav.is-scrolled {
    padding: 20px 40px;
  }

  .brand__name {
    font-size: 30px;
  }

  .button--nav {
    font-size: 15px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    padding: 136px 56px 64px;
  }

  .hero h1 {
    font-size: 48px;
    max-width: 430px;
  }

  .features {
    padding: 96px 64px;
  }

  .features h2 {
    margin-bottom: 88px;
  }

  .feature-row {
    gap: 40px;
    margin-bottom: 88px;
  }

  .feature-copy h3 {
    font-size: 28px;
    line-height: 36px;
  }

  .feature-copy p {
    font-size: 21px;
    line-height: 30px;
  }

  .legal-hero {
    padding-left: 64px;
    padding-right: 64px;
  }

  .legal-nav {
    width: calc(100% - 128px);
  }

  .legal-content {
    padding: 88px 64px 104px;
  }
}

@media (max-width: 820px) {
  .site-nav {
    padding: 40px 48px 0;
  }

  .site-nav.is-scrolled {
    padding: 16px 24px;
  }

  .nav-link {
    display: none;
  }

  body.device-unknown .download-choices--nav {
    display: none;
  }

  body.device-unknown .nav-generic-download {
    display: inline-flex;
  }

  .hero {
    padding: 128px 48px 56px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.1;
  }

  .hero p {
    font-size: 21px;
    line-height: 30px;
  }

  .features {
    padding: 80px 24px;
  }

  .features h2 {
    font-size: 32px;
    line-height: 38px;
    margin-bottom: 64px;
  }

  .feature-row,
  .feature-row--reverse {
    gap: 28px;
    grid-template-columns: 1fr;
    margin-bottom: 72px;
  }

  .feature-row--reverse .feature-copy,
  .feature-row--reverse .feature-visual {
    grid-column: auto;
    grid-row: auto;
  }

  .feature-visual {
    height: 310px;
  }

  .legal-hero {
    min-height: 292px;
    padding: 136px 24px 72px;
  }

  .legal-nav {
    top: 16px;
    width: calc(100% - 48px);
  }

  .legal-hero h1 {
    font-size: 42px;
    line-height: 48px;
  }

  .legal-content {
    padding: 72px 24px 88px;
  }

  .legal-article h2 {
    font-size: 27px;
    line-height: 34px;
  }

  .legal-article p {
    font-size: 19px;
    line-height: 29px;
  }
}

@media (max-width: 560px) {
  :root {
    --hero-radius: 28px;
    --nav-height: 76px;
  }

  .site-nav {
    gap: 12px;
    padding: 38px 42px 0;
  }

  .site-nav.is-scrolled {
    padding: 14px 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand__logo {
    height: 34px;
    width: 34px;
  }

  .brand__name {
    font-size: 27px;
  }

  .intro-brand {
    gap: 14px;
  }

  .intro-brand__logo {
    height: 48px;
    width: 48px;
  }

  .intro-brand__name {
    font-size: 42px;
  }

  .button {
    min-height: 44px;
  }

  .button--nav {
    border-radius: 12px;
    font-size: 0;
    gap: 0;
    padding: 11px;
    width: 46px;
  }

  .button--nav .button__icon {
    height: 22px;
    width: 22px;
  }

  .hero {
    padding: 112px 42px 52px;
  }

  .hero__content {
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: 36px;
    max-width: 310px;
  }

  .hero p {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 20px;
  }

  .hero-downloads,
  .download-choices--hero {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .button--hero {
    font-size: 18px;
    width: 100%;
  }

  .features {
    padding: 64px 18px;
  }

  .features h2 {
    font-size: 28px;
    line-height: 34px;
    margin-bottom: 48px;
  }

  .feature-copy h3 {
    font-size: 24px;
    line-height: 30px;
  }

  .feature-copy p {
    font-size: 18px;
    line-height: 26px;
  }

  .feature-visual {
    border-radius: 24px;
    height: 260px;
  }

  .feature-visual--right img {
    max-width: 92%;
  }

  .legal-hero {
    min-height: 250px;
    padding: 112px 18px 52px;
  }

  .legal-nav {
    align-items: center;
    top: 14px;
    width: calc(100% - 32px);
  }

  .legal-hero h1 {
    font-size: 34px;
    line-height: 40px;
  }

  .legal-hero p {
    font-size: 17px;
    line-height: 24px;
  }

  .legal-content {
    padding: 56px 18px 72px;
  }

  .legal-article h2 {
    font-size: 24px;
    line-height: 30px;
    margin-top: 34px;
  }

  .legal-article p {
    font-size: 17px;
    line-height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .intro-overlay {
    display: none;
  }

  .home-page .site-nav,
  .hero__content,
  .hero::before,
  .hero::after {
    animation: none;
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
