/* Home page — marketing landing (grawlr-example-home.png) */

/* Hero */
.home-hero.page-hero {
    padding: 7.5rem 0 4.5rem;
    min-height: 0;
    align-items: stretch;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.home-hero-copy h1 {
    font-size: clamp(2rem, 3.6vw, 2.85rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
    margin: 0 0 1.25rem;
}

.hero-accent {
    color: var(--accent-blue);
    font-weight: 700;
}

.home-hero-lead {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted-strong);
    max-width: 34rem;
}

.home-hero-lead-secondary {
    margin-bottom: 1.5rem;
}

.home-hero-cta {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-hero-cta:hover {
    color: var(--accent-blue-dark);
}

/* Hero image (stock photo + logo — replace when product screenshot is ready) */
.home-hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.home-hero-visual .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.home-hero-visual .hero-image-container {
    width: 100%;
    max-width: 500px;
    height: 350px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(62, 108, 232, 0.22);
    animation: home-hero-float 3s ease-in-out infinite;
}

.home-hero-visual .hero-image-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("https://images.unsplash.com/photo-1563206767-5b18f218e8de?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80") center / cover no-repeat;
    filter: blur(3px);
    z-index: 1;
}

.home-hero-visual .hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        145deg,
        rgba(62, 108, 232, 0.52) 0%,
        rgba(96, 139, 248, 0.38) 45%,
        rgba(37, 99, 235, 0.48) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.home-hero-visual .hero-image-logo {
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(30, 64, 175, 0.45));
    animation: home-hero-logo-pulse 2s ease-in-out infinite;
}

@keyframes home-hero-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes home-hero-logo-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
        filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(30, 64, 175, 0.45));
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
        filter: brightness(0) invert(1) drop-shadow(0 6px 16px rgba(62, 108, 232, 0.55));
    }
}

/* Section headings */
.home-section-heading {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 2rem;
    line-height: 1.2;
}

.home-section-heading::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 0.55rem;
    border-radius: 2px;
    background: var(--accent-blue);
}

.home-section-heading-center {
    text-align: center;
}

.home-section-heading-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* Stats strip + How it works (single dark band) */
.home-stats {
    background-color: var(--surface-dark);
    background-image: linear-gradient(155deg, rgba(8, 16, 44, 0.88), rgba(15, 37, 96, 0.75)),
        url('/assets/images/page/background-footer-1.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 2.75rem 0 3.5rem;
    color: #fff;
}

.home-stats-intro {
    margin-bottom: 2rem;
}

.home-stats-band-heading {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-align: center;
}

.home-stats-band-heading::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin: 0.55rem auto 0;
    border-radius: 2px;
    background: var(--accent-blue);
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.home-stat {
    text-align: center;
}

.home-stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: rgba(62, 108, 232, 0.22);
    color: #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.home-stat-value {
    margin: 0 0 0.35rem;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.25;
}

.home-stat-label {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
}

.home-stats-how {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home-stats-how .home-stats-band-heading {
    margin-bottom: 2rem;
}

.home-stats-how-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.home-stats-how-step {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    padding: 1.35rem 1.1rem 1.25rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-stats-how-step:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 197, 253, 0.45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.home-stats-how-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    border-radius: 12px;
    background: rgba(62, 108, 232, 0.28);
    color: #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.home-stats-how-step h3 {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
    color: #f8fafc;
}

.home-stats-how-step p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

/* Comparison table (full styles — not in pricing bundle) */
.page-home .comparison {
    padding: 5rem 0 5.5rem;
    background: #fff;
}

.page-home .comparison-subtitle {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted-strong);
    margin-bottom: 2.75rem;
}

.page-home .comparison-table-container {
    background: #fff;
    border: 1px solid rgba(62, 108, 232, 0.14);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
}

.page-home .comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 920px;
}

.page-home .comparison-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 1.15rem 1rem;
    text-align: center;
    vertical-align: bottom;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-dark);
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
    line-height: 1.35;
}

.page-home .comparison-table thead th.feature-column {
    text-align: left;
    padding-left: 1.35rem;
    min-width: 11rem;
    background: #f1f5f9;
    position: sticky;
    left: 0;
    z-index: 3;
}

.page-home .comparison-table thead th small {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.35;
}

.page-home .comparison-table th.grawlr-column {
    background: #e8eefd;
    color: var(--text-dark);
    box-shadow: inset 3px 0 0 var(--accent-blue);
}

.page-home .comparison-table th.grawlr-column b {
    color: var(--accent-blue);
    font-size: 1rem;
}

