:root {
  --red: #E8342A;
  --red-light: #FFF0EF;
  --red-dark: #cc2e25;
  --black: #0D0D0D;
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --border: #E4E3DF;
  --text-primary: #0D0D0D;
  --text-secondary: #6B6863;
  --text-muted: #A8A5A0;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-arabic: 'Tajawal', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-arabic);
  font-size: 17px;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}

.hidden { display: none !important; }

/* ===== HERO ===== */
.s-hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 56px 5%;
}
.s-hero-inner {
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Right column */
.s-headline-col { display: flex; flex-direction: column; gap: 28px; }

.s-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  width: fit-content;
}
.s-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.s-h1 {
  font-family: var(--font-arabic);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--black);
}
.s-h1-accent { color: var(--red); }

.s-sub {
  font-size: 18px; line-height: 1.8;
  color: var(--text-secondary);
  max-width: 420px;
}

/* Left column */
.s-card-col { display: flex; justify-content: center; }

.s-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  width: 100%; max-width: 460px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
}

/* Landing page bilingual wizard card */
.s-card.lp-card[dir="ltr"] {
  direction: ltr;
  font-family: var(--font-body);
}
.s-card.lp-card[dir="rtl"] {
  direction: rtl;
  font-family: var(--font-arabic);
}

/* Card logo */
.s-card-logo {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 20px;
}
.s-card-logo-img { width: 40px; height: 40px; }
.s-card-logo-name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--black); letter-spacing: -0.5px;
}

/* Outcomes */
.s-outcomes {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.s-outcomes-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text-muted); text-transform: uppercase;
  margin-bottom: 14px;
}
.s-outcomes-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.s-outcomes-list li {
  font-size: 15px; color: var(--text-secondary);
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.s-outcomes-list li::before {
  content: '✓';
  color: var(--red); font-weight: 700; font-size: 13px;
  flex-shrink: 0; margin-top: 1px;
}

/* Progress */
.s-progress {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.s-progress-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.s-dots { display: flex; gap: 6px; align-items: center; }
.s-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  transition: background 0.25s, width 0.25s, border-radius 0.25s;
}
.s-dot.active { background: var(--red); width: 24px; border-radius: 4px; }

/* Step */
.s-step-q {
  font-size: 20px; font-weight: 700; color: var(--black);
  margin-bottom: 4px;
}
.s-step-hint {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 16px;
}

/* Option cards */
.s-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.s-opt {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%; padding: 13px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: right;
}
.s-card.lp-card[dir="ltr"] .s-opt {
  text-align: left;
}
.s-opt:hover { border-color: var(--red); background: var(--red-light); }
.s-opt.selected { border-color: var(--red); background: var(--red-light); }
.s-opt-label { font-size: 16px; font-weight: 600; color: var(--black); }
.s-opt-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Step 4 fields */
.s-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.s-field { display: flex; flex-direction: column; gap: 5px; }
.s-label { font-size: 15px; font-weight: 600; color: var(--text-secondary); }
.s-input {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-arabic); font-size: 15px;
  background: var(--bg); color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
  direction: rtl; width: 100%;
}
.s-card.lp-card[dir="ltr"] .s-input {
  direction: ltr;
  font-family: var(--font-body);
}
.s-input:focus { border-color: var(--red); }
.s-input::placeholder { color: var(--text-muted); }
.s-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

/* Nav buttons */
.s-nav-btns {
  display: flex; align-items: center; gap: 10px;
}
.s-next-btn {
  flex: 1; padding: 13px 24px;
  background: var(--red); color: #fff;
  border: none; border-radius: 10px;
  font-family: var(--font-arabic); font-size: 17px; font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.s-card.lp-card[dir="ltr"] .s-next-btn,
.s-card.lp-card[dir="ltr"] .s-back-btn {
  font-family: var(--font-body);
}
.s-next-btn:hover:not(:disabled) { background: var(--red-dark); transform: translateY(-1px); }
.s-next-btn:disabled {
  background: var(--border); color: var(--text-muted); cursor: not-allowed;
  transform: none;
}
.s-back-btn {
  padding: 13px 16px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: var(--font-arabic); font-size: 16px;
  cursor: pointer;
  transition: border-color 0.15s;
  white-space: nowrap;
}
.s-back-btn:hover { border-color: var(--black); }

.s-next-btn:focus-visible,
.s-back-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Thank you */
.s-thanks { text-align: center; padding: 48px 16px; }
.s-thanks-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.s-thanks-title {
  font-size: 22px; font-weight: 800; color: var(--black);
  margin-bottom: 10px;
}
.s-thanks-sub { font-size: 17px; color: var(--text-secondary); line-height: 1.7; }

/* ===== STATS ===== */
.s-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 5%;
}
.s-stats-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.s-stat-val {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 700; color: var(--black);
  margin-bottom: 6px;
}
.s-stat-desc { font-size: 13px; color: var(--text-secondary); }

/* ===== FOOTER ===== */
.s-footer { padding: 28px 5%; text-align: center; }
.s-footer-copy { font-size: 13px; color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .s-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .s-headline-col { order: 1; }
  .s-card-col { order: 2; }
  .s-stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .s-hero { padding: 32px 4%; }
  .s-card { padding: 24px 18px; }
  .s-h1 { font-size: 30px; }
  .s-stats-inner { gap: 20px; }
}
