/* ============================================================
   GenOverview — Custom Styles
   ============================================================ */

:root {
    --bs-primary: #3EB1FF;
    --bs-primary-rgb: 62, 177, 255;
    --bs-primary-bg-subtle: color-mix(in sRGB, var(--bs-paper-bg) 84%, #3EB1FF);
    --bs-primary-border-subtle: rgba(62, 177, 255, 0.3);
    --bs-primary-contrast: #fff;
    --bs-secondary-color: #7d7073;
}

/* -------------------------------------------------------
   Utility overrides
   ------------------------------------------------------- */
.mt-16 {
    margin-top: 6rem !important;
}

/* White-background sections bottom border */
.section-border-bottom {
    border-bottom: 1px solid #f2f2f2;
}

/* Inline style replacements */
.hero-screenshot-max {
    max-width: 1024px;
}
.hiw-tabs-max {
    max-width: 900px;
}
.hiw-step-desc {
    max-width: 640px;
}
.heading-2xl {
    font-size: 2.5rem;
}
.play-icon-fill {
    fill: var(--bs-primary);
    margin-left: 2px;
}
.badge-star {
    font-size: 0.6rem;
}

/* -------------------------------------------------------
   Brand / Logo
   ------------------------------------------------------- */
.app-brand-logo img {
    transition: all 0.2s ease-in-out;
}

/* -------------------------------------------------------
   Hero Section
   ------------------------------------------------------- */
.hero-screenshot-wrapper {
    position: relative;
}
.hero-screenshot-link {
    display: block;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}
.hero-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.12) !important;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.18);
}
.hero-screenshot-link:hover .hero-play-btn {
    transform: translate(-50%, -50%) scale(1.12) !important;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.18);
}

/* -------------------------------------------------------
   Video Modal
   ------------------------------------------------------- */
#videoModal .modal-dialog {
    max-width: 960px;
}
#videoModal .modal-content {
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
#videoModal .modal-body {
    border-radius: 0 0 calc(1rem - 3px) calc(1rem - 3px);
    overflow: hidden;
}
#videoModal .modal-close-outside {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
    z-index: 1;
}
#videoModal .modal-close-outside:hover {
    opacity: 1;
}
#videoModal.fade .modal-dialog {
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.modal-backdrop.show {
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.6);
}
.video-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

/* -------------------------------------------------------
   How It Works — Tabs
   ------------------------------------------------------- */
.hiw-tabs {
    overflow-x: auto;
}
.hiw-tabs-inner {
    min-width: min-content;
}
.hiw-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    min-width: 160px;
    flex: 1;
    color: var(--bs-body-color);
    opacity: 0.55;
    transition: opacity 0.3s ease;
    position: relative;
}
.hiw-tab:hover {
    opacity: 0.8;
}
.hiw-tab.active {
    opacity: 1;
}
.hiw-tab-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    transition: all 0.3s;
    font-size: 1.5rem;
}
.hiw-tab.active .hiw-tab-icon {
    background: var(--bs-primary);
    color: #fff;
}
.hiw-tab-label {
    font-weight: 600;
    font-size: 0.875rem;
}
.hiw-tab-progress {
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}
.hiw-tab-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--bs-primary);
    border-radius: 3px;
}
.hiw-tab.active .hiw-tab-progress-bar {
    animation: hiwProgress 15s linear forwards;
}

@keyframes hiwProgress {
    from { width: 0%; }
    to   { width: 100%; }
}

/* How It Works — Panels */
.hiw-step-panel {
    display: none;
}
.hiw-step-panel.active {
    display: block;
    animation: hiwFadeIn 0.45s ease;
}
@keyframes hiwFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hiw-screenshot-container {
    max-width: 1024px;
}
.hiw-screenshot-img {
    display: block;
}

/* -------------------------------------------------------
   Features — Cards
   ------------------------------------------------------- */
