/* ── TOKENS ─────────────────────────────── */
:root {
  --primary: #D9521E;
  --primary-dark: #B44118;
  --primary-soft: #FFEDE4;
  --ink: #261814;
  --ink-2: #3a2a23;
  --secondary: #615e58;
  --tertiary: #8a857c;
  --cream: #FAF7F2;
  --cream-2: #F2EBE0;
  --white: #FFFFFF;
  --surface-low: #FFF1ED;
  --border: #E1BFB5;
  --border-light: #EDE0D8;
  --border-soft: #F0E8DE;
  --error: #C5352B;

  --font-ar: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', 'Segoe UI Arabic', 'Geeza Pro', 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-en: 'Inter', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-sm: 0 2px 10px rgba(38,24,20,0.04);
  --shadow-md: 0 6px 28px rgba(38,24,20,0.07);
  --shadow-lg: 0 20px 60px rgba(38,24,20,0.10);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;
}

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

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: hidden;
}

html[lang="en"] body { font-family: var(--font-en); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--primary); color: var(--white); }

/* film grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

@media (max-width: 700px) {
  .container { padding: 0 20px; }
}

/* ── HEADER ─────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  background: rgba(250,247,242,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.scrolled {
  border-bottom-color: var(--border-light);
  background: rgba(250,247,242,0.92);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-ar);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1;
}
html[lang="en"] .wordmark { font-family: var(--font-en); letter-spacing: -0.02em; }
.wordmark-dot { color: var(--ink); }

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; inset-inline-start: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}
.lang-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.lang-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

@media (max-width: 800px) {
  .nav { display: none; }
}

/* ── BUTTONS ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ar);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease-bounce), box-shadow 0.2s;
  user-select: none;
  white-space: nowrap;
}
html[lang="en"] .btn { font-family: var(--font-en); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
html[dir="rtl"] .btn .arrow { transform: rotate(180deg); }
html[dir="ltr"] .btn .arrow { transform: none; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 14px rgba(217,82,30,0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,82,30,0.32);
}
.btn-primary:active { transform: scale(0.97) translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface-low);
}

.btn-sm { padding: 10px 18px; font-size: 14px; }

.btn-back {
  font-family: var(--font-ar);
  font-size: 14px;
  color: var(--secondary);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
html[lang="en"] .btn-back { font-family: var(--font-en); }
.btn-back:hover { color: var(--ink); background: var(--surface-low); }

/* ── HERO ───────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 88px;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.dot-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
}
.dot-pulse::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero-title {
  font-size: clamp(40px, 7.5vw, 88px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-line-1 {
  display: block;
  color: var(--primary);
}
.hero-line-2 {
  display: block;
  margin-top: 6px;
}
.hero-emph {
  display: inline-block;
  position: relative;
  color: var(--ink);
}
#tw { font-weight: 700; }
.cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--primary);
  margin-inline-start: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--secondary);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  max-width: 540px;
}
.stat-num {
  font-family: var(--font-ar);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
html[lang="en"] .stat-num { font-family: var(--font-en); }
.stat-lbl {
  font-size: 13px;
  color: var(--secondary);
}

/* hero decorative shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-shape-a {
  width: 340px; height: 340px;
  background: rgba(217, 82, 30, 0.18);
  top: -60px;
  inset-inline-end: -80px;
  animation: float-a 12s ease-in-out infinite;
}
.hero-shape-b {
  width: 260px; height: 260px;
  background: rgba(217, 82, 30, 0.10);
  bottom: -60px;
  inset-inline-start: 30%;
  animation: float-b 14s ease-in-out infinite;
}
@keyframes float-a {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-30px, 30px); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(40px, -20px); }
}

@media (max-width: 700px) {
  .hero { padding: 48px 0 64px; }
  .hero-stats { gap: 32px; padding-top: 24px; }
  .stat-num { font-size: 28px; }
  .hero-ctas .btn { width: 100%; }
}

/* ── SECTIONS ───────────────────────────── */
.section {
  padding: 96px 0;
  position: relative;
}
.section-tight { padding: 72px 0; }
@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 56px 0; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
html[dir="rtl"] .eyebrow {
  font-family: var(--font-ar);
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
  padding-inline-end: 2px;
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 760px;
}
.section-title em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}

.section-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--secondary);
  max-width: 540px;
  margin-bottom: 28px;
}

/* ── PILLARS ────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}
.pillar {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.pillar-num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 18px;
}
html[dir="rtl"] .pillar-num { font-family: var(--font-ar); }
.pillar h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.pillar p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--secondary);
}

@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; gap: 14px; }
}

/* ── PROVIDERS SPLIT ────────────────────── */
.section-providers {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
}

.checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.checks svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 3px;
  padding: 2px;
  background: var(--primary-soft);
  border-radius: 50%;
  box-sizing: content-box;
}

/* card stack visual */
.split-visual {
  position: relative;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-stack {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 100%;
}
.card-mock {
  position: absolute;
  inset: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.card-mock-1 {
  z-index: 3;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.4s var(--ease);
}
.card-mock-2 {
  z-index: 2;
  transform: rotate(-4deg) translate(-12px, 18px);
  background: var(--cream);
}
.card-mock-3 {
  z-index: 1;
  transform: rotate(5deg) translate(14px, 30px);
  background: var(--primary-soft);
  opacity: 0.7;
}
html[dir="ltr"] .card-mock-2 { transform: rotate(4deg) translate(12px, 18px); }
html[dir="ltr"] .card-mock-3 { transform: rotate(-5deg) translate(-14px, 30px); }
.split-visual:hover .card-mock-1 { transform: translateY(-6px) rotate(0.5deg); }

.mock-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8c8b5, #d9521e22, #261814);
  border-radius: var(--r-md);
}
.mock-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.mock-meta-text { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.mock-name { width: 70%; height: 10px; background: var(--ink); border-radius: 3px; opacity: 0.85; }
.mock-tag  { width: 50%; height: 8px;  background: var(--border); border-radius: 3px; }
.mock-tags { display: flex; gap: 6px; }
.mock-tags span {
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--surface-low);
  border: 1px solid var(--border-light);
}
.mock-tags span:nth-child(1) { width: 56px; }
.mock-tags span:nth-child(2) { width: 72px; }
.mock-tags span:nth-child(3) { width: 48px; }

.float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 10;
  animation: float-y 4s ease-in-out infinite;
}
.float-1 {
  top: 24px;
  inset-inline-start: -10px;
  color: var(--primary);
}
.float-1 svg {
  width: 14px; height: 14px;
  padding: 2px;
  background: var(--primary-soft);
  border-radius: 50%;
  box-sizing: content-box;
}
.float-2 {
  bottom: 60px;
  inset-inline-end: -16px;
  color: var(--ink);
  animation-delay: 1.2s;
}
.float-star { color: var(--primary); font-size: 14px; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (max-width: 900px) {
  .split-visual {
    display: block;
    height: 340px;
    max-width: 320px;
    margin: 0 auto;
    padding: 0;
  }
  .card-stack { max-width: 260px; margin: 0 auto; }
  .card-mock-2 { transform: rotate(-3deg) translate(-8px, 14px); }
  .card-mock-3 { transform: rotate(4deg) translate(10px, 22px); }
  html[dir="ltr"] .card-mock-2 { transform: rotate(3deg) translate(8px, 14px); }
  html[dir="ltr"] .card-mock-3 { transform: rotate(-4deg) translate(-10px, 22px); }
  .float-1 { top: 10px; inset-inline-start: 4px; }
  .float-2 { bottom: 40px; inset-inline-end: 4px; }
}

@media (max-width: 500px) {
  .split-visual {
    height: 360px;
    max-width: 300px;
  }
  .card-stack { max-width: 240px; }
  .card-mock-2 { transform: rotate(-3deg) translate(-8px, 12px); }
  .card-mock-3 { transform: rotate(4deg) translate(10px, 20px); }
  html[dir="ltr"] .card-mock-2 { transform: rotate(3deg) translate(8px, 12px); }
  html[dir="ltr"] .card-mock-3 { transform: rotate(-4deg) translate(-10px, 20px); }
  .card-mock-1 { padding: 14px; gap: 12px; box-shadow: var(--shadow-lg); }
  .mock-avatar { width: 34px; height: 34px; }
  .float-1 {
    top: 14px;
    inset-inline-start: -8px;
    font-size: 11.5px;
    padding: 6px 10px;
  }
  .float-2 {
    bottom: 36px;
    inset-inline-end: -8px;
    font-size: 11.5px;
    padding: 6px 10px;
  }
}

@media (max-width: 360px) {
  .split-visual {
    height: 330px;
    max-width: 270px;
  }
  .card-stack { max-width: 215px; }
  .float-1 { top: 10px; inset-inline-start: -4px; }
  .float-2 { bottom: 30px; inset-inline-end: -4px; }
}

/* ── FORM ───────────────────────────────── */
.section-form {
  background: var(--cream);
  padding-top: 16px;
}

.form-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.form-top {
  padding: 32px 36px 0;
}
.form-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.form-sub {
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 24px;
}

.progress-track {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.progress-seg {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--border-light);
  transition: background 0.4s var(--ease);
}
.progress-seg.done { background: var(--primary); }
.progress-seg.cur  { background: var(--primary); opacity: 0.45; }

.step-count {
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--tertiary);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
html[dir="rtl"] .step-count { font-family: var(--font-ar); letter-spacing: 0; }

.form-body {
  padding: 8px 36px 36px;
  position: relative;
  min-height: 280px;
}
@media (max-width: 600px) {
  .form-top { padding: 24px 24px 0; }
  .form-body { padding: 8px 24px 28px; }
}

.form-step { display: none; }
.form-step.active {
  display: block;
  animation: stepIn 0.36s var(--ease) both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.field-label-spaced { margin-top: 20px; }

.field-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--tertiary);
  background: var(--surface-low);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0;
}

