/* ==========================================================================
   Ghahreman — layout, components, sections. Depends on css/tokens.css.
   Dark slate "stage" throughout (the app's BaseScreenContainer backdrop),
   lime-mint for actions, gold for prizes, sky blue for secondary. Buttons
   copy the app's BaseButton: bright top inset, dark bottom edge, hard border.
   ========================================================================== */

body {
  /* the app's screen backdrop, plus two soft brand pools so the page has depth */
  background:
    radial-gradient(70% 40% at 82% 0%, rgba(248 167 52 / 0.1), transparent 62%),
    radial-gradient(60% 45% at 10% 88%, rgba(110 206 58 / 0.09), transparent 65%),
    var(--grad-backdrop);
  background-attachment: fixed;
}

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }

.skip-link {
  position: fixed; inset-inline-start: 1rem; top: -100px; z-index: 200;
  background: var(--mint-400); color: var(--on-mint); padding: 0.6rem 1rem;
  border-radius: var(--r-sm); font-weight: 700; transition: top var(--dur-1);
}
.skip-link:focus { top: 1rem; }

/* ---- Text accents -------------------------------------------------------- */
.text-brand, .text-gold {
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.text-brand { background-image: var(--grad-text-mint); }
.text-gold  { background-image: var(--grad-text-gold); }

.kicker {
  display: inline-block; font-weight: 700; font-size: var(--fs-sm);
  color: var(--brand-bright); margin-bottom: 0.7rem;
}

/* ---- Buttons — the app's BaseButton, in CSS ------------------------------
   Mirrors apps/mobile/src/components/BaseButton.tsx: gradient face, 1px
   hairline, a bright top inset + dark bottom inset (the "sticker" 3D), and a
   white label outlined + drop-shadowed in gray-700. Press = the face sinks by
   its bottom-inset depth while both insets collapse to 0 (no hard ledge —
   the app has none). Depths follow the kit's sizes: sm/md 3px, lg 4px. ---- */
.btn {
  --btn-inset-top: var(--gray-200);
  --btn-inset-bottom: var(--gray-600);
  --btn-edge: var(--gray-800);
  --btn-depth: 3px;       /* bottom inset = press travel */
  --btn-light: 3px;       /* top inset */
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: var(--r-pill);
  border: 1px solid var(--btn-edge);
  font-weight: 700; font-size: 1rem; color: #fff; background: var(--grad-gray);
  /* Figma: gray-700 1px outline + (-1,1) gray-700 drop on the label. paint-order keeps the
     stroke behind the fill so the 2px stroke reads as a 1px outer outline. */
  paint-order: stroke fill;
  -webkit-text-stroke: 2px var(--gray-700);
  text-shadow: -1px 1px 0 var(--gray-700);
  /* Declared here (not as a :root token): a custom property is substituted where it is
     declared, so a root-level var() over the per-variant --btn-* would resolve to nothing. */
  box-shadow:
    inset 0 var(--btn-light) 0 var(--btn-inset-top),
    inset 0 calc(-1 * var(--btn-depth)) 0 var(--btn-inset-bottom),
    0 10px 20px -6px rgba(0 0 0 / 0.55);
  transition: transform var(--dur-1) var(--ease-spring), box-shadow var(--dur-1), filter var(--dur-1);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active {
  transform: translateY(var(--btn-depth)) scale(1.012, 0.96);
  box-shadow:
    inset 0 0 0 var(--btn-inset-top),
    inset 0 0 0 var(--btn-inset-bottom),
    0 4px 10px -4px rgba(0 0 0 / 0.5);
}
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.92rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.08rem; --btn-depth: 4px; }

/* Figma Green — mint gradient, mint-900 hairline, mint-200 / mint-700 insets. */
.btn--primary {
  --btn-inset-top: var(--mint-200);
  --btn-inset-bottom: var(--mint-700);
  --btn-edge: var(--mint-900);
  background: var(--grad-mint);
}
.btn--primary:hover { filter: saturate(1.08) brightness(1.03); }

/* Figma Yellow — gold gradient, orange-900 hairline, orange-100 / orange-600 insets. */
.btn--gold {
  --btn-inset-top: var(--gold-100);
  --btn-inset-bottom: var(--gold-600);
  --btn-edge: var(--gold-900);
  background: var(--grad-gold);
}

/* Figma Blue — sky gradient, blue-sky-700 hairline, blue-sky-200 / blue-sky-600 insets. */
.btn--ghost {
  --btn-inset-top: var(--sky-200);
  --btn-inset-bottom: var(--sky-600);
  --btn-edge: var(--sky-700);
  background: var(--grad-sky);
}
.btn--ghost:hover { filter: saturate(1.08) brightness(1.05); }

.store-btn { flex-direction: column; line-height: 1.2; padding-block: 0.7rem; align-items: center; }
.store-btn__top { font-size: 0.72rem; font-weight: 400; -webkit-text-stroke-width: 1.2px; opacity: 0.9; }
.store-btn__name { font-size: 1.12rem; font-weight: 700; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: linear-gradient(rgba(26 27 40 / 0.78), rgba(26 27 40 / 0.4));
  border-bottom: 1px solid transparent;
  transition: background var(--dur-2), border-color var(--dur-2);
}
.site-header.scrolled { background: rgba(26 27 40 / 0.94); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 1.2rem; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.brand__mark { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--sh-sm); }
/* the 3D «قهرمان» lockup (gamepad art baked in) — 56px tall in the 72px header, 3x asset */
.brand__logo { height: 56px; width: auto; filter: drop-shadow(0 3px 5px rgba(0 0 0 / 0.45)); }
.site-footer .brand__logo { height: 48px; }

.nav { display: flex; gap: 1.6rem; margin-inline-start: auto; }
.nav a { color: var(--text-muted); font-weight: 400; position: relative; transition: color var(--dur-1); }
.nav a::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -6px; height: 2px;
  background: var(--grad-mint); border-radius: 2px; transform: scaleX(0); transition: transform var(--dur-2) var(--ease-out);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { margin-inline-start: 0.4rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-inline-start: auto; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--text); border-radius: 2px; transition: transform var(--dur-2), opacity var(--dur-1); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 0.4rem; padding: 1rem var(--gutter) 1.4rem; border-bottom: 1px solid var(--border); background: rgba(26 27 40 / 0.97); }
