:root {
  color-scheme: light;
  --card-bg: #f6f6f6;
  --ink: #171717;
  --page-bg: #e9eaec;
  --paper: #fff;
  --page-width: 106rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
}

body {
  margin: 0;
  min-width: 20rem;
  min-height: 100dvh;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.625rem 0.875rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.landing-page {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100dvh;
  margin-inline: auto;
  overflow: hidden;
  background: var(--page-bg);
  box-shadow: inset 0 -3px 0 var(--ink);
}

.landing-header {
  position: relative;
  height: clamp(6.25rem, 9.434vw, 10rem);
  box-shadow: inset 0 -3px 0 var(--ink);
}

.brand {
  position: absolute;
  top: 19.375%;
  left: 2.83%;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(2rem, 6.958vw, 7.375rem);
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: clamp(4rem, 6.368vw, 6.75rem);
  height: clamp(4rem, 6.368vw, 6.75rem);
  flex-shrink: 0;
}

.brand:focus-visible,
.contact-link:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

.landing-main {
  position: relative;
  height: clamp(35rem, 50.943vw, 54rem);
}

.hero-card {
  position: absolute;
  top: clamp(4.375rem, 6.368vw, 6.75rem);
  left: calc(50% + min(0.708vw, 0.75rem));
  width: min(61.321vw, 65rem);
  aspect-ratio: 1040 / 718;
  border: 2px solid var(--paper);
  background: var(--card-bg);
  container-type: inline-size;
  transform: translateX(-50%);
}

.hero-card p,
.hero-card h1 {
  margin: 0;
  color: var(--ink);
}

.hero-product {
  position: absolute;
  top: 11.42%;
  left: 20.77%;
  font-size: 6.538cqw;
  font-weight: 500;
  letter-spacing: 0.007em;
  line-height: 1;
  white-space: nowrap;
}

.hero-card h1 {
  position: absolute;
  top: 34.4%;
  left: 10%;
  max-width: 24ch;
  font-size: 6.923cqw;
  font-weight: 500;
  letter-spacing: -0.007em;
  line-height: 1;
  text-wrap: balance;
  white-space: nowrap;
}

.app-store-badge {
  position: absolute;
  top: 62.535%;
  left: 30.192%;
  width: 38.269%;
  aspect-ratio: 217 / 88;
  border: 1px solid #303036;
  border-radius: min(1.75vw, 1.125rem);
  background: #1b1b1e;
  color: var(--paper);
}

.app-store-badge::before {
  position: absolute;
  inset: 9.091% 3.687%;
  border: 1.5px solid var(--paper);
  border-radius: min(1.25vw, 0.75rem);
  content: "";
}

.apple-mark {
  position: absolute;
  top: 13.636%;
  left: 8.525%;
  width: 22.581%;
  height: 72.727%;
  flex-shrink: 0;
  mix-blend-mode: screen;
  object-fit: contain;
}

.app-store-copy {
  position: absolute;
  inset: 0;
}

.app-store-kicker {
  position: absolute;
  top: 23.864%;
  left: 31.336%;
  font-size: 2.45cqw;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.app-store-label {
  position: absolute;
  top: 42.045%;
  left: 30.415%;
  font-size: 4.95cqw;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.availability {
  position: absolute;
  top: 88.3%;
  left: 40.385%;
  font-size: 2.5cqw;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.landing-footer {
  position: relative;
  height: clamp(10rem, 9.906vw, 10.5rem);
}

.footer-curve {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: min(3.892vw, 4.125rem);
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.copyright,
.contact-link,
.footer-links a {
  position: absolute;
  color: var(--ink);
  font-size: clamp(0.75rem, 0.943vw, 1rem);
  font-weight: 400;
  line-height: 1.45;
}

.copyright {
  top: 46.429%;
  left: 2.83%;
  width: 22rem;
  margin: 0;
}

.contact-link {
  top: 60.119%;
  left: 45.047%;
  text-decoration: none;
}

.footer-links {
  position: absolute;
  top: 43.452%;
  left: 79.01%;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.footer-links a {
  position: static;
  font-weight: 400;
  line-height: 1.65;
  text-decoration: none;
  white-space: nowrap;
}

.contact-link:hover,
.footer-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

@media (max-width: 43.999rem) {
  .landing-page {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
  }

  .landing-header {
    height: 5.5rem;
    flex-shrink: 0;
  }

  .brand {
    top: 50%;
    left: 1.5rem;
    gap: 1rem;
    transform: translateY(-50%);
  }

  .brand-mark {
    width: 3.5rem;
    height: 3.5rem;
  }

  .landing-main {
    display: grid;
    height: auto;
    min-height: 34rem;
    flex: 1;
    padding: 2rem 1rem;
    place-items: center;
  }

  .hero-card {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    width: 100%;
    min-height: 30rem;
    aspect-ratio: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 1rem;
    transform: none;
  }

  .hero-product,
  .hero-card h1,
  .app-store-badge,
  .availability {
    position: static;
  }

  .hero-product {
    font-size: clamp(2rem, 9vw, 2.5rem);
    letter-spacing: 0.007em;
  }

  .hero-card h1 {
    max-width: 18ch;
    font-size: clamp(2rem, 9vw, 2.5rem);
    letter-spacing: -0.007em;
    text-align: center;
    white-space: normal;
  }

  .app-store-badge {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 16rem);
    height: auto;
    aspect-ratio: 217 / 88;
    flex-shrink: 0;
  }

  .app-store-kicker {
    font-size: 1rem;
  }

  .app-store-label {
    font-size: 2rem;
  }

  .availability {
    font-size: 1rem;
  }

  .landing-footer {
    display: grid;
    height: auto;
    min-height: 13rem;
    flex-shrink: 0;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    padding: 4.75rem 1.5rem 1.5rem;
    gap: 2rem 1rem;
  }

  .footer-curve {
    height: 3.5rem;
  }

  .copyright,
  .contact-link,
  .footer-links {
    position: static;
  }

  .copyright,
  .contact-link,
  .footer-links a {
    font-size: 0.75rem;
  }

  .copyright {
    width: auto;
    line-height: 1.45;
  }

  .contact-link {
    justify-self: end;
  }

  .footer-links {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}
