/* ===== Design Tokens ===== */
:root {
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.1);
    --shadow-lift: 0 12px 36px rgba(0, 0, 0, 0.12);
    --transition-cozy: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --brand-blue-start: #0062cc;
    --brand-blue-end: #0099e6;
    --brand-gradient: linear-gradient(135deg, var(--brand-blue-start), var(--brand-blue-end));
}

/* Smooth anchor scrolling */
html {
    scroll-behavior: smooth;
}

/* Offset anchors for fixed navbar (~52px Bulma navbar + breathing room) */
[id] {
    scroll-margin-top: 4.5rem;
}

/* ===== Global Styles ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Tint light backgrounds toward brand blue — replaces Bulma's cold #f5f5f5 */
.has-background-light {
    background-color: #f0f4f8 !important;
}

/* Footer: brand blue-dark instead of generic gray-dark */
.footer.has-background-dark {
    background-color: #172a3a !important;
}

/* Targeted transitions — never transition "all" */
a, button, .tag {
    transition: color var(--transition-cozy), background var(--transition-cozy), transform var(--transition-cozy), box-shadow var(--transition-cozy), opacity var(--transition-cozy), border-color var(--transition-cozy);
}

input, select, textarea {
    transition: border-color var(--transition-cozy), box-shadow var(--transition-cozy);
}

/* Links */
a:not(.button):not(.navbar-item):hover {
    opacity: 0.85;
}

/* Tags: subtle scale on hover */
.tag:hover {
    transform: scale(1.05);
}

/* Images: rounded */
.image img, figure img {
    border-radius: var(--radius-sm);
}

/* Lists in content: smooth bullet transitions */
.content li {
    transition: transform var(--transition-cozy);
}

.content li:hover {
    transform: translateX(3px);
}

/* ===== Utilities ===== */
.opacity-90 { opacity: 0.9; }
.opacity-70 { opacity: 0.7; }
.h-100 { height: 100%; }
.shadow-md { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.no-pad-bottom { padding-bottom: 0 !important; }
.pad-top-tight { padding-top: 3rem !important; }

/* Icon background tints — replaces inline styles */
.icon-bg-primary { background: rgba(0, 209, 178, 0.1); }
.icon-bg-danger { background: rgba(255, 56, 96, 0.1); }
.icon-bg-success { background: rgba(72, 199, 142, 0.1); }
.icon-bg-info { background: rgba(50, 152, 220, 0.1); }
.icon-bg-warning { background: rgba(255, 221, 87, 0.1); }

/* Pricing tier HR separator */
.pricing-tier hr {
    background-color: #f0f0f0;
}

/* Rounded borders & depth for all containers */
.box {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform var(--transition-cozy), box-shadow var(--transition-cozy), border-color var(--transition-cozy);
}

.card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform var(--transition-cozy), box-shadow var(--transition-cozy);
}

.card .card-content {
    border-radius: var(--radius-md);
}

.tag {
    border-radius: 20px;
}

/* Buttons: cozy rounded */
.button {
    border-radius: var(--radius-sm) !important;
    transition: transform var(--transition-cozy), box-shadow var(--transition-cozy), background var(--transition-cozy);
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition-duration: 0.1s;
}

.button.is-rounded {
    border-radius: 999px !important;
}

.navbar {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.4s var(--ease-out-quart), background-color 0.4s var(--ease-out-quart);
}

.navbar.is-scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

/* Navbar items: rounded hover */
.navbar-item {
    border-radius: var(--radius-sm);
    transition: background var(--transition-cozy), color var(--transition-cozy), transform var(--transition-cozy);
    margin: 0.15rem 0.2rem;
}

.navbar-item:hover,
.navbar-item:focus {
    background-color: rgba(0, 209, 178, 0.08) !important;
    border-radius: var(--radius-sm);
}

/* Brand: visual weight */
.navbar-brand .navbar-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    color: var(--brand-blue-start);
    letter-spacing: -0.5px;
    font-size: 1.4rem;
    transition: background var(--transition-cozy), color var(--transition-cozy), letter-spacing 0.4s var(--ease-out-expo);
}

.navbar-brand .navbar-item:hover {
    background-color: rgba(0, 98, 204, 0.06) !important;
    color: var(--brand-blue-end);
    letter-spacing: 0.5px;
}

/* Navbar CTA button */
.navbar-end .navbar-item .button.is-primary {
    transition: transform var(--transition-cozy), box-shadow var(--transition-cozy), background var(--transition-cozy);
}

