/**
 * StarTube MMVbe Theme - Main Stylesheet
 * Bright, modern, optimistic design for SaaS company
 */

/* ===========================
   NAVIGATION
   =========================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu li a {
    font-weight: 500;
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--color-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: all 0.3s ease;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #F0F9FF 0%, #FEF3C7 50%, #ECFDF5 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(251, 146, 60, 0.1) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #64748B;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.hero-note {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(14, 165, 233, 0.08);
    border-left: 3px solid var(--color-primary);
    border-radius: 8px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    background: var(--color-white);
    padding: 2rem;
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--color-white);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-dark);
    animation: float 3s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    right: -10%;
    color: var(--color-primary);
}

.badge-2 {
    bottom: 20%;
    left: -10%;
    color: var(--color-accent-green);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===========================
   EARLY ACCESS SECTION
   =========================== */

.early-access-section {
    background: linear-gradient(135deg, #F0F9FF 0%, #EFF6FF 100%);
    border-top: 1px solid #E0E7FF;
    border-bottom: 1px solid #E0E7FF;
}

.early-access-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.early-access-icon {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.early-access-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.early-access-description {
    font-size: 1.125rem;
    color: #64748B;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.early-access-form-wrapper {
    margin-bottom: 2rem;
}

.early-access-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.email-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--color-white);
}

.email-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.email-input:disabled {
    background: #F1F5F9;
    cursor: not-allowed;
    opacity: 0.7;
}

.early-access-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-note {
    font-size: 0.875rem;
    color: #64748B;
    line-height: 1.6;
    padding: 1rem;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-purple));
    color: var(--color-white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.badge-icon {
    font-size: 1.2rem;
}

/* ===========================
   FEATURES SECTION
   =========================== */

.features-section {
    background: var(--color-white);
}

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

.feature-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid #E2E8F0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.feature-card p {
    color: #64748B;
    line-height: 1.7;
}

/* ===========================
   PRICING SECTION
   =========================== */

.pricing-section {
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.pricing-table-wrapper {
    margin-bottom: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* Force 7 columns */
    gap: 1rem;
    /* Reduce gap */
    max-width: 100%;
    /* Allow full width */
    margin: 0 auto;
    overflow-x: auto;
    /* Allow scrolling on small screens if needed, though we will try to fit */
    padding-bottom: 2rem;
    /* Space for scrollbar/shadow */
}

.pricing-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 1.5rem;
    /* Reduced from 2rem */
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    min-width: 160px;
    /* Ensure minimum width */
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-free {
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
}

.pricing-pro {
    background: var(--color-white);
}

.pricing-card-featured {
    /* border-color removed */
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.25);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
    z-index: 2;
    white-space: nowrap;
}

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

.pricing-header h3 {
    font-size: 1.5rem;
    /* Reduced from 2rem */
    margin-bottom: 1rem;
}

.pricing-title .pricing-period {
    font-size: 0.7em;
    font-weight: 500;
    opacity: 0.85;
}

.pricing-period-block {
    display: block;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    /* Prevent wrapping */
    flex-wrap: nowrap;
    /* Explicitly prevent flex wrapping */
    min-height: 3.5rem;
    /* Ensure consistent height */
}

.pricing-price>* {
    flex-shrink: 0;
    /* Prevent items from shrinking/wrapping */
}

.currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

.amount {
    font-size: 2rem;
    /* Reduced from 2.25rem to fit better */
    font-weight: 800;
    color: var(--color-dark);
}

.amount-free {
    font-size: 2rem;
    /* Match Pro amount size */
    font-weight: 800;
    color: var(--color-accent-green);
}

.period {
    font-size: 1rem;
    color: #64748B;
}

.pricing-limit {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 8px;
}

.pricing-billing {
    text-align: center;
    font-size: 0.875rem;
    color: #64748B;
    margin-top: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0.75rem 0;
    color: var(--color-dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

.pricing-features li:before {
    content: "✓";
    color: var(--color-accent-green);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.check-icon {
    color: var(--color-accent-green);
    flex-shrink: 0;
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
}

.pricing-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #64748B;
}

.pricing-footer {
    text-align: center;
    margin-top: 2rem;
}

.pricing-footer p {
    color: #64748B;
}

.pricing-footer a {
    font-weight: 600;
}

.page-lead {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #475569;
}

.pricing-page-container {
    max-width: 1400px;
}

.pricing-content-wrapper {
    max-width: 100%;
    padding: 120px 20px 80px;
}

.pricing-comparison-section {
    margin-top: 3rem;
}

.pricing-comparison-cards-wrapper {
    overflow-x: auto;
    padding-bottom: 1.5rem;
}

.pricing-com.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    /* Reduced from 2rem */
    max-width: 100%;
    /* Increased from 1400px */
    margin: 0 auto;
    padding-top: 40px;
    /* Add space for badge */
}

@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

.pricing-comparison-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 1.5rem;
    /* Reduced from 2rem */
    box-shadow: var(--shadow-md);
    border: 2px solid #E2E8F0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.pricing-comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.pricing-card-free {
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
}

