/* Quelld Feature Guides - polished, lightly animated info pages */

.qgd {
    max-width: 660px;
    margin: 0 auto;
    padding: 8px 4px 48px;
}

/* ─── Entrance animation ───────────────────────
   Elements fade and lift in, staggered via --d.
   Respects reduced-motion preferences.           */

@keyframes qgd-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.qgd-reveal {
    opacity: 0;
    animation: qgd-rise 0.55s cubic-bezier(0.22, 0.75, 0.35, 1) forwards;
    animation-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    .qgd-reveal { animation: none; opacity: 1; }
    .qgd-hero__q { animation: none !important; }
}

/* ─── Back link ────────────────────────────── */

.qgd-back {
    display: inline-block;
    padding: 12px 16px 12px 14px;
    margin-left: -14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--quelld-purple, #9a4fe0);
    text-decoration: none;
    transition: background 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

/* ─── Hero ─────────────────────────────────── */

.qgd-hero {
    text-align: center;
    padding: 18px 16px 26px;
    border-radius: 24px;
    background: linear-gradient(150deg, var(--quelld-purple-light, #EDE5FF), var(--quelld-teal-light, #E5F6F6));
    margin-bottom: 22px;
}

@keyframes qgd-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

.qgd-hero__q {
    height: 132px;
    width: auto;
    object-fit: contain;
    margin-bottom: 6px;
    animation: qgd-float 4.5s ease-in-out infinite;
}

.qgd-hero__title {
    font-size: 28px;
    font-weight: 700;
    color: #2D2D3A;
    margin: 0 0 6px;
    line-height: 1.2;
}

.qgd-hero__tagline {
    font-size: 16px;
    color: #5A5A6A;
    margin: 0;
    line-height: 1.5;
}

/* ─── Intro ────────────────────────────────── */

.qgd-intro {
    font-size: 16px;
    line-height: 1.7;
    color: #4A4A5A;
    margin: 0 0 26px;
}

/* ─── Points ───────────────────────────────── */

.qgd-points {
    display: grid;
    gap: 10px;
    margin-bottom: 26px;
}

.qgd-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #EFEFF3;
    background: #FFFFFF;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.qgd-point:hover {
    border-color: var(--quelld-purple, #9a4fe0);
    box-shadow: 0 4px 16px rgba(149, 79, 224, 0.10);
    transform: translateY(-2px);
}

.qgd-point__icon {
    font-size: 24px;
    line-height: 1.2;
    flex-shrink: 0;
}

.qgd-point__title {
    font-size: 15px;
    font-weight: 700;
    color: #2D2D3A;
    margin-bottom: 3px;
}

.qgd-point__text {
    font-size: 14px;
    line-height: 1.6;
    color: #7A7A8A;
}

/* ─── Steps ────────────────────────────────── */

.qgd-steps {
    padding: 20px 22px;
    border-radius: 18px;
    background: #F7F7FA;
    margin-bottom: 26px;
}

.qgd-steps__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9A9AA8;
    margin-bottom: 14px;
}

.qgd-step {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
}

.qgd-step__num {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--quelld-purple, #9a4fe0);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qgd-step__text {
    font-size: 14.5px;
    color: #3A3A4A;
    line-height: 1.5;
}

/* ─── CTA ──────────────────────────────────── */

.qgd-cta { text-align: center; }

.qgd-cta__btn {
    display: block;
    padding: 16px 24px;
    border-radius: 14px;
    background: var(--quelld-purple, #9a4fe0);
    color: #FFFFFF !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.qgd-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 79, 224, 0.28);
}

.qgd-cta__btn:active { transform: translateY(0); }

.qgd-cta__alt {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--quelld-purple, #9a4fe0);
    text-decoration: none;
}

/* ─── Index ────────────────────────────────── */

.qgd-index { display: grid; gap: 10px; }

.qgd-index__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid #EFEFF3;
    background: #FFFFFF;
    text-decoration: none !important;
    color: inherit !important;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.qgd-index__card:hover {
    border-color: var(--quelld-purple, #9a4fe0);
    box-shadow: 0 4px 16px rgba(149, 79, 224, 0.10);
    transform: translateY(-2px);
}

.qgd-index__q {
    height: 56px;
    width: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.qgd-index__body { flex: 1; min-width: 0; }

.qgd-index__name {
    font-size: 16px;
    font-weight: 700;
    color: #2D2D3A;
}

.qgd-index__tag {
    font-size: 13.5px;
    color: #8A8A98;
    line-height: 1.5;
    margin-top: 2px;
}

.qgd-index__chev {
    font-size: 26px;
    color: #C6C6D2;
    flex-shrink: 0;
    line-height: 1;
}

/* ─── Small screens ────────────────────────── */

@media (max-width: 520px) {
    .qgd-hero__q { height: 108px; }
    .qgd-hero__title { font-size: 24px; }
    .qgd-hero__tagline { font-size: 15px; }
    .qgd-intro { font-size: 15px; }
}
