/* =========================================================
   البيلسان — الأنماط العامة
   منهجية: عناصر أساسية (base) ثم مكوّنات (components) قابلة لإعادة الاستخدام
   ========================================================= */

[x-cloak]{ display:none !important; }

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

body{
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1{ font-size: var(--fs-hero); font-weight: 700; }
h2{ font-size: var(--fs-h2); }
h3{ font-size: var(--fs-h3); }
p{ margin:0 0 1em; color: var(--ink-soft); }
a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
button{ font-family: inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }

::selection{ background: var(--lime); color: var(--ink); }

:focus-visible{
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 4px;
}

.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 1rem + 2vw, 2.5rem);
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-size: var(--fs-eyebrow);
  letter-spacing:.04em;
  color: var(--magenta-dark);
  font-weight:700;
  background: var(--magenta-tint);
  padding:.35em .9em;
  border-radius: 999px;
}

.lead{ font-size: var(--fs-lead); color: var(--ink-soft); }
.muted{ color: var(--muted); }

/* أزرار ------------------------------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.6em;
  padding: .95em 1.9em;
  border-radius: 999px;
  font-weight:700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:active{ transform: scale(.97); }

.btn-primary{
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover{ background: var(--magenta-dark); box-shadow: var(--shadow-pop); }

.btn-ghost{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--paper); }

.btn-accent{
  background: var(--lime);
  color: var(--ink);
}
.btn-accent:hover{ background: var(--lime-dark); color:#fff; }

.btn-block{ width:100%; }
.btn[disabled]{ opacity:.45; pointer-events:none; }

/* أيقونة البتلة (العنصر المميّز المشتق من اللوغو) -------- */
.petal{
  width: 1em; height: 1em;
  display:inline-block;
  fill:none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============== الهيدر ============== */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(251,250,243,.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding-block: .85rem;
}
.brand{ display:flex; align-items:center; gap:.65rem; }
.brand img{ height: 40px; width:40px; object-fit:contain; }
.brand-name{
  font-family: var(--font-display);
  font-weight:700;
  font-size:1.25rem;
  color: var(--ink);
}
.main-nav{ display:flex; align-items:center; gap: 1.75rem; }
.main-nav a{
  font-weight:600; font-size:.95rem; color: var(--ink-soft);
  position:relative; padding-block:.3rem;
}
.main-nav a::after{
  content:""; position:absolute; inset-inline:0; bottom:-2px; height:2px;
  background: var(--magenta); transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after{ transform: scaleX(1); }
.main-nav a[aria-current="page"]{ color: var(--ink); }

.nav-toggle{
  display:none; background:none; border:none; padding:.4rem;
  color: var(--ink);
}
.nav-toggle svg{ width:26px; height:26px; }

@media (max-width: 860px){
  .main-nav{
    position: fixed; inset-inline:0; top: 68px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items:flex-start;
    gap:0; padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-8px);
    opacity:0; visibility:hidden; pointer-events:none;
    transition: all .25s var(--ease);
  }
  .main-nav.is-open{ opacity:1; visibility:visible; transform:none; pointer-events:auto; }
  .main-nav a{ width:100%; padding-block:.85rem; border-bottom:1px solid var(--line); }
  .nav-toggle{ display:inline-flex; }
}

/* ============== الفوتر ============== */
.site-footer{
  background: var(--ink);
  color: var(--paper-alt);
  margin-top: var(--gap-section);
}
.footer-inner{
  padding-block: 3.5rem 2rem;
  display:grid;
  gap: 2.5rem;
  grid-template-columns: 1.3fr 1fr 1fr;
}
@media (max-width: 760px){ .footer-inner{ grid-template-columns: 1fr; } }

.footer-brand{ display:flex; align-items:center; gap:.65rem; margin-bottom: .85rem; }
.footer-brand img{ height:38px; width:38px; object-fit:contain; }
.footer-brand span{ font-family: var(--font-display); font-weight:700; font-size:1.2rem; color:#fff; }
.footer-tagline{ color: #C7CBB5; max-width: 32ch; }

.footer-col h4{
  font-family: var(--font-body); font-weight:700; font-size:.85rem;
  color: var(--lime); letter-spacing:.04em; margin-bottom:1rem;
}
.footer-col ul li{ margin-bottom:.65rem; }
.footer-col a{ color:#DCDFC9; font-size:.95rem; }
.footer-col a:hover{ color: var(--lime); }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.25rem;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:.75rem;
  font-size:.85rem; color:#9BA089;
}

/* ============== الهيرو ============== */
.hero{
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 3vw, 5rem);
  position:relative; overflow:hidden;
}
.hero-grid{
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items:center;
}
@media (max-width: 900px){ .hero-grid{ grid-template-columns: 1fr; } }

.hero h1{ margin-block: .5em .4em; }
.hero .lead{ max-width: 46ch; margin-bottom: 2em; }
.hero-actions{ display:flex; gap: 1rem; flex-wrap:wrap; align-items:center; }
.hero-actions .hint{ font-size:.85rem; color: var(--muted); }

.hero-art{
  position:relative; display:flex; align-items:center; justify-content:center;
}
.hero-art .bloom{
  width: min(360px, 80vw); animation: bloom-float 7s var(--ease) infinite;
}
@keyframes bloom-float{
  0%,100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-14px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce){
  .hero-art .bloom{ animation:none; }
}
.hero-art::before{
  content:""; position:absolute; inset:-10% ;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--lime) 30%, transparent), transparent 60%),
    radial-gradient(circle at 75% 70%, color-mix(in srgb, var(--magenta) 22%, transparent), transparent 60%);
  filter: blur(6px);
  z-index:-1;
}

