@font-face { font-family: Estedad; src: url(/fonts/Estedad-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Estedad; src: url(/fonts/Estedad-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Estedad; src: url(/fonts/Estedad-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Estedad; src: url(/fonts/Estedad-Black.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --pine: #0F4C45;
  --pine-deep: #0A332F;
  --saffron: #E3A33B;
  --ink: #1D2624;
  --muted: #5E6B67;
  --mist: #F1F4F2;
  --line: #D6DEDA;
  --white: #FFFFFF;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: Estedad, Tahoma, sans-serif; color: var(--ink); background: var(--white);
  font-size: 16px; line-height: 2; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--pine); text-underline-offset: 4px; }
a:hover { color: var(--pine-deep); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--pine-deep); line-height: 1.45; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 900; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip: auto; right: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; }
.ltr, [dir="ltr"] { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.narrow { max-width: 760px; }

/* Buttons and links */
.btn {
  display: inline-block; background: var(--pine); color: #fff; font-weight: 700; text-decoration: none;
  padding: 11px 24px; border-radius: 8px; border: 2px solid var(--pine); line-height: 1.6;
}
.btn:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: #fff; }
.btn-line { background: transparent; color: var(--pine); }
.btn-line:hover { background: var(--mist); color: var(--pine-deep); }
.btn-gold { background: var(--saffron); border-color: var(--saffron); color: var(--pine-deep); }
.btn-gold:hover { background: #d2932c; border-color: #d2932c; color: var(--pine-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.more { font-weight: 700; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand-name { font-size: 1.45rem; font-weight: 900; color: var(--pine-deep); letter-spacing: -.3px; line-height: 1; }
.brand-name span { color: var(--saffron); }
.brand-light .brand-name { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.nav-link { color: var(--ink); padding: 6px 10px; font-weight: 500; text-decoration: none; display: inline-block; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--pine); }
.nav-link[aria-current="page"] { color: var(--pine); border-bottom-color: var(--saffron); }
.site-nav > .btn { margin-right: 12px; padding: 6px 18px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > .nav-link { padding-left: 2px; }
.sub-toggle { background: none; border: 0; cursor: pointer; width: 22px; height: 30px; padding: 0; color: var(--muted); display: grid; place-items: center; }
.sub-toggle::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
.submenu {
  position: absolute; top: 100%; right: 0; min-width: 280px; background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--pine); border-radius: 0 0 10px 10px; box-shadow: 0 14px 30px rgba(10, 51, 47, .12);
  padding: 6px; display: none; z-index: 60;
}
.submenu-sm { min-width: 180px; }
.submenu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); line-height: 1.6; text-decoration: none; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--mist); }
.submenu a[aria-current="page"] b { color: var(--pine); }
.submenu b { display: block; font-weight: 700; font-size: .95rem; }
.submenu small { display: block; color: var(--muted); font-size: .8rem; }
.submenu .submenu-all { color: var(--pine); font-weight: 700; font-size: .88rem; border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; }
@media (min-width: 961px) {
  .nav-item::after { content: ""; position: absolute; top: 100%; right: 0; left: 0; height: 10px; }
  .nav-item:hover > .submenu, .nav-item:focus-within > .submenu { display: block; }
}
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--pine-deep); margin: 5px 0; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; right: 0; left: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 8px 16px 20px; border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 10px 4px; flex: 1; border-bottom: 0; }
  .nav-link[aria-current="page"] { border-bottom: 0; }
  .nav-item { flex-wrap: wrap; border-top: 1px solid var(--mist); }
  .sub-toggle { width: 44px; height: 44px; }
  .submenu { position: static; flex: 1 1 100%; box-shadow: none; border: 0; border-right: 2px solid var(--saffron); border-radius: 0; padding: 0 12px 6px 0; margin: 0 4px 8px 0; min-width: 0; }
  .nav-item.open > .submenu { display: block; }
  .nav-item.open > .sub-toggle::before { transform: translateY(1px) rotate(135deg); }
  .site-nav > .btn { margin: 12px 0 0; text-align: center; }
}