.feature-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.feature-card-active {
    border-color: var(--bs-primary);
    border-width: 2px;
    box-shadow: 0 4px 20px rgba(62, 177, 255, 0.1);
}
.feature-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: var(--bs-primary-bg-subtle);
    margin-bottom: 1.25rem;
}
.feature-card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.feature-card-text {
    color: var(--bs-secondary-color);
    margin-bottom: 0;
    line-height: 1.7;
}

/* -------------------------------------------------------
   Pricing
   ------------------------------------------------------- */
/* Toggle Pills */
.pricing-toggle-pills {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.pricing-toggle-btn {
    border: none;
    background: transparent;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--bs-body-color);
    transition: all 0.25s ease;
}
.pricing-toggle-btn.active {
    background: var(--bs-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(62, 177, 255, 0.3);
}

/* Pricing Cards */
.pricing-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
    position: relative;
    background: var(--bs-body-bg, #fff);
}
.pricing-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.pricing-card-popular {
    border-color: var(--bs-primary);
    border-width: 2px;
    box-shadow: 0 4px 24px rgba(62, 177, 255, 0.15);
}
.pricing-popular-badge {
    position: absolute;
    top: 0;
    right: 1.5rem;
    background: var(--bs-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 0 0 0.5rem 0.5rem;
}
.pricing-card-header {
    padding: 2rem 2rem 1.5rem;
}
.pricing-card-body {
    padding: 0 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pricing-plan-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.pricing-price-wrap {
    display: flex;
    align-items: baseline;
}
.pricing-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--bs-heading-color);
}
.pricing-period {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--bs-secondary-color);
}
.pricing-price-was {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    text-decoration: line-through;
    margin-right: 0.5rem;
    opacity: 0.7;
}
.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.pricing-features-list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.pricing-check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--bs-primary);
}

/* -------------------------------------------------------
   Compare Plans — Div Grid
   ------------------------------------------------------- */
.compare-plans-wrapper {
    overflow-x: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
}
.compare-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    min-width: 850px;
}
.compare-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.015);
}
.compare-row.compare-header {
    background: rgba(0, 0, 0, 0.03);
    font-weight: 700;
    font-size: 0.9rem;
}
.compare-cell {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.compare-cell.compare-feature {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    font-weight: 500;
}
.compare-feature small {
    font-weight: 400;
    color: var(--bs-secondary-color);
}
.compare-row:last-child .compare-cell {
    border-bottom: none;
}
.compare-check {
    width: 20px;
    height: 20px;
}
.compare-x {
    width: 18px;
    height: 18px;
}
.compare-badge-whitelabel {
    font-size: 0.7rem;
}

/* -------------------------------------------------------
   FAQ — Minimal Accordion
   ------------------------------------------------------- */
.faq-accordion .faq-item {
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    margin-bottom: 0;
}
.faq-accordion .faq-item:last-child {
    border-bottom: none !important;
}
.faq-accordion .faq-item:hover {
    box-shadow: none !important;
}
.faq-accordion .accordion-button {
    background: transparent !important;
    box-shadow: none !important;
    font-weight: 600;
    padding: 1.25rem 0;
    border-radius: 0 !important;
}
.faq-accordion .accordion-button:focus {
    box-shadow: none !important;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background: transparent !important;
    box-shadow: none !important;
}
.faq-accordion .accordion-collapse {
    background: transparent !important;
}
.faq-accordion .accordion-body {
    padding: 0 0 1.25rem;
    background: transparent !important;
}

/* -------------------------------------------------------
   CTA Section
   ------------------------------------------------------- */
#landingCTA .cta-image {
    background-size: cover;
    opacity: 0.2;
}

/* -------------------------------------------------------
   Footer
   ------------------------------------------------------- */