.mobile-nav a:not(.btn) { padding: 0.7rem 0.4rem; color: var(--text-muted); border-radius: var(--r-sm); }
.mobile-nav a:not(.btn):hover { color: var(--text); background: var(--surface); }
.mobile-nav .btn { margin-top: 0.5rem; }

/* ---- Section shell ------------------------------------------------------- */
.section { padding-block: var(--section-y); position: relative; }
.section--tint {
  background: linear-gradient(180deg, rgba(38 40 59 / 0.7), rgba(26 27 40 / 0) 45%, rgba(38 40 59 / 0.6));
  border-block: 1px solid var(--border);
}
.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(2rem, 1rem + 3vw, 3.4rem); }
.section-title { font-size: var(--fs-h2); font-weight: 700; }
.section-sub { color: var(--text-muted); font-size: var(--fs-lead); margin-top: 0.8rem; }

/* free-standing 3D art (transparent PNG/WebP from the app) */
.section-art { width: 96px; height: auto; margin-bottom: 1rem; filter: drop-shadow(0 12px 18px rgba(0 0 0 / 0.5)); }

/* ---- Trust (company + proof tiles) --------------------------------------- */
.trust__statement { max-width: 640px; margin-inline: auto; }
.trust__statement b { color: var(--text); font-weight: 700; }
.trust__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  max-width: 980px; margin-inline: auto;
}
/* Payout stat tiles are parked (commented out in index.html) — centre the lone e-namad tile
   meanwhile. Drop this modifier from the markup when the stats come back. */
