@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --color-green: #296848;
  --color-cream: #f1e7d3;
  --color-on-photo: #fff;
  --cream-muted: rgb(241 231 211 / 92%);
  --cream-hairline: rgb(241 231 211 / 22%);
  --cream-rim: rgb(241 231 211 / 28%);
  --green-muted: rgb(41 104 72 / 96%);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tracking-display: -0.03em;
  --tracking-title: -0.025em;

  --page-max: 1920px;
  --phone-ratio: 768 / 1628;
  --phone-width: clamp(190px, 104px + 14.55vw, 384px);
  --feature-gap: clamp(20px, 11.2px + 1.29vw, 36px);
  --gallery-speed: 120s;
  --ease-link: 160ms ease;

  --shadow-icon: drop-shadow(0 10px 14px rgb(10 33 23 / 35%));
  --shadow-phone: drop-shadow(0 24px 32px rgb(15 41 28 / 22%));
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--color-green);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-cream);
  background: var(--color-green);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

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

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

a:focus-visible {
  outline: 3px solid currentcolor;
  outline-offset: 3px;
  border-radius: 8px;
}

.app-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 22.5%;
  outline: 1.5px solid var(--cream-rim);
  outline-offset: -1.5px;
  filter: var(--shadow-icon);
}

.store-badge {
  --badge-height: 56px;

  display: block;
  flex: none;
  height: var(--badge-height);
  transition: transform var(--ease-link);
}

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

.store-badge img {
  width: auto;
  height: 100%;
}

.qr {
  display: none;
  flex: none;
  width: var(--qr-size);
}

.qr img {
  width: 100%;
}

/* Hero */
.hero {
  --icon-size: 72px;
  --gallery-columns: 3;
  --gallery-gap: 10px;
  --gallery-inset: 14px;
  --gallery-fade: 48px;

  background: var(--color-green);
}

.hero__inner {
  position: relative;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-top: 48px;
  padding-bottom: 28px;
}

.hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 24px;
  text-align: center;
}

.hero__name {
  width: min(280px, 100%);
  margin-top: 24px;
}

.hero__name img {
  width: 100%;
}

.hero__slogan {
  margin-top: 20px;
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: var(--tracking-title);
}

.hero__lead {
  max-width: 330px;
  margin-top: 12px;
  color: var(--cream-muted);
}

.hero__download {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  text-align: left;
}

.hero__store {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__hint {
  color: var(--cream-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.001em;
}

.hero__hint-scan {
  display: none;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns), minmax(0, 1fr));
  gap: var(--gallery-gap);
  height: 280px;
  margin-top: 24px;
  padding-inline: var(--gallery-inset);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 var(--gallery-fade), #000 calc(100% - var(--gallery-fade)), transparent);
  mask-image: linear-gradient(transparent, #000 var(--gallery-fade), #000 calc(100% - var(--gallery-fade)), transparent);
}

.gallery__column {
  container-type: inline-size;
  min-width: 0;
}

.gallery__column:nth-child(n + 4) {
  display: none;
}

.gallery__track {
  display: flow-root;
  will-change: transform;
}

.gallery--looping .gallery__track {
  animation: gallery-scroll var(--gallery-speed) linear infinite;
}

.gallery--looping .gallery__column--down .gallery__track {
  animation-direction: reverse;
}

.gallery--looping:hover .gallery__track {
  animation-play-state: paused;
}

@keyframes gallery-scroll {
  to {
    transform: translate3d(0, -50%, 0);
  }
}

.place {
  position: relative;
  margin-bottom: var(--gallery-gap);
  overflow: hidden;
  aspect-ratio: 236 / 198;
  border-radius: 7cqw;
  background: var(--cream-hairline);
}

.place--tall {
  aspect-ratio: 236 / 316;
}

.place img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 24cqw 6.5cqw 6.5cqw;
  color: var(--color-on-photo);
  background: linear-gradient(transparent, rgb(0 0 0 / 62%));
}

