@font-face {
  font-family: "Optima LT Pro";
  src: url("/fonts/OptimaLTPro-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: #8895a7;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.45;
}

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

a:hover {
  opacity: 0.72;
}

img {
  display: block;
  max-width: 100%;
}

/* —— Layout —— */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  width: min(100% - 64px, 1300px);
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 48px, 560px);
  margin-inline: auto;
}

/* —— Typography —— */

.brand,
.logo {
  margin: 0;
  color: #c5ccd6;
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.brand {
  margin-bottom: 10px;
  font-size: 22px;
}

.title {
  margin: 0;
  color: #1a1a1a;
  font-family: "Optima LT Pro", "Optima", "Palatino Linotype", Palatino, serif;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
  max-width: 10em;
}

.lede {
  margin: 16px 0 0;
  color: #8895a7;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.3;
  max-width: 18em;
  text-wrap: balance;
}

.prose p {
  margin: 0;
  color: #8895a7;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.45;
}

.prose p + p {
  margin-top: 24px;
}

/* —— Buttons (sky.app) —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 19px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-blue {
  width: 140px;
  padding: 9px 20px;
  color: transparent;
  background-color: color(display-p3 0.04 0.52 1);
  background-image: linear-gradient(
    in oklab 180deg,
    oklab(100% 0 0 / 35%) 0%,
    oklab(100% 0 0 / 0%) 100%
  );
  box-shadow:
    #ffffff38 0 0 3px 1px inset,
    #ffffff0f 0 0 6px inset,
    color(display-p3 0.04 0.52 1 / 29%) 0 1px 5px,
    color(display-p3 0.04 0.52 1 / 14%) 0 1px 8px;
}

.btn-blue .btn-label {
  background-image: linear-gradient(
    in oklab 180deg,
    oklab(100% 0 0 / 94%) 0%,
    oklab(100% 0 0 / 76%) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.btn-blue svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  filter:
    drop-shadow(#00000014 0 4px 13px)
    drop-shadow(#00000021 0 0.5px 2px);
}

@supports not (background: color(display-p3 0.04 0.52 1)) {
  .btn-blue {
    background-color: #0a85ff;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    box-shadow:
      #ffffff38 0 0 3px 1px inset,
      #ffffff0f 0 0 6px inset,
      rgba(10, 133, 255, 0.29) 0 1px 5px,
      rgba(10, 133, 255, 0.14) 0 1px 8px;
  }
}

/* —— Landing —— */

.landing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
  flex: 1;
  padding: 48px 0 48px 80px;
}

.landing-copy {
  padding-top: 12px;
}

.download {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: fit-content;
  margin-top: 28px;
}

.qr {
  width: 140px;
  aspect-ratio: 1;
  padding: 6px;
  border: 1px solid rgba(136, 149, 167, 0.28);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.qr::after {
  content: "QR";
  position: absolute;
  inset: 6px;
  display: grid;
  place-items: center;
  color: #c5ccd6;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.qr:has(img)::after {
  display: none;
}

.landing-media {
  min-width: 0;
  display: grid;
  place-items: center;
  background: transparent;
}

.phone-cycle {
  position: relative;
  width: min(480px, 96%);
  aspect-ratio: 1159 / 2025;
  max-height: min(900px, 90vh);
}

.phone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  opacity: 0;
  filter: blur(16px);
  transform: scale(1.02);
  transition:
    opacity 1.1s ease,
    filter 1.1s ease,
    transform 1.1s ease;
  pointer-events: none;
}

.phone.is-active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  z-index: 1;
}

/* —— Legal / support pages —— */

.doc {
  padding: 72px 0 96px;
}

.doc .title {
  margin-bottom: 32px;
  font-size: clamp(36px, 5vw, 48px);
  max-width: none;
}

.doc .prose {
  color: #8895a7;
}

.doc h2 {
  margin: 40px 0 12px;
  color: #1a1a1a;
  font-family: "Optima LT Pro", "Optima", "Palatino Linotype", Palatino, serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.doc ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
}

.doc li + li {
  margin-top: 8px;
}

.doc .meta {
  margin-bottom: 28px;
  color: #a0aaba;
  font-size: 14px;
}

/* —— Footer —— */

.site-footer {
  margin-top: auto;
  padding: 28px 0 36px;
  border-top: 1px solid #eef1f5;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 14px;
}

.logo:hover {
  opacity: 0.72;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #a0aaba;
  font-size: 13px;
  font-weight: 400;
}

/* —— Responsive —— */

@media (max-width: 900px) {
  .landing {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 48px;
  }

  .landing-copy {
    padding-top: 0;
    order: 2;
  }

  .landing-media {
    order: 1;
  }

  .phone-cycle {
    width: min(380px, 86%);
    max-height: none;
  }

  .title,
  .lede {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .wrap,
  .wrap-narrow {
    width: min(100% - 32px, 1300px);
  }

  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .btn:hover {
    transform: none;
  }

  .phone {
    transition: opacity 0.01ms;
    filter: none;
    transform: none;
  }
}
