/* Nokhbah ERP website: the "Enterprise" identity (docs/WEBSITE.md, nokhba-brand/).
   Plain CSS, no build step, no external requests: fonts, icons and logos are in this folder.
   Light is the default; the visitor can switch to dark (remembered); right-to-left follows the chosen language.
   Colours: Ink #0E1726, Cobalt #3B6BF0, Cloud #F3F5F8, Steel #667085, Mist #D9DEE7. One accent. The only gradient is the soft cobalt glow of the hero (css/home.css). */

@font-face { font-family: "Material Symbols Outlined"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/material-symbols-outlined.woff2") format("woff2"); }
.ms { font-family: "Material Symbols Outlined"; font-weight: 400; font-style: normal; font-size: 1.25em; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; display: inline-block; vertical-align: -0.2em; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; }

/* IBM Plex Sans (Latin) and IBM Plex Sans Arabic (Dari, Pashto): SIL Open Font Licence, texts in fonts/OFL-IBMPlex*.txt */
@font-face { font-family: "NkPlex"; font-weight: 400; font-display: swap; src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "NkPlex"; font-weight: 500; font-display: swap; src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "NkPlex"; font-weight: 600; font-display: swap; src: url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "NkPlex"; font-weight: 700; font-display: swap; src: url("../fonts/IBMPlexSans-Bold.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "NkPlexAr"; font-weight: 400; font-display: swap; src: url("../fonts/IBMPlexSansArabic-Regular.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "NkPlexAr"; font-weight: 500; font-display: swap; src: url("../fonts/IBMPlexSansArabic-Medium.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "NkPlexAr"; font-weight: 600; font-display: swap; src: url("../fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "NkPlexAr"; font-weight: 700; font-display: swap; src: url("../fonts/IBMPlexSansArabic-Bold.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

:root {
    --ink: #0e1726; --cobalt: #3b6bf0; --cloud: #f3f5f8; --steel: #667085; --mist: #d9dee7;
    --bg: #ffffff; --bg-soft: #f3f5f8; --card: #ffffff; --line: #d9dee7; --line-strong: #b9c1cf;
    --text: #0e1726; --muted: #667085;
    --accent: #3b6bf0; --accent-hover: #2f5bd6; --accent-text: #2a56d2; --on-accent: #ffffff;
    --deep: #0e1726; --on-deep: #f3f5f8; --on-deep-muted: #aab4c8; --deep-line: rgba(243, 245, 248, .16);
    --seg-on-bg: #0e1726; --seg-on-fg: #f3f5f8;
    --bad: #b42318; --bad-soft: rgba(180, 35, 24, .08);
    --shadow-frame: 0 14px 34px -18px rgba(14, 23, 38, .35);
    --r: 10px; --r-lg: 16px; --pill: 999px; --max: 1200px;
    --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 112px;   /* the 8-point scale: every gap and every section padding is one of these */
    --glow: rgba(59, 107, 240, .12);
    --shadow-float: 0 22px 54px -24px rgba(14, 23, 38, .32), 0 2px 8px rgba(14, 23, 38, .05);
    --font: "NkPlex", "NkPlexAr", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
    --bg: #0e1726; --bg-soft: #111b2e; --card: #142036; --line: #26334c; --line-strong: #3a4a68;
    --text: #f3f5f8; --muted: #9ba6bb;
    --accent-text: #7fa2ff; --accent-hover: #5a82f5;
    --deep: #0a111d; --seg-on-bg: #f3f5f8; --seg-on-fg: #0e1726;
    --bad: #f97066; --bad-soft: rgba(249, 112, 102, .12);
    --shadow-frame: none;
}
html[lang="fa"], html[lang="ps"] { font-size: 104%; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[lang="fa"] body, html[lang="ps"] body { line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.75rem, 5.6vw, 4.25rem); font-weight: 500; line-height: 1.06; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
h3 { font-size: 1.1rem; letter-spacing: -.005em; }
html[lang="fa"] h1, html[lang="ps"] h1, html[lang="fa"] h2, html[lang="ps"] h2, html[lang="fa"] h3, html[lang="ps"] h3 { letter-spacing: 0; line-height: 1.45; }
html[lang="fa"] h1, html[lang="ps"] h1 { line-height: 1.35; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--r); z-index: 50; }
.skip:focus { inset-inline-start: 12px; }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-head.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 28px -22px rgba(14, 23, 38, .35); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav a { display: inline-flex; align-items: center; color: var(--muted); font-weight: 500; font-size: .95rem; padding: 8px 15px; border-radius: var(--pill); }
.nav a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }
.tools { display: flex; align-items: center; gap: 10px; }
.tools .demo { padding: 10px 22px; font-size: .92rem; margin-inline-start: 6px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--bg-soft); }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 500; padding: 5px 12px; border-radius: var(--pill); cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--seg-on-bg); color: var(--seg-on-fg); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.menu-btn { display: none; }
.panel { display: contents; }
@media (max-width: 1100px) {   /* the five links, the language switch, the theme button and the demo pill need about 1070 px: below 1100 they sit behind the menu button */
    .site-head .wrap { min-height: 64px; justify-content: space-between; }
    .brand img { height: 32px; }
    .menu-btn { display: inline-grid; }
    .panel { display: none; position: absolute; inset-inline: 0; top: 64px; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px 20px 18px; box-shadow: var(--shadow-frame); }
    .panel.open { display: flex; }
    .nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0; align-self: auto; }
    .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
    .nav a:hover { background: none; }
    .nav a[aria-current="page"] { color: var(--accent-text); background: none; }
    .tools { flex-wrap: wrap; justify-content: space-between; padding-top: 16px; }
    .tools .demo { flex: 1 0 100%; order: 3; margin-top: 4px; }
}

/* from 1101 to 1280 px the header is tighter: smaller gaps, nothing may wrap or leave the page */
@media (min-width: 1101px) and (max-width: 1280px) {
    .site-head .wrap { gap: 14px; }
    .nav a { padding: 8px 11px; font-size: .92rem; }
    .tools { gap: 8px; }
    .tools .demo { padding: 10px 18px; margin-inline-start: 2px; }
    .seg button { padding: 5px 10px; }
    .brand img { height: 34px; }
}
.site-head .btn, .site-head .seg button, .nav a { white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: var(--pill); font: inherit; font-weight: 600; font-size: .97rem; border: 1px solid transparent; cursor: pointer; line-height: 1.3; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .ms { font-size: 1.15em; }
html[dir="rtl"] .btn .ms.flip { transform: scaleX(-1); }

/* the Ink panels: hero, call to action, footer (Ink in both themes, a touch deeper in dark) */
.deep { background: var(--deep); color: var(--on-deep); }
.deep .btn-ghost { border-color: rgba(243, 245, 248, .34); color: var(--on-deep); }
.deep .btn-ghost:hover { border-color: var(--on-deep); }
.deep a:not(.btn) { color: var(--on-deep); }
.pattern { background-image: url("../img/pattern-dots.svg"); background-size: 128px 128px; }

/* sections */
section.block { padding: var(--s8) 0; }
section.block.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
section.block.tight { padding: 0; }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head h1, .section-head h2 { position: relative; padding-top: 18px; }
.section-head h1::before, .section-head h2::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 40px; height: 3px; background: var(--accent); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card p { color: var(--muted); margin: 0; }
.ico { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--accent-text); font-size: 22px; margin-bottom: 18px; flex: none; }
.ico .ms { font-size: 1em; vertical-align: 0; }

/* numbers */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-bottom: 1px solid var(--line); }
.stat { padding: 38px 28px 34px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat b { display: block; font-size: 2.7rem; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) { .stat { padding: 24px 16px; } .stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; } .stats { grid-template-columns: 1fr 1fr; } .stat b { font-size: 2.1rem; } }

