/* =====================================================================
   Halaman /pasang — panduan memasang Kasirin ke layar utama.
   Memakai token tema 2026 dari app.css (kertas hangat, tinta gelap,
   aksen limau). Semua aturan di-scope ke .psg supaya tidak bocor ke
   halaman lain yang memakai layout publik.
   ===================================================================== */

.psg {
    padding-bottom: 8px;
}

.psg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-600);
    margin: 0 0 14px;
}

.psg-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-strong, #b6e044);
    box-shadow: 0 0 0 3px rgba(201, 242, 92, .28);
}

/* ---------- Hero ---------- */
.psg-hero {
    padding: 56px 0 8px;
}

.psg-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: center;
}

.psg-title {
    font-size: clamp(2rem, 4.2vw, 3.15rem);
    margin: 0 0 14px;
    letter-spacing: -.04em;
}

.psg-title em {
    font-style: normal;
    background: linear-gradient(transparent 62%, var(--accent) 62%);
    padding: 0 .06em;
}

.psg-lead {
    color: var(--ink-2);
    font-size: 1.0625rem;
    max-width: 34em;
    margin: 0 0 20px;
}

.psg-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.psg-badges li {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .04em;
    border: 1px solid var(--line-strong, #c9c4b4);
    border-radius: 999px;
    padding: 5px 11px;
    color: var(--ink-2);
    background: var(--card);
}

/* Kartu pemasangan */
.psg-install {
    border: 1px solid var(--line-dark, #2a2c27);
    border-radius: 14px;
    background: #111310;
    color: #f2f0e6;
    padding: 22px;
    max-width: 30em;
    box-shadow: 0 18px 40px -30px rgba(17, 19, 16, .9);
}

.psg-install-state {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .8125rem;
    letter-spacing: .01em;
    color: #b9bbb0;
    margin: 0 0 12px;
}

.psg-install-state b {
    color: #fff;
    font-weight: 650;
}

.psg-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #6b6f63;
    flex: none;
}

.psg-install.is-ready .psg-dot {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 242, 92, .18);
}

.psg-install.is-installed .psg-dot {
    background: #4ade80;
}

.psg-install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: var(--accent);
    color: #14210a;
    font: inherit;
    font-weight: 700;
    font-size: .9375rem;
    padding: 13px 18px;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, opacity .12s ease;
}

.psg-install-btn:hover { background: #d5ff70; transform: translateY(-1px); }
.psg-install-btn[hidden] { display: none; }
.psg-install-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.psg-install-hint {
    margin: 12px 0 0;
    font-size: .8125rem;
    color: #a9aba0;
    line-height: 1.55;
}

.psg-install-hint a { color: var(--accent); }

/* Perangkat */
.psg-device {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdf7, #f0ece0);
    padding: 26px 26px 20px;
    box-shadow: var(--shadow);
}

.psg-device-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--line-strong, #c9c4b4);
}

.psg-device-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    flex: none;
    box-shadow: 0 6px 16px -10px rgba(17, 19, 16, .8);
}

.psg-device-name {
    font-weight: 700;
    letter-spacing: -.02em;
}

.psg-device-sub {
    font-family: var(--font-mono);
    font-size: .6875rem;
    color: var(--muted);
    letter-spacing: .03em;
}

.psg-device-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.psg-device-tile {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fffefb;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .12s ease, transform .12s ease;
}

.psg-device-tile:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--ink);
}

.psg-device-tile span.mono {
    font-size: .625rem;
    color: var(--muted);
    display: block;
    font-weight: 400;
}

/* ---------- Tab panduan ---------- */
.psg-guide {
    padding: 48px 0 8px;
}

.psg-sec-head {
    max-width: 44em;
    margin-bottom: 24px;
}

.psg-sec-head h2 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    margin: 0 0 8px;
}

.psg-sec-head p {
    color: var(--muted);
    margin: 0;
}

.psg-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}

