/* ===== SOCIALQUIZ PAGE SPECIFIC STYLES ===== */

/* ── Hero free badge ──────────────────────────────────────────── */
.free-badge {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.03em;
    animation: pulse-green 2.5s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50%       { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

/* ── Hero (full-background, centrato come reefguru) ────────── */
.app-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 560px;
    padding: 6rem 8%;
}

.app-hero-image {
    flex-shrink: 0;
}

.hero-phone-mockup {
    width: 260px;
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 2.5rem;
    padding: 1rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05), inset 0 0 30px rgba(99, 102, 241, 0.08);
    animation: phone-float 4s ease-in-out infinite;
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50%       { transform: translateY(-12px) rotate(1deg); }
}

.hero-phone-screen {
    background: linear-gradient(135deg, #1a1040, #0d0d2b);
    border-radius: 1.8rem;
    padding: 1.2rem;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.phone-status-bar {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: center;
}

.phone-qr-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: center;
}

.demo-qr-code {
    width: 110px;
    height: 110px;
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-pattern {
    width: 100%;
    height: 100%;
    background-color: #fff;
    background-image:
        repeating-linear-gradient(0deg, #111 0px, #111 8px, transparent 8px, transparent 16px),
        repeating-linear-gradient(90deg, #111 0px, #111 8px, transparent 8px, transparent 16px);
    background-size: 16px 16px;
    opacity: 0.7;
    border-radius: 0.25rem;
}

.phone-scan-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    margin: 0;
}

.phone-player-count {
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #c7d2fe;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
}

/* ── Donation Section ──────────────────────────────────────── */
.donation-section {
    padding: 0 2rem 2rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.donation-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(238, 90, 36, 0.08));
    border: 2px solid rgba(255, 107, 107, 0.45);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem;
    max-width: 1400px;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(255, 107, 107, 0.08);
}

.donation-top {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.donation-avatar {
    font-size: 3rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255,107,107,0.4));
}

.donation-message h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fca5a5;
    margin: 0 0 0.6rem;
}

.donation-message p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.donation-message strong {
    color: #fdba74;
}

.donation-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.donate-amount {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.35);
    color: #fca5a5;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    white-space: nowrap;
}

.donate-custom {
    background: rgba(251, 146, 60, 0.15);
    border-color: rgba(251, 146, 60, 0.4);
    color: #fdba74;
}

.btn-paypal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #009cde, #003087);
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.9rem 2rem;
    border-radius: 3rem;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(0, 48, 135, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    letter-spacing: 0.01em;
    margin-top: 1.25rem;
}

.btn-paypal:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 48, 135, 0.55);
}

.donate-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 1rem 0 0;
}

@media (max-width: 600px) {
    .donation-card {
        padding: 1.5rem 1.25rem;
    }
    .donation-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .donation-amounts {
        justify-content: center;
    }
}

/* ── Free Tier Banner ──────────────────────────────────────── */
.free-tier-banner-section {
    padding: 0 2rem 1.5rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.free-tier-banner {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(16, 185, 129, 0.12));
    border: 2px solid rgba(34, 197, 94, 0.6);
    border-radius: 1.5rem;
    padding: 1.8rem 2.5rem;
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.12);
    animation: pulse-green-border 3s infinite;
}

@keyframes pulse-green-border {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.1); }
    50%       { box-shadow: 0 0 40px rgba(34, 197, 94, 0.25); }
}

.free-tier-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.6));
}

.free-tier-body {
    flex: 1;
}

.free-tier-body h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #4ade80;
    margin: 0 0 0.4rem;
}

.free-tier-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.free-tier-tags {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}

.free-tier-tag {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    white-space: nowrap;
}

/* ── Offline callout ─────────────────────────────────────────── */
.offline-callout-section {
    padding: 2rem 2rem 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.offline-callout {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem;
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
}

.offline-callout-icon {
    font-size: 3rem;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.7));
}

.offline-callout-body {
    flex: 1;
}

.offline-callout-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #a5b4fc;
    margin: 0 0 0.5rem;
}

.offline-callout-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.offline-tags {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}

.offline-tag {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #c7d2fe;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    white-space: nowrap;
}

/* ── Needs section ──────────────────────────────────────────── */
.needs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0 2rem;
    text-align: left;
}

.needs-card {
    border-radius: 1.2rem;
    padding: 2rem 1.75rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.needs-card:hover { transform: translateY(-4px); }

.needs-yes {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(16, 185, 129, 0.07));
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.needs-no {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.06));
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.needs-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
}

.needs-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.needs-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.needs-no-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.needs-no-list li {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

.needs-no-list li:last-child { border-bottom: none; }

.needs-highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 1rem;
    padding: 1.25rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #c7d2fe;
    text-align: center;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .needs-grid {
        grid-template-columns: 1fr;
    }
}