.landing-footer {
    background: #fff !important;
    background-image: none !important;
    color: var(--bs-body-color);
}
.landing-footer,
.landing-footer .footer-top,
.landing-footer .footer-bottom {
    background: #fff !important;
    background-image: none !important;
}
.footer-title {
    font-weight: 700;
    color: var(--bs-heading-color, #000);
}
.footer-link {
    color: var(--bs-body-color) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: var(--bs-primary) !important;
}
.footer-logo-description {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    line-height: 1.7;
}
.footer-bottom {
    color: var(--bs-body-color);
}
.footer-bottom span,
.footer-bottom .text-body-secondary {
    color: var(--bs-body-color) !important;
}
.footer-bottom-text .footer-proudly {
    opacity: 0.6;
    transition: opacity 0.5s ease;
}
.footer-bottom-text:hover .footer-proudly {
    opacity: 1;
}
.flag {
    border-radius: 2px;
    width: 20px;
    height: auto;
}

/* -------------------------------------------------------
   Responsive
   ------------------------------------------------------- */

/* Desktop */
@media (min-width: 992px) {
    .app-brand-logo img {
        width: auto;
        height: 50px;
    }
}

/* Tablet — HIW tabs allow text wrap, no horizontal scroll */
@media (max-width: 991.98px) and (min-width: 769px) {
    .hiw-tabs-inner {
        min-width: 0;
    }
    .hiw-tab {
        min-width: 0;
    }
    .hiw-tab-label {
        white-space: normal;
        text-align: center;
    }
}

/* Mobile — HIW tabs stacked full-width */
@media (max-width: 768px) {
    .hiw-tabs-inner {
        flex-direction: column !important;
        min-width: 0;
        gap: 0 !important;
    }
    .hiw-tab {
        flex-direction: row;
        width: 100%;
        min-width: 0;
        padding: 0.75rem 1rem;
        text-align: left;
        gap: 0.75rem;
    }
    .hiw-tab-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        font-size: 1.25rem;
    }
    .hiw-tab-label {
        white-space: normal;
        text-align: left;
    }
    .hiw-tab-progress {
        position: absolute;
        bottom: 0;
        left: 0;
        margin-top: 0;
        border-radius: 0;
    }
    .hiw-screenshot-container {
        height: auto;
    }
}

/* Mobile compare table scroll hint */
@media (max-width: 767.98px) {
    .compare-plans-wrapper {
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   Proactive Alerts section — animated inbox mockup (theme-aware via --bs-* vars)
   ========================================================================== */
.landing-alerts .alerts-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--bs-body-color);
    font-weight: 500;
}
.landing-alerts .alerts-benefits .pricing-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--bs-primary);
}

.genov-inbox {
    max-width: 460px;
    margin: 0 auto;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 14px;
    box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}
