/* ============================================================
   tutorial.css — KasirCepat Tutorial Page
   Extends the main stylesheet; import after main CSS.
   ============================================================ */

/* ── Google Fonts (same as main) ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,700;1,400;1,700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ── Page Shell ───────────────────────────────────────────── */
.tut-page {
    background: var(--white);
    padding-top: 64px;
    /* offset fixed nav */
    min-height: 100vh;
}

/* ── Hero Banner (tutorial-specific) ─────────────────────── */
.tut-hero {
    background: var(--black);
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
}

.tut-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(249, 115, 22, .18) 0%, transparent 70%);
    pointer-events: none;
}

.tut-hero-badge {
    display: inline-block;
    background: rgba(249, 115, 22, .18);
    border: 1px solid rgba(249, 115, 22, .4);
    color: #fed7aa;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.tut-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -.4px;
    margin-bottom: 12px;
}

.tut-hero h1 em {
    font-style: italic;
    color: var(--orange);
}

.tut-hero p {
    color: #9ca3af;
    font-size: 15px;
    max-width: 480px;
}

/* ── Layout: sidebar + content ───────────────────────────── */
.tut-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: start;
}

@media (max-width: 860px) {
    .tut-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Sticky Sidebar / Table of Contents ──────────────────── */
.tut-sidebar {
    position: sticky;
    top: 80px;
    padding: 40px 0 40px 0;
    border-right: 1px solid var(--gray-200);
    margin-right: 48px;
}

.tut-sidebar-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 14px;
    display: block;
}

.tut-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tut-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--gray-500);
    padding: 7px 10px 7px 0;
    border-radius: var(--radius-sm);
    transition: color .18s, background .18s;
    text-decoration: none;
    line-height: 1.4;
}

.tut-nav a .tut-nav-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--gray-100);
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
    flex-shrink: 0;
    transition: background .18s, color .18s;
}

.tut-nav a:hover,
.tut-nav a.active {
    color: var(--orange);
}

.tut-nav a:hover .tut-nav-num,
.tut-nav a.active .tut-nav-num {
    background: var(--orange-mid);
    color: var(--orange-dark);
}

.tut-nav a.active {
    font-weight: 600;
}

@media (max-width: 860px) {
    .tut-sidebar {
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        margin-right: 0;
        padding: 24px 0;
    }

    .tut-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .tut-nav a {
        padding: 5px 10px;
        background: var(--gray-100);
        border-radius: 100px;
    }

    .tut-nav-num {
        display: none !important;
    }
}

/* ── Main Content ─────────────────────────────────────────── */
.tut-content {
    padding: 48px 0 80px;
}

/* ── Section ──────────────────────────────────────────────── */
.tut-section {
    margin-bottom: 72px;
    scroll-margin-top: 88px;
}

.tut-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.tut-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.tut-section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
}

.tut-section p {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: 16px;
}

.tut-section p:last-child {
    margin-bottom: 0;
}

.tut-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin-bottom: 72px;
}

/* ── Step List ────────────────────────────────────────────── */
.tut-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 20px;
}

.tut-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14.5px;
    color: var(--gray-700);
    line-height: 1.6;
}

.tut-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: var(--orange-mid);
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-display);
    margin-top: 1px;
}

/* ── Bullet List ──────────────────────────────────────────── */
.tut-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 20px;
}

.tut-bullets li {
    font-size: 14.5px;
    color: var(--gray-700);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.tut-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-size: 13px;
}

/* ── Tip / Note Box ───────────────────────────────────────── */
.tut-tip {
    background: var(--orange-light);
    border-left: 3px solid var(--orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    margin: 16px 0 20px;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
}

.tut-tip strong {
    color: var(--orange-dark);
    font-weight: 700;
}

.tut-warning {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    margin: 16px 0 20px;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
}

.tut-warning strong {
    color: #b45309;
    font-weight: 700;
}

/* ── Data Table ───────────────────────────────────────────── */
.tut-table-wrap {
    overflow-x: auto;
    margin: 16px 0 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.tut-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tut-table thead tr {
    background: var(--gray-100);
}

.tut-table th {
    text-align: left;
    padding: 11px 16px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-200);
}

.tut-table td {
    padding: 11px 16px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    line-height: 1.5;
    vertical-align: top;
}

.tut-table tr:last-child td {
    border-bottom: none;
}

.tut-table tr:hover td {
    background: var(--orange-light);
}

.tut-table td:first-child {
    font-weight: 600;
    color: var(--black);
}

.tut-badge-pro {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 100px;
    vertical-align: middle;
    margin-left: 4px;
}

/* ── Card Grid (for sub-features / modes) ─────────────────── */
.tut-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 16px 0 20px;
}

.tut-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    transition: border-color .2s, box-shadow .2s;
}

.tut-card:hover {
    border-color: rgba(249, 115, 22, .4);
    box-shadow: var(--shadow-sm);
}

.tut-card-icon {
    font-size: 20px;
    margin-bottom: 8px;
}

.tut-card h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.tut-card p {
    font-size: 12.5px;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0;
}

/* ── Token / Code Chip ────────────────────────────────────── */
.tut-code {
    display: inline-block;
    background: var(--gray-900);
    color: var(--orange);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: .5px;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.tut-cta {
    background: var(--black);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 64px;
}

.tut-cta h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.tut-cta p {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

/* ── Search bar (top of content) ─────────────────────────── */
.tut-search-wrap {
    margin-bottom: 40px;
}

.tut-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-100);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    transition: border-color .2s;
}

.tut-search:focus-within {
    border-color: var(--orange);
    background: var(--white);
}

.tut-search-icon {
    font-size: 16px;
    color: var(--gray-500);
    flex-shrink: 0;
}

.tut-search input {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--black);
    outline: none;
    flex: 1;
}

.tut-search input::placeholder {
    color: var(--gray-500);
}

/* ── Progress indicator (thin top stripe on scroll) ──────── */
.tut-progress {
    position: fixed;
    top: 64px;
    left: 0;
    height: 3px;
    background: var(--orange);
    z-index: 99;
    width: 0%;
    transition: width .1s linear;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes tutFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tut-section {
    animation: tutFadeUp .45s ease both;
}

.tut-section:nth-child(1) {
    animation-delay: .05s;
}

.tut-section:nth-child(2) {
    animation-delay: .10s;
}

.tut-section:nth-child(3) {
    animation-delay: .15s;
}

.tut-section:nth-child(4) {
    animation-delay: .20s;
}