/*
 * Nizam landing page, redesign "A: clean and proven" (2026-11-01).
 *
 * One idea carries the page: show the real product. The hero is a real Nizam
 * screen (demo company, never client data) that runs off the edge of the page,
 * with a real payslip laid over it. Everything else stays quiet: white and a
 * cool off-white, the brand teal for structure, and the brand orange only on
 * the main action.
 */

:root {
  --deep: #03282a;
  --deep-2: #06393c;
  --teal: #0d7377;
  --teal-ink: #075a5d;
  --mint: #e4f2f0;
  --paper: #f3f7f6;
  --white: #ffffff;
  --ink: #0e2a2c;
  --muted: #4e6467;
  --line: #dce6e4;
  --action: #b9401a;
  --action-hover: #9e3614;
  --orange: #ff6b35;
  --wa: #25d366;
  --radius: 12px;
  --shell: 74rem;
  --gutter: clamp(20px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Names the download page (download/download.css) still uses. */
  --ink-soft: #2d4a4d;
  --teal-deep: var(--teal-ink);
  --teal-bright: #14919b;
  --teal-check: #7fd6d1;
  --mist: var(--paper);
  --shadow-soft: 0 18px 50px -24px rgba(3, 40, 42, 0.18);
  --shadow-tight: 0 10px 24px -12px rgba(3, 40, 42, 0.2);
}

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

html {
  /* Grows a little on big screens so the page doesn't look small on 1920+ monitors. */
  font-size: clamp(16px, 0.35vw + 11px, 19px);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: "Readex Pro", "Noto Kufi Arabic", Tahoma, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body.is-arabic {
  direction: rtl;
}

body:not(.is-arabic) {
  line-height: 1.65;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--deep);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

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

.shell {
  width: 100%;
  max-width: calc(var(--shell) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.button.primary {
  background: var(--action);
  color: var(--white);
}

.button.primary:hover {
  background: var(--action-hover);
}

.button.ghost {
  border-color: var(--line);
  background: var(--white);
  color: var(--deep);
}

.button.ghost:hover {
  border-color: var(--teal);
  color: var(--teal-ink);
}

.button.secondary {
  background: var(--deep);
  color: var(--white);
}

.button.secondary:hover {
  background: var(--deep-2);
}

.button.on-dark {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.button.on-dark:hover {
  border-color: var(--white);
}

.button--small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.94rem;
}

.text-link,
.wa-alt,
.calc-jump,
.calc-wa {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(13, 115, 119, 0.35);
  text-underline-offset: 5px;
  cursor: pointer;
}

.text-link:hover,
.wa-alt:hover,
.calc-jump:hover,
.calc-wa:hover {
  color: var(--action);
  text-decoration-color: currentColor;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  width: 124px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-inline-end: auto;
  font-size: 0.97rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--deep);
  font-weight: 600;
  text-decoration: none;
}

.lang-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--deep);
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--teal);
}

.lang-toggle--text {
  display: inline-flex;
  gap: 8px;
  width: auto;
  padding-inline: 12px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 104px);
  overflow: hidden;
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-copy h1 {
  max-width: 13ch;
  text-wrap: balance;
  color: var(--deep);
  font-size: clamp(2.3rem, 4.8vw, 3.75rem);
  font-weight: 600;
  line-height: 1.28;
}

body:not(.is-arabic) .hero-copy h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 3.9vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-lede {
  max-width: 34rem;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: var(--deep);
  font-size: 0.94rem;
  font-weight: 500;
}

.hero-facts li,
.feature-points li,
.calc-benefits li,
.package-card li {
  position: relative;
  padding-inline-start: 26px;
}

.hero-facts li::before,
.feature-points li::before,
.calc-benefits li::before,
.package-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

body:not(.is-arabic) .hero-facts li::before,
body:not(.is-arabic) .feature-points li::before,
body:not(.is-arabic) .calc-benefits li::before,
body:not(.is-arabic) .package-card li::before {
  top: 0.4em;
}

/* The signature: a real Nizam screen running off the page edge. */
.hero-shot {
  position: relative;
  /* Runs past the content edge, but never more than 120px on wide screens. */
  margin-inline-end: calc(-1 * min(var(--gutter) + max(0px, (100vw - var(--shell) - 2 * var(--gutter)) / 2), 120px));
}

