/*
 * Sabooq landing page. Colours and layout follow the approved pricing sheet (sabooq-pricing.pdf):
 * a dark forest band (header + hero), then light sections in one 1120px column, four plan cards
 * that drop to two and then one column, and a forest call-to-action panel.
 */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2');
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2');
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2');
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-latin-600-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-latin-700-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #082420; /* header and hero band */
  --forest: #0f4c45; /* enterprise card, steps, call to action */
  --gold: #d9a93a; /* primary buttons, most-popular frame */
  --gold-ink: #10201d; /* text on gold */
  --paper: #f3f7f6; /* page background */
  --card: #ffffff;
  --text: #10201d;
  --muted: #4b625d;
  --line: #e0e9e7;
  --field: #c9d6d3;
  --on-dark: #ebeded;
  --on-dark-muted: #b9cbc9;
  --chip: #2a423f;
  --footer: #1b2a28;
  --error: #a3271c;
  --error-bg: #fdecea;
  --success-bg: #eaf4f1;
  --font:
    'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, 'Noto Sans Arabic',
    sans-serif;
  --radius: 16px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.3;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header and hero */
.band--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
}

.brand__ar {
  font-size: 22px;
  font-weight: 700;
}

.brand__en {
  font-size: 13px;
  color: var(--on-dark-muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  font-size: 14px;
}

.nav a {
  color: var(--on-dark);
  text-decoration: none;
}

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

.lang {
  padding: 4px 14px;
  border: 1px solid var(--on-dark-muted);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-block: 28px 64px;
}

.hero__copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.hero__title {
  display: grid;
  color: #ffffff;
  font-size: clamp(34px, 5.4vw, 54px);
  font-weight: 700;
  line-height: 1.25;
}

.hero__sub {
  max-width: 36em;
  color: var(--on-dark);
  font-size: 17px;
}

.hero__logo {
  justify-self: center;
  width: min(300px, 100%);
}

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

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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--chip);
  color: #ffffff;
  font-size: 13px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

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

.btn--gold:hover {
  background: #e4b84d;
}

.btn--ghost {
  border-color: #ffffff;
  color: #ffffff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.btn--line:hover {
  background: var(--success-bg);
}

/* Sections */
.section {
  padding-block: 56px 8px;
}

.section--tight {
  padding-block: 48px 56px;
}

.section__title {
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 700;
}

.section__sub {
  max-width: 62em;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.plan--popular {
  border: 2px solid var(--gold);
}

.plan--dark {
  border-color: var(--forest);
  background: var(--forest);
  color: #ffffff;
}

.plan__badge {
  position: absolute;
  top: -14px;
  inset-inline: 0;
  width: max-content;
  margin-inline: auto;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 13px;
  font-weight: 700;
}

.plan__name {
  font-size: 20px;
  font-weight: 700;
}

.plan__tagline {
  color: var(--muted);
  font-size: 14px;
}

.plan--dark .plan__tagline,
.plan--dark .plan__scope {
  color: var(--on-dark-muted);
}

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 18px;
}

.plan__amount {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.plan__price--text {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.plan__unit,
.plan__scope {
  color: var(--muted);
  font-size: 13px;
}

.plan__setup {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
}

.plan__features {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  line-height: 1.6;
}

.plan__features li {
  position: relative;
  padding-inline-start: 24px;
}

.plan__features li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--forest);
  font-weight: 700;
}

.plan__features--plain li {
  padding-inline-start: 0;
  color: var(--on-dark);
}

.plan__features--plain li::before {
  content: none;
}

.plan__cta {
  margin-top: auto;
}

.plan > .plan__features {
  margin-bottom: 24px;
}

/* Payments note */
.note {
  display: grid;
  gap: 8px;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.note__title {
  font-size: 20px;
  font-weight: 700;
}

.note p {
  max-width: 70em;
  color: var(--muted);
  font-size: 15px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.step__num {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--forest);
  color: #ffffff;
  font-weight: 700;
}

.step__title {
  font-size: 16px;
  font-weight: 700;
}

.step p {
  color: var(--muted);
  font-size: 14.5px;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 0;
}

.faq__item {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.faq dt {
  font-size: 16px;
  font-weight: 700;
}

.faq dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* Quote request */
.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: start;
  gap: 32px;
}

.quote__intro {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.quote__privacy {
  color: var(--muted);
  font-size: 13px;
}

.quote__direct {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 15px;
}

.quote__phone {
  font-weight: 700;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}

.form {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

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

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.field textarea {
  resize: vertical;
}

/* The phone number is typed left-to-right; keep it on the same edge as the other fields. */
[dir='rtl'] .field input[dir='ltr'] {
  text-align: right;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--forest);
  outline: 2px solid var(--forest);
  outline-offset: 0;
}

.field [aria-invalid='true'] {
  border-color: var(--error);
}

.form__error {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 14px;
}

.form__noscript {
  color: var(--error);
  font-size: 14px;
}

.form__submit {
  justify-self: start;
}

.result {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: var(--success-bg);
}

.result__title {
  font-weight: 700;
}

.result__message {
  max-height: 220px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Call to action and footer */
.cta {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 44px 24px;
  border-radius: 22px;
  background: var(--forest);
  color: var(--on-dark);
  text-align: center;
}

.cta__title {
  color: #ffffff;
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 700;
}

.cta .actions {
  margin-top: 8px;
}

.footer {
  padding-block: 22px;
  background: var(--footer);
  color: var(--on-dark-muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1023px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-block: 8px 48px;
  }

  .hero__logo {
    order: -1;
    width: min(180px, 60%);
  }

  .steps,
  .faq,
  .quote {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .plans,
  .form__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar {
    justify-content: center;
  }

  .nav {
    justify-content: center;
  }

  .actions .btn {
    flex: 1 1 auto;
  }

  .form__submit {
    justify-self: stretch;
  }
}
