/* Vimatons — public site.
   MOBILE FIRST: every rule outside a media query is the phone layout.
   Wider screens are layered on with min-width queries:
     600px  large phones / small tablets
     900px  tablets / desktop (horizontal nav, sticky header, no bottom bar)
     1180px wide desktop (search sits inline in the header)
   Visual language follows the reference in /TEMPLATE. */
:root {
  --blue: #1a5894;
  --blue-dark: #134574;
  --blue-soft: #e8f0f8;
  --gold: #f6c21c;
  --gold-dark: #e0ac00;
  --ink: #333;
  --heading: #3a3a3a;
  --muted: #5c5c5c;
  --muted-2: #767676;
  --line: #d9d9d9;
  --panel: #f3f4f6;
  --white: #fff;
  --ok: #1d7a46;
  --ok-bg: #e4f4ea;
  --warn: #7a5200;
  --warn-bg: #fdf0cf;
  --error: #b3261e;
  --radius: 4px;
  --gutter: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body {
  font-family: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--white); color: var(--ink); line-height: 1.5; font-size: 16px;
  overflow-wrap: break-word;
}
body.has-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
[lang="ar"] { font-family: 'IBM Plex Sans Arabic', 'Fira Sans', sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.on-blue :focus-visible { outline-color: var(--gold); }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container, .wide { width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.container { max-width: 1020px; }
.container.narrow { max-width: 820px; }
.wide { max-width: 1500px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); margin-top: 10px; }

h1, h2, h3 { color: var(--heading); line-height: 1.2; font-weight: 600; text-wrap: balance; }
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.lede { font-size: 16.5px; color: var(--muted); max-width: 660px; margin-top: 10px; }
.center .lede { margin-left: auto; margin-right: auto; }
.text-link { font-weight: 600; text-underline-offset: 3px; display: inline-block; padding: 6px 0; }

/* buttons — 48px tall on phones for comfortable tapping. btn-gold is the primary action. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 10px 20px; border-radius: var(--radius); font-weight: 600; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; text-align: center; transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-gold { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-gold:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-light, .btn-outline { background: var(--white); border-color: var(--blue); color: var(--blue); }
.btn-light:hover { background: var(--blue-soft); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 17px; }
.btn-block { width: 100%; }
/* on blue surfaces the primary action turns gold so it stands out */
.on-blue .btn-gold, .page-head-dark .btn-gold { background: var(--gold); border-color: var(--gold); color: #1d1d1d; }
.on-blue .btn-gold:hover, .page-head-dark .btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.on-blue .btn-light, .on-blue .btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.on-blue .btn-light:hover, .on-blue .btn-outline:hover { background: var(--white); color: var(--blue); }
.link-btn { background: none; border: 0; text-decoration: underline; cursor: pointer; color: var(--muted); font-size: 14px; min-height: 44px; padding: 8px 0; }
.link-btn:hover { color: var(--error); }

/* ---------- header (phone: logo + language + cart + menu, search below) ---------- */
.site-header { background: var(--white); box-shadow: 0 2px 5px rgba(0,0,0,.28); position: relative; z-index: 20; }
.header-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding-top: 8px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: none; line-height: 1.15; }
.brand-text strong { font-size: 19px; font-weight: 700; color: var(--blue); }
.brand-text span { display: none; font-family: 'Fira Sans Condensed', 'Fira Sans', sans-serif; font-size: 13px; color: var(--muted); }
.search { order: 3; flex: 1 1 100%; display: flex; min-width: 0; border: 3px solid var(--blue); border-radius: 3px; background: var(--white); }
.search input { flex: 1; min-width: 0; border: 0; padding: 9px 10px; font-size: 16px; background: transparent; -webkit-appearance: none; appearance: none; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(26,88,148,.3); }
.search button { border: 0; background: var(--blue); color: var(--white); width: 46px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.search button:hover { background: var(--blue-dark); }
.header-cta { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-inline-start: auto; }
.header-cta .btn { display: none; min-height: 40px; padding: 7px 16px; font-size: 14.5px; }
.cart-link { position: relative; color: var(--ink); font-size: 15px; text-decoration: none; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.cart-link:hover { color: var(--blue); }
.cart-label { display: none; }
.cart-count { position: absolute; top: 2px; inset-inline-end: 0; background: var(--blue); color: var(--white); border-radius: 100px; min-width: 19px; height: 19px; padding: 0 5px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav-toggle { display: inline-flex; align-items: center; background: var(--white); border: 2px solid var(--blue); color: var(--blue); border-radius: var(--radius); padding: 7px 12px; font-weight: 600; min-height: 44px; cursor: pointer; }
.site-nav { display: none; border-top: 1px solid var(--line); }
.site-nav.open { display: block; }
.nav-inner { display: flex; flex-direction: column; padding-bottom: 8px; }
.site-nav a { font-family: 'Fira Sans Condensed', 'Fira Sans', sans-serif; color: var(--ink); text-decoration: none; font-size: 17px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.site-nav a:last-child { border-bottom: 0; }
.site-nav a.active { color: var(--blue); font-weight: 600; }

/* language switcher */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang-switch a { min-width: 34px; min-height: 42px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.lang-switch a + a { border-inline-start: 1px solid var(--line); }
.lang-switch a:hover { background: var(--blue-soft); color: var(--blue); }
.lang-switch a.active { background: var(--blue); color: var(--white); }
.footer-langs { display: flex; gap: 14px; padding-top: 8px; }
.footer-langs a { text-decoration: underline; }

/* fixed bottom action bar — phones and small tablets only */
.mobile-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: var(--white);
  box-shadow: 0 -2px 8px rgba(0,0,0,.22); display: flex; align-items: center; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
}
.mobile-bar .btn, .mobile-bar form { flex: 1 1 0; min-width: 0; }
.mobile-bar form .btn { width: 100%; }
.mobile-bar .btn { padding: 8px 10px; font-size: 15.5px; line-height: 1.2; }
.mobile-bar .bar-price { flex: 0 0 auto; display: grid; line-height: 1.15; font-size: 12px; color: var(--muted); }
.mobile-bar .bar-price strong { font-size: 18px; color: var(--blue); }

/* notices */
.notice { border-radius: var(--radius); padding: 12px 14px; font-weight: 500; margin: 16px 0; border-inline-start: 4px solid; }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.notice-warn { background: var(--warn-bg); color: var(--warn); }

/* ---------- sections ---------- */
.section { padding: 26px 0; }
.section.tight { padding: 20px 0; }
.section + .section > .container { border-top: 1px solid var(--line); padding-top: 24px; }
.page-head { padding: 22px 0 2px; }
.page-head-dark { padding: 0; }
.page-head-dark > .container { background: linear-gradient(110deg, var(--blue-dark), var(--blue) 70%, #2b74b8); color: var(--white); padding: 26px var(--gutter); max-width: 980px; }
.page-head-dark h1 { color: var(--white); }
.page-head-dark .eyebrow { color: var(--gold); }
.page-head-dark .lede { color: #e3edf7; margin-bottom: 20px; }
.page-head-dark .btn { width: 100%; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.aside-note { margin-top: 22px; padding: 13px 14px; background: var(--panel); border-inline-start: 4px solid var(--blue); font-size: 15px; color: var(--muted); }
.aside-note a { font-weight: 600; }

/* home banner: signs on top, text and full-width buttons below */
.hero { padding: 0; }
.hero > .container { padding: 0; }
.hero-banner { background: linear-gradient(110deg, var(--blue-dark), var(--blue) 62%, #2b74b8); color: var(--white); display: grid; gap: 18px; padding: 22px var(--gutter) 24px; overflow: hidden; }
.hero-tag { display: inline-block; background: #d7262b; color: var(--white); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12.5px; padding: 4px 10px; margin-bottom: 10px; }
.hero-banner h1 { color: var(--white); font-size: 27px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.hero-banner p { color: #e3edf7; font-size: 16.5px; margin-top: 10px; max-width: 480px; }
.hero-ar { font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-actions .btn { flex: 1 1 100%; }
.hero-signs { order: -1; display: flex; justify-content: center; align-items: center; padding: 4px 0; }
.hero-signs img { width: 28%; max-width: 132px; background: var(--white); padding: 3px; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.hero-signs img:nth-child(1) { transform: rotate(-7deg) translateX(12px); }
.hero-signs img:nth-child(2) { z-index: 1; transform: scale(1.12); }
.hero-signs img:nth-child(3) { transform: rotate(7deg) translateX(-12px); }

/* list-style category blocks */
.cat-list { display: grid; gap: 4px; }
.cat-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--line); }
.cat-item:last-child { border-bottom: 0; }
.cat-thumb { height: 76px; display: flex; align-items: center; justify-content: center; }
.cat-thumb img { max-height: 76px; max-width: 72px; width: auto; box-shadow: 2px 3px 7px rgba(0,0,0,.3); }
.cat-item strong { display: block; font-weight: 600; font-size: 16px; color: var(--heading); margin-bottom: 3px; }
.cat-item span { color: var(--ink); font-size: 15px; }
.cat-item:hover strong { color: var(--blue); text-decoration: underline; }

/* blue tiles */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: linear-gradient(160deg, #3a78b4, var(--blue) 55%, var(--blue-dark)); color: var(--white); text-decoration: none; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 8px; text-align: center; transition: filter .15s; }
.tile:hover { filter: brightness(1.12); }
.tile img { height: 78px; width: auto; background: var(--white); padding: 3px; border-radius: 3px; box-shadow: 0 3px 9px rgba(0,0,0,.35); }
.tile span { font-weight: 600; font-size: 15px; line-height: 1.25; text-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* two purchase paths */
.path-grid { display: grid; gap: 16px; }
.path { border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.path-digital { background: var(--white); border: 2px solid var(--blue); }
.path-bulk { background: var(--blue); color: var(--white); }
.path-bulk h2 { color: var(--white); }
.path-bulk .eyebrow { color: var(--gold); }
.path-bulk .ticks li, .path-bulk .flow-line li { color: #e3edf7; }
.path-bulk .ticks li::before { color: var(--gold); }
.path-bulk .path-price span { color: #cfdff0; }
.path-price { font-size: 28px; font-weight: 700; line-height: 1.15; }
.path-price span { display: block; font-size: 14.5px; font-weight: 400; color: var(--muted); }
.path .btn { margin-top: auto; width: 100%; }

.ticks { list-style: none; display: grid; gap: 6px; }
.ticks li { padding-inline-start: 24px; position: relative; color: var(--ink); }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--blue); font-weight: 700; }

.flow-line { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; font-family: 'Fira Sans Condensed', 'Fira Sans', sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-top: 6px; }
.flow-line li:not(:last-child)::after { content: "→"; margin: 0 7px; color: var(--muted-2); }
.flow-line li.done { color: var(--ok); }
.flow-center { justify-content: center; margin: 20px 0; }

/* product grid: two columns on phones */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.product-card:hover { border-color: var(--blue); box-shadow: 0 3px 12px rgba(0,0,0,.16); }
.product-thumb { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 4px; margin-bottom: 6px; }
.product-thumb img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; box-shadow: 2px 3px 8px rgba(0,0,0,.28); }
.product-cat { font-family: 'Fira Sans Condensed', 'Fira Sans', sans-serif; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); }
.product-name { font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--heading); }
.product-card:hover .product-name { color: var(--blue); }
.product-ar { font-size: 13.5px; color: var(--muted); text-align: start; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.product-foot strong { color: var(--blue); font-size: 15.5px; }
.product-foot span { font-size: 11.5px; font-weight: 700; background: var(--blue); color: var(--white); padding: 2px 8px; border-radius: 3px; }
.product-card-free { border: 2px dashed var(--blue); }

/* category chips: one swipeable row on phones */
.chips { display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 18px; padding: 2px var(--gutter) 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.chips a:hover { border-color: var(--blue); color: var(--blue); }
.chips a.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

.text-cols { display: grid; gap: 14px; font-size: 15.5px; }

/* product page: preview first, buy box right after the title */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { display: inline-block; padding: 6px 0; }
.product-layout { display: grid; gap: 18px; align-items: start; }
.product-preview { background: var(--panel); border: 1px solid var(--line); padding: 16px; text-align: center; }
.product-preview img { margin: 0 auto; max-height: 340px; width: auto; box-shadow: 3px 5px 16px rgba(0,0,0,.3); }
.product-info { display: grid; gap: 14px; min-width: 0; }
.sign-text { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sign-text div { border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; min-width: 0; }
.sign-text dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.sign-text dd { font-weight: 600; font-size: 15.5px; color: var(--heading); }
.buy-box { background: var(--blue-soft); border: 2px solid var(--blue); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.buy-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.buy-price { font-size: 34px; font-weight: 700; line-height: 1; color: var(--blue); }
.buy-box .hint { margin-top: 0; }

/* cart & order */
.cart-table { width: 100%; border-collapse: collapse; margin: 16px 0 6px; border: 1px solid var(--line); }
.cart-table th, .cart-table td { padding: 11px 10px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--white); background: var(--blue); }
.cart-table .num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-table tbody a { font-weight: 600; text-decoration: none; }
.cart-table tbody a:hover { text-decoration: underline; }
.cart-table tfoot th { font-weight: 500; }
.cart-table tfoot .total th, .cart-table tfoot .total td { font-size: 18px; font-weight: 700; border-bottom: 0; background: var(--panel); }
.cell-sub { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; }
.cart-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 18px; text-align: center; }
.download-list { list-style: none; margin: 20px 0 8px; display: grid; gap: 10px; }
.download-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; font-weight: 600; }

/* banner */
.banner { background: var(--blue); color: var(--white); padding: 20px; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.banner h2 { color: var(--white); }
.banner .eyebrow { color: var(--gold); }
.banner p { color: #e3edf7; margin-top: 6px; }
.banner-small { margin-top: 30px; }

/* cards */
.card-grid { display: grid; gap: 12px; }
.card-grid.two { margin-bottom: 12px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; align-content: start; }
.info-card h2 { font-size: 19px; }
.info-card p { color: var(--ink); font-size: 15.5px; }
.info-card .btn { margin-top: 6px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 14px 56px; position: relative; display: grid; gap: 4px; }
[dir="rtl"] .steps li { padding: 14px 56px 14px 14px; }
.steps li::before { content: counter(step); position: absolute; top: 14px; inset-inline-start: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.steps span { font-size: 14.5px; color: var(--muted); }
.stand-grid { display: grid; gap: 16px; }
.stand-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 14px; align-items: start; }
.stand-card img { max-width: 170px; }
.stand-card h2 { font-size: 20px; }
.stand-card .ticks { margin-top: 12px; }

/* forms: one column, 16px text so iOS does not zoom on focus */
.form-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 18px var(--gutter); }
.form-card > h1, .form-card > h2 { margin-bottom: 8px; }
.form-grid { display: grid; gap: 14px; margin-top: 18px; }
.form-grid .btn { width: 100%; }
.form-stack { display: grid; gap: 14px; }
.full { grid-column: 1 / -1; }
.field { display: grid; gap: 5px; align-content: start; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; color: var(--heading); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; border: 1px solid #8f8f8f; border-radius: 3px; padding: 11px 12px; background: var(--white); min-height: 48px; font-size: 16px; }
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(26,88,148,.35); outline-offset: 0; border-color: var(--blue); }
.field input[type="file"] { padding: 9px 8px; }
.field-error { color: var(--error); font-size: 14px; font-weight: 600; }
.form-card .flow-line { margin-top: 20px; }

.summary { display: grid; gap: 10px; margin: 16px 0; }
.summary dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.summary dd { font-weight: 600; }
.quote-text { background: var(--panel); border-inline-start: 4px solid var(--blue); padding: 14px 16px; }
.quote-total { font-size: 17px; margin: 18px 0 12px; }
.quote-total strong { font-size: 30px; display: block; color: var(--blue); }

/* faq / prose */
.faq-group { margin: 24px 0 10px; font-size: 20px; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; }
.faq-list details[open] { border-color: var(--blue); }
.faq-list summary { cursor: pointer; padding: 14px 0; min-height: 48px; font-weight: 600; color: var(--heading); list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .answer { padding: 0 0 16px; max-width: 70ch; }
.prose { display: grid; gap: 14px; }
.prose h2 { margin-top: 12px; }
.prose p { max-width: 70ch; }

/* footer */
.site-footer { background: var(--blue); color: var(--white); margin-top: 26px; padding: 28px 0 20px; font-size: 15.5px; }
.site-footer > .wide { max-width: 1445px; }
.footer-features { display: grid; gap: 22px; text-align: center; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.35); }
.footer-features p { max-width: 300px; margin: 6px auto 0; }
.feature-icon { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--white); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.feature-icon-text { font-weight: 700; font-size: 18px; }
.site-footer h3 { color: var(--white); font-size: 17px; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.35); }
.footer-grid h3 { margin-bottom: 6px; }
.footer-grid a { display: block; color: var(--white); text-decoration: none; padding: 9px 0; overflow-wrap: anywhere; }
.footer-grid a:hover { text-decoration: underline; }
.footer-note { text-align: center; font-size: 13px; padding-top: 18px; }

/* Arabic: right-to-left. Layout flips through dir="rtl" and the logical properties above. */
html[lang="ar"] body, html[lang="ar"] .site-nav a, html[lang="ar"] .flow-line, html[lang="ar"] .product-cat, html[lang="ar"] .brand-text span {
  font-family: 'IBM Plex Sans Arabic', 'Fira Sans', system-ui, sans-serif;
}
html[lang="ar"] * { letter-spacing: 0 !important; } /* letter-spacing breaks joined Arabic letters */
html[lang="ar"] body { line-height: 1.7; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.4; }
[dir="rtl"] .flow-line li:not(:last-child)::after { content: "←"; }
[dir="rtl"] .hero-banner, [dir="rtl"] .page-head-dark > .container { background: linear-gradient(250deg, var(--blue-dark), var(--blue) 66%, #2b74b8); }

/* ---------- 420px: room for the brand name ---------- */
@media (min-width: 420px) {
  .brand-text { display: grid; }
  .cart-label { display: inline; }
  .cart-count { position: static; }
  .cart-link { padding: 0 4px; }
}

/* ---------- 600px: large phones / small tablets ---------- */
@media (min-width: 600px) {
  :root { --gutter: 20px; }
  h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  .btn { min-height: 44px; font-size: 15px; }
  .btn-lg { min-height: 52px; font-size: 17px; }
  .hero { padding: 16px 0 6px; }
  .hero > .container { padding: 0 var(--gutter); }
  .hero-banner { padding: 28px 28px 30px; }
  .hero-actions .btn { flex: 0 1 auto; }
  .page-head-dark { padding: 16px 0 0; }
  .page-head-dark > .container { padding: 32px 30px; border-radius: 2px; }
  .page-head-dark .btn, .path .btn, .form-grid .btn { width: auto; }
  .cat-list { grid-template-columns: 1fr 1fr; gap: 6px 24px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .product-card { padding: 12px; }
  .product-name { font-size: 16px; }
  .tile-grid { gap: 14px; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0 0 22px; padding: 0; }
  .chips a { border-radius: var(--radius); min-height: 40px; }
  .card-grid, .card-grid.two, .steps, .form-grid, .summary { grid-template-columns: 1fr 1fr; }
  .form-grid { gap: 16px 18px; }
  .form-card { padding: 26px; }
  .stand-card { grid-template-columns: 150px 1fr; gap: 20px; }
  .cart-table th, .cart-table td { padding: 13px 16px; }
  .cart-actions { flex-direction: row; align-items: center; gap: 22px; text-align: start; }
  .download-list li { flex-direction: row; align-items: center; justify-content: space-between; }
  .banner { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px 30px; }
  .footer-features { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .product-preview img { max-height: 440px; }
}

/* ---------- 900px: desktop navigation, sticky header, no bottom bar ---------- */
@media (min-width: 900px) {
  body.has-bar { padding-bottom: 0; }
  .mobile-bar { display: none; }
  h1 { font-size: 36px; }
  h2 { font-size: 29px; }
  .lede { font-size: 17.5px; }
  .site-header { position: sticky; top: 0; }
  html { scroll-padding-top: 130px; }
  .header-top { gap: 8px 20px; padding-top: 10px; padding-bottom: 6px; }
  .brand img { width: 54px; height: 54px; }
  .brand-text strong { font-size: 22px; }
  .brand-text span { display: block; }
  .header-cta { gap: 10px; }
  .header-cta .btn { display: inline-flex; }
  .lang-switch a { min-height: 38px; min-width: 36px; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; border-top: 0; }
  .nav-inner { flex-direction: row; justify-content: space-between; gap: 4px 18px; flex-wrap: wrap; padding-bottom: 0; }
  .site-nav a { font-size: 15.5px; padding: 12px 0 11px; border-bottom: 3px solid transparent; }
  .site-nav a:last-child { border-bottom: 3px solid transparent; }
  .site-nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
  .site-nav a.active, .site-nav a.active:last-child { border-bottom-color: var(--blue); }
  .section { padding: 34px 0; }
  .section.tight { padding: 24px 0; }
  .section + .section > .container { padding-top: 30px; }
  .page-head { padding: 30px 0 4px; }
  .page-head-dark > .container { padding: 38px 40px; }
  .hero-banner { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 20px; padding: 34px 40px; }
  .hero-banner h1 { font-size: 36px; }
  .hero-signs { order: 0; }
  .hero-signs img { width: 31%; }
  .cat-list { grid-template-columns: repeat(3, 1fr); gap: 30px 28px; }
  .cat-item { grid-template-columns: 104px 1fr; gap: 18px; align-items: start; padding: 0; border-bottom: 0; }
  .cat-thumb { height: 104px; }
  .cat-thumb img { max-height: 104px; max-width: 104px; }
  .cat-item strong { margin: 4px 0 8px; }
  .cat-item span { font-size: 15.5px; }
  .tile-grid { grid-template-columns: repeat(4, 1fr); gap: 15px; }
  .tile { min-height: 172px; }
  .tile img { height: 92px; }
  .path-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .path { padding: 28px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .text-cols { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
  .product-preview { padding: 26px; }
  .product-preview img { max-height: 500px; }
  .sign-text dd { font-size: 17px; }
  .buy-box { padding: 20px; }
  .buy-price { font-size: 38px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card-grid.two { grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
  .info-card { padding: 20px; }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .steps li, [dir="rtl"] .steps li { padding: 16px; gap: 6px; align-content: start; }
  .steps li::before { position: static; }
  .stand-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .site-footer { margin-top: 34px; padding: 34px 0 22px; }
  .footer-grid { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 28px; padding: 26px 0; }
  .footer-grid a { padding: 6px 0; }
  .feature-icon { width: 64px; height: 64px; margin-bottom: 14px; }
}

/* ---------- 1180px: search sits inline in the header ---------- */
@media (min-width: 1180px) {
  .header-top { flex-wrap: nowrap; gap: 26px; }
  .search { order: 0; flex: 1 1 auto; }
  .search input { padding: 7px 10px; font-size: 15px; }
  .search button { width: 40px; }
  .header-cta { margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
