:root {
  --navy: #0a1b33;
  --navy-mid: #122844;
  --navy-deep: #06111f;
  --charcoal: #1b1e24;
  --ink: #14171c;
  --muted: #5c6570;
  --paper: #f3f0ea;
  --paper-2: #e7e2d8;
  --white: #faf9f6;
  --line: #d4cfc4;
  --electric: #1ee0a0;
  --electric-ink: #043528;
  --whatsapp: #25d366;
  --whatsapp-ink: #063116;
  --danger: #8a2b2b;
  --rework: #9a4a24;
  --rework-soft: #f3e6dc;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(6, 17, 31, 0.12);
  --max: 1120px;
  --header: 68px;
  --font: "IBM Plex Sans", "Noto Sans Arabic", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --display: "Outfit", "Noto Sans Arabic", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -48px;
  z-index: 80;
  background: var(--electric);
  color: var(--electric-ink);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 17, 31, 0.92);
  color: var(--paper);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(243, 240, 234, 0.08);
}

.header-inner {
  /* Keep the toolbar on the same physical edges in every locale.
     RTL flex would swap the language row and the WhatsApp control. */
  direction: ltr;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.65rem;
  flex-wrap: wrap;
  padding-block: 0.4rem;
}

.brand { order: 1; }
.lang-switch { order: 2; }
.nav-toggle { order: 3; }
.site-nav { order: 4; }
.nav-cta { order: 5; }

.lang-switch {
  /* Locale codes stay EN → PT, left to right, so flex-start / flex-end
     do not flip the bar to the other edge on the Arabic page. */
  direction: ltr;
  display: inline-flex;
  align-items: center;
  order: 6;
  flex: 1 0 100%;
  margin-inline-start: 0;
  border: 1px solid rgba(243, 240, 234, 0.2);
  border-radius: 999px;
  overflow-x: auto;
  flex-shrink: 0;
  max-width: 100%;
  scrollbar-width: none;
}

.lang-switch::-webkit-scrollbar {
  display: none;
}

