@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');




::selection {
    background-color: var(--accent-primary);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}


/* =========================================
   BUTTONS
========================================= */

/* =========================================
   HERO SECTION
========================================= */
.hero {
    padding: 60px 0 60px;
    position: relative;
    overflow: visible;
    background: var(--bg-secondary) !important;

    @media (max-width: 768px) {
        padding: 30px 0 30px;
    }

    &.no-image {
        @media (min-width: 769px) {
            padding-bottom: 60px;
        }
    }
}

.container.hero-container {
    max-width: 1240px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

@media (min-width: 769px) {
    .container.hero-container {
        gap: 20px;
    }
}


.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.5;
    /* margin-bottom: 24px; */
    color: var(--text-dark);
    letter-spacing: -1.5px;
    order: 2;

    @media (max-width: 768px) {
        font-size: 2.25rem;
        line-height: 1.5;
        margin-bottom: 0px;
    }
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-badge-item {
    order: 1;
}

.hero-title-item {
    order: 2;
}

.hero-image-wrapper {
    width: 100%;
    max-height: 800px;
    /* min-height: 300px; */
    padding: 30px;
    background: #e2e8f0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    order: 3;
    margin: 0px auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.hero-subtitle-item {
    order: 4;
}

.hero-stats-item {
    order: 5;
    width: 100%;
}

.hero-stats-item .stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;

    @media (min-width: 768px) {
        margin-bottom: 20px;

        .hero.no-image & {
            margin-bottom: 0;
        }
    }
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;

    @media (min-width: 768px) {
        margin-bottom: 20px;

        .hero.no-image & {
            margin-bottom: 0;
        }
    }
}

.hero-stats-item .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hero-stats-item .stat-item strong {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.hero-stats-item .stat-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .hero-stats-item .stat-item strong {
        font-size: 1.5rem;
    }

    .hero-stats-item .stat-item span {
        font-size: 0.7rem;
    }
}

@media (min-width: 769px) {
    .hero-image-wrapper {
        order: 6;
        /* Move to bottom on desktop */
    }
}

.hero-image-wrapper .hero-image {
    display: inline-block;
    max-width: 100%;
    max-height: 700px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        max-height: 400px;
        padding: 20px;
    }
}

/* =========================================
   EDITOR PANEL
========================================= */
.formatter-section {
    padding: 0 0 60px 0;
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-float);
    border: 1px solid rgba(255, 255, 255, 1);
}

.blue-panel {
    background: #191BC5;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-float);
    border: 1px solid rgba(255, 255, 255, 1);
}

.editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
}

.tool-btn {
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    background: var(--accent-light);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.spacer {
    flex-grow: 1;
}

#text-input {
    width: 100%;
    height: 280px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 24px;
    color: var(--text-dark);
    font-size: 1.05rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    line-height: 1.7;
    transition: all 0.3s ease;
}

#text-input:focus {
    background: white;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 4px var(--accent-light);
}

#text-input::placeholder {
    color: #191BC5;
}

.editor-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* =========================================
   SECTIONS COMMON
========================================= */


.section-bg {
    background: linear-gradient(180deg, #ffffff, var(--bg-secondary));
}


.content-container h3 {
    /* font-size: 1.6rem; */
    margin: 32px 0 20px;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}




/* =========================================
   FREE TOOLS GRID
========================================= */
.free-tools {
    background: #FAF7FF
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    /* Space for the top-absolute badges */

    @media (max-width: 768px) {
        gap: 16px;
    }
}

.tool-link-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(160deg, #ffffff, #f9fbfd);
    border-radius: var(--radius-lg);
    padding: 32px 24px 24px;
    /* More top padding */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border-subtle);
    min-height: 160px;
    position: relative;
}

.tool-link-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}

.tool-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    position: relative;
}

.badge-mini {
    align-items: center;
    padding: 4px 12px;
    background: rgb(255, 241, 241);
    color: rgb(255, 0, 0);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tool-section-title {
    font-weight: 800;
    color: var(--text-dark);
    font-size: 1.25rem;
    line-height: 1.35;
    letter-spacing: -0.5px;
}

.tool-footer {
    display: flex;
    justify-content: space-between;
    /* Aligned left looks modern on small cards */
    align-items: center;
    width: 100%;
}

.btn-try {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    border-radius: var(--radius-pill);
    background: transparent;
    transition: all 0.3s ease;
}

.tool-link-card:hover .btn-try {
    gap: 10px;
    color: var(--accent-primary-hover);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .container.hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding-right: 24px;
        padding-left: 24px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

}

/* =========================================
   COMPARISON COMPONENTS
========================================= */

/* Moved to component/comparison-advantage/comparison-advantage.css */
/* Moved to component/comparison-with-price/comparison-with-price.css */

/* =========================================
   DETAILED COMPARISON TABLE
========================================= */

.comp-detailed-table-wrapper {
    margin-top: 50px;
    width: 100%;
    overflow-x: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.comp-detailed-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 700px;
    table-layout: fixed;

    @media (max-width: 768px) {
        min-width: 440px;
    }
}

/* Base Cell Styles */
.comp-detailed-table th,
.comp-detailed-table td {
    padding: 16px 16px 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
    transition: background-color 0.2s ease;
    vertical-align: middle;

    @media (max-width: 768px) {
        padding: 12px;
    }
}

.comp-detailed-table th {
    background: var(--bg-primary);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-strong);
}

/* Column 1: Features */
.comp-detailed-table th:first-child,
.comp-detailed-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    width: 35%;
    font-size: 1.1rem;

    @media (max-width: 768px) {
        width: 160px !important;
        min-width: 160px !important;
        font-size: 13px !important;
        font-weight: 600;
    }
}

.comp-detailed-table th:first-child {
    @media (max-width: 768px) {
        font-size: 14px !important;
        font-weight: 800;
    }
}

/* Columns 2 & 3: Comparison Columns */
.comp-detailed-table th:nth-child(n+2),
.comp-detailed-table td:nth-child(n+2) {
    width: 32.5%;

    @media (max-width: 768px) {
        width: 140px !important;
        min-width: 140px !important;
        font-size: 14px !important;
        padding: 12px !important;
    }
}

/* Highlight GrowReach (Column 2) */
.comp-detailed-table th:nth-child(2),
.comp-detailed-table td:nth-child(2) {
    background-color: var(--accent-light);
    border-left: 1px solid rgba(25, 27, 197, 0.08);
    border-right: 1px solid rgba(25, 27, 197, 0.08);
}

.comp-detailed-table th:nth-child(2) {
    border-top: 3px solid var(--accent-primary);
}

/* Row & State Styles */
.comp-detailed-table tr:last-child td {
    border-bottom: none;
}

.comp-detailed-table tbody tr:hover td {
    background-color: var(--bg-secondary);
}

.comp-detailed-table tbody tr:hover td:nth-child(2) {
    background-color: #e0e7ff;
}

/* Table Header Components */
.table-logo-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.15rem;

    @media (max-width: 768px) {
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-size: 14px !important;
    }
}

.header-gr-icon {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.status-pack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-pack .comp-icon {
    margin: 0 auto;
    width: 28px;
    height: 28px;
}

.status-text-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.status-text-badge.class-neg {
    color: var(--status-neg);
}