.field-hint {
  font-size: 13px;
  color: var(--secondary);
  margin-top: -4px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.field-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: var(--cream);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  font-family: var(--font-ar);
  font-size: 16px; /* prevent iOS zoom */
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
}
html[lang="en"] .field-input { font-family: var(--font-en); }

.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(217,82,30,0.12);
  background: var(--white);
}
.field-input::placeholder { color: var(--tertiary); }
.field-input.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(197,53,43,0.12);
}

.field-error {
  font-size: 12.5px;
  color: var(--error);
  margin-top: 6px;
  min-height: 18px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.field-error.show {
  opacity: 1;
  transform: translateY(0);
}

/* RADIO */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.radio-group.radio-grid {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}
.radio-group.radio-grid .radio-opt {
  flex: 1 1 calc(50% - 5px);
  min-width: 140px;
}

.radio-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  position: relative;
}
.radio-opt:hover {
  border-color: var(--border);
  background: var(--surface-low);
}
.radio-opt:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.radio-opt input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}
.radio-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary);
  transition: color 0.2s;
}
.radio-icon svg { width: 20px; height: 20px; }
.radio-opt:has(input:checked) .radio-icon { color: var(--primary); }

/* CHIPS (specializations) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1.5px solid var(--border-light);
  background: var(--white);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  user-select: none;
}
.chip:hover {
  border-color: var(--border);
  background: var(--surface-low);
  transform: translateY(-1px);
}
.chip.on {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.chip.on::before {
  content: '✓';
  font-weight: 700;
  font-size: 13px;
}

/* PHONE / IG */
.phone-wrap, .ig-wrap {
  display: flex;
  direction: ltr;
}
.phone-prefix, .ig-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--surface-low);
  border: 1.5px solid var(--border-light);
  border-inline-end: none;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.field-input-prefixed {
  border-radius: var(--r-md) 0 0 var(--r-md);
  border-inline-end: 1.5px solid var(--border-light);
}
html[dir="ltr"] .phone-prefix,
html[dir="ltr"] .ig-prefix {
  border-radius: var(--r-md) 0 0 var(--r-md);
  border-inline-end: none;
  border-inline-start: 1.5px solid var(--border-light);
}
html[dir="ltr"] .field-input-prefixed {
  border-radius: 0 var(--r-md) var(--r-md) 0;
  border-inline-start: 1.5px solid var(--border-light);
}

/* STEP NAV */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}
.step-nav.end { justify-content: flex-end; }

