@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("/fonts/noto-naskh-arabic-arabic-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f2ede3;
  --panel: #fbf8f2;
  --ink: #17140f;
  --muted: #5f584c;
  --line: #cfc6b6;
  --nile: #0f4a43;
  --nile-deep: #0a3731;
  --on-nile: #f2ede3;
  --on-nile-muted: #bcd0c8;
  --error: #9e3a26;
  --display: "Newsreader", Georgia, serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}
:lang(ar) {
  --display: "Noto Naskh Arabic", "Newsreader", serif;
  --body: "IBM Plex Sans Arabic", "Instrument Sans", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--nile); outline-offset: 3px; }
.address { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.skip {
  position: absolute;
  inset-inline-start: var(--gutter);
  inset-block-start: -60px;
  background: var(--nile);
  color: var(--on-nile);
  padding: 8px 14px;
}
.skip:focus { inset-block-start: 8px; }

.site-header, .site-footer, main > section, .legal {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
}
.wordmark {
  direction: ltr;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); font-size: 0.95rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
  padding-block: clamp(28px, 5vw, 64px) clamp(64px, 8vw, 112px);
}
.eyebrow { color: var(--nile); font-size: 0.9rem; font-weight: 600; }
h1 {
  margin-block: 14px 22px;
  font-family: var(--display);
  font-size: clamp(3.4rem, 8.4vw, 7.25rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
h1 em { color: var(--nile); font-weight: 400; }
:lang(ar) h1 { font-size: clamp(3.2rem, 7.6vw, 6.5rem); line-height: 1.2; letter-spacing: 0; }
:lang(ar) h1 em { font-style: normal; }
.lede { max-width: 36em; font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; }
.assurance { margin-block-start: 12px; max-width: 38em; color: var(--muted); }

.identity-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  max-width: 560px;
  min-height: 268px;
  margin-block-start: clamp(32px, 4vw, 52px);
  padding: 26px 28px;
  background: var(--nile);
  color: var(--on-nile);
  outline: 1px solid rgb(242 237 227 / 0.35);
  outline-offset: -9px;
}
.card-top { display: flex; justify-content: space-between; gap: 16px; color: var(--on-nile-muted); font-size: 0.85rem; }
.card-name {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.card-lines { display: grid; gap: 2px; margin-block-start: 10px; font-size: 1rem; }
.card-lines .address { overflow-wrap: anywhere; }
:lang(ar) .card-lines { justify-items: start; }

.request {
  padding: clamp(24px, 3vw, 36px);
  background: var(--panel);
  border: 1px solid var(--line);
  scroll-margin-block-start: 20px;
}
.request h2 { font-family: var(--display); font-size: 2.1rem; font-weight: 400; line-height: 1.2; }
form { display: grid; gap: 18px; margin-block-start: 22px; }
.field { display: grid; gap: 6px; }
label { font-size: 0.92rem; font-weight: 600; }
input, select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #93897a;
  border-radius: 0;
  color: var(--ink);
  font: inherit;
}
input:focus, select:focus { border-color: var(--nile); outline: 2px solid var(--nile); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--error); }
.handle-input { display: flex; direction: ltr; }
.handle-input input { flex: 1; min-width: 0; border-inline-end: 0; }
.handle-input span {
  display: flex;
  align-items: center;
  padding-inline: 12px;
  background: var(--paper);
  border: 1px solid #93897a;
  color: var(--muted);
}
.hint, .fine-print { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.field-error { color: var(--error); font-size: 0.88rem; font-weight: 600; }
.field-error:empty { display: none; }
.trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
#turnstile { min-height: 65px; }

button {
  min-height: 52px;
  padding: 12px 20px;
  background: var(--nile);
  border: 0;
  border-radius: 0;
  color: var(--on-nile);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease;
}
button:hover { background: var(--nile-deep); }
button[disabled] { opacity: 0.65; cursor: progress; }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.confirmation { margin-block-start: 18px; display: grid; gap: 10px; }
.confirmation strong { font-family: var(--display); font-size: 1.5rem; font-weight: 400; color: var(--nile); }
[hidden] { display: none !important; }

.band { padding-block: clamp(56px, 8vw, 104px); border-block-start: 1px solid var(--line); }
.band > h2 {
  max-width: 16em;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
:lang(ar) .band > h2 { line-height: 1.35; letter-spacing: 0; }
.band-intro { margin-block-start: 14px; max-width: 40em; color: var(--muted); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); margin-block-start: 44px; }
.pair h3, .plan h3 { font-family: var(--display); font-size: 1.65rem; font-weight: 500; line-height: 1.25; }
.pair .address { margin-block: 8px 10px; color: var(--nile); font-weight: 600; overflow-wrap: anywhere; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block-start: 44px; border-block: 1px solid var(--ink); }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 28px clamp(18px, 2.4vw, 32px); }
.plan + .plan { border-inline-start: 1px solid var(--line); }
.plan:first-child { padding-inline-start: 0; }
.plan:last-child { padding-inline-end: 0; }
.nowrap { white-space: nowrap; }
.price { font-family: "Newsreader", Georgia, serif; font-size: 2.3rem; line-height: 1.1; }
.price small { font-family: var(--body); font-size: 0.9rem; color: var(--muted); }
.plan ul { display: grid; gap: 8px; }
.plan li { padding-inline-start: 16px; position: relative; }
.plan li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.72em; width: 6px; height: 1px; background: var(--nile); }
.audience { margin-block-start: auto; color: var(--muted); font-size: 0.93rem; }
.plans-note { margin-block-start: 16px; color: var(--muted); font-size: 0.93rem; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-block-start: 44px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  margin-block-end: 8px;
  color: var(--nile);
  font-family: "Newsreader", Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
}
.steps strong { display: block; margin-block-end: 4px; }
.band-action {
  display: inline-block;
  margin-block-start: 44px;
  padding: 13px 22px;
  background: var(--nile);
  color: var(--on-nile);
  font-weight: 600;
  text-decoration: none;
}
.band-action:hover { background: var(--nile-deep); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 28px;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.legal { max-width: 860px; padding-block: 32px 80px; }
.legal section + section { margin-block-start: 56px; padding-block-start: 48px; border-block-start: 1px solid var(--line); }
.legal h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: 1.15; margin-block: 0 8px; letter-spacing: -0.01em; }
:lang(ar).legal-part h1, .legal-part:lang(ar) h1 { font-size: clamp(2.3rem, 5.5vw, 3.4rem); line-height: 1.35; letter-spacing: 0; }
.legal h2 { margin-block: 28px 6px; font-size: 1.1rem; }
.legal p, .legal li { max-width: 42em; }
.legal ul { display: grid; gap: 4px; padding-inline-start: 20px; list-style: disc; }
.updated { color: var(--muted); font-size: 0.92rem; }

.not-found { display: grid; gap: 14px; padding-block: 12vh 18vh; }
.not-found h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .identity-card { max-width: none; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan, .plan:first-child, .plan:last-child { padding-inline: 0; }
  .plan + .plan { border-inline-start: 0; border-block-start: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .pair, .steps { grid-template-columns: minmax(0, 1fr); }
  .site-nav .optional { display: none; }
  .identity-card { min-height: 232px; gap: 32px; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button { transition: none; }
}
