/*
 * wordstress.css — self-contained one-pager for WordStress (no base.css).
 * Layout forked from Turtle Hurdle; theme from design-lab v08 "Clean White":
 * white sections, teal→blue→red gradient accents, Raleway, section waves
 * (js/wordstress-waves.js), hero parallax (js/hero-parallax.js).
 */

:root {
  --ink: #1c1c28;
  --ink-soft: #6b6b7a;
  --light: #f7f7fa;
  --footer: #1c1c28;
  --font-display: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --grad-accent: linear-gradient(100deg, #63d0be, #6a8fd8 50%, #d96a6a);
  --features-grad: linear-gradient(120deg, #63d0be 0%, #6a8fd8 48%, #d96a6a 100%);
  --wave-overlap: clamp(40px, 8vw, 60px);
  /* Section vertical rhythm (~20% taller than Turtle Hurdle template values). */
  --section-pad-top: clamp(4.2rem, 8.4vw, 7.2rem);
  --section-pad-bottom: clamp(6.6rem, 12vw, 10.2rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

/* v08-style gradient text on light sections */
.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------ Auto-hiding header */

.app-header {
  position: fixed;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1080px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.7rem 0.6rem 1rem;
  background: rgba(28, 28, 40, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.app-header.is-hidden {
  transform: translate(-50%, calc(-100% - 1rem));
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .app-header { transition: none; }
}

.app-header .brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.app-header .brand img { width: 30px; height: 30px; border-radius: 8px; }

.app-header .h-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.app-header .h-right a {
  color: #c8c8d8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.app-header .h-right a:hover { color: #fff; }

.lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  cursor: pointer;
}
.lang-picker select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: #c8c8d8;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.2rem 0;
  field-sizing: content;
  width: auto;
  min-width: 0;
  cursor: pointer;
}
.lang-picker::after {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8c8d8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}
.lang-picker:hover select { color: #fff; }
.lang-picker:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.lang-picker select option { color: var(--ink); }

/* ------------------------------------------------------- Hero */

.hero {
  position: relative;
  height: 98vh;
  min-height: 95svh;
  overflow: hidden;
}
.hero .art {
  position: absolute;
  inset: -3%;
  will-change: transform;
}
.hero .art__motion {
  position: absolute;
  inset: 0;
  background: url("../assets/wordstress/feature.webp") center / cover no-repeat;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(-2%, 1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .art__motion { animation: none; }
}

/* Light scrim so the title and badges read over busy key art. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(28, 28, 40, 0.16);
}

.hero-title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  pointer-events: none;
}
.hero-title h1 {
  font-size: clamp(2.6rem, 8.5vw, 5.2rem);
  color: #fff;
  text-align: center;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.35);
}
.hero-title .badges {
  justify-content: center;
  pointer-events: auto;
}
.hero-title .store-badge { height: 44px; }
.hero-title .store-badge--apple { width: calc(44px * 119.66407 / 40); }
.hero-title .store-badge--google { width: calc(44px * 238.96 / 70.87); }

/* ------------------------------------------------------- Waves */

.wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: var(--wave-overlap);
  display: block;
  z-index: 2;
}

/* ------------------------------------------------------- Sections */

.intro,
.gallery {
  position: relative;
  padding: var(--section-pad-top) 5vw var(--section-pad-bottom);
}

.intro { background: #fff; }
.intro .wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.intro .char {
  justify-self: center;
  transform-origin: center center;
}
.intro .char img {
  width: min(300px, 70vw);
  height: auto; /* width/height attrs are hints only; keep natural ratio */
  border-radius: 26px;
  box-shadow:
    0 10px 28px rgba(106, 143, 216, 0.2),
    0 24px 48px rgba(28, 28, 40, 0.08);
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.intro .char:hover img {
  transform: translateY(-6px) scale(1.02) rotate(-1.5deg);
}
.intro h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.intro p { color: var(--ink-soft); margin-bottom: 1.8rem; max-width: 34em; }

/* Store badges */
.badges { display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: center; }
.store-badge {
  display: block;
  flex: none;
  height: 40px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.15s ease;
}
.store-badge--apple {
  width: calc(40px * 119.66407 / 40);
  background-image: url("../assets/badges/Download_on_the_App_Store_Badge_US-UK_RGB_blk_092917.svg");
}
.store-badge--google {
  width: calc(40px * 238.96 / 70.87);
  background-image: url("../assets/badges/GetItOnGooglePlay_Badge_Web_color_English.svg");
}
.store-badge:hover { transform: translateY(-2px); }

/* Features band */
.features {
  position: relative;
  margin-top: calc(-1 * var(--wave-overlap));
  padding: calc(var(--section-pad-top) + var(--wave-overlap)) 5vw var(--section-pad-bottom);
  color: #fff;
}
.features::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--features-grad);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: var(
    --features-wave-mask,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1000' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0,58 C160,86 320,86 480,58 C640,30 800,30 960,58 C1120,86 1280,86 1440,58 L1440,1000 L0,1000 Z'/%3E%3C/svg%3E")
  );
  mask-image: var(
    --features-wave-mask,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1000' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0,58 C160,86 320,86 480,58 C640,30 800,30 960,58 C1120,86 1280,86 1440,58 L1440,1000 L0,1000 Z'/%3E%3C/svg%3E")
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.features .wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.features .wave { z-index: 1; }
.features .shot {
  justify-self: center;
  transform: rotate(-2deg);
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.features .shot:hover {
  transform: rotate(1deg) translateY(-6px) scale(1.02);
}
.features .shot img {
  width: min(370px, 62vw);
  height: auto;
  border-radius: 20px;
  box-shadow:
    0 12px 32px rgba(28, 28, 40, 0.28),
    0 28px 52px rgba(28, 28, 40, 0.16);
}
.features h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin-bottom: 1.5rem;
  color: #fff;
}
.features ul { list-style: none; }
.features li {
  padding: 0.55rem 0 0.55rem 2.15rem;
  position: relative;
  font-weight: 600;
  font-size: 1.05rem;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 1.54rem;
  height: 1.54rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Gallery */
.gallery { background: var(--light); }
.gallery .strip {
  display: flex;
  gap: 1.3rem;
  overflow-x: auto;
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 1.2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery .strip img {
  height: 500px;
  width: auto;
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(28, 28, 40, 0.12);
  scroll-snap-align: center;
}
.gallery .foot { text-align: center; margin-top: 3rem; }
.gallery .foot .app-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  margin: 0 auto 1rem;
  box-shadow: 0 10px 30px rgba(106, 143, 216, 0.25);
}
.gallery .foot h2 { font-size: 1.8rem; margin-bottom: 1.3rem; }
.gallery .foot .badges { justify-content: center; }

/* ------------------------------------------------------- Scroll reveal */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-on-scroll--delay { transition-delay: 0.12s; }
.reveal-on-scroll--delay-2 { transition-delay: 0.22s; }

/* Keep the tilted gameplay shot while it fades in. */
.features .shot.reveal-on-scroll {
  transform: rotate(-2deg) translateY(1.25rem);
}
.features .shot.reveal-on-scroll.is-visible {
  transform: rotate(-2deg) translateY(0);
}
.features .shot.reveal-on-scroll.is-visible:hover {
  transform: rotate(1deg) translateY(-6px) scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .features .shot.reveal-on-scroll,
  .features .shot.reveal-on-scroll.is-visible {
    transform: rotate(-2deg);
  }
  .intro .char img,
  .features .shot {
    transition: none;
  }
  .intro .char:hover img {
    transform: none;
  }
  .features .shot:hover {
    transform: rotate(-2deg);
  }
}

/* Footer */
.app-footer {
  background: var(--footer);
  color: #a8a8b8;
  text-align: center;
  padding: 3rem 5vw;
  font-size: 0.9rem;
}

/* ------------------------------------------------------- Responsive */

@media (max-width: 820px) {
  .intro .wrap,
  .features .wrap { grid-template-columns: 1fr; text-align: center; }
  .badges { justify-content: center; }
  .features li { text-align: left; }
  /* App name + Games link are redundant on narrow viewports; keep language only. */
  .app-header .nav-page,
  .app-header .nav-games { display: none; }
}

@media (max-width: 560px) {
  .app-header { width: 92%; padding: 0.45rem 0.55rem 0.45rem 0.85rem; }
  .app-header .brand { font-size: 0.95rem; }
  .app-header .h-right { gap: 0.65rem; }
  .gallery .strip img { height: 420px; }
}

/* -------------------------------------------------------------- Footer */

/* Big footer with the support block inside: heading, short line, email
   button — then the copyright + privacy link. The gallery waves into it. */
.app-footer {
  padding: clamp(4rem, 8vw, 6rem) 5vw 2.2rem;
}
.footer-support h2 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 0.6rem;
}
.footer-support p {
  max-width: 34em;
  margin: 0 auto 1.7rem;
}
.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  background: var(--grad-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(106, 143, 216, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.support-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(106, 143, 216, 0.5);
}
.footer-meta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}
.footer-meta .footer-links { margin-top: 0.4rem; }
.footer-meta a { color: inherit; }

/* ------------------------------------------------------------------ FAQ */

/* Collapsible questions (native <details>) between the gallery and footer. */
.faq {
  position: relative;
  background: #fff;
  padding: clamp(3.5rem, 7vw, 6rem) 5vw clamp(7rem, 13vw, 10rem);
}
.faq .wrap { max-width: 760px; margin: 0 auto; }
.faq h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
  margin-bottom: 1.8rem;
}
.faq details {
  background: #f7f7fa;
  border: 1px solid #ececf4;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: #6a8fd8;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 0.6rem; color: var(--ink-soft); }
