/* =========================================
   ISYARATKU - TUTORIAL
   Efek 3D ringan hanya dengan CSS transform.
   ========================================= */

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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(900px 500px at 100% 0%, var(--color-mint), transparent 60%),
        var(--color-bg);
    color: var(--color-navy);
    font-family: var(--font-sans);
    line-height: 1.55;
}

h1, p, ul, ol, figure {
    margin: 0;
}

[hidden] {
    display: none !important;
}

.tour-counter {
    margin-left: auto;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

.tour {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 5.5% 36px;
}

/* Titik langkah */

.tour-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    padding: 0;
    list-style: none;
}

.tour-dots button {
    width: 36px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: var(--color-border);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.tour-dots button.is-done {
    background: var(--color-primary);
    opacity: 0.45;
}

.tour-dots button[aria-current="step"] {
    width: 56px;
    background: var(--color-primary);
}

/* Langkah */

.tour-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    flex: 1;
    animation: step-in 0.35s ease;
}

@keyframes step-in {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: none; }
}

.tour-visual {
    display: grid;
    place-items: center;
    min-height: 360px;
    perspective: 900px;
}

.tour-eyebrow {
    color: var(--color-primary-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tour-copy h1 {
    margin: 10px 0 14px;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.tour-copy h1:focus {
    outline: none;
}

.tour-copy > p {
    color: var(--color-muted);
    font-size: 17px;
}

.tour-copy strong {
    color: var(--color-navy);
}

.tour-hint {
    margin-top: 16px !important;
    padding: 12px 14px;
    border-left: 3px solid var(--color-accent);
    border-radius: 0 12px 12px 0;
    background: var(--color-warning-bg);
    font-size: 14px !important;
}

.tour-points,
.tour-checks {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 0;
    list-style: none;
    color: var(--color-muted);
    font-size: 15px;
}

.tour-points li {
    padding-left: 18px;
    background: radial-gradient(circle at 5px 0.75em, var(--color-primary) 3px, transparent 4px);
}

.tour-checks li {
    display: flex;
    gap: 10px;
}

.tour-checks li::before {
    content: "✓";
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-success-bg);
    color: var(--color-success);
    font-size: 12px;
    font-weight: 800;
}

.tour-list {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
    color: var(--color-muted);
    font-size: 15px;
}

.tour-list li {
    display: flex;
    gap: 12px;
}

.tour-list b {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-navy);
    font-size: 13px;
}

/* 1. Kipas foto */

.photo-fan {
    position: relative;
    width: 300px;
    height: 320px;
    transform-style: preserve-3d;
}

.photo-fan img {
    position: absolute;
    inset: 20px 40px;
    width: 220px;
    height: 280px;
    border: 6px solid white;
    border-radius: 20px;
    background: var(--color-mint);
    box-shadow: 0 20px 40px rgba(23, 49, 58, 0.18);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-fan img:nth-child(1) { transform: rotate(-12deg) translate(-60px, 10px); }
.photo-fan img:nth-child(2) { transform: rotate(10deg) translate(60px, 10px); }
.photo-fan img:nth-child(3) { transform: translateZ(40px); }

.photo-fan:hover img:nth-child(1) { transform: rotate(-16deg) translate(-80px, 6px); }
.photo-fan:hover img:nth-child(2) { transform: rotate(14deg) translate(80px, 6px); }

/* 2. Kartu foto miring */

.tilt-card {
    --rx: 6deg;
    --ry: -12deg;
    position: relative;
    width: min(340px, 100%);
    padding: 12px 12px 44px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 30px 60px rgba(23, 49, 58, 0.18);
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.tilt-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    background: var(--color-mint);
    object-fit: cover;
}

.tilt-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    font-weight: 800;
    text-align: center;
}

.pin {
    position: absolute;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    font-weight: 800;
    transform: translateZ(30px);
}

.pin-1 { top: 22%; left: 46%; }
.pin-2 { top: 46%; left: 18%; }
.pin-3 { top: 58%; left: 62%; }

/* 3. Bingkai kamera */

.frame-demo {
    width: min(400px, 100%);
    padding: 12px;
    border-radius: 24px;
    background: var(--color-navy);
    box-shadow: 0 30px 60px rgba(23, 49, 58, 0.22);
    transform: rotateY(-10deg) rotateX(4deg);
}

.frame-screen {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(180deg, #2B4A53, #1A343C);
}

.frame-light {
    position: absolute;
    top: 10px;
    left: 14px;
    color: var(--color-accent);
    font-size: 28px;
}

.frame-person {
    position: absolute;
    left: 50%;
    bottom: -30px;
    width: 150px;
    height: 190px;
    border-radius: 75px 75px 30px 30px;
    background: #3E5F68;
    transform: translateX(-50%);
}

.frame-person::before {
    content: "";
    position: absolute;
    top: -70px;
    left: 40px;
    width: 70px;
    height: 80px;
    border-radius: 50%;
    background: #4E717A;
}

.frame-hands {
    position: absolute;
    top: 48%;
    left: 50%;
    width: 140px;
    height: 90px;
    border: 2px dashed var(--color-accent);
    border-radius: 16px;
    transform: translateX(-50%);
}

.frame-label {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

/* 4. Contoh hasil */

.mock-result {
    width: min(320px, 100%);
    padding: 22px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 30px 60px rgba(23, 49, 58, 0.16);
    transform: rotateY(10deg) rotateX(4deg);
}

.mock-top {
    display: flex;
    justify-content: space-between;
    color: var(--color-muted);
    font-size: 13px;
}

.mock-top strong {
    color: var(--color-navy);
}

.mock-letter {
    margin: 10px 0;
    color: var(--color-primary);
    font-size: 96px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.mock-conf span {
    color: var(--color-muted);
    font-size: 13px;
}

.mock-conf i {
    display: block;
    height: 8px;
    margin-top: 6px;
    border-radius: 999px;
    background: var(--color-surface-muted);
}

.mock-conf b {
    display: block;
    width: 92%;
    height: 100%;
    border-radius: inherit;
    background: var(--color-primary);
}

.mock-ok {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--color-success-bg);
    color: var(--color-success);
    font-size: 14px;
    font-weight: 700;
}

/* 5. Status */

.status-demo {
    display: grid;
    gap: 12px;
    width: min(340px, 100%);
}

.status-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow-card);
}

.status-row:nth-child(2) { transform: translateX(18px); }
.status-row:nth-child(3) { transform: translateX(36px); }

.tile {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-surface-muted);
    font-size: 22px;
    font-weight: 800;
}

.tile.is-done {
    background: var(--color-primary);
    color: white;
}

/* Navigasi */

.tour-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}

.tour-nav .btn:disabled {
    opacity: 0.4;
    cursor: default;
}

@media (max-width: 820px) {
    .tour-step {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tour-visual {
        min-height: 0;
    }

    .photo-fan {
        transform: scale(0.8);
        height: 280px;
    }

    .tour-counter {
        display: none;
    }

    .tour-skip {
        margin-left: auto;
    }

    .status-row:nth-child(n) {
        transform: none;
    }
}
