/* ============================================================
   PULSE Tutorial Pages — Shared Stylesheet
   Matching MoodleSync tutorial design language
   ============================================================ */
:root {
    --pulse: #6366f1;
    --pulse-light: #818cf8;
    --pulse-dark: #4f46e5;
    --pulse-50: #eef2ff;
    --green: #10b981;
    --green-dark: #059669;
    --green-50: #ecfdf5;
    --yellow: #f59e0b;
    --yellow-50: #fffbeb;
    --red: #ef4444;
    --red-50: #fef2f2;
    --navy: #1e293b;
    --blue: #3b82f6;
    --teal: #0d9488;
    --bg: #fafbfd;
    --bg-alt: #f1f5f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,.07);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
    --shadow-pulse: 0 8px 30px rgba(99,102,241,.18);
    --r: 16px;
    --r-lg: 24px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
section, .encouragement, .part-divider, .completion-section, .footer {
    overflow-x: hidden; word-wrap: break-word; overflow-wrap: break-word;
}
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--pulse); border-radius: 4px; }

/* PROGRESS BAR */
.progress-track {
    position: fixed; top: 0; left: 0; width: 0%; height: 3px;
    background: linear-gradient(90deg, var(--pulse), var(--green));
    z-index: 10000; transition: width .15s;
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4338ca 55%, #6366f1 80%, #4f46e5 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(16,185,129,.12) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(245,158,11,.08) 0%, transparent 45%);
}
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.particle {
    position: absolute;
    background: rgba(129,140,248,.35);
    border-radius: 50%;
    animation: float-p linear infinite;
}
@keyframes float-p {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: .8; }
    90% { opacity: .8; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}
.hero-content {
    position: relative; z-index: 10; text-align: center; padding: 2rem; max-width: 960px;
}
.hero-logo {
    width: 120px; height: 120px; border-radius: 50%;
    border: 4px solid rgba(129,140,248,.45);
    box-shadow: 0 0 60px rgba(129,140,248,.18), 0 0 120px rgba(99,102,241,.25);
    margin: 0 auto 1.5rem;
    animation: logo-glow 3s ease-in-out infinite alternate;
    object-fit: cover; background: #fff;
}
@keyframes logo-glow {
    from { box-shadow: 0 0 30px rgba(129,140,248,.15), 0 0 60px rgba(99,102,241,.15); }
    to { box-shadow: 0 0 50px rgba(129,140,248,.35), 0 0 100px rgba(99,102,241,.3); }
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 22px; background: rgba(129,140,248,.12);
    border: 1px solid rgba(129,140,248,.25); border-radius: 50px;
    color: #a5b4fc; font-size: .82rem; font-weight: 600;
    letter-spacing: .5px; margin-bottom: 1.2rem;
    backdrop-filter: blur(10px);
}
.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: .75rem;
}
.hero h1 .hl {
    background: linear-gradient(135deg, var(--green), #34d399);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero .subtitle { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 620px; margin: 0 auto 1rem; }
.hero .subtitle-fil { font-size: .92rem; color: rgba(255,255,255,.55); font-style: italic; max-width: 620px; margin: 0 auto 2rem; }
.hero-cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 36px; background: var(--green); color: #fff;
    font-weight: 700; font-size: 1rem; border-radius: 50px;
    text-decoration: none; transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(16,185,129,.35);
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(16,185,129,.45); color: #fff; }
.hero-scroll {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.4); font-size: 1.4rem;
    animation: scroll-b 2s ease-in-out infinite;
}
@keyframes scroll-b {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* GLOW LINE */
.glow-line {
    height: 4px;
    background: linear-gradient(90deg, var(--pulse), var(--green), var(--yellow), var(--pulse));
    background-size: 200% 100%;
    animation: glow-shift 3s linear infinite;
}
@keyframes glow-shift { from { background-position: 0% 0%; } to { background-position: 200% 0%; } }

/* STICKY NAV */
.toc-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99,102,241,.08);
    transition: box-shadow .3s;
}
.toc-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.toc-nav .nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; padding: 0 1.5rem; overflow-x: auto;
}
.toc-nav .nav-inner::-webkit-scrollbar { height: 0; }
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; margin-right: 1.5rem; flex-shrink: 0; text-decoration: none;
}
.nav-brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.nav-brand span { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .88rem; color: var(--pulse); }
.toc-links { display: flex; list-style: none; margin: 0; padding: 0; }
.toc-links a {
    display: flex; align-items: center; gap: 6px;
    padding: 14px 14px; font-size: .78rem; font-weight: 600;
    color: var(--text-muted); text-decoration: none;
    border-bottom: 3px solid transparent; transition: all .2s; white-space: nowrap;
}
.toc-links a:hover, .toc-links a.active { color: var(--pulse); border-bottom-color: var(--pulse); }
.step-badge {
    width: 20px; height: 20px; border-radius: 50%; background: var(--pulse);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: .65rem; font-weight: 800;
}