.place strong {
  font-size: calc(6px + 5.1cqw);
  font-weight: 600;
  line-height: 1.25;
}

.place span {
  font-size: calc(4px + 3.4cqw);
  line-height: 1.3;
  opacity: 0.8;
}

@container (max-width: 130px) {
  .place span {
    display: none;
  }
}

/* Features */
.features {
  padding: 64px 16px;
  color: var(--color-green);
  background: var(--color-cream);
}

.features__title {
  max-width: 342px;
  margin-inline: auto;
  font-size: 40px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: var(--tracking-title);
  text-align: center;
}

.features__grid {
  display: grid;
  gap: 64px;
  max-width: var(--page-max);
  margin: 40px auto 0;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.feature h3 {
  font-size: 40px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: var(--tracking-title);
}

.feature p {
  margin-top: 8px;
  color: var(--green-muted);
}

.feature__phone {
  width: min(280px, 72vw);
  aspect-ratio: var(--phone-ratio);
  filter: var(--shadow-phone);
}

/* Closing */
.closing {
  --icon-size: 72px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 72px 24px;
  text-align: center;
}

.closing__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: var(--tracking-title);
}

.closing__facts {
  max-width: 330px;
  color: var(--cream-muted);
}

.closing__download {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 32px 24px max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--cream-hairline);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.footer__logo {
  width: 110px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

.footer__legal span {
  color: var(--cream-muted);
}

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

/* Secondary pages */
.page {
  min-height: 100svh;
  padding: 48px 24px;
  color: var(--color-green);
  background: var(--color-cream);
}

.page__inner {
  max-width: 1680px;
  margin-inline: auto;
}

.page__logo {
  width: 120px;
}

.page__title {
  margin-top: 64px;
  font-size: 40px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: var(--tracking-title);
}

.page__lead {
  max-width: 600px;
  margin-top: 16px;
  color: var(--green-muted);
}

.page__note {
  max-width: 860px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--green-muted);
}

.page__back {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
}

.page__back:hover {
  text-decoration: underline;
}

.legal {
  max-width: 760px;
  margin-top: 40px;
  color: var(--color-green);
}

.legal h2 {
  margin-top: 48px;
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  letter-spacing: var(--tracking-title);
}

