/* =============================================================
   BProf — product homepage
   Minimal: white canvas, one ink, one accent (mint), blue for links.
   Tokens come from site-premium.css; everything is scoped to
   body.bp-home so the inner pages are untouched.
   ============================================================= */

body.bp-home {
    --bp-ink: var(--hx-p-ink, #0f172a);
    --bp-muted: var(--hx-p-muted, #526077);
    --bp-line: #e6e9f0;
    --bp-soft: #f7f8fb;
    --bp-accent: var(--hx-gold, #3fd69a);
    --bp-accent-ink: #0b7a52;
    --bp-accent-soft: #e8faf2;
    --bp-dark: var(--hx-ink, #0b1220);
    --bp-r: 16px;
    background: #ffffff;
}

body.bp-home .epmp-page { background: #ffffff; }

.bp { color: var(--bp-ink); }

.bp-wrap {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
}

.bp h1, .bp h2, .bp h3 { color: var(--bp-ink); margin: 0; }

.bp p { color: var(--bp-muted); margin: 0; line-height: 1.65; }

.bp ul, .bp ol { list-style: none; margin: 0; padding: 0; }

.bp-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bp-accent-ink);
    margin-bottom: 14px;
}

html[dir="rtl"] .bp-eyebrow { letter-spacing: 0; }

/* ---------- Buttons ---------- */
.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .98rem;
    border: 1px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
    cursor: pointer;
}

.bp-btn:focus-visible { outline: 3px solid var(--hx-teal, #3563e9); outline-offset: 2px; }

.bp-btn-primary { background: var(--bp-dark); color: #ffffff; }
.bp-btn-primary:hover { background: #1c2740; color: #ffffff; transform: translateY(-1px); }

.bp-btn-ghost { color: var(--bp-ink); border-color: var(--bp-line); background: #ffffff; }
.bp-btn-ghost:hover { border-color: var(--bp-ink); color: var(--bp-ink); }

.bp-btn-block { width: 100%; }

/* ---------- Hero ---------- */
.bp-hero { padding: 88px 0 72px; }

.bp-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.bp-hero h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -.035em;
    font-weight: 800;
}

.bp-lead { font-size: 1.12rem; margin-top: 20px !important; max-width: 34em; }

.bp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.bp-hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 28px !important;
    font-size: .92rem;
    color: var(--bp-muted);
}

.bp-hero-notes li, .bp-demo-copy li { display: flex; align-items: center; gap: 8px; }

.bp-hero-notes i, .bp-demo-copy li i { color: var(--bp-accent-ink); font-size: 1.1rem; }

/* Drawn product preview */
.bp-preview { position: relative; }

.bp-window {
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--bp-line);
    box-shadow: 0 30px 70px rgba(15, 23, 42, .12);
    overflow: hidden;
}

.bp-window-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--bp-line); }
.bp-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e2e6ee; }

.bp-window-body { display: flex; min-height: 330px; }

.bp-side {
    width: 58px;
    background: var(--bp-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
}

.bp-side i { width: 22px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.bp-side i.on { background: var(--bp-accent); }

.bp-exam { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 10px; }

.bp-exam-head { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; color: var(--bp-muted); }

.bp-timer { color: var(--bp-ink); }

.bp-progress { height: 6px; border-radius: 6px; background: var(--bp-soft); overflow: hidden; }
.bp-progress span { display: block; height: 100%; background: var(--bp-accent); border-radius: 6px; }

.bp .bp-q { color: var(--bp-ink); font-weight: 700; font-size: 1rem; margin: 8px 0 4px; }

.bp-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--bp-line);
    border-radius: 12px;
    font-size: .9rem;
}

.bp-opt b {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: var(--bp-soft);
    font-size: .78rem;
}

.bp-opt.is-picked { border-color: var(--bp-accent); background: var(--bp-accent-soft); }
.bp-opt.is-picked b { background: var(--bp-accent); color: var(--bp-dark); }

.bp-exam-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

.bp-chip { font-size: .8rem; color: var(--bp-muted); }

.bp-next {
    font-size: .82rem; font-weight: 700;
    padding: 8px 16px; border-radius: 999px;
    background: var(--bp-dark); color: #ffffff;
}

.bp-float {
    position: absolute;
    inset-inline-start: -28px;
    bottom: -26px;
    display: grid;
    grid-template-columns: auto auto;
    align-items: end;
    gap: 2px 16px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid var(--bp-line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .10);
}

.bp-float-label { grid-column: 1 / -1; font-size: .74rem; font-weight: 700; color: var(--bp-muted); }
.bp-float strong { font-size: 1.5rem; letter-spacing: -.02em; }
.bp-bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.bp-bars i { width: 7px; border-radius: 3px; background: var(--bp-accent); opacity: .85; }

/* ---------- Sections ---------- */
.bp-section { padding: 96px 0; scroll-margin-top: 70px; }

.bp-section-alt { background: var(--bp-soft); }

.bp-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.bp-head-left { margin: 0; text-align: start; }

.bp-head h2, .bp-demo-copy h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -.03em;
    font-weight: 800;
}

