:root {
    --qe-navy: #0f172a;
    --qe-blue: #2563eb;
    --qe-teal: #14b8a6;
    --qe-light: #f8fafc;
    --qe-white: #ffffff;
    --qe-border: #e2e8f0;
    --qe-text: #334155;
    --qe-muted: #64748b;
    --qe-success: #16a34a;
    --qe-warning: #f59e0b;
    --qe-danger: #dc2626;
    --qe-purple: #7c3aed;
    --qe-indigo: #4f46e5;
    --qe-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    --qe-radius: 24px;
    --qe-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--qe-font);
    color: var(--qe-text);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 1) 25%, rgba(248, 250, 252, 0.88) 100%);
    line-height: 1.6;
}

a {
    color: var(--qe-blue);
    text-decoration: none;
}

a:hover {
    color: var(--qe-indigo);
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.75rem;
    color: var(--qe-navy);
    line-height: 1.1;
}

p {
    margin: 0 0 1rem;
}

ul {
    margin: 0;
    padding-left: 1.1rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.screen-reader-text:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    clip: auto;
    background: var(--qe-navy);
    color: var(--qe-white);
    z-index: 10000;
    border-radius: 12px;
}

.qe-container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.qe-section {
    padding: 5rem 0;
}

.qe-gradient-bg {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 36%), radial-gradient(circle at right center, rgba(20, 184, 166, 0.12), transparent 34%);
}

.qe-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(16px);
}

.qe-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 82px;
}

.qe-logo,
.qe-footer-logo,
.qe-dashboard-logo,
.qe-proposal-logo {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    color: var(--qe-navy);
}

.qe-logo img,
.qe-footer-logo img,
.qe-dashboard-logo img,
.qe-proposal-logo img {
    max-height: 44px;
    width: auto;
}

.qe-text-logo {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.qe-nav-list,
.qe-legal-list,
.qe-mobile-nav-list,
.qe-app-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qe-nav-list {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.qe-nav-list a,
.qe-mobile-nav-list a,
.qe-app-nav a,
.qe-footer-links a,
.qe-legal-list a {
    color: var(--qe-text);
    font-weight: 600;
}

.qe-header-actions,
.qe-button-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.qe-button,
.qe-button-secondary,
.qe-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.qe-button {
    background: linear-gradient(135deg, var(--qe-blue), var(--qe-indigo));
    color: var(--qe-white);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.qe-button:hover {
    transform: translateY(-1px);
    color: var(--qe-white);
}

.qe-button-secondary {
    background: var(--qe-white);
    color: var(--qe-navy);
    border: 1px solid var(--qe-border);
}

.qe-link-button {
    color: var(--qe-navy);
}

.qe-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0.6rem;
    border: 1px solid var(--qe-border);
    border-radius: 14px;
    background: var(--qe-white);
}

.qe-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--qe-navy);
    margin: 5px 0;
}

.qe-mobile-nav {
    border-top: 1px solid var(--qe-border);
    background: var(--qe-white);
}

.qe-mobile-nav .qe-container {
    padding: 1rem 0 1.35rem;
}

.qe-mobile-nav-list li + li {
    margin-top: 0.8rem;
}

.qe-mobile-nav-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.qe-hero {
    padding-top: 4.75rem;
}

.qe-hero-grid,
.qe-auth-grid,
.qe-calculator-layout {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.qe-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.qe-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: var(--qe-blue);
    font-size: 0.86rem;
    font-weight: 700;
}

.qe-lead {
    font-size: 1.125rem;
    color: var(--qe-muted);
    max-width: 62ch;
}

.qe-hero h1,
.qe-page-header h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    letter-spacing: -0.05em;
}

.qe-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
    color: var(--qe-muted);
    font-weight: 600;
}

.qe-hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.qe-card,
.qe-content-card,
.qe-legal-card,
.qe-auth-card,
.qe-proposal-card {
    background: var(--qe-white);
    border: 1px solid var(--qe-border);
    border-radius: var(--qe-radius);
    box-shadow: var(--qe-shadow);
}

.qe-card {
    padding: 1.5rem;
}

.qe-card-grid,
.qe-feature-grid,
.qe-footer-grid,
.qe-pricing-grid,
.qe-article-grid {
    display: grid;
    gap: 1.25rem;
}

.qe-card-grid,
.qe-feature-grid,
.qe-pricing-grid,
.qe-article-grid {
    grid-template-columns: repeat(12, 1fr);
}

.qe-card-grid > *,
.qe-feature-grid > *,
.qe-pricing-grid > *,
.qe-article-grid > * {
    grid-column: span 4;
}

.qe-section-heading {
    margin-bottom: 2rem;
    max-width: 760px;
}

.qe-section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.04em;
}

.qe-industry-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.qe-industry-icon {
    font-size: 1.75rem;
}

.qe-link-arrow {
    margin-top: auto;
    font-weight: 700;
}

.qe-steps-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.qe-step-card strong {
    display: inline-flex;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--qe-blue);
}

.qe-feature-list li + li {
    margin-top: 0.55rem;
}

.qe-mockup {
    position: relative;
}

.qe-mockup-window,
.qe-proposal-sheet {
    background: var(--qe-white);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14);
}

