@font-face {
    font-family: "XW_Zar_Bd_0";
    src: url("../fonts/XW_Zar_Bd_0.ttf") format("truetype");
    font-display: swap;
}

:root {
    --hd-ink: #14211f;
    --hd-muted: #5d6d68;
    --hd-green: #12322d;
    --hd-green-2: #1f6b58;
    --hd-mint: #dff3e7;
    --hd-gold: #f1b942;
    --hd-red: #cf5c4f;
    --hd-blue: #315f8d;
    --hd-paper: #f7f5ee;
    --hd-white: #ffffff;
    --hd-line: #d9dfd9;
}

html {
    scroll-behavior: smooth;
}

body.hesabdar-site {
    color: var(--hd-ink);
    background: var(--hd-paper);
    font-family: "XW_Zar_Bd_0", Tahoma, Arial, sans-serif;
}

.hesabdar-site a {
    color: inherit;
    text-decoration: none;
}

.main-page-wrapper {
    overflow: hidden;
}

.saas-header {
    background: rgba(247, 245, 238, 0.96);
    border-bottom: 1px solid rgba(20, 33, 31, 0.1);
    backdrop-filter: blur(12px);
    z-index: 1000;
}

.saas-topbar {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--hd-muted);
    font-size: 16px;
    border-bottom: 1px solid rgba(20, 33, 31, 0.08);
}

.saas-topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.saas-topbar a,
.btn-link-clean {
    color: var(--hd-green);
    font-weight: 700;
}

.saas-topbar i,
.btn-link-clean i {
    margin-left: 6px;
}

.saas-navbar {
    padding: 14px 0;
}

.saas-brand img {
    width: 178px;
    height: auto;
    display: block;
}

.saas-navbar .nav-link {
    color: var(--hd-ink);
    font-size: 18px;
    font-weight: 700;
    padding: 10px 14px !important;
}

.saas-navbar .nav-link:hover,
.saas-navbar .nav-link:focus {
    color: var(--hd-green-2);
}

.saas-nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.saas-toggler {
    width: 44px;
    height: 44px;
    border: 1px solid var(--hd-line);
    border-radius: 8px;
    color: var(--hd-green);
    box-shadow: none;
}

.btn-saas-primary,
.btn-saas-outline,
.btn-saas-light {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-sm-saas {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 17px;
}

.btn-saas-primary {
    background: var(--hd-green);
    color: var(--hd-white) !important;
}

.btn-saas-primary:hover,
.btn-saas-primary:focus {
    background: var(--hd-green-2);
    transform: translateY(-2px);
}

.btn-saas-outline {
    background: var(--hd-white);
    color: var(--hd-green) !important;
    border-color: var(--hd-line);
}

.btn-saas-outline:hover,
.btn-saas-outline:focus {
    border-color: var(--hd-green-2);
    transform: translateY(-2px);
}

.btn-saas-light {
    background: var(--hd-white);
    color: var(--hd-green) !important;
}

.btn-saas-light:hover,
.btn-saas-light:focus {
    background: var(--hd-mint);
}

.full {
    width: 100%;
}

.saas-hero {
    padding: 128px 0 82px;
    background:
        linear-gradient(180deg, rgba(223, 243, 231, 0.74), rgba(247, 245, 238, 0.96)),
        var(--hd-paper);
    border-bottom: 1px solid rgba(20, 33, 31, 0.08);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hd-green);
    background: var(--hd-mint);
    border: 1px solid rgba(31, 107, 88, 0.16);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 18px;
}

.saas-hero h1,
.pricing-hero h1 {
    color: var(--hd-ink);
    font-size: 64px;
    line-height: 1.05;
    font-weight: 900;
    margin: 0;
}

.hero-lead,
.pricing-hero p,
.section-heading p,
.footer-copy {
    color: var(--hd-muted);
    font-size: 22px;
    line-height: 1.8;
}

