/* Every Step Counts — Investor Knowledge Quiz
   Mobile matches the Figma frames. Desktop is the same pages, restyled. */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --pink: #e2186a;
  --pink-deep: #c41058;
  --ink: #1c2430;
  --muted: #6d7585;
  --line: #e4e7ef;
  --mint: #e7f8ef;
  --green: #128a45;
  --teal: #0e9a86;
  --bg: #f3f5f8;
  --option: #f2f4fa;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(28, 36, 48, 0.08);
  --font: "Inter", sans-serif;
  --display: "Poppins", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: #e9edf2;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding:
    env(safe-area-inset-top, 0)
    env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
}

img, svg { max-width: 100%; height: auto; }

button, input, select { font-family: inherit; }

a { color: inherit; }

/* Removed preview screen pills */
.screen-nav { display: none !important; }

.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;
}

/* Real site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8ecf2;
}

.site-header__inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}

.site-brand .brand-lockup {
  padding: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
}

.site-brand .brand-lockup__logo {
  height: 40px;
}

.site-brand .brand-lockup__logo--samajh {
  height: 44px;
}

.site-brand .brand-lockup__sep {
  height: 28px;
}

.site-menu-btn {
  width: 42px;
  height: 42px;
  border: 1.5px solid #e4e7ef;
  border-radius: 12px;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex: 0 0 auto;
}

.site-menu-btn span:not(.sr-only) {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.site-nav {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #e8ecf2;
  box-shadow: 0 16px 30px rgba(28, 36, 48, 0.08);
  padding: 12px 16px 16px;
  flex-direction: column;
  gap: 6px;
}

.site-nav.is-open { display: flex; }

.site-nav a,
.site-nav__logout {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #3c4553;
  padding: 11px 14px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.site-nav a:hover,
.site-nav__logout:hover {
  background: #f7f8fb;
  color: var(--ink);
}

.site-nav a.is-active {
  background: #fff1f6;
  color: var(--pink);
}

.site-nav__cta {
  background: var(--pink) !important;
  color: #fff !important;
  text-align: center !important;
}

.site-nav__cta:hover {
  background: var(--pink-deep) !important;
}

.site-nav__form { margin: 0; }

.site-nav__logout {
  width: 100%;
  color: #b42348;
}

body.nav-open { overflow: hidden; }

.screen {
  width: 100%;
  max-width: 430px;
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  background: var(--card);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Partner lockup — SEBI | AMFI | IOSCO | Samajh Se Investing Simple */
.brand-lockup,
.brands {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 14px 16px 8px;
}

.brand-lockup.left,
.brands.left { justify-content: flex-start; padding-left: 22px; }

.brand-lockup__logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
  flex-shrink: 1;
}

.brand-lockup__logo--samajh {
  height: 46px;
}

.brand-lockup__sep {
  display: block;
  width: 1px;
  height: 30px;
  background: #c8ccd6;
  flex-shrink: 0;
}

/* Legacy single-image lockup (kept for safety) */
.brand-lockup__img {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(400px, 92vw);
  object-fit: contain;
  object-position: left center;
}

/* Welcome — official Every Step Counts logo */
.esc {
  width: 210px;
  max-width: min(240px, 72vw);
  height: auto;
  margin: 22px auto 14px;
  display: block;
  object-fit: contain;
}

.welcome-copy { text-align: center; padding: 0 28px; }

.kicker {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--ink);
  margin-bottom: 8px;
}

.welcome-copy h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--pink);
  margin-bottom: 16px;
}

.welcome-copy .lead {
  font-size: 15px;
  color: #3a4250;
  margin-bottom: 22px;
}

.welcome-copy .lets {
  font-size: 15px;
  color: #3a4250;
  margin-bottom: 16px;
}

.hero-art {
  margin-top: 28px;
  position: relative;
  height: 240px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 120%, #e2186a 0%, #e2186a 42%, transparent 43%);
  overflow: hidden;
}

.hero-art__img {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  max-height: 220px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.hero-art svg { width: 100%; height: 100%; display: block; }

.btn-pink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(226, 24, 106, 0.28);
}

.btn-pink:hover { background: var(--pink-deep); }

.btn-block { width: calc(100% - 44px); margin: 8px 22px 28px; }