.qe-mockup-window {
    padding: 1rem;
}

.qe-mockup-header {
    display: flex;
    gap: 0.5rem;
    padding-bottom: 0.9rem;
}

.qe-mockup-header span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
}

.qe-mockup-body {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

.qe-mockup-panel {
    padding: 1.2rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 1));
    border: 1px solid var(--qe-border);
}

.qe-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin: 1rem 0;
}

.qe-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, var(--qe-blue), var(--qe-teal));
}

.qe-mockup-metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qe-mockup-metrics .qe-card {
    padding: 1rem;
}

.qe-muted {
    color: var(--qe-muted);
}

.qe-proposal-preview .qe-mockup-proposal {
    max-width: 880px;
    margin: 0 auto;
}

.qe-proposal-sheet {
    padding: 1.5rem;
}

.qe-proposal-sheet-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.qe-proposal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.qe-proposal-list div {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid var(--qe-border);
}

.qe-proposal-list span {
    display: block;
    color: var(--qe-muted);
    margin-bottom: 0.35rem;
}

.qe-pricing-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qe-pricing-card.is-featured {
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-6px);
}

.qe-pricing-price {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.qe-pricing-price strong {
    font-size: 2rem;
    color: var(--qe-navy);
}

.qe-faq {
    display: grid;
    gap: 1rem;
}

.qe-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--qe-navy);
}

.qe-faq details[open] {
    background: rgba(255, 255, 255, 0.96);
}

.qe-footer {
    padding: 4rem 0 2rem;
    background: var(--qe-navy);
    color: rgba(255, 255, 255, 0.88);
}

.qe-footer a,
.qe-footer h3 {
    color: var(--qe-white);
}

.qe-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    margin-bottom: 2rem;
}

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

.qe-footer-links li + li {
    margin-top: 0.65rem;
}

.qe-footer-title {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.qe-footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.16);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.qe-legal-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.qe-content-shell {
    max-width: 920px;
}

.qe-content-card,
.qe-legal-card {
    padding: 2rem;
}

.qe-featured-image {
    margin-bottom: 1.5rem;
}

.qe-empty-card,
.qe-centered-card {
    text-align: center;
}

.qe-empty-card .qe-button-row {
    justify-content: center;
}

.qe-auth-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
}

.qe-auth-copy h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.qe-auth-card {
    padding: 2rem;
}

.qe-calculator-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.qe-calculator-shell {
    padding: 1.5rem;
}

.qe-calculator-sidebar {
    display: grid;
    gap: 1rem;
}

.qe-proposal-shell {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.qe-proposal-card {
    padding: 0;
    overflow: hidden;
}

.qe-proposal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--qe-border);
    background: rgba(248, 250, 252, 0.85);
}

.qe-proposal-card-content {
    padding: 1.75rem;
}

.qe-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.qe-article-card {
    padding: 0;
    overflow: hidden;
}

.qe-article-link {
    display: block;
    color: inherit;
}

.qe-article-content {
    padding: 1.5rem;
}

.qe-pagination {
    margin-top: 2rem;
}

.qe-page-header {
    padding-top: 3.75rem;
    padding-bottom: 2.5rem;
}

.qe-estimate-card strong {
    display: block;
    margin-top: 0.75rem;
    font-size: 1.4rem;
    color: var(--qe-navy);
}

.qe-plugin-notice {
    margin-top: 1rem;
}

.qe-dashboard-shell {
    min-height: calc(100vh - 82px);
}

.qe-footer-logo img,
.qe-dashboard-logo img,
.qe-proposal-logo img {
    filter: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .qe-card-grid > *,
    .qe-feature-grid > *,
    .qe-pricing-grid > *,
    .qe-article-grid > * {
        grid-column: span 6;
    }

    .qe-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qe-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .qe-nav-desktop,
    .qe-header-actions {
        display: none;
    }

    .qe-menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }

    .qe-hero-grid,
    .qe-auth-grid,
    .qe-calculator-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .qe-footer-bottom,
    .qe-cta-band,
    .qe-proposal-sheet-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .qe-mockup-metrics,
    .qe-proposal-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .qe-section {
        padding: 3.5rem 0;
    }

    .qe-card-grid > *,
    .qe-feature-grid > *,
    .qe-pricing-grid > *,
    .qe-article-grid > * {
        grid-column: span 12;
    }

    .qe-footer-grid,
    .qe-steps-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .qe-button-row,
    .qe-mobile-nav-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .qe-button,
    .qe-button-secondary,
    .qe-link-button {
        width: 100%;
    }

    .qe-content-card,
    .qe-legal-card,
    .qe-auth-card,
    .qe-proposal-card-content {
        padding: 1.35rem;
    }
}

@media print {
    .qe-header,
    .qe-footer,
    .qe-button,
    .qe-button-secondary,
    .qe-link-button,
    .qe-mobile-nav,
    .qe-menu-toggle,
    .qe-cta-band,
    .qe-calculator-sidebar {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .qe-section,
    .qe-proposal-shell {
        padding: 0;
    }

    .qe-proposal-card,
    .qe-proposal-sheet,
    .qe-card {
        box-shadow: none;
        border-color: #d1d5db;
    }
}

