/* ==========================================================================
   TekBooks page (/products/tekbooks). Uses the site's navy and gold.
   ========================================================================== */
.tb-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.tb-h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.15; }
.tb-h1 em { font-style: normal; color: rgb(197 160 71); }
.tb-till { position: relative; min-width: 0; }
.tb-scr { border-radius: 18px; border: 10px solid #1A2D4C; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); background: #fff; overflow: hidden; aspect-ratio: 1366 / 860; }
.tb-scr img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.tb-ticket { position: absolute; left: -34px; bottom: -30px; width: 210px; background: #FFFDF6; color: #1d2433; font: 12px/1.5 ui-monospace, "Roboto Mono", Consolas, monospace; padding: 14px 14px 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transform: rotate(-3deg); }
.tb-ticket .c { text-align: center; }
.tb-ticket .r { display: flex; justify-content: space-between; gap: 8px; }
.tb-ticket hr { border: 0; border-top: 1px dashed #b9b2a0; margin: 6px 0; }

.tb-strip { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 1.1rem 0; font-size: .92rem; color: #4b5563; }
.tb-strip b { color: rgb(26 43 74); }

.tb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-top: 4rem; }
.tb-split.is-flip > img { order: -1; }
.tb-shot { width: 100%; height: auto; border-radius: 16px; border: 8px solid #1A2D4C; box-shadow: 0 20px 50px rgba(26, 43, 74, .25); }
.tb-split .bi-check-circle-fill { margin-top: .2rem; }

.tb-names { display: flex; flex-wrap: wrap; gap: .4rem; }
.tb-names span { background: #fff; border: 1px solid #e5e7eb; border-radius: 9999px; padding: .25rem .7rem; font-size: .82rem; color: rgb(26 43 74); }
.tb-names span.is-tek { background: rgb(26 43 74); color: #fff; border-color: rgb(26 43 74); }

/* pricing */
.tb-offer { display: inline-block; margin-top: 1.25rem; background: rgba(197, 160, 71, .15); color: #fff; border: 1px dashed rgb(197 160 71); border-radius: 10px; padding: .5rem 1rem; font-size: .92rem; }
.tb-toggles { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.tb-code { display: inline-flex; gap: .5rem; margin-top: 1rem; }
.tb-code input { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .3); color: #fff; border-radius: 10px; padding: .55rem .9rem; text-transform: uppercase; width: 12rem; }
.tb-code input::placeholder { color: rgba(255, 255, 255, .55); text-transform: none; }
.tb-code button { background: #fff; color: rgb(26 43 74); border: 0; border-radius: 10px; padding: .55rem 1.1rem; font-weight: 600; cursor: pointer; }
.tb-code-msg { min-height: 1.4rem; margin-top: .5rem; font-size: .9rem; }
.tb-code-msg .ok { color: #9FE0B6; } .tb-code-msg .bad { color: #FFB4A9; }
.tb-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.tb-cards .tek-plan { padding: 1.4rem; }
.tb-tag { min-height: 2.6rem; }
.tb-was { min-height: 1.3rem; }
.tb-was s { opacity: .7; }
.tb-btns { display: flex; flex-direction: column; gap: .6rem; align-items: stretch; text-align: center; }
.tb-btns .w-full { justify-content: center; }
.tb-trial { font-size: .88rem; font-weight: 600; color: rgb(26 43 74); text-decoration: underline; text-underline-offset: 3px; }
.tb-ent { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding: 1.1rem 1.4rem; border: 1px solid rgba(197, 160, 71, .55); border-radius: 14px; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .8); font-size: .92rem; }
.tb-ent b { color: #fff; font-size: 1.05rem; }

/* practice calculator */
.tb-calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.tb-tier { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid #eef0f3; color: rgb(26 43 74); }
.tb-tier small { color: #6b7280; }
.tb-tier input { width: 5.5rem; border: 1px solid #d1d5db; border-radius: 10px; padding: .5rem .6rem; text-align: center; font-weight: 600; direction: ltr; }
.tb-sum { background: rgb(26 43 74); color: #fff; border-radius: 16px; padding: 1.5rem; }
.tb-big { font-size: 2.2rem; font-weight: 700; margin: .25rem 0 1rem; }
.tb-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; }
.tb-sum .btn-primary { display: flex; justify-content: center; }

/* comparison + add-ons tables */
.tb-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid #e5e7eb; }
.tb-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; background: #fff; }
.tb-table th, .tb-table td { padding: .65rem .85rem; border-bottom: 1px solid #eef0f3; text-align: center; }
.tb-table th:first-child, .tb-table td:first-child { text-align: start; }
.tb-table thead th { background: rgb(26 43 74); color: #fff; font-weight: 600; position: sticky; top: 0; }
.tb-table thead small { font-weight: 400; opacity: .75; }
.tb-table tr.grp td { background: #f6f4ee; font-weight: 700; color: rgb(26 43 74); text-align: start; }
.tb-table td.y { color: #1E7B4A; font-weight: 700; }
.tb-table td.n { color: #b0b6c0; }
.tb-table td.a { color: #8a6d1d; font-size: .82rem; }
.tb-add td:nth-child(2), .tb-add td:nth-child(3) { text-align: start; }
.tb-add .nowrap { white-space: nowrap; }

/* FAQ */
.tb-faq { max-width: 52rem; margin: 0 auto; display: grid; gap: .75rem; }
.tb-faq details { background: #fff; border-radius: 12px; padding: 1rem 1.25rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.tb-faq summary { cursor: pointer; font-weight: 600; color: rgb(26 43 74); }
.tb-faq details p { margin-top: .6rem; color: #4b5563; line-height: 1.7; }

/* Arabic */
[dir="rtl"] .tb-ticket { left: auto; right: -34px; transform: rotate(3deg); }

/* tablets & phones */
@media (max-width: 1200px) { .tb-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
    .tb-hero, .tb-split, .tb-calc { grid-template-columns: 1fr; }
    .tb-split.is-flip > img { order: 0; }
    .tb-ticket { left: 8px; bottom: -24px; }
    [dir="rtl"] .tb-ticket { right: 8px; }
}
@media (max-width: 767px) { .tb-cards { grid-template-columns: 1fr; } .tb-ticket { display: none; } }
