/* nathm.ai coming soon · P3 Stripes. Values from Figma oafgiSsmuT6uwSybmfwYr4 (frames 4:18845, 4:18881, 4:18917,
   4:18953) and nathm-gulf-patterns/design/tokens.css. Desktop is the 1440 frame; below 768 px the 390 frame. */
:root {
  --a-grey: #edf4f4;
  --a-heading: #052e4f;
  --a-red: #00827d;
  --a-paper: #ffffff;
  --a-line: #d0e3e3;
  --a-muted: #4c6a71;
  --a-on-accent: #ffffff;
  --rounded-button: 6px;
}
html[lang="ar"] { --body: 'Cairo', sans-serif; --display: 'Alexandria', 'Cairo', sans-serif; }
html[lang="en"] { --body: 'IBM Plex Sans', 'Nathm Lang AR', sans-serif; --display: 'Source Serif 4', serif; }

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--a-grey);
  color: var(--a-heading);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--a-grey);
  font-family: var(--body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--a-heading); outline-offset: 2px; }

/* top bar: logo at the start (right in Arabic), language link at the end */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
}
.logo { display: block; width: 168.111px; height: 28.8px; }
.lang {
  color: var(--a-heading);
  text-decoration: none;
  white-space: nowrap;
  font: 400 12.5px/1.75 var(--body);
}
html[lang="en"] .lang { font-size: 15px; line-height: 1.5; }
.lang:hover { text-decoration: underline; }

/* centre block: top at 160 (header 80.8 + 79.2) */
.centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(760px, 100% - 40px);
  margin: 79.2px auto 0;
  text-align: center;
}
.headline { margin: 0; font-weight: 500; font-size: 72px; line-height: 1.25; font-family: var(--display); white-space: nowrap; }
html[lang="en"] .headline {
  font-weight: 400;
  font-size: 82.5px;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 60;
}
.sub { margin: 0; width: 560px; max-width: 100%; font: 400 17.5px/1.75 var(--body); }
html[lang="en"] .sub { font-size: 20px; line-height: 1.5; letter-spacing: -0.003em; }

/* join block */
.join, .thanks { padding-top: 22px; }
.join { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.join-label, .thanks { margin: 0; font: 600 14.5px/1.65 var(--body); white-space: nowrap; }
html[lang="en"] .join-label, html[lang="en"] .thanks { font-size: 17px; line-height: 1.4; }
.thanks:focus { outline: none; }
.row { display: flex; align-items: center; gap: 10px; }

.field {
  appearance: none;
  margin: 0;
  width: 340px;
  height: 50px;
  padding: 0 18px;
  border: 1.5px solid var(--a-line);
  border-radius: var(--rounded-button);
  background: var(--a-paper);
  color: var(--a-heading);
  font: 400 14.5px/1.8 var(--body);
}
html[lang="ar"] .field { text-align: right; }
html[lang="en"] .field { font-size: 17px; line-height: 1.55; }
.field::placeholder { color: var(--a-muted); opacity: 1; }
.field[aria-invalid="true"] { border-color: var(--a-heading); }
.field:autofill, .field:-webkit-autofill {
  box-shadow: 0 0 0 50px var(--a-paper) inset;
  -webkit-text-fill-color: var(--a-heading);
}
/* iOS Safari zooms into fields under 16 px on focus; only there the Arabic field uses 16 px */
@supports (-webkit-touch-callout: none) {
  html[lang="ar"] .field { font-size: 16px; }
}

.btn {
  appearance: none;
  margin: 0;
  border: 0;
  border-radius: var(--rounded-button);
  background: var(--a-red);
  color: var(--a-on-accent);
  cursor: pointer;
  padding: 10px 22px;
  font: 500 14.5px/1.4 var(--body);
  white-space: nowrap;
}
html[lang="en"] .btn { padding: 13px 20px; font-size: 16px; line-height: 1.2; }
.btn:disabled { cursor: progress; }

.error { margin: 0; font: 400 12.5px/1.75 var(--body); }
html[lang="en"] .error { font-size: 15px; line-height: 1.5; }
.error:empty { display: none; }

/* spam trap: clipped to nothing (no off-screen offset, which would widen the RTL page) */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* footer sits 36 px above the band top; the spacer takes the rest of the viewport */
.spacer { flex: 1 0 24px; }
.foot { height: 36px; margin: 0; text-align: center; font: 400 12.5px/1.7 var(--body); }
html[lang="en"] .foot { font-size: 14px; line-height: 1.45; }

/* the Stripes band: 1440×336 at 1440, scaled up beyond; at 390 it is 0.62 scale, centre-cropped */
.band {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 1440 / 336;
  min-height: 208.32px;
  overflow: hidden;
}
.band svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

@media (max-width: 767px) {
  .top { padding: 18px 20px; }
  .logo { width: 134.489px; height: 23.04px; }
  .centre { gap: 14px; width: min(350px, 100% - 40px); margin-top: 80.96px; }
  .headline { font-size: 39.5px; line-height: 1.28; }
  html[lang="en"] .headline {
    font-size: 45.5px;
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-variation-settings: "opsz" 45.5;
  }
  .sub { width: 330px; }
  .join, .thanks { padding-top: 14px; }
  .row { flex-direction: column; }
  .field { width: 340px; max-width: 100%; }
  .foot { height: 28px; }
}
