
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Oswald:wght@600;700&display=swap');

:root {
    --primary: #173D68;
    --primary-dark: #102D4E;
    --accent: #E97825;
    --accent-hover: #D86516;

    --background: #FFFFFF;
    --surface: #F5F7FA;
    --border: #E5E9EF;

    --text: #263445;
    --text-muted: #758195;

    --success: #159B69;
    --danger: #DC4545;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --body-size: 16px;
    --radius: 10px;
    --shadow: 0 4px 18px rgba(20, 40, 65, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
}

h1 { font-size: 38px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p, span, label, input, select, textarea, button {
    font-family: var(--font-body);
}

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

button {
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #FFFFFF;
    color: var(--text);
    font-size: 16px;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 61, 104, 0.08);
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    padding: 12px 22px;
    border-radius: var(--radius);
}

.btn-orange {
    background: var(--accent);
    color: #FFFFFF;
    border: none;
    padding: 12px 22px;
    border-radius: var(--radius);
}

.btn-orange:hover {
    background: var(--accent-hover);
}

.card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.container {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 25px;
}

@media (max-width: 768px) {
    h1 { font-size: 30px; }
    h2 { font-size: 26px; }

    .container {
        padding: 0 16px;
    }

    .card {
        padding: 18px;
    }
}

/* =========================================
   HEADER & NAVIGATION
========================================= */

.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-icon {
    width: 39px;
    height: 39px;
    background: var(--primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
}

.brand-icon svg {
    width: 23px;
    height: 23px;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: 700;
    color: var(--primary);
}

.brand-name span {
    color: var(--accent);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 29px;
}

.main-navigation > a,
.nav-login {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: color .2s ease;
}

.main-navigation > a:hover,
.main-navigation > a.active,
.nav-login:hover {
    color: var(--accent);
}

.nav-account {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    text-decoration: none;
    transition: all .2s ease;
}

.nav-register {
    padding: 11px 19px;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-orange:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 23px;
    height: 2px;
    background: var(--primary);
    border-radius: 5px;
}


/* =========================================
   HERO SECTION
========================================= */

.hero-section {
    padding: 85px 0 100px;
    background:
        radial-gradient(circle at 85% 25%, rgba(233,120,37,.07), transparent 30%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 65px;
}

.hero-label,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.1px;
    margin-bottom: 20px;
}

.hero-label-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.hero-content h1 {
    font-size: clamp(46px, 5vw, 66px);
    line-height: 1.12;
    letter-spacing: -.5px;
    max-width: 650px;
}

.hero-content h1 span {
    color: var(--accent);
    display: block;
}

.hero-description {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
    max-width: 570px;
    margin-top: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.btn-large {
    min-height: 55px;
    padding: 14px 24px;
    border-radius: 9px;
}

.btn-orange {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--primary);
    background: #FFFFFF;
    padding: 13px 23px;
    border-radius: 9px;
    font-weight: 600;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--surface);
}

.button-arrow {
    font-size: 21px;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 28px;
    color: var(--text-muted);
    font-size: 14px;
}

.benefit-check {
    color: var(--success);
    font-weight: 700;
    margin-right: 5px;
}


/* =========================================
   INVOICE PREVIEW
========================================= */

.hero-visual {
    position: relative;
    padding: 15px 10px 35px;
}

.invoice-preview-card {
    background: #FFFFFF;
    border: 1px solid #E9EDF2;
    border-radius: 13px;
    padding: 36px;
    box-shadow: 0 25px 70px rgba(23,61,104,.12);
    transform: rotate(1deg);
}

.preview-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.preview-logo {
    width: 85px;
    height: 38px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-bottom: 10px;
}

.preview-company {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.preview-status {
    background: #FFF2E9;
    color: var(--accent);
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
}

.preview-divider {
    height: 1px;
    background: var(--border);
    margin: 25px 0;
}

.preview-details {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.preview-details > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.preview-details strong,
.preview-table-row strong,
.preview-total strong {
    font-size: 13px;
    color: var(--primary);
}

.preview-details span:not(.preview-label) {
    font-size: 12px;
    color: var(--text-muted);
}

.preview-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .8px;
}

.preview-date-label {
    margin-top: 12px;
}

.preview-table {
    margin-top: 32px;
}

.preview-table-head,
.preview-table-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 0;
}

.preview-table-head {
    background: var(--primary);
    color: #FFFFFF;
    padding: 12px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
}

.preview-table-row {
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

.preview-total {
    width: 60%;
    margin: 22px 0 0 auto;
}

.preview-total > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.preview-grand-total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 15px !important;
    color: var(--primary) !important;
    font-size: 14px !important;
    font-weight: 700;
}

.preview-grand-total strong {
    color: var(--accent);
    font-size: 17px;
}

.preview-footer {
    margin-top: 28px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.floating-note {
    position: absolute;
    bottom: 0;
    left: -15px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.floating-note-icon {
    width: 34px;
    height: 34px;
    background: #E8F7F0;
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.floating-note div {
    display: flex;
    flex-direction: column;
}

.floating-note strong {
    font-size: 13px;
    color: var(--primary);
}

.floating-note div span {
    font-size: 11px;
    color: var(--text-muted);
}


/* =========================================
   SECTION HEADINGS
========================================= */

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}


/* =========================================
   QUICK ACTIONS
========================================= */

.quick-actions-section {
    padding: 85px 0;
    background: #FFFFFF;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.action-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 25px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #FFFFFF;
    transition: all .25s ease;
}

.action-card:hover {
    border-color: rgba(233,120,37,.5);
    box-shadow: 0 12px 30px rgba(23,61,104,.08);
    transform: translateY(-4px);
}

.action-icon {
    width: 53px;
    height: 53px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-icon svg {
    width: 26px;
    height: 26px;
}

.invoice-icon {
    background: #FFF1E7;
    color: var(--accent);
}

.quotation-icon {
    background: #EAF1FA;
    color: var(--primary);
}

.calculator-icon {
    background: #E8F7F0;
    color: var(--success);
}

.action-card-content {
    flex: 1;
}

.action-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.action-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.action-arrow {
    color: var(--accent);
    font-size: 23px;
}


/* =========================================
   FEATURES
========================================= */

.features-section {
    padding: 90px 0;
    background: var(--surface);
}

.features-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 75px;
    align-items: center;
}

.features-intro h2 {
    font-size: 39px;
    margin-bottom: 20px;
}

.features-intro > p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 25px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--accent);
}

.text-link span {
    font-size: 21px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.feature-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 25px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #FFF1E7;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}


/* =========================================
   HOW IT WORKS
========================================= */

.how-section {
    padding: 90px 0;
    background: #FFFFFF;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.step-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 18px;
}

.step-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================
   FINAL CTA
========================================= */

.cta-section {
    padding: 65px 0;
    background: var(--primary);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.cta-eyebrow {
    color: #F7B27F;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.cta-content h2 {
    color: #FFFFFF;
    font-size: 34px;
    margin: 10px 0;
}

.cta-content p {
    color: rgba(255,255,255,.75);
}

.btn-white {
    background: #FFFFFF;
    color: var(--primary);
    border-radius: 9px;
    font-weight: 700;
    flex-shrink: 0;
}

.btn-white:hover {
    background: #FFF1E7;
    transform: translateY(-2px);
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    background: #102D4E;
    color: #FFFFFF;
    padding: 65px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-logo .brand-name {
    color: #FFFFFF;
}

.footer-brand > p {
    max-width: 300px;
    color: rgba(255,255,255,.65);
    font-size: 14px;
    margin-top: 20px;
    line-height: 1.9;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-links h4 {
    color: #FFFFFF;
    font-size: 19px;
    margin-bottom: 7px;
}

.footer-links a {
    color: rgba(255,255,255,.65);
    font-size: 14px;
    transition: color .2s ease;
}

.footer-links a:hover {
    color: #F7B27F;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255,255,255,.55);
    font-size: 13px;
}


/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 1050px) {

    .hero-grid {
        gap: 35px;
    }

    .hero-content h1 {
        font-size: 49px;
    }

    .features-layout {
        gap: 35px;
    }

    .main-navigation {
        gap: 17px;
    }

    .footer-main {
        gap: 30px;
    }
}

@media (max-width: 850px) {

    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        border-bottom: 1px solid var(--border);
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        box-shadow: var(--shadow);
    }

    .main-navigation.show {
        display: flex;
    }

    .nav-account {
        margin: 0;
        padding-top: 15px;
        border-top: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-content h1,
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-benefits {
        justify-content: center;
    }

    .hero-visual {
        max-width: 600px;
        width: 100%;
        margin: 20px auto 0;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .features-layout {
        grid-template-columns: 1fr;
    }

    .features-intro {
        text-align: center;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 550px) {

    .hero-section {
        padding: 55px 0 70px;
    }

    .hero-content h1 {
        font-size: 41px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-benefits {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .invoice-preview-card {
        padding: 22px 17px;
    }

    .floating-note {
        left: 0;
    }

    .preview-total {
        width: 80%;
    }

    .section-heading h2,
    .features-intro h2 {
        font-size: 29px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 20px 0;
    }

    .cta-content h2 {
        font-size: 29px;
    }
}

/* =========================================
   INVOICE BUILDER
========================================= */

.invoice-builder-section {
    background: #F5F7FA;
    padding: 45px 0 80px;
    min-height: 80vh;
}

.builder-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 35px;
}

.builder-heading h1 {
    font-size: 38px;
    margin-bottom: 8px;
}

.builder-heading p {
    color: var(--text-muted);
}

.back-link {
    font-size: 14px;
    font-weight: 600;
    padding-bottom: 8px;
}

.builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
    align-items: start;
    gap: 25px;
}

.builder-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.form-section {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 27px;
    box-shadow: var(--shadow);
}

.form-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
}

.form-step {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #FFF1E7;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.form-section-heading h2 {
    font-size: 21px;
    margin-bottom: 3px;
}

.form-section-heading p {
    font-size: 13px;
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.form-field label {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    font-size: 15px;
    min-width: 0;
}

.form-field textarea {
    resize: vertical;
}

.full-width {
    grid-column: 1 / -1;
}

.invoice-items-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 120px 35px;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.invoice-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 120px 35px;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
}

.invoice-item-row .form-field label {
    display: none;
}

.invoice-item-row input {
    padding: 11px 9px;
    font-size: 14px;
}

.remove-item {
    width: 35px;
    height: 43px;
    background: #FFF0F0;
    border: none;
    border-radius: 7px;
    color: var(--danger);
    font-size: 22px;
}

.remove-item:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.add-item-btn {
    background: #FFF5EF;
    border: 1px dashed #E9A77D;
    color: var(--accent);
    border-radius: 8px;
    padding: 11px 17px;
    font-size: 14px;
    font-weight: 700;
}

.add-item-btn span {
    font-size: 20px;
    margin-right: 5px;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 23px;
}

.settings-row strong {
    font-size: 15px;
}

.settings-row p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #CDD4DE;
    border-radius: 30px;
    cursor: pointer;
    transition: .2s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: .2s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.tax-fields[hidden],
.preview-total [hidden] {
    display: none;
}

.discount-fields {
    margin-top: 18px;
}


/* =========================================
   LIVE INVOICE PREVIEW
========================================= */

.invoice-preview-panel {
    position: sticky;
    top: 105px;
    min-width: 0;
}

.preview-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.preview-panel-heading .section-eyebrow {
    margin-bottom: 5px;
}

.preview-panel-heading h2 {
    font-size: 24px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
}

.live-indicator span {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.invoice-paper {
    background: #FFFFFF;
    padding: 27px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(23,61,104,.07);
    border-radius: 5px;
    color: #263445;
    font-family: Arial, sans-serif;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.paper-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.paper-header h2 {
    font-family: Arial, sans-serif;
    font-size: 17px;
    color: #173D68;
    margin-bottom: 8px;
}

.paper-header p,
.paper-details p,
.paper-payment p,
.paper-notes p {
    font-size: 10px;
    color: #758195;
    line-height: 1.7;
}

.paper-invoice-title {
    text-align: right;
    flex-shrink: 0;
}

.paper-invoice-title h1 {
    font-family: Arial, sans-serif;
    color: #E97825;
    font-size: 25px;
    margin-bottom: 5px;
}

.paper-invoice-title span {
    font-size: 11px;
    font-weight: 700;
    color: #173D68;
}

.paper-line {
    height: 2px;
    background: #173D68;
    margin: 20px 0;
}

.paper-details {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
}

.paper-details strong {
    display: block;
    font-size: 11px;
    color: #173D68;
    margin: 7px 0 4px;
}

.paper-label {
    display: block;
    color: #758195;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .6px;
}

.paper-date-details {
    display: flex;
    flex-direction: column;
    gap: 13px;
    text-align: right;
}

.paper-items {
    margin-top: 25px;
}

.paper-table-header,
.paper-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 35px 65px 75px;
    gap: 6px;
    align-items: center;
}

.paper-table-header {
    padding: 10px 8px;
    background: #173D68;
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
}

.paper-table-header span:not(:first-child),
.paper-item span:not(:first-child),
.paper-item strong {
    text-align: right;
}

.paper-item {
    padding: 12px 8px;
    border-bottom: 1px solid #E5E9EF;
    font-size: 9px;
}

.paper-item strong {
    color: #173D68;
}

.paper-totals {
    width: 75%;
    margin: 20px 0 0 auto;
}

.paper-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    font-size: 10px;
}

.paper-totals strong {
    color: #173D68;
}

.paper-grand-total {
    border-top: 1px solid #DCE2EA;
    margin-top: 7px;
    padding-top: 12px !important;
    font-size: 12px !important;
    font-weight: 700;
}

.paper-grand-total strong {
    color: #E97825;
    font-size: 15px;
}

.paper-payment,
.paper-notes {
    border-top: 1px solid #E5E9EF;
    margin-top: 22px;
    padding-top: 15px;
}

.paper-payment > strong,
.paper-notes > strong {
    display: block;
    color: #173D68;
    font-size: 10px;
    margin-bottom: 8px;
}

.paper-thank-you {
    border-top: 1px solid #E5E9EF;
    margin-top: 20px;
    padding-top: 14px;
    text-align: center;
    color: #758195;
    font-size: 10px;
    font-style: italic;
}

.preview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.preview-action-btn {
    min-height: 48px;
    border-radius: 8px;
    font-size: 14px;
}

.preview-actions p {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}


/* =========================================
   INVOICE BUILDER RESPONSIVE
========================================= */

@media (max-width: 1050px) {

    .builder-layout {
        grid-template-columns: minmax(0, 1fr) minmax(340px, .85fr);
        gap: 16px;
    }

    .form-section {
        padding: 20px;
    }

    .invoice-item-row,
    .invoice-items-header {
        grid-template-columns: minmax(0, 1fr) 65px 90px 30px;
        gap: 6px;
    }

    .remove-item {
        width: 30px;
    }

    .invoice-paper {
        padding: 19px;
    }

}

@media (max-width: 850px) {

    .builder-layout {
        grid-template-columns: 1fr;
    }

    .invoice-preview-panel {
        position: static;
        max-width: 650px;
        width: 100%;
        margin: 0 auto;
    }

    .builder-heading {
        align-items: flex-start;
    }

}

@media (max-width: 550px) {

    .invoice-builder-section {
        padding: 30px 0 55px;
    }

    .builder-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .builder-heading h1 {
        font-size: 31px;
    }

    .form-section {
        padding: 17px;
    }

    .form-section-heading {
        align-items: flex-start;
    }

    .form-section-heading h2 {
        font-size: 19px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .invoice-items-header {
        display: none;
    }

    .invoice-item-row {
        grid-template-columns: minmax(0, 1fr) 65px 85px 30px;
    }

    .invoice-item-row .form-field label {
        display: block;
        font-size: 11px;
    }

    .invoice-item-row input {
        font-size: 13px;
    }

    .invoice-paper {
        padding: 15px 11px;
    }

    .paper-table-header,
    .paper-item {
        grid-template-columns: minmax(0, 1fr) 27px 52px 60px;
        gap: 3px;
    }

    .paper-item {
        font-size: 8px;
    }

    .preview-actions {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   INVOICE PRINT / PDF OUTPUT
========================================= */

@media print {

    @page {
        size: A4;
        margin: 15mm;
    }

    body {
        background: #FFFFFF !important;
        font-family: Arial, sans-serif;
    }

    .site-header,
    .site-footer,
    .builder-heading,
    .builder-form,
    .preview-panel-heading,
    .preview-actions {
        display: none !important;
    }

    .invoice-builder-section {
        padding: 0 !important;
        background: #FFFFFF !important;
    }

    .invoice-builder-section > .container {
        max-width: none;
        padding: 0;
    }

    .builder-layout {
        display: block;
    }

    .invoice-preview-panel {
        position: static;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .invoice-paper {
        width: 100%;
        padding: 0;
        border: none;
        box-shadow: none;
        border-radius: 0;
        font-size: 12px;
        overflow: visible;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .paper-header,
    .paper-details,
    .paper-items,
    .paper-totals,
    .paper-payment,
    .paper-notes,
    .paper-thank-you {
        break-inside: avoid;
    }

    .paper-table-header {
        background: #173D68 !important;
        color: #FFFFFF !important;
    }

    .paper-grand-total strong {
        color: #E97825 !important;
    }

}


/* =========================================
   QUICKINVOICE - VAT CALCULATOR
========================================= */

.vat-calculator-section {
    padding: 65px 20px 80px;
    background: #ffffff;
}

.vat-calculator-container {
    max-width: 1100px;
    margin: 0 auto;
}

.vat-calculator-heading {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.vat-calculator-heading .section-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #E97825;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.vat-calculator-heading h1 {
    margin: 0 0 14px;
    color: #173D68;
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 700;
}

.vat-calculator-heading p {
    margin: 0;
    color: #758195;
    font-size: 16px;
    line-height: 1.7;
}

.vat-calculator-card {
    max-width: 760px;
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #E5E9EF;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(23, 61, 104, 0.08);
}

.vat-calculator-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #F5F7FA;
    border-bottom: 1px solid #E5E9EF;
}

.vat-tab {
    padding: 20px 15px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #758195;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vat-tab span {
    margin-right: 7px;
    font-size: 20px;
}

.vat-tab:hover {
    color: #173D68;
}

.vat-tab.active {
    color: #173D68;
    background: #ffffff;
    border-bottom-color: #E97825;
}

.vat-calculator-content {
    padding: 35px;
}

.vat-mode-description {
    margin-bottom: 25px;
    color: #758195;
    font-size: 15px;
}

.vat-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.vat-form-field label {
    display: block;
    margin-bottom: 9px;
    color: #263445;
    font-size: 14px;
    font-weight: 700;
}

.vat-input-wrapper {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 15px;
    background: #ffffff;
    border: 1px solid #DCE2EA;
    border-radius: 7px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vat-input-wrapper:focus-within {
    border-color: #173D68;
    box-shadow: 0 0 0 3px rgba(23, 61, 104, 0.08);
}

.vat-input-wrapper span {
    color: #758195;
    font-size: 15px;
    font-weight: 700;
}

.vat-input-wrapper input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 8px;
    border: none;
    outline: none;
    background: transparent;
    color: #263445;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
}

.vat-input-wrapper input::-webkit-inner-spin-button,
.vat-input-wrapper input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.vat-input-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

.vat-calculator-results {
    margin-top: 32px;
    padding: 22px;
    background: #F5F7FA;
    border: 1px solid #E5E9EF;
    border-radius: 9px;
}

.vat-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 13px 0;
    color: #758195;
    font-size: 14px;
    border-bottom: 1px solid #E5E9EF;
}

.vat-result-row strong {
    color: #263445;
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

.vat-result-row.vat-total-row {
    margin-top: 5px;
    padding-top: 19px;
    border-bottom: none;
}

.vat-total-row span {
    color: #173D68;
    font-size: 15px;
    font-weight: 700;
}

.vat-total-row strong {
    color: #E97825;
    font-size: 25px;
}

.vat-calculator-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.vat-calculate-btn,
.vat-clear-btn {
    min-height: 49px;
    padding: 0 25px;
    border-radius: 7px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vat-calculate-btn {
    flex: 1;
    border: 1px solid #E97825;
    background: #E97825;
    color: #ffffff;
}

.vat-calculate-btn:hover {
    border-color: #D86516;
    background: #D86516;
}

.vat-clear-btn {
    border: 1px solid #DCE2EA;
    background: #ffffff;
    color: #173D68;
}

.vat-clear-btn:hover {
    background: #F5F7FA;
}

.vat-calculator-note {
    margin: 22px 0 0;
    color: #758195;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.vat-information-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 35px;
}

.vat-information-card {
    padding: 27px;
    background: #F5F7FA;
    border: 1px solid #E5E9EF;
    border-radius: 10px;
}

.vat-information-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #173D68;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.vat-information-card h3 {
    margin: 0 0 10px;
    color: #173D68;
    font-family: 'Oswald', sans-serif;
    font-size: 21px;
}

.vat-information-card p {
    margin: 0 0 16px;
    color: #758195;
    font-size: 14px;
    line-height: 1.7;
}

.vat-example {
    padding: 12px;
    background: #ffffff;
    border: 1px solid #E5E9EF;
    border-radius: 6px;
    color: #173D68;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 650px) {
    .vat-calculator-section {
        padding: 45px 15px 60px;
    }

    .vat-calculator-heading h1 {
        font-size: 34px;
    }

    .vat-calculator-content {
        padding: 23px 18px;
    }

    .vat-input-grid,
    .vat-information-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .vat-calculator-actions {
        flex-direction: column;
    }

    .vat-clear-btn {
        min-height: 46px;
    }

    .vat-result-row {
        font-size: 13px;
    }

    .vat-total-row strong {
        font-size: 21px;
    }
}


/* =========================================================
   QUICKINVOICE - STRONG BLUE & ORANGE HOMEPAGE DESIGN
========================================================= */

.qi-home {
    --qi-navy: #12345B;
    --qi-dark: #0B2543;
    --qi-blue: #1D5791;
    --qi-orange: #F58220;
    --qi-orange-hover: #DB6810;
    --qi-light-blue: #EAF3FC;
    --qi-text: #253B55;
}

/* HERO - DEEP BLUE BACKGROUND */

.qi-hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(245,130,32,.22), transparent 30%),
        radial-gradient(circle at 5% 95%, rgba(65,137,205,.25), transparent 35%),
        linear-gradient(125deg, #0B2543 0%, #123D6B 55%, #1D5791 100%);
    padding: 100px 0 110px;
}

.qi-hero::before {
    border-color: rgba(255,255,255,.09);
    width: 650px;
    height: 650px;
}

.qi-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: 42%;
    bottom: -140px;
    border-radius: 50%;
    background: rgba(245,130,32,.12);
    filter: blur(50px);
}

.qi-eyebrow {
    background: rgba(245,130,32,.16);
    color: #FFB36F;
    border: 1px solid rgba(245,130,32,.35);
}

.qi-eyebrow-dot {
    background: #FF922F;
    box-shadow: 0 0 0 5px rgba(245,130,32,.2);
}

.qi-hero h1 {
    color: #FFFFFF;
}

.qi-hero h1 span {
    color: #FF963F;
}

.qi-hero-description {
    color: rgba(255,255,255,.78);
}

.qi-btn-primary {
    background: #F58220;
    box-shadow: 0 10px 25px rgba(245,130,32,.3);
}

.qi-btn-primary:hover {
    background: #FF963F;
}

.qi-btn-secondary {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.35);
    color: #FFFFFF;
}

.qi-btn-secondary:hover {
    background: #FFFFFF;
    color: #12345B;
    border-color: #FFFFFF;
}

.qi-hero-benefits > div {
    color: rgba(255,255,255,.85);
}

.qi-check {
    color: #FFFFFF;
    background: #258A64;
}

.qi-hero-trust {
    color: rgba(255,255,255,.58);
}

.qi-trust-line {
    background: #F58220;
}

/* INVOICE PREVIEW */

.qi-invoice-card {
    border: 3px solid rgba(255,255,255,.85);
    box-shadow: 0 35px 80px rgba(0,0,0,.3);
}

.qi-invoice-divider {
    height: 4px;
    background: linear-gradient(90deg,#F58220,#FFB15F);
}

.qi-invoice-label {
    background: #123D6B;
    color: #FFFFFF;
}

.qi-invoice-grand-total {
    background: #EAF3FC !important;
}

.qi-invoice-grand-total strong {
    color: #F58220;
}

.qi-floating-label {
    border: 1px solid rgba(245,130,32,.3);
}

.qi-floating-top {
    border-left: 4px solid #F58220;
}

.qi-floating-bottom {
    border-left: 4px solid #1D5791;
}

/* SECTION HEADINGS */

.qi-section-eyebrow {
    color: #E9781B;
}

.qi-section-heading h2,
.qi-features-intro h2 {
    color: #12345B;
}

.qi-section-heading {
    position: relative;
}

.qi-heading-center::after {
    content: "";
    display: block;
    width: 55px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 5px;
    background: #F58220;
}

/* QUICK ACTIONS */

.qi-actions-section {
    background: #FFFFFF;
    padding: 100px 0;
}

.qi-action-card {
    border: 1px solid #DCE8F4;
    border-bottom: 4px solid #1D5791;
    box-shadow: 0 10px 30px rgba(18,52,91,.07);
}

.qi-action-card:nth-child(2) {
    border-bottom-color: #F58220;
}

.qi-action-card:nth-child(3) {
    border-bottom-color: #258A64;
}

.qi-action-card:hover {
    border-color: #F58220;
    border-bottom-color: #F58220;
    box-shadow: 0 18px 40px rgba(18,52,91,.13);
}

.qi-action-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
}

.qi-action-blue {
    color: #FFFFFF;
    background: linear-gradient(135deg,#174A7D,#347FC0);
}

.qi-action-orange {
    color: #FFFFFF;
    background: linear-gradient(135deg,#E76D13,#FF9A42);
}

.qi-action-green {
    color: #FFFFFF;
    background: linear-gradient(135deg,#19734D,#36A477);
}

.qi-action-icon svg {
    width: 29px;
    height: 29px;
    stroke-width: 2;
}

.qi-action-text h3 {
    color: #12345B;
    font-size: 17px;
}

.qi-card-arrow {
    color: #F58220;
    font-size: 24px;
}

/* FEATURES - BLUE SECTION */

.qi-features-section {
    position: relative;
    background:
        radial-gradient(circle at 95% 5%, rgba(245,130,32,.12), transparent 30%),
        linear-gradient(125deg,#102F52,#174A7D);
    padding: 110px 0;
}

.qi-features-intro h2 {
    color: #FFFFFF;
}

.qi-features-intro > p {
    color: rgba(255,255,255,.73);
}

.qi-features-section .qi-section-eyebrow {
    color: #FFAC65;
}

.qi-text-link {
    color: #FF9A42;
}

.qi-text-link:hover {
    color: #FFC18E;
}

.qi-feature-card {
    background: #FFFFFF;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 13px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.qi-feature-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0,0,0,.2);
}

.qi-feature-icon {
    width: 57px;
    height: 57px;
    border-radius: 14px;
}

.qi-feature-blue {
    background: #E5F0FC;
    color: #1D5791;
}

.qi-feature-orange {
    background: #FFF0E3;
    color: #E9781B;
}

.qi-feature-green {
    background: #E3F5EC;
    color: #218455;
}

.qi-feature-purple {
    background: #EEEAFE;
    color: #7559B8;
}

.qi-feature-card h3 {
    color: #12345B;
}

.qi-feature-card p {
    color: #718197;
}

/* HOW IT WORKS */

.qi-how-section {
    background: #F3F7FC;
    padding: 105px 0;
}

.qi-step-card {
    border: 1px solid #DCE7F2;
    border-top: 4px solid #1D5791;
    box-shadow: 0 8px 25px rgba(18,52,91,.045);
}

.qi-step-card:nth-child(2) {
    border-top-color: #F58220;
}

.qi-step-card:nth-child(3) {
    border-top-color: #258A64;
}

.qi-step-icon {
    width: 75px;
    height: 75px;
    color: #FFFFFF;
    background: linear-gradient(135deg,#174A7D,#347FC0);
    border-radius: 20px;
    box-shadow: 0 9px 20px rgba(29,87,145,.2);
}

.qi-step-card:nth-child(2) .qi-step-icon {
    background: linear-gradient(135deg,#E76D13,#FF9A42);
    box-shadow: 0 9px 20px rgba(245,130,32,.2);
}

.qi-step-card:nth-child(3) .qi-step-icon {
    background: linear-gradient(135deg,#19734D,#36A477);
}

.qi-step-number {
    color: #E1EAF4;
}

/* FINAL CTA */

.qi-cta-section {
    padding: 30px 0 100px;
    background: #F3F7FC;
}

.qi-cta-card {
    background:
        radial-gradient(circle at 90% 20%,rgba(245,130,32,.24),transparent 28%),
        linear-gradient(115deg,#0B2543 0%,#174A7D 100%);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 25px 55px rgba(18,52,91,.18);
}

.qi-cta-eyebrow {
    color: #FFB16E;
}

.qi-cta-content h2 {
    color: #FFFFFF;
}

.qi-btn-cta {
    background: #F58220;
    box-shadow: 0 8px 22px rgba(245,130,32,.25);
}

.qi-btn-cta:hover {
    background: #FF963F;
}

.qi-cta-document {
    border-top: 5px solid #F58220;
}

.qi-cta-document-logo {
    color: #12345B;
}

/* RESPONSIVE ADJUSTMENTS */

@media(max-width:850px) {
    .qi-hero {
        padding: 70px 0 85px;
    }

    .qi-features-section {
        padding: 75px 0;
    }

    .qi-cta-card {
        background:
            radial-gradient(circle at 100% 0%,rgba(245,130,32,.2),transparent 35%),
            linear-gradient(115deg,#0B2543,#174A7D);
    }
}

@media(max-width:600px) {
    .qi-hero h1 {
        color: #FFFFFF;
    }

    .qi-hero {
        padding: 55px 0 65px;
    }

    .qi-actions-section,
    .qi-how-section {
        padding: 70px 0;
    }

    .qi-features-section {
        padding: 75px 0;
    }

    .qi-cta-section {
        background: #F3F7FC;
    }
}

/* =========================================================
   QUICKINVOICE - COMPLETE HOMEPAGE LAYOUT FIX
   Append this BELOW all existing CSS
========================================================= */

/* HOMEPAGE FOUNDATION */

.qi-home {
    --qi-navy: #12345B;
    --qi-dark: #0B2543;
    --qi-blue: #1D5791;
    --qi-orange: #F58220;
    --qi-light: #F3F7FC;
    width: 100%;
    overflow: hidden;
}

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

.qi-home-container {
    width: 100%;
    max-width: 1450px;
    padding: 0 30px;
    margin: 0 auto;
}

.qi-home svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* HERO SECTION */

.qi-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 115px;
    isolation: isolate;
}

.qi-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -300px;
    right: -180px;
    width: 700px;
    height: 700px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    pointer-events: none;
}

.qi-hero::after {
    pointer-events: none;
    z-index: -1;
}

.qi-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 65px;
}

.qi-hero-content {
    position: relative;
    z-index: 2;
}

.qi-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin-bottom: 25px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.1px;
}

.qi-eyebrow-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
}

.qi-hero h1 {
    max-width: 680px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(48px, 5.2vw, 72px);
    line-height: 1.12;
    letter-spacing: -.7px;
}

.qi-hero h1 span {
    display: block;
}

.qi-hero-description {
    max-width: 590px;
    margin: 25px 0 0;
    font-size: 17px;
    line-height: 1.85;
}

.qi-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.qi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 54px;
    padding: 14px 23px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
}

.qi-btn-primary {
    color: #FFFFFF;
    border: 1px solid var(--qi-orange);
}

.qi-btn-primary:hover {
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 13px 28px rgba(245,130,32,.28);
}

.qi-btn-secondary {
    color: #FFFFFF;
}

.qi-btn-secondary:hover {
    transform: translateY(-3px);
}

.qi-btn-arrow {
    font-size: 22px;
    line-height: 1;
}

.qi-hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.qi-hero-benefits > div {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 500;
}

.qi-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.qi-hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 35px;
    font-size: 12px;
}

.qi-trust-line {
    width: 35px;
    height: 3px;
    border-radius: 5px;
}

/* HERO INVOICE PREVIEW */

.qi-hero-visual {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 30px 12px 35px;
}

.qi-visual-glow {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: rgba(245,130,32,.17);
    filter: blur(85px);
    border-radius: 50%;
    pointer-events: none;
}

.qi-invoice-card {
    position: relative;
    z-index: 2;
    padding: 30px;
    background: #FFFFFF;
    border-radius: 14px;
    color: #263445;
    box-shadow: 0 35px 80px rgba(0,0,0,.3);
    transform: rotate(1deg);
}

.qi-invoice-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.qi-invoice-brand {
    color: #12345B;
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: 700;
}

.qi-invoice-brand span {
    color: #F58220;
}

.qi-invoice-subtitle {
    margin-top: 3px;
    color: #758195;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.qi-invoice-label {
    padding: 9px 15px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.qi-invoice-divider {
    width: 100%;
    margin: 23px 0;
}

.qi-invoice-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.qi-invoice-details > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.qi-invoice-details small,
.qi-invoice-meta small {
    color: #8995A5;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
}

.qi-invoice-details strong,
.qi-invoice-meta strong {
    color: #173D68;
    font-size: 12px;
}

.qi-invoice-details span {
    color: #758195;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.qi-invoice-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
    padding: 15px 0;
    border-top: 1px solid #E5E9EF;
    border-bottom: 1px solid #E5E9EF;
}

.qi-invoice-meta > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qi-invoice-meta strong {
    font-size: 10px;
}

.qi-invoice-table {
    margin-top: 22px;
}

.qi-invoice-table-head,
.qi-invoice-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 35px 85px 90px;
    gap: 8px;
    align-items: center;
}

.qi-invoice-table-head {
    padding: 12px 10px;
    border-radius: 4px;
    background: #12345B;
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
}

.qi-invoice-table-row {
    padding: 13px 10px;
    border-bottom: 1px solid #E5E9EF;
    color: #758195;
    font-size: 10px;
}

.qi-invoice-table-row strong {
    color: #173D68;
    font-size: 10px;
}

.qi-invoice-table-head span:not(:first-child),
.qi-invoice-table-row span,
.qi-invoice-table-row strong:last-child {
    text-align: right;
}

.qi-invoice-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
}

.qi-invoice-note {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.qi-invoice-note small {
    color: #8995A5;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
}

.qi-invoice-note span {
    color: #758195;
    font-size: 10px;
}

.qi-invoice-totals {
    width: 48%;
    min-width: 175px;
}

.qi-invoice-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    color: #758195;
    font-size: 10px;
}

.qi-invoice-totals strong {
    color: #173D68;
}

.qi-invoice-grand-total {
    margin-top: 7px;
    padding: 12px !important;
    border-radius: 5px;
}

.qi-invoice-grand-total span {
    color: #12345B;
    font-weight: 700;
}

.qi-invoice-grand-total strong {
    font-size: 14px;
}

.qi-invoice-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
    padding-top: 13px;
    border-top: 1px solid #E5E9EF;
    color: #8995A5;
    font-size: 9px;
}

.qi-floating-label {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 17px;
    border-radius: 9px;
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.qi-floating-top {
    top: 0;
    right: -10px;
}

.qi-floating-bottom {
    bottom: 0;
    left: -12px;
}

.qi-floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
}

.qi-icon-green {
    background: #E3F5EC;
    color: #218455;
}

.qi-icon-orange {
    background: #FFF0E3;
    color: #E9781B;
}

.qi-floating-label > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.qi-floating-label strong {
    color: #12345B;
    font-size: 11px;
}

.qi-floating-label small {
    color: #758195;
    font-size: 10px;
}

/* SECTION HEADINGS */

.qi-section-heading {
    margin: 0 auto 50px;
    max-width: 720px;
}

.qi-heading-center {
    text-align: center;
}

.qi-section-eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.qi-section-heading h2,
.qi-features-intro h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.2;
}

.qi-section-heading p {
    margin: 14px auto 0;
    color: #758195;
    font-size: 15px;
    line-height: 1.8;
}

/* QUICK ACTION CARDS */

.qi-actions-section {
    position: relative;
}

.qi-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.qi-action-card {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    min-width: 0;
    padding: 28px 23px;
    border-radius: 12px;
    background: #FFFFFF;
    text-decoration: none;
    transition: all .25s ease;
}

.qi-action-card:hover {
    transform: translateY(-6px);
}

.qi-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.qi-action-text {
    flex: 1;
    min-width: 0;
}

.qi-action-text h3 {
    margin: 2px 0 8px;
    color: #12345B;
    font-family: var(--font-heading);
    font-size: 21px;
}

.qi-action-text p {
    margin: 0;
    color: #758195;
    font-size: 13px;
    line-height: 1.7;
}

.qi-card-arrow {
    flex-shrink: 0;
    align-self: center;
    transition: transform .2s ease;
}

.qi-action-card:hover .qi-card-arrow {
    transform: translateX(5px);
}

/* FEATURES SECTION */

.qi-features-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 75px;
}

.qi-features-intro h2 {
    font-size: clamp(34px, 3.5vw, 46px);
}

.qi-features-intro > p {
    margin: 22px 0 25px;
    font-size: 15px;
    line-height: 1.9;
}

.qi-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: gap .2s ease;
}

.qi-text-link:hover {
    gap: 16px;
}

.qi-text-link span {
    font-size: 22px;
}

.qi-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px;
}

.qi-feature-card {
    min-width: 0;
    padding: 27px 24px;
    border-radius: 12px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.qi-feature-card:hover {
    transform: translateY(-5px);
}

.qi-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 20px;
    padding: 14px;
}

.qi-feature-icon svg {
    width: 27px;
    height: 27px;
}

.qi-feature-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 21px;
}

.qi-feature-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
}

