/* Large-desktop header. The logo, 8 links, theme toggle and both CTAs need
   ~1400px on one line, but .nav-container caps at 1200px - so at every
   desktop width flex-shrink squeezed the logo box (the SVG letterboxing
   inside it) and wrapped both CTAs onto two lines. From 1440px there is
   room: widen the container, stop the logo/CTAs shrinking, keep CTA text
   on one line with matching heights, and step sizes up once more for
   1800px+ screens. Below 1440px the hamburger block below takes over. */
@media (min-width: 1440px) {
    .nav-container {
        max-width: 1600px;
    }
    .brand-logo,
    .nav-actions {
        flex-shrink: 0;
    }
    .brand-logo-img {
        height: 32px;
    }
    .nav-links {
        gap: 1.5rem;
    }
    .nav-actions .btn-primary-sm,
    .nav-actions .btn-secondary-sm {
        white-space: nowrap;
        min-height: 40px;
    }
}

@media (min-width: 1800px) {
    .nav-container {
        max-width: 1680px;
    }
    .brand-logo-img {
        height: 36px;
    }
    .nav-links {
        gap: 2rem;
    }
    .nav-actions .btn-primary-sm,
    .nav-actions .btn-secondary-sm {
        font-size: 0.9375rem;
        padding: 0.5rem 1.25rem;
        min-height: 44px;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
    .hero-canvas-container {
        opacity: 0.3;
        width: 100%;
    }
    .hero-content {
        max-width: 100%;
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
    .workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Hamburger navigation breakpoint. The full desktop header (logo, 8 links,
   theme toggle, both CTAs) only fits on one line from 1440px up (see the
   large-desktop block above); below that it squeezed the logo, wrapped the
   CTAs and overflowed near 769px. So at 1439px and below this block hides
   the desktop links/buttons (.nav-actions) and shows the hamburger
   (.mobile-menu-toggle) plus the duplicated theme toggle and CTAs
   (.mobile-nav-cta) inside the dropdown panel (.nav-links). The open/close
   JS in js/main.js only toggles the "active"/"open" classes and
   aria-expanded - it doesn't know about the breakpoint, so changing this
   value is the only thing needed to move where the hamburger kicks in.
   1439.98px, not 1439px: with fractional display scaling (e.g. 125%) the
   viewport can be 1439.2px wide, which would match neither this block nor
   the min-width: 1440px one. */
@media (max-width: 1439.98px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--nav-panel-bg);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 2rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .mobile-nav-cta {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .footer-simple {
        flex-direction: column-reverse;
        text-align: center;
        justify-content: center;
        gap: 1rem;
    }

    .legal-links {
        justify-content: center;
        gap: 1rem;
    }
}

/* Desktop layout: Side-by-side columns inside the card with a middle border */
@media (min-width: 900px) {
    .calc-container {
        grid-template-columns: 1.2fr 1fr;
    }
    
    .calc-controls {
        border-right: 1px solid var(--calc-card-border);
    }
}

.calc-results .eyebrow {
    color: var(--accent-blue, #3b82f6);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.calc-results h3 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color: var(--text-primary);
}

/* PRICING PAGE */
/* Responsive Breakdown */
@media (max-width: 968px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .pricing-card.highlighted {
        transform: none;
    }
}