/* ==========================================================================
   Weka Das — shared stylesheet
   Design reference: 1440px desktop frames. All desktop values are CSS px
   measured from the frames; mobile layouts start below 900px.
   ========================================================================== */

@font-face {
  font-family: "Titan One";
  src: url("../fonts/titan-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --green: #009251;
  --yellow: #f5c443;
  --pink: #f4a5c5;
  --grey: #d9d9d9;
  --navy: #262262;
  --orange: #f45211;
  --lemon: #fff200;
  --sky: #27aae1;
  --blue: #0071b7;
  --red: #ed1c24;
  --cream: #e8e6da;
  --eye: #edf5f7;
  --ink: #000;
  --line: #231f20;
  --link: #1b1a8f;

  --display: "Titan One", "Arial Black", system-ui, sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 82px;
  --stage-w: 1020px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: #fff;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

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

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

/* ---------- Display type ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: none;
  margin: 0;
}

/* Outlined display type (navy stroke under fill) */
.stroke {
  -webkit-text-stroke: 2px var(--navy);
  paint-order: stroke fill;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-block;
  font-family: var(--display);
  color: var(--ink);
  text-decoration: none;
  line-height: 0.82;
  font-size: 23px;
  transform: rotate(-10deg);
  transform-origin: left center;
  letter-spacing: -0.02em;
}
.logo span {
  display: block;
}
.logo span + span {
  padding-left: 0.62em;
}

/* ---------- Pill buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--pink);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 0 var(--navy);
}
.pill:active {
  transform: translateY(0);
  box-shadow: none;
}
.pill--sm {
  height: 27px;
  padding: 0 14px;
  font-size: 14px;
}
.pill--xs {
  height: 23px;
  padding: 0 12px;
  font-size: 12px;
}
.pill--white {
  background: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: #fff;
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Frame: logo at x=230, last button ends at x=1138 on a 1440 canvas */
  padding-left: max(20px, calc(50% - 490px));
  padding-right: max(20px, calc(50% - 418px));
}
.site-header .logo {
  margin-top: 2px;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.site-header__nav .pill:first-child {
  width: 186px;
}
.site-header__nav .pill:last-child {
  width: 90px;
  padding: 0;
}

/* ---------- Stage: fixed-proportion desktop canvas ---------- */
.stage {
  position: relative;
  width: var(--stage-w);
  margin: 0 auto;
}
.stage > * {
  position: absolute;
}

@media (max-width: 1100px) {
  .stage {
    zoom: 0.9;
  }
}
@media (max-width: 990px) {
  .stage {
    zoom: 0.84;
  }
}

/* ==========================================================================
   LANDING
   ========================================================================== */

.section {
  position: relative;
  overflow: hidden;
}
.section--green {
  background: var(--green);
}
.section--yellow {
  background: var(--yellow);
}
.section--pink {
  background: var(--pink);
}
.section--grey {
  background: var(--grey);
}

/* Hero */
.hero .stage {
  height: 849px;
}
.hero__face {
  left: 15px;
  top: 246px;
  width: 426px;
}
.hero__title {
  left: 538px;
  top: 200px;
  width: 560px;
  transform: rotate(-9deg);
  transform-origin: left top;
}
.hero__haba {
  display: block;
  color: var(--orange);
  font-size: 143px;
  line-height: 0.8;
  letter-spacing: -0.03em;
  -webkit-text-stroke: 2px var(--navy);
  paint-order: stroke fill;
  transform: scaleX(0.78);
  transform-origin: left;
  white-space: nowrap;
}
.hero__haba small {
  font-size: 0.5em;
  letter-spacing: -0.02em;
}
.hero__haba--1 {
  margin-left: 12px;
}
.hero__support {
  left: 486px;
  top: 490px;
  width: 600px;
  transform: rotate(-6deg);
  transform-origin: left top;
  color: var(--lemon);
  font-size: 55px;
  line-height: 0.9;
  -webkit-text-stroke: 1.5px var(--navy);
  paint-order: stroke fill;
}
.hero__support span {
  display: block;
}
.hero__support span + span {
  padding-left: 100px;
}
.hero__support .hero__your {
  display: inline;
  padding: 0;
}
.hero__cta {
  left: 590px;
  top: 668px;
  display: flex;
  gap: 28px;
}
.hero__cta .pill:first-child {
  width: 227px;
}
.hero__cta .pill:last-child {
  width: 110px;
  padding: 0;
}

/* Outline marquee */
.marquee {
  left: 0;
  right: 0;
  top: 746px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee__item {
  font-family: var(--body);
  font-weight: 600;
  font-size: 62px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(237, 245, 247, 0.55);
  padding-right: 0.35em;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* How it works (yellow) */
.how .stage {
  height: 931px;
}
.how__title {
  left: 0;
  top: 335px;
  width: 600px;
  color: var(--sky);
  font-size: 86px;
  line-height: 0.86;
  transform: rotate(-10deg);
  transform-origin: left top;
  -webkit-text-stroke: 2px var(--navy);
  paint-order: stroke fill;
}
.how__title span {
  display: block;
  white-space: nowrap;
}
.how__title span + span {
  padding-left: 170px;
}
.how__title .gap {
  display: inline-block;
  width: 0.45em;
}
.how__text {
  left: 141px;
  top: 510px;
  width: 430px;
}
.how__buddy {
  left: 598px;
  top: 227px;
  width: 383px;
}

.lede {
  margin: 0;
  font-size: 24px;
  line-height: 1.24;
  font-weight: 400;
}

.steps {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.how__steps {
  left: 139px;
  top: 661px;
  gap: 35px;
}
.step {
  flex: none;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1.05;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.step:hover {
  transform: scale(1.06) rotate(-4deg);
}
.step small {
  display: block;
  font-size: 0.5em;
  line-height: 1;
}
.step--blue {
  width: 148px;
  height: 148px;
  background: var(--sky);
  font-size: 26px;
}

/* Creators (pink) */
.creators .stage {
  height: 931px;
}
.creators__balls {
  left: 52px;
  top: 143px;
  width: 290px;
}
.creators__title {
  left: 369px;
  top: 350px;
  color: var(--cream);
  font-size: 84px;
  line-height: 1;
  transform: rotate(-10deg);
  transform-origin: left top;
  -webkit-text-stroke: 2px var(--navy);
  paint-order: stroke fill;
  white-space: nowrap;
  word-spacing: 0.08em;
}
.creators__text {
  left: 462px;
  top: 523px;
  width: 390px;
}
.creators__steps {
  left: 215px;
  top: 694px;
  gap: 35px;
}

/* Footer */
.site-footer .stage {
  height: 487px;
}
.footer__contact {
  left: 27px;
  top: 166px;
  font-size: 26px;
  line-height: 1.72;
}
.footer__contact a,
.footer__terms {
  text-decoration: none;
}
.footer__contact a:hover,
.footer__terms:hover {
  text-decoration: underline;
}
.socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.socials a {
  display: block;
  width: 26px;
  height: 26px;
  transition: transform 0.15s ease;
}
.socials a:hover {
  transform: translateY(-2px);
}
.footer__terms {
  left: 22px;
  top: 348px;
  font-size: 24px;
}
.footer__logo {
  left: 770px;
  top: 118px;
}
.footer__logo .logo {
  font-size: 92px;
}

/* ==========================================================================
   AUTH PAGES (sign up / log in / forgot password)
   ========================================================================== */
.auth-page {
  background: var(--pink);
  min-height: 100vh;
}
.auth {
  padding: 140px 20px 120px;
}
.card {
  position: relative;
  width: 609px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--green);
  border-radius: 33px;
  color: #fff;
}
.card--signup {
  min-height: 945px;
  padding: 53px 0 64px;
}
.card--login {
  min-height: 752px;
  padding: 64px 0 100px;
}
.card--forgot {
  min-height: 581px;
  padding: 95px 0 70px;
}

.card__head {
  display: flex;
  align-items: flex-start;
}
.card--signup .card__head {
  padding-left: 64px;
}
.card--signup .card__buddy {
  width: 168px;
  flex: none;
}
.card--signup .card__title {
  margin: 46px 0 0 -4px;
  font-size: 39px;
  line-height: 1;
  color: var(--ink);
  transform: rotate(-4deg);
  transform-origin: left top;
  white-space: nowrap;
}
.card--signup .card__title span {
  display: block;
}
.card--signup .card__title span + span {
  padding-left: 37px;
}

.card--login .card__head {
  padding-left: 122px;
}
.card--login .card__buddy {
  width: 185px;
  flex: none;
}
.card--login .card__title {
  margin: 34px 0 0 10px;
  font-size: 34px;
  line-height: 0.98;
  color: var(--ink);
  transform: rotate(6deg);
  transform-origin: left top;
  white-space: nowrap;
}
.card--login .card__title span {
  display: block;
}
.card--login .card__title span:nth-child(2) {
  padding-left: 38px;
}
.card--login .card__title span:nth-child(3) {
  margin-left: -12px;
}

.card--forgot .card__head {
  padding-left: 121px;
}
.card--forgot .card__buddy {
  width: 140px;
  flex: none;
}
.card--forgot .card__intro {
  margin: 22px 0 0 30px;
}
.card--forgot .card__title {
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  transform: rotate(-4deg);
  transform-origin: left top;
  white-space: nowrap;
}
.card--forgot .card__title span {
  display: block;
}
.card--forgot .card__title span + span {
  padding-left: 18px;
}
.card__sub {
  margin: 26px 0 0 4px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 170px;
}

/* Form */
.form {
  width: 388px;
  max-width: 100%;
  margin: 0 auto;
}
.card--signup .form {
  margin-top: 70px;
}
.card--login .form {
  margin-top: 22px;
}
.card--forgot .form {
  margin-top: 104px;
}

.field {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 50px;
  border-bottom: 1px solid #fff;
}
.field + .field {
  margin-top: 37px;
}
.card--signup .field + .field {
  margin-top: 38px;
}
.card--signup .field--password {
  margin-top: 24px !important;
}
.field__prefix {
  flex: none;
  padding: 0 0 12px 9px;
  font-size: 13px;
  white-space: nowrap;
}
.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 18px 9px 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--body);
  font-size: 13px;
  outline: none;
  border-radius: 0;
}
.field--username input {
  padding-left: 20px;
}
.field input::placeholder {
  color: #fff;
  opacity: 1;
}
.field:focus-within {
  border-bottom-width: 2px;
}
.field.is-invalid {
  border-bottom-color: var(--lemon);
}
.field__error {
  position: absolute;
  left: 9px;
  top: calc(100% + 4px);
  font-size: 11px;
  color: var(--lemon);
}
.field__toggle {
  flex: none;
  align-self: center;
  margin: 10px 4px 0 0;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 11px;
  opacity: 0.8;
}
.field__toggle:hover {
  opacity: 1;
  text-decoration: underline;
}

.rules {
  list-style: none;
  margin: 14px 0 0;
  padding: 0 0 0 48px;
  font-size: 10px;
  line-height: 1.55;
}
.rules li {
  position: relative;
  transition: opacity 0.2s ease;
}
.rules li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid #fff;
  transition: background 0.2s ease;
}
.rules li.is-met::before {
  background: #fff;
}
.rules li.is-met {
  opacity: 0.6;
}

.agree {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 0 9px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.agree input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid #fff;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
}
.agree input::after {
  content: "";
  width: 8px;
  height: 4px;
  border: 2px solid var(--green);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}
.agree input:checked {
  background: #fff;
}
.agree input:checked::after {
  opacity: 1;
}
.agree.is-invalid input {
  border-color: var(--lemon);
  box-shadow: 0 0 0 2px rgba(255, 242, 0, 0.35);
}
.agree a {
  color: var(--link);
  text-decoration: none;
}
.agree a:hover {
  text-decoration: underline;
}

.forgot-link {
  display: block;
  width: max-content;
  margin: 13px 20px 0 auto;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
}
.forgot-link:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.actions .pill--create {
  width: 152px;
  padding: 0;
}
.actions .pill--login {
  width: 64px;
  padding: 0;
}
.or {
  margin: 12px 0 2px;
  font-size: 10px;
}
.muted-q {
  margin: 0;
  font-size: 10px;
}

.google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 152px;
  height: 28px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 9px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.google:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 0 var(--navy);
}
.google__word {
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.g-b { color: #4285f4; }
.g-r { color: #ea4335; }
.g-y { color: #fbbc05; }
.g-g { color: #34a853; }

.card--signup .actions {
  margin-top: 28px;
}
.card--signup .actions .muted-q {
  margin-top: 30px;
}
.card--signup .actions .pill--login {
  margin-top: 13px;
}

.card--login .actions {
  margin-top: 64px;
}
.card--login .actions .muted-q {
  margin: 23px 0 17px;
}

.card--forgot .actions {
  margin-top: 23px;
}
.pill--reset {
  width: 191px;
  padding: 0;
}
.back-to {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 44px 40px 0 0;
  font-size: 13px;
}

.form-note {
  min-height: 0;
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--lemon);
}
.form-note.is-success {
  color: #fff;
}

.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.dash {
  width: 1052px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 144px 0 160px;
}
.dash__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.dash__top .logo {
  font-size: 22px;
}
.dash__title {
  font-size: 58px;
  line-height: 0.92;
  margin: 0 0 44px 267px;
  letter-spacing: -0.02em;
}
.dash__title span {
  display: block;
}
.dash__title span + span {
  padding-left: 72px;
}
.dash__welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-left: 26px;
}
.dash__hello {
  margin: 0;
  font-size: 20px;
}
.dash__url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 20px;
  font-weight: 600;
}
.chips {
  display: flex;
  gap: 68px;
  margin-top: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--grey);
  font-size: 13px;
  color: #000;
  text-decoration: none;
  border: 0;
  transition: background 0.15s ease;
}
.chip:hover {
  background: #c8c8c8;
}

.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 4px;
}
.copy-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}
.copy-btn svg {
  width: 11px;
  height: 13px;
}
.copy-btn--lg {
  width: 28px;
  height: 28px;
}
.copy-btn--lg svg {
  width: 15px;
  height: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
  margin-top: 22px;
}
.stat {
  height: 118px;
  padding: 20px 26px;
}
.stat:nth-child(1) {
  background: var(--pink);
}
.stat:nth-child(2) {
  background: var(--yellow);
  padding-left: 40px;
}
.stat:nth-child(3) {
  background: var(--green);
  padding-left: 40px;
}
.stat__label {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}
.stat__value {
  margin: 0;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__note {
  margin: 4px 0 0;
  font-size: 10.5px;
}

.withdraw {
  display: grid;
  grid-template-columns: 268px 1fr;
  align-items: start;
  margin-top: 124px;
  padding-left: 128px;
}
.withdraw__balls {
  width: 216px;
}
.withdraw__title {
  margin: 10px 0 34px;
  font-size: 33px;
  font-weight: 600;
}
.methods {
  list-style: none;
  margin: 0;
  padding: 0 0 0 32px;
  display: grid;
  gap: 50px;
}
.method {
  display: flex;
  align-items: center;
  gap: 13px;
}
.method__btn {
  flex: none;
  width: 163px;
  height: 62px;
  border: 0;
  font-family: var(--body);
  font-weight: 600;
  font-size: 30px;
  color: #000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.method__btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #000;
}
.method__btn--mpesa {
  background: var(--green);
}
.method__btn--card {
  background: var(--yellow);
}
.method__info {
  font-size: 20px;
}

.dash__bottom {
  display: grid;
  grid-template-columns: 434px 548px;
  justify-content: space-between;
  margin-top: 108px;
}
.dash__left {
  display: grid;
  gap: 34px;
  align-content: start;
}
.tile {
  background: var(--yellow);
  padding: 34px 26px 26px;
}
.tile__label {
  margin: 0;
  font-size: 20px;
}
.tile__link {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 2px;
  font-size: 27px;
  font-weight: 600;
  word-break: break-all;
}
.tile--link {
  height: 123px;
  padding-top: 38px;
}
.tile--qr {
  height: 453px;
  padding-top: 38px;
  display: flex;
  flex-direction: column;
}
.qr {
  width: 234px;
  margin: 46px auto 0;
}
.qr svg {
  width: 100%;
  height: auto;
}
.qr-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  font-size: 20px;
  color: #000;
  align-self: flex-start;
}
.qr-download svg {
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease;
}
.qr-download:hover svg {
  transform: translateY(3px);
}
.supporters {
  background: var(--green);
  padding: 38px 40px;
  min-height: 608px;
}
.supporters__title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 400;
}
.supporters__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.supporter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 14px;
}
.supporter__avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  border: 1.5px solid var(--navy);
}
.supporter__meta {
  flex: 1;
  min-width: 0;
}
.supporter__name {
  font-weight: 600;
}
.supporter__msg {
  font-size: 12px;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.supporter__amt {
  font-weight: 600;
}
.supporters__empty {
  margin: 40px 0 0;
  font-size: 15px;
  opacity: 0.75;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal__box {
  width: 420px;
  max-width: 100%;
  background: var(--green);
  color: #fff;
  border-radius: 28px;
  padding: 32px 30px 28px;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}
.modal.is-open .modal__box {
  transform: none;
}
.modal__title {
  font-size: 30px;
  color: #000;
  margin: 0 0 6px;
}
.modal__sub {
  margin: 0 0 18px;
  font-size: 13px;
}
.modal .actions {
  flex-direction: row;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}
.modal .pill {
  height: 34px;
  font-size: 14px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  transform: translate(-50%, 30px);
  padding: 10px 20px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--pink);
  color: #000;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Character animation ---------- */
.bob {
  animation: bob 3.2s ease-in-out infinite;
  transform-origin: 50% 80%;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-10px) rotate(-3deg);
  }
}
.pupil {
  transition: transform 0.12s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE — below 900px the fixed stage becomes a normal flow layout
   ========================================================================== */
@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .stage {
    zoom: 1;
    width: auto;
    height: auto !important;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .stage > * {
    position: static;
  }

  .site-header .logo {
    font-size: 18px;
  }
  .site-header__nav {
    gap: 10px;
  }
  .site-header__nav .pill {
    height: 32px;
    font-size: 13px;
    padding: 0 12px;
  }
  .site-header__nav .pill:first-child {
    width: auto;
  }
  .site-header__nav .pill:last-child {
    width: auto;
    padding: 0 12px;
  }

  /* Hero */
  .hero .stage {
    padding-top: 56px;
    padding-bottom: 36px;
  }
  .hero__face {
    width: min(300px, 72vw);
  }
  .hero__title {
    width: auto;
    margin-top: 40px;
    transform: rotate(-7deg);
    transform-origin: center;
  }
  .hero__haba {
    font-size: clamp(64px, 20vw, 120px);
    transform-origin: center;
  }
  .hero__haba--1 {
    margin-left: 0;
  }
  .hero__support {
    width: auto;
    margin-top: 28px;
    font-size: clamp(28px, 8.4vw, 48px);
    transform: rotate(-5deg);
    transform-origin: center;
  }
  .hero__support span + span {
    padding-left: 0.9em;
  }
  .hero__cta {
    margin-top: 44px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .hero__cta .pill:first-child,
  .hero__cta .pill:last-child {
    width: auto;
    padding: 0 20px;
  }
  .marquee {
    position: relative !important;
    top: auto;
    width: calc(100% + 40px);
    margin-top: 36px;
  }
  .marquee__item {
    font-size: clamp(38px, 11vw, 62px);
  }

  /* How */
  .how .stage {
    padding-top: 64px;
    padding-bottom: 72px;
  }
  .how__title {
    width: auto;
    order: 1;
    font-size: clamp(46px, 13vw, 86px);
    transform: rotate(-8deg);
    transform-origin: center;
  }
  .how__title span + span {
    padding-left: 1.2em;
  }
  .how__buddy {
    order: 0;
    width: min(260px, 62vw);
    margin-bottom: 36px;
  }
  .how__text {
    order: 2;
    width: auto;
    max-width: 440px;
    margin-top: 44px;
  }
  .how__steps {
    order: 3;
  }
  .lede {
    font-size: clamp(17px, 4.6vw, 22px);
  }

  .steps {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 14px !important;
    margin-top: 40px;
    max-width: 380px;
  }
  .step {
    width: clamp(132px, 38vw, 160px);
    height: clamp(132px, 38vw, 160px);
    font-size: clamp(15px, 4.4vw, 21px);
    white-space: normal;
    padding: 0 4px;
  }
  .step--blue {
    width: clamp(128px, 36vw, 148px);
    height: clamp(128px, 36vw, 148px);
  }

  /* Creators */
  .creators .stage {
    padding-top: 64px;
    padding-bottom: 72px;
  }
  .creators__balls {
    width: min(190px, 48vw);
  }
  .creators__title {
    margin-top: 32px;
    font-size: clamp(42px, 12.5vw, 84px);
    transform: rotate(-7deg);
    transform-origin: center;
    white-space: normal;
  }
  .creators__text {
    width: auto;
    max-width: 400px;
    margin-top: 32px;
  }

  /* Footer */
  .site-footer .stage {
    padding-top: 56px;
    padding-bottom: 48px;
    align-items: flex-start;
    text-align: left;
  }
  .footer__logo {
    order: -1;
    margin-bottom: 36px;
  }
  .footer__logo .logo {
    font-size: 54px;
  }
  .footer__contact,
  .footer__terms {
    font-size: 18px;
  }
  .footer__terms {
    margin-top: 28px;
  }

  /* Auth */
  .auth {
    padding: 36px 16px 56px;
  }
  .card {
    border-radius: 28px;
    min-height: 0 !important;
    padding: 40px 24px 48px !important;
  }
  .card__head {
    padding-left: 0 !important;
    justify-content: center;
  }
  .card--signup .card__buddy {
    width: clamp(88px, 26vw, 140px);
  }
  .card--signup .card__title {
    font-size: clamp(24px, 7vw, 44px);
    margin: 22px 0 0 8px;
  }
  .card--signup .card__title span + span {
    padding-left: 0.6em;
  }
  .card--login .card__buddy {
    width: clamp(110px, 32vw, 180px);
  }
  .card--login .card__title {
    font-size: clamp(24px, 7.4vw, 40px);
    margin-top: 22px;
  }
  .card--forgot .card__buddy {
    width: clamp(96px, 28vw, 140px);
  }
  .card--forgot .card__intro {
    margin-left: 16px;
  }
  .card--forgot .card__title {
    font-size: clamp(22px, 6.4vw, 30px);
  }
  .card--signup .form,
  .card--login .form {
    margin-top: 40px;
  }
  .card--forgot .form {
    margin-top: 56px;
  }
  .field input,
  .field__prefix {
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  .field__prefix {
    font-size: 14px;
  }
  .rules {
    padding-left: 24px;
    font-size: 11px;
  }
  .agree {
    align-items: flex-start;
    font-size: 12px;
    margin-left: 0;
  }
  .back-to {
    justify-content: center;
    margin-right: 0;
  }

  /* Dashboard */
  .dash {
    max-width: calc(100% - 32px);
    padding: 24px 0 72px;
  }
  .dash__title {
    margin: 0 0 32px;
    font-size: clamp(36px, 11vw, 58px);
    text-align: center;
  }
  .dash__title span + span {
    padding-left: 1.1em;
  }
  .dash__welcome {
    flex-direction: column;
    gap: 14px;
    padding-left: 0;
  }
  .chips {
    gap: 10px;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
  }
  .stat,
  .stat:nth-child(n) {
    height: auto;
    padding: 16px 20px 18px;
  }
  .withdraw {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: 56px;
    padding-left: 0;
  }
  .withdraw__balls {
    width: 120px;
    margin-bottom: 28px;
  }
  .withdraw__main {
    width: 100%;
  }
  .withdraw__title {
    text-align: center;
  }
  .methods {
    padding-left: 0;
    gap: 16px;
  }
  .method {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    text-align: center;
  }
  .method__btn {
    width: 100%;
    height: 56px;
    font-size: 26px;
  }
  .method__info {
    font-size: 14px;
  }
  .dash__bottom {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 56px;
  }
  .dash__left {
    gap: 20px;
  }
  .tile--link,
  .tile--qr {
    height: auto;
    padding: 24px 20px;
  }
  .tile__link {
    font-size: clamp(18px, 5.6vw, 25px);
    justify-content: space-between;
  }
  .qr {
    margin: 26px auto 26px;
    width: 190px;
  }
  .supporters {
    min-height: 320px;
    padding: 26px 20px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .dash {
    zoom: 0.88;
    max-width: none;
  }
}
@media (min-width: 901px) and (max-width: 980px) {
  .dash {
    zoom: 0.8;
  }
}

@media (max-width: 380px) {
  .site-header__nav .pill {
    font-size: 11px;
    padding: 0 9px !important;
    height: 30px;
  }
  .site-header .logo {
    font-size: 15px;
  }
}