.lang-switch a {
  padding: 0.32rem 0.48rem;
  text-decoration: none;
  color: #c9d2dc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.lang-switch a.is-active {
  background: var(--electric);
  color: var(--electric-ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.brand-name,
.footer-brand bdi {
  unicode-bidi: isolate;
  direction: ltr;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(243, 240, 234, 0.18);
  background: transparent;
  color: var(--paper);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px, 0 6px;
}

.site-nav {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--navy-deep);
  padding: 0.75rem 1rem 1rem;
  border-bottom: 1px solid rgba(243, 240, 234, 0.08);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.site-nav a {
  display: block;
  text-decoration: none;
  padding: 0.65rem 0.5rem;
  color: #d7dde6;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--electric);
}

.nav-cta {
  display: none;
  direction: ltr;
  margin-inline-start: 0;
}

.hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(30, 224, 160, 0.16), transparent 28%),
    linear-gradient(180deg, var(--navy-deep), var(--navy) 70%);
  color: var(--paper);
  padding: 2.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 240, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 234, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 88%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--electric);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero h1 {
  margin: 0.7rem 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(2.05rem, 6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 650;
}

.lede {
  margin: 0 0 1.4rem;
  max-width: 40rem;
  color: #c9d2dc;
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  font-family: inherit;
}

.btn-electric {
  background: var(--electric);
  color: var(--electric-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(243, 240, 234, 0.28);
}

.btn-navy {
  background: var(--navy);
  color: var(--paper);
}

.btn-line {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn:hover {
  transform: translateY(-1px);
}

.hero-panel {
  background: rgba(18, 40, 68, 0.7);
  border: 1px solid rgba(243, 240, 234, 0.08);
  border-radius: 20px;
  padding: 1rem;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  color: #9aabbd;
  font-size: 0.85rem;
}

.trust {
  background: var(--charcoal);
  color: #d7dde6;
  padding: 1.1rem 0;
}

.trust-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: grid;
  gap: 0.15rem;
}

.trust-list strong {
  color: var(--electric);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 4rem 0;
}

.section-dark {
  background: var(--navy);
  color: var(--paper);
}

.section-alt {
  background: var(--white);
}

.kicker {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.section-dark .kicker {
  color: var(--electric);
}

h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-intro {
  max-width: 40rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.section-dark .section-intro {
  color: #c9d2dc;
}

.product-grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card figure {
  margin: 0;
  display: block;
  min-height: 180px;
  background: #e4e0d6;
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 160px;
  aspect-ratio: 320 / 220;
  object-fit: contain;
  background: #e4e0d6;
}

.card-body {
  padding: 1.1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.sku {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}

.card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  text-align: start;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--navy);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.92rem;
}

caption {
  caption-side: bottom;
  padding: 0.9rem 0.2rem 0;
  color: var(--muted);
  text-align: start;
  font-size: 0.95rem;
}

.note {
  margin: 1.1rem 0 0;
  padding: 0.9rem 1rem;
  border-inline-start: 4px solid var(--electric);
  background: #edf8f3;
  color: var(--ink);
}

.why-grid,
.steps,
.compliance-grid {
  display: grid;
  gap: 1rem;
}

.why-card,
.step,
.compliance-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.section-dark .why-card,
.section-dark .step {
  background: var(--navy-mid);
  border-color: rgba(243, 240, 234, 0.08);
}

.why-card h3,
.step h3,
.compliance-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--electric);
  color: var(--electric-ink);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.process-flow {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.process-node {
  position: relative;
  margin: 0;
  padding: 0 0 1.35rem;
}

.process-node:last-child {
  padding-bottom: 0;
}

.process-node:not(:last-child)::after {
  content: "";
  display: block;
  width: 2px;
  height: 1rem;
  margin: 0.2rem auto 0;
  background: linear-gradient(180deg, var(--electric), #0a7a58);
}

.process-node-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.15rem;
  height: 100%;
  position: relative;
}

.process-node-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.process-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.45rem;
  padding: 0 0.4rem;
  border-radius: 6px;
  background: var(--electric);
  color: var(--electric-ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  direction: ltr;
  unicode-bidi: isolate;
}

.process-gate {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0 0.45rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  direction: ltr;
  unicode-bidi: isolate;
}

.process-phase {
  margin: 0.7rem 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.process-node-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.08rem;
}

.process-node-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.process-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 1rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.process-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.process-legend-item::before {
  content: "";
  width: 1.15rem;
  height: 2px;
}

.process-legend-item.is-pass::before {
  background: var(--electric);
}

.process-legend-item.is-fail::before {
  background: var(--rework);
  border-top: 0;
  height: 0;
  border-bottom: 2px dashed var(--rework);
}

.process-schematic-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.process-schematic {
  /* Latin gate codes run RFQ → SHIP. Keep the drawing LTR on every
     locale so the scroll origin stays on RFQ and the arrows stay readable. */
  direction: ltr;
  display: block;
  width: 100%;
  min-height: 264px;
  margin: 0.65rem 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  background: #e7e2d8;
  border: 1px solid #5c564c;
  border-radius: 14px;
  padding: 12px 8px 14px;
}

.process-schematic svg {
  display: block;
  width: 980px;
  min-width: 980px;
  max-width: none;
  height: 240px;
}

.process-schematic-node {
  fill: #ffffff;
  stroke: #0a1b33;
  stroke-width: 1.75;
}

.process-schematic-label {
  fill: #0a1b33;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
}

.process-schematic-pass {
  stroke: #067a52;
  stroke-width: 2.75;
}

.process-schematic-fail {
  fill: none;
  stroke: #8a3414;
  stroke-width: 2.25;
  stroke-dasharray: 5 4;
}

.process-node-fails {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px dashed var(--rework);
  display: grid;
  gap: 0.55rem;
}

.process-node-fails p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.process-fail-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

.process-fail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.3rem;
  padding: 0 0.4rem;
  border-radius: 5px;
  background: var(--rework-soft);
  color: var(--rework);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.process-fail-dir {
  color: var(--rework);
  font-size: 0.8rem;
  font-weight: 600;
}

.process-loops {
  margin-top: 1.75rem;
  padding: 1.2rem 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.process-loops h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.process-loops-intro {
  margin: 0 0 1rem;
  color: var(--muted);
}

.process-loop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.process-loop-edge {
  padding: 0.85rem 0.9rem;
  border-inline-start: 3px solid var(--rework);
  background: var(--white);
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: 10px;
  border-end-end-radius: 10px;
}

.process-loop-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.process-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  direction: ltr;
  unicode-bidi: isolate;
}

.process-chip.is-back {
  border-color: var(--rework);
  color: var(--rework);
  background: var(--rework-soft);
}

.process-loop-arrow {
  width: 2.1rem;
  height: 0;
  border-bottom: 2px dashed var(--rework);
  position: relative;
}

.process-loop-arrow::after {
  content: "";
  position: absolute;
  inset-inline-end: -1px;
  top: -4px;
  border-block-start: 5px solid transparent;
  border-block-end: 5px solid transparent;
  border-inline-start: 6px solid var(--rework);
}

.process-loop-edge.is-self .process-loop-arrow {
  width: 1.35rem;
  border-bottom: 0;
  height: 1.1rem;
  border-inline-end: 2px dashed var(--rework);
  border-bottom: 2px dashed var(--rework);
  border-end-end-radius: 8px;
}

.process-loop-edge p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.process-loop-edge strong {
  display: inline;
  color: var(--ink);
}

.pay-note {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--paper-2);
}

.pay-note strong {
  display: block;
  margin-bottom: 0.25rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.15rem 1rem;
}

.faq-list summary {
  cursor: pointer;
  padding: 0.95rem 0;
  font-weight: 600;
  font-family: var(--display);
  text-align: start;
}

.faq-list details p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-card {
  background: var(--navy-mid);
  border-radius: var(--radius);
  padding: 1.3rem;
}

.contact-card a {
  color: var(--electric);
}

.form {
  display: grid;
  gap: 0.85rem;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
  text-align: start;
}

.contact-card a {
  unicode-bidi: isolate;
}

.form textarea {
  min-height: 96px;
  resize: vertical;
}

.form-note,
.form-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}

.form-status[data-state="ok"] {
  color: #0d5b3d;
}

.form-status[data-state="err"] {
  color: var(--danger);
}

.site-footer {
  background: var(--navy-deep);
  color: #9aabbd;
  padding: 2rem 0 5.5rem;
  font-size: 0.92rem;
}

.footer-inner {
  display: grid;
  gap: 0.75rem;
}

.footer-brand {
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
}

.wa-float {
  /* Same physical corner on every locale. A logical inset would park
     the button on the left only for Arabic. */
  position: fixed;
  right: 1rem;
  left: auto;
  bottom: 1rem;
  z-index: 50;
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: var(--whatsapp-ink);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.wa-float svg {
  width: 22px;
  height: 22px;
}

.placeholder-pill {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #b6efd6;
  color: var(--electric-ink);
  border: 1px solid rgba(4, 53, 40, 0.18);
  font-size: 0.78rem;
  font-weight: 600;
}

.section-dark .placeholder-pill {
  background: #083528;
  color: var(--electric);
  border-color: rgba(30, 224, 160, 0.55);
}

@media (min-width: 720px) {

  .trust-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .product-grid,
  .why-grid,
  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem 1rem;
  }

  .process-node {
    padding: 0;
  }

  .process-node:not(:last-child)::after {
    display: none;
  }

  .process-node:not(:nth-child(2n)) .process-node-card::after {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-end: -0.7rem;
    width: 0;
    height: 0;
    border-block-start: 6px solid transparent;
    border-block-end: 6px solid transparent;
    border-inline-start: 8px solid var(--electric);
    transform: translateY(-50%);
  }

  .process-loop-list {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    padding: 0;
    border: 0;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.4rem 0.42rem;
    font-size: 0.82rem;
  }

  .nav-cta {
    display: inline-flex;
  }

  .lang-switch {
    justify-content: flex-end;
  }

  .site-nav {
    margin-inline-start: auto;
    order: 2;
  }

  .nav-cta {
    order: 5;
  }

  .trust-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps {
    grid-template-columns: repeat(5, 1fr);
  }

  .process-flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem 1.05rem;
  }

  .process-node:not(:nth-child(2n)) .process-node-card::after {
    display: none;
  }

  .process-node:not(:nth-child(4n)):not(:last-child) .process-node-card::after {
    content: "";
    position: absolute;
    top: 1.35rem;
    inset-inline-end: -0.72rem;
    width: 0;
    height: 0;
    border-block-start: 6px solid transparent;
    border-block-end: 6px solid transparent;
    border-inline-start: 8px solid var(--electric);
    transform: none;
  }

  .process-node:nth-child(4) .process-node-card::after {
    content: "";
    position: absolute;
    top: auto;
    bottom: -0.85rem;
    inset-inline: auto;
    inset-inline-start: 50%;
    border-inline: 6px solid transparent;
    border-block-start: 8px solid var(--electric);
    border-block-end: 0;
    transform: translateX(-50%);
  }

}

