/* Satr — calm, paper-like, ruled lines. Logical properties throughout (RTL-safe). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/vazirmatn-arabic-regular.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/vazirmatn-arabic-semibold.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
/* metric-matched fallbacks so the swap does not shift the layout */
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('Helvetica Neue'), local('Roboto'); size-adjust: 107.4%; ascent-override: 90.4%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: 'Vazirmatn Fallback'; src: local('Tahoma'), local('Segoe UI'), local('Noto Sans Arabic'); size-adjust: 104%; ascent-override: 100%; descent-override: 45%; line-gap-override: 0%; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --paper: #f6f5f1; --sheet: #fffefb; --ink: #16181b; --ink-2: #3a3d42; --muted: #6a6d72;
  --rule: #e4e1d9; --rule-2: #d6d2c8; --accent: #1f4a3a; --accent-ink: #fff; --accent-soft: #e8efea;
  --warn-bg: #fbf4e8; --warn-ink: #6e3f0e; --warn-rule: #ead7b8; --ok: #1f6b46; --err: #9a2a1f;
  --radius: 14px; --shadow: 0 1px 0 rgba(22,24,27,.04), 0 12px 32px -18px rgba(22,24,27,.18);
  --font: 'Inter', 'Vazirmatn', 'Inter Fallback', 'Vazirmatn Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1120px; --gut: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111213; --sheet: #18191b; --ink: #ecebe6; --ink-2: #c9c8c2; --muted: #9a9a94;
    --rule: #2a2c2f; --rule-2: #36383c; --accent: #8cc4a8; --accent-ink: #0f1a15; --accent-soft: #1c2a23;
    --warn-bg: #2a2117; --warn-ink: #f0c992; --warn-rule: #4a3a25; --ok: #8cc4a8; --err: #f09a8f;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 16px 40px -20px rgba(0,0,0,.6);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; }
:lang(ar) body, :lang(fa) body, body:lang(ar), body:lang(fa) { line-height: 1.85; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 12px; z-index: 10; background: var(--sheet); padding: 8px 12px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.num, .ltr { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

/* header */
.top { border-block-end: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand b { font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.brand span { color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.nav { display: flex; gap: 22px; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); text-decoration: underline; }
.langs { display: flex; gap: 2px; font-size: 13px; border: 1px solid var(--rule-2); border-radius: 999px; padding: 2px; }
.langs a { text-decoration: none; padding: 3px 10px; border-radius: 999px; color: var(--muted); }
.langs a[aria-current] { background: var(--ink); color: var(--paper); }
@media (max-width: 720px) {
  .top .wrap { gap: 10px 16px; }
  .nav { order: 3; width: 100%; gap: 18px; font-size: 14px; overflow-x: auto; }
}

/* hero */
.hero { padding-block: clamp(40px, 8vw, 88px) clamp(24px, 4vw, 40px); }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
:lang(ar) .eyebrow, :lang(fa) .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
h1 { font-weight: 600; font-size: clamp(30px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -0.028em; margin: 0; max-width: 18ch; text-wrap: balance; }
:lang(ar) h1, :lang(fa) h1 { letter-spacing: 0; line-height: 1.35; max-width: 20ch; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); max-width: 60ch; margin: 22px 0 0; text-wrap: pretty; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 14.5px; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 9px; }
.trust li::before { content: ''; inline-size: 18px; block-size: 1px; background: var(--accent); }

/* tool sheet */
.tool { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); margin-block: 8px 56px; overflow: hidden; }
.drop { position: relative; padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 56px); text-align: center;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--rule) 31px, var(--rule) 32px);
  background-position: 0 18px; transition: background-color .15s ease; }