/* شريط الثقة السريع */
.trust-strip{
  display:grid; grid-template-columns: repeat(3,1fr); gap:1.25rem;
  padding-block: 2rem;
}
@media (max-width:760px){ .trust-strip{ grid-template-columns:1fr; } }
.trust-item{
  display:flex; gap:.9rem; align-items:flex-start;
  padding: 1.25rem; background: var(--card); border:1px solid var(--line);
  border-radius: var(--radius-md);
}
.trust-item .petal{ width:1.6em; height:1.6em; color: var(--magenta); flex:none; margin-top:.15em; }
.trust-item h3{ font-size:1rem; margin-bottom:.25em; }
.trust-item p{ font-size:.9rem; margin:0; }

/* ============== أقسام عامة ============== */
.section{ padding-block: var(--gap-section); }
.section-head{ max-width: 62ch; margin-bottom: 2.75rem; }
.section-head.center{ margin-inline:auto; text-align:center; }

/* ============== الخط الزمني للمراحل (العنصر المميّز) ===== */
.journey{
  position:relative;
  display:flex; flex-direction:column; gap: 0;
}
.journey::before{
  content:"";
  position:absolute; top:0; bottom:0; right: 27px;
  width:2px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 16px);
}
@media (max-width: 640px){ .journey::before{ right:19px; } }

.journey-step{
  position:relative;
  display:grid; grid-template-columns: 56px 1fr; gap: 1.25rem;
  padding-block: 1.5rem;
}
@media (max-width:640px){ .journey-step{ grid-template-columns:40px 1fr; gap:.9rem; } }

