:root {
  --navy: #12263a;
  --navy-deep: #0c1a28;
  --teal: #159a9c;
  --teal-dark: #0e7c7e;
  --sand: #dcc9a3;
  --canvas: #f7f9fa;
  --muted: #6b7280;
  --line: rgba(18, 38, 58, 0.1);
  --shadow: 0 18px 50px rgba(12, 26, 40, 0.18);
  --radius: 22px;
  --font: "Plus Jakarta Sans", "Noto Sans Arabic", system-ui, sans-serif;
}

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

html {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--navy);
  background: var(--navy-deep);
  text-align: start;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

[dir="rtl"] body {
  font-family: "Noto Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% -10%, rgba(21, 154, 156, 0.28), transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(220, 201, 163, 0.16), transparent 38%),
    linear-gradient(180deg, #0c1a28 0%, #12263a 48%, #0c1a28 100%);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px 12px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: clamp(44px, 8vw, 52px);
  height: clamp(44px, 8vw, 52px);
  object-fit: cover;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(220, 201, 163, 0.28);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name strong {
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.brand-name span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
}

.lang {
  display: flex;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang button {
  border: 0;
  background: transparent;
  color: rgba(247, 249, 250, 0.7);
  min-height: 44px;
  min-width: 72px;
  padding: 0 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.lang button.active {
  background: var(--teal);
  color: #fff;
}

.hero {
  text-align: center;
  color: #fff;
  margin-bottom: 28px;
}

.hero-logo {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 28px;
  background: #000;
  margin-bottom: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(220, 201, 163, 0.2);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

[dir="rtl"] .kicker {
  letter-spacing: 0.04em;
  text-transform: none;
}

.kicker::before,
.kicker::after {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--sand);
  border-radius: 99px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 auto;
  max-width: 40rem;
  color: rgba(247, 249, 250, 0.78);
  line-height: 1.7;
  font-size: 1rem;
  padding-inline: 4px;
}

.hero-ask {
  margin: 18px auto 8px !important;
  color: var(--sand) !important;
  font-size: 1.15rem !important;
  font-weight: 800;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 20px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(21, 154, 156, 0.28);
}

.cta:hover {
  background: var(--teal-dark);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(21, 154, 156, 0.16);
  color: #d7f3f3;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(21, 154, 156, 0.28);
  max-width: 100%;
}

.card {
  background: var(--canvas);
  border-radius: 24px;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  width: 100%;
  scroll-margin-top: 16px;
}

.card + .card {
  margin-top: 16px;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.card h3 {
  margin: 18px 0 8px;
  font-size: 1.02rem;
  color: var(--navy);
}

.info-card h3:first-of-type {
  margin-top: 14px;
}

.copy {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.75;
}

.stage {
  margin-top: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.stage h3 {
  margin: 4px 0 10px;
}

.stage .points li {
  background: var(--canvas);
}

.stage-goal {
  margin: 12px 0 0;
  font-weight: 700;
  color: var(--navy);
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.points li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  padding-inline-start: 40px;
  line-height: 1.55;
  position: relative;
}

.points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 14px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.checks-look li::before {
  width: 16px;
  height: 16px;
  top: 13px;
  inset-inline-start: 12px;
  border-radius: 4px;
  background: var(--teal);
  box-shadow: inset 0 0 0 2px #fff;
}

.block {
  display: grid;
  gap: 16px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--line);
}

#join-form > .block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.block h2 {
  margin: 0;
}

.step {
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.opt {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
}

.follow-label {
  margin-top: 12px;
}

.checks {
  display: grid;
  gap: 8px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.check input {
  margin-top: 4px;
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.check:has(input:checked) {
  border-color: var(--teal);
  background: rgba(21, 154, 156, 0.08);
}

.ready-line {
  text-align: center;
  font-weight: 800;
  margin: 10px 0 0;
  color: var(--navy);
}

.card .lead {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label,
.legend {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}

.req {
  color: var(--teal);
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  max-width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--navy);
  outline: none;
  text-align: start;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus,
input[type="url"]:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(21, 154, 156, 0.18);
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
}

.choice input:checked + span {
  border-color: var(--teal);
  background: rgba(21, 154, 156, 0.1);
  color: var(--teal-dark);
}

.file {
  position: relative;
  border: 1.5px dashed rgba(18, 38, 58, 0.18);
  background: #fff;
  border-radius: 16px;
  padding: 18px 12px;
  text-align: center;
  color: var(--muted);
}

.file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.file.ready {
  border-color: var(--teal);
  background: rgba(21, 154, 156, 0.06);
  color: var(--navy);
}

.hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.actions {
  margin-top: 8px;
}

button.submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(18, 38, 58, 0.22);
  touch-action: manipulation;
}

button.submit:hover {
  background: #0e1d2d;
}

button.submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.status {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.status.show {
  display: block;
}

.status.ok {
  background: rgba(21, 154, 156, 0.12);
  color: var(--teal-dark);
}

.status.err {
  background: #fde8e8;
  color: #9b1c1c;
}

.success {
  display: none;
  text-align: center;
  padding: 28px 8px 12px;
}

.success.show {
  display: block;
}

.success .lead {
  max-width: 28rem;
  margin-inline: auto;
  font-size: 1.05rem;
  color: var(--navy);
}

.success[hidden] {
  display: none !important;
}

.success h2 {
  margin-bottom: 8px;
}

.foot {
  margin-top: 22px;
  text-align: center;
  color: rgba(247, 249, 250, 0.55);
  font-size: 0.82rem;
}

.honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

@media (max-width: 900px) {
  .wrap {
    width: min(720px, calc(100% - 32px));
  }

  .card {
    padding: 22px 18px 18px;
  }
}

@media (max-width: 734px) {
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    width: 84px;
    height: 84px;
    border-radius: 22px;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 16px);
    padding: 14px 0 28px;
  }

  .brand-name strong {
    font-size: 1rem;
  }

  .lang button {
    min-width: 64px;
    min-height: 40px;
    padding: 0 10px;
  }

  .card {
    padding: 16px 12px 14px;
    border-radius: 18px;
  }

  .card h2 {
    font-size: 1.08rem;
  }

  textarea {
    min-height: 88px;
  }
}
