/* ====== VoteCraft Coin — New Section Styles ====== */
/* Paths, Demo Flow, Tags Showcase, Earn Summary     */

/* ====== BLUE SECTION BASE ====== */

.section-blue {
    background: #2563eb;
}

.section-blue .section-title,
.section-blue .section-subtitle {
    color: #fff;
}

.section-blue .section-subtitle {
    opacity: 1;
}

/* ====== SECTION: TWO-PATH EXPLAINER (#paths) ====== */

.paths-section {
    min-height: auto;
    padding: 48px 24px;
}

.paths-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    max-width: 860px;
    margin: 0 auto 40px;
}

.path-card {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.2s;
}

.path-card-game {
    border-top: 3px solid #F2295B;
}

.path-card-game .path-label {
    color: #fff;
}

.path-card-nonprofit {
    border-top: 3px solid var(--teal);
}

.path-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.path-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.path-icon svg {
    width: 26px;
    height: 26px;
}

.path-icon-game {
    background: #F2295B;
    color: #fff;
}

.path-icon-nonprofit {
    background: var(--teal);
    color: #fff;
}

.path-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

.path-flow {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.path-step {
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    line-height: 1.4;
}

.path-step-highlight {
    background: rgba(20, 204, 176, 0.2);
    border-color: rgba(20, 204, 176, 0.5);
    color: #fff;
    font-weight: 600;
}

.path-step-vca {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.path-arrow {
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1;
    padding: 1px 0;
}

.paths-or {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    padding-top: 0;
    gap: 8px;
}

.paths-or-line {
    flex: 1;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    min-height: 20px;
}

.paths-or-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.paths-result {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 22px 28px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.paths-result-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin-bottom: 14px;
}

.paths-result-items {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.paths-result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
}

.paths-result-icon {
    font-size: 1.2rem;
}

/* ====== SECTION: INTERACTIVE DEMO (#demo) ====== */

.demo-section {
    padding: 72px 24px;
}

/* Toggle */
.demo-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    max-width: 400px;
    margin: 0 auto 32px;
    padding: 4px;
}

.demo-toggle-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: none;
    color: #64748b;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.demo-toggle-btn.demo-toggle-active {
    background: var(--primary);
    color: #fff;
}

/* Progress */
.demo-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 460px;
    margin: 0 auto 32px;
}

.demo-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.demo-progress-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.06);
    border: 2px solid #d1d5db;
    color: #9ca3af;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.demo-progress-step.demo-progress-active .demo-progress-num {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.demo-progress-step.demo-progress-done {
    cursor: pointer;
}

.demo-progress-step.demo-progress-done .demo-progress-num {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    font-size: 0;
}

.demo-progress-step.demo-progress-done .demo-progress-num::after {
    content: '✓';
    font-size: 0.85rem;
}

.demo-progress-label {
    font-size: 0.7rem;
    color: #9ca3af;
    white-space: nowrap;
    transition: color 0.25s;
}

.demo-progress-step.demo-progress-active .demo-progress-label {
    color: #374151;
    font-weight: 600;
}

.demo-progress-step.demo-progress-done .demo-progress-label {
    color: #6b7280;
}

.demo-progress-connector {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin-bottom: 22px;
    max-width: 80px;
}

/* Demo shell */
.demo-shell {
    max-width: 720px;
    margin: 0 auto;
}

/* Steps */
.demo-step {
    animation: demoStepIn 0.3s ease both;
}

.demo-step-entering {
    animation: demoStepIn 0.3s ease both;
}

.demo-step-hidden {
    display: none !important;
}

@keyframes demoStepIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-step-heading {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: #374151;
}

/* Card grid */
.demo-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}


/* Pick cards */
.demo-pick-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 18px 16px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.demo-pick-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.demo-pick-card.demo-pick-card-selected {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(20, 204, 176, 0.15);
    background: rgba(20, 204, 176, 0.04);
}

.demo-pick-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

/* Nonprofit card — horizontal tile style */
.demo-pick-card-np {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: #fff;
    border-color: #e5e7eb;
    overflow: hidden;
}

.demo-pick-card-np:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.demo-pick-card-np.demo-pick-card-selected {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(20, 204, 176, 0.25);
}

.demo-np-img {
    width: 120px;
    align-self: stretch;
    flex-shrink: 0;
    overflow: hidden;
}

.demo-np-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demo-np-body {
    flex: 1;
    padding: 16px 20px;
}

.demo-np-name {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 10px;
}

.demo-np-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.demo-pick-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.demo-pick-desc {
    font-size: 0.775rem;
    color: #6b7280;
    margin-bottom: 10px;
    line-height: 1.4;
}

.demo-pick-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-bundled {
    font-size: 1rem;
    font-weight: 700;
    color: #0d9488;
}

.price-regular {
    font-size: 0.775rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* ====== DONATION CARDS ====== */

.demo-donation-grid {
    grid-template-columns: repeat(4, 1fr);
}

.demo-donation-card {
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    gap: 6px;
}

.demo-donation-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
}

.demo-donation-vca {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0d9488;
}

.demo-donation-value {
    font-size: 0.7rem;
    color: #6b7280;
}

/* ====== SPLIT SLIDER ====== */

.demo-split-slider {
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.demo-split-slider-hidden {
    display: none;
}

.demo-split-slider-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 12px;
}

.demo-split-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-split-slider-end {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    min-width: 70px;
}

.demo-split-slider-end:first-child {
    text-align: right;
}

.demo-split-slider-end:last-child {
    text-align: left;
}

.demo-split-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #2563eb 0%, #2563eb 50%, #14ccb0 50%, #14ccb0 100%);
    outline: none;
}

