/* Fold Rescue website. Same world as the game: a sky-blue table, white paper
   cards with a solid drop, one coral action colour, Fredoka for headings. */
@font-face {
  font-family: 'Fredoka';
  font-weight: 500;
  font-display: swap;
  src: url(fonts/fredoka-latin-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 600;
  font-display: swap;
  src: url(fonts/fredoka-latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 700;
  font-display: swap;
  src: url(fonts/fredoka-latin-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 600;
  font-display: swap;
  src: url(fonts/fredoka-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 700;
  font-display: swap;
  src: url(fonts/fredoka-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-weight: 400;
  font-display: swap;
  src: url(fonts/nunito-sans-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-weight: 700;
  font-display: swap;
  src: url(fonts/nunito-sans-latin-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-weight: 800;
  font-display: swap;
  src: url(fonts/nunito-sans-latin-800-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-weight: 400;
  font-display: swap;
  src: url(fonts/nunito-sans-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-weight: 700;
  font-display: swap;
  src: url(fonts/nunito-sans-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-weight: 800;
  font-display: swap;
  src: url(fonts/nunito-sans-latin-ext-800-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}

/* Layout: one 1120px column of paper cards on the sky; bands change ground colour per district. */
:root {
  --sky: #bfe3f0;
  --sky-light: #e3f4fa;
  --sky-deep: #9cc6d6;
  --ink: #1f3a4d;
  --muted: #4f677a;
  --paper: #ffffff;
  --coral: #e4573d;
  --coral-deep: #b23d27;
  --gold: #f2b544;
  --road: #354c58;
  --dash: #f9edc8;
  --display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 18px/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}
html[data-lang='tr'] [lang='en'],
html[data-lang='en'] [lang='tr'] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
}
h3 {
  font-weight: 600;
  font-size: 26px;
}
p {
  margin: 0;
}
.eyebrow {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Header ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--sky) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--sky-deep);
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-weight: 800;
  font-size: 16px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover {
  color: var(--ink);
}
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--sky-deep);
}
.lang button {
  border: 0;
  background: none;
  padding: 6px 12px;
  border-radius: 999px;
  font: 800 14px var(--body);
  color: var(--muted);
  cursor: pointer;
}
.lang button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}

/* ---- Buttons ---- */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px 14px 20px;
  border-radius: 20px;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--coral-deep);
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.store svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.store small {
  display: block;
  font-family: var(--body);
  font-weight: 800;
  font-size: 13px;
  opacity: 0.9;
}
.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--coral-deep);
}
.store:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--coral-deep);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-light) 0%, var(--sky) 70%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  padding-block: 56px 72px;
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(48px, 7.4vw, 92px);
  letter-spacing: -1px;
}
.hero h1 .coral {
  color: var(--coral);
  text-shadow: 0 6px 0 var(--coral-deep);
}
.hero h1 .ink {
  text-shadow: 0 6px 0 var(--sky-deep);
}
.hero .lead {
  margin-top: 22px;
  max-width: 34ch;
  font-size: 21px;
  color: var(--muted);
}
.hero .actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--sky-deep);
  font-weight: 800;
  font-size: 15px;
}
.chip b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  color: var(--coral);
}
.stage {
  position: relative;
  min-height: 600px;
}
.stage .city {
  position: absolute;
  right: -18%;
  bottom: -2%;
  width: 118%;
  max-width: none;
  filter: drop-shadow(0 30px 30px rgba(31, 58, 77, 0.18));
}
.phone {
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 480 / 860;
  border-radius: 40px;
  padding: 10px;
  background: var(--ink);
  box-shadow:
    0 14px 0 #0f2230,
    0 40px 60px rgba(31, 58, 77, 0.25);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}
.stage .phone {
  margin-left: 4%;
  transform: rotate(-4deg);
}

/* The road that runs down the page, like the level map. */
.road {
  height: 46px;
  background:
    repeating-linear-gradient(90deg, var(--dash) 0 34px, transparent 34px 64px) center / 100% 4px no-repeat,
    var(--road);
  border-top: 6px solid #e8e0c9;
  border-bottom: 6px solid #e8e0c9;
}

section {
  padding-block: 84px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 46rem;
  margin-bottom: 44px;
}
.section-head p {
  color: var(--muted);
  font-size: 20px;
}

