/* ivuroerp.com — one family (IBM Plex Sans Arabic), the product's own palette.
   The one loud thing on the page is the thermal receipt; everything around it stays quiet. */
@font-face { font-family: 'Plex Arabic'; src: url('fonts/plex-arabic-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('fonts/plex-arabic-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('fonts/plex-arabic-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('fonts/plex-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Plex Arabic'; src: url('fonts/plex-latin-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Plex Arabic'; src: url('fonts/plex-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --ink: #1E2A2F; --ink-2: #4A5A60; --ink-3: #6B7A80;
  --paper: #F7F8F6; --stone: #E6E9E5; --stone-2: #D3D8D2; --white: #FFFFFF;
  --palm: #1F6B4F; --palm-2: #17533D; --palm-tint: #E3EFE9;
  --saffron: #E0A21B; --saffron-tint: #FBF1DA; --danger: #B3261E;
  /* type scale, ratio 1.25 from 17px */
  --t-xs: .8125rem; --t-sm: .9375rem; --t-md: 1.0625rem; --t-lg: 1.3125rem; --t-xl: 1.625rem; --t-2xl: 2.0625rem; --t-3xl: 2.5625rem; --t-4xl: 3.25rem;
  --wrap: 72rem; --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --r-s: .375rem; --r-m: .625rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-md)/1.7 'Plex Arabic', system-ui, sans-serif; }
[lang='en'] body { line-height: 1.6; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--palm); text-underline-offset: .2em; }
a:hover { color: var(--palm-2); }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
.num, .ltr { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 38em; }
.muted { color: var(--ink-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; padding: .55rem 1.35rem;
  border-radius: var(--r-s); border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font: 600 var(--t-md)/1.2 inherit; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--palm); border-color: var(--palm); color: var(--white); }
.btn-primary:hover { background: var(--palm-2); border-color: var(--palm-2); color: var(--white); }
.btn-small { min-height: 2.4rem; padding: .35rem 1rem; font-size: var(--t-sm); }

/* header */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--stone); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.wordmark { font-weight: 700; font-size: var(--t-xl); color: var(--palm); text-decoration: none; letter-spacing: -.01em; }
.wordmark:hover { color: var(--palm-2); }
.nav { display: flex; gap: 1.5rem; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--t-sm); font-weight: 600; }
.nav a:hover { color: var(--palm); }
.head-actions { display: flex; gap: .75rem; align-items: center; }
.lang { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); text-decoration: none; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--stone); padding: .5rem var(--gutter) 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; font-size: var(--t-md); border-bottom: 1px solid var(--stone); }
  .menu-btn { display: inline-flex; margin-inline-start: auto; }
  .head-actions .btn-primary { display: none; }
}

/* hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(var(--t-2xl), 5.2vw, var(--t-4xl)); letter-spacing: -.015em; }
.hero h1 .offline { color: var(--palm); }
.hero .lede { margin-top: 1.25rem; font-size: var(--t-lg); color: var(--ink-2); max-width: 30em; }
.hero .ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .fine { margin-top: 1.25rem; font-size: var(--t-sm); color: var(--ink-3); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* the receipt */
.receipt-stage { position: relative; display: flex; justify-content: center; }
.printer-slot { position: absolute; top: -.6rem; width: min(22rem, 100%); height: 1.2rem; border-radius: .6rem; background: var(--ink); }
.receipt { position: relative; width: min(19.5rem, 92%); background: var(--white); color: var(--ink); padding: 1.6rem 1.4rem 2.2rem;
  font-size: var(--t-sm); line-height: 1.55; box-shadow: 0 1px 0 var(--stone-2), 0 18px 40px -24px rgba(30, 42, 47, .35);
  --zig: 10px; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
  animation: print 2.4s cubic-bezier(.4, .0, .2, 1) .3s both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-1.2rem); } to { clip-path: inset(0 0 0 0); transform: none; } }
@media (prefers-reduced-motion: reduce) { .receipt { animation: none; } html { scroll-behavior: auto; } }
.receipt .r-head { text-align: center; }
.receipt .r-head strong { display: block; font-size: var(--t-md); }
.receipt .r-head > span { display: block; color: var(--ink-3); font-size: var(--t-xs); }
.receipt hr { border: 0; border-top: 1.5px dashed var(--stone-2); margin: .8rem 0; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 1rem; }
.receipt .r-row .num { white-space: nowrap; }
.receipt .r-sub { color: var(--ink-3); font-size: var(--t-xs); }
.receipt .r-total { font-weight: 700; font-size: var(--t-lg); border-top: 2px solid var(--ink); padding-top: .5rem; margin-top: .5rem; }
.receipt .r-qr { width: 7.5rem; margin: 1rem auto .4rem; }
.receipt .r-chain { text-align: center; font-size: var(--t-xs); color: var(--ink-3); }
.receipt .r-chain b { color: var(--saffron); font-weight: 600; }
.receipt .r-stamp { position: absolute; inset-inline-end: .8rem; bottom: 6.2rem; transform: rotate(-8deg); background: var(--saffron-tint); color: #7A5508;
  border: 1.5px solid var(--saffron); border-radius: var(--r-s); padding: .2rem .6rem; font-size: var(--t-xs); font-weight: 600; }