.navbar-end .navbar-item .button.is-primary:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 4px 14px rgba(0, 209, 178, 0.3);
}

/* ===== Hero Section — Rounded & Cozy ===== */
.hero.is-primary,
.hero.is-link {
    background: var(--brand-gradient);
}

.hero.is-medium {
    margin: 1rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero.is-medium .hero-body {
    padding: 4rem 3rem;
}

/* Hero buttons */
.hero .button.is-white {
    color: var(--brand-blue-start);
}

.hero .button-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero .button-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero demo preview */
.hero-demo-preview {
    display: block;
    position: relative;
}

.hero-demo-preview:hover {
    animation: none;
    transform: translateY(-4px) scale(1.02);
    transition: transform 0.3s var(--ease-out-quart);
}

.hero-demo-preview > div {
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: background var(--transition-cozy), border-color var(--transition-cozy);
}

.hero-demo-preview:hover > div {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== Container max-widths (replaces inline styles) ===== */
.container-narrow { max-width: 800px; margin-left: auto; margin-right: auto; }
.container-mid { max-width: 900px; margin-left: auto; margin-right: auto; }
.container-wide { max-width: 1100px; margin-left: auto; margin-right: auto; }

/* Notification: cozy */
.notification {
    border-radius: var(--radius-md) !important;
}

/* Input: cozy */
.input, .select select, .textarea {
    border-radius: var(--radius-sm) !important;
}

/* Timeline Styles for Roadmap */
.timeline {
    position: relative;
    padding: 1rem 0 2rem;
    margin-left: 1.5rem;
}

/* Continuous vertical line spanning the full timeline — gradient matches phases */
.timeline::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #00d1b2 0%, #00d1b2 55%, #ffdd57 55%, #ffdd57 75%, #3298dc 75%, #3298dc 100%);
    border-radius: 2px;
}

/* Phase headers (Q1, Q2, Futuro) */
.timeline .timeline-header {
    position: relative;
    padding: 1.25rem 0 1.25rem 4.5rem;
}

.timeline .timeline-header .tag {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Individual timeline entries */
.timeline .timeline-item {
    display: flex;
    padding: 1rem 0;
    position: relative;
}

/* Marker circle */
.timeline .timeline-marker {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #dbdbdb;
    background: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}

.timeline .timeline-marker.is-visible {
    opacity: 1;
    transform: scale(1);
}

.timeline .timeline-marker.is-primary {
    background: #00d1b2;
    color: white;
    border-color: #00d1b2;
    box-shadow: 0 0 0 4px rgba(0, 209, 178, 0.15);
}

.timeline .timeline-marker.is-info {
    background: #3298dc;
    color: white;
    border-color: #3298dc;
    box-shadow: 0 0 0 4px rgba(50, 152, 220, 0.15);
}

.timeline .timeline-marker.is-warning {
    background: #ffdd57;
    color: rgba(0, 0, 0, 0.7);
    border-color: #ffdd57;
    box-shadow: 0 0 0 4px rgba(255, 221, 87, 0.15);
}

/* Content area next to marker */
.timeline .timeline-content {
    flex: 1;
    padding-left: 2rem;
    padding-bottom: 0.5rem;
}

.timeline .timeline-content .heading {
    font-weight: 600;
    text-transform: uppercase;
    color: #7a7a7a;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

/* Cards in Timeline */
.timeline .card {
    transition: transform var(--transition-cozy), box-shadow var(--transition-cozy);
    border-left: 3px solid transparent;
}

.timeline .timeline-item:nth-child(-n+3) .card {
    border-left-color: #00d1b2;
}

.timeline .timeline-item:nth-child(n+4):not(.timeline-header) .card {
    border-left-color: #ffdd57;
}

.timeline .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Pricing Cards */
.pricing-cards .card {
    border: 1px solid #e8e8e8;
    transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart), border-color 0.3s var(--ease-out-quart);
}

.pricing-cards .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #00d1b2;
}

.pricing-cards .card-header {
    border-bottom: none;
}

/* Utilities */
.has-text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s var(--ease-out-expo);
}

/* FAQ Section */
.faq-item {
    cursor: pointer;
    transition: transform var(--transition-cozy), box-shadow var(--transition-cozy), border-color var(--transition-cozy);
    border: 1px solid transparent;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 209, 178, 0.2);
}

.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    display: none;
    content: "";
}