.page-home .comparison-table tbody td {
    padding: 0.95rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted-strong);
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}

.page-home .comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.page-home .comparison-table tbody tr:nth-child(even) td:not(.feature-name):not(.grawlr-cell) {
    background: #fafbfc;
}

.page-home .comparison-table .feature-name {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 11rem;
    padding: 0.95rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    background: #f1f5f9;
    border-right: 1px solid #e5e7eb;
    box-shadow: 4px 0 8px rgba(15, 23, 42, 0.04);
}

.page-home .comparison-table tbody tr:nth-child(even) .feature-name {
    background: #eceff3;
}

.page-home .comparison-table td.competitor-cell,
.page-home .comparison-table td.grawlr-cell {
    display: table-cell;
    vertical-align: top;
    text-align: left;
    padding: 0.95rem 1.1rem;
}

.page-home .comparison-table .comparison-cell-content {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.page-home .comparison-table td.competitor-cell.cell-missing,
.page-home .comparison-table td.competitor-cell.cell-partial,
.page-home .comparison-table td.competitor-cell.cell-good {
    background: transparent;
}

.page-home .comparison-table tbody tr:nth-child(even) td.competitor-cell.cell-missing,
.page-home .comparison-table tbody tr:nth-child(even) td.competitor-cell.cell-partial,
.page-home .comparison-table tbody tr:nth-child(even) td.competitor-cell.cell-good {
    background: #fafbfc;
}

.page-home .comparison-table td.grawlr-cell {
    background: #e8eefd;
    color: var(--text-dark);
    font-weight: 500;
    box-shadow: inset 3px 0 0 rgba(62, 108, 232, 0.55);
}

.page-home .comparison-table tbody tr:nth-child(even) td.grawlr-cell {
    background: #dfe8fc;
}

.page-home .comparison-table .comparison-cell-content > i,
.page-home .comparison-table td.competitor-cell > i,
.page-home .comparison-table td.grawlr-cell > i {
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    margin: 0.12em 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.6rem;
    line-height: 1;
    vertical-align: top;
}

.page-home .comparison-table .comparison-cell-content > i::before,
.page-home .comparison-table td.competitor-cell > i::before,
.page-home .comparison-table td.grawlr-cell > i::before {
    display: block;
    line-height: 1;
}

/* Legacy cells without wrapper: icon + text sit inline */
.page-home .comparison-table td.competitor-cell > i:first-child,
.page-home .comparison-table td.grawlr-cell > i:first-child {
    margin-right: 0.5rem;
}

/* fa-times glyph sits slightly high in its em-box — nudge for optical center */
.page-home .comparison-table td i.fa-times::before {
    transform: translateY(0.5px);
}

.page-home .comparison-table td.competitor-cell.cell-missing i,
.page-home .comparison-table td.competitor-cell.cell-missing .text-error {
    background: rgba(185, 28, 28, 0.12);
    color: var(--error-color) !important;
}

.page-home .comparison-table td.competitor-cell.cell-partial i,
.page-home .comparison-table td.competitor-cell.cell-partial .text-warning {
    background: rgba(217, 119, 6, 0.14);
    color: var(--warning-color) !important;
}

.page-home .comparison-table td.competitor-cell.cell-good i,
.page-home .comparison-table td.competitor-cell.cell-good .text-success {
    background: rgba(22, 163, 74, 0.12);
    color: var(--success-color) !important;
}

.page-home .comparison-table td.grawlr-cell i,
.page-home .comparison-table td.grawlr-cell .text-success {
    background: rgba(22, 163, 74, 0.18);
    color: var(--success-color) !important;
}

@media (max-width: 768px) {
    .page-home .comparison-table thead th,
    .page-home .comparison-table .feature-name {
        font-size: 0.82rem;
    }

    .page-home .comparison-table tbody td {
        font-size: 0.8rem;
        padding: 0.8rem 0.75rem;
    }

    .page-home .comparison-table-container {
        border-radius: 12px;
        margin-left: -20px;
        margin-right: -20px;
        border-left: none;
        border-right: none;
    }
}

/* Responsive */
@media (max-width: 1080px) {
    .home-stats-grid,
    .home-stats-how-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-visual {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .home-hero.page-hero {
        padding: 6.5rem 0 3rem;
    }

    .home-hero-visual .hero-image-container {
        max-width: 350px;
        height: 250px;
    }

    .home-stats-grid,
    .home-stats-how-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .home-stats-how {
        margin-top: 2.25rem;
        padding-top: 2.25rem;
    }

    .page-home .comparison-table-container {
        margin: 0 -20px;
        border-radius: 0;
    }
}

