/*
 * The landing page: the game's clothes on a web page — the mint ground, the
 * paper plates with their ink border and ledge, and the two faces the app
 * uses. It shares wasla.css for the logo and the colour tokens; everything
 * here is its own.
 */

.wz-site {
  margin: 0;
  background:
    radial-gradient(120% 60% at 50% -10%, #ffffff 0%, rgba(255, 255, 255, 0) 60%),
    var(--wz-board-1, #e9f6f3);
  color: var(--wz-ink, #1f2d3a);
  font-family: "Tajawal", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.8;
}

.wz-site section,
.wz-hero,
.wz-site-foot {
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ------------------------------------------------------------ hero ----- */

.wz-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem;
  padding-block: 3rem 2.5rem;
}
/* The hero reads down the middle: the line, the two buttons, the points. */
.wz-hero-text { text-align: center; }
.wz-hero-text .wz-logo-wrap { display: flex; margin-inline: auto; }
.wz-hero-text .wz-stores,
.wz-hero-text .wz-hero-points { justify-content: center; }
.wz-hero-lede { margin-inline: auto; }

.wz-hero-title {
  font-family: "Lalezar", "Tajawal", sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.35;
  color: var(--wz-teal-deep, #0e7f7a);
  margin: 0 0 .6rem;
}
.wz-hero-lede {
  font-size: 1.08rem;
  color: #3d5a5e;
  margin: 0 0 1.6rem;
  max-width: 34rem;
}
.wz-hero-note {
  margin: 1rem 0 0;
  font-size: .9rem;
  color: #5d7c80;
}
/* The app icon is the hero's picture: the screens are further down the page.
   It wears the page's own border and ledge rather than a drop shadow, so it
   sits in the same world as the plates and the screenshots. */
.wz-hero-mark { display: flex; justify-content: center; }

.wz-appicon {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: .85rem;
}
.wz-appicon img {
  display: block;
  width: clamp(116px, 16vw, 176px);
  height: auto;
  /* iOS rounds its icons at about this share of the side. */
  border-radius: 23%;
  border: 3px solid var(--wz-ink, #1f2d3a);
  box-shadow: 0 8px 0 var(--wz-ink, #1f2d3a);
}
.wz-appicon figcaption {
  font-family: "Lalezar", "Tajawal", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1;
  color: var(--wz-ink, #1f2d3a);
}

.wz-hero-shot img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 28px;
  border: 3px solid var(--wz-ink, #1f2d3a);
  box-shadow: 0 8px 0 var(--wz-ink, #1f2d3a);
  display: block;
  margin-inline: auto;
}

/* The stores' own buttons, unaltered, side by side.
   --wz-badge is how tall the badge itself is drawn: past Apple's 40px floor
   and Google's 28px one. Both ask for a quarter of that height as clear space,
   which is what the gap and the margins are. Google's file bakes its own clear
   space in — 168 of its 250 pixels are badge — so the Play badge is drawn
   250/168 taller to end up the same size as Apple's, never smaller, which is
   Google's rule when the two sit together. */
.wz-stores {
  --wz-badge: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: max(.9rem, calc(var(--wz-badge) / 4));
  margin-block: max(1.25rem, calc(var(--wz-badge) / 4));
}
.wz-store { display: inline-flex; }
.wz-store img { display: block; height: var(--wz-badge); width: auto; }
.wz-store-play img { height: calc(var(--wz-badge) * 250 / 168); }
.wz-store-soon {
  display: inline-flex;
  align-items: center;
  height: var(--wz-badge);
  padding-inline: 1.1rem;
  border: 2px dashed #a9cfc9;
  border-radius: 12px;
  color: #5d7c80;
  font-weight: 700;
  font-size: .95rem;
}

/* --------------------------------------------------------- numbers ----- */

.wz-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: 1rem 2.5rem;
}
.wz-number {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--wz-ink, #1f2d3a);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--wz-ink, #1f2d3a);
  padding: 1.1rem .75rem 1rem;
  text-align: center;
}
/* A band of the game's teal along the top, so a row of figures reads as a set. */
.wz-number::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: var(--wz-teal, #17a49e);
}
.wz-number-value {
  display: block;
  font-family: "Lalezar", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.3rem);
  color: var(--wz-teal-deep, #0e7f7a);
  line-height: 1.15;
}
.wz-number-label { font-size: .88rem; color: #5d7c80; font-weight: 700; }

/* -------------------------------------------------------- features ----- */

.wz-h2 {
  font-family: "Lalezar", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  color: var(--wz-ink, #1f2d3a);
  margin: 0 0 1.4rem;
  text-align: center;
}
.wz-features { padding-block: 2rem 1rem; }
.wz-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}
.wz-feature {
  background: #fff;
  border: 2px solid var(--wz-ink, #1f2d3a);
  border-radius: 20px;
  box-shadow: 0 4px 0 var(--wz-ink, #1f2d3a);
  padding: 1.2rem 1.25rem 1.35rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (hover: hover) {
  .wz-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 var(--wz-ink, #1f2d3a);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wz-feature { transition: none; }
  .wz-feature:hover { transform: none; }
}
.wz-feature h3 {
  font-family: "Lalezar", sans-serif;
  font-size: 1.28rem;
  color: var(--wz-teal-deep, #0e7f7a);
  margin: 0 0 .4rem;
}
.wz-feature p { margin: 0; color: #3d5a5e; font-size: .98rem; }

/* ----------------------------------------------------------- shots ----- */

/* The section carries the spacing now that it has a heading; the row inside
   only lays the screens out. */
.wz-shots-section { padding-block: 2.5rem 1rem; }
.wz-shots-hint {
  margin: -0.25rem 0 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--wz-muted, #5d7c80);
}

/* The screenshots are a strip you swipe rather than a wall you scan. Snapping
   is the browser's own: a finger swipes the strip, the arrows are for a mouse,
   and nothing here needs script to work. */
.wz-gallery {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wz-shots {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Room for the drawn ledge under each shot, and for the focus ring. */
  padding-block: 0.5rem 1rem;
  padding-inline: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.wz-shots::-webkit-scrollbar { display: none; }
.wz-shots:focus-visible { outline: 3px solid var(--wz-teal, #14a49e); outline-offset: 4px; border-radius: 30px; }
/* The <picture> around each shot is only a format switch; the strip lays out the img. */
.wz-shots picture { display: contents; }

.wz-shots img {
  flex: 0 0 auto;
  /* A wide page shows a row and scrolls it along; a phone shows one, centred. */
  scroll-snap-align: start;
  width: 260px;
  height: auto;
  border-radius: 26px;
  border: 3px solid var(--wz-ink, #1f2d3a);
  box-shadow: 0 8px 0 var(--wz-ink, #1f2d3a);
}

.wz-gallery-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--wz-ink, #1f2d3a);
  background: #fff;
  box-shadow: 0 4px 0 var(--wz-ink, #1f2d3a);
  color: var(--wz-ink, #1f2d3a);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.wz-gallery-arrow:hover { background: var(--wz-board, #e9f6f3); }
.wz-gallery-arrow:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--wz-ink, #1f2d3a); }
.wz-gallery-arrow[disabled] { opacity: 0.35; cursor: default; box-shadow: 0 4px 0 var(--wz-ink, #1f2d3a); transform: none; }

/* Dots answer "which one of seven am I on", which is only a question when one
   shot fills the view. A wide page shows a row of them and has the arrows. */
.wz-gallery-dots {
  display: none;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.wz-gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wz-ink, #1f2d3a);
  opacity: 0.22;
  cursor: pointer;
  transition: opacity 0.2s, width 0.2s;
}
.wz-gallery-dot.is-here { opacity: 1; width: 22px; border-radius: 6px; }

/* A finger does the swiping, so the arrows are only in the way — and on a
   narrow page the two of them plus a shot are wider than the screen. */
@media (hover: none), (max-width: 640px) {
  .wz-gallery-arrow { display: none; }
}

/* One shot at a time on a phone, with the next one just showing so it is plain
   that the strip goes on. */
@media (max-width: 640px) {
  .wz-shots {
    gap: 1rem;
    /* Enough on both sides that the first and last shot can reach the middle. */
    padding-inline: max(0.75rem, calc(50% - 0.5 * min(72vw, 280px)));
  }
  .wz-shots img {
    width: min(72vw, 280px);
    scroll-snap-align: center;
  }
  .wz-gallery-dots { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .wz-shots { scroll-behavior: auto; }
  .wz-gallery-dot { transition: none; }
}

/* ------------------------------------------------------------- cta ----- */

.wz-cta { padding-block: 2.5rem 3rem; text-align: center; }
.wz-cta .wz-stores { justify-content: center; }

/* ---------------------------------------------------------- footer ----- */

.wz-site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 2px solid #cfe4e0;
  font-size: .9rem;
}
.wz-site-foot a { color: var(--wz-teal-deep, #0e7f7a); font-weight: 700; text-decoration: none; }
.wz-site-foot a:hover { text-decoration: underline; }
.wz-site-copy { color: #8aa7ab; }

@media (max-width: 767.98px) {
  .wz-hero { grid-template-columns: 1fr; padding-block: 2.5rem 1.5rem; text-align: center; }
  /* Stacked, the logo comes first: it is what the page is, and the words follow. */
  .wz-hero-mark { order: -1; margin-bottom: .5rem; }
  .wz-hero .wz-logo-wrap { margin-inline: auto; }
  .wz-hero-lede { margin-inline: auto; }
  .wz-stores { justify-content: center; }
  .wz-numbers { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------ icons ---- */
/* The game's own icons, drawn as it draws them: on a paper plate with the
   pack's ink border and its ledge. */
.wz-feature-icon,
.wz-hero-points img,
.wz-number-icon { flex: none; }

.wz-feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: .7rem;
  border: 2px solid var(--wz-ink, #1f2d3a);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 0 var(--wz-ink, #1f2d3a);
}
.wz-number-icon { display: block; margin: 0 auto .35rem; }

.wz-hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  margin: 1.2rem 0 0;
  padding: 0;
  font-weight: 700;
  color: #3d5a5e;
}
.wz-hero-points li { display: flex; align-items: center; gap: .45rem; }

@media (max-width: 767.98px) {
  .wz-feature-icon { margin-inline: auto; }
  .wz-feature { text-align: center; }
  .wz-hero-points { justify-content: center; }
}