@media (max-width: 979px) {
  .lang-switch {
    direction: ltr;
    justify-content: flex-start;
  }
}

[dir="rtl"] :is(h1, h2, h3, .kicker, .lede, .trust-list strong, .process-phase, .process-fail-tag) {
  letter-spacing: 0;
}

/* Arabic keeps RTL reading, but the page frame matches the LTR locales.
   dir=rtl on <html> would otherwise swap grid columns, hero sides, and the form. */
[dir="rtl"] :is(
  .hero-grid,
  .hero-meta,
  .cta-row,
  .trust-list,
  .product-grid,
  .card,
  .card-body,
  .why-grid,
  .why-card,
  .compliance-grid,
  .compliance-card,
  .steps,
  .step,
  .process-flow,
  .process-legend,
  .process-node-card,
  .process-node-meta,
  .process-fail-link,
  .process-loops,
  .process-loop-list,
  .process-loop-path,
  .contact-grid,
  .footer-inner,
  .table-wrap,
  table,
  .faq-list,
  .pay-note
) {
  direction: ltr;
}

[dir="rtl"] :is(h1, h2, h3, p, li, label, caption, td, th) {
  direction: rtl;
  text-align: justify;
  text-align-last: right;
}

[dir="rtl"] :is(
  .kicker,
  .lede,
  .section-intro,
  .note,
  .process-phase,
  .process-node-body,
  .process-schematic-note,
  .form-note,
  .form-status,
  .pay-note,
  .contact-card,
  .trust-list li,
  .faq-q,
  .footer-inner p
) {
  direction: rtl;
  text-align: justify;
  text-align-last: right;
}

[dir="rtl"] .form {
  direction: rtl;
}

/* Latin hero lines. direction:rtl on the eyebrow (it is a <p>) was
   parking the first letter of Kabnexa at the right end of the line. */
[dir="rtl"] p.eyebrow,
[dir="rtl"] .hero-meta span:first-child {
  direction: ltr;
  text-align: start;
  unicode-bidi: isolate;
}

/* These nodes are also paragraphs or list items. Keep their boxes with /sw. */
[dir="rtl"] :is(
  .process-legend,
  .process-legend-item,
  .process-loop-edge,
  .process-node,
  .faq-list summary
) {
  direction: ltr;
  text-align: start;
}