/* HOW IT WORKS */

.qi-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.qi-step-card {
    position: relative;
    min-width: 0;
    padding: 32px 28px;
    border-radius: 12px;
    background: #FFFFFF;
    transition: transform .25s ease, box-shadow .25s ease;
}

.qi-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(18,52,91,.1);
}

.qi-step-number {
    position: absolute;
    top: 18px;
    right: 22px;
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
}

.qi-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    padding: 19px;
    margin-bottom: 24px;
}

.qi-step-icon svg {
    width: 32px;
    height: 32px;
}

.qi-step-card h3 {
    margin: 0 0 11px;
    color: #12345B;
    font-family: var(--font-heading);
    font-size: 22px;
}

.qi-step-card p {
    margin: 0;
    color: #758195;
    font-size: 14px;
    line-height: 1.8;
}

/* FINAL CALL TO ACTION */

.qi-cta-section {
    position: relative;
}

.qi-cta-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    min-height: 360px;
    padding: 65px 75px;
    overflow: hidden;
}

.qi-cta-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.qi-cta-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.qi-cta-content h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(32px, 3.5vw, 46px);
    line-height: 1.2;
}

.qi-cta-content p {
    max-width: 570px;
    margin: 16px 0 25px;
    font-size: 15px;
    line-height: 1.8;
}