.journey-marker{
  width:56px; height:56px; border-radius:50%;
  background: var(--card); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  position:relative; z-index:1;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
@media (max-width:640px){ .journey-marker{ width:40px; height:40px; } }
.journey-step:nth-child(odd) .journey-marker .petal{ color: var(--lime-dark); }
.journey-step:nth-child(even) .journey-marker .petal{ color: var(--magenta); }
.journey-marker .petal{ width:1.5em; height:1.5em; }
.journey-step:hover .journey-marker{ transform: rotate(-12deg) scale(1.06); border-color: var(--magenta); }

.journey-num{
  position:absolute; top:-.4rem; right:-.4rem;
  background: var(--ink); color:#fff; font-size:.65rem; font-weight:700;
  width:1.4em; height:1.4em; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}

.journey-content h3{ margin-bottom:.35em; }
.journey-content p{ margin:0; max-width: 58ch; }

/* ============== بطاقات عامة ============== */
.card{
  background: var(--card); border:1px solid var(--line);
  border-radius: var(--radius-md); padding: 1.5rem;
}

.value-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
@media (max-width: 860px){ .value-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .value-grid{ grid-template-columns: 1fr; } }
.value-card{ padding: 1.75rem 1.5rem; }
.value-card .petal{ width:2em; height:2em; color: var(--magenta); margin-bottom: 1rem; }

/* ============== CTA ختامي ============== */
.cta-band{
  background: var(--ink); color:#fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  display:flex; align-items:center; justify-content:space-between; gap:2rem; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-band::after{
  content:""; position:absolute; left:-40px; top:-40px; width:220px; height:220px;
  border-radius:50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lime) 55%, transparent), transparent 70%);
}
.cta-band h2{ color:#fff; margin-bottom:.25em; }
.cta-band p{ color:#C7CBB5; margin:0; }
.cta-band .btn-primary{ background: var(--magenta); }
.cta-band .btn-primary:hover{ background: var(--lime); color: var(--ink); }

/* ============== عناصر الرحلة التفاعلية (المعالج) ========= */
.wizard-header{
  padding-block: 1.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}
.wizard-title-row{
  display:flex; align-items:baseline; justify-content:space-between; gap:1rem; flex-wrap:wrap;
  margin-bottom: 1rem;
}
.wizard-title-row .eyebrow{ margin-bottom:.4rem; }
.progress-track{
  height:8px; background: var(--line); border-radius:999px; overflow:hidden;
}
.progress-fill{
  height:100%; background: linear-gradient(90deg, var(--lime), var(--magenta));
  border-radius:999px; transition: width .5s var(--ease);
}
.progress-caption{
  display:flex; justify-content:space-between; font-size:.8rem; color: var(--muted); margin-top:.5rem;
}

.wizard-body{ padding-block: clamp(2rem,1.5rem + 2vw,3.5rem) 6rem; }

.field-group{ margin-bottom: 2rem; }
.field-group > label, .field-legend{
  display:block; font-weight:700; margin-bottom:.6rem; font-size:1rem; color: var(--ink);
}
.field-hint{ font-size:.85rem; color: var(--muted); margin:-.35rem 0 .75rem; }

.text-input, select.text-input, textarea.text-input{
  width:100%; padding: .9em 1.1em; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--card);
  font-family: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.text-input:focus{
  outline:none; border-color: var(--magenta);
  box-shadow: 0 0 0 4px var(--magenta-tint);
}
textarea.text-input{ resize: vertical; min-height: 100px; }

.choice-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: .9rem;
}
.choice-card{
  position:relative;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); padding: 1.1rem 1.1rem;
  cursor:pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .15s var(--ease);
}
.choice-card:hover{ border-color: var(--lime-dark); transform: translateY(-2px); }
.choice-card input{ position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; }
.choice-card .choice-title{ font-weight:700; display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.choice-card .choice-desc{ font-size:.83rem; color: var(--muted); margin-top:.35rem; }
.choice-card:has(input:checked){
  border-color: var(--magenta); background: var(--magenta-tint);
  box-shadow: 0 6px 18px -12px rgba(231,61,131,.55);
}
.choice-card:has(input:focus-visible){ outline:3px solid var(--magenta); outline-offset:2px; }

/* دائرة التأشير (check-dot) — عنصر مشترك بين .choice-card و.spec-card
   لذلك تعريفها هنا عام وغير مقيّد بأصل واحد؛ أي بطاقة اختيار جديدة
   تحوي span.check-dot ستعمل تلقائياً دون تكرار الأنماط. */
.check-dot{
  width:1.15em; height:1.15em; border-radius:50%; border:1.5px solid var(--line); flex:none;
  display:flex; align-items:center; justify-content:center; transition: all .2s var(--ease);
}
.check-dot svg{ width:.7em; height:.7em; opacity:0; transition: opacity .15s var(--ease); }
.choice-card:has(input:checked) .check-dot,
.spec-card:has(input:checked) .check-dot{ background: var(--magenta); border-color: var(--magenta); }
.choice-card:has(input:checked) .check-dot svg,
.spec-card:has(input:checked) .check-dot svg{ opacity:1; }

/* بطاقات الاحتياجات (شبكة أوسع بأيقونة) */
.needs-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap:1rem;
}
.need-card{
  display:flex; gap:1rem; align-items:flex-start;
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: var(--card); padding: 1.25rem; cursor:pointer;
  transition: border-color .2s var(--ease), transform .15s var(--ease), background-color .2s var(--ease);
}
.need-card:hover{ transform: translateY(-2px); border-color: var(--lime-dark); }
.need-card input{ position:absolute; opacity:0; }
.need-icon{
  width:2.75rem; height:2.75rem; border-radius:50%; flex:none;
  background: var(--lime-tint); display:flex; align-items:center; justify-content:center;
  transition: background-color .2s var(--ease);
}
.need-icon .petal{ width:1.4em; height:1.4em; color: var(--lime-dark); }
.need-card:has(input:checked){ border-color: var(--magenta); background: var(--magenta-tint); }
.need-card:has(input:checked) .need-icon{ background:#fff; }
.need-card:has(input:checked) .need-icon .petal{ color: var(--magenta); }
.need-title{ font-weight:700; display:flex; align-items:center; gap:.5rem; margin-bottom:.2rem; }
.need-desc{ font-size:.83rem; color: var(--muted); margin:0; }
.need-check{
  margin-inline-start:auto; width:1.3em; height:1.3em; border-radius:50%;
  border:1.5px solid var(--line); flex:none; display:flex; align-items:center; justify-content:center;
}
.need-card:has(input:checked) .need-check{ background: var(--magenta); border-color: var(--magenta); }
.need-check svg{ width:.75em; height:.75em; color:#fff; opacity:0; }
.need-card:has(input:checked) .need-check svg{ opacity:1; }

/* شريط سفلي عائم على الجوال يلخّص التقدّم */
.sticky-bar{
  position: sticky; bottom:0; z-index:40;
  background: rgba(251,250,243,.92);
  backdrop-filter: blur(10px);
  border-top:1px solid var(--line);
  padding-block: .9rem;
  margin-top: 2rem;
}
.sticky-bar-inner{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
}
.sticky-count{ font-size:.9rem; font-weight:700; color: var(--ink); }
.sticky-count span{ color: var(--magenta); }

/* ملاحظة/تنبيه لطيف */
.note{
  display:flex; gap:.75rem; align-items:flex-start;
  background: var(--lime-tint); border: 1px solid color-mix(in srgb, var(--lime) 50%, var(--line));
  border-radius: var(--radius-sm); padding: 1rem 1.15rem; font-size:.9rem; color: var(--ink-soft);
}
.note .petal{ color: var(--lime-dark); flex:none; margin-top:.15em; }

.upload-drop{
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  padding: 1.75rem 1rem; text-align:center; background: var(--paper-alt);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.upload-drop.is-drag{ border-color: var(--magenta); background: var(--magenta-tint); }
.upload-drop .petal{ width:2.2em; height:2.2em; color: var(--muted); margin-bottom:.5rem; }
.upload-drop small{ display:block; color: var(--muted); margin-top:.35rem; }

.wizard-actions{
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
  padding-top: 2rem; margin-top: 1rem; border-top:1px solid var(--line);
}

/* ============== بطاقات المواصفات (خيارات المراحل التفصيلية) ============== */
.stage-progress-mini{
  display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.9rem;
}
.stage-progress-mini a{
  width: 2rem; height: 2rem; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:.75rem; font-weight:700; background: var(--card); border:1.5px solid var(--line); color: var(--muted);
  transition: all .2s var(--ease);
}
.stage-progress-mini a.is-current{ background: var(--ink); color:#fff; border-color: var(--ink); }
.stage-progress-mini a.is-done{ background: var(--lime-tint); border-color: var(--lime-dark); color: var(--lime-dark); }

.stage-intro{ max-width: 68ch; }

.group-block{ margin-bottom: 2.75rem; }
.group-block .field-legend{ font-size: 1.05rem; margin-bottom: .25rem; }
.group-hint{ font-size:.85rem; color:var(--muted); margin: 0 0 1rem; }
.group-type-tag{
  display:inline-block; font-size:.72rem; font-weight:700; color: var(--magenta-dark);
  background: var(--magenta-tint); padding:.15em .65em; border-radius:999px; margin-inline-start:.5rem;
  vertical-align: middle;
}

.spec-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: 1rem;
}
.spec-card{
  position:relative; border:1.5px solid var(--line); border-radius: var(--radius-md);
  background: var(--card); padding: 1.25rem; cursor:pointer;
  transition: border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  display:flex; flex-direction:column;
}
.spec-card:hover{ transform: translateY(-2px); border-color: var(--lime-dark); }
.spec-card input{ position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; }
.spec-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:.75rem; }
.spec-title{ font-weight:700; font-size:1.02rem; }
.spec-desc{ font-size:.85rem; color: var(--muted); margin:.3rem 0 0; }
.spec-card:has(input:checked){
  border-color: var(--magenta); background: var(--magenta-tint);
  box-shadow: 0 8px 22px -16px rgba(231,61,131,.55);
}
.spec-card:has(input:focus-visible){ outline:3px solid var(--magenta); outline-offset:2px; }

.spec-lists{ display:grid; grid-template-columns:1fr 1fr; gap:.6rem; margin-top:.9rem; font-size:.8rem; }
.spec-lists h5{ margin:0 0 .35rem; font-size:.72rem; font-weight:700; letter-spacing:.02em; }
.spec-lists .pros h5{ color: var(--lime-dark); }
.spec-lists .cons h5{ color: var(--magenta-dark); }
.spec-lists ul{ display:flex; flex-direction:column; gap:.3rem; }
.spec-lists li{ padding-inline-start:1.1em; position:relative; color: var(--ink-soft); line-height:1.4; }
.spec-lists .pros li::before{ content:"✓"; position:absolute; inset-inline-start:0; color: var(--lime-dark); font-weight:700; }
.spec-lists .cons li::before{ content:"–"; position:absolute; inset-inline-start:0; color: var(--magenta-dark); font-weight:700; }

.spec-suited{
  margin-top:.85rem; font-size:.78rem; color: var(--ink-soft);
  background: var(--paper-alt); border-radius:8px; padding:.5rem .7rem;
}
.spec-suited b{ color: var(--ink); }

@media (max-width:520px){ .spec-lists{ grid-template-columns:1fr; } }

.file-list{ margin-top:.85rem; display:flex; flex-direction:column; gap:.4rem; }
.file-chip{
  display:flex; align-items:center; justify-content:space-between; gap:.6rem;
  background: var(--card); border:1px solid var(--line); border-radius: var(--radius-sm);
  padding:.5rem .8rem; font-size:.85rem;
}
.file-chip button{ background:none; border:none; color: var(--magenta-dark); font-weight:700; font-size:.8rem; }

/* حركات الظهور عند التمرير (تُدار عبر AOS، هذه احتياطية) */
[data-reveal]{ opacity:0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity:1; transform:none; transition:none; }
}