.demo-split-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2563eb;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.demo-split-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2563eb;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.demo-split-slider-values {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.demo-split-slider-values span:first-child {
    color: #2563eb;
}

.demo-split-slider-values span:last-child {
    color: #0d9488;
}

.demo-split-slider-vca {
    color: #9ca3af !important;
    font-weight: 600 !important;
    font-size: 0.75rem;
}

.demo-split-slider-amounts {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    font-size: 0.8rem;
    color: #6b7280;
}

.demo-split-confirm {
    margin: 16px auto 0;
    display: block;
    padding: 10px 32px;
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.demo-split-confirm:hover {
    background: #0f766e;
}

.summary-dev-tip {
    font-size: 0.75em;
    color: #6b7280;
    font-weight: 400;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
    .demo-donation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.demo-pick-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Context strip */
.demo-step-context {
    font-size: 0.875rem;
    color: #374151;
    text-align: center;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 8px;
}

/* Summary */
.demo-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 28px;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.demo-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.demo-summary-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-summary-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.demo-summary-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 8px 0;
}

.demo-summary-price-final {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

/* Distribution split */
.demo-summary-split {
    padding: 4px 0;
}

.demo-summary-split-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 10px;
}

.demo-summary-split-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.demo-summary-split-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.demo-summary-split-name {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.demo-summary-split-amount {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
}

#summary-game-share {
    color: #2563eb;
}

.demo-summary-split-cause {
    color: #0d9488;
}

.summary-was-price {
    color: #9ca3af;
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 2px;
}

.summary-pct {
    font-size: 0.75em;
    font-weight: 600;
    color: #9ca3af;
}

.summary-you-donate {
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0d9488;
    display: block;
}

.demo-summary-split-platform {
    color: #9ca3af;
}

/* Distribution bar */
.demo-summary-split-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0 4px;
    background: #f3f4f6;
}

.demo-summary-split-fill-game {
    background: #2563eb;
    height: 100%;
    transition: width 0.5s ease;
}

.demo-summary-split-fill-cause {
    background: var(--teal);
    height: 100%;
    transition: width 0.5s ease;
}

.demo-summary-split-fill-platform {
    background: #d1d5db;
    height: 100%;
    transition: width 0.5s ease;
}

.demo-summary-earn {
    margin: 12px 0 8px;
    text-align: center;
}

.demo-summary-vca {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 204, 176, 0.08);
    border: 1px solid rgba(20, 204, 176, 0.3);
    border-radius: var(--radius-pill);
    padding: 6px 18px;
}

.demo-summary-vca-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0d9488;
}

.demo-summary-vca-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.demo-summary-vca-hint {
    font-size: 0.775rem;
    color: #9ca3af;
    margin-top: 6px;
    text-align: center;
}

.demo-summary-tags-block {
    margin-top: 16px;
    text-align: center;
}

.demo-summary-tags-label {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.demo-summary-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.section-light .atag {
    color: #111827;
}

.atag-summary {
    animation: tag-pop-in 0.3s ease both;
    color: #111827;
}

.demo-reset-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-pill);
    background: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.demo-reset-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ====== SECTION: ALTRUISM TAGS SHOWCASE (#tags) ====== */

.tags-showcase-section {
    min-height: auto;
    padding: 48px 24px;
}

.tags-em {
    font-style: normal;
    color: var(--teal);
}

.tags-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 900px;
    margin: 0 auto 32px;
}

.tags-showcase-item {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 18px 16px;
}

.tags-showcase-org {
    font-size: 0.775rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.tags-showcase-pair {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tags-discount-callout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid var(--teal);
    border-radius: var(--radius);
    padding: 18px 20px;
    max-width: 720px;
    margin: 0 auto 24px;
}

.tags-discount-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.tags-discount-text {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.65;
}

.tags-discount-text strong {
    color: #111827;
}

.tags-discount-text em {
    font-style: normal;
    color: var(--teal);
    font-weight: 600;
}

.tags-showcase-footnote {
    text-align: center;
    font-size: 0.85rem;
    color: #fff;
    font-style: italic;
}

/* ====== SECTION: WHAT YOU EARN (#earn-summary) ====== */

.earn-summary-section {
    min-height: auto;
    padding: 48px 24px;
}

.earn-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 32px;
}

.earn-summary-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.earn-summary-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.earn-summary-card p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
}

.earn-summary-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}

.earn-summary-icon svg {
    width: 100%;
    height: 100%;
}

.earn-summary-icon-blue {
    color: var(--primary);
}

.earn-summary-icon-teal {
    color: var(--teal);
}

.earn-summary-icon-orange {
    color: var(--orange);
}

.earn-summary-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--teal);
    margin-top: 10px;
}

.earn-summary-tags-preview {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.earn-summary-footer {
    text-align: center;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 768px) {
    .tags-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .earn-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .earn-summary-grid .earn-summary-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .paths-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .paths-or {
        flex-direction: row;
        padding-top: 0;
        padding: 16px 0;
    }

    .paths-or-line {
        min-height: 0;
        flex: 1;
        height: 1px;
        width: auto;
    }

    .paths-or-text {
        padding: 0 12px;
    }
}

@media (max-width: 520px) {
    .paths-section,
    .demo-section,
    .tags-showcase-section,
    .earn-summary-section {
        padding: 52px 16px;
    }

    .demo-toggle {
        max-width: 100%;
    }

    .demo-toggle-btn {
        font-size: 0.8rem;
        padding: 9px 12px;
    }

    .demo-cards-grid {
        grid-template-columns: 1fr;
    }

    .tags-showcase-grid {
        grid-template-columns: 1fr;
    }

    .earn-summary-grid {
        grid-template-columns: 1fr;
    }

    .earn-summary-grid .earn-summary-card:last-child {
        grid-column: auto;
    }

    .paths-result-items {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .demo-summary {
        padding: 20px 16px;
    }
}