/* Registration */
.page-register .screen { background: #f4f6f8; }

/* Login — centered card */
.page-login {
  min-height: 100vh;
  min-height: 100dvh;
}

.page-login .screen {
  background: #f4f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  padding: 24px 14px 32px;
  box-shadow: none;
}

.page-login .sheet {
  width: min(420px, 100%);
  margin: 0 auto;
}

.page-login .sheet h1,
.page-login .sheet .sub {
  text-align: center;
}

.sheet {
  background: #fff;
  margin: 8px 14px 24px;
  border-radius: 22px;
  padding: 22px 18px 18px;
  box-shadow: 0 8px 24px rgba(28, 36, 48, 0.04);
}

.sheet h1, .panel-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.3px;
}

.sheet .sub {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  margin: 6px 0 18px;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.field label i { color: #e11d48; font-style: normal; }

.control {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #d9deea;
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
  min-height: 46px;
}

.control svg { flex: 0 0 auto; color: #8b93a7; }

.control input, .control select {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
  padding: 12px 0;
  appearance: none;
}

.control select { color: #8b93a7; }

.control select.has-value { color: var(--ink); }

.promo { display: none; }

/* Success */
.success {
  text-align: center;
  padding: 18px 22px 36px;
}

.check-orb {
  width: 108px;
  height: 108px;
  margin: 18px auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #22a35a 0 42%, #d9f5e4 43% 70%, transparent 71%);
  display: grid;
  place-items: center;
}

.check-orb span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1f9d55;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(31, 157, 85, 0.25);
}

.success h1 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.success .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.details {
  text-align: left;
  border: 1.5px solid #e6e9f0;
  border-radius: 16px;
  padding: 16px 16px 8px;
  margin-bottom: 22px;
}

.details h2 {
  text-align: center;
  font-size: 15px;
  margin-bottom: 12px;
}

.details row, .detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 7px 0;
}

.detail-row span { color: #667085; flex: 0 0 auto; }
.detail-row strong { font-weight: 800; min-width: 0; text-align: right; overflow-wrap: anywhere; }

/* Instructions */
.instruct { padding: 6px 18px 32px; }

.card-soft {
  background: #fbfcfe;
  border: 1px solid #eef1f6;
  border-radius: 18px;
  padding: 22px 18px 20px;
  text-align: center;
}

.pill {
  display: inline-block;
  background: #1f9d55;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 12px;
}

.instruct h1 {
  font-family: var(--display);
  color: var(--pink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.instruct .blurb {
  color: #5c6573;
  font-size: 13px;
  margin-bottom: 16px;
}

.rules {
  text-align: left;
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px 8px;
  margin-bottom: 18px;
}

.rules h2 {
  color: #14915a;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.rules ol {
  padding-left: 18px;
  color: #3c4553;
  font-size: 13px;
  line-height: 1.45;
}

.rules li { margin-bottom: 6px; }

/* Quiz */
.quiz { padding: 4px 16px 28px; }

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 4px 18px;
}

.timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 14px;
}

.timer.ok { background: #e7f8ef; color: #14915a; }
.timer.low { background: #fde8ef; color: #e2186a; }

.qmeta { flex: 1; text-align: right; }

.qmeta p { font-size: 13px; font-weight: 700; margin-bottom: 6px; }

.qmeta .pct { color: var(--pink); margin-left: 6px; }

.bar {
  height: 7px;
  background: #e6eaf3;
  border-radius: 999px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--pink);
  border-radius: inherit;
}

.question {
  background: #fff;
  border-radius: 16px;
  text-align: center;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  padding: 16px 12px;
  margin-bottom: 14px;
  box-shadow: 0 1px 0 rgba(28, 36, 48, 0.02);
}

.options { display: flex; flex-direction: column; gap: 10px; }

.option {
  width: 100%;
  border: 0;
  background: var(--option);
  border-radius: 12px;
  min-height: 52px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  color: #2c3544;
  cursor: pointer;
}

.option > span:nth-child(2) { min-width: 0; flex: 1; }

.option .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d5dbe8;
  background: #fff;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.option .end {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: grid;
  place-items: center;
  color: transparent;
}

.option.selected {
  background: var(--mint);
}

.option.selected .dot {
  background: var(--green);
  border-color: var(--green);
}

.option.selected .dot::after,
.option.selected .end::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.option.selected .end {
  border-color: #7dcea5;
}

.option.selected .end::after {
  border-color: var(--green);
}

.sheet .btn-block,
.success .btn-block {
  width: 100%;
  margin: 6px 0 4px;
}

.quiz-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.quiz-actions.center { justify-content: center; }

.rail { display: none; }

/* Results */
.results { text-align: center; padding: 10px 22px 40px; position: relative; }

.confetti i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  opacity: 0.85;
}

.pin {
  width: 74px;
  height: 74px;
  margin: 36px auto 14px;
  border-radius: 50%;
  background: var(--pink);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(226, 24, 106, 0.28);
  position: relative;
}

.results h1 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.results .pink-line {
  color: var(--pink);
  font-weight: 700;
  font-size: 14px;
  max-width: 240px;
  margin: 0 auto 12px;
}

.rule {
  width: 42px;
  height: 3px;
  background: #1f9d55;
  border-radius: 4px;
  margin: 0 auto 16px;
}

.results .together {
  color: #5c6573;
  font-size: 14px;
  max-width: 230px;
  margin: 0 auto 22px;
  line-height: 1.4;
}

.grow {
  display: flex;
  gap: 12px;
  text-align: left;
  align-items: center;
  border: 1.5px solid #eceff5;
  border-radius: 16px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}

.trophy {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff6e8;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.grow strong { display: block; font-size: 14px; margin-bottom: 2px; color: var(--ink); }
.grow .note { font-size: 12px; color: var(--muted); }

.desktop-cta { display: none; }

/* Leaderboard */
.lb { padding: 4px 14px 28px; }

.lb-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0 14px;
  color: var(--ink);
}

.cities {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.cities::-webkit-scrollbar { display: none; }

.city-tab {
  border: 1.5px solid #d7dbe6;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.city-tab::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1c2430;
  margin-right: 6px;
  vertical-align: 1px;
}

.city-tab.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.city-tab.active::before { background: #fff; }

.lb-panel {
  background: #fff;
  border: 1.5px solid #e7ebf2;
  border-radius: 22px;
  padding: 18px 16px 16px;
  box-shadow: 0 10px 28px rgba(28, 36, 48, 0.05);
}

.loc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.loc-label {
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
}

.loc-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  margin-right: 6px;
}

.live {
  color: #14915a;
  font-size: 12px;
  font-weight: 700;
}

.city-heading {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--ink);
}

.chart,
.rank-card,
.top5-panel {
  border: 1.5px solid #e7ebf2;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.chart h2,
.rank-card h3,
.top5-panel h2 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.chart p,
.rank-card .hint,
.top5-panel > p {
  color: var(--muted);
  font-size: 12px;
  margin: 2px 0 14px;
}

.bar-row { margin-bottom: 14px; }
.bar-row:last-child { margin-bottom: 0; }

.bar-row .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.bar-row .meta .name {
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.bar-row .meta .name.on { color: var(--pink); }

.bar-row .meta .rank-num {
  font-weight: 800;
  margin-right: 4px;
}

.bar-row .meta .count {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.track {
  height: 10px;
  background: #eceff5;
  border-radius: 999px;
  overflow: hidden;
}

.track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.track i.hot { background: var(--pink); }

.bar-time {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.top5-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.ranks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.rank-card h3 { color: #14915a; font-size: 14px; margin-bottom: 8px; }

.rank-list { list-style: none; }

.rank-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 0;
  min-width: 0;
}

.rank-list li span { min-width: 0; overflow-wrap: anywhere; flex: 1; }

.rank-list li .rank-score {
  font-style: normal;
  font-weight: 800;
  color: var(--ink);
  margin-left: auto;
}

.rank-list b {
  width: 16px;
  color: var(--pink);
  font-size: 12px;
}

/* Small phones */
@media (max-width: 380px) {
  .brands,
  .brand-lockup { gap: 6px; padding: 12px 10px 6px; }
  .brand-lockup__logo { height: 28px; }
  .brand-lockup__logo--samajh { height: 32px; }
  .brand-lockup__sep { height: 22px; }
  .brand-lockup__img { height: 32px; }
  .welcome-copy { padding: 0 16px; }
  .welcome-copy h1 { font-size: clamp(20px, 6.2vw, 22px); }
  .esc { width: min(196px, 72vw); }
  .btn-block { width: calc(100% - 28px); margin: 8px 14px 24px; }
  .sheet { margin: 8px 10px 20px; padding: 18px 14px 16px; }
  .sheet h1, .panel-title { font-size: 21px; }
  .success, .results { padding-left: 14px; padding-right: 14px; }
  .results h1 { font-size: 24px; }
  .question { font-size: 16px; }
  .quiz { padding-left: 12px; padding-right: 12px; }
  .lb { padding-left: 12px; padding-right: 12px; }
  .lb-title { font-size: 18px; }
  .ranks { grid-template-columns: 1fr; }
  .otp-input { font-size: 22px; letter-spacing: 0.22rem; }
  .quiz-actions { justify-content: stretch; }
  .quiz-actions .btn-pink { width: 100%; }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .screen { min-height: auto; max-width: 100%; }
  .hero-art { height: 180px; margin-top: 12px; }
  .hero-art__img { width: min(200px, 58vw); max-height: 160px; }
  .welcome-copy { padding: 0 20px 12px; }
  .welcome-copy h1 { font-size: 22px; margin-bottom: 8px; }
  .esc { margin: 12px auto 8px; width: 150px; }
  .check-orb { width: 72px; height: 72px; margin: 8px auto; }
  .check-orb span { width: 44px; height: 44px; }
  .pin { margin-top: 16px; }
}

/* Large phones / small tablets */
@media (min-width: 480px) and (max-width: 767px) {
  .screen { max-width: 520px; }
  .flash { max-width: 520px; }
  .welcome-copy h1 { font-size: 30px; }
  .sheet { margin: 12px 18px 28px; }
  .lb-title { font-size: 24px; }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  .screen { max-width: 760px; }
  .flash { max-width: 760px; }
  .welcome-copy h1 { font-size: 36px; }
  .welcome-copy .lead, .welcome-copy .lets { font-size: 17px; }
  .esc { width: 230px; }
  .hero-art { height: 300px; }
  .hero-art__img { width: min(320px, 50vw); max-height: 280px; }
  .sheet { margin: 16px 22px 28px; padding: 28px 26px 22px; }
  .sheet h1, .panel-title { font-size: 30px; }
  .success h1, .instruct h1 { font-size: 30px; }
  .question { font-size: 22px; }
  .lb-title { font-size: 28px; }
  .city-heading { font-size: 32px; }
  .ranks { gap: 14px; }
  .page-register .promo { display: none; }
}

@media (min-width: 768px) {
  .site-menu-btn { display: none; }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .site-nav a,
  .site-nav__logout {
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .site-nav__cta {
    padding: 8px 16px !important;
  }

  .site-nav__logout { width: auto; }

  body.nav-open { overflow: auto; }
}

@media (max-width: 420px) {
  .site-header__inner { min-height: 64px; gap: 10px; }
  .site-brand { gap: 8px; }
  .site-brand .brand-lockup { gap: 5px; }
  .site-brand .brand-lockup__logo { height: 26px; }
  .site-brand .brand-lockup__logo--samajh { height: 30px; }
  .site-brand .brand-lockup__sep { height: 20px; }
  .site-brand .brand-lockup__img { height: 30px; max-width: min(280px, 62vw); }
}

/* Desktop / laptop */
@media (min-width: 1024px) {
  body {
    background:
      radial-gradient(900px 420px at 10% -10%, rgba(226, 24, 106, 0.16), transparent 60%),
      radial-gradient(700px 380px at 100% 0%, rgba(14, 154, 134, 0.12), transparent 55%),
      #f6f3f5;
  }

  .site-header__inner { min-height: 80px; }
  .site-brand { gap: 14px; }
  .site-brand .brand-lockup { gap: 12px; }
  .site-brand .brand-lockup__logo { height: 44px; }
  .site-brand .brand-lockup__logo--samajh { height: 50px; }
  .site-brand .brand-lockup__sep { height: 34px; }
  .site-brand .brand-lockup__img { height: 48px; max-width: 420px; }

  .screen {
    width: min(1120px, calc(100% - 48px));
    max-width: none;
    min-height: auto;
    margin: 28px auto 32px;
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: visible;
  }

  .page-welcome .screen {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    padding: 28px clamp(18px, 3vw, 48px) 32px;
    background:
      linear-gradient(180deg, #fff 0%, #fff 70%, #fff5f8 100%);
  }

  .page-welcome .brands { grid-column: 1 / -1; justify-content: flex-start; padding: 8px 8px 0; }
  .page-welcome .welcome-copy { text-align: left; padding: 10px 12px 0 8px; }
  .page-welcome .welcome-copy h1 { font-size: clamp(34px, 4vw, 54px); max-width: 560px; }
  .page-welcome .kicker { font-size: 14px; }
  .page-welcome .welcome-copy .lead,
  .page-welcome .welcome-copy .lets { font-size: 18px; }
  .page-welcome .esc { margin: 8px 0 18px; width: 250px; max-width: 280px; }
  .page-welcome .hero-art {
    height: min(420px, 48vh);
    margin: 0;
    align-items: center;
  }
  .page-welcome .hero-art__img {
    width: min(380px, 36vw);
    max-height: 360px;
    margin-bottom: 0;
  }
  .page-welcome .btn-pink { padding: 14px 32px; font-size: 16px; }

  .page-login .screen {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 100px) !important;
    min-height: calc(100dvh - 100px) !important;
    margin: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-login .sheet {
    width: min(440px, 100%);
    padding: clamp(28px, 3vw, 36px) clamp(22px, 2.5vw, 32px);
    border-radius: 28px;
    box-shadow: var(--shadow);
  }

  .page-register .screen {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .promo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 12px 24px 8px;
  }

  .promo .eyebrow {
    color: var(--pink);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 12px;
    margin-bottom: 10px;
  }

  .promo h2 {
    font-family: var(--display);
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .promo p { color: #4b5568; font-size: 16px; max-width: 420px; margin-bottom: 18px; }

  .promo ul { list-style: none; display: grid; gap: 10px; }
  .promo li {
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(28, 36, 48, 0.04);
  }

  .page-register .sheet {
    margin: 0;
    padding: clamp(22px, 3vw, 32px) clamp(18px, 2.5vw, 28px);
    border-radius: 28px;
    box-shadow: var(--shadow);
  }

  .page-success .screen,
  .page-instructions .screen,
  .page-results .screen {
    width: min(760px, calc(100% - 48px));
    padding: 12px 12px 28px;
  }

  .success h1, .instruct h1 { font-size: 34px; }
  .page-results .results h1 { font-size: clamp(32px, 3.6vw, 44px); }
  .results .pink-line, .results .together { max-width: 420px; font-size: 16px; }
  .desktop-cta { display: inline-flex; margin-top: 22px; }

  .page-quiz .screen {
    width: min(980px, calc(100% - 48px));
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 8px;
    padding: 22px;
    align-items: start;
  }

  .rail {
    display: block;
    background: #fff7fa;
    border-radius: 20px;
    padding: 18px;
  }

  .rail h2 { font-family: var(--display); font-size: 18px; margin-bottom: 6px; }
  .rail p { color: var(--muted); font-size: 13px; margin-bottom: 14px; }

  .dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .dots span {
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #f0d5e1;
    font-weight: 800;
    font-size: 13px;
    color: #8b93a7;
    cursor: pointer;
  }
  .dots span.done { background: #e7f8ef; color: var(--green); border-color: #b7ebc9; }
  .dots span.now { background: var(--pink); color: #fff; border-color: var(--pink); }

  .question { font-size: clamp(20px, 2vw, 26px); padding: 8px 8px 18px; text-align: left; }
  .option { font-size: 16px; min-height: 60px; border-radius: 14px; }
  .page-quiz .brands { grid-column: 1 / -1; }

  .page-board .screen {
    width: min(1180px, calc(100% - 48px));
    padding: 18px clamp(16px, 2vw, 28px) 32px;
  }

  .lb-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 18px;
  }

  .lb-title { font-size: clamp(24px, 2.4vw, 32px); margin: 0; }
  .cities {
    margin: 0;
    flex-wrap: wrap;
    overflow: visible;
  }
  .lb-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
    gap: 18px;
    align-items: start;
  }
  .lb-panel {
    padding: 22px 24px 20px;
    border-radius: 24px;
  }
  .city-heading { font-size: clamp(30px, 3vw, 40px); }
  .chart { padding: 22px; }
  .bar-row .meta { font-size: 15px; }
  .track { height: 12px; }
  .ranks { margin-top: 0; grid-template-columns: 1fr; gap: 12px; }
  .page-board .brands { justify-content: flex-end; padding-bottom: 0; }
}

@media (min-width: 1200px) {
  .page-quiz .screen { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (min-width: 1400px) {
  .screen { width: min(1200px, calc(100% - 64px)); }
  .page-board .screen { width: min(1280px, calc(100% - 64px)); }
}

/* Narrow desktop / laptop: stack leaderboard if needed */
@media (min-width: 1024px) and (max-width: 1100px) {
  .lb-grid { grid-template-columns: 1fr; }
  .lb-panel { padding: 20px; }
}

.flash {
  max-width: 430px;
  margin: 12px auto 0;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  box-shadow: var(--shadow);
}
.flash.error { color: #9f1239; background: #fff1f4; }
.flash.ok { color: #166534; background: #f0fdf4; }
.field .err { color: #e11d48; font-size: 12px; margin-top: 4px; }
.otp-input {
  width: 100%;
  border: 1.5px solid #d9deea;
  border-radius: 12px;
  text-align: center;
  font-size: 28px;
  letter-spacing: 0.4rem;
  font-weight: 800;
  padding: 12px;
}
.submit-panel {
  margin-top: 16px;
  border: 1.5px solid #e7ebf2;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.submit-panel p { font-size: 14px; color: #4b5568; margin-bottom: 10px; }
@media (min-width: 900px) {
  .flash { max-width: 760px; }
}
