:root {
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --ink: #101217;
  --muted: #5d6470;
  --line: #ded9cf;
  --header: #090c10;
  --header-ink: #f7f7f4;
  --blue: #0757c9;
  --purple: #6d238f;
  --green: #08764e;
  --red: #b80f18;
  --shadow: 0 16px 38px rgba(22, 27, 34, .12);
  --radius: 8px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent, var(--blue)) 55%, white);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  color: var(--header-ink);
}

.top-nav,
.page-shell,
.footer-inner {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

.top-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 1px;
}

.brand-mark {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 850;
  letter-spacing: 0;
}

.brand-subtitle {
  color: rgba(247, 247, 244, .68);
  font-size: .74rem;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  color: rgba(247, 247, 244, .92);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-icons svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  background: transparent;
  color: white;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.page-shell {
  padding: 28px 0 14px;
}

.catalogue-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 46px;
  align-items: start;
}

.intro-column {
  display: grid;
  gap: 28px;
}

.intro-copy {
  padding-top: 22px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 4vw, 3.7rem);
  line-height: .98;
  letter-spacing: 0;
}

.intro-copy p {
  max-width: 23ch;
  margin-bottom: 24px;
  color: #30353d;
  font-size: 1.02rem;
}

.intro-copy::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  margin: 0 0 22px;
  background: var(--blue);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #174f9f;
  font-weight: 800;
}

.text-link span,
.button span {
  transition: transform .18s var(--ease);
}

.text-link:hover span,
.button:hover span {
  transform: translateX(4px);
}

.info-card,
.stats-strip,
.app-card,
.support-sections > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .76);
}

.info-card {
  padding: 22px 24px;
}

.info-card h2 {
  margin-bottom: 20px;
  font-size: 1rem;
}

.info-list {
  display: grid;
  gap: 23px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 15px;
}

.info-list strong {
  display: block;
  font-size: .9rem;
}

.info-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .81rem;
  line-height: 1.35;
}

.info-icon,
.stat-icon {
  --icon-color: var(--blue);
  position: relative;
  color: var(--icon-color);
}

.info-icon::before,
.info-icon::after,
.stat-icon::before,
.stat-icon::after {
  content: "";
  position: absolute;
}

.info-icon.puzzle::before {
  width: 25px;
  height: 22px;
  left: 2px;
  top: 7px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.info-icon.puzzle::after {
  width: 10px;
  height: 10px;
  left: 19px;
  top: 13px;
  border: 2px solid currentColor;
  border-left-color: var(--surface);
  border-radius: 50%;
  background: var(--surface);
}

.info-icon.bars {
  --icon-color: var(--purple);
}

.info-icon.bars::before {
  inset: 5px 3px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}

.info-icon.bars::after {
  width: 5px;
  height: 24px;
  left: 22px;
  top: 2px;
  border-radius: 8px;
  box-shadow: -14px 12px 0 -1px currentColor, -7px 7px 0 -1px currentColor, 0 0 0 0 currentColor;
  background: currentColor;
}

.info-icon.heart {
  --icon-color: var(--green);
}

.info-icon.heart::before {
  width: 22px;
  height: 22px;
  left: 5px;
  top: 7px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(45deg);
  border-radius: 0 0 7px 0;
}

.info-icon.heart::after {
  width: 11px;
  height: 11px;
  left: 4px;
  top: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 10px 0 0 -2px var(--surface), 10px 0 0 0 currentColor;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-card {
  --accent: var(--blue);
  min-height: 290px;
  display: grid;
  grid-template-columns: minmax(190px, .95fr) minmax(210px, 1fr);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(22, 27, 34, .08);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.app-card:hover,
.app-card:focus-within {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.visual-panel {
  position: relative;
  min-height: 290px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 15%, rgba(255, 255, 255, .2), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 86%, black), color-mix(in srgb, var(--accent) 35%, black));
}

.visual-panel::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: 24px;
  width: 92px;
  height: 92px;
  opacity: .22;
  background-image: radial-gradient(rgba(255, 255, 255, .48) 1px, transparent 1px);
  background-size: 10px 10px;
}

.app-card:hover .visual-art {
  transform: translateY(-4px) rotate(var(--hover-rotate, 0deg));
}

.visual-art {
  position: relative;
  z-index: 1;
  transition: transform .25s var(--ease);
}

.app-icon {
  position: relative;
  z-index: 1;
  width: min(58%, 150px);
  aspect-ratio: 1;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 18px 35px rgba(0, 0, 0, .28);
  transition: transform .25s var(--ease);
}

.app-card:hover .app-icon {
  transform: translateY(-4px);
}

.number-grid {
  width: 175px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(0, 0, 0, .26);
}

.number-grid span {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, .56);
  border-bottom: 1px solid rgba(255, 255, 255, .56);
  color: white;
  font-size: 1.55rem;
  font-weight: 850;
}