/* sections */
section.block { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--stone); }
.block h2 { font-size: clamp(var(--t-xl), 3.6vw, var(--t-3xl)); letter-spacing: -.01em; max-width: 22em; }
.block .intro { margin-top: 1rem; color: var(--ink-2); font-size: var(--t-lg); max-width: 34em; }

/* proof: a Z-report tally */
.proof { background: var(--ink); color: var(--paper); border-top: 0; }
.proof h2 { color: var(--paper); }
.proof .intro { color: #B9C3C6; }
.proof .tally { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); border-top: 1px solid #3A4A50; }
.proof .tally div { padding: 1.25rem 0 1.25rem; border-bottom: 1px solid #3A4A50; padding-inline-end: 1.5rem; }
.proof .tally dt { color: #B9C3C6; font-size: var(--t-sm); }
.proof .tally dd { margin: .2rem 0 0; font-size: var(--t-2xl); font-weight: 700; }
.proof .tally dd.zero { color: var(--saffron); }
.proof .faults { margin-top: 2rem; color: #B9C3C6; font-size: var(--t-sm); max-width: 48em; }

/* the chain (how it works) — a real sequence, so it is numbered */
.chain { margin-top: 3rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; list-style: none; padding: 0; }
.chain li { position: relative; padding: 1.25rem 1.1rem 1.4rem; background: var(--white); border: 1px solid var(--stone-2); counter-increment: step; }
.chain li + li { border-inline-start: 0; }
.chain li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--palm-tint); color: var(--palm); font-weight: 700; font-size: var(--t-sm); }
.chain h3 { margin-top: .8rem; font-size: var(--t-md); }
.chain p { margin-top: .4rem; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.65; }
.chain .hash { display: block; margin-top: .8rem; font-size: var(--t-xs); color: var(--ink-3); }
.chain .hash b { color: #7A5508; font-weight: 600; }
@media (max-width: 1000px) {
  .chain { grid-template-columns: 1fr; }
  .chain li + li { border-inline-start: 1px solid var(--stone-2); border-top: 0; }
}

/* feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: clamp(3rem, 6vw, 4.5rem); }
.feature:nth-of-type(even) .shot { order: -1; }
.feature h3 { font-size: var(--t-xl); }
.feature p { margin-top: .8rem; color: var(--ink-2); }
.feature ul { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.feature li { padding: .5rem 0; border-top: 1px solid var(--stone); font-size: var(--t-sm); }
.feature li:last-child { border-bottom: 1px solid var(--stone); }
.shot { margin: 0; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--stone-2); background: var(--white); box-shadow: 0 20px 40px -30px rgba(30, 42, 47, .4); }
.shot img { width: 100%; height: auto; }
.shot figcaption { font-size: var(--t-xs); color: var(--ink-3); padding: .5rem .9rem; border-top: 1px solid var(--stone); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature:nth-of-type(even) .shot { order: 0; } }

.limits { margin-top: 1.2rem; width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.limits th, .limits td { text-align: start; padding: .55rem .4rem; border-bottom: 1px solid var(--stone); }
.limits thead th { color: var(--ink-3); font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.limits td.num { text-align: end; }
[dir='rtl'] .limits td.num { text-align: left; }

/* demo */
.demo { background: var(--white); }
.demo-grid { margin-top: 2.5rem; }
.guide { margin-top: 1.5rem; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem 3rem; }
@media (max-width: 860px) { .guide { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: .25rem; border-bottom: 1.5px solid var(--ink); }
.tabs button { font: 600 var(--t-md)/1.2 inherit; padding: .7rem 1.2rem; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-radius: var(--r-s) var(--r-s) 0 0; }
.tabs button[aria-selected='true'] { background: var(--ink); color: var(--paper); }
.screen { position: relative; width: 100%; aspect-ratio: 1366 / 768; overflow: hidden; background: var(--paper); border: 1.5px solid var(--ink); border-top: 0; }
.screen iframe { position: absolute; top: 0; inset-inline-start: 0; width: 1366px; height: 768px; border: 0; transform-origin: top left; }
[dir='rtl'] .screen iframe { transform-origin: top right; }
.screen[hidden] { display: none; }
.screen-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: .75rem; font-size: var(--t-sm); color: var(--ink-3); }
.guide { background: var(--paper); border: 1px solid var(--stone-2); border-radius: var(--r-m); padding: 1.4rem 1.5rem 1.6rem; }
.guide h3 { font-size: var(--t-md); }
.guide ol { margin: .8rem 0 0; padding-inline-start: 1.2rem; font-size: var(--t-sm); }
.guide li { margin: .45rem 0; }
.guide kbd { font: 600 var(--t-xs)/1 inherit; border: 1px solid var(--stone-2); border-bottom-width: 2px; border-radius: 4px; padding: .15rem .35rem; background: var(--white); }
.guide .creds { margin-top: .6rem; width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.guide .creds td { padding: .35rem 0; border-top: 1px solid var(--stone); }
.guide .creds td.num { text-align: end; font-weight: 600; }
[dir='rtl'] .guide .creds td.num { text-align: left; }
.net-toggle { margin-top: 1.2rem; display: flex; align-items: center; gap: .7rem; font-size: var(--t-sm); font-weight: 600; cursor: pointer; }
.net-toggle input { appearance: none; width: 2.6rem; height: 1.5rem; border-radius: 1rem; background: var(--danger); position: relative; cursor: pointer; flex: none; margin: 0; }
.net-toggle input::after { content: ''; position: absolute; top: .2rem; inset-inline-start: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--white); transition: inset-inline-start .15s; }
.net-toggle input:checked { background: var(--palm); }
.net-toggle .state-off { color: var(--danger); }
.net-toggle input:checked ~ .state-off, .net-toggle input:not(:checked) ~ .state-on { display: none; }
.net-toggle input:checked::after { inset-inline-start: 1.3rem; }
.guide .reset { margin-top: 1rem; font-size: var(--t-sm); background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font-family: inherit; }
.small-screen-note { display: none; margin-top: .75rem; font-size: var(--t-sm); color: var(--ink-2); }
@media (max-width: 700px) { .small-screen-note { display: block; } }

/* deployment */
.two { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--ink); border-radius: var(--r-m); overflow: hidden; }
.two > div { padding: 1.6rem 1.6rem 1.8rem; background: var(--white); }
.two > div + div { border-inline-start: 1.5px solid var(--ink); }
.two h3 { font-size: var(--t-lg); }
.two p { margin-top: .5rem; color: var(--ink-2); font-size: var(--t-sm); }
.two ul { margin: 1rem 0 0; padding-inline-start: 1.1rem; font-size: var(--t-sm); }
.two li { margin: .35rem 0; }
.same { margin-top: 1.25rem; font-size: var(--t-sm); color: var(--ink-2); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } .two > div + div { border-inline-start: 0; border-top: 1.5px solid var(--ink); } }

/* pricing */
.price-box { margin-top: 2.5rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.price-box ul { margin: 0; padding: 0; list-style: none; }
.price-box li { padding: .7rem 0; border-bottom: 1px solid var(--stone); }
.price-box li:first-child { border-top: 1.5px solid var(--ink); }
.promise { background: var(--saffron-tint); border-inline-start: 4px solid var(--saffron); padding: 1.2rem 1.3rem; border-radius: var(--r-s); }
.promise h3 { font-size: var(--t-md); }
.promise p { margin-top: .4rem; font-size: var(--t-sm); color: var(--ink-2); }
@media (max-width: 860px) { .price-box { grid-template-columns: 1fr; } }

/* faq */
.faq { margin-top: 2rem; max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--stone-2); }
.faq details:first-child { border-top: 1.5px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: var(--t-xl); line-height: 1; color: var(--palm); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 40em; }

/* contact */
.contact-grid { margin-top: 2.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
form.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
form.contact .full { grid-column: 1 / -1; }
form.contact label { display: block; font-size: var(--t-sm); font-weight: 600; margin-bottom: .35rem; }
form.contact input, form.contact textarea, form.contact select { width: 100%; font: inherit; font-size: var(--t-md); padding: .65rem .8rem; border: 1.5px solid var(--stone-2); border-radius: var(--r-s); background: var(--white); color: var(--ink); }
form.contact input:focus, form.contact textarea:focus, form.contact select:focus { border-color: var(--palm); outline: none; box-shadow: 0 0 0 3px var(--palm-tint); }
form.contact textarea { min-height: 7rem; resize: vertical; }
form.contact .note { font-size: var(--t-xs); color: var(--ink-3); }
@media (max-width: 560px) { form.contact { grid-template-columns: 1fr; } }

/* footer */
.site-foot { border-top: 1px solid var(--stone); padding: 2.5rem 0 3rem; font-size: var(--t-sm); color: var(--ink-2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-foot a { color: var(--ink-2); }
[dir='rtl'] .receipt .r-sub.num { text-align: right; }