.pricing-card-pro {
    background: var(--color-white);
}

.pricing-comparison-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
}

.pricing-com.pricing-card h3,
.pricing-comparison-title {
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    min-height: 4rem;
    /* Increased to 4rem to ensure alignment with wrapped titles */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.pricing-comparison-title .pricing-period {
    font-size: 0.7em;
    font-weight: 500;
    opacity: 0.75;
    color: #475569;
    display: block;
    margin-top: 0.25rem;
}

.pricing-comparison-price-wrapper {
    margin-top: 1rem;
}

.pricing-comparison-price-display {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.pricing-comparison-price-free {
    color: var(--color-accent-green);
}

.pricing-comparison-price-paid {
    color: var(--color-primary);
}

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

.pricing-comparison-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pricing-comparison-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-comparison-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
}

.pricing-comparison-limit {
    color: var(--color-primary);
    padding: 0.5rem;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 8px;
    text-align: center;
}

.pricing-comparison-notes {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #E2E8F0;
}

.pricing-comparison-notes p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.pricing-footnote {
    color: #475569;
    font-size: 0.95rem;
    margin-top: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

/* Responsive behavior for pricing comparison cards */
@media (max-width: 1600px) {
    .pricing-comparison-grid {
        max-width: 1280px;
    }
}

@media (max-width: 1400px) {
    .pricing-comparison-grid {
        grid-template-columns: repeat(7, minmax(160px, 1fr));
        gap: 20px;
    }

    .pricing-comparison-card {
        padding: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .pricing-comparison-cards-wrapper {
        overflow-x: auto;
    }

    .pricing-comparison-grid {
        width: max-content;
        max-width: none;
    }
}

.site-main.pricing-page {
    padding-top: 48px !important;
}

/* ----- Pricing comparison page (full redesign) ----- */

.pricing-page {
    background: #F8FAFC;
    padding-bottom: 80px;
}

.pricing-page-hero {
    padding-bottom: 32px;
}

.pricing-page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.pricing-page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

.pricing-page-subtitle {
    font-size: 1rem;
    color: #64748B;
    max-width: 800px;
}

.pricing-compare-scroll {
    overflow-x: auto;
    margin-top: 32px;
}

.pricing-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    min-width: 1100px;
    /* Give air */
    font-family: var(--font-primary);
}

.pricing-compare-table thead th {
    background: #E0F2FE;
    color: #0F172A;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 16px;
    text-align: center;
    border-radius: 8px;
}

.pricing-compare-table tbody td,
.pricing-compare-table tbody th {
    background: white;
    padding: 16px;
    font-size: 0.9rem;
    color: #1E293B;
    border-bottom: 1px solid #E2E8F0;
}

.pricing-attr-col,
.pricing-attr-label {
    background: #F1F5F9 !important;
    color: #0F172A;
    text-align: left !important;
    font-weight: 600;
    min-width: 180px;
}

.pricing-cell-strong {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
}

.pricing-note-small {
    font-size: 0.75rem;
    opacity: 0.75;
}

.plan-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
}

.plan-period {
    font-size: 0.75rem;
    opacity: 0.75;
}

.plan-title--split .plan-period {
    display: block;
    margin-top: 2px;
}

.pricing-byok-footnote {
    margin-top: 16px;
    color: #475569;
    font-size: 0.85rem;
}

/* ===========================
   CTA SECTION
   =========================== */

.cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-purple));
    padding: 80px 0;
    text-align: center;
    color: var(--color-white);
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
}

.cta-section .btn-primary:hover {
    background: var(--color-light);
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
    background: #0F172A;
    color: #CBD5E1;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.footer-description {
    color: #94A3B8;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94A3B8;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #94A3B8;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ===========================
   BLOG & CONTENT
   =========================== */

.content-area {
    padding: 120px 0 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 3rem;
    color: var(--color-dark);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid #E2E8F0;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.post-thumbnail {
    overflow: hidden;
    height: 240px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748B;
}

.post-title a {
    color: var(--color-dark);
    font-size: 1.5rem;
    line-height: 1.3;
}

.post-excerpt {
    color: #64748B;
    margin: 1rem 0;
}

.read-more {
    color: var(--color-primary);
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: var(--color-dark);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* ===========================
   SINGLE POST / PAGE
   =========================== */

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.entry-meta {
    display: flex;
    gap: 1.5rem;
    color: #64748B;
    margin-bottom: 1rem;
}

.entry-featured-image {
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-dark);
}

.entry-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E2E8F0;
}

.tags-links {
    color: #64748B;
}

.tags-links a {
    display: inline-block;
    padding: 6px 14px;
    background: #F1F5F9;
    border-radius: 20px;
    margin: 4px;
    font-size: 0.875rem;
    color: var(--color-dark);
}

.tags-links a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem 0;
}

.post-navigation a {
    padding: 1.5rem;
    background: var(--color-white);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

/* ===========================
   LEGAL PAGES
   =========================== */

.legal-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-primary);
}

