/* ==========================================================================
   EBPHTB Kabupaten Batang - landing page design system
   --------------------------------------------------------------------------
   Only loaded by resources/views/welcome.blade.php (via @push('styles')).
   Every selector is scoped under `.bphtb` so the shared Cuba/Bootstrap theme
   used by the dashboard, login and the other front-end pages is untouched.

   Palette: LocalGuide design system (localguide-DESIGN.md).
     Primary red-orange #EA580C anchors the hierarchy; teal #0D9488 and
     yellow #EAB308 are the supporting accents; page/card background #FFFFFF.
   Where the brand hue is used as TEXT on white it is darkened to a
   text-safe member of the same ramp (#C2410C / #0F766E) so every piece of
   copy clears 4.5:1. The bright brand hue stays on graphics, icons and
   large marks where the 3:1 non-text rule applies.
   ========================================================================== */

.bphtb {
    /* ---- LocalGuide palette -------------------------------------- */
    --lg-primary: #ea580c;        /* red-orange - actions, markers */
    --lg-primary-ink: #c2410c;    /* red-orange, text-safe on white */
    --lg-primary-deep: #9a3412;   /* hover / pressed */
    --lg-primary-soft: #fff1e7;   /* tint */
    --lg-teal: #0d9488;           /* teal - links, secondary */
    --lg-teal-ink: #0f766e;       /* teal, text-safe on white */
    --lg-teal-soft: #f0fdfa;
    --lg-yellow: #eab308;         /* yellow - highlights, badges */
    --lg-yellow-soft: #fef9c3;
    --lg-success: #16a34a;
    --lg-warning: #eab308;
    --lg-error: #dc2626;
    --lg-info: #0d9488;

    /* ---- Semantic tokens ----------------------------------------- */
    --color-primary: var(--lg-primary);
    --color-on-primary: #ffffff;
    --color-secondary: var(--lg-teal-ink);
    --color-accent: var(--lg-primary-ink);       /* legacy alias: text accent */
    --color-accent-strong: var(--lg-primary-deep);
    --color-accent-soft: var(--lg-primary-soft);
    --lg-background: #ffffff;
    --lg-surface: #ffffff;
    --lg-ink: #1c1917;            /* foreground */
    --lg-muted: #f5f5f4;
    --lg-muted-ink: #57534e;      /* muted text, text-safe on white */
    --lg-border: #e7e5e4;
    --lg-card: #ffffff;
    --color-destructive: var(--lg-error);
    --color-ring: var(--lg-primary);

    /* ---- Type ------------------------------------------------------ */
    --font-display: 'EB Garamond', 'Iowan Old Style', 'Times New Roman', serif;
    --font-body: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* ---- Shape - one radius system --------------------------------- */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* ---- Layout ---------------------------------------------------- */
    --btg-hh: 68px;
    --shadow-1: 0 1px 2px rgba(28, 25, 23, .06), 0 8px 24px -12px rgba(28, 25, 23, .16);
    --shadow-2: 0 2px 4px rgba(28, 25, 23, .06), 0 28px 60px -28px rgba(154, 52, 18, .28);

    /* ---- Motion ---------------------------------------------------- */
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--lg-ink);
    background: var(--lg-card);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.bphtb *,
.bphtb *::before,
.bphtb *::after { box-sizing: border-box; }

.bphtb img { max-width: 100%; height: auto; }

.bphtb h1,
.bphtb h2,
.bphtb h3,
.bphtb h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--lg-ink);
    margin: 0;
    text-wrap: balance;
}

.bphtb p { margin: 0; }

/* :where() keeps the base link colour at class specificity so component
   rules further down (buttons, nav, brand) can win on document order. */
