:root {
  color-scheme: dark;
  --night: #07121d;
  --snow: #f7f4ec;
  --glacier: #b8e7e4;
  --coral: #f04e3e;
  --body:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --display: ui-rounded, "SF Compact Rounded", "SF Pro Rounded", var(--body);
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--snow);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
figure,
h1,
h2,
h3,
p {
  margin: 0;
}
::selection {
  background: var(--coral);
  color: var(--snow);
}
:focus-visible {
  outline: 3px solid var(--glacier);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--snow);
  color: var(--night);
  font-weight: 750;
  transform: translateY(-180%);
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: var(--night);
}

.hero-photo,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo {
  z-index: -3;
  max-width: none;
  object-fit: cover;
  object-position: 56% center;
  scale: 1.02;
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgb(7 18 29 / 92%) 0%,
      rgb(7 18 29 / 68%) 34%,
      rgb(7 18 29 / 24%) 66%,
      rgb(7 18 29 / 46%) 100%
    ),
    linear-gradient(
      0deg,
      rgb(7 18 29 / 88%) 0%,
      transparent 50%,
      rgb(7 18 29 / 25%) 100%
    );
}

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 3vw, 2rem) clamp(1.15rem, 4vw, 4.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: -0.015em;
}

.brand img {
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgb(247 244 236 / 22%);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgb(0 0 0 / 25%);
}

.utility-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid rgb(247 244 236 / 36%);
  color: rgb(247 244 236 / 75%);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.utility-link:hover {
  color: var(--snow);
  border-color: var(--glacier);
}

.hero-intro {
  position: absolute;
  z-index: 3;
  top: 38%;
  left: clamp(1.25rem, 5vw, 5.5rem);
  width: min(40vw, 42rem);
  transform: translateY(-50%);
}

.hero-copy {
  max-width: 32rem;
  margin-top: 1.65rem;
}

.hero-copy p {
  margin: 0;
  color: rgb(247 244 236 / 78%);
  font-size: clamp(0.78rem, 0.95vw, 0.94rem);
  font-weight: 520;
  letter-spacing: 0.01em;
  line-height: 1.55;
}

.hero-copy .hero-lead {
  color: var(--snow);
  font-size: clamp(0.86rem, 1.05vw, 1rem);
  font-weight: 700;
}

.hero-copy p + p {
  margin-top: 0.55rem;
}

