/* Sticky footer: short pages keep footer at the bottom of the viewport */
.mainsite-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.mainsite-page > main {
    flex: 1 0 auto;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

.mascot-container {
    margin: 0 auto 2rem;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--fire) 0%, #ff7a59 100%);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 8px 24px var(--fire-glow);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin: 0 0 1.5rem;
    letter-spacing: -0.03em;
}

.hero h1 .highlight {
    color: var(--fire);
}

.hero p {
    font-size: 1.25rem;
    color: #9ca3af;
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ===== BUTTONS ===== */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--fire);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-primary:hover,
.cta-button:hover {
    background: #d94d35;
    transform: translateY(-2px);
    text-decoration: none;
}

.cta-button {
    padding: 1rem 2.5rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--border);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--fire);
    color: var(--fire);
    text-decoration: none;
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: #9ca3af;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 4rem 0;
    background: var(--surface-1);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: -1rem;
    left: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--fire);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 12px var(--fire-glow);
}

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

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.step p {
    font-size: 0.9375rem;
    color: #9ca3af;
    line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing {
    padding: 4rem 0;
}

.pricing-card {
    background: var(--surface-1);
    border: 2px solid var(--border);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header .beta {
    display: inline-block;
    background: var(--brand-dim);
    color: var(--brand);
    padding: 0.375rem 0.875rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.pricing-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.pricing-header p {
    color: #9ca3af;
    font-size: 1rem;
}

.pricing-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pricing-row .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pricing-row .text {
    flex: 1;
}

.pricing-row .text strong {
    color: white;
    font-weight: 700;
}

.pricing-row .text small {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.disclaimer {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.disclaimer p {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.6;
}

.disclaimer strong {
    color: white;
}

/* ===== PROVIDERS ===== */
.providers {
    padding: 4rem 0;
    background: var(--surface-1);
}

.providers-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.providers-text h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.providers-text p {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.provider-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.provider-tag {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #d1d5db;
}

.providers-visual {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* ===== SIGNUP FORM ===== */
.signup-section {
    padding: 4rem 0;
}

.form-section {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 0.75rem;
}

.form-section .subtitle {
    text-align: center;
    color: #9ca3af;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.formstack-embed {
    width: 100%;
    min-height: 400px;
}

/* ===== PREVIEW PAGE ===== */
.preview-section {
    padding: 3rem 0 5rem;
}

.preview-header {
    text-align: center;
    margin-bottom: 3rem;
}

.preview-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.preview-header p {
    font-size: 1.125rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
}

.demo-frame {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.demo-frame iframe {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 0.5rem;
    background: var(--surface-0);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.875rem;
    color: #9ca3af;
}

.cta-section {
    text-align: center;
    margin-top: 5rem;
    padding: 3rem 2rem;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
}

.cta-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #9ca3af;
    margin-bottom: 2rem;
}

/* ===== FEED PAGE (Tailwind-based) ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #252a36;
    border-radius: 3px;
}

.idea-card {
    transition: all 0.2s ease;
}

.idea-card:hover {
    background: #191c26;
    border-color: #333a4a;
}

.action-btn {
    transition: all 0.15s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.fire-btn {
    transition: all 0.15s ease;
}

.fire-btn:hover {
    background: rgba(240, 90, 62, 0.15);
}

.fire-btn.fired {
    background: rgba(240, 90, 62, 0.15);
    color: #f05a3e;
}

@keyframes support-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 214, 163, 0.3);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(34, 214, 163, 0);
    }
}

.support-btn:hover {
    animation: support-pulse 1.5s infinite;
}

.nav-active {
    color: #f05a3e;
    position: relative;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #f05a3e;
    border-radius: 1px;
}

.tag-pill {
    transition: all 0.15s ease;
}

.tag-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ===== FOOTER ===== */
footer {
    background: var(--surface-1);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: #6b7280;
    font-size: 0.875rem;
}

footer a {
    color: var(--fire);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .preview-header h1 {
        font-size: 2rem;
    }

    .demo-frame iframe {
        height: 70vh;
    }

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

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

    .providers-content {
        grid-template-columns: 1fr;
    }

    .providers-visual {
        min-height: 200px;
    }

    .form-section {
        padding: 2rem 1.5rem;
    }
}