/* praxis waitlist page. Oxide kit: ink on paper; oxide appears only inside the logo's node. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #201e1d;
  --paper: #f3f2f2;
  --field: #ffffff;
  --muted: rgb(32 30 29 / 0.74); /* ~6.6:1 on paper, AA */
  --line: rgb(32 30 29 / 0.18);
  --width: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Logo: English logotype only, centred (founder decision 2026-11-04, overrides the kit's
   "never centred" rule). 2u clear space comes from the padding. */
.site-header {
  max-width: var(--width);
  margin-inline: auto;
  padding: 1.75rem 1rem 0.75rem;
}
.logo {
  width: min(100%, 9rem);
  margin-inline: auto;
}

main {
  max-width: var(--width);
  margin-inline: auto;
  padding: 0 1rem 4rem;
}

/* One section = one Arabic block then one English block (FR-001, FR-002). */
.pair {
  display: grid;
  gap: 1.25rem 3rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}
.pair:first-child {
  border-top: 0;
}
.en {
  color: var(--ink);
}
.pair > .en {
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}
h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.6rem);
}
h2 {
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
}
h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
p {
  margin: 0 0 0.85rem;
}

.cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.25rem;
  min-height: 44px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.steps {
  margin: 0;
  padding-inline-start: 1.4rem;
}
.steps li {
  margin-bottom: 1rem;
}

/* Two columns from 768px: the first block (Arabic) lands on the right in this RTL page. */
@media (min-width: 768px) {
  .logo {
    width: 11rem;
  }
  .pair {
    grid-template-columns: 1fr 1fr;
  }
  .pair > .en {
    padding-top: 0;
    border-top: 0;
  }
}

/* The form spans both columns; every label carries Arabic then English. */
#join .form,
#join noscript {
  grid-column: 1 / -1;
  max-width: 42rem;
}
.form {
  display: grid;
  gap: 1.5rem;
}
.field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field > label,
.field > legend {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  padding: 0;
}
.field > label > span,
.field > legend > span {
  display: block;
}
.field > label > [lang="en"],
.field > legend > [lang="en"] {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.95rem;
}

input[type="email"],
input[type="text"],
select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
}

fieldset.field > label,
.consent {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  flex-wrap: wrap;
  min-height: 44px;
  padding-block: 0.35rem;
  font-weight: 400;
  margin: 0;
}
fieldset.field > label > [lang="en"],
.consent > [lang="en"] {
  color: var(--muted);
}
input[type="radio"],
input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  accent-color: var(--ink);
  flex: none;
  align-self: center;
}

/* Errors: heavier border plus a "!" marker and text, never colour alone (WCAG 1.4.1). */
[aria-invalid="true"],
fieldset[aria-invalid="true"] {
  border-width: 3px;
}
fieldset[aria-invalid="true"] {
  border: 3px solid var(--ink);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
}
.field-error {
  margin: 0.4rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.field-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-inline-end: 0.4rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 0.8rem;
  line-height: 1;
}
.field-error > span {
  display: block;
}

.notice {
  font-size: 0.92rem;
  color: var(--muted);
  padding-inline-start: 0.9rem;
  border-inline-start: 3px solid var(--line);
}
.notice p:last-child {
  margin-bottom: 0;
}

.cf-turnstile {
  min-height: 65px;
}

button[type="submit"] {
  justify-self: start;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
}
button[type="submit"] > span {
  display: block;
}
button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: progress;
}

#form-status {
  font-weight: 600;
  min-height: 1.5rem;
}
#form-status > span {
  display: block;
}

@media (max-width: 767.98px) {
  button[type="submit"] {
    justify-self: stretch;
  }
}