.legal h3 {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.legal p,
.legal ul {
  margin: 12px 0 0;
}

.legal ul {
  padding-left: 22px;
}

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

.legal a {
  text-decoration: underline;
}

.credits {
  max-width: 860px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.credits li {
  padding-block: 14px;
  border-top: 1px solid rgb(41 104 72 / 18%);
}

.credits a {
  text-decoration: underline;
}

.credits small {
  display: block;
  font-size: 14px;
  color: var(--green-muted);
}

@media (min-width: 768px) {
  .qr {
    display: block;
  }

  .hero {
    --icon-size: 88px;
    --gallery-columns: 5;
    --gallery-gap: 12px;
    --gallery-inset: 28px;
    --gallery-fade: 64px;
    --qr-size: 140px;
  }

  .hero__inner {
    padding-top: 56px;
    padding-bottom: 44px;
  }

  .hero__name {
    width: 480px;
    margin-top: 28px;
  }

  .hero__slogan {
    margin-top: 24px;
    font-size: 48px;
    line-height: 54px;
  }

  .hero__lead {
    max-width: 600px;
    font-size: 20px;
    line-height: 30px;
  }

  .hero__download {
    margin-top: 32px;
  }

  .hero__store {
    align-items: flex-start;
  }

  .hero__store .store-badge {
    --badge-height: 60px;
  }

  .hero__hint-scan {
    display: block;
  }

  .gallery {
    height: clamp(372px, 44.6vw, 520px);
    margin-top: 36px;
  }

  .gallery__column:nth-child(n + 4) {
    display: block;
  }

  .features {
    padding: clamp(72px, 37px + 3.9vw, 110px) 3.125vw;
  }

  .features__title {
    max-width: none;
    font-size: clamp(48px, 23.4px + 2.95vw, 80px);
    line-height: 1.08;
    letter-spacing: var(--tracking-display);
  }

  .features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 0;
    margin-top: clamp(34px, 6.63vw - 21px, 106px);
  }

  .feature {
    gap: var(--feature-gap);
  }

  .feature--phone-first {
    flex-direction: column-reverse;
    justify-content: flex-end;
  }

  .feature h3 {
    font-size: clamp(28px, 7px + 2.76vw, 60px);
    line-height: 1.07;
    letter-spacing: var(--tracking-title);
  }

  .feature p {
    margin-top: clamp(6px, 3px + 0.5vw, 12px);
    font-size: clamp(16px, 12.9px + 0.37vw, 20px);
    line-height: 1.5;
  }

  .feature__phone {
    width: var(--phone-width);
  }

  .closing {
    --icon-size: 88px;

    gap: 28px;
    padding-block: 96px;
  }

  .closing__title {
    font-size: 60px;
    line-height: 64px;
  }

  .closing__facts {
    max-width: 600px;
    font-size: 20px;
    line-height: 30px;
  }

  .closing .store-badge {
    --badge-height: 60px;
  }

  .closing .qr {
    --qr-size: 140px;
  }

  .page {
    padding: 80px 56px;
  }

  .page__logo {
    width: 150px;
  }

  .page__title {
    font-size: 80px;
    line-height: 84px;
    letter-spacing: var(--tracking-display);
  }
}

@media (min-width: 1200px) {
  .hero {
    --icon-size: 96px;
    --gallery-columns: 4;
    --gallery-gap: 16px;
    --gallery-fade: 120px;
    --qr-size: 152px;
  }

  .hero__inner {
    display: flex;
    align-items: center;
    min-height: clamp(720px, 100svh, 1080px);
    padding: 40px 0;
  }

  .hero__copy {
    align-items: flex-start;
    padding-inline: clamp(48px, 6.25vw, 120px) 0;
    text-align: left;
  }

  .hero__name {
    width: clamp(440px, 33.3vw, 640px);
    margin-top: 40px;
  }

  .hero__slogan {
    margin-top: 36px;
  }

  .hero__lead {
    max-width: clamp(440px, 33.3vw, 640px);
    margin-top: 20px;
  }

  .hero__download {
    gap: 28px;
    margin-top: 44px;
  }

  .hero__store {
    gap: 14px;
  }

  .hero__store .store-badge {
    --badge-height: 66px;
  }

  .gallery {
    position: absolute;
    inset: 0 clamp(24px, 2.92vw, 56px) 0 auto;
    width: 51.7vw;
    max-width: 992px;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .gallery__column:nth-child(n + 5) {
    display: none;
  }

  .closing {
    --icon-size: 120px;

    gap: 32px;
    padding-block: 140px 120px;
  }

  .closing__title {
    font-size: 80px;
    line-height: 84px;
    letter-spacing: var(--tracking-display);
  }

  .closing__facts {
    max-width: 760px;
  }

  .closing__download {
    gap: 32px;
  }

  .closing .store-badge {
    --badge-height: 72px;
  }

  .closing .qr {
    --qr-size: 168px;
  }

  .footer {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    max-width: 1680px;
    margin-inline: auto;
    padding: 46px 0;
  }

  .footer__logo {
    width: 118px;
  }

  .footer__legal {
    gap: 40px;
  }

  .footer__contact {
    justify-self: end;
  }
}

@media (min-width: 1200px) and (max-width: 1800px) {
  .footer {
    margin-inline: clamp(48px, 6.25vw, 120px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery--looping .gallery__track {
    animation: none;
  }

  .store-badge {
    transition: none;
  }
}
