/* Sporship — trainer join page. Brand: Sporship Brand Book (Fall 2021). */
:root {
  --majorelle-blue: #5454ea;
  --rich-black: #030303;
  --red-salsa: #eb5454;
  --dark-slate-blue: #3e3e8c;
  --white: #ffffff;
  --ground: #ffffff;
  --ink: #030303;
  --ink-muted: rgba(3, 3, 3, 0.68);
  --line: rgba(3, 3, 3, 0.1);
  --surface: #f4f4fb;           /* white tinted toward Majorelle Blue */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  color-scheme: light;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

/* Country photo behind the top of the page (desktop), faded so the headline stays readable */
.hero-photo-clip { position: absolute; inset: 0 0 auto 0; height: 700px; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-photo {
  position: absolute; top: 0; left: calc(50% - 457px);
  width: 1180px; height: 664px;
  background: no-repeat 0 0 / 1180px 664px;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.93) 30%, rgba(255,255,255,.4) 36.5%, rgba(255,255,255,.15) 44%, rgba(255,255,255,.3) 100%);
}
.hero-photo-inline, .hero-photo-m { display: none; }

/* Country skyline behind the top of the page (light, decorative) */
.skyline {
  position: absolute; top: 0; left: 50%;
  width: 2400px; height: 660px; margin-left: -1200px;
  background: no-repeat center bottom / 2400px 660px;
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 85%, transparent 100%);
  pointer-events: none; z-index: 0;
}
.skyline-clip { position: absolute; inset: 0 0 auto 0; height: 660px; overflow: hidden; pointer-events: none; z-index: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo img { height: 34px; width: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: var(--radius-pill); border: 0;
  font: 800 italic 17px/1 var(--font); letter-spacing: .3px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--majorelle-blue); outline-offset: 3px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--majorelle-blue); color: var(--white); }
