/* ═══════════════════════════════════════════════════════════
   TUTORIALS / WIKI — Full-screen Medium-style layout
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
.tut-topbar,
.tut-hero,
.tut-featured,
.tut-section,
.tut-related,
.tut-cta,
.tut-footer,
.tut-article-header,
.tut-article {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Top Bar ──────────────────────────────────────────────── */
.tut-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.95);
}

.tut-topbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tut-topbar__back {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
}

.tut-topbar__back:hover { color: #111827; }

.tut-topbar__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tut-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tut-topbar__btn {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #374151;
    border: 1px solid #d1d5db;
    transition: all 0.15s;
}

.tut-topbar__btn:hover {
    background: #f3f4f6;
}

.tut-topbar__btn--cta {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

.tut-topbar__btn--cta:hover {
    background: #4338ca;
    border-color: #4338ca;
}

/* ── Hero ─────────────────────────────────────────────────── */
.tut-hero {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 5rem 1.5rem 4rem;
    text-align: center;
}

.tut-hero__inner {
    max-width: 700px;
    margin: 0 auto;
}

.tut-hero__title {
    font-size: 3rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 1rem;
}

.tut-hero__subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.tut-hero__categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.tut-hero__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: #fff;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    border: 1px solid #e5e7eb;
}

.tut-hero__tag:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* ── Featured Card ────────────────────────────────────────── */
.tut-featured {
    padding: 3rem 1.5rem;
    background: #f9fafb;
}

.tut-featured__inner {
    max-width: 900px;
    margin: 0 auto;
}

.tut-featured__badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.tut-featured__card {
    display: grid;
    grid-template-columns: 380px 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 8px 30px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tut-featured__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 16px 40px rgba(0,0,0,0.08);
}

.tut-featured__cover {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tut-featured__body {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tut-featured__cat {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.tut-featured__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.tut-featured__summary {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.tut-featured__meta {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* ── Section Headers ──────────────────────────────────────── */
.tut-section {
    padding: 3rem 1.5rem 2rem;
}

.tut-section__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.tut-section__header {
    margin-bottom: 1.5rem;
}

.tut-section__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    margin: 0;
}

.tut-section__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* ── Card Grid ────────────────────────────────────────────── */
.tut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.tut-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tut-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.tut-card__cover {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tut-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.tut-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.tut-card__summary {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tut-card__meta {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ── Cover Shapes & Icons (Phosphor Bold) ────────────────── */
.tut-card__cover,
.tut-featured__cover {
    background: #f0f1f5 !important;
    position: relative;
    overflow: hidden;
}

.tut-shape {
    position: absolute;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tut-card:hover .tut-shape,
.tut-featured__card:hover .tut-shape {
    opacity: 0.35 !important;
}

.tut-card__cover > i,
.tut-featured__cover > i {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    color: #1e293b;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.88);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    animation: tut-icon-float 3s ease-in-out infinite;
}

.tut-featured__cover > i {
    font-size: 2.5rem;
    width: 72px;
    height: 72px;
    border-radius: 18px;
}

@keyframes tut-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ── CTA Section ──────────────────────────────────────────── */
.tut-cta {
    padding: 4rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.tut-cta__inner {
    max-width: 600px;
    margin: 0 auto;
}

.tut-cta__inner h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.5rem;
}

.tut-cta__inner p {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0 0 1.5rem;
}

.tut-cta__btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #059669;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}

.tut-cta__btn:hover {
    background: #047857;
    transform: translateY(-1px);
}

/* ── Footer ───────────────────────────────────────────────── */
.tut-footer {
    padding: 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.tut-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.tut-footer__inner a {
    color: #6b7280;
    text-decoration: none;
}

.tut-footer__inner a:hover { color: #111827; }


/* ═══════════════════════════════════════════════════════════
   ARTICLE PAGE STYLES
   ═══════════════════════════════════════════════════════════ */

/* ── Article Header ───────────────────────────────────────── */
.tut-article-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
}

.tut-article-header__inner {
    max-width: 700px;
    margin: 0 auto;
}

.tut-article-header__cat {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.tut-article-header__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}

.tut-article-header__summary {
    font-size: 1.15rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.tut-article-header__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.tut-article-header__meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Article Body ─────────────────────────────────────────── */
.tut-article {
    padding: 3rem 1.5rem 4rem;
}

.tut-article__inner {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #374151;
}

.tut-article__inner h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.02em;
}

.tut-article__inner h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 2rem 0 0.75rem;
}

.tut-article__inner p {
    margin: 0 0 1.25rem;
}

.tut-article__inner ul,
.tut-article__inner ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.tut-article__inner li {
    margin-bottom: 0.4rem;
}

.tut-article__inner code {
    background: #f3f4f6;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'JetBrains Mono', monospace;
    color: #7c3aed;
}

/* ── Lead Paragraph ───────────────────────────────────────── */
.tut-lead {
    font-size: 1.2rem;
    color: #4b5563;
    line-height: 1.7;
    border-left: 4px solid #4f46e5;
    padding-left: 1.25rem;
    margin: 0 0 2rem;
}

/* ── Checklist ────────────────────────────────────────────── */
.tut-checklist {
    list-style: none;
    padding: 0;
}

.tut-checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.6rem;
}

.tut-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #ecfdf5;
    border: 2px solid #059669;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3L4.5 8.5L2 6' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ── Numbered Steps ───────────────────────────────────────── */
.tut-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.tut-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
}

.tut-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Tip Box ──────────────────────────────────────────────── */
.tut-tip {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tut-tip strong {
    color: #1e40af;
}

/* ── Code Block ───────────────────────────────────────────── */
.tut-code-block {
    border-radius: 10px;
    overflow: hidden;
    margin: 1.5rem 0;
    border: 1px solid #e5e7eb;
}

.tut-code-block__header {
    background: #1f2937;
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.tut-code-block__body {
    background: #f9fafb;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
}

/* ── Result Box ───────────────────────────────────────────── */
.tut-result-box {
    display: flex;
    gap: 1rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.tut-result-box__icon {
    flex-shrink: 0;
}

.tut-result-box ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.tut-result-box strong {
    color: #065f46;
}

/* ── Stats Row ────────────────────────────────────────────── */
.tut-stats-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.tut-stat {
    text-align: center;
}

.tut-stat__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #4f46e5;
    letter-spacing: -0.03em;
    line-height: 1;
}

.tut-stat__label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.3rem;
}

/* ── Table ────────────────────────────────────────────────── */
.tut-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.tut-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tut-table th {
    background: #f3f4f6;
    text-align: left;
    padding: 0.6rem 1rem;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.tut-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

/* ── Example Grid ─────────────────────────────────────────── */
.tut-example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.tut-example-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
}

.tut-example-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
}

.tut-example-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.tut-example-card p {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}


/* ═══════════════════════════════════════════════════════════
   CSS ILLUSTRATIONS & ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

/* ── Phone Mockup ─────────────────────────────────────────── */
.tut-illustration {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.tut-phone {
    width: 260px;
    background: #111827;
    border-radius: 32px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
}

.tut-phone--small {
    width: 220px;
    margin: 1.5rem auto;
    display: block;
}

.tut-phone__notch {
    width: 100px;
    height: 24px;
    background: #111827;
    border-radius: 0 0 14px 14px;
    margin: 0 auto -12px;
    position: relative;
    z-index: 2;
}

.tut-phone__screen {
    background: #fff;
    border-radius: 22px;
    padding: 2rem 1rem 1.5rem;
    min-height: 180px;
}

.tut-phone__sender-demo {
    padding: 0.5rem;
}

.tut-phone__sender-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.tut-phone__sender-msg {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
    background: #f3f4f6;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
}

/* ── Bubble ───────────────────────────────────────────────── */
.tut-bubble {
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 90%;
    animation: tut-bubble-in 0.5s ease-out;
}

.tut-bubble--incoming {
    background: #e5e7eb;
    color: #111827;
    border-bottom-left-radius: 4px;
}

.tut-bubble strong {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

@keyframes tut-bubble-in {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Confetti (Birthday) ──────────────────────────────────── */
.tut-illustration--birthday {
    position: relative;
}

.tut-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.tut-confetti span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: tut-confetti-fall 3s ease-in-out infinite;
}

.tut-confetti span:nth-child(1) { background: #4f46e5; left: 10%; animation-delay: 0s; animation-duration: 2.5s; }
.tut-confetti span:nth-child(2) { background: #059669; left: 25%; animation-delay: 0.3s; animation-duration: 3s; }
.tut-confetti span:nth-child(3) { background: #dc2626; left: 40%; animation-delay: 0.6s; animation-duration: 2.8s; }
.tut-confetti span:nth-child(4) { background: #f59e0b; left: 55%; animation-delay: 0.2s; animation-duration: 3.2s; }
.tut-confetti span:nth-child(5) { background: #7c3aed; left: 70%; animation-delay: 0.5s; animation-duration: 2.6s; }
.tut-confetti span:nth-child(6) { background: #ec4899; left: 82%; animation-delay: 0.8s; animation-duration: 3s; }
.tut-confetti span:nth-child(7) { background: #06b6d4; left: 15%; animation-delay: 1s; animation-duration: 2.9s; }
.tut-confetti span:nth-child(8) { background: #f97316; left: 60%; animation-delay: 0.4s; animation-duration: 3.1s; }

@keyframes tut-confetti-fall {
    0% { top: -10%; opacity: 1; transform: rotate(0deg) scale(1); }
    100% { top: 100%; opacity: 0; transform: rotate(720deg) scale(0.5); }
}

/* ── Flow Steps ───────────────────────────────────────────── */
.tut-illustration--flow { padding: 1.5rem 0; }

.tut-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.tut-flow__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.tut-flow__step--active { opacity: 1; }

.tut-flow__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.tut-flow__step span {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
}

.tut-flow__line {
    width: 40px;
    height: 2px;
    background: #d1d5db;
    margin-bottom: 1.5rem;
}

/* ── Calendar ─────────────────────────────────────────────── */
.tut-calendar {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 300px;
    border: 1px solid #e5e7eb;
}

.tut-calendar__header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 1rem;
}

.tut-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.tut-calendar__day {
    padding: 0.4rem;
    font-size: 0.85rem;
    color: #6b7280;
    border-radius: 6px;
}

.tut-calendar__day--highlight {
    background: #4f46e5;
    color: #fff;
    font-weight: 700;
    animation: tut-day-pulse 2s ease-in-out infinite;
}

@keyframes tut-day-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79,70,229,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(79,70,229,0); }
}

.tut-calendar__legend {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.tut-calendar__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4f46e5;
}

/* ── Mini Cards (Step Visual) ─────────────────────────────── */
.tut-step-visual {
    margin: 1.5rem 0;
}

.tut-card-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tut-mini-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.tut-mini-card__icon {
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.tut-mini-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.3rem;
}

.tut-mini-card p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* ── Journey (Getting Started) ────────────────────────────── */
.tut-journey {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tut-journey__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: tut-journey-pop 0.5s ease-out backwards;
    animation-delay: calc(var(--delay, 0) * 0.15s);
}

@keyframes tut-journey-pop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.tut-journey__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tut-journey__item span {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.tut-journey__arrow {
    color: #d1d5db;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* ── Timeline (Loan Reminders) ────────────────────────────── */
.tut-timeline {
    position: relative;
    padding-left: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.tut-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.tut-timeline__item {
    position: relative;
    padding-bottom: 1.5rem;
    animation: tut-timeline-in 0.5s ease-out backwards;
}

.tut-timeline__item:nth-child(1) { animation-delay: 0s; }
.tut-timeline__item:nth-child(2) { animation-delay: 0.15s; }
.tut-timeline__item:nth-child(3) { animation-delay: 0.3s; }
.tut-timeline__item:nth-child(4) { animation-delay: 0.45s; }

@keyframes tut-timeline-in {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.tut-timeline__dot {
    position: absolute;
    left: -2rem;
    top: 0.2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
    z-index: 1;
}

.tut-timeline__content strong {
    display: block;
    font-size: 0.95rem;
    color: #111827;
}

.tut-timeline__content p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0.15rem 0 0;
}

/* ── School Visual ────────────────────────────────────────── */
.tut-school-visual {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.tut-school-messages {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tut-school-msg {
    background: #f3f4f6;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #374151;
    animation: tut-slide-right 0.5s ease-out backwards;
}

.tut-school-msg--1 { animation-delay: 0s; }
.tut-school-msg--2 { animation-delay: 0.2s; }
.tut-school-msg--3 { animation-delay: 0.4s; }

@keyframes tut-slide-right {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ── Church Bell ──────────────────────────────────────────── */
.tut-church-visual {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.tut-church-bell {
    width: 48px;
    height: 48px;
    background: #4f46e5;
    border-radius: 50%;
    position: relative;
    animation: tut-bell-ring 2s ease-in-out infinite;
    flex-shrink: 0;
}

.tut-church-bell::before {
    content: "🔔";
    font-size: 1.5rem;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes tut-bell-ring {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-14deg); }
    30% { transform: rotate(8deg); }
    40% { transform: rotate(-8deg); }
    50% { transform: rotate(0deg); }
}

.tut-church-text {
    flex: 1;
    max-width: 350px;
}

/* ── Planner Visual ───────────────────────────────────────── */
.tut-planner-visual {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.tut-planner-header {
    background: #1f2937;
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.tut-planner-timeline {
    padding: 1rem 1.25rem;
}

.tut-planner-row {
    position: relative;
    height: 36px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.tut-planner-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    width: 70px;
    flex-shrink: 0;
}

.tut-planner-bar {
    position: absolute;
    left: calc(70px + var(--start, 0%));
    width: var(--width, 20%);
    height: 26px;
    border-radius: 6px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    animation: tut-bar-grow 0.6s ease-out backwards;
}

@keyframes tut-bar-grow {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}

/* ── Variable Demo ────────────────────────────────────────── */
.tut-variable-demo {
    max-width: 500px;
    width: 100%;
}

.tut-variable-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.tut-variable-template {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.tut-variable-text {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

.tut-var {
    background: #ede9fe;
    color: #7c3aed;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    font-weight: 600;
}

.tut-variable-arrow {
    text-align: center;
    padding: 0.25rem 0;
    animation: tut-arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes tut-arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.tut-variable-results {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tut-variable-result {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: #374151;
    animation: tut-result-in 0.4s ease-out backwards;
}

.tut-variable-result:nth-child(1) { animation-delay: 0.2s; }
.tut-variable-result:nth-child(2) { animation-delay: 0.4s; }
.tut-variable-result:nth-child(3) { animation-delay: 0.6s; }

@keyframes tut-result-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Global Variables Demo ────────────────────────────────── */
.tut-global-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    width: 100%;
}

.tut-global-settings {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    width: 100%;
}

.tut-global-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.tut-global-item {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: #374151;
}

.tut-global-item code {
    background: #f3f4f6;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'JetBrains Mono', monospace;
    color: #059669;
}

.tut-global-arrow {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}

.tut-global-templates {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.tut-global-template {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: #374151;
}

/* ── Priority ─────────────────────────────────────────────── */
.tut-priority {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 500px;
    width: 100%;
}

.tut-priority__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #374151;
}

.tut-priority__item--high { background: #ecfdf5; border: 1px solid #a7f3d0; }
.tut-priority__item--med { background: #eff6ff; border: 1px solid #bfdbfe; }
.tut-priority__item--low { background: #f9fafb; border: 1px solid #e5e7eb; }

.tut-priority__rank {
    font-weight: 800;
    font-size: 0.8rem;
    color: #6b7280;
    flex-shrink: 0;
    width: 28px;
}

.tut-priority__badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    background: #059669;
    color: #fff;
    flex-shrink: 0;
}

.tut-priority__badge--low {
    background: #9ca3af;
}

/* ── Recurring Visual ─────────────────────────────────────── */
.tut-recurring-visual {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tut-recurring-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tut-spin-slow 8s linear infinite;
    flex-shrink: 0;
}

@keyframes tut-spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tut-recurring-icon {
    animation: tut-spin-reverse 8s linear infinite;
}

@keyframes tut-spin-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.tut-recurring-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tut-recurring-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
}

.tut-recurring-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Groups Visual ────────────────────────────────────────── */
.tut-groups-visual {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tut-group-bubble {
    background: #fff;
    border: 2px solid;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    text-align: center;
    animation: tut-group-pop 0.5s ease-out backwards;
}

.tut-group-bubble--1 { border-color: #4f46e5; animation-delay: 0s; }
.tut-group-bubble--2 { border-color: #059669; animation-delay: 0.15s; }
.tut-group-bubble--3 { border-color: #f59e0b; animation-delay: 0.3s; }

@keyframes tut-group-pop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.tut-group-bubble strong {
    display: block;
    font-size: 0.95rem;
    color: #111827;
    margin-bottom: 0.15rem;
}

.tut-group-bubble span {
    font-size: 0.8rem;
    color: #6b7280;
}

/* ── Related Section ──────────────────────────────────────── */
.tut-related {
    padding: 3rem 1.5rem;
    background: #f9fafb;
}

.tut-related__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.tut-related__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .tut-hero__title { font-size: 2rem; }
    .tut-hero__subtitle { font-size: 1rem; }
    .tut-hero { padding: 3rem 1rem 2.5rem; }

    .tut-featured__card {
        grid-template-columns: 1fr;
    }

    .tut-featured__cover { min-height: 160px; }

    .tut-grid {
        grid-template-columns: 1fr;
    }

    .tut-article-header__title { font-size: 1.8rem; }
    .tut-article__inner { font-size: 1rem; }

    .tut-card-pair { grid-template-columns: 1fr; }

    .tut-stats-row { gap: 1.5rem; }
    .tut-stat__number { font-size: 2rem; }

    .tut-topbar__back span,
    .tut-topbar__brand span { display: none; }

    .tut-school-visual { flex-direction: column; align-items: center; }
    .tut-church-visual { flex-direction: column; align-items: center; }
    .tut-recurring-visual { flex-direction: column; }

    .tut-planner-visual { max-width: 100%; }
    .tut-planner-bar { font-size: 0.6rem; }

    .tut-example-grid { grid-template-columns: 1fr; }

    .tut-flow { gap: 0.25rem; }
    .tut-flow__line { width: 20px; }
    .tut-flow__circle { width: 32px; height: 32px; font-size: 0.8rem; }
    .tut-flow__step span { font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .tut-hero__title { font-size: 1.7rem; }
    .tut-article-header__title { font-size: 1.5rem; }
    .tut-section__title { font-size: 1.25rem; }
    .tut-featured__title { font-size: 1.3rem; }
}
