/* Delevo — public partner page. Mobile first, logical properties (RTL). */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: #fff; }
.p-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.p-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.p-skip:focus { top: 10px; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- top bar ---------- */
.p-top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.p-top.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16,40,30,.35); }
.p-top .p-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.p-logo { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; flex: none; }
.p-logo img { width: 30px; height: 30px; }
.p-logo .logo-word { font-size: 19px; }
.p-logo span { font-size: 12.5px; color: var(--mute); padding-inline-start: 8px; border-inline-start: 1px solid var(--line); }
.p-nav { display: none; gap: 4px; margin-inline-start: 18px; }
.p-nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.p-nav a:hover, .p-nav a.on { background: var(--brand-ll); color: var(--brand-d); }
@media (min-width: 980px) { .p-nav { display: flex; } }
.lang { display: inline-flex; gap: 2px; background: var(--line-2); border-radius: 999px; padding: 3px; flex: none; }
.lang button { height: 30px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--mute); transition: background .15s, color .15s; }
.lang button[lang="ar"] { font-family: var(--font); font-size: 13px; }
.lang button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
@media (max-width: 600px) { .p-hide-s { display: none; } .p-logo span { display: none; } }

/* ---------- hero ---------- */
.p-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 520px at 85% -10%, #DDF3E8 0%, rgba(221,243,232,0) 60%), radial-gradient(800px 400px at -10% 110%, #FFF4E0 0%, rgba(255,244,224,0) 60%), var(--brand-ll); padding: 40px 0 48px; }
[dir="rtl"] .p-hero { background: radial-gradient(1200px 520px at 15% -10%, #DDF3E8 0%, rgba(221,243,232,0) 60%), radial-gradient(800px 400px at 110% 110%, #FFF4E0 0%, rgba(255,244,224,0) 60%), var(--brand-ll); }
.p-hero-in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 940px) { .p-hero-in { grid-template-columns: 1.1fr .9fr; gap: 48px; } .p-hero { padding: 72px 0 84px; } }
.p-badge { height: 32px; padding: 0 13px; background: #fff; box-shadow: var(--sh-1); border: 1px solid var(--line-2); }
.p-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(31,160,107,.18); }
.p-hero h1 { font-size: clamp(32px, 6.4vw, 56px); line-height: 1.06; letter-spacing: -.03em; margin: 18px 0 14px; font-weight: 800; color: var(--ink); text-wrap: balance; }
[dir="rtl"] .p-hero h1 { letter-spacing: 0; line-height: 1.25; }
.p-lead { font-size: clamp(16px, 2vw, 18.5px); line-height: 1.6; color: var(--ink-2); margin: 0 0 24px; max-width: 52ch; }
.p-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.p-btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.p-note { max-width: 56ch; }
.p-trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.p-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.p-trust li i { width: 24px; height: 24px; border-radius: 8px; background: #fff; box-shadow: var(--sh-1); display: grid; place-items: center; font-style: normal; font-size: 13px; }

/* hero visual: example of the kitchen panel */
.p-mock { position: relative; max-width: 440px; width: 100%; margin: 0 auto; padding: 18px 10px 26px; }
.p-mock-card { background: #fff; border-radius: 24px; box-shadow: var(--sh-3); border: 1px solid var(--line-2); padding: 18px; display: grid; gap: 14px; }
.p-mock-head { display: flex; align-items: center; gap: 10px; }
.p-mock-head img { width: 34px; height: 34px; }
.p-mock-head b { display: block; font-size: 15px; }
.p-mock-head small, .p-mock-pick small, .p-mock-float small { display: block; font-size: 12px; color: var(--mute); }
.p-mock-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--warn); background: var(--warn-l); padding: 4px 8px; border-radius: 999px; }
.p-mock-pick { display: flex; align-items: center; gap: 12px; background: var(--brand-ll); border: 1px solid var(--brand-l); border-radius: 16px; padding: 12px 14px; }
.p-mock-ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 19px; box-shadow: var(--sh-1); flex: none; }
.p-mock-pick b { font-size: 15px; }
.p-mock-count { text-align: center; }
.p-mock-count b { display: block; font-size: 24px; line-height: 1; color: var(--brand-d); }
.p-mock-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.p-mock-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); font-size: 14px; }
.p-mock-list li .m-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; flex: none; background: var(--line-2); }
.p-mock-list li .grow { font-weight: 600; }
.p-mock-list li .num { color: var(--mute); font-size: 13px; }
.p-mock-list li .st { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--line-2); color: var(--mute); white-space: nowrap; }
.p-mock-list li .st.ok { background: var(--brand-l); color: var(--brand-d); }
.p-mock-list li .st.go { background: var(--warn-l); color: #92400E; }
.p-mock-float { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; box-shadow: var(--sh-2); border: 1px solid var(--line-2); padding: 10px 14px 10px 10px; font-size: 13.5px; animation: pFloat 6s ease-in-out infinite; }
[dir="rtl"] .p-mock-float { padding: 10px 10px 10px 14px; }
.p-mock-float > span { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-l); display: grid; place-items: center; font-size: 17px; flex: none; }
.p-mock-f1 { top: 0; inset-inline-end: -6px; }
.p-mock-f2 { bottom: 0; inset-inline-start: -6px; animation-delay: -3s; }
.p-mock-f2 > span { background: var(--info-l); }
@keyframes pFloat { 50% { transform: translateY(-6px); } }
@media (max-width: 480px) { .p-mock-f1 { inset-inline-end: 0; } .p-mock-f2 { inset-inline-start: 0; } }