.btn-primary:hover { background: #4646dc; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline:hover { background: var(--surface); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-light { background: var(--white); color: var(--rich-black); }
.btn-light:hover { background: #ececf8; }
.btn-submit { background: var(--red-salsa); color: var(--white); min-height: 58px; font-size: 19px; margin-top: 8px; }
.btn-submit:hover { background: #e04545; }
.btn-submit[disabled] { opacity: .7; cursor: wait; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 64px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 80px;
}
.pitch { display: grid; gap: 64px; }
.mobile-only { display: none; }
.skyline-inline { display: none; }

/* ---------- Hero ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: rgba(84, 84, 234, .16); box-shadow: inset 0 0 0 1px rgba(84, 84, 234, .55);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--majorelle-blue); box-shadow: 0 0 0 4px rgba(84,84,234,.3); }
.display {
  margin-top: 24px;
  font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(44px, 6.2vw, 80px); line-height: .95; letter-spacing: -.5px;
}
.accent { color: var(--majorelle-blue); }
.lead strong { color: var(--ink); font-weight: 700; }
.lead { margin-top: 24px; max-width: 560px; font-size: 18px; line-height: 1.6; font-weight: 500; color: var(--ink-muted); }

.earn-tile {
  position: relative; overflow: hidden;
  margin-top: 32px; max-width: 420px;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: var(--majorelle-blue);
  color: var(--white);
}
.earn-mark { position: absolute; right: -28px; top: -40px; height: 190px; width: auto; opacity: .16; }
.earn-figure { position: relative; font-weight: 800; font-style: italic; font-size: 46px; line-height: 1; letter-spacing: -.5px; }
.earn-figure span { font-size: 28px; }
.earn-figure .earn-from, .earn-figure .earn-to { font-size: 22px; font-weight: 700; }
.earn-caption { position: relative; margin-top: 8px; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.95); }

/* ---------- Section titles ---------- */
.h2 { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 28px; line-height: 1.1; }
.h1 { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(28px, 4vw, 46px); line-height: 1; }

/* ---------- Pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.pillar {
  padding: 24px; border-radius: var(--radius-md);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.ico { width: 30px; height: 30px; fill: none; stroke: var(--majorelle-blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin-top: 16px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.pillar p { margin-top: 6px; font-size: 15px; color: var(--ink-muted); }

/* ---------- Steps ---------- */
.step-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.step-list li { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--line); }
.num {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--majorelle-blue); color: var(--white);
  font-weight: 800; font-style: italic; font-size: 18px;
}
.step-list h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.step-list p { margin-top: 4px; font-size: 15px; color: var(--ink-muted); }

/* ---------- Trainer video + trainers ---------- */
.proof { display: grid; gap: 24px; }
.proof .h2 { margin-bottom: 0; }
.video-card { position: relative; margin: 0; max-width: 300px; border-radius: var(--radius-md); overflow: hidden; background: #111118; }
.video-card video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #111118; }
.video-card.is-wide { max-width: none; }
.video-card.is-wide video { aspect-ratio: 16 / 9; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--majorelle-blue); box-shadow: 0 0 0 8px rgba(84,84,234,.3);
}
.video-play svg { width: 30px; height: 30px; fill: var(--white); margin-left: 4px; }
.video-play:focus-visible { outline: 3px solid var(--majorelle-blue); outline-offset: 4px; }
.video-card.playing .video-play { display: none; }
.video-card figcaption { padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--white); }
.trainer-slider { position: relative; display: grid; gap: 12px; }
.trainer-row {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.trainer-row::-webkit-scrollbar { display: none; }
.trainer-card {
  flex: 0 0 calc((100% - 24px) / 3); scroll-snap-align: start;
  display: flex; flex-direction: column; border-radius: var(--radius-md); overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.trainer-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.trainer-meta { padding: 14px 16px 18px; display: grid; gap: 4px; }
.trainer-meta strong { font-size: 16px; font-weight: 700; }
.trainer-role { font-size: 13px; color: var(--ink-muted); }
.trainer-quote { margin-top: 6px; font-size: 14px; line-height: 1.55; }
.trainer-quote::before { content: "\201C"; display: block; height: 20px; font: 800 italic 34px/1 Montserrat, sans-serif; color: var(--majorelle-blue); }
.slider-nav { display: flex; gap: 8px; justify-content: flex-end; }
.slider-btn {
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line);
}
.slider-btn:hover { box-shadow: inset 0 0 0 1.5px var(--majorelle-blue); }
.slider-btn:disabled { opacity: .35; cursor: default; }
.slider-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .slider-btn svg { transform: scaleX(-1); }

/* ---------- Form ---------- */
.apply-panel {
  scroll-margin-top: 16px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--dark-slate-blue);
  color: var(--white);
  box-shadow: 0 24px 60px rgba(62, 62, 140, .28);
}
.form-title { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 28px; line-height: 1.1; }
.form-sub { margin-top: 6px; font-size: 15px; color: rgba(255,255,255,.82); }
.form-alert { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(235,84,84,.18); box-shadow: inset 0 0 0 1px rgba(235,84,84,.7); font-size: 14px; font-weight: 600; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

.field { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { display: block; padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 700; color: var(--white); }
.hint { margin-left: 6px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.75); }

.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 50px;
  padding: 12px 14px;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  background: var(--white); color: var(--rich-black);
  font: 500 16px/1.4 var(--font);
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #6b6b7b; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(255,255,255,.9); outline-offset: 2px; border-color: var(--majorelle-blue); }
.phone-row { display: flex; gap: 8px; }
.dial {
  flex: 0 0 auto; display: grid; place-items: center; padding: 0 14px;
  border-radius: var(--radius-sm); background: rgba(255,255,255,.14);
  font-weight: 700; font-size: 16px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 15px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45);
  font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center;
  transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.chip:hover span { box-shadow: inset 0 0 0 1.5px var(--white); }
.chip input:checked + span { background: var(--white); color: var(--rich-black); box-shadow: inset 0 0 0 1.5px var(--white); }
.chip input:checked + span::before {
  content: ""; width: 12px; height: 7px; margin-top: -3px;
  border-left: 2.5px solid var(--majorelle-blue); border-bottom: 2.5px solid var(--majorelle-blue);
  transform: rotate(-45deg);
}
.chip input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 2px; }
.chip input:disabled + span { opacity: .4; cursor: not-allowed; }