.bphtb :where(a) {
    color: var(--lg-teal-ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.bphtb :where(a):hover { color: var(--lg-primary-ink); }

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

.bphtb strong { font-weight: 700; color: var(--lg-ink); }

/* Feather icons: one stroke weight for the whole page */
.bphtb svg.feather {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    vertical-align: -.18em;
    stroke-width: 1.75;
}
.bphtb .btg-chev svg.feather { width: 20px; height: 20px; vertical-align: middle; }
.bphtb .btg-btn-icon svg.feather { width: 20px; height: 20px; vertical-align: middle; }
.bphtb .btg-benefit svg.feather { width: 20px; height: 20px; vertical-align: top; }
.bphtb .btg-doc svg.feather { width: 16px; height: 16px; vertical-align: top; }
.bphtb .btg-contact-row svg.feather { width: 18px; height: 18px; vertical-align: middle; }
.bphtb .btg-inline-link svg.feather { width: 16px; height: 16px; vertical-align: middle; }

/* ---------------------------------------------------------------- surfaces
   The parts of the browser the design does not draw still belong to it. */
.bphtb ::selection { background: #fed7aa; color: #7c2d12; }
.bphtb ::-moz-selection { background: #fed7aa; color: #7c2d12; }

.bphtb :focus-visible {
    outline: 3px solid var(--lg-primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}
.bphtb a:focus:not(:focus-visible),
.bphtb button:focus:not(:focus-visible) { outline: none; }

/* ---------------------------------------------------------------- skip link
   Keyboard users get to `main` before the navigation. */
.btg-skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 60;
    padding: .7rem 1.1rem;
    background: var(--lg-ink);
    color: #ffffff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top .18s ease;
}
.btg-skip:focus { top: calc(var(--btg-hh) + .75rem); color: #ffffff; }

/* ---------------------------------------------------------------- layout */
.btg-shell {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.bphtb section[id] { scroll-margin-top: calc(var(--btg-hh) + 20px); }

.btg-section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.btg-section--paper {
    background: var(--lg-muted);
    border-block: 1px solid var(--lg-border);
}

.btg-section-head {
    max-width: 62ch;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.btg-section-head h2 {
    font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: -.015em;
}
.btg-section-head p {
    margin-top: .85rem;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--lg-muted-ink);
}

/* ---------------------------------------------------------------- header */
.btg-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--lg-border);
}

.btg-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 1rem;
    min-height: var(--btg-hh);
}

.btg-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    color: inherit;
    flex: none;
}
.btg-brand:hover { color: inherit; }
.btg-brand img { width: auto; height: 38px; display: block; }
.btg-brand-name {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1875rem;
    letter-spacing: .01em;
    line-height: 1.1;
    color: var(--lg-ink);
}
.btg-brand-sub {
    display: block;
    font-size: .75rem;
    line-height: 1.3;
    color: var(--lg-muted-ink);
    letter-spacing: .01em;
}

.btg-nav {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-left: auto;
}
.btg-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .7rem;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-weight: 600;
    color: var(--lg-muted-ink);
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background-color .18s ease;
}
.btg-nav-link:hover { color: var(--lg-ink); background: var(--lg-muted); }
.btg-nav-link.is-current { color: var(--lg-primary-ink); }

.btg-burger {
    margin-left: auto;
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-content: center;
    gap: 5px;
    padding: 0;
    background: none;
    border: 1px solid var(--lg-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.btg-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--lg-muted-ink);
    transition: transform .22s var(--ease-out), opacity .14s ease;
}
.btg-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btg-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.btg-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btg-nav-panel { width: 100%; }
@media (max-width: 991.98px) {
    .btg-nav-panel { padding-bottom: 1rem; }
    .btg-nav {
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        margin-left: 0;
        padding-top: .5rem;
        border-top: 1px solid var(--lg-border);
    }
    .btg-nav-link { font-size: 1rem; padding: .7rem .25rem; }
    .btg-nav .btg-btn { margin-top: .6rem; justify-content: center; min-height: 44px; }
}
@media (min-width: 992px) {
    .btg-header-inner { flex-wrap: nowrap; gap: 1rem; }
    .btg-burger { display: none; }
    .btg-nav-panel.collapse { display: block !important; height: auto !important; }
    .btg-nav-panel { width: auto; }
}

/* ---------------------------------------------------------------- buttons */
.btg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 44px;
    padding: .78rem 1.35rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .9688rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s ease, background-position .35s ease, border-color .18s ease,
        color .18s ease, box-shadow .28s ease, transform .18s ease;
}
/* Solid text-safe red-orange ramp (5.2:1 -> 7.5:1) so the white label
   clears AA at every point of the fill. */
.btg-btn--primary {
    background-image: linear-gradient(135deg, var(--lg-primary-ink), var(--lg-primary-deep));
    background-size: 200% 200%;
    background-position: 0 50%;
    color: #ffffff;
    box-shadow: 0 10px 26px -10px rgba(194, 65, 12, .55);
}
.btg-btn--primary:hover,
.btg-btn--primary:focus-visible {
    color: #ffffff;
    background-position: 100% 50%;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px -10px rgba(154, 52, 18, .7);
}
.btg-btn--primary:active { transform: translateY(1px); }

.btg-btn--ghost {
    background: transparent;
    color: var(--lg-ink);
    border-color: var(--lg-border);
}
.btg-btn--ghost:hover {
    border-color: var(--lg-primary);
    color: var(--lg-primary-ink);
    background: var(--lg-primary-soft);
    transform: translateY(-1px);
}
.btg-btn--ghost:active { transform: translateY(1px); }

.btg-btn--sm { min-height: 44px; padding: .5rem 1rem; font-size: .9063rem; }
.btg-btn--lg { padding: .95rem 1.7rem; font-size: 1.0313rem; }

.btg-btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--lg-border);
    border-radius: var(--radius-sm);
    background: var(--lg-surface);
    color: var(--lg-muted-ink);
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.btg-btn-icon:hover { border-color: var(--lg-primary); color: var(--lg-primary-ink); background: var(--lg-primary-soft); }
.btg-btn-icon:disabled { opacity: .38; cursor: not-allowed; }

