:root {
  --paper: #fff7e6;
  --paper-deep: #fdebc8;
  --ink: #2a2142;
  --ink-soft: #5b5370;
  --jungle: #1f9a6b;
  --jungle-deep: #167a54;
  --sun: #ffc53d;
  --coral: #ff6b4a;
  --sky: #4fb8e6;
  --radius: 20px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Baloo 2', 'Quicksand', system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2rem, 1.35rem + 3.1vw, 3.5rem);
  font-weight: 800;
}
h1 em {
  font-style: normal;
  color: var(--jungle);
}
h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 700;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
}
p {
  margin: 0 0 12px;
}

a {
  color: var(--jungle-deep);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
}

/* ---------- header ---------- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 32px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 14px 26px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  box-shadow: 4px 5px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:active {
  transform: translate(3px, 4px);
  box-shadow: 1px 2px 0 var(--ink);
}
.btn-primary {
  background: var(--jungle);
  color: #fff;
}
.btn-ghost {
  background: #fff;
}
.btn-sm {
  padding: 9px 16px;
  font-size: 0.95rem;
  border-width: 2px;
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- hero ---------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 48px) clamp(16px, 4vw, 32px) clamp(24px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}
.pill {
  display: inline-block;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 18px;
}
.lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 54ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 12px;
}
.cta-row.center {
  justify-content: center;
}
.note {
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hero-art {
  display: flex;
  justify-content: center;
}
.phone-hero {
  width: min(260px, 66vw);
}

/* ---------- blocks ---------- */
.block {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 32px);
}
.block.tinted {
  max-width: none;
  background: rgba(255, 255, 255, 0.55);
}
.block.tinted > * {
  max-width: 1120px;
  margin-inline: auto;
}
.block h2 {
  text-align: center;
}
.block-lead {
  text-align: center;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto 28px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
.card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 6px 0 var(--ink);
  padding: 22px;
}
.card p {
  color: var(--ink-soft);
  margin: 0;
}
.card .emoji {
  font-size: 2rem;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}

/* ---------- icons ---------- */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  color: var(--jungle);
  vertical-align: -0.2em;
}
.ico-lg {
  width: 34px;
  height: 34px;
  display: block;
  margin-bottom: 12px;
}
.pill .ico {
  color: var(--ink);
}
.card h3,
.shot h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- hero ticks ---------- */
.ticks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.ticks li {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ---------- o'yin ekranlari ---------- */
.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
}
.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.phone {
  width: min(250px, 72vw);
  border: 4px solid var(--ink);
  border-radius: 28px;
  background: var(--ink);
  padding: 6px;
  box-shadow: 6px 7px 0 rgba(42, 33, 66, 0.25);
  overflow: hidden;
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}
.shot figcaption {
  max-width: 34ch;
}
.shot h3 {
  justify-content: center;
  margin-bottom: 6px;
}
.shot p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- natija muddati ---------- */
.timeline {
  list-style: none;
  counter-reset: tl;
  margin: 28px 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.timeline li {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 6px 0 var(--ink);
  padding: 20px 22px;
}
.timeline .when {
  display: inline-block;
  background: var(--sky);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 12px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.timeline strong {
  display: block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.timeline p {
  margin: 0;
  color: var(--ink-soft);
}
.note.center {
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
}

/* ---------- steps ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.steps li {
  counter-increment: step;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 6px 0 var(--ink);
  padding: 20px 22px 20px 70px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.steps strong {
  display: block;
  font-size: 1.1rem;
}
.steps span {
  color: var(--ink-soft);
}

/* ---------- faq ---------- */
.faq {
  max-width: 760px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
details {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 5px 0 var(--ink);
  padding: 16px 20px;
}
summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--jungle);
}
details[open] summary::after {
  content: '–';
}
details p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink);
  color: var(--paper);
  padding: 32px clamp(16px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}
.foot-brand img {
  border-radius: 7px;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}
.site-foot a {
  color: var(--paper);
}
.copy {
  margin: 0;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ---------- bigger screens ---------- */
@media (min-width: 620px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .shots {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding-top: clamp(24px, 3vw, 56px);
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .shots {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }
  .phone {
    width: 100%;
  }
  .shot figcaption {
    max-width: none;
  }
}

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