/* REVIEW */
.review-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  margin-bottom: 8px;
}
.review-item { display: flex; flex-direction: column; gap: 4px; }
.review-item.span2 { grid-column: 1 / -1; }
.r-key {
  font-family: var(--font-en);
  font-size: 10.5px;
  color: var(--tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
html[dir="rtl"] .r-key { font-family: var(--font-ar); text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.r-val {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}

/* SUCCESS */
.success-wrap {
  padding: 24px 0 8px;
  text-align: center;
}
.success-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  animation: pop 0.5s var(--ease-bounce);
}
@keyframes pop {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}
.success-ring svg { width: 32px; height: 32px; color: var(--primary); }
.success-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.success-desc {
  font-size: 14.5px;
  color: var(--secondary);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto 24px;
}

/* ── HOW IT WORKS ───────────────────────── */
.how-tabs {
  display: inline-flex;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-pill);
  padding: 5px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.how-tab {
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  transition: color 0.2s, background 0.25s var(--ease);
  font-family: var(--font-ar);
}
html[lang="en"] .how-tab { font-family: var(--font-en); }
.how-tab.active {
  background: var(--ink);
  color: var(--white);
}

.how-panels { position: relative; }
.how-panel { display: none; }
.how-panel.active {
  display: block;
  animation: stepIn 0.3s var(--ease);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-step {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  transition: transform 0.25s var(--ease), border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.how-step::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 100%; height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: var(--ts-origin, left);
  transition: transform 0.3s var(--ease);
}
html[dir="rtl"] .how-step::before { --ts-origin: right; }
.how-step:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}
.how-step:hover::before { transform: scaleX(1); }

.how-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}
.how-step h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.how-step p {
  font-size: 14.5px;
  color: var(--secondary);
  line-height: 1.6;
}

@media (max-width: 800px) {
  .how-steps { grid-template-columns: 1fr; gap: 12px; }
}

/* ── TRUST ──────────────────────────────── */
.section-trust { background: var(--ink); color: var(--cream); }
.section-trust .eyebrow { color: var(--primary); }
.section-trust .section-title { color: var(--cream); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.trust-item {
  padding: 28px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.trust-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}
.trust-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(217,82,30,0.18);
  color: var(--primary);
  border-radius: var(--r-md);
  margin-bottom: 18px;
}
.trust-icon svg { width: 20px; height: 20px; }
.trust-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.trust-item p {
  font-size: 13.5px;
  color: rgba(250,247,242,0.65);
  line-height: 1.6;
}

@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .trust-grid { grid-template-columns: 1fr; } }

/* ── STUDIO TOOLS / WHAT'S COMING ───────── */
.section-studio {
  background: var(--cream-2);
}
.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.studio-card {
  position: relative;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  overflow: hidden;
}
.studio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.studio-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 100%; height: 3px;
  background: var(--border-light);
}
.studio-card-live::before { background: var(--primary); }

.studio-stage {
  display: inline-block;
  font-family: var(--font-ar);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
html[lang="en"] .studio-stage { font-family: var(--font-en); }

.studio-card-soon .studio-stage {
  color: var(--secondary);
  background: var(--surface-low);
}

.studio-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.studio-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--secondary);
}

@media (max-width: 800px) {
  .studio-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ── CLIENTS NOTIFY ─────────────────────── */
.clients-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.clients-card::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: var(--primary-soft);
  border-radius: 50%;
  inset-inline-end: -120px;
  top: -120px;
  z-index: 0;
}
.clients-text, .notify-form { position: relative; z-index: 1; }
.clients-text .section-title { margin-bottom: 12px; font-size: clamp(22px, 3vw, 30px); }
.clients-text .section-lead { margin-bottom: 0; font-size: 15px; }

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notify-form .btn { width: 100%; }
.notify-msg {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  min-height: 18px;
  opacity: 0;
  transition: opacity 0.3s;
}
.notify-msg.show { opacity: 1; }

@media (max-width: 800px) {
  .clients-card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 28px;
  }
}

/* ── FAQ ────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  max-width: 760px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item[open] {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface-low); }

.faq-toggle {
  position: relative;
  width: 14px; height: 14px;
  flex-shrink: 0;
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.faq-toggle::before { top: 50%; left: 0; right: 0; height: 2px; margin-top: -1px; }
.faq-toggle::after  { left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; }
.faq-item[open] .faq-toggle::after { transform: rotate(90deg); opacity: 0; }

.faq-ans {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--secondary);
  line-height: 1.7;
}

/* ── FOOTER ─────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 48px 0 32px;
  background: var(--cream);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-brand .wordmark { font-size: 24px; margin-bottom: 12px; display: inline-flex; }
.footer-brand p {
  font-size: 13.5px;
  color: var(--secondary);
  max-width: 240px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--secondary);
  transition: color 0.2s;
  width: fit-content;
}
html[dir="rtl"] .footer-links a { font-family: var(--font-ar); }
.footer-links a:hover { color: var(--primary); }
.footer-links svg { width: 16px; height: 16px; flex-shrink: 0; }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: end;
  font-size: 12.5px;
  color: var(--tertiary);
}
.footer-made { color: var(--secondary); }

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-meta { text-align: start; }
}

/* ── HONEYPOT (anti-bot, must look real to bots) ──────── */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── BTN LOADING STATE ───────────────────── */
.btn[disabled],
.btn.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}
.btn.is-loading span { opacity: 0.5; }

/* submit error inside review step */
.submit-error {
  font-size: 13.5px;
  color: var(--error);
  background: rgba(197,53,43,0.08);
  border: 1px solid rgba(197,53,43,0.2);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.submit-error.show { opacity: 1; transform: translateY(0); }

/* ── CONFETTI ───────────────────────────── */
#confetti {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 200;
}

/* ── REDUCED MOTION ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