/* ---------------------------------------------------------------- hero
   Light aurora stage: warm mesh gradient (red-orange / teal / yellow) on a
   white base, floating glow, faint grid. One centred column, one CTA. */
.btg-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(120% 90% at 15% 0%, #fff1e7 0%, transparent 55%),
        radial-gradient(120% 100% at 85% 8%, #f0fdfa 0%, transparent 60%),
        linear-gradient(180deg, #fffbf5 0%, #ffffff 72%);
    color: var(--lg-ink);
}

/* animated mesh - the "aurora" itself */
.btg-hero::before {
    content: '';
    position: absolute;
    inset: -30%;
    z-index: -2;
    background:
        radial-gradient(38% 38% at 20% 26%, rgba(234, 88, 12, .18), transparent 60%),
        radial-gradient(40% 40% at 80% 20%, rgba(13, 148, 136, .16), transparent 62%),
        radial-gradient(44% 44% at 60% 82%, rgba(234, 179, 8, .18), transparent 62%),
        radial-gradient(32% 32% at 10% 84%, rgba(249, 115, 22, .14), transparent 60%);
    filter: blur(20px) saturate(1.15);
    animation: btg-aurora 20s ease-in-out infinite alternate;
}
@keyframes btg-aurora {
    0% { transform: translate3d(-2%, -1%, 0) scale(1.05) rotate(0deg); }
    50% { transform: translate3d(2%, 2%, 0) scale(1.13) rotate(4deg); }
    100% { transform: translate3d(1%, -2%, 0) scale(1.08) rotate(-3deg); }
}

/* faint grid + top vignette, fading into the copy */
.btg-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(120, 113, 108, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 113, 108, .07) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(125% 82% at 50% 0%, #000 32%, transparent 78%);
    mask-image: radial-gradient(125% 82% at 50% 0%, #000 32%, transparent 78%);
    pointer-events: none;
}

/* floating glow orbs - decorative only */
.btg-hero-orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.btg-hero-orbs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(42px);
    opacity: .45;
    animation: btg-float 14s ease-in-out infinite;
}
.btg-hero-orbs span:nth-child(1) {
    width: 220px; height: 220px; left: 6%; top: 12%;
    background: radial-gradient(circle, #ea580c, transparent 70%);
}
.btg-hero-orbs span:nth-child(2) {
    width: 280px; height: 280px; right: 8%; top: 20%; animation-delay: -4s;
    background: radial-gradient(circle, #0d9488, transparent 70%);
}
.btg-hero-orbs span:nth-child(3) {
    width: 180px; height: 180px; left: 44%; bottom: 6%; animation-delay: -8s;
    background: radial-gradient(circle, #eab308, transparent 70%);
}
@keyframes btg-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -26px, 0); }
}

.btg-hero > .btg-shell { position: relative; z-index: 1; }

.btg-hero-slides { position: relative; display: grid; }
.btg-hero-slide {
    grid-area: 1 / 1;
    display: grid;
    gap: clamp(2.25rem, 4.5vw, 3.5rem);
    justify-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease-out), visibility 0s linear .5s;
}
.btg-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .5s var(--ease-out) .08s, visibility 0s;
}

.btg-hero-copy { max-width: 46rem; }

.btg-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .35rem .85rem;
    border: 1px solid rgba(234, 88, 12, .32);
    border-radius: var(--radius-pill);
    background: var(--lg-primary-soft);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--lg-primary-ink);
}

.btg-hero-title {
    margin-top: 1.35rem;
    font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.02em;
    color: var(--lg-ink);
}

.btg-hero-lede {
    margin-top: 1.35rem;
    margin-inline: auto;
    max-width: 40rem;
    font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
    line-height: 1.6;
    color: var(--lg-muted-ink);
    text-wrap: pretty;
}

.btg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    margin-top: 2rem;
}
@media (max-width: 460px) {
    .btg-hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    .btg-hero-actions .btg-btn { width: 100%; }
}

.btg-hero-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    margin-top: 2rem;
}
.btg-hero-index {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--lg-muted-ink);
    font-variant-numeric: tabular-nums;
    min-width: 3.5rem;
}

/* Hero figure - floating card; JS adds a subtle pointer tilt (clamped). */
.btg-hero-visual {
    position: relative;
    margin: 0;
    width: 100%;
    max-width: 62rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    box-shadow: 0 40px 80px -34px rgba(154, 52, 18, .35), 0 0 0 1px rgba(234, 88, 12, .08);
    aspect-ratio: 16 / 10;
    max-height: 20rem;
    transform-style: preserve-3d;
    will-change: transform;
}
@keyframes btg-hover-card {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}
.btg-hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0) 55%, rgba(28, 25, 23, .35) 100%);
    pointer-events: none;
}
.btg-hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
    .btg-hero-visual { aspect-ratio: 16 / 9; max-height: 30rem; }
}