/* ---- How to play: three real steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 22px 26px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 8px 0 var(--sky-deep);
}
.step .shot {
  aspect-ratio: 448 / 520;
  overflow: hidden;
  border-radius: 20px;
  background: var(--sky-light);
}
.step .shot img {
  width: 100%;
  height: auto;
  transform: translateY(-14%);
}
.step .num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font: 700 22px var(--display);
  box-shadow: 0 4px 0 var(--coral-deep);
}
.step .row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.step p {
  color: var(--muted);
}

/* ---- Districts ---- */
.districts-band {
  background: linear-gradient(180deg, var(--sky) 0%, #d4eef6 100%);
}
.district-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px)));
  padding-inline: max(20px, env(safe-area-inset-left, 0px));
  scrollbar-width: thin;
}
.district {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 22px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 8px 0 var(--sky-deep);
}
.district img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  width: 100%;
}
.district .range {
  font-weight: 800;
  font-size: 14px;
  color: var(--coral);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.district p {
  color: var(--muted);
  font-size: 16px;
}
.d0 {
  background: linear-gradient(180deg, #fff 55%, #dff3f9);
}
.d1 {
  background: linear-gradient(180deg, #fff 55%, #e5f5dd);
}
.d2 {
  background: linear-gradient(180deg, #fff 55%, #f7ecd6);
}
.d3 {
  background: linear-gradient(180deg, #fff 55%, #dde9f0);
}
.d4 {
  background: linear-gradient(180deg, #fff 55%, #e6e8f2);
}

/* ---- Features: phone + text, alternating ---- */
.feature {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.feature + .feature {
  margin-top: 80px;
}
.feature.flip {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.feature.flip .phone {
  order: 2;
}
.feature .phone {
  width: 300px;
  justify-self: center;
}
.feature .text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 34rem;
}
.feature .text p {
  color: var(--muted);
  font-size: 19px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.fact {
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--sky-deep);
  font-weight: 800;
  font-size: 15px;
}
.fact b {
  font-family: var(--display);
  font-weight: 600;
  color: var(--coral);
  font-size: 18px;
}

/* ---- Fair play ---- */
.fair .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.fair .card {
  padding: 26px;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 8px 0 var(--sky-deep);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fair .card p {
  color: var(--muted);
  font-size: 17px;
}

/* ---- Closing call ---- */
.cta-band {
  background: var(--ink);
  color: #fff;
}
.cta-band .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding-block: 64px;
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  margin-top: 12px;
  color: #c9dbe5;
  font-size: 19px;
}
.cta-band .icon {
  width: 120px;
  border-radius: 28px;
  box-shadow: 0 8px 0 #0f2230;
}
.cta-band .row {
  display: flex;
  align-items: center;
  gap: 26px;
}

footer {
  background: var(--ink);
  color: #c9dbe5;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  padding-block: 26px 34px;
  font-size: 15px;
}
footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
footer .copy {
  margin-left: auto;
}

/* ---- Document pages (privacy, support) ---- */
.doc .wrap {
  max-width: 820px;
  padding-block: 48px 80px;
}
.doc article {
  padding: clamp(24px, 5vw, 48px);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 10px 0 var(--sky-deep);
}
.doc h1 {
  font-weight: 700;
  font-size: clamp(36px, 6vw, 54px);
  margin-bottom: 8px;
}
.doc h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 34px 0 10px;
}
.doc p,
.doc li {
  color: #2d4759;
}
.doc p + p {
  margin-top: 12px;
}
.doc .meta {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 16px;
}
.doc a {
  color: var(--coral-deep);
  font-weight: 800;
}
.doc details {
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--sky-light);
}
.doc summary {
  cursor: pointer;
  font-weight: 800;
}
.doc details p {
  margin-top: 8px;
}
.mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--sky-light);
  font-weight: 800;
}

/* ---- Small screens ---- */
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-block: 36px 24px;
  }
  .stage {
    min-height: 0;
    padding-top: 34%;
  }
  .stage .city {
    top: 0;
    bottom: auto;
    right: -14%;
    width: 118%;
  }
  .stage .phone {
    margin: 0 auto;
  }
  .steps,
  .fair .cards {
    grid-template-columns: 1fr;
  }
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .feature.flip .phone {
    order: 0;
  }
  .cta-band .wrap {
    grid-template-columns: 1fr;
  }
  .cta-band .icon {
    width: 84px;
  }
  footer .copy {
    margin-left: 0;
  }
  section {
    padding-block: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .store {
    transition: none;
  }
}