.file-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; }
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: var(--radius-pill); background: var(--white); color: var(--rich-black); font-weight: 700; font-size: 15px;
}
.file-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--majorelle-blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.file-pick:hover .file-btn { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.file-pick input:focus-visible + .file-btn { outline: 3px solid var(--white); outline-offset: 2px; }
.file-name { min-width: 0; overflow-wrap: anywhere; font-size: 14px; color: rgba(255,255,255,.85); }
.field.invalid .file-btn { box-shadow: 0 0 0 2px var(--red-salsa); }
.field-wait { padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px dashed rgba(255,255,255,.4); font-size: 14px; color: rgba(255,255,255,.85); }
.chips[data-cat]:not([hidden]) { animation: chips-in .25s ease; }
@keyframes chips-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.field-error { margin-top: 8px; font-size: 13px; font-weight: 600; color: #ffd0d0; }
.field.invalid input[type="text"], .field.invalid input[type="tel"] { border-color: var(--red-salsa); }
.field.invalid .chip span { box-shadow: inset 0 0 0 1.5px #ff9c9c; }
.form-note { margin-top: 12px; text-align: center; font-size: 14px; color: rgba(255,255,255,.82); }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; overflow: hidden; background: var(--majorelle-blue); color: var(--white); }
.final-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.final-mark { position: absolute; left: -60px; top: -70px; height: 300px; width: auto; opacity: .14; z-index: 0; }
.final-row .h1, .final-row .btn { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--ink-muted); }
.footer-row img { height: 24px; width: auto; }
.footer-row { padding-bottom: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--ink-muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { padding-bottom: 28px; display: grid; gap: 4px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.footer-legal strong { color: var(--ink); font-weight: 700; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }

/* =================== Mobile & tablet =================== */
@media (max-width: 1023px) {
  :root { --gutter: 16px; }
  .header-row { height: 68px; }
  .logo img { height: 28px; }
  .layout { grid-template-columns: 1fr; gap: 56px; padding-top: 12px; padding-bottom: 56px; }
  .pitch { gap: 48px; }
  .mobile-only { display: flex; margin-top: 16px; }
  .display { margin-top: 12px; font-size: clamp(34px, 9.6vw, 56px); }
  .eyebrow { padding: 7px 14px; font-size: 13px; line-height: 1.35; border-radius: 14px; align-items: flex-start; }
  .eyebrow .dot { margin-top: 5px; flex: 0 0 8px; }
  .lead { font-size: 15.5px; line-height: 1.55; margin-top: 12px; }
  .earn-tile { max-width: none; margin-top: 16px; padding: 14px 20px; }
  .earn-figure { font-size: 32px; }
  .earn-caption { margin-top: 4px; font-size: 14px; }
  .earn-mark { height: 140px; top: -30px; }
  .h2 { font-size: 24px; }
  .pillar-grid { grid-template-columns: 1fr; gap: 12px; }
  .pillar { padding: 18px; }
  .pillar h3 { font-size: 16px; margin-top: 12px; }
  .pillar p { font-size: 14px; }
  .step-list { grid-template-columns: 1fr; gap: 12px; }
  .video-card:not(.is-wide) { width: min(100%, 320px); margin-inline: auto; }
  .trainer-row { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .trainer-card { flex-basis: 72%; }
  .slider-nav { display: none; }

  .apply-panel { padding: 24px 18px; margin: 0 -4px; }
  .final-row { flex-direction: column; align-items: flex-start; padding-top: 44px; padding-bottom: 44px; }
  .footer-legal { padding-bottom: 96px; }
  .skyline-clip { display: none; }
  /* Mobile: the photo runs full-width behind the top of the page and fades into white under the headline */
  .hero-photo-clip { height: 430px; }
  /* Photo stays clear all the way down and fades to white only in its last 90px, just behind the top of the text */
  .hero-photo, html[dir="rtl"] .hero-photo {
    left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: 30% 40%;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 90px), transparent 100%);
            mask-image: linear-gradient(180deg, #000 calc(100% - 90px), transparent 100%);
  }
  .hero-photo::after, html[dir="rtl"] .hero-photo::after {
    background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 20%);
  }
  .has-hero-photo .hero { padding-top: 136px; }
  .hero-photo-clip { height: 380px; }
  .hero-photo-inline { display: none !important; }
  .skyline-inline {
    height: 170px; margin: 28px calc(-1 * var(--gutter)) -48px;
    background-repeat: no-repeat; background-size: 1320px 363px;
    background-position: calc(50% - 25px) 100%;
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  }

  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.95);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .sticky-cta.show { transform: none; }
}

@media (min-width: 1024px) {
  .header-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Language switch ---------- */
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill);
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line), 0 1px 2px rgba(3,3,3,.06);
  font-size: 15px; font-weight: 700; text-decoration: none; color: var(--ink);
}
.lang-switch:hover { box-shadow: inset 0 0 0 1.5px var(--majorelle-blue); }
.lang-switch:focus-visible { outline: 3px solid var(--majorelle-blue); outline-offset: 2px; }
.lang-switch svg { width: 18px; height: 18px; fill: none; stroke: var(--majorelle-blue); stroke-width: 1.8; }
.lang-switch[lang="ar"] { font-family: Tajawal, var(--font); font-size: 16px; }

