<?php
$page_title = 'Free Queue Number System';
$page_description = 'Create a queue, show a QR code, and serve by number. Free forever for core queue features.';
require_once 'includes/header.php';
?>

<!-- Hero Section - Full Screen First Fold -->
<section class="hero-fullscreen">
    <div class="hero-content">
        <h1>Free queue number system</h1>
        <p class="subtitle">Create a queue, show a QR code, and serve by number.</p>
        <div class="hero-buttons">
            <a href="/login.php" class="btn btn-primary btn-large">Start a queue now</a>
        </div>
        <p class="hero-note">Free forever for core queue features. No credit card.</p>
    </div>
    <a href="#learn-more" class="learn-more-link" onclick="showSecondFold(event)">Not sure? See how it works</a>
</section>

<!-- Second Fold - Hidden by default -->
<section class="second-fold" id="learn-more">
    <div class="container">

        <!-- How it works -->
        <details class="expandable-section">
            <summary class="expandable-header">
                <span>How it works</span>
                <span class="expand-icon">+</span>
            </summary>
            <div class="expandable-content">
                <div class="steps">
                    <div class="step">
                        <div class="step-number">1</div>
                        <h3>Create a queue</h3>
                        <p>Enter your email to start. Create a queue in under a minute.</p>
                    </div>
                    <div class="step">
                        <div class="step-number">2</div>
                        <h3>Show the QR code</h3>
                        <p>Display the QR code on a screen, tablet, or print it out.</p>
                    </div>
                    <div class="step">
                        <div class="step-number">3</div>
                        <h3>Serve by number</h3>
                        <p>Tap serve next. The queue board updates live for everyone to see.</p>
                    </div>
                </div>
            </div>
        </details>

        <!-- Who it is for -->
        <details class="expandable-section">
            <summary class="expandable-header">
                <span>Who it is for</span>
                <span class="expand-icon">+</span>
            </summary>
            <div class="expandable-content">
                <div class="use-cases-grid">
                    <div class="use-case-card">
                        <h3>Clinics and healthcare</h3>
                        <p>For walk-ins, doctors, dentists, screening and vets.</p>
                    </div>
                    <div class="use-case-card">
                        <h3>Food and drinks</h3>
                        <p>For stalls, cafes, restaurants and pickup counters.</p>
                    </div>
                    <div class="use-case-card">
                        <h3>Events and exhibitions</h3>
                        <p>For registration, booths, demos and collection.</p>
                    </div>
                    <div class="use-case-card">
                        <h3>Retail and pop-ups</h3>
                        <p>For limited items, launches and flash sales.</p>
                    </div>
                    <div class="use-case-card">
                        <h3>Volunteer and community</h3>
                        <p>For giveaways, aid support and community services.</p>
                    </div>
                    <div class="use-case-card">
                        <h3>Offices and internal support</h3>
                        <p>For IT help desks, HR support and walk-in counters.</p>
                    </div>
                </div>
            </div>
        </details>

        <!-- Queue board -->
        <details class="expandable-section">
            <summary class="expandable-header">
                <span>Queue board</span>
                <span class="expand-icon">+</span>
            </summary>
            <div class="expandable-content">
                <div class="board-highlight">
                    <div class="board-preview">
                        <div class="label">Now Serving</div>
                        <div class="number">A023</div>
                        <div class="next-label">Next</div>
                        <div class="next-numbers">A024 &nbsp; A025 &nbsp; A026</div>
                    </div>
                    <div class="board-content">
                        <p>Show a live queue board on a TV, tablet or monitor. It displays now serving, next numbers and counters.</p>
                        <p>No login required on display devices. The board link is ready right after you create a queue.</p>
                    </div>
                </div>
            </div>
        </details>

        <!-- Why it is free -->
        <details class="expandable-section">
            <summary class="expandable-header">
                <span>Why it is free</span>
                <span class="expand-icon">+</span>
            </summary>
            <div class="expandable-content">
                <p>Core queue functionality is free forever to help everyone queue better.</p>
                <p style="margin-top: 15px;"><strong>Free forever:</strong> Unlimited queues, QR joining, queue board, multiple counters.</p>
                <p style="margin-top: 10px;"><strong>Paid later (optional):</strong> Remote queue checking, alerts, appointments, reports, branding removal.</p>
                <p style="margin-top: 15px;">Pay only for advanced features when you need them. Upgrade or cancel anytime.</p>
            </div>
        </details>

        <!-- Common questions -->
        <details class="expandable-section">
            <summary class="expandable-header">
                <span>Common questions</span>
                <span class="expand-icon">+</span>
            </summary>
            <div class="expandable-content">
                <div class="faq-item">
                    <h4>Do customers need to install an app?</h4>
                    <p>No. Customers scan a QR code and join the queue in their browser. No app install needed.</p>
                </div>
                <div class="faq-item">
                    <h4>Can I use this today?</h4>
                    <p>Yes. Create a queue, get your QR code, and start serving in minutes.</p>
                </div>
                <div class="faq-item">
                    <h4>Can I stop anytime?</h4>
                    <p>Yes. You control when to start and close a queue. No long-term commitment.</p>
                </div>
                <div class="faq-item">
                    <h4>What devices does it work on?</h4>
                    <p>Works on phone, tablet and desktop. The queue board works on any screen with a browser.</p>
                </div>
            </div>
        </details>

    </div>
</section>

<style>
/* Full screen hero */
.hero-fullscreen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}
.hero-content {
    max-width: 600px;
}
.hero-fullscreen h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}
.hero-fullscreen .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 30px;
}
.hero-fullscreen .hero-buttons {
    margin-bottom: 15px;
}
.hero-fullscreen .hero-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.learn-more-link {
    position: absolute;
    bottom: 40px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.learn-more-link:hover {
    color: var(--primary);
}

/* Second fold - hidden by default */
.second-fold {
    display: none;
    padding: 60px 0;
    background: var(--secondary);
}
.second-fold.visible {
    display: block;
}

/* Expandable sections */
.expandable-section {
    border-bottom: 1px solid var(--border);
    background: var(--white);
    margin-bottom: 0;
}
.expandable-section:first-child {
    border-radius: 8px 8px 0 0;
}
.expandable-section:last-child {
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}
.expandable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    list-style: none;
}
.expandable-header::-webkit-details-marker {
    display: none;
}
.expand-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}
details[open] .expand-icon {
    transform: rotate(45deg);
}
.expandable-content {
    padding: 0 25px 25px;
}
.faq-item {
    margin-bottom: 20px;
}
.faq-item:last-child {
    margin-bottom: 0;
}
.faq-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}
.faq-item p {
    color: var(--text-light);
}

@media (max-width: 768px) {
    .hero-fullscreen h1 {
        font-size: 2rem;
    }
    .hero-fullscreen .subtitle {
        font-size: 1.125rem;
    }
}
</style>

<script>
function showSecondFold(e) {
    e.preventDefault();
    const secondFold = document.getElementById('learn-more');
    secondFold.classList.add('visible');
    secondFold.scrollIntoView({ behavior: 'smooth' });
}
</script>

<?php
// Hide footer on homepage - include only the closing tags and script
?>
    <script src="/assets/js/main.js"></script>
</body>
</html>
