/* «شفرة القرار» — book landing page + homepage band. Builds on est.css tokens. */

/* ---------- Hero ---------- */
.bk-hero{background:radial-gradient(1200px 600px at 85% 10%,#1f1f22 0%,var(--black) 60%);color:var(--white);padding:128px 0 72px;overflow:hidden}
.bk-hero .crumbs{color:#8d8d93;font-size:.9rem;margin-bottom:18px}
.bk-hero .crumbs a{color:#b9b9be}
.bk-hero-grid{display:grid;gap:48px;align-items:center}
.bk-hero-grid>*{min-width:0}
.bk-h1{font-size:clamp(2.6rem,8vw,4.6rem);font-weight:900;line-height:1.1;margin:0 0 12px;color:var(--white)}
.bk-sub{font-size:clamp(1.1rem,2.4vw,1.4rem);font-weight:700;color:var(--gold);margin:0 0 16px;line-height:1.6}
.bk-lead{font-size:clamp(1.05rem,2vw,1.2rem);color:#c9c9ce;line-height:1.9;max-width:600px;margin:0 0 28px}
.bk-actions{display:flex;flex-wrap:wrap;gap:12px}
.bk-meta{list-style:none;padding:0;margin:28px 0 0;display:flex;flex-wrap:wrap;gap:8px}
.bk-meta li{font-size:.85rem;color:#b9b9be;border:1px solid #2c2c30;border-radius:999px;padding:6px 14px}
.bk-hero-art{display:flex;justify-content:center;perspective:1400px}
.bk-book{position:relative;width:min(300px,72vw);aspect-ratio:1066/1653;transform:rotateY(-14deg) rotateX(2deg);transform-style:preserve-3d;transition:transform .5s ease;border-radius:4px 10px 10px 4px;box-shadow:-24px 30px 60px -18px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.04)}
.bk-book:hover{transform:rotateY(-6deg)}
.bk-book::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,rgba(255,255,255,.18) 0,rgba(255,255,255,0) 4%,rgba(0,0,0,.18) 6%,rgba(0,0,0,0) 10%);pointer-events:none}
.bk-book img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.bk-cover-ph{display:none;position:absolute;inset:0;border-radius:inherit;background:linear-gradient(160deg,#1f1f22,#0b0b0c 70%);border:1px solid #2c2c30;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:24px}
.bk-cover-ph b{font-size:2.2rem;font-weight:900;color:var(--white)}
.bk-cover-ph small{color:var(--gold);font-weight:700;letter-spacing:.04em}
.bk-ph-lock svg{width:72px;height:72px;fill:none;stroke:var(--gold);stroke-width:2.4}
.bk-ph-lock svg rect,.bk-ph-lock svg circle{fill:rgba(242,194,62,.08)}
.bk-book.no-img img{display:none}
.bk-book.no-img .bk-cover-ph{display:flex}
@media(min-width:900px){.bk-hero{padding:150px 0 96px}.bk-hero-grid{grid-template-columns:1.25fr 1fr;gap:64px}}
@media(prefers-reduced-motion:reduce){.bk-book,.bk-book:hover{transform:none;transition:none}}

/* ---------- Cards ---------- */
.bk-cards{display:grid;gap:18px}
.bk-cards>*{min-width:0}
.bk-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:26px 24px}
.bk-card h3{font-size:1.2rem;font-weight:800;margin:6px 0 8px}
.bk-card p{color:var(--muted);line-height:1.8;margin:0}
.bk-num{font-family:'Inter',sans-serif;font-weight:800;color:var(--gold);font-size:.9rem;letter-spacing:.1em}
@media(min-width:700px){.bk-cards{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1100px){.bk-cards{grid-template-columns:repeat(4,1fr)}}

/* ---------- Steps ---------- */
.bk-steps{list-style:none;padding:0;margin:0;display:grid;gap:16px;counter-reset:none}
.bk-steps>*{min-width:0}
.bk-step{border:1px solid #2c2c30;border-radius:var(--radius);padding:26px 24px;background:#121214}
.bk-step-n{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--gold);color:var(--black);font:800 1rem 'Inter',sans-serif;margin-bottom:14px}
.bk-step h3{font-size:1.2rem;font-weight:800;margin:0 0 8px;color:var(--white)}
.bk-step p{color:#b9b9be;line-height:1.8;margin:0}
@media(min-width:700px){.bk-steps{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1100px){.bk-steps{grid-template-columns:repeat(4,1fr)}}

/* ---------- Story ---------- */
.bk-story{display:grid;gap:40px;align-items:start}
.bk-story>*{min-width:0}
.bk-story p{font-size:1.08rem;line-height:1.95;color:#3a3a3f;margin:0 0 14px;max-width:640px}
.bk-industries{list-style:none;padding:0;margin:0;display:grid;gap:14px}
.bk-industries li{border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.bk-industries b{font:900 2rem 'Inter',sans-serif;color:var(--black)}
.bk-industries span{color:var(--muted)}
.bk-tag{background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-weight:700;color:var(--ink)!important;font-size:.92rem}
@media(min-width:900px){.bk-story{grid-template-columns:1.4fr 1fr;gap:64px}}

/* ---------- Free chapter ---------- */
.bk-free{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;background:var(--white);border:1px solid var(--line);border-radius:24px;padding:32px 28px}
.bk-free>div{min-width:0;flex:1 1 320px}
.bk-free .h-xl{margin-bottom:8px}

/* ---------- Buy ---------- */
.bk-buy{display:grid;gap:18px}
.bk-buy>*{min-width:0}
.bk-opt{border:1px solid #2c2c30;border-radius:var(--radius);padding:28px 24px;background:#121214;display:flex;flex-direction:column}
.bk-opt-lang{align-self:flex-start;font-size:.8rem;font-weight:700;color:var(--gold);border:1px solid rgba(242,194,62,.4);border-radius:999px;padding:4px 12px;margin-bottom:14px}
.bk-opt h3{font-size:1.4rem;font-weight:900;color:var(--white);margin:0 0 10px}
.bk-opt p{color:#b9b9be;line-height:1.8;margin:0 0 22px;flex:1}
.bk-opt .btn{width:100%}
.btn.is-soon{background:#2c2c30;color:#8d8d93;cursor:default;pointer-events:none}
@media(min-width:900px){.bk-buy{grid-template-columns:repeat(3,1fr)}}

/* ---------- Teams ---------- */
.bk-teams{display:grid;gap:26px;background:var(--black);color:var(--white);border-radius:28px;padding:36px 28px;border:1px solid #2c2c30}
.bk-teams>*{min-width:0}
.bk-teams p{color:#c9c9ce;line-height:1.9;margin:0;max-width:640px}
.bk-teams-cta{display:flex;flex-direction:column;gap:12px;justify-content:center}
.bk-teams-cta .btn-dark{background:transparent;border-color:rgba(255,255,255,.35)}
.bk-teams-cta .btn-dark:hover{border-color:var(--gold);color:var(--gold)}
@media(min-width:900px){.bk-teams{grid-template-columns:1.5fr 1fr;padding:48px 44px;align-items:center}}

/* ---------- Author ---------- */
.bk-author{display:grid;gap:28px;align-items:center}
.bk-author>*{min-width:0}
.bk-author img{width:180px;height:180px;object-fit:cover;border-radius:50%;border:4px solid var(--white);box-shadow:var(--shadow)}
.bk-author p{color:#3a3a3f;line-height:1.9;margin:0 0 20px;max-width:640px}
@media(min-width:800px){.bk-author{grid-template-columns:auto 1fr;gap:44px}.bk-author img{width:220px;height:220px}}

/* ---------- FAQ ---------- */
.bk-faq{max-width:860px}
.bk-faq details{border-bottom:1px solid var(--line);padding:18px 0}
.bk-faq summary{cursor:pointer;font-weight:800;font-size:1.08rem;list-style:none;display:flex;justify-content:space-between;gap:16px}
.bk-faq summary::-webkit-details-marker{display:none}
.bk-faq summary::after{content:"+";color:var(--gold);font:800 1.4rem/1 'Inter',sans-serif;flex:none}
.bk-faq details[open] summary::after{content:"–"}
.bk-faq details p{color:var(--muted);line-height:1.9;margin:12px 0 0}
.bk-faq a{color:var(--black);text-decoration:underline}

/* ---------- Homepage band ---------- */
.bk-band{background:var(--black);color:var(--white);padding:72px 0;overflow:hidden}
.bk-band-grid{display:grid;gap:36px;align-items:center}
.bk-band-grid>*{min-width:0}
.bk-band .bk-book{width:min(210px,56vw);margin:0 auto}
.bk-band h2{font-size:clamp(2rem,5vw,3rem);font-weight:900;margin:0 0 10px}
.bk-band p{color:#c9c9ce;line-height:1.9;margin:0 0 24px;max-width:620px}
@media(min-width:860px){.bk-band-grid{grid-template-columns:260px 1fr;gap:56px}}

/* ---------- Homepage: «لماذا تختار الشركات EST؟» icons ---------- */
.why4 .why-ic{display:flex;align-items:center;justify-content:center;width:84px;height:84px;border-radius:22px;background:rgba(242,194,62,.08);border:1px solid rgba(242,194,62,.35);margin-bottom:22px;transition:background .3s ease,border-color .3s ease,transform .3s ease}
.why4 .why-ic svg{width:46px;height:46px;fill:none;stroke:var(--gold);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:stroke .3s ease}
.why4 li:hover .why-ic{background:var(--gold);border-color:var(--gold);transform:translateY(-3px)}
.why4 li:hover .why-ic svg{stroke:var(--black)}
@media(min-width:1100px){.why4 .why-ic{width:96px;height:96px;border-radius:24px}.why4 .why-ic svg{width:52px;height:52px}}
@media(prefers-reduced-motion:reduce){.why4 .why-ic{transition:none}.why4 li:hover .why-ic{transform:none}}