.trust__grid--solo { grid-template-columns: minmax(0, 320px); justify-content: center; }
.trust__tile {
  display: grid; justify-items: center; align-content: center; gap: 0.35rem; text-align: center;
  padding: 1.8rem 1.2rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255 255 255 / 0.06), var(--sh-md);
}
.trust__num {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.trust__label { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.trust__sub { color: var(--text-faint); font-size: var(--fs-sm); }
/* The seal is a remote image of unknown intrinsic size — reserve a box so it doesn't shift layout. */
.trust__enamad { display: block; margin-bottom: 0.4rem; border-radius: var(--r-md); }
.trust__enamad img { width: 120px; height: auto; min-height: 120px; object-fit: contain; }

 -------------------------------------- */
.legal { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.legal__wrap { max-width: 820px; }
.legal__back { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-muted); margin-bottom: 1.4rem; }
.legal__back:hover { color: var(--text); }
.legal h1 { font-size: var(--fs-h1); margin-bottom: 0.4rem; }
.legal__updated { color: var(--text-faint); font-size: var(--fs-sm); margin-bottom: 1.6rem; }
.legal__note { padding: 1rem 1.2rem; border: 1px solid var(--border); border-inline-start: 3px solid var(--gold-500); border-radius: var(--r-md); background: var(--surface); color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }
.legal section { margin-bottom: 1.8rem; }
.legal h2 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.legal p { color: var(--text-muted); margin-bottom: 0.7rem; }
.legal__list { display: grid; gap: 0.5rem; margin: 0.3rem 0 0.8rem; }
.legal__list li { position: relative; padding-inline-start: 1.25rem; color: var(--text-muted); }
.legal__list li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--mint-400); }
.legal__link { color: var(--brand-bright); text-decoration: underline; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(2.5rem, 1rem + 6vw, 5rem); padding-bottom: var(--section-y); overflow: hidden; }
.hero__glow { position: absolute; inset: 0; background: var(--glow-hero); pointer-events: none; z-index: 0; }
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 0.6fr; align-items: center; gap: clamp(1.5rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 0.9rem; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: var(--fs-sm); color: var(--text-muted);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-400); box-shadow: 0 0 0 4px rgba(158 252 109 / 0.2); animation: pulse 2.2s var(--ease-out) infinite; }

.hero__title { font-size: var(--fs-display); font-weight: 700; margin-top: 1rem; }
/* Each half of the headline starts its own line; long lines wrap balanced (nowrap here would
   stretch the copy column and squeeze the art column to zero). */
.hero__title-line { display: block; text-wrap: balance; }
.hero__lead { color: var(--text-muted); font-size: var(--fs-lead); margin-top: 1.2rem; max-width: 42ch; }
.hero__lead b { color: var(--text); font-weight: 700; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.6rem; color: var(--text-faint); font-size: var(--fs-sm); }
.hero__trust li { position: relative; padding-inline-start: 1.1rem; }
.hero__trust li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--mint-400); font-weight: 700; }

/* hero art — the brand lockup (mascot + wordmark) straight from the app */
.hero__art { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero__art-halo {
  position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(248 167 52 / 0.3), rgba(110 206 58 / 0.1) 55%, transparent 74%);
  filter: blur(10px);
}
.hero__hero-img { position: relative; width: min(92%, 340px); height: auto; filter: drop-shadow(0 30px 44px rgba(0 0 0 / 0.65)); }

.coin, .spark { position: absolute; z-index: 2; }
.coin {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-400), var(--gold-600));
  box-shadow: inset 0 0 0 4px rgba(255 255 255 / 0.28), var(--glow-gold);
}
.coin--1 { inset-block-start: 10%; inset-inline-end: 6%; animation: float 5s var(--ease-out) infinite; }
.coin--2 { width: 22px; height: 22px; inset-block-end: 14%; inset-inline-start: 4%; animation: float 6.5s var(--ease-out) infinite reverse; }
.spark { width: 18px; height: 18px; background: var(--gold-400); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.spark--1 { inset-block-start: 26%; inset-inline-start: 2%; animation: spin 7s linear infinite; }
.spark--2 { width: 12px; inset-block-end: 32%; inset-inline-end: 3%; background: var(--mint-400); animation: spin 9s linear infinite reverse; }

.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.7rem; border-radius: var(--r-pill);
  background: rgba(26 27 40 / 0.82); border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px); font-size: 0.74rem; color: var(--text-muted);
  box-shadow: var(--sh-md);
}
.chip b { color: var(--text); font-weight: 700; }
.chip--score { inset-block-start: 16%; inset-inline-start: -4%; animation: float 6s var(--ease-out) infinite; }
.chip--rank { inset-block-end: 14%; inset-inline-end: -2%; animation: float 7.5s var(--ease-out) infinite reverse; }
.chip--rank b { color: var(--gold-400); }