/* ---------- sections ---------- */
.p-sec { padding: 64px 0; }
@media (min-width: 900px) { .p-sec { padding: 88px 0; } }
.p-alt { background: var(--bg); }
.p-head { max-width: 640px; margin-bottom: 28px; }
.p-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-d); margin-bottom: 8px; }
[dir="rtl"] .p-eyebrow { letter-spacing: 0; font-size: 13.5px; }
.p-sec h2, .p-cta h2 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 800; text-wrap: balance; }
[dir="rtl"] .p-sec h2, [dir="rtl"] .p-cta h2 { letter-spacing: 0; line-height: 1.35; }
.p-head p { font-size: 16px; }

.p-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.p-check li { position: relative; padding-inline-start: 32px; font-size: 15px; line-height: 1.5; }
.p-check li::before { content: ''; position: absolute; inset-inline-start: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137A50' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
@media (min-width: 760px) { .p-check-2 { grid-template-columns: 1fr 1fr; gap: 14px 28px; } }

/* roles */
.p-roles { display: grid; gap: 16px; }
@media (min-width: 760px) { .p-roles { grid-template-columns: 1fr 1fr; gap: 20px; } }
.p-role { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; background: #fff; }
.p-role-we { background: linear-gradient(160deg, var(--brand-ll), #fff 70%); border-color: var(--brand-l); }
.p-role-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.p-role-h b { font-size: 20px; }
.p-role-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--line-2); display: grid; place-items: center; font-size: 22px; }
.p-role-we .p-role-ic { background: #fff; box-shadow: var(--sh-1); }
.p-role-ic img { width: 28px; height: 28px; }

/* steps: vertical timeline on mobile, cards on desktop */
.p-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: s; position: relative; }
.p-steps li { counter-increment: s; position: relative; padding: 0 0 26px; padding-inline-start: 58px; }
.p-steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); color: var(--brand-d); font-weight: 800; font-family: var(--font-lat); display: grid; place-items: center; z-index: 1; }
.p-steps li::after { content: ''; position: absolute; inset-inline-start: 19px; top: 40px; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, var(--brand-l) 0 6px, transparent 6px 11px); }
.p-steps li:last-child { padding-bottom: 0; }
.p-steps li:last-child::after { display: none; }
.p-steps li:last-child::before { background: var(--brand); color: #fff; }
.p-steps b { display: block; font-size: 17px; margin: 8px 0 4px; }
.p-steps p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 900px) {
  .p-steps { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .p-steps li { padding: 64px 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
  .p-steps li::before { top: 18px; inset-inline-start: 18px; }
  .p-steps li::after { top: 37px; inset-inline-start: 62px; inset-inline-end: -14px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(to right, var(--brand-l) 0 6px, transparent 6px 11px); }
  .p-steps b { margin-top: 0; font-size: 16px; }
  .p-steps p { font-size: 13.5px; }
}

/* money cards */
.p-grid3 { display: grid; gap: 16px; }
@media (min-width: 820px) { .p-grid3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.p-grid3 > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.p-grid3 > div:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--brand-l); }
.p-grid3 .c-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-l); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }
.p-grid3 b { display: block; font-size: 18px; margin-bottom: 8px; }
.p-grid3 p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* what you need */
@media (min-width: 900px) { .p-need { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; } .p-need .p-head { position: sticky; top: 96px; } }
.p-callout { margin: 24px 0 0; padding: 14px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); color: var(--ink-2); line-height: 1.55; }