/* ---------- Arabic (right-to-left) ---------- */
html[dir="rtl"] { --font: Tajawal, Montserrat, system-ui, sans-serif; }
html[dir="rtl"] body { line-height: 1.7; }
/* Arabic has no capitals or italics: keep headings bold and upright */
html[dir="rtl"] .btn, html[dir="rtl"] .display, html[dir="rtl"] .h1, html[dir="rtl"] .h2,
html[dir="rtl"] .form-title, html[dir="rtl"] .earn-figure, html[dir="rtl"] .num {
  font-style: normal; text-transform: none; letter-spacing: 0;
}
html[dir="rtl"] .display { line-height: 1.15; font-size: clamp(42px, 5.6vw, 72px); }
html[dir="rtl"] .h1 { line-height: 1.25; }
html[dir="rtl"] .h2, html[dir="rtl"] .form-title { line-height: 1.35; }
html[dir="rtl"] .btn { font-size: 18px; }
html[dir="rtl"] .earn-figure { font-family: Montserrat, var(--font); }
html[dir="rtl"] .earn-figure .earn-from, html[dir="rtl"] .earn-figure .earn-to,
html[dir="rtl"] .earn-figure span:last-child { font-family: Tajawal, var(--font); }
html[dir="rtl"] .hint { margin-left: 0; margin-right: 6px; }
html[dir="rtl"] .earn-mark { right: auto; left: -28px; transform: scaleX(-1); }
html[dir="rtl"] .final-mark { left: auto; right: -60px; transform: scaleX(-1); }
html[dir="rtl"] .chip input:checked + span::before { margin-left: 2px; }
/* The photo stays the right way round; it moves to the form's side and fades towards the text */
html[dir="rtl"] .hero-photo {
  left: calc(50% - 540px);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 14%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(180deg, #000 62%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 14%);
          mask-composite: intersect;
}
html[dir="rtl"] .hero-photo::after {
  background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,.93) 44%, rgba(255,255,255,.4) 52%, rgba(255,255,255,.15) 58%, rgba(255,255,255,.3) 100%);
}
@media (max-width: 1023px) {
  .lang-switch { min-height: 36px; padding: 0 12px; font-size: 14px; }
  .header-actions { gap: 8px; }
}
@media (max-width: 1023px) {
  html[dir="rtl"] .hero-photo { left: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 90px), transparent 100%);
            mask-image: linear-gradient(180deg, #000 calc(100% - 90px), transparent 100%); }
  html[dir="rtl"] .hero-photo::after { background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 20%); }
}