.window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 40px 80px -30px rgba(3, 40, 42, 0.35), 0 12px 24px -12px rgba(3, 40, 42, 0.12);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cfdcda;
}

.window-bar em {
  margin-inline-start: 14px;
  padding: 2px 14px;
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.window img {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: top right;
}

.hero-phone {
  position: absolute;
  inset-inline-start: -56px;
  bottom: clamp(-64px, -5vw, -28px);
  width: min(24%, 200px);
  padding: 7px;
  border-radius: 30px;
  background: var(--deep);
  box-shadow: 0 30px 60px -20px rgba(3, 40, 42, 0.5);
}

.hero-phone img {
  width: 100%;
  border-radius: 23px;
}

html.js .hero-shot {
  animation: shot-in 0.9s var(--ease-out) both;
}

html.js .hero-phone {
  animation: slip-in 0.9s 0.35s var(--ease-out) both;
}

@keyframes shot-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

@keyframes slip-in {
  from {
    opacity: 0;
    transform: translateY(36px) rotate(-2deg);
  }
}

/* ---------- Proof ---------- */

.proof {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.proof-row {
  display: grid;
  gap: 32px;
  padding-block: 40px;
}

.proof-clients {
  text-align: center;
}

.proof-clients h2 {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
}

.client-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px clamp(28px, 4vw, 56px);
  margin-top: 16px;
}

.client img {
  width: auto;
  height: 64px;
}

.client a {
  display: block;
  border-radius: 12px;
  transition: opacity 0.2s;
}

.client a:hover {
  opacity: 0.8;
}

.client--round img {
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.proof-stats div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding-inline-start: 18px;
  border-inline-start: 2px solid var(--mint);
}

.proof-stats dd {
  color: var(--teal-ink);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: start;
}

body.is-arabic .proof-stats dd {
  text-align: right;
}

body.is-arabic .proof-stats dd.proof-brands {
  justify-content: flex-end;
}

.proof-stats dd.proof-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.6;
}

.proof-stats dt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- How it works ---------- */

.how {
  padding-block: clamp(56px, 8vw, 104px) 0;
}

.how .section-title {
  text-align: center;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(32px, 4vw, 48px);
}

.how-step {
  position: relative;
  text-align: center;
}

/* Arrow from one step to the next (points left in Arabic, right in English). */
.how-step + .how-step::before {
  content: "";
  position: absolute;
  top: 38px;
  inset-inline-start: calc(-1 * clamp(20px, 4vw, 56px) / 2 - 22px);
  width: 44px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 11px);
}

.how-icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: var(--mint);
  color: var(--teal-ink);
}

.how-icon svg {
  width: 38px;
  height: 38px;
}

.how-step strong {
  display: block;
  margin-top: 16px;
  color: var(--deep);
  font-size: 1.2rem;
  font-weight: 600;
}

.how-step p {
  max-width: 18rem;
  margin: 6px auto 0;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.features,
.connect-section,
.packages-section,
.faq-section {
  padding-block: clamp(64px, 9vw, 120px);
}

.connect-section {
  background: var(--paper);
}

.faq-section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-title {
  text-wrap: balance;
  color: var(--deep);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.35;
}

body:not(.is-arabic) .section-title {
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section-lede,
.packages-lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Features ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.feature + .feature {
  margin-top: clamp(56px, 8vw, 104px);
}

.feature:nth-of-type(even) .feature-shot {
  order: -1;
}

.feature h3 {
  color: var(--deep);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.45;
}

.feature-copy p {
  max-width: 32rem;
  margin-top: 14px;
  color: var(--muted);
}

.feature-points {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  color: var(--deep);
  font-size: 0.97rem;
}

.feature-shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.feature-shot img {
  width: 100%;
}

/* ---------- Connect ---------- */

.connect-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  counter-reset: step;
}

.connect-step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--line);
}

.connect-step-number {
  position: absolute;
  top: -17px;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}

.connect-step strong {
  display: block;
  color: var(--deep);
  font-size: 1.15rem;
  font-weight: 600;
}