.hero-lead {
    margin: 24px 0 0;
    max-width: 690px;
}

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

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(20, 33, 31, 0.1);
    border-radius: 8px;
    color: var(--hd-muted);
    font-size: 17px;
}

.hero-proof strong {
    color: var(--hd-green);
}

.product-visual {
    position: relative;
    background: #eff4ef;
    border: 1px solid rgba(20, 33, 31, 0.14);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(18, 50, 45, 0.14);
    overflow: hidden;
}

.visual-toolbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    background: var(--hd-green);
    color: var(--hd-white);
    font-size: 17px;
    font-weight: 800;
}

.visual-toolbar a {
    margin-right: auto;
    color: var(--hd-mint);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hd-gold);
    display: inline-block;
}

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

.metric-tile,
.chart-panel,
.invoice-panel {
    background: var(--hd-white);
    border: 1px solid rgba(20, 33, 31, 0.1);
    border-radius: 8px;
    padding: 18px;
}

.metric-tile span,
.metric-tile small {
    color: var(--hd-muted);
    font-size: 16px;
}

.metric-tile strong {
    display: block;
    color: var(--hd-ink);
    font-size: 30px;
    margin: 10px 0 6px;
}

.metric-tile.income {
    border-top: 4px solid var(--hd-green-2);
}

.metric-tile.cash {
    border-top: 4px solid var(--hd-gold);
}

.chart-panel,
.invoice-panel {
    min-height: 210px;
}

.chart-header,
.invoice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--hd-ink);
    font-size: 18px;
    font-weight: 800;
}

.bars {
    height: 132px;
    display: flex;
    align-items: end;
    gap: 10px;
    margin-top: 24px;
}

.bars span {
    flex: 1;
    min-width: 24px;
    border-radius: 6px 6px 0 0;
    background: var(--hd-green-2);
}

.bars span:nth-child(even) {
    background: var(--hd-gold);
}

.invoice-panel {
    display: grid;
    gap: 12px;
}

.invoice-row {
    min-height: 48px;
    background: #f7faf7;
    border-radius: 8px;
    padding: 10px 12px;
}

.invoice-row strong {
    color: var(--hd-green-2);
    font-size: 16px;
}

.invoice-row .warning {
    color: var(--hd-red);
}

.visual-cards {
    display: flex;
    gap: 12px;
    padding: 0 18px 18px;
}

.visual-cards img {
    width: calc(50% - 6px);
    height: auto;
    border: 1px solid rgba(20, 33, 31, 0.1);
    border-radius: 8px;
    background: var(--hd-white);
}

.saas-strip {
    background: var(--hd-green);
    color: var(--hd-white);
    padding: 26px 0;
}

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

.strip-grid div {
    min-height: 86px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.strip-grid strong {
    display: block;
    font-size: 24px;
    margin-bottom: 4px;
}

.strip-grid span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
}

.section-space {
    padding: 96px 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading.rtl-start {
    margin-right: 0;
    margin-left: 0;
}

.section-heading span {
    color: var(--hd-green-2);
    font-size: 18px;
    font-weight: 900;
}

.section-heading h2 {
    color: var(--hd-ink);
    font-size: 46px;
    line-height: 1.2;
    font-weight: 900;
    margin: 10px 0 12px;
}

.section-heading p {
    margin: 0;
}

.feature-card,
.pricing-card,
.trust-card {
    height: 100%;
    background: var(--hd-white);
    border: 1px solid rgba(20, 33, 31, 0.1);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 18px 44px rgba(18, 50, 45, 0.07);
}

.feature-card i,
.trust-card i {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hd-mint);
    color: var(--hd-green);
    border-radius: 8px;
    font-size: 26px;
    margin-bottom: 22px;
}

.feature-card h3,
.process-item h3,
.trust-card h3 {
    color: var(--hd-ink);
    font-size: 25px;
    font-weight: 900;
    margin-bottom: 10px;
}

