@font-face {
    font-family: Vazirmatn;
    src: url("/assets/vazirmatn.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --paper: #f8f6ef;
    --card: #fcfaf4;
    --ink: #122b21;
    --forest: #153e2e;
    --forest-hover: #21513f;
    --moss: #416626;
    --muted: #48584e;
    --border: #c9c8b9;
    --lime: #e0ef9b;
    --error: #8a2929;
    font-family: Vazirmatn, Tahoma, sans-serif;
    color: var(--ink);
    background: var(--paper);
    scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .57; }
:focus-visible { outline: 2px solid #5b842e; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 88px, 1200px); margin-inline: auto; }
.skip-link { position: fixed; top: -90px; right: 24px; z-index: 5; padding: 12px 20px; background: var(--lime); }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; direction: ltr; font: 800 clamp(23px, 2.4vw, 32px)/1 Arial, sans-serif; letter-spacing: -.055em; }
.mark { width: 38px; height: 38px; display: block; border-radius: 50%; background: var(--forest); color: var(--lime); position: relative; flex: none; }
.mark i { position: absolute; background: currentColor; width: 8px; height: 12px; border-radius: 8px 0 8px 0; }
.mark i:nth-child(1) { top: 6px; left: 15px; transform: rotate(-45deg); }
.mark i:nth-child(2) { top: 17px; left: 10px; transform: rotate(-75deg); }
.mark i:nth-child(3) { top: 17px; right: 10px; transform: rotate(-14deg); }
.header-inner nav { display: flex; align-items: center; gap: clamp(17px, 3.2vw, 43px); font-size: .94rem; font-weight: 600; white-space: nowrap; }
.header-inner nav a { display: grid; align-items: center; min-height: 44px; position: relative; }
.header-inner nav a:hover, .text-link:hover, .text-button:hover { color: var(--moss); }
.home-link::after { content: ""; position: absolute; inset: auto 0 1px; height: 2px; background: #849f38; }
.account-link { justify-self: end; gap: 12px; }
.profile-icon { position: relative; display: inline-block; width: 16px; height: 19px; flex: none; }
.profile-icon::before, .profile-icon::after { content: ""; position: absolute; border: 1.5px solid currentColor; }
.profile-icon::before { width: 8px; height: 8px; border-radius: 50%; top: 0; left: 4px; }
.profile-icon::after { width: 16px; height: 8px; top: 10px; left: 0; border-radius: 9px 9px 0 0; border-bottom: 0; }

.button { border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 10px; padding: 9px 17px; font-size: .91rem; font-weight: 700; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.button-primary { background: var(--forest); color: white; }
.button-primary:hover { background: var(--forest-hover); }
.button-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.button-outline:hover { background: #eeeee2; }
.button-lime { background: var(--lime); color: var(--ink); }
.button-lime:hover { background: #edf7bd; }
.arrow { font-size: 1.3em; margin-inline-start: 12px; line-height: 1; }

.hero { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: clamp(30px, 5.5vw, 76px); align-items: center; padding-block: 36px 30px; }
.hero h1 { font-size: clamp(42px, 5.15vw, 74px); line-height: 1.23; font-weight: 900; letter-spacing: -.047em; text-wrap: balance; }
.hero h1 em { color: var(--moss); font-style: normal; }
.hero-copy p { max-width: 360px; color: var(--muted); line-height: 1.95; font-size: clamp(.96rem, 1.4vw, 1.12rem); margin-top: 20px; }
.hero-actions { margin-top: 26px; display: flex; gap: 19px; align-items: center; flex-wrap: wrap; }
.hero-actions .button { padding-inline: 20px; min-height: 52px; font-size: .97rem; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--forest); font-size: .92rem; font-weight: 700; text-underline-offset: 5px; text-decoration: underline; text-decoration-color: #a4a68d; }
.hero-visual { overflow: hidden; border-radius: 15px; aspect-ratio: 1.46; background: #a5a88a; }
.hero-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }

.process { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 21px; border-block: 1px solid var(--border); scroll-margin-top: 20px; }
.process article { display: flex; align-items: flex-start; gap: 14px; padding-inline: 21px; }
.process article:first-child { padding-inline-start: 0; }
.process article + article { border-inline-start: 1px solid var(--border); }
.process h2 { font-size: 1.13rem; line-height: 1.65; }
.process p { font-size: .89rem; color: var(--muted); line-height: 1.8; max-width: 250px; margin-top: 4px; }
.process-icon { position: relative; background: var(--lime); border-radius: 10px; width: 44px; height: 44px; display: block; flex: none; }
.process-icon::before, .process-icon::after { content: ""; position: absolute; }
.search-icon::before { width: 17px; height: 17px; border: 1.7px solid; border-radius: 50%; top: 11px; left: 11px; }
.search-icon::after { width: 9px; height: 1.7px; background: currentColor; top: 28px; left: 24px; transform: rotate(45deg); }
.layers-icon::before { width: 17px; height: 17px; border: 1.7px solid; top: 11px; left: 13.5px; transform: rotate(45deg) skew(-5deg, -5deg) scaleY(.8); }
.layers-icon::after { width: 17px; height: 17px; border: solid; border-width: 0 1.7px 1.7px 0; top: 18px; left: 13.5px; transform: rotate(45deg) skew(-5deg, -5deg) scaleY(.8); }
.flag-icon::before { width: 1.7px; height: 23px; background: currentColor; top: 11px; left: 13px; }
.flag-icon::after { width: 17px; height: 13px; border: 1.7px solid; border-inline-start-width: 2px; border-radius: 0 3px 3px 0; top: 11px; left: 13px; }

.pricing { margin-top: 56px; padding-block: 46px 57px; background: #f1eee4; border-top: 1px solid #dedbce; scroll-margin-top: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; border-bottom: 1px solid #8e9b83; padding-bottom: 20px; margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(2rem, 4.3vw, 3.35rem); font-weight: 900; letter-spacing: -.05em; line-height: 1.25; }
.section-heading p { max-width: 335px; color: var(--muted); font-size: .97rem; line-height: 1.8; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.plan-card { display: flex; flex-direction: column; align-items: stretch; border: 1px solid #adb2a0; border-radius: 17px; padding: 20px; background: var(--card); }
.plan-top { text-align: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.plan-top h3 { font-weight: 850; font-size: 1.57rem; line-height: 1.25; }
.duration { display: inline-block; color: var(--muted); margin-top: 3px; font-weight: 600; font-size: .84rem; white-space: nowrap; }
.price { display: grid; justify-items: center; gap: 2px; margin-block: 15px 9px; }
.price strong { font-size: clamp(3.15rem, 4.55vw, 4.1rem); font-weight: 900; line-height: .98; letter-spacing: -.067em; }
.price span { white-space: nowrap; font-weight: 600; font-size: .88rem; }
.plan-intro { color: var(--muted); font-size: .89rem; line-height: 1.65; min-height: 2.75rem; display: grid; align-content: center; text-align: center; }
.plan-card ul { list-style: none; margin: 9px 0 16px; padding: 13px 0 0; border-top: 1px solid var(--border); flex: 1; }
.plan-card li { position: relative; padding-inline-start: 20px; font-size: .87rem; line-height: 1.68; margin-bottom: 7px; }
.plan-card li::before { content: "✓"; color: var(--moss); font-weight: 750; position: absolute; inset-inline-start: 0; top: 0; }
.plan-card .button { position: relative; min-height: 47px; padding-inline: 27px; }
.plan-card .arrow { position: absolute; inset-inline-end: 11px; margin: 0; }
.plan-featured { background: var(--forest); color: #f9f8ef; border-color: var(--forest); }
.plan-featured .price strong, .plan-featured .plan-top h3, .plan-featured li::before { color: var(--lime); }
.plan-featured .duration, .plan-featured .plan-intro { color: #e1e9db; }
.plan-featured ul, .plan-featured .plan-top { border-color: #698b77; }
.pricing-note { text-align: center; font-size: .9rem; line-height: 1.8; margin-top: 20px; color: var(--muted); }

.site-footer { background: var(--forest); color: #fbf9ef; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 25px 45px; padding-block: 37px; align-items: center; }
.footer-inner > :last-child { justify-self: end; }
.footer-inner nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .875rem; }
.footer-inner nav a, .footer-inner nav button { min-height: 44px; display: inline-flex; align-items: center; }
.footer-inner nav a:hover, .footer-inner nav button:hover, .email-link:hover { color: var(--lime); }
.footer-inner h2 { font-size: .94rem; }
.footer-brand p { font-size: .81rem; margin-top: 9px; color: #e1e9db; }
.footer-brand .mark { background: var(--lime); color: var(--forest); }
.email-link { color: #e1e9db; font: .93rem/2 Arial, sans-serif; unicode-bidi: isolate; display: inline-block; }
.plain { border: 0; background: transparent; padding: 0; }
.site-footer :focus-visible, .plan-featured :focus-visible { outline-color: var(--lime); }

dialog { width: min(100% - 24px, 480px); max-height: min(90dvh, 770px); color: var(--ink); border: 1px solid var(--border); border-radius: 18px; padding: 0; background: var(--paper); }
dialog::backdrop { background: #10251ec0; }
.dialog-inner { padding: clamp(18px, 5vw, 28px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.dialog-header h2 { font-weight: 850; font-size: 1.44rem; letter-spacing: -.035em; }
.close-button { background: transparent; border: 0; border-radius: 9px; font-size: 1.85rem; width: 44px; height: 44px; padding: 0; line-height: 1; }
.close-button:hover { background: #ebeadc; }
.dialog-description { color: var(--muted); margin-bottom: 18px; font-size: .94rem; line-height: 1.8; }
form, .form-field { display: grid; gap: 7px; }
form label { font-weight: 650; font-size: .91rem; }
form :is(input:not([type="checkbox"]), select, textarea) { width: 100%; min-width: 0; border: 1px solid #9caa98; border-radius: 9px; min-height: 47px; background: #fffdf8; padding: 9px 12px; margin-bottom: 7px; font-size: 1rem; }
textarea { resize: vertical; }
.otp-input { text-align: center; letter-spacing: .22em; }
.full { width: 100%; min-height: 49px; }
.optional { color: var(--muted); font-size: .77rem; font-weight: 450; margin-inline-start: 5px; }
.consent { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-block: 4px 8px; min-height: 44px; font-size: .84rem; }
.consent input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--forest); }
.dialog-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; }
.text-button { min-height: 44px; color: var(--forest); border: 0; background: transparent; padding: 4px 0; font-weight: 650; }
.form-message { color: var(--error); border: 1px solid #ddc0b8; background: #f9ede8; border-radius: 9px; margin-top: 14px; font-size: .86rem; padding: 9px 12px; }
.tracking { background: #edf0df; border: 1px solid #dbe0cb; border-radius: 12px; text-align: center; padding: 15px; margin-block: 8px 17px; }
.tracking span { display: block; font-size: .85rem; }
.tracking strong { display: block; font-size: 2.45rem; font-weight: 850; letter-spacing: .06em; }
.account-page { min-height: 100vh; display: flex; flex-direction: column; }
.account-header-actions { justify-self: end; }
.account-main { flex: 1; padding-block: 32px 58px; }
.account-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; padding: 26px 31px; border-radius: 16px; background: var(--forest); color: var(--paper); }
.account-banner h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); font-weight: 850; line-height: 1.25; letter-spacing: -.038em; }
.account-banner p { margin-top: 8px; color: #e2ebdf; line-height: 1.8; font-size: .94rem; }
.account-banner .button { padding-inline: 21px; min-height: 49px; white-space: nowrap; }
.account-banner :focus-visible { outline-color: var(--lime); }
#account-identity::before { content: "✓"; display: inline-grid; place-items: center; width: 19px; height: 19px; margin-inline-end: 7px; border-radius: 50%; font-size: .78rem; background: var(--lime); color: var(--ink); vertical-align: middle; }
#session-phone { font-variant-numeric: tabular-nums; margin-inline-start: 4px; }
.account-loading, .account-alert { margin-top: 18px; padding: 14px; color: var(--muted); }
.account-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #ddc0b8; color: var(--error); background: #f9ede8; border-radius: 12px; }
.account-guest { display: grid; grid-template-columns: 1fr .75fr; align-items: stretch; margin-top: 18px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.account-guest-copy { padding: clamp(21px, 4vw, 45px); align-self: center; }
.account-guest h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.03em; }
.account-guest p { max-width: 420px; color: var(--muted); line-height: 1.85; margin-block: 8px 20px; }
.account-guest img { width: 100%; height: 100%; max-height: 315px; display: block; object-fit: cover; }
.account-dashboard { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 16px; margin-top: 18px; }
.account-panel { min-width: 0; border: 1px solid var(--border); border-radius: 16px; padding: clamp(15px, 2.1vw, 24px); scroll-margin-top: 16px; }
.account-heading { font-size: clamp(1.16rem, 2vw, 1.45rem); font-weight: 850; margin-bottom: 14px; }
.account-empty { font-size: .94rem; line-height: 1.9; color: var(--muted); }
.account-empty .text-link { min-height: 44px; }
#privacy-screen p { line-height: 1.85; color: var(--muted); font-size: .92rem; margin-bottom: 11px; }
.order-list, .subscription-list { list-style: none; margin: 0; padding: 0; }
.order-list li { border-top: 1px solid var(--border); padding-block: 10px; }
.order-list li:last-child { padding-bottom: 0; }
.subscription-list { display: grid; gap: 10px; }
.subscription-list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 16px; border: 1px solid #dedbce; border-radius: 13px; background: var(--card); padding: clamp(15px, 2.2vw, 24px); }
.subscription-list .account-row { display: grid; gap: 0; }
.subscription-list strong { font-size: clamp(1.34rem, 2.4vw, 1.8rem); font-weight: 830; line-height: 1.45; }
.account-row { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: .88rem; }
.account-meta { color: var(--muted); font-size: .81rem; line-height: 1.7; }
.subscription-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.subscription-actions .button { min-width: 92px; }
.subscription-list .subscription-actions { margin-top: 0; }
.subscription-summary { margin-block: 0 16px; padding: 10px 12px; background: #edf0df; border-radius: 9px; color: var(--forest); font-size: .88rem; line-height: 1.75; }
.order-status { color: #6a4e21; background: #f0e7d6; border-radius: 6px; padding: 3px 7px; line-height: 1.3; font-size: .76rem; white-space: nowrap; }
.order-status[data-status="approved"] { color: #385425; background: #e9eedb; }
.order-status[data-status="rejected"] { color: var(--error); background: #f4e3dd; }
.signout { display: block; margin: 6px auto 0; }
.review-page { max-width: 525px; padding-block: 32px; }
.review-page h1 { font-size: clamp(1.45rem, 6vw, 2rem); margin-block: 20px 12px; }
#review-message:not(:empty) { font-size: .93rem; color: var(--muted); margin-bottom: 12px; }
.review-details { margin-block: 12px 22px; }
.review-details div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; border-bottom: 1px solid var(--border); padding-block: 9px; }
.review-details dt { color: var(--muted); }
.review-details dd { margin: 0; font-weight: 650; }
.review-reject { color: var(--error); border-color: var(--error); }
.noscript { padding: 15px; text-align: center; }

@media (max-width: 960px) {
    .wrap { width: calc(100% - 56px); }
    .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { gap: 22px; }
}
@media (max-width: 680px) {
    .wrap { width: calc(100% - 36px); }
    .header-inner { min-height: auto; grid-template-columns: 1fr auto; padding-block: 12px 5px; gap: 4px 15px; }
    .header-inner nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 8px; font-size: .85rem; }
    .header-inner .button { min-height: 44px; padding-inline: 11px; font-size: .8rem; }
    .mark { scale: .87; }
    .hero { grid-template-columns: 1fr; padding-block: 28px 22px; gap: 22px; }
    .hero h1 { font-size: clamp(36px, 9vw, 55px); text-wrap: unset; }
    .desktop-break { display: none; }
    .hero-copy p { margin-top: 12px; }
    .hero-actions { margin-top: 15px; }
    .hero-visual { aspect-ratio: 1.5; border-radius: 13px; }
    .process { grid-template-columns: 1fr; padding-block: 0; }
    .process article { padding: 12px 0; align-items: center; }
    .process article + article { border-inline-start: 0; border-top: 1px solid var(--border); }
    .process p { max-width: none; }
    .process-icon { width: 44px; }
    .pricing { margin-top: 34px; padding-block: 32px 40px; }
    .section-heading { flex-direction: column; align-items: start; gap: 7px; }
    .plan-grid { gap: 12px; }
    .plan-card { padding: 17px; }
    .account-main { padding-block: 19px 40px; }
    .account-banner { padding: 21px; }
    .account-dashboard { grid-template-columns: 1fr; gap: 12px; margin-top: 13px; }
    .account-guest { grid-template-columns: 1fr; margin-top: 13px; }
    .account-guest img { max-height: 220px; aspect-ratio: 1.75; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 22px 10px; padding-block: 25px; }
    .footer-inner nav { grid-column: 1 / -1; grid-row: 2; gap: 8px 14px; }
    .footer-inner > :last-child { justify-self: end; }
}
@media (max-width: 520px) {
    .plan-grid { grid-template-columns: 1fr; }
    .plan-intro { min-height: 0; }
    .plan-card { padding: 19px; }
    .account-banner { flex-wrap: wrap; gap: 13px; }
    .account-banner .button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
    .button { transition: none; }
}
