/* motion tokens: see the skill's reference/motion.md before adding any animation */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dir: 1;

  --night: #241723;
  --deep: #1a111b;
  --plum: #382236;
  --paper: #fbf5eb;
  --paper-hi: #fffaf2;
  --ink: #2b1928;
  --muted: #715d67;
  --magenta: #a61472;
  --magenta-deep: #891059;
  --pink: #f2acd7;
  --sand: #ead4bc;
  --line: #e2d4ca;
  --on-dark: #fff7ee;
  --ivory: #fff7ee;
  --on-dark-muted: #dbc9d2;

  --font: "Readex Pro", "Noto Sans Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif;
  --font-family: var(--font);
  --wrap: min(1336px, 100% - 2.5rem);
  --header: 56px;
  --header-top: 9px;
  --radius: 18px;
}
[dir="rtl"] { --dir: -1; }
@media (min-width: 700px) { :root { --wrap: min(1336px, 100% - 4rem); --header: 64px; --header-top: 18px; } }
@media (min-width: 1100px) { :root { --wrap: min(1336px, 100% - 6.5rem); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + var(--header-top) + 16px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; overflow-x: clip;
  font-family: var(--font); font-size: 1rem; line-height: 1.7; font-weight: 400;
  background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
[lang="en"] body { line-height: 1.6; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul[role="list"] { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
::selection { background: var(--magenta); color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 4px; }
main:focus { outline: none; }
bdi { font-variant-numeric: tabular-nums; }

.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link {
  position: fixed; inset-inline-start: 12px; top: 10px; z-index: 60; padding: 10px 16px; border-radius: 999px;
  background: var(--paper-hi); color: var(--ink); transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.display { font-weight: 400; line-height: 1.2; font-size: clamp(1.85rem, 3.7vw, 3.25rem); text-wrap: balance; }
[lang="en"] .display { font-weight: 300; letter-spacing: -0.03em; line-height: 1.08; }

.riyal { display: inline-block; width: 0.82em; height: 0.82em; vertical-align: -0.06em; margin-inline-start: 0.22em; }
.arrow { flex: none; }
[dir="rtl"] .arrow { scale: -1 1; }

/* buttons: The Leaf's own set. A full pill; the primary carries its arrow in a soft, slightly uneven well that
   echoes the leaf. Dark surfaces (.night) get the plum secondary and plum round buttons. */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  min-height: 51px; padding: 4px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.91rem; line-height: 1.15; text-align: center; white-space: nowrap;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 190ms var(--ease-out);
}
.btn:not(:disabled):active { transform: scale(0.97); }
.btn svg { flex: none; }
.btn--primary { background: var(--magenta); color: var(--ivory); box-shadow: inset 0 0 0 1px rgb(255 203 235 / 0.16), 0 9px 20px -10px rgb(166 20 114 / 0.66); }
.btn--primary:has(.well) { padding-inline: 18px 5px; }
.well {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50% 48% 52% 42%;
  background: rgb(255 247 238 / 0.13); box-shadow: inset 0 0 0 1px rgb(255 222 243 / 0.26);
}
.btn--line { background: #fff9f1; color: var(--ink); border-color: #d7babe; }
.btn--ghost { background: rgb(40 24 39 / 0.72); color: var(--ivory); border-color: rgb(247 221 222 / 0.44); }
.btn--small { min-height: 44px; padding-block: 3px; padding-inline: 15px; font-size: 0.84rem; gap: 8px; }
.btn--small.btn--primary:has(.well) { padding-inline: 14px 5px; }
.btn--small .well { width: 32px; height: 32px; }
.btn--small .arrow { width: 16px; height: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--block .btn__label { flex: 1; }
.btn--block.btn--primary:has(.well) { padding-inline-start: 43px; } /* keeps the label optically centred beside the well */
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.5; cursor: default; box-shadow: none; }
.btn[data-state="busy"] .btn__label { opacity: 0.6; filter: blur(2px); }
.btn__label { transition: opacity 200ms ease, filter 200ms ease; }
.arrow { transition: translate 190ms var(--ease-out); }
.btn:focus-visible .arrow { translate: calc(var(--dir) * 3px) 0; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:not(:disabled):hover { background: var(--magenta-deep); border-color: rgb(240 159 194 / 0.62); }
  .btn--line:hover { background: #fae9f2; border-color: var(--magenta); }
  .btn--ghost:hover { background: #573544; border-color: var(--pink); }
  .btn:not(:disabled):hover .arrow { translate: calc(var(--dir) * 3px) 0; }
}
@media (max-width: 639px) {
  .btn { min-height: 48px; gap: 8px; }
  .well { width: 34px; height: 34px; }
  .btn--small { min-height: 44px; }
  .btn--small .well { width: 32px; height: 32px; }
}

/* round buttons: arrows, the menu, closing a view, the language */
.step, .lang {
  appearance: none; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: #fff9f1; color: var(--ink); font-weight: 600; line-height: 1;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 190ms var(--ease-out);
}
.lang { font-size: 0.78rem; }
.step--prev .arrow { rotate: 180deg; }
.step:not(:disabled):active, .lang:active { transform: scale(0.97); }
.step:disabled { opacity: 0.43; cursor: default; }
.night .step, .night .lang { color: var(--ivory); background: rgb(45 26 44 / 0.75); border-color: rgb(232 203 214 / 0.35); }
@media (hover: hover) and (pointer: fine) {
  .step:hover:not(:disabled), .lang:hover { background: #f6dfeb; border-color: #bc719d; }
  .night .step:hover:not(:disabled), .night .lang:hover { background: #573544; border-color: var(--pink); color: var(--ivory); }
}
.night :focus-visible { outline-color: #e565ad; }

/* section heads and the marketing reveal (content is visible unless the script marks it) */
.section-head { display: grid; gap: 10px; margin-block-end: clamp(20px, 3vw, 30px); }
.section-head__text { color: var(--muted); max-width: 46ch; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
  .section-head__text { max-width: 40ch; padding-block-end: 6px; }
}
.reveal { transition: opacity 530ms var(--ease-out), transform 530ms var(--ease-out); }
.js .reveal[data-reveal="wait"] { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) { .js .reveal[data-reveal="wait"] { transform: none; } }

/* the tenant's announcement */
.banner { background: var(--magenta); color: #fff; font-size: 0.875rem; text-align: center; }
.banner > * { display: block; width: var(--wrap); margin: 0 auto; padding-block: 0.5rem; color: inherit; }