.feature-card p,
.process-item p,
.trust-card p,
.pricing-card p {
    color: var(--hd-muted);
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
}

.process-section,
.compare-section {
    background: #eef1e8;
    border-top: 1px solid rgba(20, 33, 31, 0.08);
    border-bottom: 1px solid rgba(20, 33, 31, 0.08);
}

.process-list {
    display: grid;
    gap: 16px;
}

.process-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    background: var(--hd-white);
    border: 1px solid rgba(20, 33, 31, 0.1);
    border-radius: 8px;
    padding: 22px;
}

.process-item > strong {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--hd-green);
    color: var(--hd-white);
    font-size: 22px;
}

.tenant-section {
    background: var(--hd-green);
    color: var(--hd-white);
}

.tenant-section .section-heading h2,
.tenant-section .section-heading p,
.tenant-section .section-heading span {
    color: var(--hd-white);
}

.tenant-section .section-heading p,
.tenant-benefits {
    color: rgba(255, 255, 255, 0.78);
}

.tenant-benefits {
    display: grid;
    gap: 12px;
    font-size: 20px;
}

.tenant-benefits i {
    color: var(--hd-gold);
    margin-left: 8px;
}

.tenant-form {
    background: var(--hd-white);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.tenant-form label {
    display: block;
    color: var(--hd-ink);
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 8px;
}

.tenant-form input,
.tenant-form select {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--hd-line);
    border-radius: 8px;
    background: #fbfcfb;
    color: var(--hd-ink);
    padding: 10px 14px;
    font-family: inherit;
    font-size: 18px;
    outline: none;
}

.tenant-form input:focus,
.tenant-form select:focus {
    border-color: var(--hd-green-2);
    box-shadow: 0 0 0 4px rgba(31, 107, 88, 0.12);
}

.tenant-submit {
    width: 100%;
    margin-top: 22px;
}

.form-note {
    color: var(--hd-muted);
    font-size: 16px;
    text-align: center;
    margin: 14px 0 0;
}

.tenant-form .errorlist {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    color: var(--hd-red);
    font-size: 16px;
    line-height: 1.5;
}

.tenant-form .alert {
    border-radius: 8px;
    font-size: 17px;
}

.pricing-preview {
    background: var(--hd-paper);
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pricing-card.featured {
    border-color: var(--hd-green-2);
    box-shadow: 0 24px 60px rgba(31, 107, 88, 0.14);
}

.pricing-top span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 10px;
    color: var(--hd-green);
    background: var(--hd-mint);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 900;
}

.pricing-card.featured .pricing-top span {
    background: var(--hd-gold);
    color: var(--hd-ink);
}

.pricing-top h3,
.pricing-top h2 {
    color: var(--hd-ink);
    font-size: 34px;
    font-weight: 900;
    margin: 14px 0 0;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--hd-ink);
}

.price strong {
    font-size: 50px;
    line-height: 1;
    font-weight: 900;
}

.price small,
.yearly-price {
    color: var(--hd-muted);
    font-size: 18px;
}

.pricing-card ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.pricing-card li {
    color: var(--hd-ink);
    font-size: 18px;
    line-height: 1.5;
}

.pricing-card li i {
    color: var(--hd-green-2);
    margin-left: 8px;
}

.trust-section {
    background: #fbfaf6;
}

.trust-card.accent-green {
    border-top: 4px solid var(--hd-green-2);
}

.trust-card.accent-gold {
    border-top: 4px solid var(--hd-gold);
}

.trust-card.accent-red {
    border-top: 4px solid var(--hd-red);
}

.final-cta {
    padding: 78px 0;
    background: #244d74;
    color: var(--hd-white);
}

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

.final-cta span {
    display: block;
    color: #c7e1f4;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 8px;
}

.final-cta h2 {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 900;
    margin: 0;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 21px;
    line-height: 1.7;
    max-width: 700px;
    margin: 12px 0 0;
}