/* ---------------------------------------------------------------------------
   Hero stage - two column layout + illustration composition
   Copy on the left, illustration stage on the right (>=1000px).
   --------------------------------------------------------------------------- */
@media (min-width: 1000px) {
    .btg-hero-slide {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        align-items: center;
        justify-items: stretch;
        text-align: left;
        gap: clamp(2rem, 4vw, 3.5rem);
    }
    .btg-hero-copy { max-width: 34rem; }
}

/* Illustration variant - unDraw SVG on a warm panel (no photo crop). */
.btg-hero-visual--illus {
    aspect-ratio: auto;
    max-width: none;
    max-height: none;
    overflow: visible;
    background:
        radial-gradient(80% 90% at 12% 0%, var(--lg-primary-soft) 0%, transparent 60%),
        radial-gradient(70% 80% at 100% 100%, var(--lg-teal-soft) 0%, transparent 60%),
        var(--lg-surface);
    border-radius: 28px;
}
.btg-hero-visual--illus::after { content: none; }

.btg-hero-illus { position: relative; padding: clamp(1rem, 2.5vw, 2rem) 0; }
.btg-illus-orbit {
    position: absolute;
    inset: -6% -4%;
    width: 108%;
    height: 112%;
    color: var(--lg-primary);
    pointer-events: none;
}
.btg-illus-img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Ilustrasi ikut melayang (slide ke-2) - lebih pelan dari kartu. */
@keyframes btg-drift {
    0%, 100% { transform: translateY(-6px); }
    50% { transform: translateY(6px); }
}
.btg-hero-illus--float .btg-illus-img {
    animation: btg-drift 6s ease-in-out infinite;
    will-change: transform;
}

/* ---------------------------------------------------------------------------
   MOTION - satu bahasa gerak untuk seluruh panggung hero
   Token: ease-out untuk masuk, spring untuk "pop", linear untuk marching
   Semuacta di prefers-reduced-motion (lihat blok bawah).
   --------------------------------------------------------------------------- */

/* Orbit: garis putus-putus mengalir (dash marching). */
@keyframes btg-march {
    to { stroke-dashoffset: -36; }
}
@media (prefers-reduced-motion: no-preference) {
    .btg-orbit-path { animation: btg-march 16s linear infinite; }
    .btg-orbit-path--inner { animation-duration: 26s; animation-direction: reverse; }
}

/* Ilustrasi utama: napas halus (scale) + bob, bukan sekadar translate. */
@keyframes btg-breathe {
    0%, 100% { transform: translate3d(0, -6px, 0) scale(1); }
    50% { transform: translate3d(0, 6px, 0) scale(1.012); }
}
@media (prefers-reduced-motion: no-preference) {
    .btg-hero-illus .btg-illus-img {
        animation: btg-breathe 9s var(--ease-soft, ease-in-out) infinite;
        will-change: transform;
    }
    /* Slide beranimasi: drift lebih cepat dari breathe, jangan tumpuk. */
    .btg-hero-illus--float .btg-illus-img { animation: btg-drift 6s ease-in-out infinite; }
}

/* Kilau: pop kecil ber-spring, bukan sekadar fade. */
@keyframes btg-spark-pop {
    0%, 100% { opacity: .35; transform: scale(.85) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.12) rotate(12deg); }
}
@media (prefers-reduced-motion: no-preference) {
    .btg-spark--1 { animation: btg-spark-pop 3.6s cubic-bezier(.34, 1.56, .64, 1) infinite; }
    .btg-spark--2 { animation: btg-spark-pop 4.4s cubic-bezier(.34, 1.56, .64, 1) .6s infinite; }
    .btg-spark--3 { animation: btg-spark-pop 5s cubic-bezier(.34, 1.56, .64, 1) 1.2s infinite; }
}

/* Orquestrasi masuk saat slide aktif: kartu & kilau naik bertahap. */
@media (prefers-reduced-motion: no-preference) {
    @keyframes btg-stage-in {
        from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.96); }
    }
    .btg-hero-slide.is-active .btg-float { animation: btg-stage-in .6s var(--ease-out) backwards; }
    .btg-hero-slide.is-active .btg-float--search { animation-delay: .12s; }
    .btg-hero-slide.is-active .btg-float--chart { animation-delay: .22s; }
    .btg-hero-slide.is-active .btg-float--cert { animation-delay: .32s; }
    .btg-hero-slide.is-active .btg-spark { animation-delay: .4s, 0s; }
}

