/* ==========================================================================
   BBK homepage · Hook, Story, Offer
   Catalog type pairing (Work Sans headings, Space Grotesk text), capped at 600.
   One 1200px frame; prose keeps a readable measure. Mobile-first.
   ========================================================================== */

/* Self-hosted and capped: the faces stop at 600, so nothing renders heavier. */
@font-face {
    font-family: "BBK Work Sans";
    src: url("../assets/fonts/bbk/work-sans-latin.woff2") format("woff2");
    font-weight: 300 600;
    font-display: swap;
}

@font-face {
    font-family: "BBK Space Grotesk";
    src: url("../assets/fonts/bbk/space-grotesk-latin.woff2") format("woff2");
    font-weight: 300 600;
    font-display: swap;
}

@font-face {
    font-family: "Amiri BBK";
    src: url("../assets/bbk-home/fonts/amiri-subset.woff2") format("woff2");
    font-display: swap;
    unicode-range: U+0600-06FF;
}

:root {
    --ink: #131313;
    --white: #ffffff;
    --yellow: #f9dd6f;
    --yellow-deep: #e9c94a;
    --paper: #f8f6f0;
    --line: #ddd7ca;
    --muted: #534c41;
    --display: "BBK Work Sans", ui-sans-serif, system-ui, sans-serif;
    --text: "BBK Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --arabic: "Amiri BBK", "Amiri", "Noto Naskh Arabic", serif;
    --col: 1200px;   /* every section shares one 1200px frame */
    --measure: 62ch; /* prose stays readable inside the wide frame */
    --gutter: 20px;
    --band: 64px;

    /* Compatibility aliases for the legal/about sections added after the
       v3 design system. They now resolve to the current tokens above. */
    --bbk-ink: var(--ink);
    --bbk-white: var(--white);
    --bbk-paper: var(--paper);
    --bbk-line: var(--line);
    --bbk-muted: var(--muted);
    --bbk-yellow: var(--yellow);
    --bbk-yellow-soft: color-mix(in srgb, var(--yellow) 38%, var(--white));
    --s-1: 4px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-9: 96px;
    --r-action: 8px;
    --r-surface: 12px;
    --fs-lead: 20px;
    --header-h: 88px;
}

