/* Global Styles */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    padding-top: 120px;
    background: linear-gradient(45deg, var(--secondary-color) 0%, #ffffff 100%);
}

.hero .container {
    padding: 4rem 2rem;
}

.hero h1.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-image {
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
        text-align: center;
    }

    .hero .container {
        padding: 2rem 1rem;
    }

    .hero h1.display-4 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero .lead {
        font-size: 1.1rem;
        margin: 0 auto 1.5rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-image {
        max-width: 80%;
        margin: 2rem auto 0;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        margin: 0.5rem;
    }

    /* Mobile navbar styles */
    .navbar .container {
        padding: 0.5rem 1rem;
    }

    .navbar-brand {
        margin-right: auto;
    }

    .navbar-nav {
        margin-left: 0;
        gap: 0.5rem;
    }

    .nav-item .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .desktop-only {
        display: none !important;
    }

    .words-display {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .word-entry {
        display: flex;
        gap: 10px;
        justify-content: center;
    }
}

/* Features Section */
.feature-icon {
    width: 48px;
    height: 48px;
    stroke: var(--primary-color);
    stroke-width: 1;
}

/* Demo Section */
.demo-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Original Demo Styles */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.words-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 40px;
    margin-bottom: 20px;
    font-family: monospace;
}

/* Word display styles */
.word-placeholder {
    min-width: 120px;
    font-family: monospace;
    transition: color 0.3s ease;
}

.word-entry {
    display: flex;
    gap: 10px;
    align-items: center;
}


.word-placeholder {
    min-width: 120px;
    font-family: monospace;
}

/* Added styles for non-editable words */
.non-editable {
    opacity: 0.5;
    pointer-events: none;
}

.non-editable .word-placeholder {
    color: #666;
}

.grid-container {
    position: relative;
    background-color: #f5f5f5;
    padding: 30px 30px 30px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.grid {
    display: grid;
    grid-template-columns: repeat(50, 1fr);
    gap: 0;
    background-color: #c0c0c0;
    padding: 1px;
    width: 1000px;
    border: 1px solid #c0c0c0;
}

/* Cell base styles */
.cell {
    aspect-ratio: 1;
    position: relative;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f5f5f5; /* Default grey background */
}

/* Letter column cells */
.cell[data-letter-col="true"] {
    background-color: #f5f5f5;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: default;
}

/* Words 1-2 (green box) */
.cell:not([data-letter-col="true"]):nth-child(50n + 1),
.cell:not([data-letter-col="true"]):nth-child(50n + 2),
.cell:not([data-letter-col="true"]):nth-child(50n + 3),
.cell:not([data-letter-col="true"]):nth-child(50n + 4),
.cell:not([data-letter-col="true"]):nth-child(50n + 5),
.cell:not([data-letter-col="true"]):nth-child(50n + 6),
.cell:not([data-letter-col="true"]):nth-child(50n + 7),
.cell:not([data-letter-col="true"]):nth-child(50n + 8),
.cell:not([data-letter-col="true"]):nth-child(50n + 9) {
    background-color: white;
}

.cell[data-main-col-end="true"],
.cell[data-letter-col-end="true"] {
    border-right: 2px solid #666;
}

.dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: #000;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Add back the dot visibility for active state */
.dot.active {
    opacity: 1;
}

.numbers-x {
    display: grid;
    grid-template-columns: repeat(50, 1fr);
    gap: 0;
    padding: 0 0 5px 0;
    color: #666;
    font-size: 12px;
    text-align: center;
    background-color: #f5f5f5;
}

.main-col-number {
    grid-column: span 4;
    font-weight: bold;
}

.subdivision-numbers {
    display: grid;
    grid-template-columns: repeat(50, 1fr);
    gap: 0;
    padding: 0 0 2px 0;
    color: #666;
    font-size: 10px;
    text-align: center;
    background-color: #f5f5f5;
}

.notes {
    margin-top: 10px;
    padding: 5px;
    border-top: 1px solid #c0c0c0;
    color: #666;
    font-size: 12px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .grid {
        width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .grid {
        width: 100%;
        overflow-x: auto;
        grid-template-columns: repeat(9, 1fr); /* 1 letter col + 4 cols per word * 2 words */
    }

    .words-display {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .word-entry:nth-child(n+3) {
        display: none; /* Hide all words after the first two */
    }

    .numbers-x, .subdivision-numbers {
        grid-template-columns: repeat(9, 1fr);
    }

    .grid-container {
        padding: 15px;
        overflow-x: hidden;
    }
    .full-functionality-toggle {
        display: none !important;
    }
}

/* Pricing Section */
.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: left;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
    max-width: 100%;
}
.pricing-card.recommended {
    border: 2px solid #E67E22;
}
.recommended-badge {
    position: absolute;
    top: 0.1rem;
    right: 1rem;
    background: #E67E22;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}
.pricing-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
}
.price {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 2rem;
}
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}
.feature-list li {
    margin-bottom: 1rem;
    font-size: 0.8rem;
}
.checkmark {
    color: #4CAF50;
    margin-right: 0.5rem;
}
.get-started-btn {
    display: block;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 0.2s;
}
.get-started-btn.basic {
    background: #F7B731;
    color: black;
}
.get-started-btn.premium {
    background: #E67E22;
    color: white;
}
.get-started-btn:hover {
    transform: translateY(-2px);
}