/* Foto slide: ken-burns sangat pelan, hanya slide aktif. */
@media (prefers-reduced-motion: no-preference) {
    @keyframes btg-kenburns {
        from { transform: scale(1); }
        to { transform: scale(1.06); }
    }
    .btg-hero-slide.is-active .btg-hero-visual > img { animation: btg-kenburns 18s ease-in-out forwards; }
}

/* ---------------------------------------------------------------------------
   PROXIMITY - kursor mendekat -> elemen foto/ilustrasi reacting
   Ditenagai JS lewat --mx/--my/--ms/--lift (lihat bphtb-landing.js).
   Tanpa JS semua elemen tetap diam pada transform default.
   --------------------------------------------------------------------------- */
.btg-hero-visual,
.btg [data-btg-proximity] {
    --mx: 0px;
    --my: 0px;
    --ms: 1;
    --lift: 0;
    transform: translate3d(var(--mx), var(--my), 0) scale(var(--ms));
    transition: transform 320ms var(--ease-out, cubic-bezier(.22, 1, .36, 1));
    will-change: transform;
}
.btg-hero-visual {
    box-shadow:
        0 40px 80px -34px rgba(154, 52, 18, .35),
        0 0 0 1px rgba(234, 88, 12, .08),
        0 26px 50px -26px rgba(28, 25, 23, calc(.34 * var(--lift, 0)));
}
.btg [data-btg-proximity] { transition-duration: 380ms; }
.btg [data-btg-proximity] img { transition: transform 380ms var(--ease-out, cubic-bezier(.22, 1, .36, 1)); }
.btg [data-btg-proximity]:hover img { transform: scale(1.015); }

@media (prefers-reduced-motion: reduce) {
    .btg-hero-visual,
    .btg [data-btg-proximity] { transform: none !important; transition: none !important; }
    .btg [data-btg-proximity] img { transform: none !important; }
}

/* Kilau - slow twinkle, opacity only (no layout shift). */
.btg-spark {
    position: absolute;
    z-index: 1;
    color: var(--lg-yellow);
    pointer-events: none;
}
.btg-spark svg { display: block; width: 100%; height: 100%; }
.btg-spark--1 { top: 4%; left: 6%; width: 22px; color: var(--lg-primary); animation: btg-twinkle 3.6s ease-in-out infinite; }
.btg-spark--2 { top: 18%; right: 8%; width: 14px; animation: btg-twinkle 4.4s ease-in-out .6s infinite; }
.btg-spark--3 { bottom: 12%; left: 18%; width: 16px; color: var(--lg-teal); animation: btg-twinkle 5s ease-in-out 1.2s infinite; }
@keyframes btg-twinkle {
    0%, 100% { opacity: .35; transform: scale(.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Floating decorations - y [-8, 8] px, 4s, ease-in-out, infinite. */
@keyframes btg-float {
    0%, 100% { transform: translateY(-8px); }
    50% { transform: translateY(8px); }
}
.btg-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem .85rem;
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: 14px;
    box-shadow: 0 18px 36px -18px rgba(28, 25, 23, .35);
    animation: btg-float 4s ease-in-out infinite;
    will-change: transform;
}
.btg-float svg { width: 16px; height: 16px; flex: none; }

.btg-float--search {
    left: clamp(-.5rem, 0%, 1rem);
    top: 12%;
    color: var(--lg-primary-ink);
    font-size: .8125rem;
    font-weight: 700;
    padding: .65rem 1rem;
    animation-delay: -.8s;
}
.btg-float--chart {
    right: clamp(-.5rem, 0%, 1rem);
    bottom: 14%;
    animation-delay: -2.2s;
}
.btg-float--cert {
    right: clamp(-.25rem, 1%, 1.5rem);
    top: 6%;
    display: grid;
    place-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 16px;
    color: var(--lg-primary-ink);
    animation-delay: -3s;
}
.btg-float--cert svg { width: 22px; height: 22px; }

.btg-float__text { display: flex; flex-direction: column; line-height: 1.25; }
.btg-float__text strong { font-size: .8125rem; font-weight: 700; color: var(--lg-ink); }
.btg-float__text em { font-style: normal; font-size: .6875rem; color: var(--lg-muted-ink); }
.btg-float__bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; }
.btg-float__bars i {
    width: 5px;
    border-radius: 3px;
    background: var(--lg-primary);
    opacity: .35;
}
.btg-float__bars i:nth-child(1) { height: 40%; }
.btg-float__bars i:nth-child(2) { height: 70%; opacity: .5; }
.btg-float__bars i:nth-child(3) { height: 55%; opacity: .65; }
.btg-float__bars i:nth-child(4) { height: 90%; opacity: .8; }
.btg-float__bars i:nth-child(5) { height: 100%; opacity: 1; }

@media (max-width: 480px) {
    .btg-float--search { left: 0; top: 6%; }
    .btg-float--chart { right: 0; bottom: 6%; }
    .btg-float--cert { right: 0; top: 2%; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .btg-float { animation: none !important; transform: none !important; }
    .btg-hero-illus--float .btg-illus-img { animation: none !important; transform: none !important; }
    .btg-illus-img,
    .btg-orbit-path,
    .btg-hero-visual > img { animation: none !important; transform: none !important; }
    .btg-spark { animation: none !important; opacity: .7; }
}
}

/* ---------------------------------------------------------------- benefits */
.btg-benefits {
    display: grid;
    gap: .85rem 2.5rem;
    grid-template-columns: 1fr;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--lg-border);
}
@media (min-width: 760px) { .btg-benefits { grid-template-columns: repeat(3, 1fr); } }