.number-grid span:nth-child(3n) {
  border-right: 0;
}

.number-grid span:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.number-grid span:nth-child(5) {
  background: color-mix(in srgb, var(--accent) 70%, white 6%);
}

.category-cards {
  --hover-rotate: -2deg;
  width: 150px;
  height: 170px;
}

.category-cards::before,
.category-cards::after,
.category-cards span {
  position: absolute;
  width: 120px;
  height: 154px;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
}

.category-cards::before {
  content: "";
  right: 0;
  top: 10px;
  transform: rotate(9deg);
}

.category-cards::after {
  content: "";
  right: 15px;
  top: 4px;
  transform: rotate(4deg);
}

.category-cards span {
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 4.25rem;
  font-weight: 900;
  transform: rotate(-5deg);
}

.picture-cards {
  --hover-rotate: 2deg;
  width: 190px;
  height: 180px;
}

.picture-cards span {
  position: absolute;
  width: 105px;
  height: 145px;
  border: 4px solid rgba(255, 255, 255, .86);
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .28);
}

.picture-cards span:first-child {
  left: 18px;
  top: 8px;
  transform: rotate(-8deg);
}

.picture-cards span:last-child {
  right: 20px;
  bottom: 6px;
  transform: rotate(9deg);
}

.picture-cards span::before {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-left: 34px solid transparent;
  border-right: 34px solid transparent;
  border-bottom: 62px solid rgba(37, 214, 137, .72);
}

.picture-cards span::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fffdf8;
}

.playing-cards {
  --hover-rotate: -2deg;
  width: 180px;
  height: 175px;
}

.playing-cards span {
  position: absolute;
  width: 92px;
  height: 138px;
  border-radius: 8px;
  box-shadow: 0 15px 28px rgba(0, 0, 0, .28);
  font-size: 1.7rem;
  font-weight: 900;
  padding: 13px;
}

.playing-cards span:first-child {
  left: 16px;
  top: 18px;
  color: white;
  background: #171717;
  border: 3px solid rgba(255, 255, 255, .82);
  transform: rotate(-8deg);
}

.playing-cards span:last-child {
  right: 18px;
  top: 34px;
  color: var(--red);
  background: #fffdf8;
  transform: rotate(8deg);
}

.playing-cards span::after {
  content: attr(data-suit);
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  font-size: 3.4rem;
}

