/* ---------- fonts ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Druk Cyr';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/druk-bold.woff2') format('woff2');
}

/* ---------- tokens ---------- */
:root {
  --pink: #F543DC;
  --pink-dark: #E635CD;
  --pink-shadow: #C42FA9;
  --lav: #EAC7FB;
  --pale: #FBEFFE;
  --yellow: #FDEA47;
  --ink: #2B2B2B;
  --ink-soft: #3D3244;
  --ink-muted: #7C5B8D;
  --splat: url('../img/splat.webp');

  --duration-fast: 120ms;
  --duration-normal: 340ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--pale);
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pink); }
a:hover { color: var(--pink-dark); }
img { max-width: 100%; }

.display {
  font-family: 'Druk Cyr', Impact, 'Arial Narrow', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .9;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- helpers ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header ---------- */
header {
  position: relative;
  background: var(--pink);
  text-align: center;
  padding: 26px 24px 22px;
}
header img { width: 150px; display: block; margin: 0 auto; height: auto; }

/* ---------- stage ---------- */
.stage {
  min-height: 74vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  text-align: center;
  padding: 56px 24px 64px;
  position: relative;
  overflow: hidden;
}
.stage::before,
.stage::after {
  content: "";
  position: absolute;
  background: var(--splat) center/contain no-repeat;
  pointer-events: none;
}
.stage::before {
  top: -90px; left: -110px; width: 300px; height: 300px;
  opacity: .25; transform: rotate(-24deg);
}
.stage::after {
  bottom: -120px; right: -110px; width: 320px; height: 320px;
  opacity: .2; transform: rotate(120deg);
}

.step {
  display: grid;
  justify-items: center;
  gap: 26px;
  animation: pop var(--duration-normal) var(--ease-out) both;
  position: relative;
  width: 100%;
}
.step[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }

.qtext {
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  max-width: 760px;
}
.qtext:focus { outline: none; }

.answers {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.ans {
  font: inherit;
  font-weight: 700;
  letter-spacing: .1em;
  font-size: 15px;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  background: var(--pink);
  color: #fff;
  padding: 19px 54px;
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--pink-shadow);
  transition: transform var(--duration-fast) ease, background 150ms ease;
}
.ans:hover { background: var(--pink-dark); }
.ans:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--pink-shadow); }
.ans:focus-visible,
.city:focus-visible,
.btn:focus-visible,
.restart:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- city picker ---------- */
.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 620px;
}
.city {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid var(--pink);
  background: #fff;
  color: var(--pink);
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform var(--duration-fast) ease, background 150ms ease, color 150ms ease;
}
.city:hover { background: var(--pink); color: #fff; }
.city:active { transform: translateY(3px); }

@media (max-width: 620px) {
  .cities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .city { padding: 14px 10px; }
  .cities .city:last-child { grid-column: 1 / -1; justify-self: center; min-width: 55%; }
  .ans { padding: 19px 42px; }
}

/* ---------- progress + recap ---------- */
.progress { display: flex; gap: 8px; justify-content: center; position: relative; }
.progress[hidden] { display: none; }
.dot { width: 36px; height: 6px; border-radius: 99px; background: rgba(245, 67, 220, .22); }
.dot.on { background: var(--pink); }

.recap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 34px;
}
.recap span {
  display: inline-flex;
  gap: 8px;
  background: var(--lav);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: #6B4C7C;
}
.recap b { color: var(--pink); letter-spacing: .1em; }
.restart {
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.restart:hover { color: var(--pink); }

/* ---------- result ---------- */
.result {
  display: grid;
  justify-items: center;
  gap: 20px;
  animation: pop 420ms var(--ease-out) both;
  position: relative;
  width: 100%;
}
.result[hidden] { display: none; }
.card {
  background: #fff;
  border-radius: 26px;
  padding: 16px 16px 34px;
  box-shadow: 0 16px 40px rgba(93, 26, 102, .14);
  max-width: 640px;
  width: 100%;
}
.card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 16px;
}
.card h2 { margin: 24px 0 0; font-size: clamp(34px, 5vw, 52px); }
.card p {
  margin: 14px auto 24px;
  max-width: 470px;
  font-size: 16px;
  line-height: 26px;
  color: var(--ink-soft);
}
.btn {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 17px 34px;
  border-radius: 14px;
  box-shadow: 0 5px 0 var(--pink-shadow);
  transition: transform var(--duration-fast) ease, background 150ms ease;
}
.btn:hover { background: var(--pink-dark); color: #fff; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--pink-shadow); }

/* ---------- alt + footer ---------- */
.alt {
  background: var(--yellow);
  padding: 52px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.alt::before {
  content: "";
  position: absolute;
  top: -60px; right: -70px; width: 250px; height: 250px;
  background: var(--splat) center/contain no-repeat;
  opacity: .45;
  transform: rotate(72deg);
  pointer-events: none;
}
.alt h3 { position: relative; margin: 0 0 10px; font-size: clamp(32px, 5vw, 48px); }
.alt p { position: relative; margin: 0 0 26px; font-size: 16px; }

footer {
  background: var(--lav);
  text-align: center;
  padding: 38px 24px 44px;
  font-size: 13px;
  line-height: 20px;
  color: #4A3552;
}
footer img { width: 140px; display: block; margin: 0 auto 18px; height: auto; }
footer .links { display: flex; gap: 16px; justify-content: center; margin-bottom: 16px; }
footer a { color: #4A3552; }

@media (prefers-reduced-motion: reduce) {
  .step, .result { animation: none; }
  .ans, .btn, .city { transition: none; }
}