.qi-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
}

.qi-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 13px 23px;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
}

.qi-btn-cta:hover {
    color: #FFFFFF;
    transform: translateY(-3px);
}

.qi-btn-cta span {
    font-size: 21px;
}

.qi-cta-secondary-link {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.qi-cta-secondary-link:hover {
    text-decoration: underline;
}

.qi-cta-symbol {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 250px;
    flex-shrink: 0;
}

.qi-cta-document {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    width: 155px;
    height: 205px;
    padding: 22px;
    background: #FFFFFF;
    border-radius: 9px;
    box-shadow: 0 20px 45px rgba(0,0,0,.25);
    transform: rotate(7deg);
}

.qi-cta-document-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
}

.qi-cta-document-line {
    height: 5px;
    border-radius: 5px;
    background: #DCE5EF;
}

.qi-line-long {
    width: 100%;
}

.qi-line-medium {
    width: 75%;
}

.qi-line-short {
    width: 50%;
}

.qi-cta-document-total {
    width: 100%;
    height: 25px;
    margin-top: auto;
    border-radius: 4px;
    background: #FFF0E3;
}

.qi-cta-decoration {
    position: absolute;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    pointer-events: none;
}

.qi-cta-decoration-one {
    top: -180px;
    right: 100px;
    width: 420px;
    height: 420px;
}