.faq-icon {
    transition: transform var(--transition-cozy);
    font-size: 0.85rem;
    color: #00d1b2;
}

.faq-item[open] .faq-icon {
    transform: rotate(90deg);
}

.faq-answer {
    padding-bottom: 0.5rem;
    border-top: 1px solid rgba(0, 209, 178, 0.15);
    padding-top: 1rem;
    animation: faqSlideDown 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 300px;
    }
}

/* Trust Indicators */
.trust-indicator {
    transition: transform var(--transition-cozy), box-shadow var(--transition-cozy), border-color var(--transition-cozy);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 2rem 1.5rem;
    text-align: center;
}

.trust-indicator:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(0, 209, 178, 0.15);
}

/* Icon circle wrap for trust cards */
.trust-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto;
    transition: transform var(--transition-cozy), box-shadow var(--transition-cozy);
}

.trust-indicator:hover .trust-icon-wrap {
    transform: scale(1.1) rotate(-6deg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Footer */
.footer .has-text-grey-light {
    color: #a8bdd0 !important;
}

.footer .footer-links {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

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

.footer .footer-links a {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-cozy), background var(--transition-cozy), transform var(--transition-cozy);
}

.footer .footer-links a:hover {
    color: white !important;
    background: rgba(0, 209, 178, 0.12);
    transform: translateX(4px);
}

.footer hr {
    margin: 1.5rem 0;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Feature Cards */
.feature-card {
    transition: transform var(--transition-cozy), box-shadow var(--transition-cozy), border-color var(--transition-cozy);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(0, 209, 178, 0.15);
}

/* Feature card icon: subtle scale on hover */
.feature-card:hover .icon {
    transform: scale(1.1);
    transition: transform var(--transition-cozy);
}

.feature-card .icon {
    transition: transform var(--transition-cozy);
}

/* Table overflow wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Navbar mobile menu — animated dropdown */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        display: none;
        background-color: #f0f4f8;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .navbar-menu.is-active {
        display: block;
        animation: menuSlideDown 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        border-top: 1px solid #e8e8e8;
        padding: 0.75rem 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    }
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer: cozy rounded top */
.footer {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ===== Responsive: Tablet (769px–1023px) ===== */
@media screen and (min-width: 769px) and (max-width: 1023px) {
    /* Trust grid: 2 columns instead of 4, so cards don't get too narrow */
    .trust-grid .column.is-3-desktop {
        flex: none;
        width: 50%;
    }
}

/* ===== Responsive: Mobile (up to 768px) ===== */
@media screen and (max-width: 768px) {

    /* Global: tighten section padding */
    .section {
        padding: 2rem 1rem;
    }

    .section.is-medium {
        padding: 2.5rem 1rem;
    }

    /* Hero */
    .hero.is-medium {
        margin: 0.75rem;
        border-radius: var(--radius-lg);
    }

    .hero.is-medium .hero-body {
        padding: 2rem 1.25rem;
    }

    .hero .column {
        text-align: center;
    }

    .hero .title.is-1 {
        font-size: 1.75rem;
        line-height: 1.2;
        word-break: normal;
        overflow-wrap: break-word;
    }

    /* Keep the <br> on mobile so "Simplificada" doesn't break mid-word */

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

    .hero .buttons {
        justify-content: center;
    }

    .hero .buttons .button.is-medium {
        font-size: 0.9rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Page titles */
    .title.is-1 {
        font-size: 1.75rem;
    }

    .title.is-2 {
        font-size: 1.5rem;
    }

    .title.is-3 {
        font-size: 1.25rem;
    }

    .subtitle.is-4 {
        font-size: 0.95rem;
    }

    .subtitle.is-5 {
        font-size: 0.9rem;
    }

    /* Feature cards: reduce inner padding */
    .feature-card {
        padding: 1rem;
    }

    .feature-card .title.is-4 {
        font-size: 1.1rem;
    }

    /* Trust indicators */
    .trust-indicator {
        padding: 1rem;
    }

    .trust-indicator .title.is-5 {
        font-size: 1rem;
    }

    /* FAQ */
    .faq-question.is-size-5 {
        font-size: 1rem !important;
    }

    .faq-item.box {
        padding: 0.75rem 1rem;
    }

    .faq-item summary {
        position: relative;
        justify-content: center;
        text-align: center;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .faq-item summary .icon {
        position: absolute;
        left: 0;
        margin: 0;
    }

    .faq-answer {
        text-align: center;
    }

    /* Pricing tier cards on mobile */
    .pricing-tier {
        padding: 1.25rem 0.75rem;
    }

    .pricing-tier .price-amount {
        font-size: 1.5rem;
        white-space: nowrap;
    }

    .pricing-tier .popular-badge {
        font-size: 0.65rem;
        top: -10px;
    }

    .slider-ticks {
        margin: -0.25rem 10px 0;
    }

    .slider-ticks span {
        font-size: 0.55rem;
    }

    /* Pricing simulator */
    .pricing-sim {
        padding: 1.25rem !important;
    }

    .pricing-sim-inputs .title.is-4 {
        font-size: 1.15rem;
    }

    .pricing-sim-result .title.is-1 {
        font-size: 2rem;
    }

    .pricing-sim-result .is-size-5 {
        font-size: 1rem !important;
    }

    .pricing-sim-result .card-content {
        padding: 1rem;
    }

    .pricing-sim-result .has-background-white {
        padding: 1rem !important;
    }

    /* About page stats */
    .stat-card .title.is-1,
    .stat-card .title.is-2 {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer .columns .column {
        text-align: center;
    }

    .footer .footer-links {
        margin-bottom: 1.5rem;
    }

    .footer .footer-links a {
        padding: 0.4rem 0.75rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .footer .title.is-5 {
        font-size: 1.1rem;
    }

    /* Timeline (roadmap) */
    .timeline {
        margin-left: 0.5rem;
    }

    .timeline::before {
        left: 0.9rem;
    }

    .timeline .timeline-marker {
        width: 2rem;
        height: 2rem;
        font-size: 0.6rem;
    }

    .timeline .timeline-content {
        padding-left: 1.25rem;
    }

    .timeline .timeline-header {
        padding-left: 3.5rem;
    }

    .timeline .card-content {
        padding: 1rem;
    }

    .timeline .timeline-content .title.is-5 {
        font-size: 1rem;
    }

    /* Comparison table → card layout on mobile */
    .comparison-table .table-responsive {
        overflow-x: visible;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table table {
        border-collapse: separate;
        border-spacing: 0 0.6rem;
    }

    .comparison-table table,
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table td {
        display: block;
        width: 100%;
    }

    .comparison-table tr {
        border: 1px solid #e8e8e8;
        border-radius: var(--radius-md);
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
        background: white;
        transition: box-shadow var(--transition-cozy);
    }

    .comparison-table tr:hover {
        box-shadow: var(--shadow-hover);
    }

    .comparison-table tr:nth-child(even) {
        background: white;
    }

    .comparison-table td {
        border: none !important;
        padding: 0.2rem 0;
        text-align: left !important;
    }

    /* First cell: feature name as card header */
    .comparison-table td:first-child {
        font-size: 0.95rem;
        padding-bottom: 0.5rem;
        margin-bottom: 0.4rem;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    /* Status cells: label + value side by side */
    .comparison-table td:nth-child(2),
    .comparison-table td:nth-child(3) {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .comparison-table td:nth-child(2)::before {
        content: "Deptto";
        font-weight: 600;
        font-size: 0.8rem;
        color: #006da0;
        min-width: 70px;
    }

    .comparison-table td:nth-child(3)::before {
        content: "Otros";
        font-weight: 600;
        font-size: 0.8rem;
        color: #7a7a7a;
        min-width: 70px;
    }

    /* Comparison legend: simplify on mobile */
    .comparison-legend br {
        display: none;
    }

    .comparison-legend {
        margin-top: 0.5rem !important;
    }

    /* Legal pages: content sizing */
    .content.is-medium {
        font-size: 0.95rem;
    }

    /* Media items on about page */
    .media .icon.is-large .fa-2x {
        font-size: 1.5em;
    }

}

/* ===== Responsive: Small mobile — iPhone SE 320px ===== */
@media screen and (max-width: 374px) {

    .hero .title.is-1 {
        font-size: 1.5rem;
    }

    .hero .subtitle.is-4 {
        font-size: 0.9rem;
    }

    .hero .buttons .button.is-medium {
        font-size: 0.85rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section {
        padding: 1.5rem 0.75rem;
    }

    .title.is-1 {
        font-size: 1.5rem;
    }

    .title.is-2 {
        font-size: 1.3rem;
    }

    .faq-question.is-size-5 {
        font-size: 0.9rem !important;
    }

    .pricing-sim-result .title.is-1 {
        font-size: 1.75rem;
    }

    /* Comparison cards: tighter on smallest screens */
    .comparison-table tr {
        padding: 0.6rem 0.75rem;
    }

    .comparison-table td:nth-child(2)::before,
    .comparison-table td:nth-child(3)::before {
        min-width: 60px;
        font-size: 0.75rem;
    }

    /* Pricing tier tags */
    .tag.is-medium {
        font-size: 0.75rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ===== Responsive: Wide screens — cap content width ===== */
@media screen and (min-width: 1280px) {
    .hero-body .container {
        max-width: 1100px;
    }
}

/* ===== Scroll Reveal Animation System ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grouped elements */
.scroll-reveal.stagger-1 { transition-delay: 0ms; }
.scroll-reveal.stagger-2 { transition-delay: 150ms; }
.scroll-reveal.stagger-3 { transition-delay: 300ms; }
.scroll-reveal.stagger-4 { transition-delay: 450ms; }

/* Hero entrance animation */
.hero-fade-in {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeIn 0.7s var(--ease-out-expo) forwards;
}

.hero-fade-in.delay-1 { animation-delay: 0ms; }
.hero-fade-in.delay-2 { animation-delay: 150ms; }
.hero-fade-in.delay-3 { animation-delay: 300ms; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Range Slider ===== */
.pricing-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e8e8e8;
    outline: none;
    margin: 1rem 0;
}

.pricing-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #00d1b2;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 209, 178, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pricing-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 209, 178, 0.5);
}

.pricing-slider:active::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(0, 209, 178, 0.2), 0 3px 10px rgba(0, 209, 178, 0.5);
}

.pricing-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #00d1b2;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 209, 178, 0.4);
}

/* ===== Pricing Tier Cards ===== */
.pricing-tier {
    border-radius: var(--radius-lg);
    border: 2px solid #e8e8e8;
    padding: 2rem 1.25rem;
    transition: border-color var(--transition-cozy), box-shadow var(--transition-cozy), transform var(--transition-cozy), background var(--transition-cozy);
    position: relative;
    background: white;
}

.pricing-tier:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(0, 209, 178, 0.3);
}

/* Popular badge + elevated style */
.pricing-tier.is-popular {
    border-color: #00d1b2;
    box-shadow: 0 4px 16px rgba(0, 209, 178, 0.15);
}

/* Active tier: clear "selected" state */
.pricing-tier.is-active {
    border-color: hsl(171, 100%, 41%);
    box-shadow: 0 6px 24px rgba(0, 209, 178, 0.2);
    background: hsl(171, 100%, 97%);
    transform: translateY(-3px);
}

.pricing-tier.is-active .price-amount {
    color: hsl(171, 100%, 29%);
}

/* Inactive tiers dim slightly when any tier is active */
.pricing-tier.is-dimmed {
    opacity: 0.55;
}

.pricing-tier.is-dimmed:hover {
    opacity: 1;
}

.pricing-tier .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00d1b2, #00b89c);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 209, 178, 0.3);
}

/* Pricing tier price number emphasis */
.pricing-tier .price-amount {
    font-size: 2.25rem;
    line-height: 1;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

/* Tier range label */
.pricing-tier .heading {
    letter-spacing: 1px;
}

/* Discount tags */
.pricing-tier .tag {
    font-weight: 600;
}

/* Slider tier tick marks */
.slider-ticks {
    position: relative;
    height: 18px;
    margin: -0.25rem 14px 0;
}

.slider-ticks span {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: #b5b5b5;
    top: 0;
}

.slider-ticks span::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 5px;
    background: #d5d5d5;
}

/* ===== Animated Counter ===== */
.counter-value {
    display: inline-block;
    transition: transform 0.1s ease;
}

.counter-value.is-updating {
    transform: scale(1.02);
}

/* ===== Contextual Message ===== */
.sim-context-msg {
    transition: opacity 0.3s ease;
    min-height: 1.5em;
}

/* ===== Savings Highlight ===== */
.savings-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00d1b2, #00c4a7);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.savings-badge:hover {
    transform: scale(1.05);
}

/* ===== Trust Section ===== */
.trust-badge {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-cozy), box-shadow var(--transition-cozy), border-color var(--transition-cozy);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(0, 209, 178, 0.15);
}

.trust-badge:hover .icon {
    transform: scale(1.1);
}

.trust-badge .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    transition: transform var(--transition-cozy);
}

/* ===== Final CTA Section ===== */
.final-cta {
    background: linear-gradient(135deg, #f0f4f8, #e4ecf4);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(0, 98, 204, 0.06);
}

.final-cta .micro-trusts {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.final-cta .micro-trusts span {
    font-size: 0.85rem;
    color: #7a7a7a;
}

/* ===== CTA Pulse ===== */
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 209, 178, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(0, 209, 178, 0); }
}

.cta-pulse {
    animation: ctaPulse 2s ease-in-out 1;
}

/* ===== Comparison Table Row Animation ===== */
.comparison-table tbody tr {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s var(--ease-out-quart), transform 0.4s var(--ease-out-quart);
}

.comparison-table tbody tr.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger for comparison rows */
.comparison-table tbody tr:nth-child(1) { transition-delay: 0ms; }
.comparison-table tbody tr:nth-child(2) { transition-delay: 60ms; }
.comparison-table tbody tr:nth-child(3) { transition-delay: 120ms; }
.comparison-table tbody tr:nth-child(4) { transition-delay: 180ms; }
.comparison-table tbody tr:nth-child(5) { transition-delay: 240ms; }
.comparison-table tbody tr:nth-child(6) { transition-delay: 300ms; }
.comparison-table tbody tr:nth-child(7) { transition-delay: 360ms; }
.comparison-table tbody tr:nth-child(8) { transition-delay: 420ms; }
.comparison-table tbody tr:nth-child(9) { transition-delay: 480ms; }
.comparison-table tbody tr:nth-child(10) { transition-delay: 540ms; }
.comparison-table tbody tr:nth-child(11) { transition-delay: 600ms; }
.comparison-table tbody tr:nth-child(12) { transition-delay: 660ms; }
.comparison-table tbody tr:nth-child(13) { transition-delay: 720ms; }
.comparison-table tbody tr:nth-child(14) { transition-delay: 780ms; }
.comparison-table tbody tr:nth-child(15) { transition-delay: 840ms; }
.comparison-table tbody tr:nth-child(16) { transition-delay: 900ms; }
.comparison-table tbody tr:nth-child(17) { transition-delay: 960ms; }

/* Deptto column highlight */
.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
    border-left: 3px solid #00d1b2;
}

/* Comparison table container */
.comparison-table.box {
    border-radius: var(--radius-xl);
}

/* ===== Category divider ===== */
.category-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
}

.category-divider::before,
.category-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

/* ===== Focus States (Accessibility) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid hsl(171, 100%, 41%);
    outline-offset: 2px;
}

/* ===== Pricing Simulator ===== */
.pricing-sim {
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.pricing-sim .heading {
    letter-spacing: 1px;
}

.pricing-sim .result-card-inner {
    border-radius: 20px;
    overflow: hidden;
}

.pricing-sim .contact-card-inner {
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid hsl(171, 100%, 41%);
}

/* ===== Disclaimer box ===== */
.pricing-disclaimer {
    border-radius: var(--radius-md) !important;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ===== Responsive additions for new pricing sections ===== */
@media screen and (max-width: 768px) {
    .final-cta {
        padding: 2rem 1.25rem;
    }

    .final-cta .micro-trusts {
        gap: 0.75rem;
    }

    .trust-badge {
        padding: 1.25rem 1rem;
    }

    .savings-badge {
        font-size: 0.8rem;
    }

    /* On mobile, comparison rows don't need stagger — cards are already one-by-one */
    .comparison-table tbody tr {
        transition-delay: 0ms !important;
    }
}

/* ===== Hero Demo Subtle Float ===== */
@keyframes demoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-demo-preview {
    animation: demoFloat 4s var(--ease-out-quart) infinite;
}

/* ===== Accessibility: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }

    .hero-fade-in {
        opacity: 1;
        transform: none;
    }

    .timeline .timeline-marker {
        opacity: 1;
        transform: scale(1);
    }

    .comparison-table tbody tr {
        opacity: 1;
        transform: none;
    }
}

/* ===== Print ===== */
@media print {
    .navbar,
    .footer,
    .hero,
    .button,
    .navbar-burger {
        display: none !important;
    }

    body {
        padding-top: 0 !important;
        font-size: 12pt;
        color: #000;
    }

    .section {
        padding: 1rem 0;
    }

    a {
        color: #000 !important;
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }

    a[href^="#"]::after,
    a[href^="/"]::after {
        content: "";
    }

    .scroll-reveal,
    .hero-fade-in,
    .timeline .timeline-marker,
    .comparison-table tbody tr {
        opacity: 1 !important;
        transform: none !important;
    }
}