/* SECTIONS */
.tutorial-section { padding: 4.5rem 1.5rem; position: relative; }
.tutorial-section.alt { background: var(--bg-alt); }
.section-inner { max-width: 960px; margin: 0 auto; }
.step-indicator { display: inline-flex; align-items: center; gap: 12px; margin-bottom: .75rem; }
.step-number {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, var(--pulse), var(--pulse-light));
    color: #fff; font-family: 'Poppins', sans-serif;
    font-size: 1.3rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-pulse);
}
.step-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--pulse); }
.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800; color: var(--text); line-height: 1.3; margin-bottom: .25rem;
}
.section-header .section-desc { font-size: .98rem; color: var(--text-muted); max-width: 700px; margin-bottom: .25rem; }
.section-header .section-desc-fil { font-size: .88rem; color: var(--text-light); font-style: italic; max-width: 700px; }

/* SCREENSHOT CARD */
.screenshot-card {
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); margin: 1.5rem 0; background: #fff;
    transition: transform .4s ease, box-shadow .4s ease;
}
.screenshot-card:hover { transform: translateY(-3px); box-shadow: 0 16px 50px rgba(0,0,0,.12); }
.browser-bar {
    background: linear-gradient(180deg, #f6f6f6 0%, #ececec 100%);
    padding: 10px 16px; display: flex; align-items: center; gap: 7px;
    border-bottom: 1px solid #ddd;
}
.browser-dot { width: 11px; height: 11px; border-radius: 50%; }
.browser-dot.r { background: #ff5f57; }
.browser-dot.y { background: #ffbd2e; }
.browser-dot.g { background: #28c840; }
.browser-url {
    flex: 1; margin-left: 10px; padding: 5px 14px;
    background: #fff; border-radius: 6px; font-size: .76rem;
    color: var(--text-muted); font-family: 'SF Mono', 'Fira Code', monospace;
    border: 1px solid #e2e8f0; display: flex; align-items: center; gap: 6px;
}
.browser-url i { color: var(--pulse); font-size: .72rem; }
.screenshot-img-wrap { position: relative; }
.screenshot-img-wrap img { width: 100%; display: block; cursor: zoom-in; }

/* CALLOUT OVERLAYS — positioned on screenshots */
.callout {
    position: absolute; padding: 10px 16px;
    border-radius: 12px; font-size: .78rem; font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,.2); max-width: 280px;
    z-index: 5; line-height: 1.4;
    animation: co-pulse 2.5s ease-in-out infinite;
}
.callout i { margin-right: 5px; }
.callout-red { background: var(--red); color: #fff; }
.callout-green { background: var(--green); color: #fff; }
.callout-pulse { background: var(--pulse); color: #fff; }
.callout-yellow { background: #f59e0b; color: #fff; }
.callout-blue { background: var(--blue); color: #fff; }
.callout-dark { background: var(--navy); color: #fff; }
/* Arrow pointers */
.callout::after {
    content: ''; position: absolute; width: 0; height: 0;
}
.callout.arrow-left::after {
    right: 100%; top: 50%; transform: translateY(-50%);
    border-right: 8px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.callout.arrow-right::after {
    left: 100%; top: 50%; transform: translateY(-50%);
    border-left: 8px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.callout.arrow-bottom::after {
    top: 100%; left: 50%; transform: translateX(-50%);
    border-top: 8px solid currentColor; border-left: 6px solid transparent; border-right: 6px solid transparent;
}
.callout.arrow-top::after {
    bottom: 100%; left: 50%; transform: translateX(-50%);
    border-bottom: 8px solid currentColor; border-left: 6px solid transparent; border-right: 6px solid transparent;
}
.callout-red.arrow-left::after { border-right-color: var(--red); }
.callout-red.arrow-bottom::after { border-top-color: var(--red); }
.callout-green.arrow-left::after { border-right-color: var(--green); }
.callout-green.arrow-bottom::after { border-top-color: var(--green); }
.callout-pulse.arrow-left::after { border-right-color: var(--pulse); }
.callout-pulse.arrow-bottom::after { border-top-color: var(--pulse); }
.callout-yellow.arrow-bottom::after { border-top-color: #f59e0b; }
.callout-blue.arrow-left::after { border-right-color: var(--blue); }
.callout-dark.arrow-left::after { border-right-color: var(--navy); }

@keyframes co-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }

/* CALLOUT OVERLAYS (used inside mockups) */
.callout-overlay {
    position: absolute; padding: 8px 12px;
    border-radius: 10px; font-size: .7rem; font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,.2); max-width: 260px;
    z-index: 5; line-height: 1.4;
    animation: co-pulse 2.5s ease-in-out infinite;
    word-wrap: break-word; overflow-wrap: break-word;
}
.callout-arrow {
    position: absolute; width: 0; height: 0;
}
.callout-arrow.arrow-left {
    right: 100%; top: 50%; transform: translateY(-50%);
    border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.callout-arrow.arrow-right {
    left: 100%; top: 50%; transform: translateY(-50%);
    border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.callout-arrow.arrow-top {
    bottom: 100%; left: 50%; transform: translateX(-50%);
    border-left: 6px solid transparent; border-right: 6px solid transparent;
}
.callout-arrow.arrow-bottom {
    top: 100%; left: 50%; transform: translateX(-50%);
    border-left: 6px solid transparent; border-right: 6px solid transparent;
}
.callout-green .callout-arrow.arrow-left { border-right: 8px solid var(--green); }
.callout-green .callout-arrow.arrow-right { border-left: 8px solid var(--green); }
.callout-green .callout-arrow.arrow-top { border-bottom: 8px solid var(--green); }
.callout-green .callout-arrow.arrow-bottom { border-top: 8px solid var(--green); }
.callout-pulse .callout-arrow.arrow-left { border-right: 8px solid var(--pulse); }
.callout-pulse .callout-arrow.arrow-right { border-left: 8px solid var(--pulse); }
.callout-pulse .callout-arrow.arrow-top { border-bottom: 8px solid var(--pulse); }
.callout-pulse .callout-arrow.arrow-bottom { border-top: 8px solid var(--pulse); }
.callout-red .callout-arrow.arrow-left { border-right: 8px solid var(--red); }
.callout-red .callout-arrow.arrow-bottom { border-top: 8px solid var(--red); }
.callout-yellow .callout-arrow.arrow-left { border-right: 8px solid #f59e0b; }
.callout-yellow .callout-arrow.arrow-top { border-bottom: 8px solid #f59e0b; }
.callout-yellow .callout-arrow.arrow-bottom { border-top: 8px solid #f59e0b; }
.callout-blue .callout-arrow.arrow-left { border-right: 8px solid var(--blue); }

/* INSTRUCTION CARDS */
.instruction-list { display: flex; flex-direction: column; gap: .85rem; margin-top: 1.25rem; }
.instruction-item {
    display: flex; gap: 16px; padding: 18px 22px;
    background: #fff; border-radius: var(--r);
    border: 1px solid rgba(99,102,241,.07);
    transition: all .3s; align-items: flex-start;
}
.instruction-item:hover { border-color: rgba(99,102,241,.18); box-shadow: var(--shadow-md); transform: translateX(3px); }
.instruction-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.instruction-icon.green { background: rgba(16,185,129,.1); color: var(--green); }
.instruction-icon.blue { background: rgba(59,130,246,.1); color: var(--blue); }
.instruction-icon.yellow { background: rgba(245,158,11,.15); color: #b8860b; }
.instruction-icon.red { background: rgba(239,68,68,.1); color: var(--red); }
.instruction-icon.purple { background: rgba(99,102,241,.1); color: var(--pulse); }
.instruction-text h4 { font-size: .92rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.instruction-text p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.instruction-text .fil { font-size: .8rem; color: var(--text-light); font-style: italic; margin-top: 2px; }
.instruction-text code {
    background: rgba(99,102,241,.07); color: var(--pulse-dark);
    padding: 2px 8px; border-radius: 4px; font-size: .8rem; font-weight: 600;
}

/* WARNING / TIP BOXES */
.warning-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid rgba(245,158,11,.25); border-left: 5px solid var(--yellow);
    border-radius: var(--r); padding: 22px 26px; margin: 1.5rem 0;
}
.warning-box h4 { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 700; color: #92400e; margin-bottom: 10px; }
.warning-box ul { list-style: none; padding: 0; }
.warning-box li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: .87rem; color: #78350f; }
.warning-box li i { margin-top: 3px; }
.tip-box {
    background: linear-gradient(135deg, var(--pulse-50) 0%, #e0e7ff 100%);
    border: 1px solid rgba(99,102,241,.15); border-left: 5px solid var(--pulse);
    border-radius: var(--r); padding: 20px 24px; margin: 1.5rem 0;
}
.tip-box h4 { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 700; color: var(--pulse-dark); margin-bottom: 8px; }
.tip-box p { font-size: .85rem; color: #3730a3; line-height: 1.6; }

/* PART DIVIDER */
.part-divider {
    text-align: center; padding: 3.5rem 1.5rem;
    background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #6366f1 100%);
    color: #fff; position: relative; overflow: hidden;
}
.part-divider::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.part-divider h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 800; position: relative; margin-bottom: .4rem;
}
.part-divider p { position: relative; font-size: .92rem; opacity: .8; }
.part-icon {
    width: 60px; height: 60px; border-radius: 18px;
    background: rgba(129,140,248,.18);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: .8rem; position: relative;
    border: 2px solid rgba(129,140,248,.25);
}

/* CONNECTOR */
.connector { width: 3px; height: 45px; background: linear-gradient(180deg, var(--pulse), transparent); margin: 0 auto; }

/* COMPLETION */
.completion-section {
    text-align: center; padding: 4rem 1.5rem;
    background: linear-gradient(135deg, var(--pulse-50) 0%, #ecfdf5 50%, #fffbeb 100%);
    position: relative; overflow: hidden;
}
.completion-inner { position: relative; max-width: 700px; margin: 0 auto; }
.completion-badge {
    width: 90px; height: 90px; border-radius: 50%;
    background: linear-gradient(135deg, var(--green), #34d399);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.5rem; margin-bottom: 1.2rem;
    box-shadow: 0 8px 30px rgba(16,185,129,.3);
    animation: badge-float 3s ease-in-out infinite;
}
@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.completion-section h2 {
    font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 800;
    color: var(--pulse-dark); margin-bottom: .5rem;
}
.completion-section .congrats-text { font-size: .95rem; color: var(--text-muted); line-height: 1.8; max-width: 600px; margin: 0 auto; }
.help-card {
    background: #fff; border-radius: var(--r-lg); padding: 28px 32px;
    margin: 2rem auto 0; max-width: 480px;
    border: 1px solid rgba(99,102,241,.1);
    box-shadow: var(--shadow-md); text-align: left;
}
.help-card h4 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.help-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.7; word-break: break-word; }
.help-card a { color: var(--pulse); font-weight: 600; word-break: break-all; }

/* FOOTER */
.footer {
    background: linear-gradient(180deg, #1e1b4b 0%, #0f0e29 100%);
    color: rgba(255,255,255,.65); text-align: center; padding: 3rem 1.5rem 2rem;
}
.footer-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: .8rem; border: 2px solid rgba(129,140,248,.25); }
.footer h4 { font-family: 'Poppins', sans-serif; color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.footer p { font-size: .82rem; margin-bottom: .3rem; }
.footer .divider { width: 50px; height: 3px; background: var(--pulse); border-radius: 2px; margin: .8rem auto; }

/* LIGHTBOX */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.88); backdrop-filter: blur(12px);
    align-items: center; justify-content: center;
    cursor: zoom-out; animation: fadeIn .25s ease;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
    position: absolute; top: 18px; right: 22px; color: #fff; font-size: 1.8rem;
    cursor: pointer; opacity: .65; transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ROLE CARDS (index page) */
.role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.role-card {
    background: #fff; border-radius: var(--r-lg); padding: 2rem;
    border: 1px solid rgba(99,102,241,.08);
    text-align: center; text-decoration: none; color: var(--text);
    transition: all .3s ease;
}
.role-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--pulse); color: var(--text); }
.role-card-icon {
    width: 70px; height: 70px; border-radius: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 1rem;
}
.role-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.role-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 1rem; }
.role-card .badge-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.role-card .badge-list span {
    padding: 4px 12px; border-radius: 20px; font-size: .72rem; font-weight: 600;
    background: var(--pulse-50); color: var(--pulse);
}

/* MOCKUP SCREENS (CSS-rendered UI mockups) */
.mockup-screen {
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); margin: 1.5rem 0; background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.mockup-topbar {
    background: linear-gradient(135deg, var(--pulse-dark), var(--pulse));
    padding: 12px 20px; display: flex; align-items: center; justify-content: space-between;
    color: #fff;
}
.mockup-topbar .brand { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .9rem; }
.mockup-topbar .user { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.mockup-topbar .avatar {
    width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700;
}
.mockup-sidebar {
    position: absolute; left: 0; top: 44px; bottom: 0; width: 200px;
    background: #fff; border-right: 1px solid #e2e8f0; padding: 12px 0;
    font-size: .75rem;
}
.mockup-sidebar-item {
    padding: 6px 14px; color: var(--text-muted); display: flex; align-items: center; gap: 6px;
    font-weight: 500; font-size: .6rem; cursor: default;
}
.mockup-sidebar-item.active { color: var(--pulse); font-weight: 700; background: var(--pulse-50); border-left: 3px solid var(--pulse); }
.mockup-sidebar-item i { font-size: .65rem; width: 14px; text-align: center; }
.mockup-sidebar-heading {
    padding: 6px 12px 2px; font-size: .45rem; color: #a78bfa;
    font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.mockup-content {
    margin-left: 200px; padding: 20px; min-height: 250px; position: relative;
}

/* LOGIN MOCKUP */
.mockup-login {
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); margin: 1.5rem 0;
    background: linear-gradient(135deg, #312e81, #6366f1);
    padding: 40px 20px; text-align: center;
}
.mockup-login-card {
    background: #fff; border-radius: var(--r); padding: 30px;
    max-width: 360px; margin: 0 auto; text-align: left;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.mockup-login-card h3 {
    font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.1rem;
    color: var(--text); text-align: center; margin-bottom: 6px;
}
.mockup-login-card .subtitle { text-align: center; font-size: .8rem; color: var(--text-muted); margin-bottom: 20px; }
.mockup-input {
    width: 100%; padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-size: .85rem; margin-bottom: 12px; background: #f8fafc; color: var(--text);
}
.mockup-btn {
    width: 100%; padding: 12px; border: none; border-radius: 10px;
    font-weight: 700; font-size: .9rem; cursor: default;
}
.mockup-btn-pulse { background: linear-gradient(135deg, var(--pulse), var(--pulse-light)); color: #fff; }

/* URL DISPLAY */
.url-display {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; background: #fff;
    border: 1px solid rgba(99,102,241,.15); border-radius: 50px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: .82rem; color: var(--text-muted);
    margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.url-display i { color: var(--pulse); }

/* LOGIN MOCKUP FIELDS */
.mockup-login-logo { margin-bottom: 10px; }
.mockup-login-logo img {
    width: 70px; height: 70px; border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(255,255,255,.25); box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.mockup-login-title { color: #fff; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 2px; }
.mockup-login-subtitle { color: rgba(255,255,255,.6); font-size: .8rem; margin-bottom: 20px; }
.mockup-login-field {
    position: relative; background: rgba(255,255,255,.12); border-radius: 10px;
    padding: 10px 14px; color: rgba(255,255,255,.6); font-size: .85rem;
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
    max-width: 360px; margin-left: auto; margin-right: auto; text-align: left;
}
.mockup-login-btn {
    background: var(--green); color: #fff; padding: 12px; border-radius: 10px;
    font-weight: 700; font-size: .9rem; max-width: 360px; margin: 8px auto 0; cursor: default;
}

/* DEVICE SHOWCASE — side-by-side desktop + mobile */
.device-showcase {
    display: grid; grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem; align-items: start; margin: 1.5rem 0;
}
.device-header {
    font-size: .72rem; font-weight: 700; color: var(--text-muted);
    display: flex; align-items: center; gap: 6px;
    margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .5px;
}
.device-header i { font-size: .85rem; color: var(--pulse); }
.device-desktop .screenshot-card { margin: 0; }
.device-desktop .mockup-login { margin: 0; }

/* PHONE FRAME */
.phone-frame {
    background: #1a1a2e; border-radius: 32px; padding: 10px;
    max-width: 260px; margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0,0,0,.15), inset 0 0 0 2px rgba(255,255,255,.08);
}
.phone-notch {
    width: 70px; height: 5px; background: #333;
    border-radius: 3px; margin: 4px auto 6px;
}
.phone-screen {
    border-radius: 22px; overflow: hidden;
    background: #fff; min-height: 340px;
}
.phone-topbar {
    background: linear-gradient(135deg, var(--pulse-dark), var(--pulse));
    padding: 8px 12px; color: #fff; font-size: .65rem; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}
.phone-topbar .bi-list { font-size: .8rem; }
.phone-stat {
    background: #f5f3ff; border-radius: 6px; padding: 5px 8px;
    margin-bottom: 3px; display: flex; justify-content: space-between; align-items: center;
}
.phone-stat-label { font-size: .42rem; color: var(--text-light); }
.phone-stat-value { font-size: .55rem; font-weight: 800; }
.phone-btn {
    display: inline-block; text-align: center; padding: 4px 10px;
    border-radius: 6px; font-size: .5rem; font-weight: 600;
    color: var(--text-muted); background: #f1f5f9;
}
.phone-table { width: 100%; font-size: .42rem; border-collapse: collapse; }
.phone-table th { background: #f8fafc; padding: 3px 4px; font-weight: 600; text-align: left; }
.phone-table td { padding: 3px 4px; border-bottom: 1px solid #f1f5f9; }
.phone-table-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 6px; font-size: .5rem; border-bottom: 1px solid #f1f5f9;
}
.phone-table-row span { flex: 1; }
.phone-login {
    background: linear-gradient(135deg, #312e81, #6366f1);
    padding: 24px 14px; text-align: center; min-height: 340px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.phone-login-logo {
    width: 40px; height: 40px; border-radius: 50%; background: #fff; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.15); overflow: hidden;
}
.phone-login-logo img { width: 100%; height: 100%; object-fit: cover; }
.phone-login-title { color: #fff; font-weight: 700; font-size: .65rem; margin-bottom: 2px; }
.phone-login-sub { color: rgba(255,255,255,.6); font-size: .45rem; margin-bottom: 12px; }
.phone-login-field {
    width: 100%; background: rgba(255,255,255,.12); border-radius: 8px;
    padding: 7px 10px; color: rgba(255,255,255,.5); font-size: .5rem;
    display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
    text-align: left;
}
.phone-login-btn {
    width: 100%; padding: 8px; background: var(--green); color: #fff;
    border-radius: 8px; font-size: .52rem; font-weight: 700; margin-top: 4px;
    text-align: center;
}

/* ENCOURAGEMENT */
.encouragement {
    padding: 2.5rem 1.5rem; text-align: center;
    background: linear-gradient(135deg, var(--pulse-50) 0%, #ecfdf5 50%, #fffbeb 100%);
}
.encouragement-inner { max-width: 600px; margin: 0 auto; }
.encouragement .emoji { font-size: 2.5rem; margin-bottom: .5rem; }
.encouragement h3 { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--pulse-dark); margin-bottom: .3rem; }
.encouragement p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }

/* FOOTER DEVELOPER CREDITS */
.footer-devs {
    margin-top: .6rem; font-size: .78rem; color: rgba(255,255,255,.4);
}
.footer-devs a {
    color: #818cf8; text-decoration: none; font-weight: 600; transition: color .2s;
}
.footer-devs a:hover { color: #a5b4fc; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .device-showcase { grid-template-columns: 1fr 1fr; }
    .phone-frame { max-width: 240px; }
}
@media (max-width: 768px) {
    .device-showcase { grid-template-columns: 1fr; }
    .device-mobile { order: -1; }
    .phone-frame { max-width: 220px; }
    .mockup-sidebar { display: none; }
    .mockup-content { margin-left: 0; }
    .hero h1 { font-size: 1.6rem; }
    .hero .subtitle { font-size: .9rem; padding: 0 .5rem; }
    .hero .subtitle-fil { font-size: .82rem; padding: 0 .5rem; }
    .hero-logo { width: 80px; height: 80px; }
    .role-cards { grid-template-columns: 1fr; }
    .tutorial-section { padding: 2.5rem 1rem; }
    .section-header h2 { font-size: 1.25rem; }
    .section-header .section-desc { font-size: .88rem; }
    .section-header .section-desc-fil { font-size: .8rem; }
    .instruction-item { padding: 14px 16px; gap: 12px; }
    .instruction-icon { width: 36px; height: 36px; font-size: .95rem; }
    .instruction-text h4 { font-size: .85rem; }
    .instruction-text p { font-size: .8rem; }
    .completion-section { padding: 2.5rem 1rem; }
    .completion-badge { width: 70px; height: 70px; font-size: 2rem; }
    .completion-section h2 { font-size: 1.3rem; }
    .help-card { padding: 20px 22px; }
    .part-divider { padding: 2.5rem 1rem; }
    .toc-links a { padding: 10px 8px; font-size: .7rem; }
    .warning-box, .tip-box { padding: 16px 18px; }
    .url-display { font-size: .72rem; padding: 6px 14px; }
    .footer { padding: 2rem 1rem 1.5rem; }
}
@media (max-width: 480px) {
    .hero { min-height: 85vh; }
    .hero-content { padding: 1.5rem 1rem; }
    .hero h1 { font-size: 1.35rem; }
    .hero-cta { padding: 12px 28px; font-size: .9rem; }
    .step-number { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 12px; }
    .role-card { padding: 1.5rem; }
    .role-card-icon { width: 56px; height: 56px; font-size: 1.4rem; border-radius: 16px; }
    .nav-brand { margin-right: .8rem; }
    .nav-brand span { font-size: .78rem; }
    .screenshot-card { border-radius: var(--r); }
    .browser-bar { padding: 8px 12px; }
    .browser-url { font-size: .65rem; padding: 4px 10px; }
    .callout-overlay { display: none; }
    .mockup-login-field .callout-overlay { display: none; }
}