.legal-header h1 {
    font-size: 3rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.last-updated {
    color: #64748B;
    font-size: 0.9rem;
}

.legal-content {
    line-height: 1.8;
    color: var(--color-dark);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.legal-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-section ul {
    margin: 1rem 0 1rem 2rem;
    list-style: disc;
}

.legal-section li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.legal-section a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--color-secondary);
}

.legal-section strong {
    color: var(--color-dark);
    font-weight: 700;
}

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

@media (max-width: 1400px) {
    .pricing-grid {
        /* Update to 5 columns for tablet/laptop, scroll only if needed */
        grid-template-columns: repeat(5, minmax(200px, 1fr));
        overflow-x: auto;
        justify-content: flex-start;
        padding-top: 40px;
        /* Ensure space for badge */
        padding-bottom: 40px;
        /* Ensure space for shadow */
    }
}

/* Ensure padding on default grid too */
.pricing-grid {
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image {
        order: -1;
    }

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

    /* Keep 7 columns scrollable on tablet/mobile or switch to stacked? 
       User asked for "7 columns side by side", implying a comparison view. 
       Usually comparison tables scroll horizontally on mobile. 
       Let's keep the grid scrollable. */
}

@media (max-width: 768px) {
    .nav-menu-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu-wrapper.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

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

    .early-access-form {
        flex-direction: column;
    }

    .early-access-content h2 {
        font-size: 2rem;
    }

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

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

    .pricing-card-featured {
        transform: scale(1);
    }

    .cta-content h2 {
        font-size: 2rem;
    }

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

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

    .post-navigation {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

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

/* ===========================
   WORDPRESS-STYLE PRICING TABLE
   =========================== */

.pricing-table-wrapper {
    overflow-x: auto;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    background: var(--color-white);
    border: 1px solid #E2E8F0;
}

.front-page .pricing-table-wrapper {
    border: none;
    box-shadow: none;
    background: transparent;
    overflow-x: visible;
}

.pricing-wp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
    /* Ensure it doesn't squish too much */
    font-family: var(--font-primary);
}

.pricing-wp-table th,
.pricing-wp-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
}

/* Sticky Header */
.pricing-wp-table thead th {
    position: sticky;
    top: 0;
    /* Adjust if there's a fixed site header */
    background: var(--color-white);
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Adjust sticky top if site header is fixed. 
   Assuming site-header height is around 70px. 
*/
.site-header+.site-main .pricing-wp-table thead th {
    top: 70px;
}

.pricing-feature-col {
    text-align: left !important;
    width: 200px;
    background: #F8FAFC;
    font-weight: 600;
    color: #0F172A;
    position: sticky;
    left: 0;
    z-index: 11;
    /* Higher than header row to stay on top when scrolling right */
    border-right: 1px solid #E2E8F0;
}

.pricing-wp-table thead th.pricing-feature-col {
    z-index: 12;
    /* Corner cell needs highest z-index */
}

.pricing-plan-col {
    min-width: 120px;
}

.plan-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.25rem;
}

.plan-price-header {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.btn-wp-table {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-wp-table:hover {
    border-color: var(--color-dark);
    color: var(--color-dark);
}

.btn-wp-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.btn-wp-primary:hover {
    background: var(--color-accent-purple);
    border-color: var(--color-accent-purple);
    color: var(--color-white);
}

.pricing-group-header td {
    background: #F1F5F9;
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1rem;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-feature-label {
    text-align: left !important;
    font-weight: 500;
    color: #334155;
    background: #F8FAFC;
    /* Keep sticky column bg */
    position: sticky;
    left: 0;
    z-index: 5;
    border-right: 1px solid #E2E8F0;
}

.check-icon {
    color: var(--color-accent-green);
    font-size: 1.2rem;
    font-weight: bold;
}

.dash-icon {
    color: #CBD5E1;
}

/* Hover effect for rows */
.pricing-wp-table tbody tr:hover td:not(.pricing-feature-label) {
    background-color: #F8FAFC;
}

/* Pricing Toggle */
.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pricing-toggle {
    position: relative;
    display: inline-flex;
    background: #FFFFFF;
    /* White background */
    border: 1px solid #E2E8F0;
    /* Light border */
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pricing-toggle input[type="radio"] {
    display: none;
}

.pricing-toggle label {
    position: relative;
    z-index: 2;
    padding: 8px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1E293B;
    /* Dark text */
    cursor: pointer;
    transition: color 0.3s ease;
}

.pricing-toggle input[type="radio"]:checked+label {
    color: #FFFFFF;
    /* White text on blue slider */
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    bottom: 4px;
    width: calc(50% - 4px);
    background: var(--color-primary);
    /* Blue background matching Buy button */
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}

.pricing-toggle input[value="annual"]:checked~.toggle-slider {
    transform: translateX(100%);
}

/* Adjust table for 5 columns */
.pricing-wp-table {
    min-width: 800px;
    /* Reduced min-width since fewer columns */
}