/* fact band */
.factband {
  /* auto tracks: a nowrap caption keeps its column wide enough; spare width is shared equally */
  display: grid; grid-template-columns: repeat(4, auto); gap: 1rem;
  margin-top: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  padding: 1.4rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(8px);
}
.factband li { text-align: center; display: grid; gap: 0.2rem; }
.factband b { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); font-weight: 700; color: var(--brand-bright); }
.factband li > span { color: var(--text-faint); font-size: var(--fs-sm); }
.factband__one-line { white-space: nowrap; }
.factband li + li { border-inline-start: 1px solid var(--border); }

/* ---- How it works (steps) ------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; list-style: none; padding: 0; margin: 0; }
.step {
  position: relative; padding: 2rem 1.4rem 1.6rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2), background var(--dur-2);
}
.step:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.step__num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  font-weight: 700; font-size: 1.3rem; color: var(--on-mint); background: var(--grad-mint);
  border: 2px solid var(--mint-800);
  box-shadow: inset 0 2px 0 var(--mint-100), 0 4px 0 var(--mint-800);
  margin-bottom: 1.1rem;
}
.step h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.98rem; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 3.2rem; inset-inline-start: -0.8rem; width: 1.6rem; height: 2px;
  background: linear-gradient(90deg, var(--mint-400), transparent);
  opacity: 0.4;
}

/* ---- Everyone wins: yesterday's board + the split rule ------------------- */
.winners__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }

.lb {
  border-radius: var(--r-lg); border: 1px solid var(--border-strong);
  background: var(--grad-sheet); box-shadow: inset 0 1px 0 rgba(255 255 255 / 0.08), var(--sh-lg);
  padding: 1rem 1rem 1.1rem; overflow: hidden;
}
.lb__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.2rem 0.3rem 0.9rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.lb__title { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 1.1rem; }
.lb__title img { width: 28px; height: 28px; filter: drop-shadow(0 3px 4px rgba(0 0 0 / 0.45)); }
.lb__tag { display: inline-block; vertical-align: middle; margin-inline-start: 0.35rem; padding: 0.1rem 0.5rem; border-radius: var(--r-pill); font-size: 0.68rem; font-weight: 700; color: var(--gray-100); background: rgba(255 255 255 / 0.08); border: 1px dashed var(--gray-300); }
.lb__pool { color: var(--text-faint); font-size: var(--fs-sm); }
.lb__pool b { color: var(--gold-400); font-weight: 700; }

.lb__rows { display: grid; gap: 0.35rem; margin-top: 0.8rem; }
.lb__row {
  display: grid; grid-template-columns: 1.9rem 40px 1fr auto auto; align-items: center; gap: 0.7rem;
  padding: 0.55rem 0.7rem; border-radius: var(--r-md);
  background: rgba(255 255 255 / 0.04); border: 1px solid transparent;
}
.lb__row--top { background: rgba(255 255 255 / 0.07); border-color: var(--border); }
.lb__row:first-child { background: linear-gradient(90deg, rgba(248 167 52 / 0.22), rgba(248 167 52 / 0.06)); border-color: rgba(248 167 52 / 0.45); }
.lb__row--last { background: linear-gradient(90deg, rgba(158 252 109 / 0.16), rgba(158 252 109 / 0.04)); border-color: rgba(158 252 109 / 0.4); }
.lb__rank { font-weight: 700; color: var(--text-faint); text-align: center; font-variant-numeric: tabular-nums; }
.lb__row:first-child .lb__rank { color: var(--gold-400); }
.lb__av { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--gray-700); }
.lb__row:first-child .lb__av { border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(255 205 25 / 0.25); }
/* masked phone numbers (۰۹۱۲***۴۴۷۱) — the app shows players by number, not username */
.lb__name { direction: ltr; unicode-bidi: isolate; text-align: right; /* RTL row: right = beside the avatar */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.lb__row:first-child .lb__name { color: var(--gold-300); }
.lb__score { color: var(--text-faint); font-size: 0.85rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb__score small, .lb__prize small { font-size: 0.72em; font-weight: 400; color: var(--text-faint); }
.lb__prize { font-weight: 700; color: var(--gold-300); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 6.5rem; text-align: end; }
.lb__row--last .lb__prize { color: var(--mint-300); }
.lb__gap { display: flex; justify-content: center; gap: 0.5rem; padding: 0.35rem 0; }
.lb__gap span { width: 6px; height: 6px; border-radius: 50%; background: var(--gray-400); }
.lb__foot { margin-top: 0.9rem; text-align: center; color: var(--text-muted); font-size: var(--fs-sm); }

.winners__points { display: grid; gap: 1rem; margin-top: 1.4rem; }
.winners__points li { display: flex; gap: 0.9rem; align-items: flex-start; }
.winners__points img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 8px 10px rgba(0 0 0 / 0.5)); }
.winners__points h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.winners__points p { color: var(--text-muted); font-size: 0.97rem; }
.winners__copy .btn { margin-top: 1.6rem; }

