:root {
  --void: #0d0518;
  --raised: #1b0b33;
  --sunken: #080310;
  --border: #2c1d42;
  --border-strong: #4a3a63;
  --ink: #ede7f5;
  --ink-muted: #a79bc4;
  --ink-subtle: #8f82a8;
  --action: #ff5a00;
  --on-action: #0d0518;
  --action-hover: #f4533a;
  --action-pressed: #d93a82;
  --action-subtle: #1e1038;
  --focus: #ff5a00;
  --success: #17b67c;
  --font: "Montserrat", sans-serif;
  --font-ar: "Tajawal", sans-serif;
  --radius-btn: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-card: 24px;
  --radius-pill: 9999px;
  --gutter: 16px;
  --measure: 72ch;
  --page: 1200px;
  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}

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

html {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html[dir="rtl"] {
  font-family: var(--font-ar);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  letter-spacing: 0;
  font-family: var(--font-ar);
  font-weight: 700;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--void);
  color: var(--ink);
  font-weight: 400;
}

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

a {
  color: var(--action);
  text-underline-offset: 3px;
}

a:hover:not(.btn) {
  color: var(--action-hover);
}

::selection {
  background: var(--action);
  color: var(--on-action);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: 8px;
  z-index: 20;
  padding: 8px 16px;
  background: var(--action);
  color: var(--on-action);
  border-radius: var(--radius-btn);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
  color: var(--on-action);
}

.wrap {
  width: min(var(--page), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--void);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 8px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.4px;
}

html[dir="rtl"] .brand {
  letter-spacing: 0;
  font-weight: 700;
}

.brand:hover {
  color: var(--ink);
}

.brand .lockup {
  width: auto;
  height: 40px;
}

[hidden] {
  display: none !important;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .hero h1,
  html[dir="rtl"] .hero h1,
  .hero .lead {
    max-width: none;
  }

  html[dir="rtl"] .hero h1 {
    font-size: 28px;
    line-height: 1.35;
  }

  .brand {
    font-size: 20px;
    white-space: nowrap;
  }

  .brand .lockup {
    height: 32px;
  }

  .site-header .btn-header {
    display: none;
  }

  .doc .site-header .btn-header:not(.btn-header-create) {
    display: inline-flex;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    max-width: none;
  }
}

@media (max-width: 479px) {
  .hero-actions .btn {
    width: 100%;
  }
}

.lang {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  min-height: 44px;
  min-width: 48px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--action-subtle);
  color: var(--action);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--action);
  color: var(--on-action);
}

.btn-primary:hover,
a.btn-primary:hover,
a.btn-primary:focus-visible {
  background: var(--action-hover);
  color: var(--on-action);
}

.btn-primary:active {
  background: var(--action-pressed);
  color: var(--on-action);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--action-subtle);
  color: var(--ink);
}

.btn-header {
  min-height: 44px;
  padding-inline: 18px;
}

.btn-lg {
  min-height: 56px;
  padding-inline: 28px;
  font-size: 17px;
  flex: 1 1 160px;
  max-width: 260px;
}

.hero {
  display: grid;
  gap: 32px;
  padding-block: 48px 64px;
  align-items: center;
}

.hero-copy,
.hero-art {
  min-width: 0;
  max-width: 100%;
}

.hero .lead {
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    padding-block: 56px 72px;
  }
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 22ch;
  width: 100%;
}

.hero h1 span {
  display: block;
}

.hero h1 .accent {
  color: var(--action);
}

html[dir="rtl"] .hero h1 {
  letter-spacing: 0;
  line-height: 1.25;
  max-width: 100%;
  font-weight: 700;
  padding-inline-start: 0.2em;
}

.hero .lead {
  margin: 0 0 32px;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 28px;
  max-width: 40ch;
}

html[dir="rtl"] .hero .lead {
  line-height: 31px;
}

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

.art {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--sunken);
}

.art img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.band {
  padding-block: 64px;
}

.band + .band {
  border-top: 1px solid var(--border);
}

.band h2,
.close h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
}

html[dir="rtl"] .band h2,
html[dir="rtl"] .close h2 {
  letter-spacing: 0;
  line-height: 1.45;
}

.band .intro {
  margin: 0 0 40px;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 28px;
  max-width: 46ch;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 40px;
}

.step {
  display: grid;
  gap: 16px;
  min-width: 0;
}

/* iPad portrait: picture beside the words. */
@media (min-width: 768px) and (max-width: 1023px) {
  .step {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
  }
}

/* Wide: three steps side by side. */
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}

.kicker {
  margin: 0 0 8px;
  color: var(--action);
  font-size: 14px;
  font-weight: 600;
}

.step-copy h3,
.role h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 28px;
  letter-spacing: -0.4px;
  font-weight: 600;
}

html[dir="rtl"] .step-copy h3,
html[dir="rtl"] .role h3 {
  letter-spacing: 0;
  line-height: 32px;
}

.step-copy p:not(.kicker),
.role p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 40ch;
}

.role-list {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .role-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.role {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--raised);
}

.role h3 {
  margin: 0;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}

.tag-yes {
  border-color: var(--success);
  background: #0c2e22;
  color: var(--success);
}

.close {
  margin-block: 16px 32px;
  padding: 32px var(--gutter);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--raised);
}

@media (min-width: 768px) {
  .close {
    padding: 48px;
  }
}

.close p {
  margin: 0 0 32px;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 28px;
  max-width: 46ch;
}

.site-footer {
  padding-block: 16px 48px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-subtle);
  font-size: 14px;
  line-height: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--ink);
}

.powered {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink-subtle);
  text-decoration: none;
}

.powered strong {
  color: var(--ink-muted);
  font-weight: 600;
}

.powered:hover strong {
  color: var(--action);
}

.faq {
  max-width: 760px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--action);
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover {
  color: var(--action);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: var(--radius-btn);
}

.faq-item p {
  margin: 0;
  padding-bottom: 20px;
  padding-inline-end: 48px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 26px;
}

html[dir="rtl"] .faq-item summary {
  font-weight: 700;
  line-height: 30px;
}

html[dir="rtl"] .faq-item p {
  line-height: 29px;
}

.legal-page {
  padding-block: 48px 80px;
}

.legal-page header h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 36px);
  letter-spacing: -0.025em;
  font-weight: 600;
}

html[dir="rtl"] .legal-page header h1 {
  letter-spacing: 0;
}

.legal-head {
  max-width: 720px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.updated {
  margin: 0;
  color: var(--ink-subtle);
  font-size: 14px;
}

.legal {
  max-width: 720px;
}

.legal {
  font-size: 16px;
  line-height: 26px;
}

html[dir="rtl"] .legal {
  line-height: 29px;
}

.legal h2 {
  margin: 40px 0 8px;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.4px;
}

.legal p {
  margin: 12px 0 0;
}

.legal ul {
  margin: 12px 0 0;
}

.legal li + li {
  margin-top: 8px;
}

html[dir="rtl"] .legal h2 {
  letter-spacing: 0;
}

.legal p,
.legal li {
  color: var(--ink-muted);
}

.legal ul {
  padding-inline-start: 1.2em;
}

.legal a {
  color: var(--action);
}

@media (max-width: 479px) {
  .header-end .btn-header {
    padding-inline: 16px;
  }
}

@media (max-width: 359px) {
  .brand .lockup {
    height: 26px;
  }
}

html {
  scrollbar-color: var(--border-strong) var(--sunken);
}

@media (max-width: 479px) {
  .hero-actions .btn {
    width: 100%;
  }
}