.qi-cta-decoration-two {
    right: -150px;
    bottom: -260px;
    width: 500px;
    height: 500px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 1100px) {
    .qi-hero-grid {
        gap: 35px;
    }

    .qi-hero h1 {
        font-size: 52px;
    }

    .qi-invoice-card {
        padding: 22px;
    }

    .qi-features-layout {
        gap: 40px;
    }

    .qi-cta-card {
        padding: 55px 45px;
    }
}

@media (max-width: 850px) {
    .qi-home-container {
        padding: 0 22px;
    }

    .qi-hero {
        padding: 75px 0 90px;
    }

    .qi-hero-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .qi-hero-content {
        max-width: 700px;
        margin: 0 auto;
        text-align: center;
    }

    .qi-hero h1,
    .qi-hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .qi-hero-buttons,
    .qi-hero-benefits,
    .qi-hero-trust {
        justify-content: center;
    }

    .qi-hero-visual {
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
    }

    .qi-action-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin: 0 auto;
    }

    .qi-features-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .qi-features-intro {
        max-width: 650px;
        margin: 0 auto;
        text-align: center;
    }

    .qi-features-grid {
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
    }

    .qi-steps-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin: 0 auto;
    }

    .qi-cta-card {
        padding: 50px 35px;
    }

    .qi-cta-symbol {
        width: 160px;
    }
}