/* ---- Withdrawal flow (3 steps + facts) ---------------------------------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; list-style: none; padding: 0; margin: 0; position: relative; counter-reset: none; }
.flow__step {
  position: relative; text-align: center; padding: 2.4rem 1.4rem 1.6rem;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255 255 255 / 0.06), var(--sh-md);
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2), background var(--dur-2);
}
.flow__step:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
/* dashed connector between the cards (RTL: flows right → left) */
.flow__step:not(:last-child)::after {
  content: ''; position: absolute; top: 50%; inset-inline-end: calc(-1.4rem - 1px); width: 1.4rem; height: 0;
  border-top: 2px dashed var(--gray-400); opacity: 0.7;
}
.flow__num {
  position: absolute; top: -18px; inset-inline-start: 50%; transform: translateX(50%);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-gold); color: var(--gold-900); font-weight: 700; font-size: 1.15rem;
  border: 1px solid var(--gold-900); box-shadow: inset 0 2px 0 var(--gold-100), inset 0 -3px 0 var(--gold-600), var(--glow-gold);
}
.flow__art { display: grid; place-items: center; height: 150px; margin-bottom: 1rem; }
.flow__art img { width: auto; height: 140px; max-width: 100%; filter: drop-shadow(0 16px 20px rgba(0 0 0 / 0.55)); transition: transform var(--dur-2) var(--ease-out); }
.flow__step:hover .flow__art img, .flow__step:hover .bankcard { transform: translateY(-6px) scale(1.04); }
.flow__step h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.flow__step p { color: var(--text-muted); font-size: 0.97rem; }

/* the CSS bank card: sky face like the app's blue button, gold chip, mint deposit + check */
.bankcard {
  position: relative; display: block; width: 200px; height: 122px; border-radius: 16px;
  background: var(--grad-sky); border: 1px solid var(--sky-700);
  box-shadow: inset 0 2px 0 var(--sky-200), inset 0 -4px 0 var(--sky-700), 0 16px 24px -8px rgba(0 0 0 / 0.6);
  transform: rotate(-6deg); transition: transform var(--dur-2) var(--ease-out);
  text-align: start; direction: ltr;
}
.bankcard__chip { position: absolute; top: 18px; left: 18px; width: 34px; height: 26px; border-radius: 6px; background: var(--grad-gold); border: 1px solid var(--gold-700); box-shadow: inset 0 1px 0 var(--gold-100); }
.bankcard__num { position: absolute; left: 18px; bottom: 18px; color: #fff; font-size: 0.86rem; letter-spacing: 0.08em; opacity: 0.92; white-space: nowrap; }
.bankcard__amount { position: absolute; right: 16px; top: 16px; direction: rtl; color: var(--mint-300); font-weight: 700; font-size: 1.02rem; text-shadow: 0 2px 4px rgba(0 0 0 / 0.45); white-space: nowrap; }
.bankcard__amount small { font-size: 0.7em; font-weight: 400; color: #fff; opacity: 0.85; }
.bankcard__check {
  position: absolute; right: -14px; bottom: -14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-mint); color: var(--mint-900); font-weight: 700; font-size: 1.2rem;
  border: 1px solid var(--mint-900); box-shadow: inset 0 2px 0 var(--mint-200), inset 0 -3px 0 var(--mint-700), 0 8px 14px -4px rgba(0 0 0 / 0.6);
}

.withdraw__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 1.6rem;
  max-width: 820px; margin-inline: auto;
}
.withdraw__facts li { display: grid; gap: 0.15rem; text-align: center; padding: 0.9rem 0.6rem; border-radius: var(--r-md); background: rgba(255 255 255 / 0.03); border: 1px solid var(--border); }
.withdraw__facts b { color: var(--gold-300); font-weight: 700; font-size: 1.05rem; }
.withdraw__facts span { color: var(--text-faint); font-size: var(--fs-sm); }

