@font-face {
    font-family: "IRANSans";
    src: url("../public/fonts/IRANSans/IRANSans Regular/IRANSans Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSans";
    src: url("../public/fonts/IRANSans/IRANSans Medium/IRANSans Medium.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --background: #f7f4ed;
    --foreground: #16202b;
    --card: #ffffff;
    --muted: #e6efef;
    --muted-text: #55636b;
    --primary: #147a70;
    --primary-dark: #102a2a;
    --border: #d4dde2;
    --ring: rgba(20, 122, 112, 0.26);
    --shadow: 0 8px 28px rgba(16, 42, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--foreground);
    font-family: "IRANSans", Tahoma, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
}

.container {
    width: min(100% - 32px, 1120px);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--border);
    background: rgba(247, 244, 237, 0.95);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark,
.feature-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.feature-icon {
    background: rgba(20, 122, 112, 0.1);
    color: var(--primary);
}

.brand-title,
.footer-title {
    display: block;
    font-weight: 800;
}

.brand-subtitle {
    display: block;
    margin-top: 2px;
    color: var(--muted-text);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link,
.footer-links a {
    border-radius: 6px;
    color: var(--muted-text);
    padding: 9px 12px;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.is-active,
.footer-links a:hover {
    background: var(--muted);
    color: var(--foreground);
}

.header-actions,
.button-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.4;
    padding: 9px 16px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
    background: #0f6159;
    border-color: #0f6159;
    transform: translateY(-1px);
}

.button-outline {
    background: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.button-outline:hover {
    background: var(--muted);
    border-color: var(--border);
}

.button-light {
    background: #fff;
    border-color: #fff;
    color: #123332;
}

.button-ghost-light {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-dashboard {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(19, 111, 103, 0.96), rgba(16, 42, 42, 0.98) 55%, rgba(26, 50, 76, 0.96));
}

.hero-dashboard::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 160px;
    background: linear-gradient(0deg, var(--background), rgba(247, 244, 237, 0));
    content: "";
}

.dashboard-card {
    position: absolute;
    top: 80px;
    left: max(24px, calc((100vw - 1120px) / 2));
    width: min(560px, 38vw);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    padding: 16px;
    color: #fff;
    backdrop-filter: blur(16px);
}

.metric-grid,
.dashboard-panels,
.stats-grid,
.included-grid,
.feature-grid,
.field-grid,
.summary-grid,
.footer-grid {
    display: grid;
    gap: 12px;
}

.metric-grid {
    grid-template-columns: repeat(3, 1fr);
}

.metric,
.panel,
.todo-panel p {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    padding: 13px;
}

.metric span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.metric strong {
    display: block;
    margin-top: 12px;
    font-size: 18px;
}

.dashboard-panels {
    grid-template-columns: 1fr 0.75fr;
    margin-top: 12px;
}

.panel-title {
    margin-bottom: 16px;
    font-weight: 800;
}

.progress-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.progress-row::after,
.progress-row i {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 8px;
    border-radius: 999px;
    content: "";
}

.progress-row::after {
    width: 100%;
    background: rgba(255, 255, 255, 0.16);
}

.progress-row i {
    width: var(--value);
    background: #a7f3d0;
}

.progress-row.amber i {
    background: #fde68a;
}

.progress-row.sky i {
    background: #bae6fd;
}

.todo-panel p {
    margin: 10px 0 0;
    background: rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.phone-card {
    position: absolute;
    left: min(470px, 34vw);
    top: 358px;
    width: 192px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    background: #101820;
    color: var(--foreground);
    padding: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.phone-card span,
.phone-card small,
.phone-card strong,
.phone-card b {
    display: block;
    border-radius: 6px;
    background: #fff;
    padding: 8px 10px;
}

.phone-card small {
    padding-top: 4px;
    color: var(--muted-text);
}

.phone-card strong {
    font-size: 19px;
}

.phone-card b {
    margin-top: 10px;
    background: var(--primary);
    color: #fff;
    text-align: center;
    font-size: 12px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-content {
    display: flex;
    min-height: 560px;
    align-items: center;
    padding-bottom: 96px;
    padding-top: 40px;
}

.hero-content > div {
    max-width: 540px;
    color: #fff;
}

.eyebrow,
.accent-label {
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

.eyebrow-light {
    display: inline-flex;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #d5fff6;
    padding: 8px 12px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 900;
    line-height: 1.35;
}

h2 {
    line-height: 1.5;
}

.hero p,
.page-hero span,
.split-page > section > p,
.feature-card p,
.price-card > p,
.footer-copy,
.legal-card p,
.faq-item p,
.result-card p,
.checklist-card p {
    color: var(--muted-text);
    line-height: 2;
}

.hero p {
    max-width: 610px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.stats-grid {
    position: relative;
    z-index: 2;
    grid-template-columns: repeat(3, 1fr);
    margin-top: -64px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.stat-card,
.feature-card,
.form-card,
.price-card,
.faq-item,
.legal-card,
.result-card,
.checklist-card {
    padding: 20px;
}

.stat-card p {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 28px;
    font-weight: 900;
}

.stat-card span {
    color: var(--muted-text);
    font-size: 14px;
}

.section {
    padding-block: 64px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 32px;
}

.section-heading p {
    color: var(--primary);
    font-weight: 800;
}

.section-heading h2,
.pricing-band h2 {
    font-size: 32px;
    font-weight: 900;
}

.feature-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

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

.feature-card h3,
.feature-card h2 {
    margin: 16px 0 8px;
    font-size: 20px;
}

.feature-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-head .feature-icon {
    flex: 0 0 auto;
}

.check-list {
    display: grid;
    gap: 11px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-right: 26px;
    color: var(--foreground);
    line-height: 1.8;
}

.check-list li::before {
    position: absolute;
    top: 2px;
    right: 0;
    color: var(--primary);
    content: "✓";
    font-weight: 900;
}

.soft-band {
    background: #e9f2ef;
}

.pricing-band {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
    padding-block: 64px;
}

.pricing-band p {
    color: var(--muted-text);
    line-height: 2;
}

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

.included-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    line-height: 1.8;
}

.included-item span {
    color: var(--primary);
    font-weight: 900;
}

.page-hero {
    background: var(--primary-dark);
    color: #fff;
    padding-block: 64px;
}

.page-hero.compact {
    padding-block: 48px;
}

.page-hero p {
    color: #b8f4e9;
    font-weight: 800;
}

.page-hero h1 {
    max-width: 790px;
    font-size: clamp(34px, 5vw, 50px);
}

.page-hero span {
    display: block;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.76);
}

.cta-strip {
    border-top: 1px solid var(--border);
    background: var(--card);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 40px;
}

.cta-inner p {
    margin-bottom: 0;
    color: var(--muted-text);
}

.split-page {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 32px;
    padding-block: 64px;
}

.split-page h1 {
    color: var(--foreground);
}

.price-card,
.form-card {
    padding: 24px;
}

.price-head,
.form-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.notice-box {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--muted);
    color: var(--muted-text);
    line-height: 1.9;
    margin-top: 20px;
    padding: 16px;
}

.contact-methods {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.contact-method p {
    margin-bottom: 4px;
    color: var(--muted-text);
    font-size: 14px;
}

.form-title {
    justify-content: flex-start;
    margin-bottom: 24px;
}

.form-title p {
    color: var(--muted-text);
}

.form-grid,
.field-grid {
    display: grid;
    gap: 16px;
}

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

label {
    display: grid;
    gap: 8px;
    color: var(--foreground);
    font-size: 14px;
}

label.wide,
.field-grid .wide {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--background);
    color: var(--foreground);
    outline: none;
    padding: 10px 12px;
}

input,
select {
    min-height: 40px;
}

textarea {
    min-height: 112px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--ring);
}

.register-hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hero-mini-grid div {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 18px;
    font-weight: 800;
}

.register-layout {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 32px;
    padding-block: 48px;
}

.register-layout aside {
    display: grid;
    align-content: start;
    gap: 16px;
}

.wizard {
    overflow: hidden;
}

.wizard-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding: 16px;
}

.wizard-tabs button {
    min-height: 58px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--background);
    color: var(--muted-text);
    cursor: pointer;
}

.wizard-tabs button.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.wizard-body {
    padding: 22px;
}

.wizard-step {
    display: none;
}

.wizard-step.is-active {
    display: grid;
    gap: 18px;
}

.field-caption {
    margin: 8px 0 0;
    font-weight: 700;
}

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

.toggle-grid label,
.inline-check {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--background);
    padding: 10px 12px;
}

.toggle-grid input,
.inline-check input {
    width: auto;
    min-height: auto;
}

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

.summary-grid div {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
}

.summary-grid span {
    display: block;
    color: var(--muted-text);
    font-size: 13px;
}

.summary-grid strong {
    display: block;
    margin-top: 6px;
}

.payment-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #e9f2ef;
    padding: 16px;
}

.payment-confirm span {
    display: block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.payment-confirm strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
}

.payment-confirm p {
    margin: 8px 0 0;
    color: var(--muted-text);
    font-size: 14px;
    line-height: 1.9;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding: 16px;
}

.faq-list,
.legal-page {
    display: grid;
    gap: 16px;
    padding-block: 48px;
}

.faq-item h2,
.legal-card h2 {
    font-size: 22px;
}

.result-page {
    display: grid;
    min-height: 520px;
    place-items: center;
    padding-block: 56px;
}

.result-card {
    max-width: 680px;
    text-align: center;
}

.invoice-card {
    display: grid;
    gap: 18px;
    max-width: 760px;
}

.invoice-card h1 {
    margin-bottom: 0;
}

.invoice-eyebrow {
    margin: 0;
    color: var(--primary);
    font-weight: 800;
}

.invoice-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    text-align: right;
}

