:root {
  --slate: #2B303A;
  --slate-deep: #1F232B;
  --yellow: #F7C51E;
  --yellow-deep: #E0AE0A;
  --sand: #E7D6B8;
  --cream: #F4F0E8;
  --grey: #5C6675;
  --white: #FFFFFF;
  --danger: #B3261E;
  --arabic: "Noto Kufi Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); max-width: 22ch; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; border-radius: 6px; }
.join :focus-visible, .card :focus-visible { outline-color: var(--yellow); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1rem/1 var(--sans);
  padding: 0 26px; min-height: 54px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--slate); color: var(--cream); }
.btn-dark:hover { background: var(--slate-deep); }
.btn-yellow { background: var(--yellow); color: var(--slate); }
.btn-yellow:hover { background: var(--yellow-deep); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* header */
.top { background: var(--yellow); }
.top-row { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.brand img { width: 150px; }

/* hero */
.hero { background: var(--yellow); padding: 32px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); line-height: .98; letter-spacing: -0.035em; }
.lead { margin-top: 24px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 34ch; }

/* waitlist form */
.waitlist { margin-top: 32px; max-width: 640px; }
.field-row { display: flex; flex-wrap: wrap; gap: 8px; background: var(--white); padding: 8px; border-radius: 32px; }
.field-row input[type=email], .field-row select {
  font: 400 1rem var(--sans); color: var(--slate);
  border: 0; background: transparent; min-height: 54px; padding: 0 18px; border-radius: 999px; min-width: 0;
}
.field-row input[type=email] { flex: 1 1 200px; }
.field-row select { flex: 0 1 160px; background: var(--cream); cursor: pointer; }
.field-row .btn { flex: 0 1 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.6em; margin-top: 10px; font-weight: 500; }
.form-msg.is-error { color: var(--danger); }
.form-note { font-size: .9rem; opacity: .8; }
.waitlist-dark .field-row { background: var(--slate-deep); }
.waitlist-dark input[type=email] { color: var(--cream); }
.waitlist-dark input::placeholder { color: #9aa3b0; }
.waitlist-dark .form-msg.is-error { color: #FFB4AB; }

/* phrase card */
.demo { position: relative; padding-top: 150px; max-width: 420px; width: 100%; justify-self: end; }
.falcon { position: absolute; top: 0; right: 28px; width: 190px; }
.card {
  position: relative; background: var(--slate); color: var(--cream);
  border-radius: 28px; padding: 28px 28px 24px;
  box-shadow: 10px 10px 0 var(--slate-deep);
}
.card-where { font-size: .9rem; color: var(--sand); }
.card-ar { font-family: var(--arabic); font-weight: 700; font-size: clamp(3rem, 6vw, 4.2rem); line-height: 1.35; margin-top: 4px; }
.card-roman { font-size: 1.5rem; font-weight: 700; color: var(--yellow); letter-spacing: -0.01em; }
.card-meaning { font-size: 1.2rem; margin-top: 4px; min-height: 1.9em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font: 500 .9rem/1 var(--sans); color: var(--cream);
  background: transparent; border: 1.5px solid #566072; border-radius: 999px; padding: 9px 14px; cursor: pointer;
}
.chip:hover { border-color: var(--sand); }
.chip.is-on { background: var(--cream); border-color: var(--cream); color: var(--slate); }
.next {
  margin-top: 20px; width: 100%; min-height: 48px; cursor: pointer;
  font: 700 1rem var(--sans); color: var(--slate); background: var(--yellow); border: 0; border-radius: 14px;
}
.next:hover { background: var(--yellow-deep); }

/* textbook vs Emirati */
.versus { padding: 96px 0; }
.versus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.versus-col { border-radius: 28px; padding: 32px; }
.versus-old { background: transparent; border: 2px dashed #c9bfa9; color: var(--grey); }
.versus-new { background: var(--sand); }
.versus-tag { font-weight: 500; }
.versus-ar { font-family: var(--arabic); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.4; margin-top: 8px; }
.versus-old .versus-ar { text-decoration: line-through; text-decoration-thickness: 3px; }
.versus-roman { font-size: 1.4rem; font-weight: 700; }
.versus-foot { margin-top: 28px; font-size: 1.15rem; max-width: 46ch; }

/* lesson steps */
.steps { background: var(--slate); color: var(--cream); padding: 96px 0; }
.step-list { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; }
.step-list li { counter-increment: step; border-top: 3px solid var(--yellow); padding-top: 20px; }
.step-list li::before { content: counter(step); display: block; font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--yellow); }
.step-list h3 { font-size: 1.3rem; margin-top: 14px; }
.step-list p { margin-top: 8px; font-size: .98rem; color: #cfd4dc; }

/* places */
.places { padding: 104px 0; }
.places-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.places-list { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--grey); }

/* languages */
.langs { background: var(--sand); padding: 96px 0; }
.langs-sub { margin-top: 16px; max-width: 44ch; font-size: 1.15rem; }
.lang-list { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.lang-list li { background: var(--cream); border-radius: 999px; padding: 12px 22px; font-size: 1.25rem; font-weight: 500; }
.lang-list .more { background: transparent; padding-inline: 8px; }

/* final call */
.join { background: var(--slate); color: var(--cream); padding: 104px 0; }
.join-grid { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.join-mark { width: 160px; }
.join h2 { color: var(--yellow); font-size: clamp(2.2rem, 5vw, 3.6rem); }
.join-sub { margin-top: 16px; max-width: 46ch; }

/* footer */
.foot { background: var(--slate-deep); color: #b9c0cb; padding: 28px 0; font-size: .95rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-underline-offset: 3px; }
.foot a:hover { color: var(--yellow); }

/* privacy page */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.35rem; margin-top: 40px; max-width: none; }
.doc p, .doc li { margin-top: 12px; }

@media (max-width: 900px) {
  .hero { padding-bottom: 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .demo { justify-self: center; padding-top: 130px; padding-right: 10px; }
  .falcon { width: 165px; }
  .step-list { grid-template-columns: 1fr 1fr; }
  .places-grid, .join-grid { grid-template-columns: 1fr; gap: 28px; }
  .join-mark { width: 110px; }
}
@media (max-width: 560px) {
  .brand img { width: 124px; }
  .field-row { border-radius: 26px; }
  .field-row input[type=email], .field-row select, .field-row .btn { flex: 1 1 100%; }
  .versus, .steps, .places, .langs, .join { padding: 72px 0; }
  .versus-grid, .step-list { grid-template-columns: 1fr; }
  .card { padding: 24px 22px 20px; box-shadow: 6px 6px 0 var(--slate-deep); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Arabic-script labels read small next to Latin at the same size */
.chip[lang=ur], .lang-list li[lang=ur] { font-family: var(--arabic); font-size: 1.05em; }