.genov-inbox-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bs-tertiary-bg);
    border-bottom: 1px solid var(--bs-border-color);
}
.genov-inbox-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bs-border-color);
}
.genov-inbox-dot:nth-child(1) { background: #ff5f57; }
.genov-inbox-dot:nth-child(2) { background: #febc2e; }
.genov-inbox-dot:nth-child(3) { background: #28c840; }
.genov-inbox-title {
    margin-left: 8px;
    font-weight: 600;
    color: var(--bs-body-color);
}
.genov-inbox-count {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: var(--bs-primary);
    border-radius: 20px;
    padding: 2px 10px;
    opacity: 0;
    animation: genovCountIn 6s ease-in-out infinite;
}
.genov-inbox-list {
    padding: 8px;
}
.genov-mail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    position: relative;
}
.genov-mail-old { opacity: 0.55; }
.genov-mail-new {
    background: rgba(62, 177, 255, 0.10); /* primary tint */
    transform: translateY(-10px);
    opacity: 0;
    animation: genovMailIn 6s ease-in-out infinite;
}
.genov-mail-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.genov-avatar-muted { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
.genov-mail-content { min-width: 0; flex: 1; }
.genov-mail-line1 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.genov-mail-from { font-weight: 700; color: var(--bs-body-color); }
.genov-mail-time { font-size: 0.75rem; color: var(--bs-secondary-color); flex-shrink: 0; }
.genov-mail-subject { font-weight: 600; color: var(--bs-body-color); margin-top: 2px; }
.genov-mail-subject-muted { color: var(--bs-secondary-color); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.genov-mail-snippet {
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.genov-mail-unread {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bs-primary);
    flex-shrink: 0;
    margin-top: 6px;
    animation: genovPulse 2s ease-in-out infinite;
}

@keyframes genovMailIn {
    0%, 100% { transform: translateY(-10px); opacity: 0; }
    12%, 88% { transform: translateY(0); opacity: 1; }
}
@keyframes genovCountIn {
    0%, 8% { opacity: 0; transform: scale(0.7); }
    16%, 88% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.7); }
}
@keyframes genovPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(62, 177, 255, 0.55); }
    50% { box-shadow: 0 0 0 6px rgba(62, 177, 255, 0); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .genov-mail-new { animation: none; transform: none; opacity: 1; }
    .genov-inbox-count { animation: none; opacity: 1; }
    .genov-mail-unread { animation: none; }
}

/* =========================================================
   How It Works — sticky scroll-telling (rebuild 2026-07-27)
   Desktop: section pins and steps through slides on scroll.
   Mobile / reduced-motion: falls back to tap-tabs (JS adds .hiw-mode-tabs).
   ========================================================= */
.hiw-scroll {
    --hiw-top: 90px;
    position: relative;
}
.hiw-sticky {
    position: sticky;
    top: var(--hiw-top);
    padding-top: 0.5rem;
}
.hiw-scroll.hiw-mode-tabs .hiw-sticky {
    position: static;
}
.hiw-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 960px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
}
.hiw-nav::-webkit-scrollbar { display: none; }
.hiw-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 0;
    min-width: 150px;
    padding: 0.85rem 1rem 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--bs-body-color);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.hiw-nav-item:hover { opacity: 0.85; }
.hiw-nav-item.active { opacity: 1; }
.hiw-nav-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    font-size: 1.4rem;
    transition: background 0.3s, color 0.3s;
}
.hiw-nav-item.active .hiw-nav-icon {
    background: var(--bs-primary);
    color: #fff;
}
.hiw-nav-label {
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
}
.hiw-nav-progress {
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 0.6rem;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
}
.hiw-nav-progress-bar {
    display: block;
    width: 0%;
    height: 100%;
    background: var(--bs-primary);
    border-radius: 3px;
    transition: width 0.12s linear;
}
.hiw-stage {
    display: grid;
    max-width: 1024px;
    margin: 0 auto;
}
.hiw-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease;
    pointer-events: none;
}
.hiw-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.hiw-step-desc {
    min-height: 3rem;
}
.hiw-screenshot-container {
    max-width: 1024px;
    margin-inline: auto;
    aspect-ratio: 16 / 9;
    background: #f1f2f4;
}
.hiw-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tablet — nav labels may wrap, no fixed min width */
@media (max-width: 991.98px) and (min-width: 769px) {
    .hiw-nav-item { min-width: 0; }
    .hiw-nav-label { white-space: normal; }
}
/* Mobile — tap-tabs, never pin */
@media (max-width: 768px) {
    .hiw-scroll { height: auto !important; }
    .hiw-sticky { position: static !important; top: auto !important; }
    .hiw-nav { justify-content: flex-start; }
    .hiw-nav-item { min-width: 33%; padding: 0.6rem 0.5rem 0; }
    .hiw-nav-icon { width: 40px; height: 40px; font-size: 1.2rem; }
    .hiw-nav-label { font-size: 0.8rem; }
}
/* Reduced motion — static tabs, no fade or pinning */
@media (prefers-reduced-motion: reduce) {
    .hiw-scroll { height: auto !important; }
    .hiw-sticky { position: static !important; }
    .hiw-slide { transition: none; }
}
