/* كفو — صفحة الهبوط. الثيم الأبيض، مع قسمين داكنين للتباين. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font-main); font-size: 17px; line-height: 1.75; color: var(--text-primary); background: var(--bg-page); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.gold { color: var(--brand-gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* علامة كفو: المربع الذهبي المائل */
.gem { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--brand-gold); transform: rotate(45deg); flex: none; }
.gem--lg { width: 14px; height: 14px; border-radius: 3px; }
.gem--xl { width: 26px; height: 26px; border-radius: 5px; }

/* الشريط العلوي */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--transition), box-shadow var(--transition); }
.bar--scrolled { border-bottom-color: var(--border-default); box-shadow: 0 6px 24px rgba(17, 17, 17, .05); }
.bar__in { display: flex; align-items: center; gap: 20px; height: 68px; }
.bar__logo { display: flex; }
.bar__nav { display: flex; gap: 26px; margin-inline-start: 18px; flex: 1; font-size: 15px; font-weight: var(--fw-medium); color: var(--text-secondary); }
.bar__nav a:hover, .bar__login:hover { color: var(--text-primary); }
.bar__login { font-size: 15px; font-weight: var(--fw-semibold); color: var(--text-secondary); }

/* الأزرار */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; font-size: 17px; font-weight: var(--fw-bold); color: #fff; background: var(--text-primary); border-radius: 14px; box-shadow: 0 10px 26px rgba(17, 17, 17, .18); transition: transform var(--transition), box-shadow var(--transition), background var(--transition); }
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(17, 17, 17, .24); }
.cta:focus-visible, .ghost:focus-visible, .bar a:focus-visible, summary:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-gold-ring); }
.cta--sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 11px; box-shadow: none; }
.cta--block { display: flex; width: 100%; }
.cta--gold { color: #111; background: var(--brand-gold); box-shadow: 0 12px 32px rgba(184, 144, 40, .35); }
.cta--gold:hover { background: #C9A036; }
.wa { width: 22px; height: 22px; fill: var(--whatsapp-green); }
.ghost { display: inline-flex; align-items: center; min-height: 54px; padding: 0 20px; font-weight: var(--fw-semibold); border: var(--border-width) solid var(--border-default); border-radius: 14px; transition: border-color var(--transition); }
.ghost:hover { border-color: var(--text-primary); }

/* البداية */
.hero { position: relative; padding: 56px 0 0; background:
  radial-gradient(900px 480px at 88% -10%, rgba(184, 144, 40, .13), transparent 60%),
  radial-gradient(600px 380px at 0% 30%, rgba(184, 144, 40, .06), transparent 60%); }
.hero__in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; font-weight: var(--fw-semibold); color: var(--brand-gold-hover); }
.eyebrow--light { color: #E2C36B; }
.hero__title { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.2; font-weight: var(--fw-bold); letter-spacing: -.5px; }
.hero__lead { max-width: 560px; margin-top: 20px; font-size: 19px; color: var(--text-secondary); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--text-secondary); }

/* المحادثة النموذجية */
.demo { position: relative; justify-self: center; width: 100%; max-width: 360px; padding: 26px 0; }
.phone { position: relative; z-index: 1; overflow: hidden; background: #fff; border: 1.5px solid var(--border-default); border-radius: 30px; box-shadow: 0 40px 80px -24px rgba(17, 17, 17, .28), 0 0 0 8px rgba(17, 17, 17, .03); }
.phone__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; background: #111; }
.phone__avatar { display: grid; place-items: center; width: 38px; height: 38px; background: #222; border-radius: 50%; }
.phone__who { display: flex; flex-direction: column; line-height: 1.3; font-size: 15px; }
.phone__who small { font-size: 12px; color: #9CA3AF; }
.phone__chat { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 18px; background: #F4F1EA; }
.msg { position: relative; max-width: 84%; padding: 8px 12px 6px; font-size: 14.5px; line-height: 1.6; border-radius: 14px; box-shadow: 0 1px 1px rgba(17, 17, 17, .08); animation: pop .5s both; }
.msg time { display: block; margin-top: 2px; font-size: 10.5px; color: #8A8F98; direction: rtl; }
.msg--in { align-self: flex-start; background: #fff; border-start-start-radius: 4px; }
.msg--out { align-self: flex-end; background: #FFF4CF; border-start-end-radius: 4px; }
.msg:nth-child(1) { animation-delay: .2s; } .msg:nth-child(2) { animation-delay: .9s; }
.msg:nth-child(3) { animation-delay: 1.7s; } .msg:nth-child(4) { animation-delay: 2.5s; } .msg:nth-child(5) { animation-delay: 3.3s; }
.voice { display: flex; align-items: center; gap: 3px; height: 26px; min-width: 150px; }
.voice i { width: 3px; background: var(--brand-gold); border-radius: 2px; }
.voice i:nth-child(3n+1) { height: 8px; } .voice i:nth-child(3n+2) { height: 20px; } .voice i:nth-child(3n) { height: 13px; }
.voice i:nth-child(5), .voice i:nth-child(9) { height: 26px; }
.msg--typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg--typing i { width: 7px; height: 7px; background: #B7A66B; border-radius: 50%; animation: blink 1.2s infinite both; }
.msg--typing i:nth-child(2) { animation-delay: .2s; } .msg--typing i:nth-child(3) { animation-delay: .4s; }
.note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.5; background: #fff; border: 1.5px solid var(--border-default); border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(17, 17, 17, .25); animation: pop .6s both; }
.note__icon { display: grid; place-items: center; width: 34px; height: 34px; font-size: 16px; background: #FFF4CF; border-radius: 10px; flex: none; }
.note--order { top: 0; inset-inline-end: -34px; animation-delay: 3s; }
.note--follow { bottom: 0; inset-inline-start: -34px; animation-delay: 3.8s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1.5px solid var(--border-default); }
.strip li { position: relative; padding: 20px 12px; font-size: 15px; font-weight: var(--fw-semibold); text-align: center; }
.strip li + li::before { content: ''; position: absolute; inset-inline-start: 0; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: 2px; background: var(--brand-gold); transform: translateX(50%) rotate(45deg); }

/* الأقسام */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-surface); border-block: 1.5px solid var(--border-default); }
.section--dark { color: #fff; background: #111; background-image: radial-gradient(700px 400px at 100% 0%, rgba(184, 144, 40, .18), transparent 60%); }
.title { font-size: clamp(27px, 3.6vw, 40px); line-height: 1.3; font-weight: var(--fw-bold); letter-spacing: -.3px; }
.sub { max-width: 620px; margin-top: 12px; font-size: 18px; color: var(--text-secondary); }
.sub--light { color: #B6BBC4; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.card { padding: 26px 24px; background: #fff; border: 1.5px solid var(--border-default); border-radius: 18px; transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-4px); border-color: var(--brand-gold); box-shadow: 0 22px 44px -22px rgba(184, 144, 40, .5); }
.card__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; color: var(--brand-gold-hover); background: #FBF5E2; border-radius: 13px; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; line-height: 1.4; }
.card p { margin-top: 8px; font-size: 15.5px; color: var(--text-secondary); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.ticks { display: grid; gap: 14px; margin-top: 28px; }
.ticks li { position: relative; padding-inline-start: 26px; font-size: 16px; color: #D5D8DE; }
.ticks li b { color: #fff; }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 11px; width: 9px; height: 9px; border-radius: 2px; background: var(--brand-gold); transform: rotate(45deg); }
.flow { padding: 26px 24px; background: #1A1A1A; border: 1.5px solid #2B2B2B; border-radius: 20px; }
.flow__step { position: relative; display: flex; gap: 14px; padding-bottom: 22px; font-size: 15.5px; color: #D5D8DE; }
.flow__step:last-child { padding-bottom: 0; }
.flow__step b { color: #fff; }
.flow__dot { position: relative; z-index: 1; flex: none; width: 12px; height: 12px; margin-top: 8px; background: #555; border-radius: 50%; }
.flow__dot--gold { background: var(--brand-gold); }
.flow__step:not(:last-child)::before { content: ''; position: absolute; inset-inline-start: 5px; top: 20px; bottom: -8px; width: 2px; background: #2B2B2B; }
.tag { display: inline-block; padding: 0 9px; font-size: 12px; font-weight: var(--fw-semibold); line-height: 22px; border-radius: 999px; white-space: nowrap; }
.tag--warn { color: #FDE68A; background: rgba(184, 144, 40, .22); }
.tag--ok { color: #BBF7D0; background: rgba(34, 197, 94, .18); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; counter-reset: none; }
.steps li { position: relative; padding: 30px 24px 26px; border: 1.5px solid var(--border-default); border-radius: 18px; }
.steps__n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; font-size: 20px; font-weight: var(--fw-bold); color: #fff; background: #111; border-radius: 13px; }
.steps h3 { font-size: 19px; }
.steps p { margin-top: 8px; font-size: 15.5px; color: var(--text-secondary); }

.price { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center; }
.plan { padding: 30px 28px; background: #fff; border: 1.5px solid var(--brand-gold); border-radius: 22px; box-shadow: 0 0 0 6px var(--brand-gold-ring), 0 30px 60px -30px rgba(17, 17, 17, .25); }
.plan__label { font-size: 14px; font-weight: var(--fw-semibold); color: var(--brand-gold-hover); }
.plan__price { margin-top: 6px; font-size: 18px; color: var(--text-secondary); }
.plan__price b { font-size: 46px; line-height: 1.2; color: var(--text-primary); letter-spacing: -1px; }
.plan__setup { font-size: 15px; color: var(--text-secondary); }
.plan__list { display: grid; gap: 10px; margin: 22px 0 26px; padding-top: 20px; border-top: 1.5px solid var(--border-default); }
.plan__list li { position: relative; padding-inline-start: 24px; font-size: 15.5px; }
.plan__list li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--brand-gold); transform: rotate(45deg); }

.faq { display: grid; gap: 12px; margin-top: 36px; }
.faq details { border: 1.5px solid var(--border-default); border-radius: 16px; transition: border-color var(--transition); }
.faq details[open] { border-color: var(--brand-gold); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 17px; font-weight: var(--fw-semibold); cursor: pointer; list-style: none; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 24px; font-weight: 400; line-height: 1; color: var(--brand-gold-hover); transition: transform var(--transition); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; font-size: 16px; color: var(--text-secondary); }

.final { color: #fff; background: #111; background-image: radial-gradient(600px 300px at 50% 120%, rgba(184, 144, 40, .32), transparent 70%); }
.final__in { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: 88px; text-align: center; }
.final h2 { margin-top: 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.3; }
.final p { margin-bottom: 14px; font-size: 18px; color: #B6BBC4; }

.foot { border-top: 1.5px solid var(--border-default); }
.foot__in { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding-block: 26px; font-size: 14px; color: var(--text-secondary); }
.foot__grow { flex: 1; min-width: 160px; }
.foot a:hover { color: var(--text-primary); }

/* الظهور مع النزول (يتفعّل من السكربت فقط) */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.motion .reveal--in { opacity: 1; transform: none; }
.motion .grid .reveal:nth-child(3n+2), .motion .steps .reveal:nth-child(2) { transition-delay: .1s; }
.motion .grid .reveal:nth-child(3n), .motion .steps .reveal:nth-child(3) { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .msg, .note, .msg--typing i { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 960px) {
  .hero__in, .split, .price { grid-template-columns: 1fr; gap: 40px; }
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .note--order { inset-inline-end: -8px; } .note--follow { inset-inline-start: -8px; }
  .bar__nav { display: none; } .bar__login { margin-inline-start: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding-top: 36px; }
  .hero__lead { font-size: 17px; }
  .hero__actions .cta, .hero__actions .ghost { width: 100%; justify-content: center; }
  .grid, .steps { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .strip li:nth-child(3)::before { display: none; }
  .strip li:nth-child(n+3) { border-top: 1.5px solid var(--border-default); }
  .section { padding: 64px 0; }
  .final__in { padding-block: 64px; }
  .bar__in { gap: 12px; height: 60px; }
  .wrap { padding: 0 20px; }
}
