/* Coming-soon page in the "sticker pack" style (docs/architecture/design.md). */
@font-face {
  font-family: "Dela Gothic One";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dela-gothic-one-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Dela Gothic One";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dela-gothic-one-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1b1724;
  --desk: #eeedf3;
  --card: #ffffff;
  --text: #1b1724;
  --text-2: #585266;
  --line: #1b1724;
  --shadow: #1b1724;
  --pink: #ff8cc6;
  --sun: #ffc93c;
  --sky: #5bc8ff;
  --leaf: #7adb8b;
  --orange: #ff8a47;
  --display: "Dela Gothic One", "Arial Black", sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --desk: #13111a;
    --card: #221e2d;
    --text: #f4f1fa;
    --text-2: #b9b3c8;
    --line: #050409;
    --shadow: #050409;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  min-height: 100dvh;
  background: var(--desk);
  color: var(--text);
  font: 400 16px / 1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
h1,
h2,
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}
.wordmark {
  font: 400 clamp(34px, 5vw, 46px) / 1 var(--display);
  letter-spacing: -0.01em;
}
.lang {
  margin: 0;
  min-width: 0;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.lang button {
  border: 0;
  background: none;
  color: var(--text-2);
  font: 700 13px / 1 var(--body);
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--text);
  color: var(--desk);
}

main {
  flex: 1;
  display: grid;
  align-content: center;
  padding-block: 12px 40px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 40px;
  align-items: center;
}
.deck {
  margin: 0;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.deck-stack {
  --w: min(340px, 82vw);
  position: relative;
  width: var(--w);
  height: calc((var(--w) - 52px) * 1.5625 + 36px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 24px;
}
.sticker {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% - 52px);
  transition:
    transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1),
    filter 0.4s ease;
}
.sticker svg {
  display: block;
  width: 100%;
  height: auto;
}
.sticker[data-pos="0"] {
  z-index: 3;
}
.sticker[data-pos="1"] {
  z-index: 2;
  transform: translate(26px, -18px) scale(0.95);
  filter: brightness(0.92);
}
.sticker[data-pos="2"] {
  z-index: 1;
  transform: translate(52px, -36px) scale(0.9);
  filter: brightness(0.84);
}
.deck-stack:hover .sticker[data-pos="0"] {
  transform: translate(-3px, -3px);
}
.ear-l,
.ear-r {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.sticker[data-pos="0"] .ear-l {
  animation: twitch-l 0.6s ease 0.3s;
}
.sticker[data-pos="0"] .ear-r {
  animation: twitch-r 0.6s ease 0.38s;
}
@keyframes twitch-l {
  30% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(4deg);
  }
}
@keyframes twitch-r {
  30% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(-4deg);
  }
}
.deck-caption {
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font: 700 14px / 1.2 var(--body);
  box-shadow: 3px 3px 0 var(--shadow);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--leaf);
  border: 2px solid var(--ink);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    transform: scale(0.65);
  }
}
h1 {
  font: 400 clamp(40px, 7vw, 76px) / 1.02 var(--display);
  margin-top: 22px;
  text-wrap: balance;
}
.lead {
  margin-top: 18px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-2);
  max-width: 34em;
}

.features {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.chip {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.chip svg {
  width: 22px;
  height: 22px;
}
.pink {
  background: var(--pink);
}
.sky {
  background: var(--sky);
}
.sun {
  background: var(--sun);
}
.leaf {
  background: var(--leaf);
}
.feature h2 {
  font: 800 17px / 1.25 var(--body);
  margin-top: 4px;
}
.feature p {
  font-size: 14.5px;
  color: var(--text-2);
}
.soon {
  justify-self: start;
  font: 700 12px / 1 var(--body);
  padding: 4px 9px;
  border-radius: 999px;
  border: 2px solid var(--line);
}

footer {
  padding-block: 24px max(24px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-2);
  border-top: 2px solid var(--line);
}

.claim {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 560px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--text);
  color: var(--desk);
  font: 700 16px / 1 var(--body);
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--sky);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--sky);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--sky);
}
.btn.secondary {
  background: var(--card);
  color: var(--text);
  box-shadow: 3px 3px 0 var(--orange);
}
.btn.secondary:hover {
  box-shadow: 4px 4px 0 var(--orange);
}
.btn.secondary:active {
  box-shadow: 1px 1px 0 var(--orange);
}
.btn svg {
  width: 20px;
  height: 20px;
}
.claim-hint {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-2);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .claim .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .top {
    padding-block: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dot,
  .sticker,
  .sticker[data-pos="0"] .ear-l,
  .sticker[data-pos="0"] .ear-r {
    animation: none;
    transition: none;
  }
}