.psg-tab {
    appearance: none;
    border: 1px solid transparent;
    border-bottom: none;
    background: none;
    font: inherit;
    font-weight: 650;
    font-size: .875rem;
    color: var(--muted);
    padding: 11px 16px;
    border-radius: 9px 9px 0 0;
    cursor: pointer;
    margin-bottom: -1px;
    transition: color .12s ease, background .12s ease;
}

.psg-tab:hover { color: var(--ink); background: rgba(17, 19, 16, .04); }

.psg-tab[aria-selected="true"] {
    color: var(--ink);
    background: var(--card);
    border-color: var(--line);
    box-shadow: inset 0 2px 0 var(--accent);
}

.psg-tab small {
    display: block;
    font-family: var(--font-mono);
    font-size: .625rem;
    font-weight: 400;
    letter-spacing: .04em;
    color: var(--muted);
    margin-top: 2px;
}

.psg-panel { display: none; }
.psg-panel.is-active { display: block; }

.psg-steps {
    list-style: none;
    counter-reset: psg;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.psg-steps li {
    counter-increment: psg;
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--card);
    padding: 16px 18px;
}

.psg-steps li::before {
    content: counter(psg, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--brand-600);
    background: var(--brand-50);
    border-radius: 7px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.psg-steps h3 {
    font-size: .9375rem;
    margin: 0 0 3px;
}

.psg-steps p {
    margin: 0;
    font-size: .875rem;
    color: var(--ink-2);
    line-height: 1.6;
}

.psg-steps kbd {
    font-family: var(--font-mono);
    font-size: .75rem;
    border: 1px solid var(--line-strong, #c9c4b4);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 6px;
    background: #fffefb;
    white-space: nowrap;
}

.psg-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 18px 0 0;
    border-left: 3px solid var(--accent-strong, #b6e044);
    background: rgba(201, 242, 92, .16);
    border-radius: 0 9px 9px 0;
    padding: 12px 14px;
    font-size: .8438rem;
    color: var(--ink-2);
}

.psg-note b { color: var(--ink); }

/* ---------- FAQ ---------- */
.psg-faq-sec { padding: 52px 0 8px; }

.psg-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: start;
}

.psg-faq { display: grid; gap: 8px; }

.psg-q {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    padding: 0 16px;
}

.psg-q summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    font-weight: 650;
    font-size: .9375rem;
}

.psg-q summary::-webkit-details-marker { display: none; }

.psg-q summary i {
    flex: none;
    width: 11px;
    height: 11px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .16s ease;
    margin-right: 3px;
}

.psg-q[open] summary i { transform: rotate(-135deg); }

.psg-q p {
    margin: 0 0 14px;
    font-size: .875rem;
    color: var(--ink-2);
    line-height: 1.65;
}

/* ---------- CTA ---------- */
.psg-cta-sec { padding: 44px 0 0; }

.psg-cta {
    border: 1px solid var(--line-dark, #2a2c27);
    border-radius: 16px;
    background: #111310;
    color: #f2f0e6;
    padding: 34px;
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.psg-cta h2 {
    color: #fff;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    margin: 6px 0 8px;
}

.psg-cta p {
    color: #a9aba0;
    margin: 0;
    max-width: 38em;
    font-size: .9375rem;
}

.psg-cta .psg-eyebrow { color: var(--accent); margin: 0; }
.psg-cta .psg-eyebrow::before { background: var(--accent); box-shadow: none; }
.psg-cta .btn-quiet { color: #f2f0e6; border-color: #3a3d35; }
.psg-cta .btn-quiet:hover { background: #1c1f19; border-color: #5c6053; color: #fff; }

@media (max-width: 900px) {
    .psg-hero { padding-top: 36px; }
    .psg-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .psg-faq-grid { grid-template-columns: 1fr; gap: 22px; }
    .psg-install { max-width: none; }
}

@media (max-width: 520px) {
    .psg-device-grid { grid-template-columns: 1fr; }
    .psg-cta { padding: 24px; }
    .psg-steps li { padding: 14px; }
}