/* ---- FAQ (grouped, tabbed when JS runs) --------------------------------- */
.faq__wrap { max-width: 800px; margin-inline: auto; }
.faq { display: grid; gap: 1rem; }
.faq__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 0.4rem; }
.faq__tab {
  font: inherit; font-weight: 700; font-size: 0.95rem; color: var(--text-muted); cursor: pointer;
  padding: 0.55rem 1rem; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface);
  transition: color var(--dur-1), background var(--dur-1), border-color var(--dur-1);
}
.faq__tab:hover { color: var(--text); border-color: var(--border-strong); }
.faq__tab.is-active { color: var(--mint-900); background: var(--grad-mint); border-color: var(--mint-900); box-shadow: inset 0 2px 0 var(--mint-200), inset 0 -2px 0 var(--mint-700); }
.faq__group { display: grid; gap: 0.8rem; }
.faq__group + .faq__group { margin-top: 1.4rem; }
.faq__group-title { font-size: var(--fs-h3); color: var(--gold-300); }
/* JS-enhanced: one group at a time, headings redundant with the tabs */
.faq--tabbed .faq__group { display: none; }
.faq--tabbed .faq__group.is-active { display: grid; }
.faq--tabbed .faq__group + .faq__group { margin-top: 0; }
.faq--tabbed .faq__group-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.faq__item {
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface);
  padding: 0.4rem 1.2rem; transition: border-color var(--dur-2), background var(--dur-2);
}
.faq__item[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 0.9rem 0; font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  /* app-style label: white glyphs, gray-700 outline + (-1,1) drop (same recipe as .btn) */
  color: #fff; paint-order: stroke fill; -webkit-text-stroke: 2px var(--gray-700);
  text-shadow: -1px 1px 0 var(--gray-700);
}
.faq__item summary::after { -webkit-text-stroke: 0; text-shadow: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; color: var(--mint-400); font-weight: 700; font-size: 1.4rem; flex: 0 0 auto; transition: transform var(--dur-2) var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--text-muted); padding-bottom: 1rem; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(16 17 25 / 0.7); margin-top: 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; align-items: start; }
.footer__brand p { color: var(--text-faint); margin-top: 0.8rem; max-width: 32ch; }
.footer__links { display: grid; gap: 0.7rem; }
.footer__links a { color: var(--text-muted); }
.footer__links a:hover { color: var(--text); }
.footer__side { display: grid; gap: 1.2rem; justify-items: start; }
.footer__stores { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.footer__enamad { display: block; border-radius: var(--r-sm); }
.footer__enamad img { width: 88px; height: auto; min-height: 88px; object-fit: contain; }
.footer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-block: 1.4rem; border-top: 1px solid var(--border); color: var(--text-faint); font-size: var(--fs-sm); }

/* ---- Reveal on scroll + keyframes --------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(158 252 109 / 0.22); } 50% { box-shadow: 0 0 0 7px rgba(158 252 109 / 0); } }
.float-slow { animation: float 7s var(--ease-out) infinite; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .mobile-nav { display: flex; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__art { order: 1; min-height: 340px; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .factband { grid-template-columns: repeat(2, 1fr); }
  .factband li:nth-child(3) { border-inline-start: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .winners__grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 2.2rem; max-width: 460px; margin-inline: auto; }
  .flow__step:not(:last-child)::after { top: auto; bottom: calc(-2.2rem - 1px); inset-inline-end: 50%; width: 0; height: 2.2rem; border-top: 0; border-inline-start: 2px dashed var(--gray-400); }
  .withdraw__facts { grid-template-columns: 1fr; }
  .lb__row { grid-template-columns: 1.6rem 34px 1fr auto; }
  .lb__score { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .trust__grid { grid-template-columns: 1fr; }
  .factband__one-line { white-space: normal; } /* half a phone width can't hold it */
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .chip { display: none; }
}