/* Mobile: the photo lives inside the hero, so it always ends exactly at the first line of text */
@media (max-width: 1023px) {
  .has-hero-photo .hero-photo-clip { display: none; }
  .has-hero-photo .hero { position: relative; isolation: isolate; padding-top: var(--hero-pad, 136px); }
  .has-hero-photo .hero > *:not(.hero-photo-m) { position: relative; z-index: 1; }
  .hero-photo-m {
    display: block; position: absolute; z-index: 0;
    left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    top: -80px; height: calc(80px + var(--hero-pad, 136px) + 18px);   /* 80px = header + gap above the hero */
    background-repeat: no-repeat; background-size: cover; background-position: 30% 22%;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 70px), transparent 100%);
            mask-image: linear-gradient(180deg, #000 calc(100% - 70px), transparent 100%);
  }
  .hero-photo-m::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 22%); }
  .site-header { position: relative; z-index: 3; }
  main { overflow-x: clip; }
}

/* ---------- Mobile sizing: the whole first screen (photo, headline, text, earnings, Join now) fits a phone,
   including in-app browsers (WhatsApp, Instagram) that take space at the top and bottom ---------- */
@media (max-width: 1023px) {
  .header-row { height: 60px; }
  .logo img { height: 24px; }
  .lang-switch { min-height: 34px; padding: 0 11px; font-size: 13px; gap: 6px; }
  .lang-switch svg { width: 16px; height: 16px; }
  .header-cta { min-height: 34px; padding: 0 14px; font-size: 13px; }
  .layout { padding-top: 8px; }
  .eyebrow { padding: 6px 12px; font-size: 12px; gap: 8px; }
  .eyebrow .dot { margin-top: 4px; width: 7px; height: 7px; flex-basis: 7px; box-shadow: 0 0 0 3px rgba(84,84,234,.3); }
  .display { margin-top: 10px; font-size: clamp(29px, 8.4vw, 46px); line-height: .98; }
  .lead { font-size: 14.5px; line-height: 1.5; margin-top: 10px; }
  .earn-tile { margin-top: 12px; padding: 12px 18px; }
  .earn-figure { font-size: 28px; }
  .earn-figure span { font-size: 20px; }
  .earn-figure .earn-from, .earn-figure .earn-to { font-size: 17px; }
  .earn-caption { font-size: 13px; margin-top: 2px; }
  .earn-mark { height: 110px; top: -22px; right: -20px; }
  .mobile-only { margin-top: 12px; }
  .hero .btn.mobile-only { min-height: 48px; font-size: 16px; }
  .hero-photo-m { top: -68px; height: calc(68px + var(--hero-pad, 136px) + 16px); }
  html[dir="rtl"] .display { font-size: clamp(30px, 8.6vw, 48px); line-height: 1.12; }
  .sticky-cta { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .sticky-cta .btn { min-height: 48px; font-size: 16px; }
}

/* ---------- Two-step form ---------- */
.steps-bar, .step-next, .step-back { display: none; }
.is-steps .steps-bar { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.is-steps .step-next { display: flex; margin-top: 26px; }
.is-steps .step-back {
  display: inline-flex; align-items: center; gap: 4px; margin: 18px 0 -4px; padding: 6px 2px;
  border: 0; background: none; color: rgba(255,255,255,.85); font: 600 14px/1 var(--font); cursor: pointer;
}
.step-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .step-back svg { transform: scaleX(-1); }
.step-back:hover { color: var(--white); }
.step-back:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; border-radius: 6px; }
.steps-label { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); }
.steps-track { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; }
.steps-fill { display: block; height: 100%; width: 50%; border-radius: inherit; background: var(--white); transition: width .3s ease; }
html[dir="rtl"] .steps-fill { margin-inline-start: 0; }
.form-proof { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hero-proof { margin-top: 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--ink-muted); text-align: center; display: none; }
@media (max-width: 1023px) { .hero-proof { display: block; } }