/* faq */
@media (min-width: 900px) { .p-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; } }
.p-link { color: var(--brand-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.p-faq { display: grid; gap: 10px; }
.p-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s, box-shadow .2s; }
.p-faq details[open] { border-color: var(--brand-l); box-shadow: var(--sh-2); }
.p-faq summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 20px; font-weight: 600; font-size: 15.5px; cursor: pointer; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: ''; margin-inline-start: auto; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--line-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314231C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s, background-color .2s; }
.p-faq details[open] summary::after { transform: rotate(45deg); background-color: var(--brand-l); }
.p-faq p { margin: 0; padding: 0 20px 18px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* final CTA */
.p-cta { padding: 24px 0 72px; }
.p-cta-box { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 32px; padding: 56px 24px; background: radial-gradient(600px 300px at 80% 0%, rgba(255,255,255,.16), transparent 60%), linear-gradient(135deg, var(--brand-d), var(--brand-dd)); }
.p-cta-box p { color: rgba(255,255,255,.85); margin: 0 auto 22px; max-width: 52ch; font-size: 16px; }
.p-cta-box p.tiny { margin: 14px auto 0; font-size: 12.5px; color: rgba(255,255,255,.7); }
.p-btn-white { background: #fff; color: var(--brand-dd); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
.p-btn-white:hover { background: var(--brand-ll); }

/* footer */
.p-foot { border-top: 1px solid var(--line); padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--bg); }
.p-foot-in { display: grid; gap: 18px; }
@media (min-width: 820px) { .p-foot-in { grid-template-columns: 1fr auto; align-items: start; } .p-copy { grid-column: 1 / -1; } }
.p-foot-brand p { margin-top: 8px; max-width: 40ch; }
.p-foot-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.p-foot-nav a { color: var(--ink-2); }
.p-foot-nav a:hover { color: var(--brand-d); text-decoration: underline; }

/* sticky mobile CTA */
.p-sticky { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s ease; }
.p-sticky.show { transform: none; }
@media (min-width: 760px) { .p-sticky { display: none; } }

/* reveal on scroll (only when JS marks the page ready and motion is allowed) */
.js-reveal .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .p-mock-float { animation: none; } .js-reveal .rv { opacity: 1; transform: none; transition: none; } }

/* legal page */
.legal-page { max-width: 820px; margin: 0 auto; padding: 28px 20px 72px; }
.legal-page h1 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -.02em; margin: 0 0 6px; }
.legal-page .legal-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 22px; }
.legal-page .legal-toc { background: var(--bg); border-radius: var(--r-lg); padding: 16px 18px; margin: 0 0 24px; }
.legal-page .legal-toc ol { margin: 8px 0 0; padding-inline-start: 20px; display: grid; gap: 4px; font-size: 14px; }
.legal-page .legal-toc a { color: var(--brand-d); }
.legal-page h3 { font-size: 16.5px; margin: 26px 0 8px; scroll-margin-top: 80px; }
.legal-page p { font-size: 15px; line-height: 1.7; margin: 0 0 10px; color: var(--ink-2); }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--mute); margin-bottom: 14px; }
.legal-back:hover { color: var(--brand-d); }
@media print { .p-top, .p-foot, .p-sticky, .no-print { display: none !important; } body { background: #fff; } .legal-page { padding: 0; } }