.drop::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: clamp(28px, 7vw, 76px); inline-size: 1px; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.drop.over { background-color: var(--accent-soft); }
.drop h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; letter-spacing: -0.015em; margin: 0 0 22px; }
:lang(ar) .drop h2, :lang(fa) .drop h2 { letter-spacing: 0; }
.drop .or { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; }
.drop .note { color: var(--muted); font-size: 13.5px; margin: 26px 0 0; display: inline-flex; gap: 8px; align-items: center; background: var(--sheet); padding: 2px 10px; border-radius: 6px; }
.drop .note svg { flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15.5px; cursor: pointer; text-decoration: none; transition: transform .08s ease, background .15s ease; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; font-weight: 500; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: progress; }
.linkbtn { background: none; border: 0; padding: 4px 2px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14.5px; }
.linkbtn:hover { color: var(--accent); }
.drop .sample { display: block; margin: 14px auto 0; }
.drop .note { display: flex; inline-size: fit-content; margin-inline: auto; }
input[type=file].vh { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; overflow: hidden; }

.status { padding: 14px clamp(20px, 4vw, 40px); border-block-start: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.status:empty { display: none; }
.status.err { color: var(--err); background: color-mix(in srgb, var(--err) 6%, transparent); }
.status.ok { color: var(--ok); }
.panel { padding: clamp(20px, 4vw, 40px); border-block-start: 1px solid var(--rule); }
.panel h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.panel .sub { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; max-width: 70ch; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.field input, .field select, select.role, input.hname { min-height: 42px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--sheet); padding: 0 12px; }
.pwform { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.pwform .field { min-inline-size: min(320px, 100%); }
.opts { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: end; margin-block-end: 18px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14.5px; min-height: 42px; cursor: pointer; }
.check input { inline-size: 18px; block-size: 18px; accent-color: var(--accent); }

/* mapper + preview table */
.tablebox { border: 1px solid var(--rule); border-radius: 10px; overflow: auto; max-block-size: 70vh; background: var(--sheet); }
table.prev { border-collapse: separate; border-spacing: 0; inline-size: 100%; font-size: 13.5px; }
table.prev th, table.prev td { padding: 8px 12px; border-block-end: 1px solid var(--rule); text-align: start; vertical-align: top; }
table.prev thead th { position: sticky; top: 0; background: var(--sheet); z-index: 1; font-weight: 500; }
table.prev thead tr:nth-child(2) th { top: 59px; }
table.prev thead tr:last-child th { border-block-end: 1px solid var(--rule-2); }
table.prev td { min-inline-size: 90px; }
table.prev td.d { min-inline-size: 220px; max-inline-size: 420px; }
table.prev td.n { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.prev td.n.neg { color: var(--err); }
table.prev td.bad { background: var(--warn-bg); color: var(--warn-ink); }
table.prev td.dt { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.prev tr.ign > *, table.prev .ign { color: var(--muted); opacity: .55; }
table.prev .rn { color: var(--muted); font-size: 12px; inline-size: 1%; min-inline-size: 0; padding-inline-end: 4px; }
select.role { min-inline-size: 128px; inline-size: 100%; font-size: 13.5px; min-height: 38px; }
input.hname { inline-size: 100%; min-inline-size: 110px; font-size: 13.5px; min-height: 36px; }
.more { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }

.dlrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dlrow .label { font-size: 14px; color: var(--muted); margin-inline-end: 8px; }
.split { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* plans */
.plans { display: grid; gap: 14px; grid-template-columns: 1fr; margin-block: 16px; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { border: 1px solid var(--rule-2); border-radius: 12px; padding: 20px; display: grid; gap: 6px; align-content: start; background: var(--sheet); }
.plan .pname { font-size: 14px; color: var(--muted); }
.plan .price { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; direction: ltr; unicode-bidi: isolate; justify-self: start; }
.plan p { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-2); }
.plan .btn { justify-self: start; }
.fine { font-size: 13.5px; color: var(--muted); max-width: 72ch; margin: 8px 0 0; }
.fine.refund { color: var(--ink-2); border-inline-start: 2px solid var(--accent); padding-inline-start: 12px; margin-block: 14px; }
details.code { margin-block-start: 14px; font-size: 14.5px; }
details.code summary { cursor: pointer; color: var(--ink-2); }
details.code form { display: flex; gap: 10px; flex-wrap: wrap; margin-block-start: 10px; }
details.code input { flex: 1 1 260px; min-height: 42px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--sheet); padding: 0 12px; font-family: var(--mono); font-size: 12.5px; }
.unlocked { display: flex; gap: 10px; align-items: center; color: var(--ok); font-weight: 500; margin: 0 0 14px; }

/* pay */
.pay { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .pay { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.amount { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 6px 0 18px; }
.amount .v { font-size: clamp(30px, 5vw, 42px); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.amount .v small { font-size: .5em; color: var(--muted); font-weight: 500; margin-inline-start: 6px; }
.addr { font-family: var(--mono); font-size: 13.5px; word-break: break-all; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; direction: ltr; text-align: left; margin: 6px 0 10px; }
.warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-rule); border-radius: 10px; padding: 14px 16px; font-size: 14.5px; font-weight: 500; margin-block: 18px 10px; }
.qr { justify-self: center; inline-size: min(260px, 70vw); background: #fff; border-radius: 12px; padding: 8px; border: 1px solid var(--rule); }
.qr svg { display: block; inline-size: 100%; block-size: auto; }
.paystate { display: flex; align-items: center; gap: 12px; font-size: 15px; margin-block: 8px 16px; }
.dot { inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 1.8s ease-in-out infinite; }
.paystate.done .dot { animation: none; background: var(--ok); }
.paystate.err .dot { animation: none; background: var(--err); }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.timer { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.txform { display: flex; gap: 10px; flex-wrap: wrap; margin-block-start: 8px; }
.txform input { flex: 1 1 280px; min-height: 42px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--sheet); padding: 0 12px; font-family: var(--mono); font-size: 12.5px; direction: ltr; }
.meta { font-size: 13px; color: var(--muted); }
.msg { font-size: 14px; margin: 8px 0 0; min-height: 1.4em; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }

/* content */
.content { padding-block: 8px 72px; }
.content .grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .content .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px 72px; } }
.content section { border-block-start: 1px solid var(--rule); padding-block-start: 22px; }
.content h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 14px; }
:lang(ar) .content h2, :lang(fa) .content h2 { letter-spacing: 0; }
.content p { margin: 0 0 14px; color: var(--ink-2); max-width: 68ch; }
.content ul { margin: 0 0 14px; padding-inline-start: 0; list-style: none; }
.content ul li { position: relative; padding-inline-start: 22px; margin-block: 8px; color: var(--ink-2); }
.content ul li::before { content: ''; position: absolute; inset-inline-start: 0; top: .8em; inline-size: 10px; block-size: 1px; background: var(--accent); }
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 2px 14px; }
ol.steps li::before { content: counter(s, decimal); grid-row: span 2; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--accent); border: 1px solid var(--rule-2); border-radius: 50%; inline-size: 30px; block-size: 30px; display: grid; place-items: center; }
ol.steps b { font-weight: 600; }
ol.steps span { color: var(--ink-2); }
.faq details { border-block-end: 1px solid var(--rule); padding-block: 14px; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; }
.page-plain { padding-block: clamp(36px, 6vw, 72px) 72px; }
.page-plain .narrow { max-width: 760px; }
.cta { margin-block: 26px 0; }

/* footer */
.foot { border-block-start: 1px solid var(--rule); padding-block: 32px 48px; font-size: 13.5px; color: var(--muted); }
.foot .wrap { display: grid; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-block-start: 6px; }
.foot nav a { color: var(--ink-2); }
.foot p { margin: 0; max-width: 90ch; }
.hint { background: var(--accent-soft); font-size: 14px; }
.hint .wrap { padding-block: 8px; display: flex; gap: 8px; }
[hidden] { display: none !important; }
.paybtns { margin-block: 18px 6px; }