.btg-benefit {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    font-size: .9688rem;
    line-height: 1.55;
    color: var(--lg-muted-ink);
    transition: color .2s ease, transform .2s ease;
}
.btg-benefit:hover { color: var(--lg-ink); transform: translateY(-2px); }
.btg-benefit svg { flex: none; margin-top: .1rem; color: var(--lg-primary); }

/* ---------------------------------------------------------------- ledger */
.btg-ledger-top {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--lg-border);
}
.btg-ledger-top h2 {
    font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem);
    letter-spacing: -.012em;
}
.btg-ledger-top p { margin-top: .5rem; font-size: .9688rem; color: var(--lg-muted-ink); }

.btg-ledger { display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .btg-ledger { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .btg-ledger { grid-template-columns: repeat(4, 1fr); } }

.btg-ledger-item { padding-block: 1.75rem; }
.btg-ledger-item + .btg-ledger-item { border-top: 1px solid var(--lg-border); }

/* two columns */
@media (min-width: 560px) {
    .btg-ledger-item { padding: 1.75rem 1.5rem; }
    .btg-ledger-item:nth-child(odd) { padding-left: 0; }
    .btg-ledger-item:nth-child(even) { border-left: 1px solid var(--lg-border); }
    .btg-ledger-item:nth-child(-n+2) { border-top: 0; }
    .btg-ledger-item:nth-child(n+3) { border-top: 1px solid var(--lg-border); }
}

/* four columns */
@media (min-width: 900px) {
    .btg-ledger-item,
    .btg-ledger-item:nth-child(odd),
    .btg-ledger-item:nth-child(even),
    .btg-ledger-item:nth-child(-n+2),
    .btg-ledger-item:nth-child(n+3) {
        border-top: 0;
        padding: 1.75rem 1.5rem;
    }
    .btg-ledger-item:nth-child(n+2) { border-left: 1px solid var(--lg-border); }
    .btg-ledger-item:first-child { padding-left: 0; }
}
.btg-ledger-item dt {
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--lg-muted-ink);
}
.btg-ledger-item dd {
    margin: .5rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(2.125rem, 1.7rem + 1.6vw, 2.875rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--lg-primary-ink);
    font-variant-numeric: tabular-nums lining-nums;
}

/* ---------------------------------------------------------------- alur
   The one bold moment on the page: a connected four-node track. Numbers
   are kept because the order is the information. */
.btg-rail { display: grid; gap: 2.25rem; }
@media (min-width: 780px) { .btg-rail { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; } }

.btg-rail-step { position: relative; }
@media (min-width: 780px) { .btg-rail-step { text-align: center; } }

.btg-rail-node {
    position: relative;
    z-index: 1;
    display: grid;
    place-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--lg-primary);
    color: #ffffff;
    font-family: var(--font-display);
    /* 20px bold counts as large text, so 3:1 applies to the white number */
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 6px var(--lg-card), 0 0 0 7px rgba(234, 88, 12, .25);
}
@media (min-width: 780px) { .btg-rail-node { margin-inline: auto; } }

/* the connecting track: vertical rail on mobile */
.btg-rail-step::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 54px;
    height: calc(100% - 54px + 2.25rem);
    width: 1px;
    background: var(--lg-border);
}
.btg-rail-step:last-child::before { display: none; }

/* ...horizontal between node centres once the four sit in a row */
@media (min-width: 780px) {
    .btg-rail-step::before {
        left: 50%;
        top: 27px;
        width: calc(100% + 1.75rem);
        height: 1px;
    }
}

.btg-rail-title {
    margin-top: 1.35rem;
    font-size: 1.1875rem;
    letter-spacing: -.005em;
}
.btg-rail-desc {
    margin-top: .55rem;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--lg-muted-ink);
    max-width: 30ch;
}
@media (min-width: 780px) { .btg-rail-desc { margin-inline: auto; } }

/* ---------------------------------------------------------------- jenis
   Disclosure list. No cards nested in cards, no card per row. */
.btg-disclosures { border-top: 1px solid var(--lg-border); }

/* ------------------------------------------------------------- filter
   Twenty-odd near-identical rows need a way to narrow, not a longer list. */