/* Page top (inner pages) */
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); padding: 48px 0 52px; }
.page-head .lead { max-width: 720px; font-size: 1.08rem; color: #34413d; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }
.page-head-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .page-head-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Home hero */
.home-hero { padding: 64px 0 72px; border-bottom: 1px solid var(--line); }
.home-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.home-hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
.home-hero .lead { font-size: 1.1rem; color: #34413d; max-width: 540px; }
@media (max-width: 900px) { .home-hero-grid { grid-template-columns: 1fr; gap: 40px; } .home-hero { padding: 40px 0 48px; } }

/* Link map: three services wired into one account */
.link-map { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: stretch; }
.lm-nodes { display: grid; gap: 14px; }
.lm-node { border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; text-decoration: none; color: var(--ink); display: block; }
.lm-node:hover { border-color: var(--pine); color: var(--ink); }
.lm-node b { display: block; color: var(--pine-deep); font-size: 1.02rem; }
.lm-node span { font-size: .88rem; color: var(--muted); line-height: 1.7; display: block; }
.lm-wires { width: 100%; height: 100%; }
.lm-wires path { fill: none; stroke: var(--pine); stroke-width: 2; vector-effect: non-scaling-stroke; }
.lm-account { align-self: center; background: var(--pine); color: #e3ece9; border-radius: 12px; padding: 22px 20px; position: relative; }
.lm-account b { color: #fff; font-size: 1.1rem; display: block; margin-bottom: 8px; }
.lm-account ul { list-style: none; padding: 0; font-size: .9rem; line-height: 2.1; }
.lm-account li::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--saffron); transform: rotate(45deg); margin-left: 10px; vertical-align: middle; }
@media (max-width: 600px) {
  .link-map { grid-template-columns: 1fr; }
  .lm-wires { display: none; }
  .lm-account { margin-top: 26px; }
  .lm-account::before { content: ""; position: absolute; top: -26px; right: 50%; height: 26px; border-right: 2px solid var(--pine); }
}

/* Sections */
.sec { padding: 72px 0; }
.sec-alt { background: var(--mist); }
.sec + .sec:not(.sec-alt):not(.sec-dark) { border-top: 1px solid var(--line); }
.sec-title { max-width: 720px; margin-bottom: 36px; }
.sec-title p { color: var(--muted); margin: 0; }
@media (max-width: 640px) { .sec { padding: 52px 0; } }

/* Product summary columns on home */
.products { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--pine); }
.product { padding: 28px 0 8px 28px; }
.product + .product { padding-right: 28px; border-right: 1px solid var(--line); }
.product p { color: var(--muted); }
.product ul { padding: 0 18px 0 0; margin: 0 0 18px; }
.product li { margin-bottom: 2px; }
@media (max-width: 860px) {
  .products { grid-template-columns: 1fr; }
  .product, .product + .product { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Feature rows: title column + text column */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row h3 { margin: 0; }
.row p { margin: 0; color: #3d4945; }
.row .bank-list { margin-top: 10px; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 6px; } }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 32px; } }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-right: 24px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; right: 2px; top: .8em; width: 8px; height: 8px; background: var(--saffron); transform: rotate(45deg); }

.bank-list { font-size: .92rem; color: var(--muted); }
.bank-list b { color: var(--ink); font-weight: 700; }