/* ── How-It-Works steps ─────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    padding: 2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
}

.step-num {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 1.2rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Screenshots reali ──────────────────────────────────────── */
.screenshots-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    align-items: start;
}

.screenshot-real {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.screenshot-real img {
    width: 100%;
    height: auto; /* previene distorsione */
    max-width: 220px;
    border-radius: 1.5rem;
    border: 2px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-real img:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.screenshot-caption {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

/* ── Hero phone reale ───────────────────────────────────────── */
.hero-phone-real {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone-img {
    width: 260px;
    height: auto; /* previene distorsione con width/height HTML nativi */
    border-radius: 2rem;
    border: 3px solid rgba(255,255,255,0.15);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 80px rgba(99,102,241,0.2);
    animation: floatPhone 3s ease-in-out infinite;
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ── Wizard screenshots ─────────────────────────────────────── */
.wizard-screenshot {
    width: 100%;
    height: auto; /* previene distorsione */
    max-width: 180px;
    border-radius: 1.2rem;
    border: 2px solid var(--glass-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.wizard-screenshot:hover {
    transform: scale(1.04);
}

/* ── Feature cards ──────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.feature-card-app {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    padding: 1.75rem 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card-app:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Highlighted "offline" feature card */
.feature-card-app.highlight-card {
    grid-column: span 1;
    border-color: rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    position: relative;
    overflow: hidden;
}

.feature-card-app.highlight-card::before {
    content: "★ OFFLINE FIRST";
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card-app h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.6rem;
}

.feature-card-app p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Wizard Steps ───────────────────────────────────────────── */
.wizard-steps {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 2.5rem;
}

.wizard-step {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    padding: 2rem 1.75rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.wizard-step:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.wizard-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wizard-step-num {
    font-size: 1.8rem;
    line-height: 1;
}

.wizard-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.wizard-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.wizard-steps-4 {
    grid-template-columns: repeat(4, 1fr) auto repeat(1, 1fr);
}

.wizard-qr-note {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.8rem;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    width: auto;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.wizard-connector {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
    opacity: 0.6;
    flex-shrink: 0;
    margin-top: -1rem;
}

/* ── Pricing ─────────────────────────────────────────────────── */

/* Free tier highlight */
.pricing-free-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(16, 185, 129, 0.1));
    border: 2px solid rgba(34, 197, 94, 0.5);
    border-radius: 1.2rem;
    padding: 1.4rem 2rem;
    margin: 2rem auto 0;
    max-width: 1000px;
    animation: pulse-green-border 3s infinite;
}

.pfh-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pfh-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

.pfh-left strong {
    font-size: 1rem;
    font-weight: 800;
    color: #4ade80;
}

.pfh-left span {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: inline;
}

.pfh-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #4ade80;
    flex-shrink: 0;
}

.pricing-divider {
    position: relative;
    text-align: center;
    margin: 2.5rem auto 2rem;
    max-width: 1000px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.pricing-divider::before,
.pricing-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--glass-border);
}

.pricing-divider::before { left: 0; }
.pricing-divider::after  { right: 0; }

/* 3-column token grid */
.pricing-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem 1.75rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.token-card {
    overflow: hidden;
}

/* Serata */
.serata-card {
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(234, 179, 8, 0.05));
}

.serata-color {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
}

/* Mensile / popular */
.mensile-card {
    border-color: rgba(99, 102, 241, 0.7);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
}

.mensile-color {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
}

.popular-card {
    transform: scale(1.04);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.25);
}

.popular-card:hover {
    transform: scale(1.04) translateY(-6px);
}

.popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.3rem 1.2rem;
    border-radius: 0 0 1rem 1rem;
}

/* Pro */
.pro-card {
    border-color: rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(139, 92, 246, 0.07));
}

.pro-color {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
}

/* Token pack price layout */
.token-pack-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
}

.token-price-amount {
    color: #ffffff !important;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.token-price-for {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Token note pill */
.token-note {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    text-align: center;
    display: inline-block;
}

.token-note-mensile {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

.token-note-pro {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #d8b4fe;
}

.pricing-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.pricing-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.pricing-card > p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.pricing-features li {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-features li:last-child { border-bottom: none; }

/* ── Comparison table ────────────────────────────────────────── */
.pricing-comparison {
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-comparison h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.compare-table {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0.9rem 1.25rem;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--glass-bg);
}

.compare-row:last-child { border-bottom: none; }

.compare-header {
    background: rgba(255,255,255,0.04);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.compare-row-sq {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.05));
}

.compare-bad {
    color: #f87171;
    font-weight: 600;
}

.compare-good {
    color: #4ade80;
    font-weight: 700;
}

/* ── Audience cards ──────────────────────────────────────────── */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* ── Category cloud ─────────────────────────────────────────── */
.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.cat-pill {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    cursor: default;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    white-space: nowrap;
}

.cat-pill:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ── CTA sub-note ────────────────────────────────────────────── */
.cta-sub-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #22c55e;
    font-weight: 600;
}

/* ── Stats bar ──────────────────────────────────────────────── */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0 2.5rem;
    flex-shrink: 0;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.stat-plus {
    font-size: 1.6rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--glass-border);
    flex-shrink: 0;
}