.btg-filter {
    max-width: 26rem;
    margin-bottom: 1.75rem;
}
.btg-filter-field { position: relative; }
.btg-filter-input {
    width: 100%;
    min-height: 48px;
    padding: .72rem .9rem .72rem 2.6rem;
    font-family: var(--font-body);
    font-size: .9688rem;
    color: var(--lg-ink);
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: var(--radius-sm);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.btg-filter-input::placeholder { color: var(--lg-muted-ink); }
.btg-filter-input:focus {
    border-color: var(--lg-primary);
    box-shadow: 0 0 0 3px var(--lg-primary-soft);
    outline: none;
}
.btg-filter-icon {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lg-muted-ink);
    pointer-events: none;
}
.bphtb .btg-filter-icon svg.feather { width: 18px; height: 18px; vertical-align: middle; }
.btg-filter-count {
    margin-top: .6rem;
    font-size: .875rem;
    color: var(--lg-muted-ink);
    font-variant-numeric: tabular-nums;
}
.btg-empty {
    padding: 1.5rem 0;
    font-size: .9688rem;
    color: var(--lg-muted-ink);
}
.btg-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.btg-disclosure { border-bottom: 1px solid var(--lg-border); }

.btg-disclosure-trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-height: 44px;
    padding: 1.15rem 0;
    background: none;
    border: 0;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--lg-ink);
    cursor: pointer;
    transition: color .18s ease;
}
.btg-disclosure-trigger:hover { color: var(--lg-primary-ink); }
.btg-disclosure-trigger[aria-expanded="true"] { color: var(--lg-primary-ink); }

.btg-disclosure-name { flex: 1 1 auto; min-width: 0; }

.btg-chev {
    flex: none;
    color: var(--lg-muted-ink);
    transition: transform .28s var(--ease-out), color .18s ease;
}
.btg-disclosure-trigger[aria-expanded="true"] .btg-chev { transform: rotate(180deg); color: var(--lg-primary-ink); }

.btg-disclosure-body { padding: 0 0 1.75rem; }
.btg-disclosure-body > p {
    font-size: .9688rem;
    line-height: 1.65;
    color: var(--lg-muted-ink);
    max-width: 70ch;
    text-wrap: pretty;
}

.btg-doc-label {
    margin-top: 1.35rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--lg-muted-ink);
}

.btg-docs {
    margin-top: .85rem;
    display: grid;
    gap: .5rem 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) { .btg-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.btg-doc {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .9375rem;
    line-height: 1.5;
    color: var(--lg-muted-ink);
}
.btg-doc svg { flex: none; margin-top: .2rem; }
.btg-doc.is-required svg { color: var(--lg-primary); }
.btg-doc.is-optional svg { color: var(--lg-muted-ink); }
.btg-doc em {
    font-style: normal;
    font-size: .8125rem;
    color: var(--lg-muted-ink);
    white-space: nowrap;
}

/* ---------------------------------------------------------------- faq */
.btg-faq { max-width: 56rem; }

/* ---------------------------------------------------------------- kontak */
.btg-contact {
    display: grid;
    gap: clamp(1.75rem, 3vw, 3rem);
    grid-template-columns: 1fr;
}
@media (min-width: 900px) { .btg-contact { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }

.btg-contact-map {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--lg-border);
    background: var(--lg-muted);
    min-height: 22rem;
}
.bphtb #map {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* inline link with a leading icon (map fallback, footer notes) */
.btg-inline-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.25rem;
    font-size: .9375rem;
}
.btg-inline-link svg { flex: none; color: var(--lg-primary); }

.btg-contact-list { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.btg-contact-row { display: flex; align-items: flex-start; gap: .85rem; }
.btg-contact-row svg { flex: none; margin-top: .25rem; color: var(--lg-primary); }
.btg-contact-row dt {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--lg-muted-ink);
}
.btg-contact-row dd {
    margin: .2rem 0 0;
    font-size: 1rem;
    color: var(--lg-ink);
    line-height: 1.5;
}

/* ---------------------------------------------------------------- footer */
.btg-footer {
    background: var(--lg-ink);
    color: #d6d3d1;
    padding-block: 3rem 2rem;
}
.btg-footer a { color: #ffffff; text-decoration-color: rgba(255, 255, 255, .35); }
.btg-footer a:hover { color: #fdba74; }

.btg-footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.btg-footer-brand { display: flex; align-items: center; gap: .85rem; }
.btg-footer-brand img { height: 52px; width: auto; }
.btg-footer-brand-name {
    font-family: var(--font-display);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1875rem;
    line-height: 1.2;
}
.btg-footer-brand p { font-size: .875rem; margin-top: .2rem; }

.btg-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem 1.5rem;
    font-size: .9375rem;
}
.btg-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 620px) {
    .btg-footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
}

.btg-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    justify-content: space-between;
    padding-top: 1.5rem;
    font-size: .875rem;
}