.invoice-summary div,
.invoice-total {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    padding: 14px;
}

.invoice-summary span,
.invoice-total span {
    display: block;
    color: var(--muted-text);
    font-size: 13px;
}

.invoice-summary strong,
.invoice-total strong {
    display: block;
    margin-top: 7px;
}

.invoice-total {
    background: #e9f2ef;
    text-align: center;
}

.invoice-total strong {
    color: var(--text);
    font-size: 30px;
    font-weight: 900;
}

.success-mark {
    display: inline-flex;
    min-width: 72px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(20, 122, 112, 0.12);
    color: var(--primary);
    font-weight: 900;
}

.muted,
.muted-mark {
    color: var(--muted-text);
}

.center {
    justify-content: center;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--card);
}

.footer-grid {
    grid-template-columns: 1fr auto;
    padding-block: 32px;
}

.footer-copy {
    max-width: 640px;
}

.trust-seal {
    display: inline-flex;
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--background);
    padding: 10px;
    color: var(--muted-text);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

@media (max-width: 900px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        right: 12px;
        left: 12px;
        display: none;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--card);
        box-shadow: var(--shadow);
        padding: 8px;
    }

    .main-nav.is-open {
        display: grid;
    }

    .login-link {
        display: none;
    }

    .dashboard-card,
    .phone-card {
        opacity: 0.38;
    }

    .dashboard-card {
        left: 20px;
        width: 80vw;
    }

    .stats-grid,
    .feature-grid.three,
    .feature-grid.two,
    .pricing-band,
    .split-page,
    .register-hero-grid,
    .register-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .included-grid,
    .field-grid,
    .toggle-grid,
    .summary-grid,
    .invoice-summary,
    .hero-mini-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .header-inner {
        gap: 10px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .dashboard-card {
        display: none;
    }

    .metric-grid,
    .dashboard-panels {
        grid-template-columns: 1fr;
    }

    .phone-card {
        display: none;
    }

    .hero-content {
        align-items: flex-start;
        padding-top: 48px;
    }

    .stats-grid {
        margin-top: -40px;
    }

    .wizard-tabs {
        grid-template-columns: repeat(5, minmax(54px, 1fr));
        overflow-x: auto;
    }

    .wizard-tabs button {
        font-size: 12px;
    }

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

    .wizard-actions .button {
        width: 100%;
    }

    .payment-confirm {
        align-items: stretch;
        flex-direction: column;
    }
}