.app-content {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 18px;
  border-bottom: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.app-number {
  color: var(--accent);
  font-size: .95rem;
  font-weight: 900;
}

.app-content h2 {
  max-width: 10ch;
  margin: 17px 0 18px;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.app-content h2::after {
  content: "";
  display: block;
  width: 31px;
  height: 3px;
  margin-top: 16px;
  background: var(--accent);
}

.app-content p {
  margin-bottom: 18px;
  color: #242a31;
  font-size: .92rem;
}

.card-actions {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--accent, var(--blue));
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 850;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.button.primary {
  background: var(--accent, var(--blue));
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

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

.button.secondary:hover {
  background: color-mix(in srgb, var(--accent) 9%, white);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  box-shadow: 0 8px 18px rgba(22, 27, 34, .07);
}

.stats-strip article {
  min-height: 86px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px 24px;
}

.stats-strip article + article {
  border-left: 1px solid var(--line);
}

.stats-strip strong {
  display: block;
  font-size: .95rem;
}

.stats-strip span {
  color: #30353d;
  font-size: .82rem;
}

.stat-icon {
  width: 44px;
  height: 44px;
}

.stat-icon.star {
  --icon-color: var(--blue);
}

.stat-icon.star::before {
  inset: 3px;
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 69% 57%, 82% 100%, 50% 73%, 18% 100%, 31% 57%, 0 35%, 38% 35%);
  background: currentColor;
}

.stat-icon.star::after {
  inset: 7px;
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 69% 57%, 82% 100%, 50% 73%, 18% 100%, 31% 57%, 0 35%, 38% 35%);
  background: var(--surface);
}

.stat-icon.phone {
  --icon-color: var(--purple);
}

.stat-icon.phone::before {
  left: 11px;
  top: 1px;
  width: 22px;
  height: 39px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.stat-icon.phone::after {
  left: 20px;
  bottom: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.stat-icon.trend {
  --icon-color: var(--green);
}

.stat-icon.trend::before {
  left: 4px;
  top: 25px;
  width: 34px;
  height: 16px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: skew(-35deg);
}

.stat-icon.trend::after {
  right: 5px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
}

.stat-icon.shield {
  --icon-color: var(--red);
}

.stat-icon.shield::before {
  left: 8px;
  top: 2px;
  width: 28px;
  height: 36px;
  border: 2px solid currentColor;
  clip-path: polygon(50% 0, 100% 18%, 100% 64%, 50% 100%, 0 64%, 0 18%);
}

.support-sections {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(320px, 1.2fr);
  gap: 16px;
  margin-top: 18px;
}

.support-sections > div {
  padding: 20px;
}

.support-sections h2 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.support-sections p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .9rem;
}

.support-sections a {
  color: #174f9f;
  font-weight: 750;
}

.contact-form {
  --accent: var(--blue);
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: #30353d;
  font-size: .82rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

.contact-form textarea {
  resize: vertical;
}

.turnstile-box {
  min-height: 70px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--blue) 5%, white);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  margin-top: 0;
  background: var(--header);
  color: var(--header-ink);
}

.footer-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: .82rem;
}

.footer-inner p {
  margin: 0;
  color: rgba(247, 247, 244, .78);
}

.footer-inner > span {
  width: 1px;
  height: 20px;
  background: rgba(247, 247, 244, .4);
}

.footer-inner nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

.footer-inner a {
  color: rgba(247, 247, 244, .82);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 12, .66);
}

.modal-panel {
  --accent: var(--blue);
  position: relative;
  width: min(100%, 560px);
  max-height: min(720px, 88vh);
  overflow: auto;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.modal-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 900;
}

.modal-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
}

.modal-panel p {
  color: #30353d;
}

.modal-panel ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
  padding-left: 20px;
}

.modal-panel li::marker {
  color: var(--accent);
}

.modal-store-link {
  width: 100%;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .catalogue-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro-column {
    grid-template-columns: minmax(220px, .8fr) minmax(260px, 1fr);
    align-items: start;
  }

  .intro-copy p {
    max-width: 44ch;
  }
}

@media (max-width: 860px) {
  .top-nav,
  .page-shell,
  .footer-inner {
    width: min(100% - 32px, 1180px);
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 18px;
    background: var(--header);
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link,
  .nav-icons {
    padding: 13px 0;
  }

  .nav-link::after {
    bottom: 5px;
  }

  .app-grid,
  .stats-strip,
  .support-sections {
    grid-template-columns: 1fr;
  }

  .stats-strip article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding-top: 18px;
  }

  .intro-column {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    padding-top: 6px;
  }

  .app-card {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: 230px;
  }

  .app-content {
    padding: 22px 20px 18px;
  }

  .app-content h2 {
    max-width: none;
  }

  .footer-inner {
    min-height: 96px;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 16px 0;
  }

  .footer-inner nav {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