/* features: a ruled grid, not floating cards */
.fgrid { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fgrid .card { border: 0; border-radius: 0; padding: 32px 30px 34px; background: var(--bg); }
.soft .fgrid .card { background: var(--bg-soft); }
.fgrid .card p { font-size: .97rem; }
@media (max-width: 960px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .fgrid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { section.block { padding: var(--s6) 0; } }

.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px 28px; align-items: start; }
.shots figure { margin: 0; grid-column: span 3; }
.shots figure.w4 { grid-column: span 4; }
.shots figure.w2 { grid-column: span 2; }
.shots .frame.fit { width: fit-content; max-width: 100%; margin-inline: auto; }
.shots .frame.fit img { max-height: 470px; width: auto; }
@media (max-width: 860px) { .shots figure, .shots figure.w4, .shots figure.w2 { grid-column: span 6; } .shots .frame.fit img { max-height: 520px; } }
.shots figcaption { margin-top: 12px; color: var(--muted); font-size: .92rem; }
.note { padding: 18px 22px; border-radius: 0; background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); border-inline-start: 3px solid var(--accent); }
.soft .note { background: var(--bg); }
.note b { font-weight: 600; }
p.note { margin: 0 0 1em; }

/* catalog */
.tools-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search .ms { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 44px; padding-inline: 40px 14px; border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--card); color: var(--text); font: inherit; }
.search input:focus, form.contact input:focus, form.contact textarea:focus, form.contact select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.area { margin-bottom: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.area h3 { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 1.15rem; }
.area h3 .ico { margin: 0; width: 34px; height: 34px; font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--card); font-size: .92rem; }
.chip .ms { font-size: 1.1em; vertical-align: 0; }
.chip.av .ms { color: var(--accent-text); }
.chip.pl { color: var(--muted); border-style: dashed; border-color: var(--line-strong); background: transparent; }
.chip.pl .ms { color: var(--muted); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.legend .ms { font-size: 1.1em; vertical-align: -.2em; }
.legend .av { color: var(--accent-text); }
.industry { margin-bottom: 14px; }
.industry details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 22px; }
.industry details[open] { border-color: var(--line-strong); }
.industry summary { cursor: pointer; font-weight: 600; padding: 16px 0; display: flex; align-items: center; gap: 14px; list-style: none; }
.industry summary::-webkit-details-marker { display: none; }
.industry summary > span { flex: 1; }
.industry summary small { color: var(--muted); font-weight: 400; }
.industry summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-block-start: -4px; transition: transform .15s; }
.industry details[open] summary::after { transform: rotate(-135deg); margin-block-start: 4px; }
.industry summary:hover::after { border-color: var(--text); }
@media (prefers-reduced-motion: reduce) { .industry summary::after { transition: none; } }
.industry .chips { padding-bottom: 20px; }
[hidden] { display: none !important; }

