/* ===================================
   Manual Book ARUS — gaya khusus halaman produk
   Token warna & radius diwarisi dari styles.css situs utama.
   =================================== */

.manual-page {
    background: var(--bg-light);
}

/* ---------- Hero ---------- */
.mb-hero {
    position: relative;
    padding: 140px 0 72px;
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(24, 176, 168, 0.28), transparent 60%),
        linear-gradient(160deg, var(--navy-deep) 0%, #0b3442 55%, #0c4f4f 100%);
    color: #fff;
    overflow: hidden;
}

.mb-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(24, 176, 168, 0.6), transparent);
}

.mb-breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.5rem;
}

.mb-breadcrumb a:hover { color: #fff; }

.mb-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
    background: rgba(24, 176, 168, 0.12);
    border: 1px solid rgba(24, 176, 168, 0.35);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
}

.mb-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.mb-hero h1 span { color: var(--accent-color); }

.mb-tagline {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    margin-bottom: 1rem;
}

.mb-lead {
    color: rgba(255, 255, 255, 0.72);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.mb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.mb-btn:active { transform: scale(0.97); }

.mb-btn-primary {
    background: var(--accent-color);
    color: var(--navy-deep);
}

.mb-btn-primary:hover { background: #2cc7bf; }

.mb-btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mb-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.mb-hero-shot {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}

.mb-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.mb-fact {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
}

.mb-fact strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.mb-fact span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ---------- Tata letak isi ---------- */
.mb-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
    align-items: start;
}

.mb-toc {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.mb-toc-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.mb-toc ol { list-style: none; }

.mb-toc > ol > li { margin-bottom: 0.35rem; }

.mb-toc a {
    display: block;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    line-height: 1.35;
}

.mb-toc a:hover { background: var(--accent-softer); color: var(--text-dark); }

.mb-toc a.active {
    background: var(--accent-soft);
    color: var(--primary-dark);
    font-weight: 600;
}

.mb-toc ol ol {
    margin: 0.15rem 0 0.4rem 0.6rem;
    padding-left: 0.6rem;
    border-left: 1px solid var(--border-color);
}

.mb-toc ol ol a { font-size: 0.82rem; padding: 0.22rem 0.5rem; }

.mb-toc-cta {
    display: block;
    margin-top: 1rem;
    text-align: center;
    background: var(--primary-color) !important;
    color: #fff !important;
    font-weight: 700;
    padding: 0.6rem !important;
    border-radius: var(--radius-full) !important;
}

.mb-toc-cta:hover { background: var(--primary-dark) !important; }

/* Daftar isi versi ponsel */
.mb-toc-mobile {
    display: none;
    margin: 1.5rem 0 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.mb-toc-mobile summary {
    padding: 0.9rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.mb-toc-mobile .mb-toc {
    position: static;
    max-height: none;
    border: 0;
    padding-top: 0;
}

/* ---------- Konten ---------- */
.mb-content { min-width: 0; }

.mb-part {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.mb-part-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.mb-part-num {
    flex: none;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--secondary-color);
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 1.1rem;
}

.mb-part h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.mb-part-head p {
    color: var(--text-medium);
    margin-top: 0.35rem;
}

.mb-section {
    padding-top: 1.75rem;
    margin-top: 1.75rem;
    border-top: 1px dashed var(--border-color);
    scroll-margin-top: 100px;
}

.mb-part-head + .mb-section { border-top: 0; margin-top: 0; padding-top: 0; }

.mb-part { scroll-margin-top: 90px; }

.mb-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.mb-section h3 .mb-sec-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.mb-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
}

.mb-section p,
.mb-section li {
    color: var(--text-medium);
}

.mb-section p + p { margin-top: 0.75rem; }

.mb-section strong { color: var(--text-dark); }

.mb-section ul:not(.mb-plain),
.mb-section ol:not(.mb-steps) {
    margin: 0.75rem 0 0.75rem 1.25rem;
}

.mb-section ul:not(.mb-plain) { list-style: disc; }
.mb-section ol:not(.mb-steps) { list-style: decimal; }
.mb-section ul li, .mb-section ol li { margin-bottom: 0.35rem; }

.mb-section code,
.mb-kbd {
    font-family: var(--font-mono);
    font-size: 0.82em;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.08em 0.4em;
    color: var(--text-dark);
    white-space: nowrap;
}

.mb-ui {
    font-weight: 600;
    color: var(--primary-dark);
    white-space: nowrap;
}

/* Langkah bernomor */
.mb-steps {
    counter-reset: step;
    margin: 1rem 0;
    display: grid;
    gap: 0.75rem;
}

.mb-steps > li {
    counter-increment: step;
    position: relative;
    padding: 0.85rem 1rem 0.85rem 3.25rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin: 0;
}

.mb-steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0.9rem;
    top: 0.8rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Gambar */
.mb-figure {
    margin: 1.25rem 0;
}

.mb-figure button {
    display: block;
    width: 100%;
    padding: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
    background: var(--bg-gray);
    transition: var(--transition);
}

.mb-figure button:hover { box-shadow: var(--shadow-lg); }

.mb-figure img { width: 100%; height: auto; }

.mb-figure figcaption {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0.55rem;
    text-align: center;
}

.mb-figure-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mb-figure-pair .mb-figure { margin: 0.5rem 0; }

/* Gambar beranotasi */
.mb-annot { position: relative; }

.mb-pin {
    position: absolute;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 50%;
    background: #f25c2a;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.mb-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
    margin: 1rem 0 0;
}

.mb-legend li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    list-style: none;
    margin: 0 !important;
    font-size: 0.92rem;
}

.mb-legend b {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f25c2a;
    color: #fff;
    font-size: 0.72rem;
    display: grid;
    place-items: center;
    margin-top: 2px;
}

/* Kotak catatan */
.mb-note {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    font-size: 0.93rem;
    border: 1px solid;
}

.mb-note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }

.mb-note p { margin: 0; color: inherit; }
.mb-note p + p { margin-top: 0.4rem; }

.mb-note-tip  { background: #ecfaf8; border-color: #bfe9e4; color: #0d4f4b; }
.mb-note-warn { background: #fff8e8; border-color: #f4dfa8; color: #6b4c05; }
.mb-note-info { background: #eef4fb; border-color: #cfe0f2; color: #183b63; }

.mb-note strong { color: inherit; }

/* Tabel */
.mb-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.mb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 520px;
}

.mb-table th,
.mb-table td {
    text-align: left;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.mb-table th {
    background: var(--bg-light);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    font-weight: 700;
}

.mb-table tr:last-child td { border-bottom: 0; }
.mb-table td { color: var(--text-medium); }
.mb-table td:first-child { color: var(--text-dark); font-weight: 600; }

.mb-yes { color: var(--primary-color); font-weight: 700; }
.mb-no  { color: #b9c4cc; }

/* Kartu fitur */
.mb-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.25rem 0;
}

.mb-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    background: var(--bg-white);
}

.mb-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--primary-color);
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
}

.mb-card-icon svg { width: 20px; height: 20px; }

.mb-card h4 { margin: 0 0 0.3rem; font-size: 0.98rem; }
.mb-card p { font-size: 0.88rem; margin: 0; }

.mb-apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.25rem 0;
}