.hero-intro h1 {
  font-family: var(--display);
  font-size: clamp(2.7rem, 3.85vw, 4.9rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-shadow: 0 18px 60px rgb(0 0 0 / 42%);
}

.hero-intro h1 span {
  color: var(--glacier);
}

.testflight-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  margin-top: 2.4rem;
  padding: 0.8rem 1.1rem 0.8rem 1.25rem;
  border: 1px solid rgb(247 244 236 / 24%);
  border-radius: 999px;
  background: var(--snow);
  color: var(--night);
  font-size: 0.92rem;
  font-weight: 760;
  box-shadow: 0 18px 50px rgb(0 0 0 / 25%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.testflight-button span {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50%;
  background: #0a84ff;
  color: white;
  font-size: 0.8rem;
}

.testflight-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 23px 58px rgb(0 0 0 / 34%);
}

.screenshot-rail {
  position: absolute;
  z-index: 4;
  top: clamp(7.5rem, 14vh, 10rem);
  right: 0;
  bottom: clamp(1.75rem, 4vh, 3.5rem);
  left: clamp(49vw, 47rem, 53vw);
  display: flex;
  gap: clamp(0.8rem, 1.4vw, 1.35rem);
  align-items: center;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2rem max(6vw, 4rem) 2rem 1.5rem;
  scroll-padding-inline: 1.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.screenshot-rail::-webkit-scrollbar {
  display: none;
}

.store-shot {
  flex: 0 0 auto;
  width: min(31vh, 18.75rem);
  scroll-snap-align: start;
  filter: drop-shadow(0 30px 45px rgb(0 0 0 / 36%));
  opacity: 0;
  transform: translateY(2.5rem);
  animation: arrive 700ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.store-shot:nth-child(2) {
  animation-delay: 90ms;
}
.store-shot:nth-child(3) {
  animation-delay: 180ms;
}
.store-shot:nth-child(4) {
  animation-delay: 270ms;
}
.store-shot:nth-child(5) {
  animation-delay: 360ms;
}
.store-shot:nth-child(6) {
  animation-delay: 450ms;
}
.store-shot:nth-child(7) {
  animation-delay: 540ms;
}
.store-shot:nth-child(8) {
  animation-delay: 630ms;
}

.store-shot img {
  width: 100%;
  height: auto;
  border: 1px solid rgb(247 244 236 / 14%);
  border-radius: clamp(1rem, 2vw, 1.7rem);
}

.swipe-note {
  position: absolute;
  z-index: 5;
  right: clamp(1.25rem, 4vw, 4rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  color: rgb(247 244 236 / 60%);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes arrive {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.privacy-page {
  min-height: 100svh;
  background:
    linear-gradient(rgb(7 18 29 / 88%), rgb(7 18 29 / 97%)),
    url("assets/ptl-massif-hero.jpg") center top / cover fixed;
}

.policy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
  padding-block: 1.4rem;
}

.policy-shell {
  width: min(100% - 2rem, 52rem);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 7rem) 0 6rem;
}

.policy-kicker {
  color: var(--glacier);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.policy-shell h1 {
  margin-top: 0.8rem;
  font-family: var(--display);
  font-size: clamp(3.25rem, 8vw, 6.2rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.policy-date {
  margin-top: 1.2rem;
  color: rgb(247 244 236 / 58%);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.policy-copy {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(1.4rem, 4vw, 3.5rem);
  border: 1px solid rgb(247 244 236 / 13%);
  border-radius: 1.5rem;
  background: rgb(7 18 29 / 74%);
  box-shadow: 0 35px 90px rgb(0 0 0 / 30%);
  backdrop-filter: blur(18px);
}

.policy-copy section + section {
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid rgb(247 244 236 / 12%);
}

.policy-copy h2 {
  margin-bottom: 0.9rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.policy-copy h3 {
  margin: 1.4rem 0 0.45rem;
  color: var(--glacier);
  font-size: 1rem;
}

.policy-copy p,
.policy-copy li {
  color: rgb(247 244 236 / 76%);
  font-size: 1rem;
  line-height: 1.7;
}

.policy-copy p + p {
  margin-top: 1rem;
}
.policy-copy ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}
.policy-copy li + li {
  margin-top: 0.65rem;
}

.policy-copy a {
  color: var(--glacier);
  text-decoration: underline;
  text-decoration-color: rgb(184 231 228 / 42%);
  text-underline-offset: 0.2em;
}

@media (max-width: 820px) {
  .hero-photo {
    object-position: 68% center;
  }

  .hero-scrim {
    background:
      linear-gradient(
        180deg,
        rgb(7 18 29 / 82%) 0%,
        rgb(7 18 29 / 42%) 45%,
        rgb(7 18 29 / 88%) 100%
      ),
      linear-gradient(90deg, rgb(7 18 29 / 40%), transparent 70%);
  }

  .brand span {
    display: none;
  }

  .hero-intro {
    top: 7rem;
    left: 1.25rem;
    width: calc(100% - 2.5rem);
    transform: none;
  }

  .hero-intro h1 {
    font-size: clamp(2.2rem, 9.2vw, 3.55rem);
  }

  .screenshot-rail {
    top: 33rem;
    bottom: 1.4rem;
    left: 0;
    align-items: flex-start;
    padding: 1rem 2.8rem 2rem 1.25rem;
    scroll-padding-inline: 1.25rem;
  }

  .store-shot {
    width: min(33vh, 16.5rem);
  }

  .hero {
    min-height: max(100svh, 54rem);
  }
  .swipe-note {
    display: none;
  }
}

@media (max-height: 700px) and (min-width: 821px) {
  .hero-intro {
    top: 38%;
  }
  .store-shot {
    width: min(29vh, 15rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-shot {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