@media (min-width: 768px) { :root { --gutter: 32px; --band: 88px; } }
@media (min-width: 1024px) { :root { --band: 112px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}

body.bbk-page {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--text);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

:where(.bbk-page) :is(h1, h2, h3, p, ul, ol, figure, blockquote) { margin: 0; }
:where(.bbk-page) :is(ul, ol) { padding: 0; list-style: none; }
:where(.bbk-page) :is(h1, h2, h3) { font-family: var(--display); font-weight: 600; }
:where(.bbk-page) :is(strong, b, th) { font-weight: 600; }
:where(.bbk-page) img { display: block; max-width: 100%; height: auto; }
:where(.bbk-page) a { color: inherit; }
:where(.bbk-page) :is(button, input) { font: inherit; color: inherit; }

.bbk-page :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

.bbk-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.bbk-skip {
    position: fixed; top: 8px; left: 8px; z-index: 100;
    padding: 12px 16px; border-radius: 8px;
    background: var(--yellow); color: var(--ink); font-weight: 600; text-decoration: none;
    transform: translateY(-200%);
}
.bbk-skip:focus { transform: none; }

.bbk-icon { display: block; flex: none; }
/* Hyphenated words (bertahun-tahun, Al-Misykat) never split at the hyphen. */
.bbk-nowrap { white-space: nowrap; }
/* Below 360px a hyphenated word may break rather than push the page into
   horizontal overflow; from 360px up it always stays whole. */
@media (max-width: 359px) {
    .bbk-nowrap { white-space: normal; overflow-wrap: anywhere; }
}

/* ---------- Layout ---------- */
.bbk-container, .bbk-col { width: min(100% - 2 * var(--gutter), var(--col)); margin-inline: auto; }

.bbk-band { padding-block: var(--band); }
.bbk-band:not(.bbk-band--paper) + .bbk-band:not(.bbk-band--paper) { padding-top: 0; }
.bbk-band--paper { background: var(--paper); }

/* Heading left, content right on desktop. */
@media (min-width: 1024px) {
    .bbk-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
    .bbk-split > .bbk-h2, .bbk-split > div:first-child:has(> .bbk-h2) { position: sticky; top: 104px; }
    .bbk-split .bbk-faq { margin-top: 0; }
}

/* ---------- Type ---------- */
.bbk-eyebrow {
    font-size: 14px; font-weight: 600; letter-spacing: 0.12em;
    line-height: 1.3; text-transform: uppercase; color: var(--muted);
}
.bbk-eyebrow--sm { font-size: 12px; }

.bbk-h2 { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.bbk-h2--wide { max-width: 24ch; }
.bbk-lede { max-width: var(--measure); margin-top: 16px; font-size: 20px; line-height: 1.55; }
.bbk-lede--flush { margin-top: 24px; }
.bbk-body { max-width: var(--measure); margin-top: 16px; color: var(--muted); }

@media (min-width: 768px) {
    body.bbk-page { font-size: 19px; }
    .bbk-h2 { font-size: 42px; }
    .bbk-lede { font-size: 22px; }
}
@media (min-width: 1024px) { .bbk-lede--flush { margin-top: 0; } }

/* Brush underline under one key word; drawn in once on reveal. */
.bbk-mark { position: relative; white-space: nowrap; }
@media (max-width: 359px) {
    .bbk-mark { white-space: normal; overflow-wrap: anywhere; }
}
.bbk-mark__stroke { position: absolute; left: 0; bottom: -0.1em; z-index: -1; width: 100%; height: 0.24em; overflow: visible; }
.bbk-mark__stroke path { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.bbk-hero__title, .bbk-h2 { position: relative; z-index: 0; }

/* ---------- Buttons ---------- */
.bbk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 12px 24px;
    border: 2px solid transparent; border-radius: 8px;
    font-size: 17px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.bbk-btn--primary { background: var(--yellow); color: var(--ink); }
.bbk-btn--primary:hover { background: #efd25f; }
.bbk-btn--primary:active { background: #e5c84f; }
.bbk-btn--secondary { background: var(--white); border-color: var(--ink); color: var(--ink); }
.bbk-btn--secondary:hover { background: var(--paper); }
.bbk-btn--ink { background: var(--ink); color: var(--white); }
.bbk-btn--ink:hover { background: #2e2e2e; }

.bbk-link {
    display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px;
    font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.bbk-link:hover { text-decoration-color: var(--yellow-deep); }

/* ---------- Header ---------- */
.bbk-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.bbk-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.bbk-header__logo { display: inline-flex; padding-block: 8px; }
.bbk-header__logo img { width: auto; height: 32px; }
.bbk-header__nav, .bbk-header__login { display: none; }
.bbk-header__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-right: -8px; padding: 0;
    border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer;
}
.bbk-header__toggle-close, .bbk-header.is-menu-open .bbk-header__toggle-open { display: none; }
.bbk-header.is-menu-open .bbk-header__toggle-close { display: block; }
.bbk-mobile-menu {
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -24px rgba(19, 19, 19, 0.35);
}
.bbk-mobile-menu__list { padding-block: 8px 16px; }
.bbk-mobile-menu__link {
    display: flex; align-items: center; gap: 8px; min-height: 52px;
    font-size: 18px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line);
}
.bbk-mobile-menu__list li:last-child .bbk-mobile-menu__link { border-bottom: 0; }

@media (min-width: 1024px) {
    .bbk-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; height: 72px; }
    .bbk-header__logo { justify-self: start; }
    .bbk-header__logo img { height: 36px; }
    .bbk-header__nav { display: block; }
    .bbk-header__links { display: flex; gap: 36px; }
    .bbk-header__link, .bbk-header__login {
        display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
        font-size: 17px; font-weight: 500; text-decoration: none;
    }
    .bbk-header__link:hover, .bbk-header__login:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
    .bbk-header__login { justify-self: end; }
    .bbk-header__toggle, .bbk-mobile-menu { display: none !important; }
}

/* ==========================================================================
   HOOK
   ========================================================================== */

/* ---------- 1. Hero ---------- */
.bbk-hero { padding-top: 40px; padding-bottom: var(--band); }
.bbk-hero__title { font-size: 44px; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.bbk-hero__lead { margin-top: 20px; max-width: 40ch; font-size: 19px; line-height: 1.55; color: var(--muted); }
.bbk-hero__lead strong { color: var(--ink); }
.bbk-hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.bbk-hero__visual { position: relative; margin-top: 40px; }
.bbk-illu { display: block; width: 100%; height: auto; }

.bbk-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 24px; font-size: 16px; line-height: 1.45; color: var(--muted); }
.bbk-proof strong { color: var(--ink); }
.bbk-proof__stars { display: inline-flex; gap: 2px; }
.bbk-proof__star { width: 18px; height: 18px; fill: var(--yellow-deep); }

@media (min-width: 640px) { .bbk-hero__actions { flex-direction: row; flex-wrap: wrap; } }

@media (min-width: 768px) {
    .bbk-hero { padding-top: 72px; }
    .bbk-hero__title { font-size: 60px; }
    .bbk-hero__lead { font-size: 21px; }
}

@media (min-width: 1024px) {
    .bbk-hero { padding-top: 64px; }
    .bbk-hero__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
    /* The text column is 0.9fr, so the title is sized to stay on two lines. */
    .bbk-hero__title { font-size: 52px; }
    .bbk-hero__visual { margin-top: 0; }
}

@media (min-width: 1280px) { .bbk-hero__title { font-size: 60px; } }

/* Section illustrations reserve their full canvas before lazy loading. */
.bbk-illu-slot { width: 100%; max-width: 520px; margin-top: 24px; }
.bbk-illu-slot picture { display: block; overflow: hidden; border-radius: 12px; }
.bbk-illu-slot--audience { max-width: none; margin: 0 auto 24px; }

@media (max-width: 1023px) {
    .bbk-story__split { display: flex; flex-direction: column; }
    .bbk-story__heading, .bbk-story__content { display: contents; }
    .bbk-illu-slot--story { order: 1; }
    .bbk-story__ending { order: 2; }
}

@media (min-width: 1024px) {
    .bbk-illu-slot--method { margin: 0; justify-self: end; }
    .bbk-method__heading {
        display: grid; gap: 48px; align-items: center;
        grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    }
}

/* ---------- 2. Pains (tick what applies) ---------- */
.bbk-pains { margin-top: 28px; }
.bbk-pains__list { display: grid; gap: 10px; }
.bbk-pain {
    position: relative; display: flex; align-items: center; gap: 14px;
    min-height: 60px; padding: 14px 18px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--white);
    font-size: 17px; line-height: 1.4; cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.bbk-pain:hover { border-color: #b9b09d; }
.bbk-pain__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bbk-pain__check {
    display: flex; flex: none; align-items: center; justify-content: center;
    width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 6px; background: var(--white);
}
.bbk-pain__check svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.25s ease; }
.bbk-pain:has(:checked) { border-color: var(--ink); }
.bbk-pain:has(:checked) .bbk-pain__check { background: var(--yellow); }
.bbk-pain:has(:checked) .bbk-pain__check svg { stroke-dashoffset: 0; }
.bbk-pain:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

.bbk-pains__reply { display: none; margin-top: 20px; padding: 20px 22px; border-radius: 12px; background: var(--white); border: 1px solid var(--ink); }
.bbk-pains__reply p { max-width: var(--measure); }
.bbk-pains:has(:checked) .bbk-pains__reply { display: block; animation: bbk-rise 0.3s ease-out; }

@media (min-width: 1024px) { .bbk-pains { margin-top: 0; } }

/* ==========================================================================
   STORY
   ========================================================================== */

/* ---------- 3. Why it fails ---------- */
.bbk-fragments { display: grid; gap: 0; margin-top: 20px; max-width: 520px; border-top: 1px solid var(--line); }
.bbk-fragments li { display: flex; align-items: center; gap: 14px; min-height: 56px; border-bottom: 1px solid var(--line); font-size: 18px; }
.bbk-fragments__x { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #ece6d8; }
.bbk-fragments__x::before, .bbk-fragments__x::after {
    content: ""; position: absolute; left: 7px; top: 12px; width: 12px; height: 2px; border-radius: 2px; background: var(--muted);
}
.bbk-fragments__x::before { transform: rotate(45deg); }
.bbk-fragments__x::after { transform: rotate(-45deg); }

/* One bare word, three readings. Tap a reading to see its harakat. */
.bbk-readings { max-width: 520px; margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.bbk-readings__bare { font-family: var(--arabic); font-size: 72px; line-height: 1.35; text-align: center; transition: opacity 0.2s ease; }
.bbk-readings__meaning { min-height: 1.5em; font-size: 15px; font-weight: 600; text-align: center; color: var(--muted); }
.bbk-readings__list { display: grid; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.bbk-readings__list > li, .bbk-reading {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-size: 16px; color: var(--muted);
}
.bbk-readings__list [lang="ar"] { font-family: var(--arabic); font-size: 32px; line-height: 1.5; color: var(--ink); }
.bbk-reading {
    width: 100%; min-height: 56px; padding: 4px 14px;
    border: 1px solid transparent; border-radius: 8px; background: none; cursor: pointer; text-align: left;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.bbk-reading:hover { background: var(--paper); }
.bbk-reading[aria-pressed="true"] { border-color: var(--ink); background: #fdf5d3; color: var(--ink); }
.bbk-readings figcaption { margin-top: 14px; font-size: 15px; line-height: 1.5; }
.bbk-readings__hint { display: block; margin-top: 4px; color: var(--muted); }

/* ---------- 4. Method ---------- */
.bbk-steps { position: relative; margin-top: 40px; border-top: 1px solid var(--line); }
.bbk-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding-block: 28px; border-bottom: 1px solid var(--line); }
/* Step number sits in the eight-point star from the kitab cover. */
.bbk-step__num {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    background: var(--yellow); font-family: var(--display); font-size: 18px; font-weight: 600;
    clip-path: polygon(50% 0%, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%, 100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0% 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%);
}
.bbk-step__title { padding-top: 8px; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.bbk-step__body { margin-top: 8px; color: var(--muted); }
.bbk-steps + .bbk-lede { margin-top: 32px; }

@media (min-width: 768px) {
    .bbk-step { grid-template-columns: 60px minmax(0, 1fr); gap: 28px; padding-block: 32px; }
    .bbk-step__num { width: 60px; height: 60px; font-size: 22px; }
    .bbk-step__title { padding-top: 12px; font-size: 24px; }
}

@media (min-width: 1024px) {
    .bbk-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
    .bbk-step { grid-template-columns: minmax(0, 1fr); gap: 20px; border-bottom: 0; padding-block: 32px 0; }
    .bbk-step__title { padding-top: 0; }
}

/* Contrast table: the old way against the method. */
.bbk-compare { margin-top: 56px; }
.bbk-compare__title { font-size: 22px; line-height: 1.3; }
.bbk-compare__table { width: 100%; max-width: 860px; margin-top: 20px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); font-size: 16px; }
.bbk-compare__table th, .bbk-compare__table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.bbk-compare__table tr:last-child td { border-bottom: 0; }
.bbk-compare__table th { font-family: var(--display); font-size: 15px; background: var(--paper); }
.bbk-compare__table th:last-child { background: var(--yellow); }
.bbk-compare__table td:first-child { width: 50%; color: var(--muted); }
@media (max-width: 767px) {
    .bbk-compare__table td:first-child { width: auto; overflow-wrap: anywhere; }
    .bbk-compare__table th, .bbk-compare__table td { overflow-wrap: anywhere; }
}
.bbk-compare__table td:last-child { font-weight: 600; }

@media (min-width: 768px) {
    .bbk-compare__table { font-size: 18px; }
    .bbk-compare__table th, .bbk-compare__table td { padding: 18px 24px; }
}

/* ---------- 5. Mentor ---------- */
.bbk-mentor { display: grid; gap: 32px; }
.bbk-mentor__photo { overflow: hidden; max-width: 440px; border-radius: 12px; aspect-ratio: 1; background: var(--paper); }
.bbk-mentor__photo img { width: 100%; height: 100%; object-fit: cover; }
.bbk-mentor__name { margin-top: 24px; font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.25; }
.bbk-mentor__role { margin-top: 4px; font-size: 16px; color: var(--muted); }
.bbk-quote { max-width: var(--measure); margin-top: 32px; padding: 24px; border-radius: 12px; background: var(--paper); }
.bbk-quote p { font-family: var(--display); font-size: 21px; font-weight: 500; line-height: 1.45; }
.bbk-quote footer { margin-top: 12px; font-size: 15px; color: var(--muted); }

@media (min-width: 1024px) {
    .bbk-mentor { grid-template-columns: 440px minmax(0, 1fr); gap: 72px; align-items: center; }
    .bbk-quote p { font-size: 23px; }
}

/* ==========================================================================
   OFFER
   ========================================================================== */

/* ---------- 6. Audience + paths ---------- */
.bbk-audience { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.bbk-audience__label { font-size: 16px; font-weight: 600; }
.bbk-audience__list { display: flex; flex-wrap: wrap; gap: 8px; }
.bbk-audience__list li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 15px; }

.bbk-offers { display: grid; gap: 20px; margin-top: 36px; }
.bbk-offer {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--line); border-radius: 12px; background: var(--white);
    transition: border-color 0.2s ease;
}
.bbk-offer:hover { border-color: var(--ink); }
.bbk-offer__thumb { overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper); }
.bbk-offer__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.bbk-offer:hover .bbk-offer__thumb img { transform: scale(1.03); }
.bbk-offer__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 24px; }
.bbk-offer__label { font-size: 15px; font-weight: 600; color: var(--muted); }
.bbk-offer__title { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; }
.bbk-offer__desc {
    color: var(--muted);
    font-size: 17px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}
.bbk-offer__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: auto; padding-top: 16px; }
.bbk-offer__now { font-family: var(--display); font-size: 26px; font-weight: 600; }
.bbk-offer__was { font-size: 16px; color: var(--muted); }
.bbk-offer__ask { font-size: 16px; font-weight: 600; color: var(--muted); }
.bbk-offer .bbk-btn { width: 100%; margin-top: 12px; }
.bbk-offers__help { margin-top: 28px; font-size: 17px; color: var(--muted); }
.bbk-offers__help a { color: var(--ink); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }

@media (min-width: 768px) and (max-width: 1023px) {
    .bbk-offer:has(.bbk-offer__thumb) { display: grid; grid-template-columns: 280px minmax(0, 1fr); }
    .bbk-offer__thumb { aspect-ratio: auto; min-height: 100%; }
}

@media (min-width: 1024px) {
    .bbk-offers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- 7. FAQ ---------- */
.bbk-faq { margin-top: 32px; border-top: 1px solid var(--line); }
.bbk-faq__item { border-bottom: 1px solid var(--line); }
.bbk-faq__q {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 64px; padding-block: 16px;
    font-size: 19px; font-weight: 600; line-height: 1.35; list-style: none; cursor: pointer;
}
.bbk-faq__q::-webkit-details-marker { display: none; }
.bbk-faq__q:hover span { text-decoration: underline; text-underline-offset: 4px; }
.bbk-faq__chevron { transition: transform 0.15s ease; }
.bbk-faq__item[open] .bbk-faq__chevron { transform: rotate(180deg); }
.bbk-faq__a { max-width: var(--measure); padding-bottom: 24px; color: var(--muted); }

@supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .bbk-faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.25s ease, content-visibility 0.25s allow-discrete; }
    .bbk-faq__item[open]::details-content { block-size: auto; }
}

/* ---------- 8. Closing ---------- */
.bbk-closing { position: relative; overflow: hidden; }
.bbk-closing__grid { display: grid; gap: 32px; align-items: center; }
.bbk-closing__text { max-width: 720px; }
.bbk-closing .bbk-h2 { max-width: 18ch; }
.bbk-closing__actions { margin-top: 28px; }
.bbk-closing__tagline { margin-top: 36px; font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--muted); }
.bbk-illu-slot--closing { position: relative; isolation: isolate; grid-row: 1; width: min(100%, 440px); margin: 0; justify-self: center; }
.bbk-closing__star {
    position: absolute; z-index: -1; inset: 50% auto auto 50%;
    width: 112%; height: 112%; transform: translate(-50%, -50%);
    fill: none; stroke: #e7dfcc; stroke-width: 2; pointer-events: none;
}
.bbk-closing__star :is(path, circle) { stroke-dasharray: 1; stroke-dashoffset: 0; }
/* The star is 112% of the figure; the phone size keeps it inside a 320px screen,
   and on desktop it stays inside the 1200px frame from 1024px up. */
@media (max-width: 1023px) {
    .bbk-illu-slot--closing { width: min(100%, 300px); }
}
@media (min-width: 1024px) {
    .bbk-closing__grid { grid-template-columns: minmax(0, 720px) minmax(0, 460px); justify-content: space-between; gap: 48px; }
    .bbk-illu-slot--closing { grid-row: auto; width: 100%; }
}

/* ---------- Sticky phone CTA ---------- */
.bbk-stickycta {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -12px 24px -20px rgba(19, 19, 19, 0.4);
    animation: bbk-rise 0.25s ease-out;
}
.bbk-stickycta .bbk-btn { width: 100%; }
@media (min-width: 768px) { .bbk-stickycta { display: none !important; } }

/* ---------- Footer ---------- */
.bbk-footer { padding-block: 32px; border-top: 1px solid var(--line); }
.bbk-footer__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.bbk-footer__logo { display: inline-flex; padding-block: 6px; }
.bbk-footer__logo img { width: auto; height: 32px; }
.bbk-footer__links { display: flex; flex-wrap: wrap; column-gap: 24px; }
.bbk-footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; text-decoration: none; }
.bbk-footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bbk-footer__copy { font-size: 14px; color: var(--muted); }
@media (min-width: 1024px) {
    .bbk-footer__inner { flex-direction: row; align-items: center; gap: 32px; }
    .bbk-footer__copy { margin-left: auto; }
}

/* ==========================================================================
   Ornaments
   ========================================================================== */
.bbk-harakat { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bbk-harakat__mark { fill: none; stroke-width: 7; stroke-linecap: round; }
.bbk-harakat__mark--1, .bbk-harakat__mark--3 { stroke: var(--ink); }
.bbk-harakat__mark--2, .bbk-harakat__mark--4 { stroke: var(--yellow-deep); }
.bbk-harakat__mark--3 { stroke-width: 5; }

/* ==========================================================================
   Motion. Runs once per element, only with JS and only when motion is welcome.
   Without either, every ornament renders in its final state.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    .bbk-js [data-reveal] > picture > .bbk-illu {
        opacity: 0; transform: translateY(12px);
        transition: opacity 0.5s ease-out 0.15s, transform 0.5s ease-out 0.15s;
    }
    .bbk-js .is-in > picture > .bbk-illu { opacity: 1; transform: none; }

    .bbk-js [data-reveal] .bbk-mark__stroke path,
    .bbk-js .bbk-mark[data-reveal] .bbk-mark__stroke path { stroke-dashoffset: 1; transition: stroke-dashoffset 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.35s; }
    .bbk-js .is-in .bbk-mark__stroke path,
    .bbk-js .bbk-mark.is-in .bbk-mark__stroke path { stroke-dashoffset: 0; }

    /* Harakat settle in, then drift a few pixels on a slow loop. */
    .bbk-js .bbk-harakat__mark { opacity: 0; transform-box: fill-box; transform-origin: center; }
    .bbk-js .is-in .bbk-harakat__mark { animation: bbk-settle 0.6s ease-out forwards, bbk-drift 7s ease-in-out 0.6s infinite alternate; }
    .bbk-js .is-in .bbk-harakat__mark--2 { animation-delay: 0.15s, 0.75s; animation-duration: 0.6s, 8.5s; }
    .bbk-js .is-in .bbk-harakat__mark--3 { animation-delay: 0.3s, 0.9s; animation-duration: 0.6s, 9.5s; }
    .bbk-js .is-in .bbk-harakat__mark--4 { animation-delay: 0.45s, 1.05s; animation-duration: 0.6s, 7.5s; }

    /* Hero proof line lands after the actions. */
    .bbk-js .bbk-proof { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease 0.6s, transform 0.4s ease 0.6s; }
    .bbk-js .is-in .bbk-proof { opacity: 1; transform: none; }

    /* Readings: each reading lands under the bare word. */
    .bbk-js .bbk-readings__list > li, .bbk-js .bbk-readings figcaption { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease; }
    .bbk-js .bbk-readings.is-in .bbk-readings__list > li, .bbk-js .bbk-readings.is-in figcaption { opacity: 1; transform: none; }
    .bbk-js .bbk-readings.is-in .bbk-readings__list > li:nth-child(1) { transition-delay: 0.3s; }
    .bbk-js .bbk-readings.is-in .bbk-readings__list > li:nth-child(2) { transition-delay: 0.6s; }
    .bbk-js .bbk-readings.is-in .bbk-readings__list > li:nth-child(3) { transition-delay: 0.9s; }
    .bbk-js .bbk-readings.is-in figcaption { transition-delay: 1.2s; }

    /* Steps: the rule draws across, then each star turns into place. */
    .bbk-js .bbk-steps { border-top-color: transparent; }
    .bbk-js .bbk-steps::before {
        content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
        background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
    }
    .bbk-js .bbk-steps.is-in::before { transform: none; }
    .bbk-js .bbk-step__num { transform: rotate(-45deg) scale(0.6); opacity: 0; transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.3s ease; }
    .bbk-js .bbk-steps.is-in .bbk-step__num { transform: none; opacity: 1; }
    .bbk-js .bbk-steps.is-in .bbk-step:nth-child(2) .bbk-step__num { transition-delay: 0.15s; }
    .bbk-js .bbk-steps.is-in .bbk-step:nth-child(3) .bbk-step__num { transition-delay: 0.3s; }
    .bbk-js .bbk-steps.is-in .bbk-step:nth-child(4) .bbk-step__num { transition-delay: 0.45s; }

    /* Closing star traces itself once. */
    .bbk-js .bbk-closing__star :is(path, circle) { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease-in-out; }
    .bbk-js .bbk-closing.is-in .bbk-closing__star :is(path, circle) { stroke-dashoffset: 0; }
    .bbk-js .bbk-closing.is-in .bbk-closing__star path:nth-child(2) { transition-delay: 0.3s; }
    .bbk-js .bbk-closing.is-in .bbk-closing__star circle { transition-delay: 0.6s; }
}

@media (prefers-reduced-motion: reduce) {
    .bbk-pains__reply, .bbk-stickycta { animation: none !important; }
}

@keyframes bbk-settle { from { opacity: 0; transform: translateY(10px) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes bbk-drift { from { opacity: 1; transform: translateY(0) rotate(0); } to { opacity: 1; transform: translateY(-8px) rotate(4deg); } }
@keyframes bbk-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* ---------- Tentang BBK (standard band + split) ---------- */
.bbk-band--about {
    border-top: 1px solid var(--line);
}

.bbk-about__content {
    max-width: var(--measure);
}

.bbk-about__promise {
    position: relative;
    margin-top: 28px;
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    font-family: var(--display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.bbk-about__promise::before {
    content: "Janji BBK";
    display: block;
    margin-bottom: 8px;
    font-family: var(--text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (min-width: 768px) {
    .bbk-about__promise { font-size: 28px; }
}

/* ---------- Public legal identity + legal documents ---------- */
.bbk-identity {
    background: var(--bbk-white);
    border-block: 1px solid var(--bbk-line);
    padding-block: var(--s-7);
}

.bbk-identity__eyebrow,
.bbk-legal__eyebrow {
    margin: 0 0 var(--s-3);
    color: var(--bbk-muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bbk-identity__title {
    margin: 0 0 var(--s-5);
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.bbk-identity__grid {
    display: grid;
    gap: var(--s-4);
}

.bbk-identity__row { display: grid; gap: var(--s-1); }
.bbk-identity__label { color: var(--bbk-muted); font-size: 14px; }
.bbk-identity__value { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }

.bbk-identity__trust {
    margin-top: var(--s-5);
    padding: var(--s-4);
    border-radius: var(--r-surface);
    background: var(--bbk-paper);
    font-size: 16px;
    line-height: 1.6;
}

.bbk-identity__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
    margin-top: var(--s-4);
}

.bbk-identity__links a,
.bbk-legal__related a {
    color: var(--bbk-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.bbk-legal { background: var(--bbk-white); padding-block: var(--s-7) var(--s-9); }
.bbk-legal__inner { max-width: 860px; }
.bbk-legal__title { margin: 0 0 var(--s-4); font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }

.bbk-legal__notice {
    margin: 0 0 var(--s-6);
    padding: var(--s-3) var(--s-4);
    border-left: 4px solid var(--bbk-yellow);
    border-radius: var(--r-action);
    background: var(--bbk-yellow-soft);
    color: var(--bbk-ink);
    font-size: 15px;
    line-height: 1.5;
}

.bbk-legal__lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--bbk-ink); }
.bbk-legal__section { margin-top: var(--s-6); }
.bbk-legal__h2 { margin: 0 0 var(--s-3); font-size: 24px; line-height: 1.25; scroll-margin-top: calc(var(--header-h) + 16px); }
.bbk-legal__p { margin: 0 0 var(--s-3); font-size: 16px; line-height: 1.75; color: var(--bbk-muted); overflow-wrap: anywhere; }
.bbk-legal__p a { color: var(--bbk-ink); text-decoration: underline; text-underline-offset: 3px; }
.bbk-legal__related { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--bbk-line); }

.bbk-identity a:focus-visible,
.bbk-legal a:focus-visible { outline: 2px solid var(--bbk-ink); outline-offset: 3px; }

@media (min-width: 768px) {
    .bbk-identity__title { font-size: 34px; }
    .bbk-identity__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
    .bbk-identity__trust { padding: var(--s-5); font-size: 17px; }
    .bbk-legal__title { font-size: 40px; }
    .bbk-legal__p { font-size: 17px; }
}