.mb-app {
    border-radius: var(--radius-md);
    padding: 1.4rem;
    background: linear-gradient(150deg, var(--secondary-color), #0c4f4f);
    color: #fff;
}

.mb-app h4 { color: #fff; margin: 0 0 0.35rem; font-size: 1.1rem; }
.mb-app p { color: rgba(255, 255, 255, 0.75) !important; font-size: 0.92rem; margin: 0 0 0.9rem; }
.mb-app a {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-color);
    border-bottom: 1px dashed rgba(24, 176, 168, 0.5);
}

/* Status badge di tabel sinkronisasi */
.mb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    background: #0b3a3a;
    color: #b8efe9;
}

.mb-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.mb-badge.ok { color: #6ee7b7; }
.mb-badge.busy { color: #93c5fd; }
.mb-badge.off { color: #fcd34d; }
.mb-badge.err { color: #fca5a5; }

/* FAQ */
.mb-faq details {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.6rem;
    background: var(--bg-white);
}

.mb-faq summary {
    padding: 0.95rem 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.mb-faq summary::-webkit-details-marker { display: none; }

.mb-faq summary::after {
    content: "+";
    font-size: 1.2rem;
    line-height: 1;
    color: var(--primary-color);
    transition: transform var(--dur-hover) var(--ease-out);
}

.mb-faq details[open] summary::after { transform: rotate(45deg); }

.mb-faq details > div { padding: 0 1.1rem 1rem; }

/* ---------- CTA penutup ---------- */
.mb-cta {
    position: relative;
    margin: 0 0 4rem;
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(24, 176, 168, 0.35), transparent 70%),
        linear-gradient(160deg, var(--navy-deep), #0c4f4f);
    overflow: hidden;
}

.mb-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.mb-cta > p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.mb-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.15rem 2.75rem;
    border-radius: var(--radius-full);
    background: var(--accent-color);
    color: var(--navy-deep);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 12px 30px -8px rgba(24, 176, 168, 0.65);
    transition: var(--transition);
}

.mb-cta-btn:hover { background: #2cc7bf; box-shadow: 0 16px 36px -8px rgba(24, 176, 168, 0.8); }
.mb-cta-btn:active { transform: scale(0.97); }
.mb-cta-btn svg { width: 22px; height: 22px; }

.mb-cta-sub {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.mb-cta-sub a { color: var(--accent-color); border-bottom: 1px dashed rgba(24, 176, 168, 0.5); }

.mb-demo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 760px;
    margin: 2.25rem auto 0;
    text-align: left;
}

.mb-demo div {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.mb-demo strong { display: block; color: #fff; font-size: 0.9rem; margin-bottom: 0.2rem; }
.mb-demo code { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-color); }

/* ---------- Footer ringkas ---------- */
.mb-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem 0;
    font-size: 0.88rem;
}

.mb-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.mb-footer a:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.mb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(6, 26, 46, 0.92);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-panel) var(--ease-out), visibility 0s linear var(--dur-panel);
    cursor: zoom-out;
}

.mb-lightbox.open {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--dur-panel) var(--ease-out), visibility 0s;
}

.mb-lightbox > div {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mb-lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 6rem);
    width: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.mb-lightbox p {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
}

.mb-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
}

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
    .mb-layout { grid-template-columns: minmax(0, 1fr); }
    .mb-layout > .mb-toc { display: none; }
    .mb-toc-mobile { display: block; }
    .mb-hero-grid { grid-template-columns: 1fr; }
    .mb-hero-shot { transform: none; }
    .mb-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mb-hero { padding: 110px 0 48px; }
    .mb-facts { grid-template-columns: repeat(2, 1fr); }
    .mb-part { padding: 1.5rem 1.15rem; border-radius: var(--radius-md); }
    .mb-part h2 { font-size: 1.4rem; }
    .mb-part-num { width: 40px; height: 40px; font-size: 0.95rem; }
    .mb-cards, .mb-apps, .mb-figure-pair, .mb-legend, .mb-demo { grid-template-columns: 1fr; }
    .mb-pin { width: 20px; height: 20px; margin: -10px 0 0 -10px; font-size: 0.65rem; box-shadow: 0 0 0 2px #fff; }
    .mb-cta { padding: 2.5rem 1.25rem; }
    .mb-cta-btn { padding: 1rem 2rem; font-size: 1.05rem; }
    .mb-lightbox { padding: 0.75rem; }
    .mb-ui, .mb-section code { white-space: normal; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
    .mb-hero-shot { transform: none; }
    * { scroll-behavior: auto !important; }
}