/* contact, forms */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ms { color: var(--accent-text); margin-top: 2px; }
form.contact label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 16px; }
form.contact input, form.contact textarea, form.contact select { width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); color: var(--text); font: inherit; font-weight: 400; }
form.contact textarea { min-height: 130px; resize: vertical; }
form.contact .btn { margin-top: 4px; }

/* footer */
footer.site-foot { background: var(--deep); color: var(--on-deep-muted); font-size: .92rem; border-top: 1px solid var(--deep-line); }
footer.site-foot .top { display: flex; flex-wrap: wrap; gap: 36px 60px; justify-content: space-between; align-items: flex-start; padding: 56px 0 44px; }
footer.site-foot .lockup { width: 230px; height: auto; }
footer.site-foot nav { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); grid-template-columns: repeat(2, minmax(150px, auto)); gap: 12px 56px; }
footer.site-foot nav a { color: var(--on-deep); font-weight: 500; }
footer.site-foot .bottom { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; padding: 22px 0 28px; border-top: 1px solid var(--deep-line); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-head, .tools, .menu-btn, footer.site-foot .top { display: none; } }

/* call to action band */
.cta { text-align: center; padding: 104px 0; }
.cta h2 { color: var(--on-deep); }
.cta p { color: var(--on-deep-muted); max-width: 34em; margin-inline: auto; margin-bottom: 26px; }
.cta .wrap { position: relative; z-index: 1; }