/* ── Difficulty pills ────────────────────────────────────────── */
.difficulty-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.25rem 0 0.5rem;
    flex-wrap: wrap;
}

.diff-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid;
    letter-spacing: 0.02em;
}

.diff-pill em {
    font-style: normal;
    font-weight: 400;
    font-size: 0.78rem;
    opacity: 0.8;
}

.diff-easy {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.diff-medium {
    background: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.4);
    color: #fde047;
}

.diff-hard {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

/* ── Section helpers ─────────────────────────────────────────── */
.center-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.section-body {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 720px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .pricing-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-grid-3 .pro-card {
        grid-column: span 2;
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .app-hero {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        padding: 5rem 6% 3rem;
    }

    .hero-phone-mockup {
        display: none;
    }

    .steps-grid,
    .screenshots-row {
        grid-template-columns: 1fr;
    }

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

    .feature-card-app.highlight-card {
        grid-column: span 1;
    }

    .wizard-steps {
        flex-direction: column;
    }

    .wizard-connector {
        transform: rotate(90deg);
        margin: 0 auto;
        padding: 0.25rem 0;
    }

    .pricing-grid-3 {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .popular-card {
        transform: none;
    }

    .popular-card:hover {
        transform: translateY(-6px);
    }

    .pricing-grid-3 .pro-card {
        grid-column: span 1;
        max-width: none;
    }

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

    .offline-callout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .offline-tags {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .free-tier-banner {
        flex-direction: column;
        text-align: center;
    }

    .free-tier-tags {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pricing-free-highlight {
        flex-direction: column;
        text-align: center;
    }

    .compare-row {
        grid-template-columns: 1fr 1fr;
        font-size: 0.8rem;
    }

    .compare-row span:nth-child(2) {
        display: none;
    }

    .compare-header span:nth-child(2) {
        display: none;
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

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

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

    .screenshots-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .free-tier-banner {
        flex-direction: column;
        text-align: center;
    }

    .offline-callout {
        flex-direction: column;
        text-align: center;
    }

    .wizard-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .wizard-connector {
        transform: rotate(90deg);
        margin: 1rem auto;
    }

    .difficulty-pills {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .category-cloud {
        justify-content: center;
    }

    .center-title {
        font-size: 1.5rem;
    }

    /* Hero — show phone below text on mobile */
    .app-hero {
        flex-direction: column;
        padding: 7rem 5% 2rem;
        gap: 2rem;
        text-align: center;
        align-items: center;
    }

    .app-hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hero-phone-real {
        order: -1;
    }

    .hero-phone-img {
        width: 180px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Stats bar */
    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stats-bar .stat-divider {
        display: none;
    }

    /* Needs grid */
    .needs-grid {
        grid-template-columns: 1fr;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Screenshots row */
    .screenshots-row {
        grid-template-columns: 1fr;
        align-items: center;
    }

    .screenshot-real img {
        max-width: 260px;
    }

    /* Wizard */
    .wizard-steps,
    .wizard-steps-4 {
        flex-direction: column;
        gap: 0;
    }

    .wizard-step {
        padding: 1.5rem;
    }

    .wizard-screenshot {
        max-width: 220px;
    }

    .wizard-connector {
        transform: rotate(90deg);
        margin: 0.25rem auto;
    }

    /* Pricing */
    .pricing-grid-3 {
        grid-template-columns: 1fr;
        max-width: 380px;
    }

    .pricing-grid-3 .pro-card {
        grid-column: span 1;
    }

    .token-price-amount {
        font-size: 2rem;
    }

    /* Categories cloud */
    .categories-cloud {
        gap: 0.4rem;
    }

    .category-tag {
        font-size: 0.78rem;
        padding: 0.3rem 0.7rem;
    }

    /* Diff pills */
    .difficulty-breakdown {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Section titles */
    .section-label {
        font-size: 0.72rem;
    }

    /* CTA section */
    .cta-section h2 {
        font-size: 1.6rem;
    }
}

/* Tablet landscape tweaks */
@media (min-width: 601px) and (max-width: 900px) {
    .hero-phone-img {
        width: 200px;
    }

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

    .screenshots-row {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .screenshot-real img {
        max-width: 160px;
    }

    .wizard-screenshot {
        max-width: 140px;
    }

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