.connect-step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
}

.connect-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: clamp(36px, 5vw, 56px);
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.connect-footer p {
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.connect-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* ---------- Pricing ---------- */

.packages-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.packages-header .section-title {
  flex-basis: 100%;
}

.packages-header .packages-lede {
  margin-top: 0;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.package-card--featured {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--white);
}

.package-name {
  font-weight: 600;
}

.package-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
}

.package-amount {
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.1;
}

.package-currency {
  font-size: 0.9rem;
  font-weight: 600;
}

.package-period {
  color: var(--muted);
  font-size: 0.95rem;
}

.package-card--featured .package-period,
.package-card--featured ul {
  color: rgba(255, 255, 255, 0.8);
}

.package-card ul {
  display: grid;
  gap: 10px;
  margin-block: 22px 26px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.package-card--featured li::before {
  border-color: #7fd6d1;
}

.package-card--featured .package-period,
.package-card--featured ul {
  color: rgba(255, 255, 255, 0.82);
}

.package-cta {
  margin-top: auto;
}

.package-cta--dark {
  background: var(--deep);
  color: var(--white);
}

.package-cta--dark:hover {
  background: var(--deep-2);
}

.package-cta--light {
  background: var(--white);
  color: var(--deep);
}

.package-cta--light:hover {
  background: var(--mint);
}

.packages-note,
.packages-help {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.packages-help {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

/* ---------- Price calculator ---------- */

.calc {
  margin-top: clamp(40px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  overflow: hidden;
}

.calc-head {
  padding: 28px 32px 0;
}

.calc-title {
  color: var(--deep);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.4;
}

.calc-lede {
  margin-top: 6px;
  color: var(--muted);
}

.calc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 32px 32px;
}

.calc-inputs {
  display: grid;
  align-content: start;
  gap: 14px;
}

.calc-label {
  color: var(--deep);
  font-size: 0.95rem;
  font-weight: 600;
}

.calc-stepper {
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: 260px;
}

.calc-step {
  width: 54px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--deep);
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.calc-step:hover {
  border-color: var(--teal);
}

.calc-number {
  width: 100%;
  min-width: 0;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--deep);
  font: inherit;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
}

.calc-number:focus-visible {
  border-color: var(--teal);
  outline-offset: 0;
}

.calc-range {
  width: 100%;
  height: 32px;
  accent-color: var(--teal);
}

.calc-hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.calc-billing {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
}

.calc-billing legend {
  margin-bottom: 8px;
  padding: 0;
}

.calc-billing-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.calc-billing-option input {
  accent-color: var(--teal);
}

.calc-billing-option:has(input:checked) {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.calc-billing-option:has(input:focus-visible) {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.calc-badge {
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--mint);
  color: var(--teal-ink);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
}

.calc-result {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px;
  border-radius: 14px;
  background: var(--deep);
  color: var(--white);
}

.calc-band {
  color: #9fdcd7;
  font-size: 0.95rem;
  font-weight: 500;
}

.calc-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.calc-amount {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
}

.calc-currency {
  font-weight: 600;
}

.calc-period {
  color: rgba(255, 255, 255, 0.75);
}

.calc-facts {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.calc-facts li {
  position: relative;
  padding-inline-start: 16px;
}

.calc-facts li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fd6d1;
}

.calc-cta {
  margin-top: 6px;
}

.calc-trial-note {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
}

.calc-result .calc-wa {
  justify-self: start;
  color: #9fdcd7;
  text-decoration-color: rgba(159, 220, 215, 0.45);
}

.calc.is-empty .calc-cta {
  pointer-events: none;
  opacity: 0.5;
}

.calc-benefits {
  padding: 26px 32px 30px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.calc-benefits-title {
  color: var(--deep);
  font-size: 1.05rem;
  font-weight: 600;
}

.calc-benefits ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 28px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */

.faq-section .shell {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
}

.faq-header {
  position: sticky;
  top: 100px;
  margin-bottom: 0;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 20px 0;
  padding-inline-end: 40px;
  color: var(--deep);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  max-width: 44rem;
  padding-bottom: 22px;
  color: var(--muted);
}

/* ---------- Final call to action + footer ---------- */

.final-cta {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--deep);
  color: var(--white);
}

.final-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}

.final-cta h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.35;
}

.final-cta p {
  max-width: 36rem;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}

.footer-row img {
  width: 116px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-meta {
  margin-inline-start: auto;
}

/* ---------- Supported devices dialog ---------- */

.supported-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 40px 80px -20px rgba(3, 40, 42, 0.45);
}

.supported-dialog::backdrop {
  background: rgba(3, 28, 30, 0.6);
}

.supported-dialog-card {
  position: relative;
  padding: 34px clamp(22px, 5vw, 36px) 30px;
}

.supported-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--deep);
  font: 400 1.6rem/1 sans-serif;
  cursor: pointer;
}