/* ------------------------------------------------------- scroll progress
   A thin trio bar (red-orange -> teal -> yellow) that fills as you read. */
.btg-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 60;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--lg-primary), var(--lg-teal) 50%, var(--lg-yellow));
    box-shadow: 0 0 14px rgba(234, 88, 12, .5);
    pointer-events: none;
}

/* ---------------------------------------------------------------- reveal
   Elements start hidden and are brought in by IntersectionObserver. Only
   applied once JS marks the root (.btg-js) so a no-JS render stays visible. */
.bphtb.btg-js .btg-reveal {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
    transition-delay: var(--d, 0s);
}
.bphtb.btg-js .btg-reveal--left { transform: translate3d(-28px, 0, 0); }
.bphtb.btg-js .btg-reveal--right { transform: translate3d(28px, 0, 0); }
.bphtb.btg-js .btg-reveal--scale { transform: scale(.94); }
.bphtb.btg-js .btg-reveal.is-inview { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- rail
   Nodes pop in as the section scrolls into view, then the track draws. */
.btg-rail-step::before { transform-origin: 0 0; transform: scaleY(0); }
@media (min-width: 780px) { .btg-rail-step::before { transform-origin: 0 50%; transform: scaleX(0); } }
.bphtb.btg-js .btg-rail.is-inview .btg-rail-step::before {
    transition: transform .7s var(--ease-out) .25s;
    transform: none;
}
@keyframes btg-node-pop {
    0% { transform: scale(.4); opacity: 0; }
    60% { transform: scale(1.12); }
    100% { transform: scale(1); opacity: 1; }
}
.bphtb.btg-js .btg-rail.is-inview .btg-rail-node { animation: btg-node-pop .5s var(--ease-out) backwards; }
.bphtb.btg-js .btg-rail.is-inview .btg-rail-step:nth-child(1) .btg-rail-node { animation-delay: .05s; }
.bphtb.btg-js .btg-rail.is-inview .btg-rail-step:nth-child(2) .btg-rail-node { animation-delay: .18s; }
.bphtb.btg-js .btg-rail.is-inview .btg-rail-step:nth-child(3) .btg-rail-node { animation-delay: .31s; }
.bphtb.btg-js .btg-rail.is-inview .btg-rail-step:nth-child(4) .btg-rail-node { animation-delay: .44s; }

/* ---------------------------------------------------------------- ledger
   Subtle lift + warm tint on hover. */
.btg-ledger-item { transition: background-color .25s ease, transform .25s ease; }
.btg-ledger-item:hover { background: rgba(234, 88, 12, .05); }
@media (min-width: 560px) { .btg-ledger-item:hover { transform: translateY(-2px); } }

/* ----------------------------------------------------------- disclosure
   Warm tint on hover - no layout shift. */
.btg-disclosure { transition: background-color .25s ease; }
.btg-disclosure:hover { background: rgba(234, 88, 12, .04); }
.btg-disclosure-trigger { transition: color .18s ease; }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
    .btg-hero-slide.is-active .btg-hero-copy > * {
        animation: btg-rise .72s var(--ease-out) backwards;
    }
    .btg-hero-slide.is-active .btg-hero-copy > :nth-child(1) { animation-delay: .05s; }
    .btg-hero-slide.is-active .btg-hero-copy > :nth-child(2) { animation-delay: .11s; }
    .btg-hero-slide.is-active .btg-hero-copy > :nth-child(3) { animation-delay: .17s; }
    .btg-hero-slide.is-active .btg-hero-copy > :nth-child(4) { animation-delay: .23s; }
    .btg-hero-slide.is-active .btg-hero-visual {
        animation:
            btg-settle .95s var(--ease-out) .1s backwards,
            btg-hover-card 7s ease-in-out 1.1s infinite;
    }
}

@keyframes btg-rise {
    from { opacity: 0; transform: translate3d(0, 16px, 0); }
}
@keyframes btg-settle {
    from { opacity: 0; transform: translate3d(0, 24px, 0) scale(.985); }
}

@media (prefers-reduced-motion: reduce) {
    .bphtb *,
    .bphtb *::before,
    .bphtb *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .btg-hero-slide { transition: opacity .001ms linear, visibility 0s; }
    .btg-hero-slide:not(.is-active) { visibility: hidden; }
    /* reveal + rail must render their final state immediately */
    .bphtb.btg-js .btg-reveal { opacity: 1 !important; transform: none !important; }
    .bphtb.btg-js .btg-rail-step::before { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
    .btg-header {
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

/* ---------------------------------------------------------------- print */
@media print {
    .btg-header, .btg-hero-visual, .btg-contact-map, .btg-btn-icon, .btg-skip, .btg-progress { display: none !important; }
    .bphtb { color: #000; }
    .btg-hero-slide { visibility: visible !important; opacity: 1 !important; }
}