/* packages, ordering, privacy and terms */
.muted { color: var(--muted); }
.btn.small { padding: 6px 12px; font-size: .88rem; }
.pkgs { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pkg { display: flex; flex-direction: column; }
.pkg h3 { font-size: 1.35rem; margin-bottom: .3em; }
.pkg-sum { min-height: calc(4 * 1.65em); }
html[lang="fa"] .pkg-sum, html[lang="ps"] .pkg-sum { min-height: calc(4 * 1.85em); }
.pkg-price { margin: 18px 0 8px; color: var(--text); padding-top: 18px; border-top: 1px solid var(--line); }
.card .pkg-price { color: var(--text); }
.pkg-price b { font-size: 1.5rem; letter-spacing: -.02em; font-weight: 600; }
.pkg-price small { color: var(--muted); font-size: .85rem; }
.pkg-facts { list-style: none; margin: 10px 0 24px; padding: 0; display: grid; gap: 11px; flex: 1; }
.pkg-facts li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: .95rem; }
.pkg-facts .ms { color: var(--accent-text); flex: none; font-size: 1.15em; margin-top: 1px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.step { padding: 6px 0; }
.step .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--accent); color: var(--accent-text); font-weight: 600; margin-bottom: 14px; }
.step h3 { margin-bottom: .25em; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
#order-how .steps { grid-template-columns: 1fr; gap: 12px; }
#order-how .step { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; }
#order-how .step .num { grid-row: span 2; margin: 0; }
form.contact .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { form.contact .two { grid-template-columns: 1fr; } }
form.contact fieldset.radios { border: 0; padding: 0; margin: 0 0 16px; }
form.contact fieldset.radios legend { font-weight: 500; font-size: .92rem; padding: 0; margin-bottom: 8px; }
form.contact fieldset.radios label, form.contact label.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; margin-bottom: 8px; }
form.contact fieldset.radios input, form.contact label.check input { width: auto; margin-top: 5px; accent-color: var(--accent); }
form.contact .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.error { color: var(--bad); background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); border-radius: var(--r); padding: 10px 14px; margin: 0 0 16px; }
.done .ref { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; direction: ltr; justify-content: flex-start; }
.done .ref b { letter-spacing: .06em; font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
.pre { white-space: pre-line; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; color: var(--text); }
.doc { max-width: 52em; }
.legal h2 { font-size: 1.25rem; margin: 1.8em 0 .4em; }
.legal h2::before { content: none; }
.legal p, .legal li { color: var(--text); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* the company named in site-config.js */
.company-line { margin: 14px 0 0; font-weight: 500; color: var(--text); }
footer.site-foot .by { margin: 18px 0 0; color: var(--on-deep-muted); font-size: .9rem; }

/* inner pages: page heads, the sticky filter bar, module cards, industry cards */
.page-head { padding: var(--s7) 0 var(--s5); background: var(--bg-soft); border-bottom: 1px solid var(--line); position: relative; }
.page-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; background: radial-gradient(50% 120% at 50% 0%, var(--glow), transparent 75%); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head .section-head { margin: 0; }
.mod-bar { position: sticky; top: 76px; z-index: 15; background: var(--bg); border-bottom: 1px solid var(--line); }
.mod-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding-block: 14px; }
.mod-bar .search { flex: 1 1 260px; max-width: 420px; }
.mod-bar .legend { margin: 0 0 0 auto; }
html[dir="rtl"] .mod-bar .legend { margin: 0 auto 0 0; }
section.block.pt0 { padding-top: var(--s5); }
@media (max-width: 1100px) { .mod-bar { top: 64px; } }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: var(--s3); margin-top: var(--s3); }
.acard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); transition: border-color .2s, box-shadow .2s; }
.acard:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow-float); }
.acard header { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.acard h3 { margin: 0; font-size: 1.2rem; flex: 1; }
.count { min-width: 34px; padding: 4px 11px; border-radius: var(--pill); background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--accent-text); font-weight: 600; font-size: .85rem; text-align: center; }
.mlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px var(--s3); }
.mlist .chip { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border: 0; border-radius: 0; background: none; font-size: .92rem; line-height: 1.4; }
.mlist .chip .ms { margin-top: 1px; flex: none; }
.mlist .chip.pl { color: var(--muted); border-bottom: 1px dashed var(--line-strong); }
@media (max-width: 480px) { .areas-grid { grid-template-columns: 1fr; } .mlist { grid-template-columns: 1fr; } }
.tile.mi { font-family: "Material Symbols Outlined"; font-style: normal; font-size: 26px; line-height: 1; letter-spacing: normal; text-transform: none; font-feature-settings: "liga"; direction: ltr; }
.igrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); align-items: start; margin-top: var(--s3); }
.igrid .industry { margin: 0; }
.igrid .industry details { padding: var(--s3); height: 100%; transition: border-color .2s, box-shadow .2s; }
.igrid .industry details:hover, .igrid .industry details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow-float); }
.igrid .industry summary { position: relative; padding: 0 32px 0 0; align-items: flex-start; flex-wrap: wrap; }
html[dir="rtl"] .igrid .industry summary { padding: 0 0 0 32px; }
.igrid .industry summary .tile { width: 44px; height: 44px; margin-bottom: 6px; }
.igrid .industry summary > span { flex: 1 1 60%; min-width: 0; font-size: 1.08rem; line-height: 1.3; padding-top: 2px; }
.igrid .industry summary small { flex: 1 0 100%; margin-top: -4px; }
.igrid .industry summary::after { position: absolute; inset-inline-end: 0; top: 16px; margin: 0; }
.igrid .industry details[open] summary::after { margin: 0; top: 20px; }
.igrid .industry .chips { padding: var(--s2) 0 0; }
@media (max-width: 960px) { .igrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .igrid { grid-template-columns: 1fr; } }