.supported-dialog .connect-kicker {
  color: var(--teal-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.supported-dialog h2 {
  margin: 4px 0 12px;
  color: var(--deep);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.4;
}

.supported-dialog p:not(.connect-kicker) {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.97rem;
}

.supported-dialog .supported-note {
  color: var(--deep);
  font-weight: 600;
}

/* ---------- Floating WhatsApp ---------- */

.whatsapp-float {
  position: fixed;
  z-index: 40;
  inset-inline-end: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 14px 30px -8px rgba(18, 140, 126, 0.55);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #1ebe5b;
}

.whatsapp-float svg {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .nav-links {
    display: none;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .hero {
    background: var(--white);
  }

  .hero-grid,
  .proof-row,
  .feature,
  .faq-section .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy h1 {
    max-width: 16ch;
  }

  .hero-shot {
    margin-bottom: 32px;
  }

  .feature:nth-of-type(even) .feature-shot {
    order: 0;
  }

  .faq-header {
    position: static;
  }

  .calc-benefits ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 1rem;
  }

  .header-row {
    gap: 12px;
    min-height: 64px;
  }

  .brand img {
    width: 104px;
  }

  .header-login {
    font-size: 0.92rem;
  }

  .header-actions {
    gap: 10px;
  }

  .lang-toggle:not(.lang-toggle--text) {
    width: 38px;
    height: 38px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 9vw, 2.4rem);
  }

  /* Phones: the desktop screen is unreadable at this size, so show the phone view instead. */
  .hero-shot {
    margin: 8px 0 0;
  }

  .hero-shot .window {
    display: none;
  }

  .hero-phone {
    position: relative;
    inset: auto;
    width: min(68%, 260px);
    margin-inline: auto;
    padding: 6px;
    border-radius: 30px;
  }

  .hero-phone img {
    border-radius: 24px;
  }

  .client img {
    height: 46px;
  }

  .client-list {
    gap: 14px 20px;
  }

  .proof-row {
    gap: 24px;
    padding-block: 28px;
  }

  .proof-stats dd {
    font-size: 1.6rem;
  }

  .how-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
    text-align: start;
  }

  .how-icon {
    grid-row: span 2;
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .how-icon svg {
    width: 28px;
    height: 28px;
  }

  .how-step strong {
    margin-top: 0;
    font-size: 1.08rem;
  }

  .how-step p {
    margin: 2px 0 0;
    max-width: none;
  }

  .how .section-title {
    text-align: start;
  }

  /* Phones: zoom the app screens to the start of the table so the text is readable. */
  .feature-shot {
    -webkit-mask-image: linear-gradient(to left, #000 75%, transparent);
    mask-image: linear-gradient(to left, #000 75%, transparent);
  }

  body:not(.is-arabic) .feature-shot {
    -webkit-mask-image: linear-gradient(to right, #000 75%, transparent);
    mask-image: linear-gradient(to right, #000 75%, transparent);
  }

  .feature-shot img {
    width: 175%;
    max-width: none;
  }

  .feature + .feature {
    margin-top: 48px;
  }

  .feature-shot {
    max-height: 340px;
  }

  /* Price cards: the shared lines are listed once under "included in every plan". */
  .package-card {
    padding: 22px;
  }

  .package-card li:not(:first-child) {
    display: none;
  }

  .package-card ul {
    margin-block: 14px 18px;
  }

  .package-amount {
    font-size: 2.2rem;
  }

  .calc-billing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-billing legend {
    grid-column: 1 / -1;
  }

  .calc-billing-option {
    justify-content: center;
    padding-inline: 10px;
  }

  .calc-benefits ul {
    gap: 8px;
    font-size: 0.9rem;
  }

  .calc-result {
    padding: 22px 18px;
  }

  /* Start in 3 steps: number beside the text instead of on a line above it. */
  .connect-step {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 14px;
    padding-top: 0;
    border-top: 0;
  }

  .connect-step-number {
    position: static;
    grid-row: span 2;
    width: 36px;
    height: 36px;
  }

  .connect-step p {
    margin-top: 2px;
  }

  .connect-footer {
    padding: 0;
    border: 0;
    background: none;
  }

  .connect-actions,
  .connect-actions .button,
  .final-cta-actions,
  .final-cta-actions .button {
    width: 100%;
  }

  .connect-actions {
    justify-content: center;
  }

  /* Room for the floating WhatsApp button at the very end of the page. */
  .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .hero {
    padding-bottom: 40px;
  }

  .proof-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .connect-steps,
  .packages-grid,
  .calc-body,
  .calc-benefits ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .connect-steps {
    gap: 22px;
  }

  .how-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .how-step + .how-step::before {
    display: none;
  }

  .calc-head,
  .calc-body,
  .calc-benefits {
    padding-inline: 18px;
  }

  .calc-stepper {
    max-width: none;
  }

  .footer-meta {
    margin-inline-start: 0;
  }

  .whatsapp-float-label {
    display: none;
  }

  .whatsapp-float {
    padding: 0 14px;
  }
}

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

  html.js .hero-shot,
  html.js .hero-phone {
    animation: none;
  }
}

/* ---------- Free tools (/tools/…) ---------- */

.tool-hero {
  padding-block: clamp(32px, 5vw, 64px) 8px;
}

.crumbs {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumbs a {
  color: var(--teal-ink);
}

.tool-hero h1 {
  max-width: 28ch;
  color: var(--deep);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.3;
}

.tool-hero .section-lede {
  max-width: 44rem;
}

.tool-body {
  padding-block: 32px clamp(56px, 8vw, 96px);
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
}

.tool-form {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.tool-input {
  height: 64px;
  font-size: 1.9rem;
}

.tool-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  color: var(--deep);
  font-size: 0.97rem;
  cursor: pointer;
}

.tool-check input {
  width: 18px;
  height: 18px;
  margin-top: 0.4em;
  accent-color: var(--teal);
}

.tool-insurable {
  display: grid;
  gap: 10px;
}

.tool-insurable[hidden],
[data-min-wage-note][hidden] {
  display: none;
}

.tool-result {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 14px;
  background: var(--deep);
  color: var(--white);
}

.tool-lines {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tool-lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.97rem;
}

.tool-lines dt {
  color: rgba(255, 255, 255, 0.8);
}

.tool-lines dd {
  font-weight: 600;
  white-space: nowrap;
}

.tool-lines--employer dt,
.tool-lines--employer dd {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.tool-explain {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--paper);
}

.tool-explain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
}

.tool-explain .section-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.tool-steps {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-inline-start: 1.4em;
  color: var(--muted);
  list-style: decimal;
}

.tool-steps li::marker {
  color: var(--teal);
  font-weight: 600;
}

.tool-table {
  width: 100%;
  margin-block: 20px 12px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.97rem;
}

.tool-table th,
.tool-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

.tool-table th {
  color: var(--deep);
  font-weight: 600;
}

body.is-arabic .tool-table td[dir="ltr"] {
  text-align: right;
}

.tool-notes {
  margin-top: clamp(40px, 6vw, 64px);
  color: var(--muted);
  font-size: 0.95rem;
}

.tool-notes-title {
  margin-block: 18px 8px;
  color: var(--deep);
  font-size: 1.05rem;
  font-weight: 600;
}

.tool-notes ul {
  display: grid;
  gap: 6px;
  padding-inline-start: 1.2em;
  list-style: disc;
}

.tool-sources a {
  color: var(--teal-ink);
}

@media (max-width: 1020px) {
  .tool-grid,
  .tool-explain-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