.note { border-right: 4px solid var(--saffron); background: #fff; padding: 18px 22px; border-radius: 0 0 0 0; }
.sec-alt .note { background: #fff; }
.note h3 { margin-bottom: .3em; }
.note p:last-child { margin: 0; }

/* Steps (real sequences only) */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps li { counter-increment: s; border-top: 2px solid var(--pine); padding-top: 14px; }
.steps li::before { content: counter(s, persian); display: block; font-weight: 900; font-size: 1.6rem; color: var(--saffron); line-height: 1.3; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .steps, .steps-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps, .steps-5 { grid-template-columns: 1fr; } }

/* Sample tables (illustrations of the product) */
.sample { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; font-size: .9rem; }
.sample-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--pine-deep); color: #dce8e4; font-size: .85rem; }
.sample-head b { color: #fff; }
.sample table { width: 100%; border-collapse: collapse; }
.sample td, .sample th { padding: 9px 16px; border-bottom: 1px solid var(--mist); text-align: right; font-weight: 400; }
.sample th { color: var(--muted); font-size: .8rem; font-weight: 500; }
.sample tr:last-child td { border-bottom: 0; }
.sample .num { white-space: nowrap; }
.ok { color: #1c7a4b; font-weight: 700; }
.wait { color: #a5670e; font-weight: 700; }
.sample-caption { font-size: .8rem; color: var(--muted); margin-top: 8px; }

.code-box {
  background: var(--pine-deep); color: #d5e6e1; border-radius: 10px; padding: 20px; direction: ltr; text-align: left; margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.7; overflow-x: auto;
}
.code-box .k { color: #9ad8c9; } .code-box .s { color: #f0c57a; } .code-box .c { color: #7f9c95; }

/* Dark band CTA */
.band { background: var(--pine); color: #d9e7e3; padding: 52px 0; }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { color: #fff; margin-bottom: .2em; }
.band p { margin: 0; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--pine-deep); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1.4; color: var(--pine); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: #3d4945; padding-bottom: 8px; }
.faq-group { font-size: 1.15rem; margin: 40px 0 10px; }
.faq-group:first-child { margin-top: 0; }

/* Prose (about, legal) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-right: 22px; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }

/* Contact */
.contact-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--pine); }
.contact-list > div { padding: 22px 0 22px 24px; }
.contact-list > div + div { padding-right: 24px; border-right: 1px solid var(--line); }
.contact-list h3 { font-size: 1rem; color: var(--muted); font-weight: 500; margin-bottom: .2em; }
.contact-list a, .contact-list p { font-weight: 700; font-size: 1.05rem; margin: 0; }
@media (max-width: 760px) {
  .contact-list { grid-template-columns: 1fr; }
  .contact-list > div, .contact-list > div + div { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Liquidity: balance bar and flow example */
.balance-bar { display: grid; grid-template-columns: 1.1fr .9fr 1fr; border-radius: 10px; overflow: hidden; }
.bb-zone { padding: 18px 14px; color: #fff; min-height: 104px; display: flex; flex-direction: column; justify-content: flex-end; line-height: 1.6; }
.bb-zone b { font-size: .98rem; }
.bb-zone small { opacity: .85; font-size: .8rem; }
.bb-keep { background: var(--pine-deep); }
.bb-buffer { background: var(--pine); }
.bb-excess { background: var(--saffron); color: var(--pine-deep); }
.bb-scale { display: grid; grid-template-columns: 1.1fr .9fr 1fr; font-size: .75rem; color: var(--muted); margin-top: 6px; }
.bb-scale span:last-child { display: flex; justify-content: space-between; gap: 6px; }
.bb-scale i { font-style: normal; }
.flow { display: grid; grid-template-columns: 1fr auto 1.2fr; gap: 20px; align-items: center; }
.flow-box { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.flow-box h3 { margin-bottom: .3em; }
.flow-box p { color: var(--muted); margin: 0; font-size: .92rem; }
.flow-box .role { font-size: .8rem; font-weight: 700; color: var(--pine); }
.flow-src { border-color: var(--pine); border-width: 2px; }
.flow-dests { display: grid; gap: 14px; }
.flow-arrow { text-align: center; font-size: .82rem; color: var(--pine); font-weight: 700; line-height: 1.7; }
.flow-arrow::before { content: "←"; display: block; font-size: 1.8rem; line-height: 1; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } .flow-arrow::before { content: "↓"; } }

/* Footer */
.site-footer { background: var(--pine-deep); color: #a9c1bb; padding: 56px 0 0; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: .98rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #d3e2de; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1.2fr; gap: 32px; }
.footer-about p { margin-top: 14px; }
.trust-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge-slot { width: 104px; height: 116px; border: 1px dashed rgba(255,255,255,.25); border-radius: 8px; display: grid; place-items: center; text-align: center; font-size: .78rem; padding: 8px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 18px 20px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Home product cards */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--pine); border-radius: 12px; padding: 26px 24px; display: flex; flex-direction: column; }
.pcard:nth-child(2) { border-top-color: var(--saffron); }
.pcard-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--mist); color: var(--pine); display: grid; place-items: center; margin-bottom: 16px; }
.pcard-icon svg { width: 26px; height: 26px; }
.pcard p { color: var(--muted); }
.pcard ul { list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid var(--mist); }
.pcard li { border-bottom: 1px solid var(--mist); padding: 7px 0; font-size: .95rem; }
.pcard li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--saffron); transform: rotate(45deg); margin-left: 10px; vertical-align: middle; }
.pcard li a { color: var(--ink); text-decoration: none; }
.pcard li a:hover { color: var(--pine); text-decoration: underline; }
.pcard .btn { margin-top: auto; align-self: flex-start; padding: 8px 18px; font-size: .92rem; }
@media (max-width: 900px) { .pcards { grid-template-columns: 1fr; } }
.submenu { min-width: 220px; }