.bp-head p { margin-top: 16px !important; font-size: 1.05rem; }

/* Features */
.bp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--bp-line);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-r);
    overflow: hidden;
}

.bp-feature { background: #ffffff; padding: 32px 28px; }

.bp-icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--bp-accent-soft);
    color: var(--bp-accent-ink);
    font-size: 1.25rem;
    margin-bottom: 18px;
}

.bp-feature h3, .bp-step h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
.bp-feature p, .bp-step p { font-size: .95rem; }

.bp-extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px !important; }

.bp-extras li {
    padding: 8px 14px;
    border: 1px solid var(--bp-line);
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--bp-muted);
}

/* Steps */
.bp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }

.bp-step { background: #ffffff; border: 1px solid var(--bp-line); border-radius: var(--bp-r); padding: 28px; }

.bp-step-no {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--bp-dark);
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 18px;
}

/* Who */
.bp-who { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.bp-audience { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.bp-audience li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-r);
    font-weight: 700;
}

.bp-audience i { font-size: 1.3rem; color: var(--bp-accent-ink); }

/* Demo */
.bp-demo { background: var(--bp-dark); }

.bp-demo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }

.bp-demo .bp-eyebrow { color: var(--bp-accent); }
.bp-demo-copy h2 { color: #ffffff; }
.bp-demo-copy p { color: #b4bfd2; margin-top: 16px !important; font-size: 1.05rem; }
.bp-demo-copy ul { margin-top: 26px !important; display: grid; gap: 12px; color: #e6ebf3; }
.bp-demo-copy li i { color: var(--bp-accent); }

.bp-card { background: #ffffff; border-radius: 20px; padding: 32px; }

.bp-form { display: grid; gap: 16px; }

.bp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.bp-form label { display: grid; gap: 6px; margin: 0; }

.bp-form label > span { font-size: .86rem; font-weight: 700; color: var(--bp-ink); }
.bp-form label em { font-style: normal; font-weight: 500; color: var(--bp-muted); }

.bp-form input, .bp-form select, .bp-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9dee8;
    border-radius: 12px;
    background: #ffffff;
    font: inherit;
    font-size: .95rem;
    color: var(--bp-ink);
}

.bp-form textarea { resize: vertical; }

.bp-form input:focus, .bp-form select:focus, .bp-form textarea:focus {
    outline: none;
    border-color: var(--hx-teal, #3563e9);
    box-shadow: 0 0 0 3px rgba(53, 99, 233, .15);
}

/* Clipped in place rather than pushed off-screen: a left:-9999px offset
   widens the page to 10,000px in RTL. */
.bp-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.bp-alert {
    padding: 12px 14px;
    margin-bottom: 16px !important;
    border-radius: 12px;
    background: #fef2f2;
    color: #b42318 !important;
    font-size: .92rem;
    font-weight: 600;
}

.bp-done { text-align: center; padding: 28px 8px; }
.bp-done .bp-icon { margin: 0 auto 16px; }
.bp-done h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .bp-hero { padding: 56px 0 64px; }
    .bp-hero-grid, .bp-who, .bp-demo-grid { grid-template-columns: 1fr; gap: 48px; }
    .bp-features { grid-template-columns: 1fr 1fr; }
    .bp-steps { grid-template-columns: 1fr; }
    .bp-float { inset-inline-start: 12px; }
}

@media (max-width: 640px) {
    .bp-section { padding: 72px 0; }
    .bp-features, .bp-audience, .bp-row { grid-template-columns: 1fr; }
    .bp-card { padding: 22px; }
    .bp-actions .bp-btn { flex: 1 1 100%; }
    .bp-window-body { min-height: 0; }
    .bp-side { width: 44px; }
    .bp-exam { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .bp-btn { transition: none; }
    .bp-btn-primary:hover { transform: none; }
}