.pricing-hero {
    padding: 118px 0 72px;
    background:
        linear-gradient(180deg, #eef1e8, var(--hd-paper)),
        var(--hd-paper);
}

.pricing-summary {
    background: var(--hd-white);
    border: 1px solid rgba(20, 33, 31, 0.1);
    border-radius: 8px;
    padding: 24px;
}

.pricing-summary span {
    color: var(--hd-green-2);
    font-size: 18px;
    font-weight: 900;
}

.pricing-summary strong {
    display: block;
    color: var(--hd-ink);
    font-size: 30px;
    line-height: 1.25;
    margin: 10px 0 16px;
}

.pricing-summary a,
.billing-note a {
    color: var(--hd-green);
    font-size: 19px;
    font-weight: 900;
}

.billing-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--hd-white);
    border: 1px solid rgba(20, 33, 31, 0.1);
    border-radius: 8px;
    padding: 20px 24px;
}

.billing-note span {
    display: block;
    color: var(--hd-green-2);
    font-size: 17px;
    font-weight: 900;
}

.billing-note strong {
    color: var(--hd-ink);
    font-size: 24px;
}

.pricing-card.large {
    min-height: 100%;
}

.yearly-price {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f4f7f3;
    border-radius: 8px;
}

.compare-table {
    overflow-x: auto;
    background: var(--hd-white);
    border: 1px solid rgba(20, 33, 31, 0.1);
    border-radius: 8px;
}

.compare-row {
    min-width: 720px;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(20, 33, 31, 0.08);
    color: var(--hd-ink);
    font-size: 19px;
}

.compare-row:last-child {
    border-bottom: 0;
}

.compare-head {
    background: var(--hd-green);
    color: var(--hd-white);
    font-weight: 900;
}

.compare-row i {
    color: var(--hd-green-2);
    font-size: 24px;
}

.compare-row .bi-dash {
    color: var(--hd-muted);
}

.tenant-section.compact {
    padding-top: 84px;
    padding-bottom: 84px;
}

.saas-footer {
    padding: 70px 0 26px;
    background: #101918;
    color: var(--hd-white);
}

.footer-brand img {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.7);
    margin: 22px 0 0;
}

.small-copy {
    font-size: 18px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.footer-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 9px;
    color: var(--hd-mint);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    font-size: 16px;
}

.saas-footer h5 {
    color: var(--hd-white);
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 18px;
}

.footer-links {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--hd-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
    font-size: 16px;
}

@media (max-width: 1199.98px) {
    .saas-hero h1,
    .pricing-hero h1 {
        font-size: 54px;
    }

    .section-heading h2,
    .final-cta h2 {
        font-size: 40px;
    }
}

@media (max-width: 991.98px) {
    .saas-topbar {
        display: none;
    }

    .saas-navbar {
        padding: 10px 0;
    }

    .saas-navbar .navbar-collapse {
        padding: 18px 0 8px;
    }

    .saas-nav-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 12px;
    }

    .saas-hero,
    .pricing-hero {
        padding-top: 86px;
    }

    .saas-hero h1,
    .pricing-hero h1 {
        font-size: 46px;
    }

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

    .section-space {
        padding: 72px 0;
    }

    .final-cta-inner,
    .billing-note {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .saas-brand img {
        width: 148px;
    }

    .saas-hero h1,
    .pricing-hero h1 {
        font-size: 38px;
    }

    .hero-lead,
    .pricing-hero p,
    .section-heading p,
    .final-cta p {
        font-size: 19px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2,
    .final-cta h2 {
        font-size: 32px;
    }

    .visual-grid,
    .strip-grid {
        grid-template-columns: 1fr;
    }

    .visual-cards {
        flex-direction: column;
    }

    .visual-cards img {
        width: 100%;
    }

    .process-item {
        grid-template-columns: 1fr;
    }

    .tenant-form,
    .feature-card,
    .pricing-card,
    .trust-card {
        padding: 22px;
    }

    .price strong {
        font-size: 42px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