@media (max-width: 600px) {
    .qi-home-container {
        padding: 0 17px;
    }

    .qi-hero {
        padding: 55px 0 70px;
    }

    .qi-hero h1 {
        font-size: 43px;
    }

    .qi-hero-description {
        font-size: 15px;
    }

    .qi-hero-buttons {
        flex-direction: column;
    }

    .qi-hero-buttons .qi-btn {
        width: 100%;
    }

    .qi-hero-benefits {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .qi-hero-trust {
        font-size: 11px;
    }

    .qi-hero-visual {
        padding: 30px 0 35px;
    }

    .qi-invoice-card {
        padding: 18px 13px;
        transform: none;
    }

    .qi-invoice-brand {
        font-size: 22px;
    }

    .qi-invoice-details {
        gap: 10px;
    }

    .qi-invoice-details strong {
        font-size: 10px;
    }

    .qi-invoice-details span {
        font-size: 9px;
    }

    .qi-invoice-meta {
        gap: 5px;
    }

    .qi-invoice-meta small {
        font-size: 7px;
    }

    .qi-invoice-meta strong {
        font-size: 9px;
    }

    .qi-invoice-table-head,
    .qi-invoice-table-row {
        grid-template-columns: minmax(0, 1fr) 23px 57px 66px;
        gap: 4px;
    }

    .qi-invoice-table-head {
        padding: 10px 6px;
        font-size: 7px;
    }

    .qi-invoice-table-row {
        padding: 11px 6px;
        font-size: 8px;
    }

    .qi-invoice-table-row strong {
        font-size: 8px;
    }

    .qi-invoice-bottom {
        flex-direction: column;
    }

    .qi-invoice-totals {
        width: 100%;
    }

    .qi-floating-label {
        padding: 9px 11px;
    }

    .qi-floating-top {
        right: -3px;
    }

    .qi-floating-bottom {
        left: -3px;
    }

    .qi-floating-label strong {
        font-size: 9px;
    }

    .qi-floating-label small {
        font-size: 8px;
    }

    .qi-floating-icon {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .qi-actions-section,
    .qi-how-section {
        padding: 70px 0;
    }

    .qi-features-section {
        padding: 75px 0;
    }

    .qi-section-heading {
        margin-bottom: 35px;
    }

    .qi-section-heading h2,
    .qi-features-intro h2 {
        font-size: 31px;
    }

    .qi-features-grid {
        grid-template-columns: 1fr;
    }

    .qi-action-card {
        padding: 22px 17px;
    }

    .qi-action-icon {
        width: 50px;
        height: 50px;
    }

    .qi-action-text h3 {
        font-size: 19px;
    }

    .qi-step-card {
        padding: 27px 22px;
    }

    .qi-cta-section {
        padding: 20px 0 65px;
    }

    .qi-cta-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 40px 25px;
    }

    .qi-cta-content h2 {
        font-size: 32px;
    }

    .qi-cta-content p {
        font-size: 14px;
    }

    .qi-cta-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 17px;
    }

    .qi-cta-symbol {
        align-self: center;
        height: 180px;
    }

    .qi-cta-document {
        width: 125px;
        height: 165px;
        padding: 17px;
        gap: 12px;
    }
}

