:root {
  color-scheme: light;
  --paper: #f8f6f2;
  --ink: #171513;
  --muted: #5e5752;
  --rule: #ded8d2;
  --red: #c7101d;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }

body { margin: 0; }

.page {
  width: min(calc(100% - 80px), 1200px);
  margin-inline: auto;
}

.hero {
  display: grid;
  justify-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(36px, 5vw, 72px);
}

.hero-copy {
  display: grid;
  justify-items: center;
  width: 100%;
  text-align: center;
}

.hero-heading {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  text-align: left;
}

.app-logo {
  flex: none;
  width: clamp(112px, 29vw, 176px);
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 18%;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 6.15vw, 6.1rem);
  font-weight: 850;
  line-height: .96;
  letter-spacing: -.06em;
  word-spacing: .06em;
}

h1 span {
  display: block;
  color: var(--red);
}

.intro {
  max-width: 34ch;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.55;
}

.download {
  position: relative;
  width: min(100%, 320px);
  margin-top: 24px;
  padding: 12px 14px 8px;
  border: 1px solid #d0c8bf;
  border-radius: 15px;
  background: #fff;
  text-align: center;
}

.download::before,
.download::after {
  position: absolute;
  width: clamp(90px, 11vw, 132px);
  aspect-ratio: 1;
  background: url("images/pieces-212.webp") no-repeat;
  background-size: 200% 200%;
  opacity: .88;
  pointer-events: none;
  content: "";
}

.download::before {
  top: 19px;
  right: calc(100% + clamp(24px, 5vw, 62px));
  background-position: left top;
  transform: rotate(-13deg);
}

.download::after {
  bottom: 16px;
  left: calc(100% + clamp(24px, 5vw, 62px));
  background-position: right bottom;
  transform: rotate(12deg);
}

.download h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
}

.download-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.store {
  display: block;
  width: min(100%, 272px);
  border-radius: 8px;
}

.store img {
  display: block;
  width: 100%;
  height: auto;
}

.store-redirect {
  margin: 3px 0 2px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
}

.store-redirect p {
  margin: 0;
}

.cancel-redirect {
  color: var(--red);
  font-weight: 750;
  text-underline-offset: 2px;
}

.cancel-redirect:not([hidden]) {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding-inline: 12px;
}

.store:focus-visible,
.cancel-redirect:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.app-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  width: min(100%, 520px);
  aspect-ratio: 1.10;
  align-items: center;
  margin: 0;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 84% 19%, #f44442 0, transparent 52%),
    linear-gradient(145deg, #dc1022 4%, #ab0d1d 65%, #710910 100%);
}

.app-preview::before,
.app-preview::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 52%;
  width: 88%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(255 255 255 / .24);
  border-radius: 50%;
  content: "";
}

.app-preview::after { width: 72%; }

.preview-card {
  grid-area: 1 / 1;
  width: 33%;
  padding: 3px;
  border: 1px solid rgb(255 255 255 / .22);
  border-radius: clamp(12px, 1.6vw, 22px);
  background: #171514;
  box-shadow: 0 19px 37px rgb(58 2 9 / .43);
}

.preview-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.card-back { margin-left: 44%; transform: translateY(4%) rotate(12deg); }
.card-front { margin-left: 22%; transform: translateY(-4%) rotate(-10deg); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding: 25px 0 28px;
  border-block: 1px solid var(--rule);
  color: var(--muted);
  list-style: none;
  line-height: 1.5;
}

.features span {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
}

footer {
  padding-block: 23px;
  color: var(--muted);
  font-size: .875rem;
}

@media (max-width: 820px) {
  .page { width: min(calc(100% - 48px), 600px); }
  h1 { font-size: clamp(2.75rem, 9vw, 5.65rem); }
}

@media (max-width: 639px) {
  .download::before,
  .download::after {
    width: clamp(46px, 12vw, 62px);
  }

  .download::before {
    top: -15px;
    right: auto;
    left: -10px;
  }

  .download::after {
    top: -9px;
    bottom: auto;
    left: auto;
    right: -10px;
  }
}

@media (max-width: 460px) {
  .page { width: calc(100% - 32px); }
  .hero { padding-block: 30px; }
  h1 { font-size: clamp(2.4rem, 11vw, 2.75rem); }
  .download { margin-top: 19px; }
  .app-preview { border-radius: 20px; }
  .features { grid-template-columns: 1fr; gap: 14px; }
}