/* packages: cards, then the comparison */
.cmp { margin-top: var(--s6); display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s4); align-items: start; }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.cmp table { width: 100%; border-collapse: collapse; min-width: 520px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp thead th { font-weight: 600; background: var(--bg-soft); }
.cmp tbody th { text-align: start; font-weight: 500; color: var(--muted); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp td b { font-weight: 600; font-size: .95rem; }
.cmp-all { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.cmp-all h3 { margin: 0 0 var(--s3); }
.cmp-all ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.cmp-all li { display: flex; align-items: center; gap: 14px; }
@media (max-width: 960px) { .cmp { grid-template-columns: 1fr; } }
.pkg { transition: border-color .2s, box-shadow .2s, transform .2s; }
.pkg:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow-float); transform: translateY(-4px); }
.pkg > .tile { margin-bottom: var(--s2); }
@media (prefers-reduced-motion: reduce) { .pkg:hover { transform: none; } }

/* contact and order: the form on one side, the details or the steps on the other */
.contact-grid { grid-template-columns: 1.15fr .85fr; gap: var(--s6); }
.contact-grid .side { position: sticky; top: 108px; }
@media (max-width: 820px) { .contact-grid .side { position: static; } }
form.contact.card { padding: var(--s4); }

/* privacy and terms: the text in one readable column, a contents list that stays in view */
.legal-wrap { display: grid; grid-template-columns: 250px minmax(0, 46em); gap: var(--s7); align-items: start; }
.toc { position: sticky; top: 108px; display: grid; gap: 4px; border-inline-start: 2px solid var(--line); padding-inline-start: var(--s2); }
.toc b { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
html[lang="fa"] .toc b, html[lang="ps"] .toc b { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.toc a { color: var(--muted); font-size: .92rem; line-height: 1.4; padding: 5px 0; }
.toc a:hover { color: var(--accent-text); text-decoration: none; }
.legal { font-size: 1.04rem; line-height: 1.75; }
.legal h2 { scroll-margin-top: 110px; }
html[lang="fa"] .legal, html[lang="ps"] .legal { line-height: 1.95; }
@media (max-width: 900px) { .legal-wrap { grid-template-columns: 1fr; gap: var(--s4); } .toc { position: static; } }

/* the 404 page */
.nf { text-align: center; padding: var(--s8) 0; }
.nf .nf-code { font-size: clamp(6rem, 18vw, 11rem); line-height: 1; font-weight: 500; letter-spacing: -.05em; color: color-mix(in srgb, var(--accent) 25%, var(--line)); margin: 0 0 var(--s3); }
.nf .lead { margin: 0 auto var(--s4); }

/* print: the legal pages are for reading on paper too */
@media print {
    body { background: #fff; color: #000; font-size: 11pt; }
    .site-head, footer.site-foot .top, .toc, .skip { display: none; }
    footer.site-foot { background: none; color: #000; border: 0; }
    .legal-wrap { display: block; }
    .legal a::after { content: " (" attr(href) ")"; font-size: .85em; }
    .page-head { background: none; border: 0; padding: 0 0 12pt; }
    .page-head::before { display: none; }
}

/* icon tiles: one line-icon set, one tint */
.tile { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--accent-text); font-size: 26px; }
.tile .ms { font-size: 1em; vertical-align: 0; }
.band.ink .tile { background: rgba(127, 162, 255, .14); color: #9db7ff; }

